363ee1f01e3027adead5339082e4443133e2eb7b
[gnulib.git] / ChangeLog
1 2011-06-06  Eric Blake  <eblake@redhat.com>
2
3         strerror-override: avoid bloating errno module
4         * modules/errno (Files, configure.ac): Move replacement strings...
5         * modules/strerror-override: ...to new module.
6         * modules/strerror (Depends-on): Add strerror-override.
7         * modules/strerror_r-posix (Depends-on): Likewise.
8         * MODULES.html.sh: Document new module.
9         Reported by Bruno Haible.
10
11 2011-06-06  Bruno Haible  <bruno@clisp.org>
12
13         spawn-pipe tests: Rename program.
14         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15         * tests/test-spawn-pipe-child.c: Update comment.
16         * tests/test-spawn-pipe.sh: Update.
17         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18
19         spawn-pipe tests: Link the child program only against libc.
20         * tests/test-spawn-pipe-child.c: New file, extracted from
21         tests/test-spawn-pipe.c.
22         (main): Expect only one argument.
23         (is_open): New function, copied from tests/test-pipe.c.
24         * tests/test-spawn-pipe.c: Don't include <errno.h>.
25         (child_main): Remove function.
26         (test_pipe): Pass only one argument to the child program.
27         (main): Remove child process code. Expect the child program's name as
28         first argument.
29         * tests/test-spawn-pipe.sh: Pass the child program's name as first
30         argument.
31         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
32         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
33         test-spawn-pipe-child against no libraries.
34
35 2011-06-06  Bruno Haible  <bruno@clisp.org>
36
37         careadlinkat: Avoid mismatch between ssize_t and int.
38         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
39         * lib/careadlinkat.c (careadlinkatcwd): Define always.
40
41 2011-06-06  Jim Meyering  <meyering@redhat.com>
42
43         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
44         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
45         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
46
47 2011-06-05  Bruno Haible  <bruno@clisp.org>
48
49         ansi-c++-opt: Interoperability with libtool.
50         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
51         set the variable to "no", not to ":".
52         * NEWS: Mention the change.
53
54 2011-06-05  Bruno Haible  <bruno@clisp.org>
55
56         acl: Fix test failure on AIX 7.
57         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
58         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
59
60 2011-06-05  Bruno Haible  <bruno@clisp.org>
61
62         pipe-filter-ii: Fix test failure on AIX and IRIX.
63         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
64         with EAGAIN, retry with a smaller buffer size.
65
66 2011-06-05  Bruno Haible  <bruno@clisp.org>
67
68         localename: Fix link dependencies.
69         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
70         * modules/localename-tests (Makefile.am): Link test-localename with
71         $(LIBTHREAD).
72
73 2011-06-05  Bruno Haible  <bruno@clisp.org>
74
75         error: Avoid gcc warning.
76         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
77
78 2011-06-05  Bruno Haible  <bruno@clisp.org>
79
80         unsetenv: Avoid gcc warning.
81         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
82
83 2011-06-05  Bruno Haible  <bruno@clisp.org>
84
85         setenv: Avoid gcc warning.
86         * lib/setenv.c (setenv): Provide declaration if system lacks it.
87
88 2011-06-05  Bruno Haible  <bruno@clisp.org>
89
90         sys_select: Ensure memset is declared also on AIX 7.
91         * lib/sys_select.in.h: Include <string.h> also on AIX.
92         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
93         self-contained also on AIX 7.1.
94
95 2011-06-04  Jim Meyering  <meyering@redhat.com>
96
97         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
98         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
99         function name, "error".
100         (_gl_translatable_diag_func_re): New configurable variable.
101
102 2011-06-04  Bruno Haible  <bruno@clisp.org>
103
104         getopt: Avoid gcc warning.
105         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
106
107 2011-06-04  Bruno Haible  <bruno@clisp.org>
108
109         strerror_r: Fix comments.
110         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
111         commit.
112
113 2011-06-04  Bruno Haible  <bruno@clisp.org>
114
115         perror: Fix compilation error.
116         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
117         Undefine fprintf, not sprintf.
118         * modules/perror (Depends-on): Remove intprops, verify.
119
120 2011-06-04  Bruno Haible  <bruno@clisp.org>
121
122         setlocale: Enable replacement on Cygwin 1.5.
123         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
124         Cygwin 1.5.x.
125         * doc/posix-functions/setlocale.texi: Mention that the problem with the
126         LC_CTYPE category also exists on Cygwin 1.5.x.
127
128 2011-06-04  Bruno Haible  <bruno@clisp.org>
129
130         strerror-override: Don't disable symbol renamings.
131         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
132         * lib/strerror-override.c: Include config.h.
133         (strerror_override): Don't undefine.
134
135 2011-06-03  Bruno Haible  <bruno@clisp.org>
136
137         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
138         * lib/localename.h: Update copyright header.
139         * lib/localename.c: Likewise.
140         * lib/relocatable.h: Likewise.
141         * lib/relocatable.c: Likewise.
142
143 2011-06-02  Bruno Haible  <bruno@clisp.org>
144
145         doc: Fix a module name.
146         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
147
148 2011-06-02  Bruno Haible  <bruno@clisp.org>
149
150         pipe2: Remove dependency on 'nonblocking' module.
151         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
152         O_NONBLOCK is defined by gnulib.
153         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
154         is zero.
155         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
156         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
157         defined by gnulib.
158         (get_nonblocking_flag): New function.
159         (main): Test O_NONBLOCK flag only if it is nonzero.
160         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
161
162 2011-06-03  Jim Meyering  <meyering@redhat.com>
163
164         maint: three new prohibit-header-without-use rules
165         Prohibit use of cloexec.h, posixver.h, same.h without use.
166         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
167         (sc_prohibit_posixver_without_use): Likewise.
168         (sc_prohibit_same_without_use): Likewise.
169
170 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
171
172         allocator: 'die' routine is now given requested size
173         * lib/allocator.h (struct allocator.die): New size arg.
174         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
175         If the actual problem is an ssize_t limitation, not a size_t or
176         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
177
178 2011-06-01  Eric Blake  <eblake@redhat.com>
179
180         strerror: drop strerror_r dependency
181         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
182         * lib/strerror-override.c (strerror_override): ...to new file.
183         * lib/strerror-override.h: Add prototype.
184         * lib/strerror-impl.h: Delete.
185         * lib/strerror.c (strerror): New implementation.
186         * modules/errno (Files): Add new files.
187         (configure.ac): Compile new file as appropriate.
188         * modules/strerror (Files): Drop unused file.
189         (Depends-on): Drop strerror_r-posix.
190         * MODULES.html.sh: Document strerror_r-posix.
191         Requested by Sam Steingold.
192
193         perror: call strerror_r directly
194         * modules/perror (Files): Drop strerror-impl.h.
195         * lib/perror.c (perror): Use our own stack buffer, rather than
196         calling a wrapper that uses static storage.
197         * doc/posix-functions/perror.texi (perror): Document a limitation
198         of our replacement.
199
200         strerror_r: fix includes for FreeBSD
201         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
202         since we use abort on some platforms.
203         Reported by Matthias Bolte.
204
205 2011-05-31  Bruno Haible  <bruno@clisp.org>
206
207         Fix link errors in tests: openat-die uses gettext-h.
208         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
209         against $(LIBINTL).
210         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
211         against $(LIBINTL).
212         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
213         $(LIBINTL).
214         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
215         against $(LIBINTL).
216         * modules/linkat-tests (Makefile.am): Link test-linkat against
217         $(LIBINTL).
218         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
219         $(LIBINTL).
220         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
221         against $(LIBINTL).
222         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
223         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
224         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
225         $(LIBINTL).
226         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
227         $(LIBINTL).
228         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
229         $(LIBINTL).
230         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
231
232 2011-05-31  Bruno Haible  <bruno@clisp.org>
233
234         Fix link errors in tests: wait-process uses gettext-h.
235         * modules/nonblocking-pipe-tests (Makefile.am): Set
236         test_nonblocking_pipe_main_LDADD.
237         * modules/nonblocking-socket-tests (Makefile.am): Link
238         test-nonblocking-socket-main against $(LIBINTL).
239         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
240
241 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
242
243         assert-h: work around 'verify' incompatibility
244         * lib/verify.h: Use @...@ directives, not ifdef.
245         * modules/assert-h (assert.h): Implement the directives.
246         (assert.h): Substitute the symbol-prefix more consistently.
247
248 2011-05-29  Jim Meyering  <meyering@redhat.com>
249
250         trim: remove three superfluous assignments
251         * lib/trim.c (trim2): Remove three superfluous assignments
252         and correct brace positioning.
253
254 2011-05-29  Bruno Haible  <bruno@clisp.org>
255
256         wctype-h: Avoid namespace pollution on Solaris 2.6.
257         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
258         identifiers.
259         * doc/posix-headers/wctype.texi: Mention the problem.
260         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
261
262 2011-05-28  Jim Meyering  <meyering@redhat.com>
263
264         parse-datetime.y: accommodate -Wstrict-overflow
265         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
266         placate -Wstrict-overflow.
267
268         trim: avoid a warning from -O2 -Wstrict-overflow
269         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
270
271 2011-05-29  Bruno Haible  <bruno@clisp.org>
272
273         gnulib-tool: Fix bug in yesterday's commit.
274         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
275         twice.
276
277 2011-05-29  Bruno Haible  <bruno@clisp.org>
278
279         Allow multiple gnulib generated include files to be combined.
280         * gnulib-tool (func_compute_include_guard_prefix): New function.
281         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
282         ${gl_include_guard_prefix} references.
283         (func_import, func_create_testdir): Invoke
284         func_compute_include_guard_prefix.
285         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
286         * lib/ctype.in.h: Likewise.
287         * lib/dirent.in.h: Likewise.
288         * lib/errno.in.h: Likewise.
289         * lib/fcntl.in.h: Likewise.
290         * lib/float.in.h: Likewise.
291         * lib/getopt.in.h: Likewise.
292         * lib/iconv.in.h: Likewise.
293         * lib/langinfo.in.h: Likewise.
294         * lib/locale.in.h: Likewise.
295         * lib/math.in.h: Likewise.
296         * lib/netdb.in.h: Likewise.
297         * lib/netinet_in.in.h: Likewise.
298         * lib/poll.in.h: Likewise.
299         * lib/pthread.in.h: Likewise.
300         * lib/pty.in.h: Likewise.
301         * lib/sched.in.h: Likewise.
302         * lib/se-selinux.in.h: Likewise.
303         * lib/search.in.h: Likewise.
304         * lib/signal.in.h: Likewise.
305         * lib/spawn.in.h: Likewise.
306         * lib/stdarg.in.h: Likewise.
307         * lib/stddef.in.h: Likewise.
308         * lib/stdint.in.h: Likewise.
309         * lib/stdio.in.h: Likewise.
310         * lib/stdlib.in.h: Likewise.
311         * lib/string.in.h: Likewise.
312         * lib/strings.in.h: Likewise.
313         * lib/sys_file.in.h: Likewise.
314         * lib/sys_ioctl.in.h: Likewise.
315         * lib/sys_select.in.h: Likewise.
316         * lib/sys_socket.in.h: Likewise.
317         * lib/sys_stat.in.h: Likewise.
318         * lib/sys_time.in.h: Likewise.
319         * lib/sys_times.in.h: Likewise.
320         * lib/sys_uio.in.h: Likewise.
321         * lib/sys_utsname.in.h: Likewise.
322         * lib/sys_wait.in.h: Likewise.
323         * lib/sysexits.in.h: Likewise.
324         * lib/termios.in.h: Likewise.
325         * lib/time.in.h: Likewise.
326         * lib/unistd.in.h: Likewise.
327         * lib/wchar.in.h: Likewise.
328         * lib/wctype.in.h: Likewise.
329         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
330         * modules/ctype (Makefile.am): Likewise.
331         * modules/dirent (Makefile.am): Likewise.
332         * modules/errno (Makefile.am): Likewise.
333         * modules/fcntl-h (Makefile.am): Likewise.
334         * modules/float (Makefile.am): Likewise.
335         * modules/getopt-posix (Makefile.am): Likewise.
336         * modules/iconv-h (Makefile.am): Likewise.
337         * modules/langinfo (Makefile.am): Likewise.
338         * modules/locale (Makefile.am): Likewise.
339         * modules/math (Makefile.am): Likewise.
340         * modules/netdb (Makefile.am): Likewise.
341         * modules/netinet_in (Makefile.am): Likewise.
342         * modules/poll-h (Makefile.am): Likewise.
343         * modules/pthread (Makefile.am): Likewise.
344         * modules/pty (Makefile.am): Likewise.
345         * modules/sched (Makefile.am): Likewise.
346         * modules/search (Makefile.am): Likewise.
347         * modules/selinux-h (Makefile.am): Likewise.
348         * modules/signal (Makefile.am): Likewise.
349         * modules/spawn (Makefile.am): Likewise.
350         * modules/stdarg (Makefile.am): Likewise.
351         * modules/stddef (Makefile.am): Likewise.
352         * modules/stdint (Makefile.am): Likewise.
353         * modules/stdio (Makefile.am): Likewise.
354         * modules/stdlib (Makefile.am): Likewise.
355         * modules/string (Makefile.am): Likewise.
356         * modules/strings (Makefile.am): Likewise.
357         * modules/sys_file (Makefile.am): Likewise.
358         * modules/sys_ioctl (Makefile.am): Likewise.
359         * modules/sys_select (Makefile.am): Likewise.
360         * modules/sys_socket (Makefile.am): Likewise.
361         * modules/sys_stat (Makefile.am): Likewise.
362         * modules/sys_time (Makefile.am): Likewise.
363         * modules/sys_times (Makefile.am): Likewise.
364         * modules/sys_uio (Makefile.am): Likewise.
365         * modules/sys_utsname (Makefile.am): Likewise.
366         * modules/sys_wait (Makefile.am): Likewise.
367         * modules/sysexits (Makefile.am): Likewise.
368         * modules/termios (Makefile.am): Likewise.
369         * modules/time (Makefile.am): Likewise.
370         * modules/unistd (Makefile.am): Likewise.
371         * modules/wchar (Makefile.am): Likewise.
372         * modules/wctype-h (Makefile.am): Likewise.
373         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
374
375 2011-05-29  Bruno Haible  <bruno@clisp.org>
376
377         assert-h: Allow multiple gnulib generated replacements to coexist.
378         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
379
380 2011-05-29  Bruno Haible  <bruno@clisp.org>
381
382         argp: Allow coexistence with strerror_r-posix module.
383         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
384         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
385         by gnulib's <string.h> replacement), assume it has the POSIX signature,
386         not the glibc signature.
387
388 2011-05-28  Bruno Haible  <bruno@clisp.org>
389
390         gnulib-tool: Alternative structure of testdirs, similar to --import.
391         * gnulib-tool: New option --single-configure.
392         (func_usage): Document it.
393         (single_configure): New variable.
394         (func_modules_transitive_closure_separately,
395         func_modules_transitive_closure_separately,
396         func_determine_use_libtests, func_modules_add_dummy_separately,
397         func_modules_to_filelist_separately): New functions, extracted from
398         func_import.
399         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
400         (func_import): Use the new functions.
401         (func_create_testdir): Set final_modules. Handle $single_configure =
402         true case.
403
404 2011-05-28  Bruno Haible  <bruno@clisp.org>
405
406         getloadavg: Remove an unreliable safety check.
407         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
408         getloadavg.c is in place.
409         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
410         Reported by Sam Steingold <sds@gnu.org>.
411
412 2011-05-28  Bruno Haible  <bruno@clisp.org>
413
414         doc: Cleanup yet another file produced by texinfo.tex.
415         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
416
417 2011-05-28  Bruno Haible  <bruno@clisp.org>
418
419         Finish the conditional dependencies mechanism.
420         * gnulib-tool: New option --no-conditional-dependencies.
421         (func_usage): Document it. Don't mark --conditional-dependencies as
422         experimental.
423         (cond_dependencies): The possible values can now be true, false, empty.
424         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
425         (func_import): Store setting in gnulib-cache.m4 and read it from there.
426         * doc/gnulib-tool.texi (Conditional dependencies): New section.
427
428 2011-05-28  Bruno Haible  <bruno@clisp.org>
429
430         doc: Use a recent texinfo.tex.
431         * doc/Makefile (tex_opts): New variable.
432         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
433
434 2011-05-28  Jim Meyering  <meyering@redhat.com>
435
436         intprops.h: adjust comment to match code change
437         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
438         only once, it *may* have side effects.  Also fix an unrelated typo.
439         (_GL_INT_SIGNED): Likewise.
440
441 2011-05-26  Simon Josefsson  <simon@josefsson.org>
442
443         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
444
445 2011-05-26  Bruno Haible  <bruno@clisp.org>
446
447         mbsrchr: Avoid collision with system function on Interix.
448         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
449         Reported by Markus Duft <mduft@gentoo.org>.
450
451 2011-05-15  James Youngman  <jay@gnu.org>
452
453         getopt: for ambiguous options, enumerate the possibilities.
454         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
455         the ambiguous options when an ambiguous prefix is given. This was
456         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
457         glibc change was
458         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
459
460 2011-05-25  Eric Blake  <eblake@redhat.com>
461
462         getcwd: work around mingw bug
463         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
464         * doc/posix-functions/getcwd.texi (getcwd): Document it.
465         Reported by Matthias Bolte.
466
467 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
468
469         test-intprops: disable -Wtype-limits diagnostics
470         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
471         diagnostics.  Otherwise, the integer overflow macros generate many
472         diagnostics.  Reported by Jim Meyering in
473         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
474
475         intprops: shorten, to pacify gcc -Woverlength-strings
476         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
477         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
478         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
479         likely to run afoul of C compiler limits for string constant lengths.
480         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
481
482 2011-05-24  Eric Blake  <eblake@redhat.com>
483
484         docs: document recently fixed glibc printf bug
485         * doc/posix-functions/fprintf.texi (fprintf): Document it.
486         * doc/posix-functions/printf.texi (printf): Likewise.
487         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
488         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
489
490         closein-tests: convert to init.sh
491         * modules/closein-tests (Files): Add init.sh
492         * tests/test-closein.sh Use it.
493
494         yesno-tests: convert to init.sh
495         * modules/yesno-tests (Files): Add init.sh.
496         * tests/test-yesno.sh: Use it.
497
498         atexit-tests: ensure reliable exit status
499         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
500         Reported by Bruno Haible.
501
502 2011-05-24  Bruno Haible  <bruno@clisp.org>
503
504         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
505         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
506         gl_PREREQ_STRERROR_R invocations from here...
507         * modules/strerror_r-posix (configure.ac): ... to here.
508
509 2011-05-24  Eric Blake  <eblake@redhat.com>
510
511         strerror_r: fix missing header
512         * lib/strerror_r.c: Avoid compiler warning about snprintf.
513
514         strerror_r: fix AIX test failures
515         * lib/strerror_r.c (strerror_r): Convert silent truncation to
516         ERANGE failure.
517
518         strerror_r: fix Solaris test failures
519         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
520         failures.
521         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
522
523         strerror_r: enforce POSIX recommendations
524         * lib/strerror_r.c (safe_copy): New helper method.
525         (strerror_r): Guarantee a non-empty string.
526         * tests/test-strerror_r.c (main): Enhance tests to incorporate
527         recent POSIX rulings and to match our strerror guarantees.
528         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
529
530 2011-05-24  Jim Meyering  <meyering@redhat.com>
531
532         test-perror2.c: avoid warning about unused variable
533         * tests/test-perror2.c (main): Remove declaration of unused "fp".
534
535 2011-05-24  Eric Blake  <eblake@redhat.com>
536
537         perror: avoid spurious test failure on HP-UX
538         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
539
540         tests: fix logic bug in init.sh
541         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
542         shell.
543
544 2011-05-24  Jim Meyering  <meyering@redhat.com>
545
546         utimensat: do not reference an out-of-scope buffer
547         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
548         declared in an inner scope, yet "times" would be dereferenced outside
549         the scope in which "ts" was valid.
550         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
551         of ts[2] "out/up", so that the use of aliased "times" (via
552         "times = ts;") does not end up referencing an out-of-scope "ts"
553
554         opendir-safer.c: don't clobber errno; don't close negative FD
555         * lib/opendir-safer.c (opendir_safer):
556         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
557         file descriptor, and more importantly, don't clobber the
558         offending errno value with EINVAL.  Before, upon failure
559         of dup_safer, we would pass the negative file descriptor to
560         fdopendir, which would clobber errno.
561
562 2011-05-23  Bruno Haible  <bruno@clisp.org>
563
564         idcache: Fix module description.
565         * modules/idcache (Include): Set to "idcache.h".
566
567 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
568
569         gnulib-tool: fix portability problem with MacOS sed
570         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
571         before the "}".  Problem reported by Leo in
572         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
573         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
574         sed_extract_condition1, sed_extract_condition2.
575
576 2011-05-23  Bruno Haible  <bruno@clisp.org>
577
578         hash: Simplify autoconf macro.
579         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
580
581 2011-05-23  Bruno Haible  <bruno@clisp.org>
582
583         getugroups: Fix module description.
584         * modules/getugroups (Include): Set to "getugroups.h".
585
586 2011-05-23  Bruno Haible  <bruno@clisp.org>
587
588         linkat: Simplify autoconf macro.
589         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
590
591 2011-05-23  Bruno Haible  <bruno@clisp.org>
592             Eric Blake  <eblake@redhat.com>
593
594         linkat, renameat: Update dependencies.
595         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
596         * modules/linkat (Depends-on): Likewise. Remove also readlink,
597         symlinkat.
598
599 2011-05-23  Jim Meyering  <meyering@redhat.com>
600
601         maint.mk: more tight_scope improvements
602         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
603         (_gl_TS_headers): Define only in if-0'd block.
604         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
605         sometimes we must *not* use it.  Adjust uses accordingly.
606         (sc_tight_scope): Use much simpler grep-based test to determine
607         whether we skip this rule.
608
609         maint.mk: generalize/improve the tight-scope rule
610         * top/maint.mk: Emit a warning when the test is skipped.
611         (_gl_TS_dir): Add $(srcdir)/ prefix.
612         (_gl_TS_function_match): Simplify, rather than trying
613         to enumerate common types.  Otherwise, it would fail to match an
614         "extern unsigned char const *" declaration in idutils.
615         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
616         a way to support use of that type of macro.
617         (_gl_TS_var_match): Simplify regexp.
618         (_gl_TS_obj_files): New configurable variable.
619         (_gl_TS_headers): Likewise.
620
621 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
622
623         verify: fix bug when gnulib <assert.h> is also included
624         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
625         is defined, not if _GL_STATIC_ASSERT_H is not defined.
626         Perhaps there's a better way, but this fixes the immediate problem.
627         Problem reported by Bruno Haible in
628         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
629
630 2011-05-22  Bruno Haible  <bruno@clisp.org>
631
632         xgetcwd: Simplify autoconf macro.
633         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
634
635 2011-05-22  Bruno Haible  <bruno@clisp.org>
636
637         New module 'mktime-internal'.
638         * modules/mktime-internal: New file.
639         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
640         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
641         mktime_internal as a C macro if libc has __mktime_internal.
642         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
643         conditions.
644         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
645
646 2011-05-22  Bruno Haible  <bruno@clisp.org>
647
648         timegm: Correct mktime replacement statements.
649         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
650         defining mktime as a C macro. This completes a 2009-07-28 commit.
651
652 2011-05-22  Bruno Haible  <bruno@clisp.org>
653
654         timegm: Simplify autoconf macro.
655         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
656
657 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
658
659         clock-time: change to LGPLv2+.
660         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
661         BSD-like but we have no mark for that; this is good enough for now.
662
663 2011-05-21  Bruno Haible  <bruno@clisp.org>
664
665         strerror_r: Fix comments.
666         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
667
668 2011-05-21  Bruno Haible  <bruno@clisp.org>
669
670         relocatable-prog-wrapper: Fix possible link error.
671         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
672         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
673         (gl_FUNC_SETENV): ... to here.
674         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
675         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
676
677 2011-05-21  Bruno Haible  <bruno@clisp.org>
678
679         relocatable-prog-wrapper: Assume strerror() exists.
680         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
681         m4/strerror.m4.
682         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
683         * lib/relocwrapper.c: Remove mention of strerror module.
684         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
685         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
686         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
687         C macro.
688
689 2011-05-21  Bruno Haible  <bruno@clisp.org>
690
691         select: Simplify replacement idiom.
692         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
693         Win32 platforms.
694         * lib/sys_select.in.h (select): Simplify accordingly.
695         * modules/select (Depends-on): Likewise.
696
697 2011-05-21  Bruno Haible  <bruno@clisp.org>
698
699         mkdir-p: Simplify autoconf macro.
700         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
701         gl_FUNC_LCHOWN.
702
703 2011-05-21  Eric Blake  <eblake@redhat.com>
704
705         strerror_r: avoid clobbering strerror on cygwin
706         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
707         fall back instead to sys_errlist.
708         * modules/strerror (configure.ac): Add witness.
709         * tests/test-strerror_r.c (main): Enhance test.
710         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
711         * tests/test-perror2.c (main): Free memory before exit.
712
713 2011-05-21  Bruno Haible  <bruno@clisp.org>
714
715         mkdtemp: Use gnulib naming conventions.
716         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
717         * modules/mkdtemp (configure.ac): Update.
718
719 2011-05-20  Eric Blake  <eblake@redhat.com>
720
721         strerror_r: avoid corrupting errno on Solaris
722         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
723         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
724
725         strerror_r: avoid compiler warning
726         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
727
728         strerror_r: simplify AIX code
729         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
730
731         test-perror: avoid spurious failure on FreeBSD
732         * modules/perror-tests (Depends-on): Add strerror, now that
733         strerror_r no longer pulls it in.
734
735 2011-05-20  Bruno Haible  <bruno@clisp.org>
736
737         strerror_r-posix: Remove unused dependencies.
738         * modules/strerror_r-posix (Depends-on): Remove strerror.
739         Reported by Eric Blake.
740
741 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
742
743         intprops: remove assumption about A|B representation
744         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
745         is a valid integer if both A and B are.  Although this is true for
746         all known practical hosts, the C standard doesn't guarantee it,
747         and the code need not assume it.  Also, this change may work around
748         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
750
751 2011-05-20  Eric Blake  <eblake@redhat.com>
752
753         perror: work around FreeBSD bug
754         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
755         is broken.  Move AC_LIBOBJ...
756         * modules/perror (configure.ac): Here.
757         * doc/posix-functions/perror.texi (perror): Document this.
758         * tests/test-perror2.c (main): Enhance test.
759
760         test-perror: check for strerror interactions
761         * tests/macros.h (STREQ): Add macro.
762         * modules/perror-tests (Files): Add second test.
763         * tests/test-perror2.c (main): New file.
764         * doc/posix-functions/perror.texi (perror): Document glibc bug.
765
766         test-perror: rewrite to use init script
767         * modules/perror-tests (Files): Add init.sh.
768         * tests/test-perror.sh: Use temporary directory.
769
770 2011-05-20  Jim Meyering  <meyering@redhat.com>
771
772         maint: replace misused "a" with "an"
773         * doc/intprops.texi: "a integer"
774         * doc/regex.texi: "a explanation"
775         * lib/alignof.h: "a object"
776         * lib/argmatch.h: "a explanation"
777         * lib/argp-help.c: "a option" and "a OPTION_DOC"
778         * lib/stdint.in.h: "a integer"
779         * lib/userspec.c: "a owner"
780         * doc/gnulib.texi: Fix "a idea", and reword.
781
782 2011-05-19  Jim Meyering  <meyering@redhat.com>
783
784         maint: correct misuse of "a" and "an"
785         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
786         * lib/argp-help.c: "an docum...": s/an/a/
787         * lib/argp-parse.c: "An vector": s/An/A/
788         * lib/execute.c: "an native": s/an/a/
789         * lib/spawn-pipe.c: Likewise.
790         * lib/gc.h: "an Gc_rc": s/an/a/
791         * lib/unigbrk.in.h: "an grapheme": s/an/a/
792         * lib/fts.c: "an stat.st_dev": s/an/a/
793
794 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
795
796         intprops-tests: work around HP-UX 11.23 cc bug with constants
797         * tests/test-intprops.c (VERIFY): New macro.
798         (main): Use it, instead of verify, to work around the compiler bug; see
799         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
800
801         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
802         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
803         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
804         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
805         (_GL_REMAINDER_OVERFLOW): Use it.
806
807         intprops-tests: revert unsigned part of previous change
808         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
809         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
810         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
812
813 2011-05-19  Bruno Haible  <bruno@clisp.org>
814
815         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
816         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
817         strerror_r() returned without filling the buffer.
818         Reported by Eric Blake.
819
820 2011-05-19  Eric Blake  <eblake@redhat.com>
821
822         strerror_r: guarantee unchanged errno
823         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
824         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
825         failure.
826         * tests/test-strerror_r.c (main): Enhance test.
827
828 2011-05-19  Bruno Haible  <bruno@clisp.org>
829
830         strerror_r: Reorder #if blocks.
831         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
832         for consistency with the previous commit.
833
834 2011-05-19  Bruno Haible  <bruno@clisp.org>
835
836         perror: Avoid clobbering the strerror buffer when possible.
837         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
838         * lib/strerror.c: Include it.
839         * modules/strerror (Files): Add lib/strerror-impl.h.
840         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
841         (my_strerror): New function, defined through lib/strerror-impl.h.
842         (perror): Use it instead of strerror.
843         * modules/perror (Files): Add lib/strerror-impl.h.
844         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
845
846 2011-05-19  Eric Blake  <eblake@redhat.com>
847
848         strerror_r: fix on newer cygwin
849         * lib/strerror_r.c (strerror_r): Cygwin now has
850         __xpg_strerror_r, use it.
851
852 2011-05-19  Bruno Haible  <bruno@clisp.org>
853
854         strerror_r: Avoid clobbering the strerror buffer when possible.
855         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
856         (sys_nerr, sys_errlist): New declarations.
857         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
858         HP-UX, native Win32, IRIX, and 32-bit Solaris.
859         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
860
861 2011-05-19  Bruno Haible  <bruno@clisp.org>
862
863         strerror_r: Fix test failure on mingw.
864         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
865         EXTEND_STRERROR_R.
866         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
867         macros from errno.in.h instead.
868
869 2011-05-19  Eric Blake  <eblake@redhat.com>
870
871         strerror: relax test for Solaris
872         * tests/test-strerror.c (main): Permit Solaris behavior.
873         * tests/test-strerror_r.c (main): Likewise.
874
875         strerror: enforce POSIX ruling on strerror(0)
876         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
877         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
878         * lib/strerror_r.c (rpl_strerror_r): Work around it.
879         * doc/posix-functions/strerror.texi (strerror): Document it.
880         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
881         * tests/test-strerror.c (main): Strengthen test.
882         * tests/test-strerror_r.c (main): Likewise.
883
884 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
885
886         intprop-tests: port to older and more-pedantic compilers
887         * modules/intprops-tests (Files): Add tests/macros.h.
888         * tests/test-intprops.c: Include macros.h.
889         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
890         it's no longer documented to expand to an integer constant expression.
891         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
892         argument is floating point, as it's no longer documented to expand
893         to an integer constant expression in that case.
894         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
895         compiler bugs reported by Bruno Haible.  See
896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
897         (U0, U1): New constants, to work around the same bugs.  Also,
898         in tests, use e.g., "(unsigned int) 39" rather than "39u".
899
900         intprops: work around C compiler bugs
901         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
902         bug in Sun C 5.11 2010/08/13 and other compilers; see
903         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
904
905         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
906         * doc/intprops.texi (Integer Type Determination): Fix
907         documentation for TYPE_IS_INTEGER: it returns an constant
908         expression, not an integer constant expression.  Fix doc for
909         TYPE_SIGNED: it returns an integer constant expression only if its
910         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
911         hardly worth documented that way....)
912
913 2011-05-18  Bruno Haible  <bruno@clisp.org>
914
915         strerror_r: Avoid clobbering the strerror buffer when possible.
916         * lib/strerror_r.c (strerror_r): Merge the three implementations.
917         Handle gnulib defined errno values here. When strerror() returns NULL
918         or an empty string, return EINVAL.
919         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
920         gnulib defined errno values here.
921         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
922
923 2011-05-18  Eric Blake  <eblake@redhat.com>
924
925         fnmatch: avoid compiler warning
926         * lib/fnmatch_loop.c (FCT): Use correct type.
927         Reported by Matthias Bolte.
928
929 2011-05-13  Jim Meyering  <meyering@redhat.com>
930
931         maint.mk: three new prohibit_<HDR>_without_use rules
932         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
933         (sc_prohibit_stdio-safer_without_use): Likewise.
934         (sc_prohibit_xfreopen_without_use): Likewise.
935
936 2011-05-17  Jim Meyering  <meyering@redhat.com>
937
938         announce-gen: fail if the NEWS delta is empty
939         If there's nothing noteworthy in NEWS, then either you forgot
940         or you shouldn't be releasing.
941         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
942
943 2011-05-17  Pádraig Brady <P@draigBrady.com>
944
945         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
946         reserved symbols starting with double underscore from the check.
947
948 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
949
950         intprops: add doc
951         * doc/intprops.texi: New file, documenting intprops.
952         * doc/gnulib.texi (Particular Modules): Include it.
953
954         verify: add doc to gnulib manual and fix example
955         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
956         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
957         (Compile-time Assertions): Fix example so it can't overflow.
958
959 2011-05-17  Jim Meyering  <meyering@redhat.com>
960
961         warnings.m4: don't usurp save_CPPFLAGS variable name
962         * m4/warnings.m4: Prefix local temporary variable name with gl_.
963
964         doc: fix typo
965         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
966
967 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
968             Bruno Haible  <bruno@clisp.org>
969
970         doc: Tweak recent change.
971         * README (Portability guidelines): Tweak new text.
972         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
973         Interix 6.1.
974
975 2011-05-16  Eric Blake  <eblake@redhat.com>
976
977         inttypes: avoid autoconf warning
978         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
979         * m4/stdint.m4 (gl_STDINT_H): Likewise.
980
981 2011-05-16  Sam Steingold <sds@gnu.org>
982         and Eric Blake  <eblake@redhat.com>
983
984         vc-list-files: accept multiple directory operands
985         * build-aux/vc-list-files: Iterate over all remaining operands.
986
987 2011-05-16  Bruno Haible  <bruno@clisp.org>
988
989         Fix confusion regarding deprecated modules.
990         * modules/calloc (Status, Notice): Mark module as deprecated, not
991         obsolete.
992         * modules/fnmatch-posix (Status, Notice): Likewise.
993         * modules/getdate (Status, Notice): Likewise.
994         * modules/getopt (Status, Notice): Likewise.
995         * modules/malloc (Status, Notice): Likewise.
996         * modules/pipe (Status, Notice): Likewise.
997         * modules/realloc (Status, Notice): Likewise.
998         * modules/rename-dest-slash (Status, Notice): Likewise.
999         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
1000         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
1001         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
1002         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
1003         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
1004
1005 2011-05-16  Bruno Haible  <bruno@clisp.org>
1006
1007         doc: List the target platforms.
1008         * doc/gnulib-intro.texi (Target Platforms): New section.
1009         * doc/gnulib.texi (Introduction): Update menu.
1010         * README (Portability guidelines): Refer to the new section. Update
1011         statement about oldest supported environment. Remove rationale why
1012         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
1013         unportable C89 function.
1014         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
1015         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
1016
1017 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1018
1019         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
1020
1021 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1022
1023         intprops-tests: new module
1024         * modules/intprops-tests, tests/test-intprops.c: New files.
1025
1026         intprops: add safe, portable integer overflow checking
1027         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
1028         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
1029         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
1030         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
1031         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
1032         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
1033         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
1034         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
1035         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
1036         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
1037         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
1038
1039 2011-05-12  James Youngman  <jay@gnu.org>
1040
1041         Add a test for glibc's Bugzilla bug #12378.
1042         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
1043         doesn't allow the literal matching of a lone "[" (which is
1044         required by POSIX).
1045         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
1046
1047 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
1048
1049         Sync glibc change fixing Bugzilla bug #12378.
1050         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
1051         beginning and fall back to matching as normal character if the
1052         string ends before the matching ']' is found.  This is what POSIX
1053         requires.
1054
1055 2011-05-13  Eric Blake  <eblake@redhat.com>
1056
1057         getcwd-lgpl: relax test for FreeBSD
1058         * doc/posix-functions/getcwd.texi (getcwd): Document portability
1059         issue.
1060         * tests/test-getcwd-lgpl.c (main): Relax test.
1061         Reported by Matthias Bolte.
1062
1063 2011-05-11  Eric Blake  <eblake@redhat.com>
1064
1065         test-fflush: silence compiler warning
1066         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
1067
1068 2011-05-11  Bruno Haible  <bruno@clisp.org>
1069
1070         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
1071         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
1072         * modules/canonicalize (Depends-on): Add 'nocrash'.
1073         * modules/canonicalize-lgpl (Depends-on): Likewise.
1074         * doc/posix-functions/realpath.texi: Update platforms list.
1075         Reported by Ryan Schmidt <ryandesign@macports.org>.
1076
1077 2011-05-11  Bruno Haible  <bruno@clisp.org>
1078
1079         group-member: Declare function in <unistd.h>.
1080         * lib/unistd.in.h (group_member): New declaration.
1081         * lib/group-member.h: Remove file.
1082         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
1083         * tests/test-unistd-c++.cc: Check signature of group_member.
1084         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
1085         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
1086         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
1087         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
1088         HAVE_GROUP_MEMBER.
1089         * modules/group-member (Files): Remove lib/group-member.h.
1090         (Depends-on): Add unistd. Specify conditions.
1091         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1092         (Include): Change to <unistd.h>.
1093         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
1094         HAVE_GROUP_MEMBER.
1095         * NEWS: Mention the change.
1096         * lib/euidaccess.c: Don't include group-member.h.
1097
1098 2011-05-11  Bruno Haible  <bruno@clisp.org>
1099
1100         group-member: Document module.
1101         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
1102         module.
1103
1104 2011-05-11  Bruno Haible  <bruno@clisp.org>
1105
1106         fclose: Fix mistake earlier today.
1107         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
1108
1109 2011-05-11  Eric Blake  <eblake@redhat.com>
1110
1111         fclose: preserve fflush errors
1112         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
1113         Reported by Jim Meyering.
1114
1115         bootstrap: support a prereq of 'rpcgen -' on RHEL5
1116         * build-aux/bootstrap (check_versions): When no specific version
1117         is required, merely check that the app produces an exit status
1118         that indicates its existence.
1119
1120         maint.mk: drop redundant check
1121         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
1122         the same but better.
1123
1124 2011-05-11  Bruno Haible  <bruno@clisp.org>
1125
1126         fclose: Fix possible link error.
1127         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
1128         unregister_shadow_fd. Improve comments.
1129         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
1130         Eric Blake.
1131
1132 2011-05-11  Jim Meyering  <meyering@redhat.com>
1133
1134         maint.mk: improve "can not" detection and generalize rule name
1135         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
1136         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
1137         Use the same technique as in sc_prohibit_doubled_word, so that
1138         we recognize "can not" also when the words are separated by a newline.
1139         Suggested by Eric Blake.
1140         (perl_filename_lineno_text_): Define.  Factored out of...
1141         (prohibit_doubled_word_): ...here.  Use the new definition.
1142         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
1143         (prohibit_undesirable_word_seq_RE_): New overridable variable.
1144         (ignore_undesirable_word_sequence_RE_): New overridable variable.
1145
1146 2011-05-10  Eric Blake  <eblake@redhat.com>
1147
1148         fclose: avoid double close race when possible
1149         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
1150         all but WINDOWS_SOCKETS.
1151
1152 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
1153
1154         openat: correct new comment
1155         * lib/openat-proc.c (openat_proc_name): Correct the comment.
1156
1157 2011-05-10  Jim Meyering  <meyering@redhat.com>
1158
1159         openat: add comments
1160         * lib/openat-proc.c (openat_proc_name): Add comments,
1161         mostly from Eric Blake.
1162
1163 2011-05-09  Eric Blake  <eblake@redhat.com>
1164
1165         openat: reduce syscalls in first probe of /proc
1166         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
1167         be a directory.  Simplify the probe for .. bugs.
1168         * modules/openat (Depends-on): Drop same-inode.
1169         Reported by Bastien ROUCARIES.
1170
1171 2011-05-09  Jim Meyering  <meyering@redhat.com>
1172
1173         maint.mk: change semantics/name of tight_scope variables
1174         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
1175         Rename variables to align with semantics that make them more useful.
1176
1177         maint.mk: tweak new rule's name not to impinge
1178         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
1179         (sc_tight_scope): Use new rule name rather than $@-0.
1180
1181         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
1182         * top/maint.mk (sc_tight_scope): New rule.
1183         (sc_tight_scope-0): New rule, ifdef'd out.
1184         (_gl_TS_dir): Default.
1185         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
1186         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
1187
1188 2011-05-09  Simon Josefsson  <simon@josefsson.org>
1189
1190         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
1191         Haible <bruno@clisp.org>.
1192
1193 2011-05-08  Bruno Haible  <bruno@clisp.org>
1194
1195         Comments.
1196         * m4/isnanf.m4: Add comment.
1197         * m4/isnanl.m4: Likewise.
1198
1199 2011-05-08  Bruno Haible  <bruno@clisp.org>
1200
1201         glob: Remove obsolete macro.
1202         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
1203
1204 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
1205
1206         intprops: Sun C 5.11 supports __typeof__
1207         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
1208         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
1209         which is new.
1210         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
1211
1212         intprops: switch to usual gnulib indenting and naming
1213         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
1214         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
1215
1216         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
1217
1218 2011-05-08  Jim Meyering  <meyering@redhat.com>
1219
1220         maint.mk: suppress "Entering/Leaving directory" diag in announcement
1221         * top/maint.mk (release-prep): Use make's --no-print-directory
1222         option when generating the announcement.  This eliminates the
1223         pesky "make[2]: Entering/Leaving directory" diagnostics in the
1224         generated announcement template.
1225
1226 2011-05-08  Bruno Haible  <bruno@clisp.org>
1227
1228         tzset: Fix gettimeofday wrapper on Solaris 2.6.
1229         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
1230         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
1231
1232 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1233
1234         ignore-value, verify: Omit include files from lib_SOURCES.
1235         * modules/ignore-value, modules/verify (Makefile.am):
1236         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
1237         that leads Automake to duplicate use of am__objects_... variables
1238         in Makefile.in.  See
1239         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
1240
1241 2011-05-07  Bruno Haible  <bruno@clisp.org>
1242
1243         fclose: Simplify autoconf macro.
1244         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
1245         defined.
1246
1247 2011-05-07  Bruno Haible  <bruno@clisp.org>
1248
1249         canonicalize-lgpl: Fix autoconf macro ordering bug.
1250         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
1251         gl_STDLIB_H_DEFAULTS.
1252
1253 2011-05-06  Eric Blake  <eblake@redhat.com>
1254
1255         maintainer-makefile: make sc_po_check easier to tune
1256         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
1257         to probe for strings, such as an alternate location for gnulib.
1258
1259         fclose: guarantee behavior on seekable stdin
1260         * modules/fclose (Depends-on): Add fflush.
1261         * doc/posix-functions/fclose.texi (fclose): Document this.
1262         * tests/test-fclose.c (main): Make test for this unconditional.
1263
1264 2011-05-06  Bruno Haible  <bruno@clisp.org>
1265
1266         fflush, fpurge: Relicense under LGPLv2+.
1267         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
1268         * modules/fpurge (License): Likewise.
1269         With permission from Eric Blake and Jim Meyering.
1270         Suggested by Eric Blake.
1271
1272 2011-05-06  Karl Berry  <karl@gnu.org>
1273
1274         * MODULES.html.sh (func_all_modules): remove exit.
1275
1276 2011-05-06  Jim Meyering  <meyering@redhat.com>
1277
1278         maint.mk: use info-gnu@ as the default only for a stable release
1279         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
1280         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
1281         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
1282         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
1283
1284 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1285
1286         assert-h: new module, which supports C1X-style static_assert
1287         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
1288         * lib/verify.h: Revamp so that this can be copied into assert.h,
1289         while retaining the ability to use it standalone as before.
1290         Rename private identifiers so as not to encroach on the
1291         standard C namespace, since this is now used by assert.h.
1292         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
1293         the old verify_true.
1294         (_GL_VERIFY_TRUE): New macro, with much of the contents of
1295         the old verify_true.  Use _GL_VERIFY_TYPE.
1296         (_GL_VERIFY): New macro, with much of the contents of the old verify.
1297         (static_assert): New macro, if _GL_STATIC_ASSERT_H
1298         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
1299         defined when this file is copied into the replacement assert.h.
1300         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
1301         and _Static_assert is not built in.
1302         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
1303         defined, and use the new macros mentioned above.
1304         * doc/posix-headers/assert.texi: Document this.
1305
1306 2011-05-05  Bruno Haible  <bruno@clisp.org>
1307
1308         fclose, fflush: Respect rules for use of AC_LIBOBJ.
1309         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
1310         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
1311         gl_REPLACE_FCLOSE here.
1312         * modules/fflush (Depends-on): Remove fclose.
1313         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
1314         combination with module 'fclose'.
1315
1316 2011-05-05  Bruno Haible  <bruno@clisp.org>
1317
1318         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
1319         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
1320         gl_FUNC_FFLUSH.
1321         (gl_FUNC_FFLUSH): Use it.
1322         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
1323         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
1324         gl_REPLACE_FSEEKO here.
1325
1326 2011-05-05  Bruno Haible  <bruno@clisp.org>
1327
1328         tzset: Relicense under LGPL.
1329         * modules/tzset (License): Change to LGPL.
1330         No agreement needed; it's a no-op.
1331
1332         strtoimax, strtoumax: Relicense under LGPL.
1333         * modules/strtoimax (License): Change to LGPL.
1334         * modules/strtoumax (License): Likewise.
1335         With permission from Jim Meyering, Paul Eggert:
1336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
1337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
1338
1339         getgroups: Relicense under LGPL.
1340         * modules/getgroups (License): Change to LGPL.
1341         With permission from Jim Meyering, Paul Eggert, Eric Blake:
1342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1345
1346         nanosleep: Relicense under LGPL.
1347         * modules/nanosleep (License): Change to LGPL.
1348         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
1349         Haible:
1350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1354
1355         futimens: Relicense under LGPL.
1356         * modules/futimens (License): Change to LGPL.
1357         With permission from Eric Blake:
1358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1359
1360         fflush: Relicense under LGPL.
1361         * modules/fflush (License): Change to LGPL.
1362         With permission from Eric Blake, Bruno Haible, Jim Meyering:
1363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1365         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
1366
1367         tmpfile: Relicense under LGPL.
1368         * modules/tmpfile (License): Change to LGPL.
1369         With permission from Ben Pfaff:
1370         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1371
1372         isfinite: Relicense under LGPL.
1373         * modules/isfinite (License): Change to LGPL.
1374         With permission from Ben Pfaff, Bruno Haible:
1375         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1376         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
1377
1378         acosl..tanl: Relicense under LGPL.
1379         * modules/acosl (License): Change to LGPL.
1380         * modules/asinl (License): Likewise.
1381         * modules/atanl (License): Likewise.
1382         * modules/cosl (License): Likewise.
1383         * modules/expl (License): Likewise.
1384         * modules/logl (License): Likewise.
1385         * modules/sinl (License): Likewise.
1386         * modules/sqrtl (License): Likewise.
1387         * modules/tanl (License): Likewise.
1388         Source code originally from glibc and Paolo Bonzini. Agreements:
1389         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
1390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
1391
1392 2011-05-05  Bruno Haible  <bruno@clisp.org>
1393
1394         signal: Define sighandler_t.
1395         * lib/signal.in.h (sighandler_t): New type.
1396         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
1397         whether sighandler_t is defined.
1398         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
1399         * modules/signal (Depends-on): Add extensions.
1400         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
1401         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
1402         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
1403
1404 2011-05-05  Eric Blake  <eblake@redhat.com>
1405
1406         maint: remove useless REPLACE_*_H macros
1407         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
1408         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
1409         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
1410         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
1411         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
1412         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
1413         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
1414         * m4/btowc.m4: Update callers.
1415         * m4/dirfd.m4: Likewise.
1416         * m4/duplocale.m4: Likewise.
1417         * m4/fchdir.m4: Likewise.
1418         * m4/fdopendir.m4: Likewise.
1419         * m4/inet_ntop.m4: Likewise.
1420         * m4/inet_pton.m4: Likewise.
1421         * m4/ioctl.m4: Likewise.
1422         * m4/mbrlen.m4: Likewise.
1423         * m4/mbrtowc.m4: Likewise.
1424         * m4/mbsinit.m4: Likewise.
1425         * m4/mbsnrtowcs.m4: Likewise.
1426         * m4/mbsrtowcs.m4: Likewise.
1427         * m4/poll.m4: Likewise.
1428         * m4/setlocale.m4: Likewise.
1429         * m4/wcrtomb.m4: Likewise.
1430         * m4/wcsnrtombs.m4: Likewise.
1431         * m4/wcsrtombs.m4: Likewise.
1432         * m4/wctob.m4: Likewise.
1433         * m4/wcwidth.m4: Likewise.
1434         * modules/posix_spawn: Likewise.
1435         * modules/posix_spawn_file_actions_addclose: Likewise.
1436         * modules/posix_spawn_file_actions_adddup2: Likewise.
1437         * modules/posix_spawn_file_actions_addopen: Likewise.
1438         * modules/posix_spawn_file_actions_destroy: Likewise.
1439         * modules/posix_spawn_file_actions_init: Likewise.
1440         * modules/posix_spawnattr_destroy: Likewise.
1441         * modules/posix_spawnattr_getflags: Likewise.
1442         * modules/posix_spawnattr_getpgroup: Likewise.
1443         * modules/posix_spawnattr_getschedparam: Likewise.
1444         * modules/posix_spawnattr_getschedpolicy: Likewise.
1445         * modules/posix_spawnattr_getsigdefault: Likewise.
1446         * modules/posix_spawnattr_getsigmask: Likewise.
1447         * modules/posix_spawnattr_init: Likewise.
1448         * modules/posix_spawnattr_setflags: Likewise.
1449         * modules/posix_spawnattr_setpgroup: Likewise.
1450         * modules/posix_spawnattr_setschedparam: Likewise.
1451         * modules/posix_spawnattr_setschedpolicy: Likewise.
1452         * modules/posix_spawnattr_setsigdefault: Likewise.
1453         * modules/posix_spawnattr_setsigmask: Likewise.
1454         * modules/posix_spawnp: Likewise.
1455
1456 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
1457
1458         Add option to do-release-commit-and-tag to specify branch.
1459         * build-aux/do-release-commit-and-tag: Add --branch.
1460
1461 2011-05-03  Bruno Haible  <bruno@clisp.org>
1462
1463         Avoid unnecessary compilation units, through conditional dependencies.
1464         * modules/accept (Depends-on): Add conditions to the dependencies.
1465         * modules/acosl (Depends-on): Likewise.
1466         * modules/argz (Depends-on): Likewise.
1467         * modules/asinl (Depends-on): Likewise.
1468         * modules/atanl (Depends-on): Likewise.
1469         * modules/atoll (Depends-on): Likewise.
1470         * modules/bind (Depends-on): Likewise.
1471         * modules/btowc (Depends-on): Likewise.
1472         * modules/canonicalize-lgpl (Depends-on): Likewise.
1473         * modules/ceil (Depends-on): Likewise.
1474         * modules/ceilf (Depends-on): Likewise.
1475         * modules/ceill (Depends-on): Likewise.
1476         * modules/chdir-long (Depends-on): Likewise.
1477         * modules/chown (Depends-on): Likewise.
1478         * modules/close (Depends-on): Likewise.
1479         * modules/connect (Depends-on): Likewise.
1480         * modules/cosl (Depends-on): Likewise.
1481         * modules/dirfd (Depends-on): Likewise.
1482         * modules/dprintf (Depends-on): Likewise.
1483         * modules/dprintf-posix (Depends-on): Likewise.
1484         * modules/error (Depends-on): Likewise.
1485         * modules/euidaccess (Depends-on): Likewise.
1486         * modules/expl (Depends-on): Likewise.
1487         * modules/faccessat (Depends-on): Likewise.
1488         * modules/fchdir (Depends-on): Likewise.
1489         * modules/fclose (Depends-on): Likewise.
1490         * modules/fcntl (Depends-on): Likewise.
1491         * modules/fdopendir (Depends-on): Likewise.
1492         * modules/fflush (Depends-on): Likewise.
1493         * modules/floor (Depends-on): Likewise.
1494         * modules/floorf (Depends-on): Likewise.
1495         * modules/floorl (Depends-on): Likewise.
1496         * modules/fnmatch (Depends-on): Likewise.
1497         * modules/fopen (Depends-on): Likewise.
1498         * modules/fprintf-posix (Depends-on): Likewise.
1499         * modules/frexp (Depends-on): Likewise.
1500         * modules/frexp-nolibm (Depends-on): Likewise.
1501         * modules/frexpl (Depends-on): Likewise.
1502         * modules/frexpl-nolibm (Depends-on): Likewise.
1503         * modules/fseek (Depends-on): Likewise.
1504         * modules/fsusage (Depends-on): Likewise.
1505         * modules/ftell (Depends-on): Likewise.
1506         * modules/ftello (Depends-on): Likewise.
1507         * modules/futimens (Depends-on): Likewise.
1508         * modules/getcwd (Depends-on): Likewise.
1509         * modules/getcwd-lgpl (Depends-on): Likewise.
1510         * modules/getdelim (Depends-on): Likewise.
1511         * modules/getdomainname (Depends-on): Likewise.
1512         * modules/getgroups (Depends-on): Likewise.
1513         * modules/gethostname (Depends-on): Likewise.
1514         * modules/getline (Depends-on): Likewise.
1515         * modules/getlogin_r (Depends-on): Likewise.
1516         * modules/getopt-posix (Depends-on): Likewise.
1517         * modules/getpeername (Depends-on): Likewise.
1518         * modules/getsockname (Depends-on): Likewise.
1519         * modules/getsockopt (Depends-on): Likewise.
1520         * modules/getsubopt (Depends-on): Likewise.
1521         * modules/getusershell (Depends-on): Likewise.
1522         * modules/glob (Depends-on): Likewise.
1523         * modules/grantpt (Depends-on): Likewise.
1524         * modules/iconv_open (Depends-on): Likewise.
1525         * modules/iconv_open-utf (Depends-on): Likewise.
1526         * modules/inet_ntop (Depends-on): Likewise.
1527         * modules/inet_pton (Depends-on): Likewise.
1528         * modules/ioctl (Depends-on): Likewise.
1529         * modules/isapipe (Depends-on): Likewise.
1530         * modules/isfinite (Depends-on): Likewise.
1531         * modules/isinf (Depends-on): Likewise.
1532         * modules/lchown (Depends-on): Likewise.
1533         * modules/ldexpl (Depends-on): Likewise.
1534         * modules/link (Depends-on): Likewise.
1535         * modules/linkat (Depends-on): Likewise.
1536         * modules/listen (Depends-on): Likewise.
1537         * modules/logl (Depends-on): Likewise.
1538         * modules/lstat (Depends-on): Likewise.
1539         * modules/mbrlen (Depends-on): Likewise.
1540         * modules/mbrtowc (Depends-on): Likewise.
1541         * modules/mbsinit (Depends-on): Likewise.
1542         * modules/mbsnrtowcs (Depends-on): Likewise.
1543         * modules/mbsrtowcs (Depends-on): Likewise.
1544         * modules/mbtowc (Depends-on): Likewise.
1545         * modules/memcmp (Depends-on): Likewise.
1546         * modules/mkdir (Depends-on): Likewise.
1547         * modules/mkdtemp (Depends-on): Likewise.
1548         * modules/mkfifo (Depends-on): Likewise.
1549         * modules/mkfifoat (Depends-on): Likewise.
1550         * modules/mknod (Depends-on): Likewise.
1551         * modules/mkostemp (Depends-on): Likewise.
1552         * modules/mkostemps (Depends-on): Likewise.
1553         * modules/mkstemp (Depends-on): Likewise.
1554         * modules/mkstemps (Depends-on): Likewise.
1555         * modules/mktime (Depends-on): Likewise.
1556         * modules/nanosleep (Depends-on): Likewise.
1557         * modules/open (Depends-on): Likewise.
1558         * modules/openat (Depends-on): Likewise.
1559         * modules/perror (Depends-on): Likewise.
1560         * modules/poll (Depends-on): Likewise.
1561         * modules/popen (Depends-on): Likewise.
1562         * modules/posix_spawn (Depends-on): Likewise.
1563         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
1564         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1565         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1566         * modules/posix_spawnp (Depends-on): Likewise.
1567         * modules/pread (Depends-on): Likewise.
1568         * modules/printf-posix (Depends-on): Likewise.
1569         * modules/ptsname (Depends-on): Likewise.
1570         * modules/putenv (Depends-on): Likewise.
1571         * modules/pwrite (Depends-on): Likewise.
1572         * modules/readline (Depends-on): Likewise.
1573         * modules/readlink (Depends-on): Likewise.
1574         * modules/readlinkat (Depends-on): Likewise.
1575         * modules/recv (Depends-on): Likewise.
1576         * modules/recvfrom (Depends-on): Likewise.
1577         * modules/regex (Depends-on): Likewise.
1578         * modules/remove (Depends-on): Likewise.
1579         * modules/rename (Depends-on): Likewise.
1580         * modules/renameat (Depends-on): Likewise.
1581         * modules/rmdir (Depends-on): Likewise.
1582         * modules/round (Depends-on): Likewise.
1583         * modules/roundf (Depends-on): Likewise.
1584         * modules/roundl (Depends-on): Likewise.
1585         * modules/rpmatch (Depends-on): Likewise.
1586         * modules/select (Depends-on): Likewise.
1587         * modules/send (Depends-on): Likewise.
1588         * modules/sendto (Depends-on): Likewise.
1589         * modules/setenv (Depends-on): Likewise.
1590         * modules/setlocale (Depends-on): Likewise.
1591         * modules/setsockopt (Depends-on): Likewise.
1592         * modules/shutdown (Depends-on): Likewise.
1593         * modules/sigaction (Depends-on): Likewise.
1594         * modules/signbit (Depends-on): Likewise.
1595         * modules/sigprocmask (Depends-on): Likewise.
1596         * modules/sinl (Depends-on): Likewise.
1597         * modules/sleep (Depends-on): Likewise.
1598         * modules/snprintf (Depends-on): Likewise.
1599         * modules/snprintf-posix (Depends-on): Likewise.
1600         * modules/socket (Depends-on): Likewise.
1601         * modules/sprintf-posix (Depends-on): Likewise.
1602         * modules/sqrtl (Depends-on): Likewise.
1603         * modules/stat (Depends-on): Likewise.
1604         * modules/strchrnul (Depends-on): Likewise.
1605         * modules/strdup-posix (Depends-on): Likewise.
1606         * modules/strerror (Depends-on): Likewise.
1607         * modules/strerror_r-posix (Depends-on): Likewise.
1608         * modules/strndup (Depends-on): Likewise.
1609         * modules/strnlen (Depends-on): Likewise.
1610         * modules/strptime (Depends-on): Likewise.
1611         * modules/strsep (Depends-on): Likewise.
1612         * modules/strsignal (Depends-on): Likewise.
1613         * modules/strstr-simple (Depends-on): Likewise.
1614         * modules/strtod (Depends-on): Likewise.
1615         * modules/strtoimax (Depends-on): Likewise.
1616         * modules/strtok_r (Depends-on): Likewise.
1617         * modules/strtoumax (Depends-on): Likewise.
1618         * modules/symlink (Depends-on): Likewise.
1619         * modules/symlinkat (Depends-on): Likewise.
1620         * modules/tanl (Depends-on): Likewise.
1621         * modules/tcgetsid (Depends-on): Likewise.
1622         * modules/tmpfile (Depends-on): Likewise.
1623         * modules/trunc (Depends-on): Likewise.
1624         * modules/truncf (Depends-on): Likewise.
1625         * modules/truncl (Depends-on): Likewise.
1626         * modules/uname (Depends-on): Likewise.
1627         * modules/unlink (Depends-on): Likewise.
1628         * modules/unlockpt (Depends-on): Likewise.
1629         * modules/unsetenv (Depends-on): Likewise.
1630         * modules/usleep (Depends-on): Likewise.
1631         * modules/utimensat (Depends-on): Likewise.
1632         * modules/vasprintf (Depends-on): Likewise.
1633         * modules/vdprintf (Depends-on): Likewise.
1634         * modules/vdprintf-posix (Depends-on): Likewise.
1635         * modules/vfprintf-posix (Depends-on): Likewise.
1636         * modules/vprintf-posix (Depends-on): Likewise.
1637         * modules/vsnprintf (Depends-on): Likewise.
1638         * modules/vsnprintf-posix (Depends-on): Likewise.
1639         * modules/vsprintf-posix (Depends-on): Likewise.
1640         * modules/wcrtomb (Depends-on): Likewise.
1641         * modules/wcscasecmp (Depends-on): Likewise.
1642         * modules/wcscspn (Depends-on): Likewise.
1643         * modules/wcsdup (Depends-on): Likewise.
1644         * modules/wcsncasecmp (Depends-on): Likewise.
1645         * modules/wcsnrtombs (Depends-on): Likewise.
1646         * modules/wcspbrk (Depends-on): Likewise.
1647         * modules/wcsrtombs (Depends-on): Likewise.
1648         * modules/wcsspn (Depends-on): Likewise.
1649         * modules/wcsstr (Depends-on): Likewise.
1650         * modules/wcstok (Depends-on): Likewise.
1651         * modules/wcswidth (Depends-on): Likewise.
1652         * modules/wctob (Depends-on): Likewise.
1653         * modules/wctomb (Depends-on): Likewise.
1654         * modules/wctype (Depends-on): Likewise.
1655         * modules/wcwidth (Depends-on): Likewise.
1656         * modules/write (Depends-on): Likewise.
1657
1658 2011-05-03  Bruno Haible  <bruno@clisp.org>
1659
1660         Support for conditional dependencies.
1661         * doc/gnulib.texi (Module description): Document the syntax of
1662         conditional dependencies.
1663         * gnulib-tool: New option --conditional-dependencies.
1664         (func_usage): Document it.
1665         (cond_dependencies): New variable.
1666         (func_get_automake_snippet_conditional,
1667         func_get_automake_snippet_unconditional): New functions, extracted from
1668         func_get_automake_snippet.
1669         (func_get_automake_snippet): Use them.
1670         (sed_first_32_chars): New variable.
1671         (func_module_shellfunc_name): New function.
1672         (func_module_shellvar_name): New function.
1673         (func_module_conditional_name): New function.
1674         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
1675         func_cond_module_condition): New functions.
1676         (func_modules_transitive_closure): Add support for conditional
1677         dependencies.
1678         (func_emit_lib_Makefile_am): For a conditional module, enclose the
1679         conditional automake snippet in an automake conditional.
1680         (func_emit_autoconf_snippets): Emit shell functions that contain the
1681         code for conditional modules.
1682         (func_import, func_create_testdir): Update specification.
1683
1684 2011-05-03  Eric Blake  <eblake@redhat.com>
1685
1686         test-getaddrinfo: report error information
1687         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
1688
1689 2011-05-03  Jim Meyering  <meyering@redhat.com>
1690
1691         bootstrap: avoid build failure when $GZIP is set
1692         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
1693         program name.  If defined at all, it is supposed to list gzip options.
1694         Reported by Alan Curry in http://debbugs.gnu.org/8609
1695
1696 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
1697
1698         readme-release: new module with release instructions
1699         * modules/readme-release: New module.
1700         * top/README-release: New file, from coreutils, grep, diffutils.
1701         * MODULES.html.sh (Support for maintaining and releasing): Add it.
1702
1703 2011-05-02  Eric Blake  <eblake@redhat.com>
1704
1705         fflush: also replace fclose when fixing fflush
1706         * modules/fflush (Depends-on): Add fclose.
1707         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
1708         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
1709         memstreams with no backing fd.
1710         * doc/posix-functions/fclose.texi (fclose): Document the use of
1711         fflush module to fix the bug.
1712         * tests/test-fclose.c (main): Relax test when fclose is used in
1713         isolation.
1714
1715         fclose: add some tests
1716         * modules/fclose-tests: New test module.
1717         * tests/test-fclose.c: New file.
1718         * doc/posix-functions/fclose.texi (fclose): Document the bug.
1719
1720         fclose: reduced dependencies
1721         * modules/fclose (Depends-on): Switch from fflush/fseeko to
1722         simpler lseek.
1723         * lib/fclose.c (rpl_fclose): Likewise.
1724         Reported by Simon Josefsson.
1725
1726         exit: drop remaining clients
1727         * modules/argmatch (Depends-on): Replace exit with stdlib.
1728         * modules/copy-file (Depends-on): Likewise.
1729         * modules/execute (Depends-on): Likewise.
1730         * modules/exitfail (Depends-on): Likewise.
1731         * modules/obstack (Depends-on): Likewise.
1732         * modules/pagealign_alloc (Depends-on): Likewise.
1733         * modules/pipe-filter-gi (Depends-on): Likewise.
1734         * modules/pipe-filter-ii (Depends-on): Likewise.
1735         * modules/savewd (Depends-on): Likewise.
1736         * modules/spawn-pipe (Depends-on): Likewise.
1737         * modules/wait-process (Depends-on): Likewise.
1738         * modules/xsetenv (Depends-on): Likewise.
1739         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
1740         * modules/git-merge-changelog (Depends-on): Likewise.
1741         * modules/long-options (Depends-on): Likewise.
1742         * modules/pt_chown (Depends-on): Likewise.
1743         * modules/sysexits (Depends-on): Likewise.
1744
1745         freading: relax license from LGPLv3+ to LGPLv2+
1746         * modules/freading (License): Relax LGPL version.
1747
1748 2011-05-02  Bruno Haible  <bruno@clisp.org>
1749
1750         fchdir: Remove unused dependencies.
1751         * modules/fchdir (Depends-on): Remove include_next.
1752
1753 2011-05-02  Bruno Haible  <bruno@clisp.org>
1754
1755         gnulib-tool: Refactor.
1756         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
1757         from func_emit_autoconf_snippets.
1758         (func_emit_autoconf_snippets): Use it.
1759
1760 2011-05-02  Simon Josefsson  <simon@josefsson.org>
1761
1762         * NEWS: Document removal of 'exit'.
1763         * modules/exit: Remove file.
1764
1765 2011-05-01  Bruno Haible  <bruno@clisp.org>
1766
1767         Update DEPENDENCIES.
1768         * DEPENDENCIES (gettext): Recommend the newest release.
1769         Reported by Simon Josefsson.
1770
1771 2011-05-01  Bruno Haible  <bruno@clisp.org>
1772
1773         gnulib-tool: Reduce code duplication.
1774         * gnulib-tool (func_emit_autoconf_snippets): New function.
1775         (func_import, func_create_testdir): Use it.
1776
1777 2011-04-30  Eric Blake  <eblake@redhat.com>
1778
1779         fclose: don't fail on non-seekable input stream
1780         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
1781         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
1782         since fflush is allowed to fail in that case.
1783
1784 2011-04-30  Bruno Haible  <bruno@clisp.org>
1785
1786         dup3: cleanup
1787         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
1788
1789 2011-04-30  Bruno Haible  <bruno@clisp.org>
1790
1791         netdb: Make it work in C++ mode.
1792         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
1793         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
1794         module.
1795         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
1796         gl_MODULE_INDICATOR_FOR_TESTS.
1797         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
1798         * modules/netdb-c++-tests: New file.
1799         * tests/test-netdb-c++.cc: New file.
1800
1801 2011-04-30  Bruno Haible  <bruno@clisp.org>
1802
1803         New modules 'vfscanf', 'vscanf'.
1804         * modules/vfscanf: New file.
1805         * modules/vscanf: New file.
1806         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
1807         here.
1808         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
1809         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
1810
1811 2011-04-30  Bruno Haible  <bruno@clisp.org>
1812
1813         passfd: Add comments.
1814         * lib/passfd.c: Add comments about platforms.
1815
1816 2011-04-30  Bruno Haible  <bruno@clisp.org>
1817
1818         sys_uio: Make <sys/uio.h> self-contained.
1819         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
1820         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
1821
1822 2011-04-30  Bruno Haible  <bruno@clisp.org>
1823
1824         sys_socket: Ensure 'struct iovec' definition.
1825         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
1826         <sys/socket.h>.
1827         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
1828
1829 2011-04-30  Bruno Haible  <bruno@clisp.org>
1830
1831         sys_uio: Protect definition of 'struct iovec'.
1832         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
1833         it as a C struct.
1834
1835 2011-04-30  Bruno Haible  <bruno@clisp.org>
1836
1837         manywarnings: fix indentation
1838         * m4/manywarnings.m4: Indent by 2 spaces consistently.
1839
1840 2011-04-30  Pádraig Brady <P@draigBrady.com>
1841
1842         manywarnings: add -Wno-missing-field-initializers if needed.
1843         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
1844         option if it's needed to allow initialization with { 0, }
1845
1846 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
1847
1848         announce-gen: cosmetic improvement
1849         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
1850
1851 2011-04-29  Jim Meyering  <meyering@redhat.com>
1852
1853         vc-list-files: indent with spaces, not TABs
1854         * build-aux/vc-list-files: Convert leading TABs to spaces,
1855         to match the style of most other files in gnulib.
1856
1857         announce-gen: indent with spaces, not TABs
1858         * build-aux/announce-gen: Convert all TABs to spaces, to match
1859         the style of most other files in gnulib.
1860
1861 2011-04-29  Eric Blake  <eblake@redhat.com>
1862
1863         quotearg: avoid uninitialized variable use
1864         * lib/quotearg.c (quoting_options_from_style): Initialize
1865         remaining fields, and ensure that custom styles are only used via
1866         quoting_options rather than quoting_style.
1867
1868 2011-04-29  Jim Meyering  <meyering@redhat.com>
1869
1870         maint.mk: remove unused VC-tag variable
1871         * top/maint.mk (VC-tag): Remove unused variable.
1872
1873 2011-04-29  Bruno Haible  <bruno@clisp.org>
1874
1875         netdb: fix gai_strerror replacements
1876         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
1877         * modules/netdb: Substitute it.
1878
1879 2011-04-29  Jim Meyering  <meyering@redhat.com>
1880
1881         test-getcwd.c: avoid new set-but-not-used warning
1882         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
1883         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
1884         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
1885         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
1886
1887         test-hash.c: avoid a new shadowing warning
1888         * tests/test-hash.c (main): Don't shadow "dup".
1889
1890 2011-04-28  Eric Blake  <eblake@redhat.com>
1891
1892         getaddrinfo: fix gai_strerror signature
1893         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
1894         and work around mingw with UNICODE defined.
1895         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
1896         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
1897         * modules/netdb (Makefile.am): Substitute it.
1898         * lib/netdb.in.h (gai_strerror): Declare replacement.
1899         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
1900         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
1901         the fix.
1902
1903         getsockopt: avoid compiler warning
1904         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
1905         Reported by Matthias Bolte.
1906
1907         tests: drop unused link dependency
1908         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
1909         * modules/dirent-safer-tests (Makefile.am): Likewise.
1910         * modules/fdopendir-tests (Makefile.am): Likewise.
1911         * modules/mkfifoat-tests (Makefile.am): Likewise.
1912         * modules/openat-safer-tests (Makefile.am): Likewise.
1913         * modules/openat-tests (Makefile.am): Likewise.
1914         * modules/readlinkat-tests (Makefile.am): Likewise.
1915         * modules/symlinkat-tests (Makefile.am): Likewise.
1916         * modules/linkat-tests (Makefile.am): Likewise.
1917         (Depends-on): Switch to filenamecat-lgpl.
1918         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
1919         LIBINTL.
1920         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
1921         * tests/test-linkat.c (main): Don't require xalloc.
1922
1923         hash, mgetgroups: drop xalloc dependency
1924         * lib/hash.c (includes): Adjust includes.
1925         * lib/mgetgroups.c (includes): Likewise.
1926         (xgetgroups): Move...
1927         * lib/xgetgroups.c: ...to new file.
1928         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
1929         * modules/xgetgroups: New file, split from...
1930         * modules/mgetgroups: ...here.
1931         (Depends-on): Add xalloc-oversized.
1932         * modules/hash (Depends-on): Likewise.
1933         * modules/hash-tests (Depends-on): Drop xalloc.
1934         (test_hash_LDADD): Drop unused library.
1935         * tests/test-hash.c (main): Break xalloc dependency.
1936         (includes): Drop unused include.
1937
1938         xalloc-oversized: new module
1939         * modules/xalloc-oversized: New module.
1940         * modules/xalloc (Depends-on): Add it.
1941         * lib/xalloc.h (xalloc_oversized): Move...
1942         * lib/xalloc-oversized.h: ...into new file.
1943
1944         utimecmp: drop dependency on xmalloc
1945         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
1946         due to memory pressure.
1947         * modules/utimecmp (Depends-on): Drop xalloc.
1948
1949 2011-04-27  Eric Blake  <eblake@redhat.com>
1950
1951         getcwd: fix mingw bugs
1952         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
1953         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
1954         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
1955
1956 2011-04-27  Bruno Haible  <bruno@clisp.org>
1957
1958         mkstemps: Ensure declaration on MacOS X 10.5.
1959         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
1960         * doc/glibc-functions/mkstemps.texi: Document header file problem on
1961         MacOS X.
1962
1963 2011-04-27  Bruno Haible  <bruno@clisp.org>
1964
1965         mkstemp: More documentation.
1966         * doc/posix-functions/mkstemp.texi: Document header file problem on
1967         MacOS X.
1968
1969 2011-04-27  Bruno Haible  <bruno@clisp.org>
1970
1971         mkstemp: Tweak configure message when cross-compiling.
1972         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
1973         result as a guess.
1974
1975 2011-04-27  Bruno Haible  <bruno@clisp.org>
1976
1977         clean-temp: Clarify what it does.
1978         * lib/clean-temp.h: Add more comments.
1979         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
1980         module.
1981         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
1982         * doc/glibc-functions/mkstemps.texi: Likewise.
1983         * doc/glibc-functions/mkostemps.texi: Likewise.
1984
1985 2011-04-27  Eric Blake  <eblake@redhat.com>
1986
1987         fchdir: avoid extra chdir and fix test
1988         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
1989         getcwd-lgpl.
1990         * lib/fchdir.c (get_name): Any absolute name will do; it does not
1991         have to be canonical.
1992         (canonicalize_file_name): Drop unused macro.
1993         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
1994
1995         filenamecat-lgpl: fix licence
1996         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
1997         when it was first created.
1998
1999         linkat, renameat: add missing dependency
2000         * modules/linkat (Depends-on): Require getcwd-lgpl.
2001         * modules/renameat (Depends-on): Likewise.
2002
2003         tests: reduce dependencies
2004         * tests/test-linkat.c (main): Use lighter-weight getcwd.
2005         * tests/test-renameat.c (main): Likewise.
2006         * modules/linkat-tests (Depends-on): Relax dependency.
2007         * modules/renameat-tests (Depends-on): Likewise.
2008         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
2009         dependency explicit.
2010
2011         save-cwd: reduce default dependency
2012         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
2013         * lib/save-cwd.c: Update comments.
2014         * NEWS: Document the semantic change.
2015
2016         getcwd: enhance tests
2017         * tests/test-getcwd-lgpl.c: New file, taken from...
2018         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
2019         repeat long path stress tests from m4 probe.
2020         * modules/getcwd-lgpl-tests: New module.
2021         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
2022         * m4/getcwd-abort-bug.m4: Update comment.
2023         * m4/getcwd-path-max.m4: Likewise.
2024
2025         getcwd-lgpl: new module
2026         * modules/getcwd-lgpl: New module.
2027         * lib/getcwd-lgpl.c: New file.
2028         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2029         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2030         * modules/getcwd (configure.ac): Set C witness.
2031         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
2032
2033         getcwd: tweak comments
2034         * m4/getcwd-abort-bug.m4: Fix comments.
2035         * m4/getcwd-path-max.m4: Likewise.
2036         * m4/getcwd.m4: Likewise.
2037
2038 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2039         and Eric Blake  <eblake@redhat.com>
2040
2041         mkstemp: replace if system version uses wrong permissions
2042         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
2043         read/write mode bits set in file created by mkstemp.
2044         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
2045
2046 2011-04-27  Eric Blake  <eblake@redhat.com>
2047
2048         passfd: avoid compiler warning
2049         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
2050         Reported by Laine Stump.
2051
2052 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
2053
2054         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
2055         required by the NetBSD (and perhaps other 4.4BSD derived) join.
2056
2057 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2058         and Eric Blake  <eblake@redhat.com>
2059
2060         mkstemp: mention clean-temp module
2061         * lib/mkstemp.c: Add comment.
2062         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
2063
2064 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2065
2066         inttypes: also provide default values for 32-bit tests
2067         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
2068         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
2069
2070 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
2071
2072         strtoumax: remove dependency on strtoimax
2073         This is like the strtoull change of yesterday.
2074         * modules/strtoumax (Files): Add lib/strtoimax.c.
2075         (Depends-on): Remove strtoimax and add verify.
2076
2077         inttypes-incomplete: new module
2078         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
2079         all but the PRI* and SCN* parts of gl_INTTYPES_H.
2080         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
2081         of gl_INTTYPES_H.
2082         (gl_INTTYPES_H): Rewrite in terms of these new macros.
2083         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
2084         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
2085         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
2086         * modules/strtoumax, modules/xstrtol (Depends-on):
2087         Depend on inttypes-incomplete, not inttypes.
2088         * modules/inttypes-incomplete: New module, containing the contents
2089         of the old modules/inttypes module, except that the Files: section
2090         omits m4/inttypes-pri.m4, and the configure.ac section invokes
2091         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
2092         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
2093         (Depends-on): Depend only on inttypes-incomplete.
2094         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
2095
2096         inttypes: omit now-redundant strtoimax and strtoumax work
2097         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
2098         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
2099
2100         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
2101         This supports apps that need pointers to strtoimax and strtoumax,
2102         and ports to HP-UX 11.00 64.bit, which has macros that expand to
2103         nonexistent functions.  See
2104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
2105         et seq.
2106         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
2107         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
2108         a macro.
2109         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2110
2111 2011-04-25  Simon Josefsson  <simon@josefsson.org>
2112
2113         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
2114
2115 2011-04-25  Bruno Haible  <bruno@clisp.org>
2116
2117         strtol, strtoul: Mark modules as obsolete.
2118         * modules/strtol (Status, Notice): New sections.
2119         * modules/strtoul (Status, Notice): New sections.
2120
2121 2011-04-25  Bruno Haible  <bruno@clisp.org>
2122
2123         strtod: Remove check for strtod, unless supporting old platforms.
2124         * modules/strtod-obsolete: New file.
2125         * m4/strtod-obsolete.m4: New file.
2126         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
2127         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
2128         * modules/strtod (Depends-on): Add strtod-obsolete.
2129         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
2130
2131 2011-04-25  Bruno Haible  <bruno@clisp.org>
2132
2133         strcase: Make module obsolete.
2134         * modules/strcase (Status, Notice): New sections.
2135
2136 2011-04-25  Bruno Haible  <bruno@clisp.org>
2137
2138         dup2: Remove check for dup2, unless supporting old obsolete platforms.
2139         * modules/dup2-obsolete: New file.
2140         * m4/dup2-obsolete.m4: New file.
2141         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
2142         gl_FUNC_DUP2_OBSOLETE is not also defined.
2143         * modules/dup2 (Depends-on): Add dup2-obsolete.
2144         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
2145
2146 2011-04-25  Bruno Haible  <bruno@clisp.org>
2147
2148         strnlen: Avoid memchr related link error on old obsolete platforms.
2149         * modules/memchr-obsolete: New file.
2150         * m4/memchr-obsolete.m4: New file.
2151         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
2152         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
2153         * modules/memchr (Depends-on): Add memchr-obsolete.
2154         * modules/strnlen (Depends-on): Likewise.
2155         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
2156
2157 2011-04-25  Jim Meyering  <meyering@redhat.com>
2158
2159         maint.mk: makefile_at_at_check extend and clean up
2160         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
2161         in addition to */Makefile.am.
2162         Exempt legitimate uses of @VAR@ notation, e.g.,
2163         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
2164         Remove obsolete coreutils-specific comment.
2165         Prompted by discussion here:
2166         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
2167
2168 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
2169
2170         strtoul: remove dependency on strtol
2171         This is so that 'configure' need not check for strtol merely because
2172         the application needs strtoul.
2173         * modules/strtoul (Files): Add lib/strtol.c.
2174         (Depends-on): Remove strtol.
2175
2176         strtoull: remove dependency on strtoul
2177         This is like the strtoll change.
2178         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
2179         (Depends-on): Remove strtoul.
2180
2181         strtoll: remove dependency on strtol
2182         This is so that 'configure' need not check for strtol merely because
2183         the application needs strtoll.
2184         * modules/strtoll (Files): Add lib/strtol.c.
2185         (Depends-on): Remove strtol.
2186
2187 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2188
2189         inttypes: Move some configure check to module 'imaxdiv'.
2190         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
2191         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
2192         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
2193
2194 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2195
2196         inttypes: Move some configure check to module 'imaxabs'.
2197         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
2198         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
2199         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
2200
2201 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2202
2203         inttypes: Remove configure tests that are not needed since 2009-12-31.
2204         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
2205         gl_cv_header_working_inttypes_h.
2206
2207 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2208
2209         * modules/strnlen (Depends-on): Remove memchr.
2210         The strnlen implementation doesn't need the memchr module's fixes; see
2211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
2212
2213         strtol: remove dependency on wchar
2214         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
2215         * modules/strtol (Depends-on): Remove wchar.
2216
2217 2011-04-21  Eric Blake  <eblake@redhat.com>
2218
2219         passfd: fix test regression on Linux
2220         * modules/passfd-tests (configure.ac): Correct socketpair check.
2221
2222         passfd: speed up configure and drop unused code
2223         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
2224         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
2225         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
2226         Instead of probing at configure for unix_scm_rights_bsd44_way,
2227         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
2228         check to a struct member probe.
2229         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
2230         (sendfd, recvfd): Update preprocessor checks.
2231         * modules/passfd (Files): Reflect rename, and drop unused file.
2232         (Depends-on): Drop unused dependency.
2233
2234         passfd: allow compilation on mingw
2235         * modules/sys_socket (Depends-on): Add sys_uio.
2236         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
2237         iovec and a minimal struct msghdr.
2238         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
2239         * tests/test-sys_socket.c (main): Enhance test.
2240         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
2241         guaranteed to provide what we need.
2242         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
2243         * modules/passfd-tests (Depends-on): Add sys_wait.
2244         * tests/test-passfd.c (main): Skip test on mingw, for now.
2245         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
2246         partial 'struct msghdr' implementation.
2247
2248         sys_uio: new module
2249         * modules/sys_uio: New module.
2250         * modules/sys_uio-tests: Likewise.
2251         * lib/sys_uio.in.h: New file.
2252         * m4/sys_uio_h.m4: Likewise.
2253         * tests/test-sys_uio.c: Likewise.
2254         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
2255         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
2256
2257 2011-04-20  Jim Meyering  <meyering@redhat.com>
2258
2259         useless-if-before-free: avoid false-positive
2260         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
2261         disjunct so that it too requires a terminating ";".  Without that,
2262         this script would identify as useless one statement from gcc that
2263         was not:
2264           if (aligned_ptr)
2265             free (((void **) aligned_ptr) [-1]);
2266
2267 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
2268
2269         doc: update users.txt.
2270         * users.txt: Add barcode.
2271
2272 2011-04-19  Bruno Haible  <bruno@clisp.org>
2273
2274         ioctl: Remove link dependency on native Windows.
2275         * lib/fd-hook.h: Renamed from lib/close-hook.h.
2276         (gl_close_fn, gl_ioctl_fn): New types.
2277         (struct fd_hook): Renamed from struct close_hook. Change type of
2278         private_close_fn field. Add private_ioctl_fn field.
2279         (close_hook_fn): Add parameter for primary close method.
2280         (execute_close_hooks, execute_all_close_hooks): Likewise.
2281         (ioctl_hook_fn): New type.
2282         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
2283         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2284         argument.
2285         (unregister_fd_hook): Renamed from unregister_close_hook.
2286         * lib/fd-hook.c: Renamed from lib/close-hook.c.
2287         Don't include <unistd.h>.
2288         (close): Remove undef.
2289         (anchor): Update.
2290         (execute_close_hooks): Add argument for primary close method.
2291         (execute_all_close_hooks): Likewise.
2292         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
2293         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2294         argument. Allow each argument to be NULL.
2295         (unregister_fd_hook): Renamed from unregister_close_hook.
2296         * lib/close.c (rpl_close): Pass 'close' function pointer to
2297         execute_all_close_hooks.
2298         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
2299         (primary_ioctl): New function.
2300         (ioctl): Don't call ioctlsocket here. Instead, call
2301         execute_all_ioctl_hooks.
2302         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
2303         close method.
2304         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
2305         (fd_sockets_hook): Renamed from close_sockets_hook.
2306         (gl_sockets_startup, gl_sockets_cleanup): Update.
2307         * modules/fd-hook: Renamed from modules/close-hook. Update.
2308         * modules/close (Depends-on): Add fd-hook, remove close-hook.
2309         * modules/sockets (Depends-on): Likewise.
2310         * modules/ioctl (Depends-on): Add fd-hook.
2311         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
2312         GNULIB_SOCKET.
2313
2314 2011-04-19  Bruno Haible  <bruno@clisp.org>
2315
2316         Move the support of O_NONBLOCK in open() to the 'open' module.
2317         * modules/nonblocking (Depends-on): Remove 'open'.
2318         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
2319         gl_cv_have_open_O_NONBLOCK.
2320         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
2321         O_NONBLOCK support.
2322         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
2323
2324 2011-04-17  Bruno Haible  <bruno@clisp.org>
2325
2326         pipe2: Simplify code.
2327         * lib/pipe2.c (pipe2): Reduce code duplication.
2328
2329 2011-04-17  Bruno Haible  <bruno@clisp.org>
2330
2331         nonblocking: Add comment.
2332         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
2333
2334 2011-04-17  Bruno Haible  <bruno@clisp.org>
2335
2336         nonblocking: Add tests for sockets.
2337         * tests/test-nonblocking-socket.sh: New file.
2338         * tests/test-nonblocking-socket-main.c: New file.
2339         * tests/test-nonblocking-socket-child.c: New file.
2340         * tests/test-nonblocking-socket.h: New file.
2341         * tests/socket-server.h: New file.
2342         * tests/socket-client.h: New file.
2343         * modules/nonblocking-socket-tests: New file.
2344         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
2345
2346 2011-04-17  Bruno Haible  <bruno@clisp.org>
2347
2348         nonblocking: Add tests for pipes.
2349         * tests/test-nonblocking-pipe.sh: New file.
2350         * tests/test-nonblocking-pipe-main.c: New file.
2351         * tests/test-nonblocking-pipe-child.c: New file.
2352         * tests/test-nonblocking-pipe.h: New file.
2353         * tests/test-nonblocking-writer.h: New file.
2354         * tests/test-nonblocking-reader.h: New file.
2355         * tests/test-nonblocking-misc.h: New file.
2356         * modules/nonblocking-pipe-tests: New file.
2357         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
2358
2359 2011-04-16  Bruno Haible  <bruno@clisp.org>
2360
2361         gettext: Clarify the needed programmer actions.
2362         * modules/gettext (Notice): New field.
2363         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2364
2365 2011-04-16  Bruno Haible  <bruno@clisp.org>
2366
2367         strchrnul: Tweak last commit.
2368         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
2369         bug.
2370         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
2371         as in _GL_FUNCDECL_SYS.
2372         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
2373         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
2374
2375 2011-04-15  Eric Blake  <eblake@redhat.com>
2376
2377         strchrnul: work around cygwin bug
2378         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
2379         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
2380         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
2381         * modules/string (Makefile.am): Substitute it.
2382         * lib/string.in.h (strchrnul): Use it.
2383
2384 2011-04-15  Bruno Haible  <bruno@clisp.org>
2385
2386         Don't require lib/stdio-write.c when only module 'stdio' is used.
2387         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
2388         invocation.
2389         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
2390
2391 2011-04-14  Bruno Haible  <bruno@clisp.org>
2392
2393         Support non-blocking pipe I/O in read() on native Windows.
2394         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
2395         (read): New declaration.
2396         * lib/read.c: New file.
2397         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
2398         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
2399         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
2400         vscanf): New declarations.
2401         * lib/stdio-read.c: New file.
2402         * m4/read.m4: New file.
2403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
2404         REPLACE_READ.
2405         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
2406         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2407         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
2408         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
2409         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
2410         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2411         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2412         * modules/read: New file.
2413         * modules/nonblocking (Files): Add lib/stdio-read.c.
2414         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
2415         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
2416         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2417         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2418         * modules/pread (Depends-on): Add read.
2419         * modules/safe-read (Depends-on): Likewise.
2420         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
2421         gets, scanf, vfscanf, vscanf): Verify signatures.
2422         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
2423         problem with non-blocking pipes.
2424         * doc/posix-functions/fgetc.texi: Likewise.
2425         * doc/posix-functions/fgets.texi: Likewise.
2426         * doc/posix-functions/fread.texi: Likewise.
2427         * doc/posix-functions/fscanf.texi: Likewise.
2428         * doc/posix-functions/getc.texi: Likewise.
2429         * doc/posix-functions/getchar.texi: Likewise.
2430         * doc/posix-functions/gets.texi: Likewise.
2431         * doc/posix-functions/scanf.texi: Likewise.
2432         * doc/posix-functions/vfscanf.texi: Likewise.
2433         * doc/posix-functions/vscanf.texi: Likewise.
2434
2435 2011-04-14  Bruno Haible  <bruno@clisp.org>
2436
2437         Support non-blocking pipe I/O in write() on native Windows.
2438         * lib/write.c (rpl_write): Split a write request that failed merely
2439         because the byte count was larger than the pipe buffer's size.
2440         * doc/posix-functions/write.texi: Mention the problem with large byte
2441         counts.
2442
2443 2011-04-14  Bruno Haible  <bruno@clisp.org>
2444
2445         wchar: Ensure that wchar_t gets defined on uClibc.
2446         * lib/wchar.in.h: On uClibc, include <stddef.h>.
2447         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
2448
2449 2011-04-13  Bruno Haible  <bruno@clisp.org>
2450
2451         safe-write, full-read: Avoid unnecessary compilation units.
2452         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
2453         (Depends-on): Remove safe-read. Add ssize_t.
2454         * modules/full-read (Files): Add lib/full-write.c.
2455         (Depends-on): Add full-write.
2456
2457 2011-04-13  Bruno Haible  <bruno@clisp.org>
2458
2459         Support non-blocking pipe I/O and SIGPIPE in pwrite().
2460         * modules/pwrite (Depends-on): Add 'write'.
2461
2462 2011-04-13  Bruno Haible  <bruno@clisp.org>
2463
2464         Support non-blocking pipe I/O in write() on native Windows.
2465         * lib/unistd.in.h (write): Enable replacement also if
2466         GNULIB_UNISTD_H_NONBLOCKING is 1.
2467         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
2468         (rpl_write): When failing to write on a non-blocking pipe, change
2469         errno from ENOSPC to EAGAIN.
2470         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
2471         putchar, puts, vfprintf, vprintf): Enable replacement also if
2472         GNULIB_STDIO_H_NONBLOCKING is 1.
2473         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
2474         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
2475         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
2476         CALL_WITH_SIGPIPE_EMULATION.
2477         (CALL_WITH_SIGPIPE_EMULATION): Use them.
2478         * m4/nonblocking.m4: New file.
2479         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
2480         for non-blocking I/O support.
2481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2482         GNULIB_UNISTD_H_NONBLOCKING.
2483         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
2484         required for non-blocking I/O support.
2485         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
2486         * modules/nonblocking (Files): Add m4/nonblocking.m4,
2487         lib/stdio-write.c, m4/asm-underscore.m4.
2488         (Depends-on): Add stdio, unistd.
2489         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
2490         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
2491         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
2492         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
2493         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
2494         problem with non-blocking pipes.
2495         * doc/posix-functions/fputc.texi: Likewise.
2496         * doc/posix-functions/fputs.texi: Likewise.
2497         * doc/posix-functions/fwrite.texi: Likewise.
2498         * doc/posix-functions/printf.texi: Likewise.
2499         * doc/posix-functions/putc.texi: Likewise.
2500         * doc/posix-functions/putchar.texi: Likewise.
2501         * doc/posix-functions/puts.texi: Likewise.
2502         * doc/posix-functions/vfprintf.texi: Likewise.
2503         * doc/posix-functions/vprintf.texi: Likewise.
2504         * doc/posix-functions/write.texi: Likewise.
2505
2506 2011-04-10  Jim Meyering  <meyering@redhat.com>
2507
2508         maint.mk: prohibit doubled words
2509         Detect them also when they're separated by a newline.
2510         There are 3 ways to customize it:
2511           - disable the test on a per file basis, as usual with rules using
2512             $(VC_LIST_EXCEPT)
2513           - replace the default doubled-word-selecting regexp (affects all files)
2514           - ignore a particular file-vs-doubled-word match
2515         I nearly used that last one to ignore the "is is" match in
2516         coreutils' NEWS file, since the text was "ls -is is ..."
2517         To do that, I would have added this line to cfg.mk:
2518           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
2519         but it would have ignored any "is is" match in NEWS.
2520         Low probability, but still...
2521         Instead, I changed the text, slightly:
2522           -  ls -is is now consistent with ls -lis in ignoring values returned
2523           +  "ls -is" is now consistent with ls -lis in ignoring values returned
2524         * top/maint.mk (prohibit_double_word_RE_): Provide default.
2525         (prohibit_doubled_word_): Define.
2526         (sc_prohibit_doubled_word): New rule.
2527         (sc_prohibit_the_the): Remove.  Subsumed by the above.
2528
2529 2011-04-10  Jim Meyering  <meyering@redhat.com>
2530
2531         maint: fix doubled-word typo in comment
2532         * m4/gethostname.m4: s/is is/it is/
2533         * m4/getdomainname.m4: Likewise.
2534
2535 2011-04-10  Jim Meyering  <meyering@redhat.com>
2536
2537         maint: remove doubled word: s/it it/it/
2538         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
2539
2540 2011-04-10  Jim Meyering  <meyering@redhat.com>
2541
2542         maint.mk: remove useless semicolon and backslash
2543         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
2544         semicolon and backslash.
2545
2546 2011-04-10  Bruno Haible  <bruno@clisp.org>
2547
2548         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
2549         * modules/stdint-tests (Depends-on): Add wchar.
2550
2551 2011-04-10  Jim Meyering  <meyering@redhat.com>
2552
2553         maint: remove doubled words in comments, e.g., s/a a/a/
2554         * lib/strptime.c (day_of_the_week): s/the the/the/
2555         * tests/test-chown.h (test_chown): s/a a/a/
2556
2557         test-chown.h: correct a cast
2558         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
2559         when the destination is a stat.st_gid.
2560
2561 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
2562
2563         getaddrinfo: Fix test for sa_len member.
2564         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
2565         include <sys/types.h> before <sys/socket.h>.
2566
2567 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
2568
2569         maint: change "can not" to "cannot"
2570         * doc/posix-functions/iconv.texi (iconv): This one crossed line
2571         boundaries.
2572
2573 2011-04-09  Jim Meyering  <meyering@redhat.com>
2574
2575         maint: change "a a" to "a"
2576         * tests/test-lchown.h (test_lchown): s/a a/a/
2577
2578         maint.mk: prohibit \<the the\>
2579         * top/maint.mk (sc_prohibit_the_the): New rule.
2580
2581         maint: fix "the the" in comment
2582         * lib/count-one-bits.h: s/the the/the/
2583
2584         maint: change "can not" to "cannot"
2585         But do not change the occurrences in maintain.texi or in
2586         build-aux/po/Makefile.in.in, which I presume comes from gettext.
2587         * doc/gnulib-tool.texi: s/can not/cannot/
2588         * doc/posix-functions/accept.texi (accept): Likewise.
2589         * doc/posix-functions/socket.texi (socket): Likewise.
2590         * lib/mbrtowc.c: Likewise.
2591
2592         maint.mk: prohibit use of "can not"
2593         * top/maint.mk (sc_prohibit_can_not): New rule.
2594         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
2595
2596 2011-04-09  Bruno Haible  <bruno@clisp.org>
2597
2598         careadlinkat: Guard against misuse of careadlinkatcwd.
2599         * lib/careadlinkat.c: Include <stdlib.h>.
2600         (careadlinkatcwd): Check that the fd argument is as expected.
2601
2602 2011-04-09  Bruno Haible  <bruno@clisp.org>
2603
2604         careadlinkat: Use common coding style.
2605         * lib/careadlinkat.c: Move gnulib includes after system includes.
2606
2607 2011-04-09  Bruno Haible  <bruno@clisp.org>
2608
2609         careadlinkat: Clarify specification.
2610         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
2611         (careadlinkatcwd): Add comment.
2612         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
2613
2614 2011-04-09  Bruno Haible  <bruno@clisp.org>
2615
2616         areadlinkat: Avoid link error on many platforms.
2617         * modules/areadlinkat (Depends-on): Add areadlink.
2618
2619 2011-04-09  Bruno Haible  <bruno@clisp.org>
2620
2621         allocator, careadlinkat: Fix double-inclusion guard.
2622         * lib/allocator.h: Fix double-inclusion guard.
2623         * lib/careadlinkat.h: Likewise.
2624
2625 2011-04-09  Bruno Haible  <bruno@clisp.org>
2626
2627         relocatable-prog-wrapper: Update after module 'areadlink' changed.
2628         * lib/relocwrapper.c: Update dependencies hierarchy.
2629         * build-aux/install-reloc: Update list of files to be compiled.
2630         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
2631         lib/allocator.[hc].
2632
2633 2011-04-08  Eric Blake  <eblake@redhat.com>
2634
2635         strftime: silence gnulib-tool warning
2636         * modules/strftime-tests (Depends-on): Drop automatic dependency.
2637
2638 2011-04-08  Bruno Haible  <bruno@clisp.org>
2639
2640         verify: Fix syntax error with GCC 4.6 in C++ mode.
2641         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
2642         (HAVE_STATIC_ASSERT): New macro.
2643         (verify_true, verify): Use 'static_assert' if it is supported and
2644         '_Static_assert' is not supported.
2645
2646 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2647
2648         allocator: New module.
2649         * modules/allocator, lib/allocator.c: New files.
2650         * lib/allocator.h (stdlib_allocator): New decl.
2651         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
2652         Remove.  Do not include <stdlib.h>.
2653         (careadlinkat): Use stdlib_allocator instead of rolling our own.
2654         * modules/careadlinkat (Files): Remove lib/allocator.h.
2655         (Depends-on): Add allocator.
2656
2657         stdlib: let modules use system malloc, realloc
2658         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
2659         if !_GL_USE_STDLIB_ALLOC.
2660         (malloc, realloc): Limit this change to a smaller scope.
2661
2662         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
2663         (malloc, realloc): Don't #undef; no longer needed.
2664         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2665         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2666         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2667         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2668         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2669         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2670         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2671         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2672
2673         careadlinkat: rename members to avoid problem
2674         * lib/allocator.h (struct allocator): Rename members from
2675         malloc/realloc to allocate/reallocate, to avoid problems if malloc
2676         and realloc are #define'd.  Reported by Eric Blake in
2677         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
2678         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
2679
2680 2011-04-08  Eric Blake  <eblake@redhat.com>
2681
2682         nonblocking: reduce dependency
2683         * tests/test-nonblocking.c: Only test sockets when in use.
2684         * modules/nonblocking-tests (Depends-on): Drop socket.
2685         (Makefile.am): Link even if sockets are not present.
2686         * modules/pipe2-tests (Makefile.am): Likewise.
2687         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
2688
2689         pipe2: fix O_NONBLOCK support on mingw
2690         * modules/pipe2 (Depends-on): Add nonblocking.
2691         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
2692         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
2693         * tests/test-nonblocking.c (main): Likewise.
2694         * modules/pipe2-tests (Makefile.am): Avoid link failure.
2695
2696         fcntl-h: fix O_ACCMODE on cygwin
2697         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
2698         * lib/fcntl.in.h (O_ACCMODE): Fix it.
2699
2700         pipe-filter: drop O_NONBLOCK workarounds
2701         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
2702         * modules/pipe-filter-ii (Depends-on): Likewise.
2703         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
2704
2705         nonblocking: provide O_NONBLOCK for mingw
2706         * modules/nonblocking (Depends-on): Add open.
2707         (configure.ac): Set new witness macro.
2708         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
2709         * modules/fcntl-h (Makefile.am): Substitute it.
2710         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
2711         nonblocking module is in use.
2712         * lib/nonblocking.c: Adjust portability test.
2713         * lib/open.c (open): Don't let native open see gnulib flag.
2714         * tests/test-fcntl-h.c (main): Enhance test.
2715         * tests/test-open.h (test_open): Likewise.
2716         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
2717
2718         careadlinkat: fix compilation error on mingw
2719         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
2720         within struct allocator.
2721
2722 2011-04-06  Eric Blake  <eblake@redhat.com>
2723
2724         binary-io: relicense under LGPLv2+
2725         * modules/binary-io (License): Relax to LGPLv2+.
2726         Requested for libvirt, and required by pipe2.
2727
2728 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2729
2730         verify: use _Static_assert if available
2731         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
2732         (verify_true, verify): Use it if available.  This generates better
2733         diagnostics with GCC 4.6.0 and later.
2734
2735 2011-04-05  Bruno Haible  <bruno@clisp.org>
2736
2737         Remove leftover generated .h files after config.status changed.
2738
2739         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
2740         GL_GENERATE_ALLOCA_H.
2741         * modules/alloca-opt (Makefile.am): Remove alloca.h if
2742         GL_GENERATE_ALLOCA_H evaluates to false.
2743
2744         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
2745         GL_GENERATE_ARGZ_H.
2746         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
2747         evaluates to false.
2748
2749         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
2750         GL_GENERATE_BYTESWAP_H.
2751         * modules/byteswap (Makefile.am): Remove byteswap.h if
2752         GL_GENERATE_BYTESWAP_H evaluates to false.
2753
2754         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
2755         GL_GENERATE_ERRNO_H.
2756         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
2757         evaluates to false.
2758
2759         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
2760         GL_GENERATE_FLOAT_H.
2761         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
2762         evaluates to false.
2763
2764         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
2765         GL_GENERATE_FNMATCH_H.
2766         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
2767         GL_GENERATE_FNMATCH_H evaluates to false.
2768
2769         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
2770         GL_GENERATE_GLOB_H.
2771         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
2772         evaluates to false.
2773
2774         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
2775         automake conditional GL_GENERATE_ICONV_H.
2776         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
2777         evaluates to false.
2778
2779         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
2780         GL_GENERATE_NETINET_IN_H.
2781         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
2782         GL_GENERATE_NETINET_IN_H evaluates to false.
2783
2784         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
2785         conditional GL_GENERATE_PTHREAD_H.
2786         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
2787         * modules/pthread (Makefile.am): Remove pthread.h if
2788         GL_GENERATE_PTHREAD_H evaluates to false.
2789
2790         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
2791         GL_GENERATE_SCHED_H.
2792         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
2793         evaluates to false.
2794
2795         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
2796         conditional GL_GENERATE_SELINUX_CONTEXT_H.
2797         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
2798         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
2799
2800         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
2801         GL_GENERATE_STDARG_H.
2802         * modules/stdarg (Makefile.am): Remove stdarg.h if
2803         GL_GENERATE_STDARG_H evaluates to false.
2804
2805         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
2806         GL_GENERATE_STDBOOL_H.
2807         * modules/stdbool (Makefile.am): Remove stdbool.h if
2808         GL_GENERATE_STDBOOL_H evaluates to false.
2809
2810         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
2811         conditional GL_GENERATE_STDDEF_H.
2812         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
2813         * modules/stddef (Makefile.am): Remove stddef.h if
2814         GL_GENERATE_STDDEF_H evaluates to false.
2815
2816         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
2817         GL_GENERATE_STDINT_H.
2818         * modules/stdint (Makefile.am): Remove stdint.h if
2819         GL_GENERATE_STDINT_H evaluates to false.
2820
2821         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
2822         GL_GENERATE_SYSEXITS_H.
2823         * modules/sysexits (Makefile.am): Remove sysexits.h if
2824         GL_GENERATE_SYSEXITS_H evaluates to false.
2825
2826         Reported by Karl Berry and Ralf Wildenhues.
2827
2828 2011-04-05  Bruno Haible  <bruno@clisp.org>
2829
2830         Ensure to rebuild generated .h files when config.status has changed.
2831         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
2832         config.status.
2833         * modules/ctype (Makefile.am): Likewise.
2834         * modules/dirent (Makefile.am): Likewise.
2835         * modules/errno (Makefile.am): Likewise.
2836         * modules/fcntl-h (Makefile.am): Likewise.
2837         * modules/float (Makefile.am): Likewise.
2838         * modules/getopt-posix (Makefile.am): Likewise.
2839         * modules/glob (Makefile.am): Likewise.
2840         * modules/iconv-h (Makefile.am): Likewise.
2841         * modules/inttypes (Makefile.am): Likewise.
2842         * modules/langinfo (Makefile.am): Likewise.
2843         * modules/locale (Makefile.am): Likewise.
2844         * modules/math (Makefile.am): Likewise.
2845         * modules/netdb (Makefile.am): Likewise.
2846         * modules/netinet_in (Makefile.am): Likewise.
2847         * modules/poll-h (Makefile.am): Likewise.
2848         * modules/pthread (Makefile.am): Likewise.
2849         * modules/pty (Makefile.am): Likewise.
2850         * modules/sched (Makefile.am): Likewise.
2851         * modules/search (Makefile.am): Likewise.
2852         * modules/selinux-h (Makefile.am): Likewise.
2853         * modules/signal (Makefile.am): Likewise.
2854         * modules/spawn (Makefile.am): Likewise.
2855         * modules/stdarg (Makefile.am): Likewise.
2856         * modules/stdbool (Makefile.am): Likewise.
2857         * modules/stddef (Makefile.am): Likewise.
2858         * modules/stdint (Makefile.am): Likewise.
2859         * modules/stdio (Makefile.am): Likewise.
2860         * modules/stdlib (Makefile.am): Likewise.
2861         * modules/string (Makefile.am): Likewise.
2862         * modules/strings (Makefile.am): Likewise.
2863         * modules/sys_file (Makefile.am): Likewise.
2864         * modules/sys_ioctl (Makefile.am): Likewise.
2865         * modules/sys_select (Makefile.am): Likewise.
2866         * modules/sys_socket (Makefile.am): Likewise.
2867         * modules/sys_stat (Makefile.am): Likewise.
2868         * modules/sys_time (Makefile.am): Likewise.
2869         * modules/sys_times (Makefile.am): Likewise.
2870         * modules/sys_utsname (Makefile.am): Likewise.
2871         * modules/sys_wait (Makefile.am): Likewise.
2872         * modules/sysexits (Makefile.am): Likewise.
2873         * modules/termios (Makefile.am): Likewise.
2874         * modules/time (Makefile.am): Likewise.
2875         * modules/unistd (Makefile.am): Likewise.
2876         * modules/wchar (Makefile.am): Likewise.
2877         * modules/wctype-h (Makefile.am): Likewise.
2878         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
2879
2880 2011-04-05  Bruno Haible  <bruno@clisp.org>
2881
2882         pipe2: Relicense under LGPLv2+.
2883         * modules/pipe2 (License): Change to LGPLv2+.
2884         Requested by Eric Blake, for libvirt.
2885
2886 2011-04-05  Bruce Korb  <bkorb@gnu.org>
2887
2888         bootstrap: compute gnulib_extra_files after updating build_aux
2889         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
2890         change build_aux or also supply gnulib_extra_files.  Handle correctly.
2891
2892 2011-04-05  Eric Blake  <eblake@redhat.com>
2893
2894         bootstrap: preserve git whitelist item sorting
2895         * build-aux/bootstrap (sort_patterns): New function.
2896         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
2897
2898 2011-04-05  Simon Josefsson  <simon@josefsson.org>
2899
2900         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
2901         sc_space_tab check.
2902
2903 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
2904
2905         areadlink, areadlinkat: rewrite in terms of careadlinkat
2906         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
2907         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
2908         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
2909         (malloc, realloc): Remove #undefs.
2910         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
2911         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
2912         readlink, ssize_t, stdint, unistd.
2913         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
2914         areadlink, stdint.
2915
2916         careadlinkat: new module
2917         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
2918         * modules/careadlinkat: New files, written by me with
2919         a review and feedback from Ben Pfaff in
2920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
2921
2922 2011-04-01  Bruno Haible  <bruno@clisp.org>
2923
2924         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
2925         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
2926         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
2927         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2928         Reported by Bruce Korb <bruce.korb@gmail.com>.
2929
2930 2011-04-01  Bruno Haible  <bruno@clisp.org>
2931
2932         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
2933         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
2934         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
2935         * modules/wcpcpy (Depends-on): Add extensions.
2936         * modules/wcpncpy (Depends-on): Likewise.
2937         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
2938         systems.
2939         * doc/posix-functions/wcpncpy.texi: Likewise.
2940         * doc/posix-functions/wcwidth.texi: Likewise.
2941
2942 2011-03-31  Eric Blake  <eblake@redhat.com>
2943
2944         nonblocking: fix mingw test failures
2945         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
2946         non-blocking flag on regular file.
2947         (get_nonblocking_flag): Set errno on invalid fd.
2948         * tests/test-nonblocking.c (main): Avoid test failure on
2949         directories if fchdir is not active.
2950         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
2951
2952 2011-03-31  Bruno Haible  <bruno@clisp.org>
2953
2954         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
2955         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
2956         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
2957         Reported by Simon Josefsson <simon@josefsson.org>.
2958
2959 2011-03-31  Bruno Haible  <bruno@clisp.org>
2960         and Eric Blake  <eblake@redhat.com>
2961
2962         nonblocking: new module
2963         * modules/nonblocking: New module.
2964         * modules/nonblocking-tests: Likewise.
2965         * lib/nonblocking.h: New file.
2966         * lib/nonblocking.c: Likewise.
2967         * tests/test-nonblocking.c: New test.
2968         * lib/ioctl.c (ioctl) [mingw]: Update comment.
2969
2970 2011-03-30  Bruno Haible  <bruno@clisp.org>
2971
2972         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
2973         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
2974         instead of 'printf' format for GCC >= 4.4.
2975         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
2976         (fprintf, printf, vfprintf, vprintf): Declare with
2977         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
2978         the system's vfprintf() function.
2979         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
2980
2981 2011-03-30  Eric Blake  <eblake@redhat.com>
2982
2983         passfd: fix scoping bug
2984         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
2985         before sendmsg/recvmsg.
2986
2987         passfd: standardize coding conventions
2988         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
2989         can be learned at compile time.
2990         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
2991         ifdefs.
2992         (sendfd, recvfd): Follow gnulib code conventions.
2993
2994         passfd: fix incorrect sendmsg arguments
2995         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
2996         incorrect msg_controllen value.
2997         * modules/passfd-tests (Depends-on): Check for alarm.
2998         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
2999         Reported by Bastien ROUCARIES.
3000
3001 2011-03-30  Bruno Haible  <bruno@clisp.org>
3002
3003         c-strcasestr: Relicense under LGPLv2+.
3004         * modules/c-strcasestr (License): Change to LGPLv2+.
3005         Requested by Eric Blake, for libvirt.
3006
3007 2011-03-30  Simon Josefsson  <simon@josefsson.org>
3008
3009         * users.txt: Add libidn2.  Fix libtasn1 link.
3010
3011 2011-03-30  Jim Meyering  <meyering@redhat.com>
3012
3013         tests: readlink* ("",... fails with EINVAL on newer kernels
3014         readlink and readlinkat have typically failed with ENOENT for
3015         the invalid, empty file name,  "".  However, with the advent
3016         of linux-2.6.39, they fail with EINVAL.
3017         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
3018         when operating on the empty file name.
3019         * tests/test-readlink.h (test_readlink): Likewise.
3020
3021 2011-03-29  Bruno Haible  <bruno@clisp.org>
3022
3023         Relicense some modules under LGPLv2+, for libidn2.
3024         * modules/array-mergesort (License): Change to LGPLv2+.
3025         * modules/c-strcaseeq (License): Likewise.
3026         * modules/striconveh (License): Likewise.
3027         * modules/striconveha (License): Likewise.
3028         * modules/uniconv/base (License): Likewise.
3029         * modules/uniconv/u8-conv-from-enc (License): Likewise.
3030         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
3031         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
3032         * modules/unictype/base (License): Likewise.
3033         * modules/unictype/bidiclass-of (License): Likewise.
3034         * modules/unictype/category-M (License): Likewise.
3035         * modules/unictype/category-none (License): Likewise.
3036         * modules/unictype/category-of (License): Likewise.
3037         * modules/unictype/category-test (License): Likewise.
3038         * modules/unictype/category-test-withtable (License): Likewise.
3039         * modules/unictype/combining-class (License): Likewise.
3040         * modules/unictype/joiningtype-of (License): Likewise.
3041         * modules/unictype/scripts (License): Likewise.
3042         * modules/uninorm/base (License): Likewise.
3043         * modules/uninorm/canonical-decomposition (License): Likewise.
3044         * modules/uninorm/composition (License): Likewise.
3045         * modules/uninorm/decompose-internal (License): Likewise.
3046         * modules/uninorm/decomposition-table (License): Likewise.
3047         * modules/uninorm/nfc (License): Likewise.
3048         * modules/uninorm/nfd (License): Likewise.
3049         * modules/uninorm/u32-normalize (License): Likewise.
3050         * modules/unistr/base (License): Likewise.
3051         * modules/unistr/u32-cpy (License): Likewise.
3052         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
3053         * modules/unistr/u32-to-u8 (License): Likewise.
3054         * modules/unistr/u32-uctomb (License): Likewise.
3055         * modules/unistr/u8-check (License): Likewise.
3056         * modules/unistr/u8-mblen (License): Likewise.
3057         * modules/unistr/u8-mbtouc (License): Likewise.
3058         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
3059         * modules/unistr/u8-mbtoucr (License): Likewise.
3060         * modules/unistr/u8-prev (License): Likewise.
3061         * modules/unistr/u8-strlen (License): Likewise.
3062         * modules/unistr/u8-to-u32 (License): Likewise.
3063         * modules/unistr/u8-uctomb (License): Likewise.
3064         * modules/unitypes (License): Likewise.
3065         Requested by Simon Josefsson.
3066
3067 2011-03-29  Simon Josefsson  <simon@josefsson.org>
3068
3069         lib-symbol-visibility: Add a notice.
3070         * modules/lib-symbol-visibility (Notice): New field.
3071
3072 2011-03-29  Bruno Haible  <bruno@clisp.org>
3073
3074         getaddrinfo: Doc fix.
3075         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
3076         section "fixed in Gnulib".
3077
3078 2011-03-28  Simon Josefsson  <simon@josefsson.org>
3079
3080         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
3081         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
3082
3083 2011-03-26  Bruno Haible  <bruno@clisp.org>
3084
3085         unictype/property-byname: Reduce the number of load-time relocations.
3086         * lib/unictype/pr_byname.c: Include <stdlib.h>.
3087         (UC_PROPERTY_INDEX_*): New enumeration values.
3088         (uc_property_byname): Convert an index from the lookup table to an
3089         uc_property_t.
3090         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
3091         values.
3092
3093 2011-03-26  Bruno Haible  <bruno@clisp.org>
3094
3095         unictype/property-byname: Allow omitted word separators and aliases.
3096         * lib/unictype/pr_byname.gperf: Add property names without word
3097         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
3098         for 'space'.
3099
3100 2011-03-26  Bruno Haible  <bruno@clisp.org>
3101
3102         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
3103         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
3104         also hyphens to space.
3105         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
3106         without spaces.
3107         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
3108
3109 2011-03-26  Bruno Haible  <bruno@clisp.org>
3110
3111         unictype/joiningtype-byname: Recognize long names as well.
3112         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
3113         a long name.
3114         * lib/unictype/joiningtype_byname.c: Include <string.h>,
3115         unictype/joiningtype_byname.h.
3116         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
3117         * lib/unictype/joiningtype_byname.gperf: New file.
3118         * modules/unictype/joiningtype-byname (Files): Add
3119         lib/unictype/joiningtype_byname.gperf.
3120         (Depends-on): Add gperf.
3121         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
3122         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
3123         long names.
3124
3125         Tests for module 'unictype/joiningtype-longname'.
3126         * modules/unictype/joiningtype-longname-tests: New file.
3127         * tests/unictype/test-joiningtype_longname.c: New file.
3128
3129         New module 'unictype/joiningtype-longname'.
3130         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
3131         * lib/unictype/joiningtype_longname.c: New file.
3132         * modules/unictype/joiningtype-longname: New file.
3133         * modules/unictype/joiningtype-all (Depends-on): Add
3134         unictype/joiningtype-longname.
3135
3136 2011-03-26  Bruno Haible  <bruno@clisp.org>
3137
3138         unictype/bidiclass-byname: Recognize long names as well.
3139         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
3140         name.
3141         * lib/unictype/bidi_byname.c: Include <string.h>,
3142         unictype/bidi_byname.h.
3143         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
3144         * lib/unictype/bidi_byname.gperf: New file.
3145         * modules/unictype/bidiclass-byname (Files): Add
3146         lib/unictype/bidi_byname.gperf.
3147         (Depends-on): Add gperf.
3148         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
3149         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
3150         long names.
3151
3152         Tests for module 'unictype/bidiclass-longname'.
3153         * modules/unictype/bidiclass-longname-tests: New file.
3154         * tests/unictype/test-bidi_longname.c: New file.
3155
3156         New module 'unictype/bidiclass-longname'.
3157         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
3158         * lib/unictype/bidi_longname.c: New file.
3159         * modules/unictype/bidiclass-longname: New file.
3160         * modules/unictype/bidiclass-all (Depends-on): Add
3161         unictype/bidiclass-longname.
3162
3163 2011-03-26  Bruno Haible  <bruno@clisp.org>
3164
3165         unictype/bidi*: Rename modules.
3166         * modules/unictype/bidiclass-all: Renamed from
3167         modules/unictype/bidicategory-all.
3168         * modules/unictype/bidiclass-name: Renamed from
3169         modules/unictype/bidiclass-name.
3170         (Description): Update.
3171         * modules/unictype/bidiclass-name-tests: Renamed from
3172         modules/unictype/bidicategory-name-tests.
3173         * modules/unictype/bidiclass-byname: Renamed from
3174         modules/unictype/bidicategory-byname.
3175         (Description): Update.
3176         * modules/unictype/bidiclass-byname-tests: Renamed from
3177         modules/unictype/bidicategory-byname-tests.
3178         * modules/unictype/bidiclass-of: Renamed from
3179         modules/unictype/bidicategory-of.
3180         (Description): Update.
3181         * modules/unictype/bidiclass-of-tests: Renamed from
3182         modules/unictype/bidicategory-of-tests.
3183         * modules/unictype/bidiclass-test: Renamed from
3184         modules/unictype/bidicategory-test.
3185         (Description): Update.
3186         * modules/unictype/bidiclass-test-tests: Renamed from
3187         modules/unictype/bidicategory-test-tests.
3188         * modules/unictype/bidicategory-all: New file, a simple redirection.
3189         * modules/unictype/bidicategory-name: Likewise.
3190         * modules/unictype/bidicategory-byname: Likewise.
3191         * modules/unictype/bidicategory-of: Likewise.
3192         * modules/unictype/bidicategory-test: Likewise.
3193         * modules/unictype/property-bidi-* (Dependencies): Update.
3194         * lib/unictype/bidi_*.c: Update comment.
3195
3196 2011-03-26  Bruno Haible  <bruno@clisp.org>
3197
3198         unictype/bidi*: Rename functions, part 2.
3199         * modules/unictype/bidicategory-name (configure.ac): Update required
3200         libunistring version.
3201         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
3202
3203 2011-03-25  Bruno Haible  <bruno@clisp.org>
3204
3205         New module 'unictype/combining-class-all'.
3206         * modules/unictype/combining-class-all: New file.
3207
3208         Tests for module 'unictype/combining-class-byname'.
3209         * modules/unictype/combining-class-byname-tests: New file.
3210         * tests/unictype/test-combiningclass_byname.c: New file.
3211
3212         New module 'unictype/combining-class-byname'.
3213         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
3214         * lib/unictype/combiningclass_byname.c: New file.
3215         * lib/unictype/combiningclass_byname.gperf: New file.
3216         * modules/unictype/combining-class-byname: New file.
3217
3218         Tests for module 'unictype/combining-class-longname'.
3219         * modules/unictype/combining-class-longname-tests: New file.
3220         * tests/unictype/test-combiningclass_longname.c: New file.
3221
3222         New module 'unictype/combining-class-longname'.
3223         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
3224         * lib/unictype/combiningclass_longname.c: New file.
3225         * modules/unictype/combining-class-longname: New file.
3226
3227         Tests for module 'unictype/combining-class-name'.
3228         * modules/unictype/combining-class-name-tests: New file.
3229         * tests/unictype/test-combiningclass_name.c: New file.
3230
3231         New module 'unictype/combining-class-name'.
3232         * lib/unictype.in.h (uc_combining_class_name): New declaration.
3233         * lib/unictype/combiningclass_name.c: New file.
3234         * modules/unictype/combining-class-name: New file.
3235
3236 2011-03-25  Bruno Haible  <bruno@clisp.org>
3237
3238         unictype/combining-class: Rename source files.
3239         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
3240         of unictype/combining.h.
3241         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
3242         Update.
3243         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
3244         * modules/unictype/combining-class (Description): Fix.
3245         (Files, Makefile.am): Update.
3246         * tests/unictype/test-combiningclass.c: Renamed from
3247         tests/unictype/test-combining.c.
3248         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
3249
3250 2011-03-25  Bruno Haible  <bruno@clisp.org>
3251
3252         unictype: Update list of canonical combining classes.
3253         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
3254
3255 2011-03-25  Bruno Haible  <bruno@clisp.org>
3256
3257         unictype/category-byname: Recognize long names as well.
3258         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
3259         a long name.
3260         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
3261         unictype/categ_byname.h.
3262         (UC_CATEGORY_INDEX_*): New enumeration values.
3263         (uc_general_category_byname): Use uc_general_category_lookup and
3264         convert from index to value.
3265         * lib/unictype/categ_byname.gperf: New file.
3266         * modules/unictype/category-byname (Files): Add
3267         lib/unictype/categ_byname.gperf.
3268         (Depends-on): Add gperf.
3269         (Makefile.am): Add rule for generating unictype/categ_byname.h.
3270         * tests/unictype/test-categ_byname.c (main): Test the recognition of
3271         long names.
3272
3273         Tests for module 'unictype/category-longname'.
3274         * modules/unictype/category-longname-tests: New file.
3275         * tests/unictype/test-categ_longname.c: New file.
3276
3277         New module 'unictype/category-longname'.
3278         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
3279         * lib/unictype/categ_longname.c: New file.
3280         * modules/unictype/category-longname: New file.
3281         * modules/unictype/category-all (Depends-on): Add it.
3282
3283 2011-03-25  Bruno Haible  <bruno@clisp.org>
3284
3285         Tests for module 'unictype/category-LC'.
3286         * modules/unictype/category-LC-tests: New file.
3287         * tests/unictype/test-categ_LC.c: New file, automatically generated.
3288
3289         New module 'unictype/category-LC'.
3290         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
3291         (UC_CATEGORY_LC): New declaration.
3292         (UC_CASED_LETTER): New macro.
3293         * lib/gen-uni-tables.c (is_category_LC): New function.
3294         (output_categories): Also handle category LC.
3295         (UC_CATEGORY_MASK_LC): New enumeration value.
3296         (general_category_byname): Also handle category LC.
3297         * lib/unictype/categ_LC.c: New file.
3298         * lib/unictype/categ_LC.h: New file, automatically generated.
3299         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
3300         category LC.
3301         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
3302         * modules/unictype/category-LC: New file.
3303         * modules/unictype/category-byname (Depends-on): Add
3304         unictype/category-LC.
3305         * modules/unictype/category-all (Depends-on): Likewise.
3306
3307 2011-03-25  Eric Blake  <eblake@redhat.com>
3308
3309         xmalloc: revert yesterday's regression
3310         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
3311         realloc's underlying behavior (allowing allocation of zero-size
3312         objects, especially if malloc-gnu is also in use).
3313
3314 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
3315
3316         maint.mk: add missing version to VC-tag
3317         * top/maint.mk: git tag was missing actual tag name; add it.
3318
3319         valgrind: do leak checking, and exit with code 1 on error (not 0)
3320         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
3321         to VALGRIND.
3322
3323 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
3324
3325         posix-modules: say what it does.
3326         * posix-modules: Add a line to the --help output saying what it does.
3327
3328 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3329
3330         xmalloc: Do not leak if underlying realloc is C99 compatible.
3331         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
3332         This avoids a leak on C99-based systems.  See
3333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
3334
3335 2011-03-24  Eric Blake  <eblake@redhat.com>
3336
3337         realloc: document portability problem
3338         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
3339         passing 0 size to realloc.
3340
3341 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
3342
3343         doc: update users.txt
3344         * users.txt: Add cvsps, tmpwatch
3345
3346 2011-03-23  Matt Rice  <ratmice@gmail.com>
3347
3348         doc: update users.txt
3349         * users.txt: Add gdb.
3350
3351 2011-03-23  Jim Meyering  <meyering@redhat.com>
3352
3353         doc: update users.txt
3354         Looking through matches up to the following URL (there are still
3355         several more pages), I found several projects that use gnulib:
3356         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
3357         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
3358         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
3359
3360 2011-03-22  Bruno Haible  <bruno@clisp.org>
3361
3362         unictype/bidi*: Rename functions.
3363         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
3364         uc_bidi_class, uc_is_bidi_class): New declarations.
3365         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
3366         uc_bidi_category_byname.
3367         (uc_bidi_category_byname): New function.
3368         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
3369         u_bidi_category_name.
3370         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
3371         (uc_bidi_category_name): New function.
3372         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
3373         uc_bidi_category.
3374         (uc_bidi_category): New function.
3375         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
3376         uc_is_bidi_category. Invoke uc_bidi_class.
3377         (uc_is_bidi_category): New function.
3378         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
3379         instead of uc_bidi_category_byname.
3380         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
3381         instead of uc_bidi_category_name.
3382         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
3383         uc_bidi_category.
3384         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
3385         instead of uc_is_bidi_category.
3386
3387 2011-03-21  Bruno Haible  <bruno@clisp.org>
3388
3389         New module 'unictype/joininggroup-all'.
3390         * modules/unictype/joininggroup-all: New file.
3391
3392         Tests for module 'unictype/joininggroup-of'.
3393         * modules/unictype/joininggroup-of-tests: New file.
3394         * tests/unictype/test-joininggroup_of.c: New file.
3395         * tests/unictype/test-joininggroup_of.h: New file, automatically
3396         generated by gen-uni-tables.
3397
3398         New module 'unictype/joininggroup-of'.
3399         * modules/unictype/joininggroup-of: New file.
3400         * lib/unictype/joininggroup_of.c: New file.
3401         * lib/unictype/joininggroup_of.h: New file, automatically generated by
3402         gen-uni-tables.
3403
3404         Tests for module 'unictype/joininggroup-byname'.
3405         * modules/unictype/joininggroup-byname-tests: New file.
3406         * tests/unictype/test-joininggroup_byname.c: New file.
3407
3408         New module 'unictype/joininggroup-byname'.
3409         * modules/unictype/joininggroup-byname: New file.
3410         * lib/unictype/joininggroup_byname.c: New file.
3411         * lib/unictype/joininggroup_byname.gperf: New file.
3412
3413         Tests for module 'unictype/joininggroup-name'.
3414         * modules/unictype/joininggroup-name-tests: New file.
3415         * tests/unictype/test-joininggroup_name.c: New file.
3416
3417         New module 'unictype/joininggroup-name'.
3418         * modules/unictype/joininggroup-name: New file.
3419         * lib/unictype/joininggroup_name.c: New file.
3420         * lib/unictype/joininggroup_name.h: New file.
3421
3422         New module 'unictype/joiningtype-all'.
3423         * modules/unictype/joiningtype-all: New file.
3424
3425         Tests for module 'unictype/joiningtype-of'.
3426         * modules/unictype/joiningtype-of-tests: New file.
3427         * tests/unictype/test-joiningtype_of.c: New file.
3428         * tests/unictype/test-joiningtype_of.h: New file, automatically
3429         generated by gen-uni-tables.
3430
3431         New module 'unictype/joiningtype-of'.
3432         * modules/unictype/joiningtype-of: New file.
3433         * lib/unictype/joiningtype_of.c: New file.
3434         * lib/unictype/joiningtype_of.h: New file, automatically generated by
3435         gen-uni-tables.
3436
3437         Tests for module 'unictype/joiningtype-byname'.
3438         * modules/unictype/joiningtype-byname-tests: New file.
3439         * tests/unictype/test-joiningtype_byname.c: New file.
3440
3441         New module 'unictype/joiningtype-byname'.
3442         * modules/unictype/joiningtype-byname: New file.
3443         * lib/unictype/joiningtype_byname.c: New file.
3444
3445         Tests for module 'unictype/joiningtype-name'.
3446         * modules/unictype/joiningtype-name-tests: New file.
3447         * tests/unictype/test-joiningtype_name.c: New file.
3448
3449         New module 'unictype/joiningtype-name'.
3450         * modules/unictype/joiningtype-name: New file.
3451         * lib/unictype/joiningtype_name.c: New file.
3452
3453         unictype: Add support for Arabic shaping properties.
3454         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
3455         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
3456         declarations.
3457         (UC_JOINING_GROUP_*): New enumeration values.
3458         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
3459         declarations.
3460         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
3461         (unicode_joining_type): New variable.
3462         (UC_JOINING_GROUP_*): New enumeration values.
3463         (unicode_joining_group): New variable.
3464         (fill_arabicshaping, joining_type_as_c_identifier,
3465         output_joining_type_test, output_joining_type,
3466         joining_group_as_c_identifier, output_joining_group_test,
3467         output_joining_group): New functions.
3468         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
3469         fill_arabicshaping and output_joining_type_test, output_joining_type,
3470         output_joining_group_test, output_joining_group.
3471         Reported by Simon Josefsson.
3472
3473 2011-03-21  Jim Meyering  <meyering@redhat.com>
3474
3475         strftime: fix a bug in yesterday's change
3476         * lib/strftime.c (add): Accommodate width's initial value of -1.
3477         Otherwise, nstrftime would copy uninitialized data into
3478         the result buffer.
3479
3480 2011-03-21  Jim Meyering  <meyering@redhat.com>
3481
3482         tests: add strftime-tests module
3483         * tests/test-strftime.c: New file.
3484         * modules/strftime-tests: New module.
3485
3486 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3487
3488         strftime: don't assume a byte count fits in 'int'
3489         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
3490         found this problem by static analysis, using gcc -Wstrict-overflow
3491         (GCC 4.5.2, x86-64).  This reported an optimization that depended
3492         on an integer overflow having undefined behavior, but it turns out
3493         that the argument is a size, which might not fit in 'int' anyway,
3494
3495 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3496
3497         stdio: don't require ignore_value around fwrite
3498
3499         This patch works around libc bug 11959
3500         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
3501         Without this patch, applications must often write
3502         ignore_value (fwrite (...)) even though the ignore_value is
3503         not helpful here.  It's common to write many objects, using
3504         fwrite/printf/etc., and then use ferror to detect output error.
3505
3506         I considered making this patch optional, but decided against it,
3507         because libc is obviously being inconsistent here: there is no
3508         reason libc should insist that user code must inspect fwrite
3509         return's value without also insisting that it inspect printf's,
3510         putchar's, etc.  If user code wants to have a strict style where
3511         all these functions' values are checked (so that ferror need not
3512         be checked), we could add support for that style in a new gnulib
3513         module, but in the meantime it's better to be consistent and to
3514         support common usage.
3515
3516         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
3517         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
3518         that we are compiling in checking mode, and if not C++, and
3519         if not already wrapping fwrite for some other reason.
3520         (fwrite): #define to rpl_fwrite if the latter is defined.
3521
3522 2011-03-20  Bruno Haible  <bruno@clisp.org>
3523
3524         verror: Fix compilation error introduced on 2011-02-13.
3525         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
3526         instead of __attribute__.
3527         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3528
3529 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3530             Bruno Haible  <bruno@clisp.org>
3531
3532         socklen: do not depend on sys_socket
3533         While trying to modify Emacs to use gnulib's socklen module,
3534         I discovered a circular dependency: socklen depends on sys_socket
3535         and vice versa.  Emacs can use socklen, but it does not need
3536         sys_socket because it has its own substitute for sys/socket.h.
3537         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
3538         gl_TYPE_SOCKLEN_T.
3539         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
3540         gl_PREREQ_SYS_H_SOCKET.
3541         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
3542         gl_PREREQ_SYS_H_SOCKET.
3543         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
3544         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
3545         * modules/socklen (Depends-on): Do not depend on sys_socket.
3546         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
3547
3548 2011-03-20  Jim Meyering  <meyering@redhat.com>
3549
3550         maint.mk: sort file names *after* new transformation
3551         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
3552         prefix would have led to an unwarranted failure in GNU parted.
3553         Sort after that transformation.
3554
3555 2011-03-19  Jim Meyering  <meyering@redhat.com>
3556
3557         maint.mk: fix po-file syntax-check rule
3558         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
3559         Patch by Bruno Haible.
3560
3561 2011-03-19  Bruno Haible  <bruno@clisp.org>
3562
3563         socklen: Update comment.
3564         * m4/socklen.m4: Update comment about platforms.
3565
3566 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3567             Bruno Haible  <bruno@clisp.org>
3568
3569         inet_ntop, inet_pton: Simplify.
3570         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
3571         documented to provide socklen_t and we already depend on sys_socket.
3572         * modules/inet_pton (Depends-on): Likewise.
3573         * lib/arpa_inet.in.h: Adjust comment.
3574
3575 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3576             Bruno Haible  <bruno@clisp.org>
3577
3578         netdb: Simplify.
3579         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
3580         documented to provide socklen_t and we already depend on sys_socket.
3581         * lib/netdb.in.h: Adjust comment.
3582
3583 2011-03-19  Bruno Haible  <bruno@clisp.org>
3584
3585         sys_socket, netdb: Document problem with socklen_t.
3586         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
3587         platforms.
3588         * doc/posix-headers/netdb.texi: Likewise.
3589
3590 2011-03-18  Eric Blake  <eblake@redhat.com>
3591
3592         maint.mk: let po check work in VPATH build
3593         * top/maint.mk (po_file): Allow cfg.mk override.
3594         (sc_po_check): Allow VPATH use.
3595         Reported by Jiri Denemark.
3596
3597 2011-03-16  Jim Meyering  <meyering@redhat.com>
3598
3599         maint.mk: allow fine-grained syntax-check exclusion via Make variables
3600         Before, you would have had to create one .x-sc_ file per rule in order
3601         to exempt offending files.  Now, you may instead use a Make variable --
3602         usually defined in cfg.mk -- whose name identifies the affected rule.
3603         * top/maint.mk (_sc_excl): Define.
3604         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
3605         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
3606
3607 2011-03-13  Bruno Haible  <bruno@clisp.org>
3608
3609         ignore-value tests: Avoid warnings.
3610         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
3611         empty for gcc < 3.4.
3612
3613 2011-03-13  Bruno Haible  <bruno@clisp.org>
3614
3615         passfd: Fix link error on Solaris.
3616         * modules/passfd (Description): Correct.
3617         (Depends-on): Add socketlib.
3618         (Link): New section.
3619         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
3620
3621 2011-03-13  Bruno Haible  <bruno@clisp.org>
3622
3623         passfd: Fix link error on AIX 5.2.
3624         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
3625
3626 2011-03-13  Bruno Haible  <bruno@clisp.org>
3627
3628         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
3629         * lib/sys_socket.in.h: Include <stddef.h>.
3630         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
3631         CMSG_FIRSTHDR. Remove unused variable.
3632
3633 2011-03-13  Bruno Haible  <bruno@clisp.org>
3634
3635         passfd: Fix compilation error on OpenBSD.
3636         * lib/passfd.c: Include <sys/uio.h>.
3637
3638 2011-03-13  Bruno Haible  <bruno@clisp.org>
3639
3640         passfd test: Fix warnings.
3641         * tests/test-passfd.c: Include <sys/wait.h>.
3642         (main): Fix typo.
3643
3644 2011-03-13  Bruno Haible  <bruno@clisp.org>
3645
3646         passfd module, part 4, tweaks.
3647         * tests/test-passfd.c: Reorder includes.
3648         (main): Fix perror and printf calls.
3649
3650 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3651
3652         passfd module, part 4.
3653         * modules/passfd-tests: New file.
3654         * tests/test-passfd.c: New file.
3655
3656 2011-03-13  Jim Meyering  <meyering@redhat.com>
3657
3658         Makefile: rely on GNU make; derive syntax-check rule names
3659         Rather than requiring that each sc_ rule be listed as a dependent
3660         of "check", use features of GNU make to derive the list.
3661         * Makefile (syntax-check-rules): Define.
3662         (check): Depend on the new variable, not the hard-coded list.
3663
3664 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
3665             Bruno Haible  <bruno@clisp.org>
3666
3667         passfd module, part 3.
3668         * lib/passfd.h (recvfd): Add a flags argument.
3669         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
3670         (recvfd): Add a flags argument.
3671         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
3672         exists.
3673         * modules/passfd (Depends-on): Add cloexec.
3674         Suggested by Eric Blake.
3675
3676 2011-03-13  Bruno Haible  <bruno@clisp.org>
3677
3678         passfd module, part 2, tweaks.
3679         * modules/passfd (Files): Reorder.
3680         (Depends-on): Remove errno.
3681         (Include): Remove <sys/socket.h>, <sys/un.h>.
3682         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
3683         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
3684         specification header. Include <sys/socket.h> always. Don't include
3685         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
3686         (sendfd): Clarify that it sets errno when it fails.
3687         (recvfd): Fix specification.
3688
3689 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3690
3691         passfd module, part 2.
3692         * modules/passfd: New file.
3693         * lib/passfd.h: New file.
3694         * lib/passfd.c: New file.
3695
3696 2011-03-12  Bruno Haible  <bruno@clisp.org>
3697
3698         wcswidth, mbswidth: Avoid integer overflow.
3699         * lib/wcswidth.c: Include <limits.h>.
3700         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
3701         * lib/mbswidth.c: Include <limits.h>.
3702         (mbsnwidth): Avoid 'int' overflow.
3703         Reported by Jim Meyering.
3704
3705 2011-03-12  Bruno Haible  <bruno@clisp.org>
3706
3707         futimens, utimensat: Avoid endless recursion on Solaris 10.
3708         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
3709         Solaris.
3710         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
3711         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
3712
3713 2011-03-11  Jim Meyering  <meyering@redhat.com>
3714
3715         maint.mk: relax a regexp to accommodate other formatting styles
3716         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
3717         between "ngettext" and the following "(".
3718
3719 2011-03-11  Pádraig Brady <P@draigBrady.com>
3720
3721         maint.mk: suppress a false positive warning
3722         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
3723         diagnostics are marked with ngettext.
3724
3725 2011-03-10  Eric Blake  <eblake@redhat.com>
3726
3727         wchar: add explicit dependencies, for Tru64
3728         * modules/mbmemcasecoll (Depends-on): Add wchar.
3729         * modules/mbtowc (Depends-on): Likewise.
3730         * modules/vasnprintf (Depends-on): Likewise.
3731         * modules/unistdio/u-printf-args (Depends-on): Likewise.
3732         * modules/wctomb (Depends-on): Likewise.
3733         Reported by Peter O'Gorman.
3734
3735 2011-03-08  Bruno Haible  <bruno@clisp.org>
3736
3737         passfd module, part 1, tweaks.
3738         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
3739         Improve indentation. Improve AC_MSG_CHECKING messages.
3740         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
3741         gl_SOCKET_FAMILIES.
3742
3743 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3744
3745         passfd module, part 1.
3746         * m4/afunix.m4: New file.
3747         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
3748         sockets.
3749
3750 2011-03-08  Bruno Haible  <bruno@clisp.org>
3751
3752         regex-quote: New API.
3753         * lib/regex-quote.h: Include <stdbool.h>.
3754         (struct regex_quote_spec): New type.
3755         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3756         New declarations.
3757         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3758         'const struct regex_quote_spec *' argument.
3759         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
3760         (pcre_special): New constant.
3761         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3762         New functions.
3763         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3764         'const struct regex_quote_spec *' argument.
3765         * modules/regex-quote (Depends-on): Add stdbool.
3766         * tests/test-regex-quote.c (check): Update for new API. Add test for
3767         anchored results.
3768         * NEWS: Mention the API change.
3769         Reported by Reuben Thomas and Eric Blake.
3770
3771 2011-03-06  Bruno Haible  <bruno@clisp.org>
3772
3773         regex-quote: Fix creation of POSIX extended regular expressions.
3774         * lib/regex-quote.c (ere_special): Add grouping and alternation
3775         operators.
3776
3777 2011-03-05  Bruno Haible  <bruno@clisp.org>
3778
3779         doc: Improve doc regarding autopoint vs. gnulib.
3780         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
3781         disable autopoint while running autoreconf.
3782         Suggested by Ralf Wildenhues.
3783
3784 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3785
3786         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
3787         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
3788
3789 2011-03-03  Bruce Korb  <bkorb@gnu.org>
3790
3791         parse-duration: remove xalloc.h dependency
3792         * lib/parse-duration.c (parse_period): handle NULL return from
3793         strdup instead of calling xstrdup().
3794         * modules/parse-duration: remove "xalloc" dependency
3795
3796 2011-03-03  Matthew Booth  <mbooth@redhat.com>
3797
3798         bootstrap: honor m4_base when running aclocal
3799         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
3800
3801 2011-03-02  Jim Meyering  <meyering@redhat.com>
3802
3803         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
3804         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
3805         on request from Matt Booth.
3806
3807 2011-03-01  Eric Blake  <eblake@redhat.com>
3808
3809         test-link: work on Hurd
3810         * tests/test-link.h (test_link): Hurd rejects linking directories
3811         with EISDIR instead of the POSIX-mandated EPERM.
3812
3813 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
3814
3815         stdio: simplify by moving files to printf-posix, sigpipe
3816         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
3817         since this symbol is needed only if printf is replaced.
3818         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
3819         Require gl_ASM_SYMBOL_PREFIX.
3820         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
3821         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
3822         (Depends-on): Add 'raise'.
3823         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
3824         * modules/stdio (Files): Remove lib/stdio-write.c,
3825         m4/asm-underscore.m4.
3826         (Depends-on): Remove 'raise'.
3827
3828         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
3829         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
3830         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
3831         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
3832
3833 2011-02-28  Bruno Haible  <bruno@clisp.org>
3834
3835         localcharset: Assume ANSI C behaviour of free().
3836         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
3837         calling free().
3838         Suggested by Simon Josefsson <simon@josefsson.org>.
3839
3840 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
3841             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
3842             Bruno Haible  <bruno@clisp.org>  (tiny change)
3843
3844         On Cygwin, use /proc file system instead of win32 API.
3845         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
3846         Win32 file names.
3847         (DllMain): Simplify by removing Cygwin specific code.
3848         (find_shared_library_fullname): Use Linux specific implementation also
3849         for Cygwin.
3850         (get_shared_library_fullname): Update accordingly.
3851         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
3852         Win32 file names.
3853         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
3854         Cygwin specific code.
3855
3856 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
3857             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
3858
3859         Fix OpenMP flag detection for various Fortran compilers.
3860         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
3861         OpenMP-conditional compilation construct, to force compile
3862         failure with missing OpenMP flag.
3863         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
3864
3865 2011-02-25  Eric Blake  <eblake@redhat.com>
3866
3867         strstr: expand test coverage
3868         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
3869         compilation.
3870         * tests/test-memmem.c (main): Duplicate tests.
3871         * tests/test-strcasestr.c (main): Likewise.
3872         * tests/test-c-strcasestr.c (main): Likewise.
3873
3874 2011-02-25  Jim Meyering  <meyering@redhat.com>
3875
3876         maint.mk: detect missing-NL-at-EOF, too
3877         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
3878         it also detects when a file lacks a newline at EOF.
3879         (require_exactly_one_NL_at_EOF_): Renamed from
3880         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
3881         since people may well have .x-sc_... file names tied to the
3882         existing name.  Suggested by Eric Blake.
3883
3884 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
3885
3886         dirname: move m4/dos.m4 functionality into lib/dosname.h
3887
3888         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
3889         extracts symbols from it, puts them into config.h; but it's much
3890         easier to use the symbols directly.  filename.h already does this,
3891         but it disagrees with dos.m4 in some respects.  This patch
3892         introduces a different include file dosname.h that packages up
3893         dos.m4, and then later we can work on merging filename.h and
3894         dosname.h.  Applications that need only the easy-to-configure
3895         symbols should consider including dosname.h rather than dirname.h.
3896         * NEWS: Mention incompatible changes.
3897         * m4/dos.m4: Remove.
3898         * lib/dosname.h, modules/dosname: New files.
3899         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
3900         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
3901         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
3902         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
3903         Include dosname.h, not dirname.h.
3904         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
3905         Include dosname.h, for definitions of symbols like ISSLASH
3906         that used to be in config.h.
3907         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
3908         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3909         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3910         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3911         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
3912         * modules/rmdir (Files): Likewise.
3913         * modules/stat (Files): Likewise.
3914         * modules/unlink (Files): Likewise.
3915         * modules/dirname-lgpl (Depends-on): Add dosname.
3916         * modules/lstat (Depends-on): Likewise.
3917         * modules/openat (Depends-on): Likewise.
3918         * modules/rmdir (Depends-on): Likewise.
3919         * modules/savewd (Depends-on): Likewise.
3920         * modules/stat (Depends-on): Likewise.
3921         * modules/unlink (Depends-on): Likewise.
3922         * modules/openat (Depends-on): Remove dirname-lgpl.
3923         * modules/savewd (Depends-on): Likewise.
3924         * tests/test-dirname.c: Do not use removed symbols like
3925         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
3926         the remaining symbols, e.g., ISSLASH ('\\').
3927
3928 2011-02-25  Eric Blake  <eblake@redhat.com>
3929
3930         strstr: revert patches that introduced bug and pessimization
3931         * lib/str-two-way.h: Add another reference.
3932         (two_way_short_needle, two_way_long_needle): Revert changes from
3933         2011-02-24; they pessimize search speed.
3934         (critical_factorization): Partially revert changes from
3935         2010-06-22; they violate the requirement that the left half of the
3936         needle be smaller than the period of the needle.
3937
3938 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3939
3940         filenamecat: remove unnecessary dependency on dirname-lgpl
3941         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
3942         is no direct dependency, just an indirect one via filenamecat-lgpl.
3943
3944         remove: remove unnecessary use of m4/dos.m4
3945         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
3946         * modules/remove (FILES): Remove m4/dos.m4.
3947
3948         * lib/openat-proc.c: Don't include dirname.h; not needed.
3949
3950         backupfile: remove unnecessary use of m4/dos.m4
3951         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
3952         of its symbols are used by the backupfile code.  backupfile.c does
3953         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
3954         for the rare case of programs that want all their backup file
3955         names to live within 8+3 limits, and dos.m4 doesn't address that.
3956         * modules/backupfile (Files): Remove m4/dos.m4.
3957
3958 2011-02-24  Jim Meyering  <meyering@redhat.com>
3959
3960         strstr: fix a bug whereby strstr would mistakenly return NULL
3961         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
3962         in period calculation.
3963         (two_way_long_needle): Likewise.
3964         The original problem was reported by Mike Stump in
3965         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
3966         Ralf Wildenhues provided the short needle and haystack.
3967         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
3968         Add a more involved test to trigger the bug in two_way_long_needle.
3969
3970 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3971
3972         gnulib-tool: remove use of bold display in help screen
3973         * gnulib-tool (func_usage): Do not use bold display anymore in the
3974         help screen.  That was just meant to be a temporary emphasis for a
3975         backward-incompatible change.
3976
3977 2011-02-23  Bruno Haible  <bruno@clisp.org>
3978
3979         Fix misindentation of preprocessor directives.
3980         * lib/argp-namefrob.h: Reindent preprocessor directives.
3981         * lib/getopt_int.h (struct _getopt_data): Likewise.
3982         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
3983         * lib/vasnprintf.c (decode_long_double): Likewise.
3984         * tests/test-argmatch.c: Insert blank lines, for clarity.
3985         * tests/test-exclude.c: Likewise.
3986
3987 2011-02-22  Bruno Haible  <bruno@clisp.org>
3988
3989         ioctl: Fix for MacOS X in 64-bit mode.
3990         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
3991         value.
3992         Suggested by Eric Blake.
3993         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
3994
3995 2011-02-22  Jim Meyering  <meyering@redhat.com>
3996
3997         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
3998         * Makefile (sc_cpp_indent_check): Don't limit the check to files
3999         in lib/.
4000
4001 2011-02-22  Eric Blake  <eblake@redhat.com>
4002
4003         maint: avoid any CDPATH issue
4004         * Makefile (sc_cpp_indent_check): Anchor cd argument.
4005
4006         maint: adjust cpp indentation for my modules, as well
4007         * Makefile (sc_cpp_indent_check): Add my name.
4008         * lib/fbufmode.c: Filter through cppi.
4009         * lib/fpurge.c: Likewise.
4010         * lib/freadable.c: Likewise.
4011         * lib/freading.c: Likewise.
4012         * lib/fwritable.c: Likewise.
4013         * lib/fwriting.c: Likewise.
4014         * lib/sigaction.c: Likewise.
4015
4016 2011-02-22  Jim Meyering  <meyering@redhat.com>
4017
4018         maint: adjust cpp indentation to reflect nesting depth
4019         I.e., in a block of code that begins with an unnested "#if",
4020         put one space between the "#" in column 1 and following token.
4021         For example,
4022         -#include <sys/vfs.h>
4023         +# include <sys/vfs.h>
4024         Do this only in .c files that are part of a module I maintain.
4025         * lib/linkat.c: Filter through cppi.
4026         * lib/nanosleep.c: Likewise.
4027         * lib/openat.c: Likewise.
4028         * lib/openat-die.c: Likewise.
4029         * lib/dup3.c: Likewise.
4030         * lib/fchownat.c: Likewise.
4031         * lib/flock.c: Likewise.
4032         * lib/fsync.c: Likewise.
4033         * lib/fts.c: Likewise.
4034         * lib/getpass.c: Likewise.
4035         * lib/gettimeofday.c: Likewise.
4036         * lib/userspec.c: Likewise.
4037         * Makefile (sc_cpp_indent_check): New rule, to check this.
4038
4039 2011-02-22  Bruno Haible  <bruno@clisp.org>
4040
4041         New module 'wctomb'.
4042         * lib/stdlib.in.h (wctomb): New declaration.
4043         * lib/wctomb.c: New file.
4044         * lib/wctomb-impl.h: New file.
4045         * m4/wctomb.m4: New file.
4046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
4047         REPLACE_WCTOMB.
4048         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
4049         REPLACE_WCTOMB.
4050         * modules/wctomb: New file.
4051         * tests/test-stdlib-c++.cc: Test signature of wctomb.
4052         * doc/posix-functions/wctomb.texi: Mention the new module.
4053         * modules/wctob (Depends-on): Add wctomb.
4054
4055 2011-02-22  Bruno Haible  <bruno@clisp.org>
4056
4057         New module 'mbtowc'.
4058         * lib/stdlib.in.h (mbtowc): New declaration.
4059         * lib/mbtowc.c: New file.
4060         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
4061         * m4/mbtowc.m4: New file.
4062         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
4063         REPLACE_MBTOWC.
4064         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
4065         REPLACE_MBTOWC.
4066         * modules/mbtowc: New file.
4067         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
4068         * doc/posix-functions/mbtowc.texi: Mention the new module.
4069         * modules/btowc (Depends-on): Add mbtowc.
4070
4071 2011-02-22  Bruno Haible  <bruno@clisp.org>
4072
4073         wcrtomb: Add more tests for native Windows platforms.
4074         * tests/test-wcrtomb-w32-1.sh: New file.
4075         * tests/test-wcrtomb-w32-2.sh: New file.
4076         * tests/test-wcrtomb-w32-3.sh: New file.
4077         * tests/test-wcrtomb-w32-4.sh: New file.
4078         * tests/test-wcrtomb-w32-5.sh: New file.
4079         * tests/test-wcrtomb-w32.c: New file.
4080         * modules/wcrtomb-tests (Files): Add them.
4081         (Makefile.am): Arrange to run these tests.
4082         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
4083         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
4084
4085 2011-02-20  Bruno Haible  <bruno@clisp.org>
4086
4087         wcrtomb: Enhance test.
4088         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
4089
4090 2011-02-20  Bruno Haible  <bruno@clisp.org>
4091
4092         mbrtowc: Tiny optimization.
4093         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
4094
4095 2011-02-20  Jim Meyering  <meyering@redhat.com>
4096
4097         test-exclude.c: remove unmatched #endif
4098         * tests/test-exclude.c: Remove stray #endif, left over from
4099         the change of a week ago.
4100
4101 2011-02-19  Jim Meyering  <meyering@redhat.com>
4102
4103         git-version-gen: skip "-dirty" check when appropriate
4104         * build-aux/git-version-gen: Don't run any git commands when the
4105         version string comes from .tarball-version.  Prior to this, we
4106         would run git update-index --refresh even from a just-unpacked
4107         tarball directory, and that could affect a .git/ directory in a
4108         parent of the build directory.  Reported by Mike Frysinger.
4109
4110 2011-02-19  Bruno Haible  <bruno@clisp.org>
4111
4112         unictype/property-byname: Reduce the size of the 'data' segment.
4113         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
4114
4115 2011-02-19  Bruno Haible  <bruno@clisp.org>
4116
4117         unictype/scripts: Reduce the size of the 'data' segment.
4118         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
4119         '%pic'.
4120         * lib/unictype/scripts_byname.gperf: Regenerated.
4121
4122 2011-02-19  Bruno Haible  <bruno@clisp.org>
4123
4124         stdint: Update documentation.
4125         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
4126
4127 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
4128
4129         stdint: omit redundant check for wchar.h
4130         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
4131         always tests whether wchar.h exists, so remove the now-redundant test.
4132
4133 2011-02-18  Bruno Haible  <bruno@clisp.org>
4134
4135         stdint: Cut dependency to module 'wchar'.
4136         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
4137         include the necessary prerequisites.
4138         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
4139         * modules/stdint (Depends-on): Remove wchar.
4140         (Makefile.am): Substitute HAVE_WCHAR_H.
4141         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
4142
4143 2011-02-18  Eric Blake  <eblake@redhat.com>
4144
4145         longlong: skip, rather than fail, on cross-compilation
4146         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
4147         when cross-compiling; regression from 2011-02-16.
4148
4149 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4150
4151         * NEWS: Mention 2011-02-08 change to stdlib.
4152
4153 2011-02-17  Bruno Haible  <bruno@clisp.org>
4154
4155         getloadavg: Add comments about platforms.
4156         * m4/getloadavg.m4: Add comment.
4157         * lib/getloadavg.c: Likewise.
4158
4159 2011-02-17  Bruno Haible  <bruno@clisp.org>
4160
4161         getloadavg: Fix link error on Solaris 2.6.
4162         * modules/getloadavg (Link): New section.
4163         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
4164         linking test-getloadavg.
4165         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
4166         getloadavg.
4167
4168 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4169
4170         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
4171         It was 'int', but this doesn't match the IRIX 6.5 manual.
4172         Suggested by Bruno Haible in
4173         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
4174
4175 2011-02-17  Bruno Haible  <bruno@clisp.org>
4176
4177         havelib: Fix comments.
4178         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
4179         change.
4180
4181 2011-02-17  Bruno Haible  <bruno@clisp.org>
4182
4183         havelib: Update config.rpath.
4184         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
4185
4186 2011-02-17  Bruno Haible  <bruno@clisp.org>
4187
4188         getloadavg test: Add some plausibility checks.
4189         * tests/test-getloadavg.c (check_avg): Print a warning when the value
4190         is improbable.
4191
4192 2011-02-16  Eric Blake  <eblake@redhat.com>
4193
4194         maintainer-makefile: make syntax-check a no-op from tarballs
4195         * top/maint.mk (no-vc-detected): New rule.
4196         (local-checks-available): Use it to avoid hanging if someone tries
4197         'make syntax-check' from a tarball.  Also append to any non-syntax
4198         checks already defined in cfg.mk.
4199
4200 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4201
4202         longlong: tune, particularly for common case of c99
4203
4204         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
4205         or running anything if c99, or if unsigned long long int does not
4206         work.  In either case, we know the answer without further tests.
4207         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
4208         it at most once, and use its results for both long long int and
4209         unsigned long long int.  This is more likely to be efficient in
4210         the common case where the program wants to check for both long
4211         long int and unsigned long long int.
4212         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
4213         since the answer is already known.
4214
4215 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
4216
4217         getloadavg: set errno
4218         * lib/getloadavg.c: Set errno when returning -1.  If no other
4219         error number looks appropriate, set it to ENOSYS if the getloadavg
4220         looks like it can't possibly ever work, ENOTSUP otherwise.
4221         Suggested by Bruno Haible in
4222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
4223
4224         getloadavg: trim unused parts and speed up 'configure'
4225         * NEWS: Document this.
4226         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
4227         always compiled if getloadavg is absent.
4228         Move test code to ...
4229         * tests/test-getloadavg.c: New file, containing previous
4230         contents of test from lib/getloadavg.c.  It also contains
4231         suggestions by Bruno Haible in
4232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
4233         * modules/getloadavg-tests: New file.
4234         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
4235         Do tests in the same order as they're needed for getloadavg.c.
4236         Omit setgid-related tests that generate symbols KMEM_GROUP,
4237         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
4238         Do only the tests that are needed to see whether the system has
4239         getloadavg, moving the other tests into ...
4240         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
4241         NLIST_NAME_UNION; nobody should be using it.  Do not define
4242         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
4243         relevant, as the user of this module shouldn't care how getloadavg
4244         is implemented.
4245
4246         getloadavg: omit unused var
4247         * lib/getloadavg.c (getloadavg): Omit unused local variable.
4248
4249 2011-02-15  Jim Meyering  <meyering@redhat.com>
4250
4251         doc: update users.txt
4252         * users.txt: Update iwhd's URL.
4253
4254 2011-02-13  Bruno Haible  <bruno@clisp.org>
4255
4256         Consistent macro naming for macros that use GCC __attribute__.
4257         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
4258         _ATTRIBUTE_NONNULL_.
4259         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
4260         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
4261         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
4262         ATTRIBUTE_DEPRECATED.
4263         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
4264         ATTRIBUTE_NORETURN.
4265         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4266         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4267         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4268         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4269         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
4270         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
4271         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
4272         ATTRIBUTE_SENTINEL.
4273         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
4274         ATTRIBUTE_RETURN_CHECK.
4275         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
4276         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
4277         ATTRIBUTE_NORETURN.
4278         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
4279         Reported by Paul Eggert.
4280
4281 2011-02-13  Bruno Haible  <bruno@clisp.org>
4282
4283         Don't interfere with a program's definition of __attribute__.
4284         * lib/argp.h (__attribute__): Remove definition.
4285         (_GL_ATTRIBUTE_FORMAT): New macro.
4286         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
4287         * lib/argp-fmtstream.h (__attribute__): Remove definition.
4288         (_GL_ATTRIBUTE_FORMAT): New macro.
4289         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
4290         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
4291         GCC 3 or newer.
4292         * lib/error.h (__attribute__): Remove definition.
4293         (_GL_ATTRIBUTE_FORMAT): New macro.
4294         (error, error_at_line): Use it.
4295         * lib/hash.h (__attribute__): Remove definition.
4296         (ATTRIBUTE_WUR): Update definition. Define always.
4297         * lib/openat.h (__attribute__): Remove definition.
4298         (ATTRIBUTE_NORETURN): Update definition. Define always.
4299         * lib/sigpipe-die.h (__attribute__): Remove definition.
4300         (ATTRIBUTE_NORETURN): Update definition. Define always.
4301         * lib/vasnprintf.h (__attribute__): Remove definition.
4302         (_GL_ATTRIBUTE_FORMAT): New macro.
4303         (asnprintf, vasnprintf): Use it.
4304         * lib/xalloc.h (__attribute__): Remove definition.
4305         (ATTRIBUTE_NORETURN): Update definition. Define always.
4306         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
4307         * lib/xmemdup0.h (__attribute__): Remove definition.
4308         (ATTRIBUTE_NORETURN): Update definition. Define always.
4309         * lib/xprintf.h (__attribute__): Remove definition.
4310         (_GL_ATTRIBUTE_FORMAT): New macro.
4311         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
4312         * lib/xstrtol.h (__attribute__): Remove definition.
4313         (ATTRIBUTE_NORETURN): Update definition. Define always.
4314         * lib/xvasprintf.h (__attribute__): Remove definition.
4315         (_GL_ATTRIBUTE_FORMAT): New macro.
4316         (xasprintf, xvasprintf): Use it.
4317         * tests/test-argmatch.c (__attribute__): Remove definition.
4318         (ATTRIBUTE_NORETURN): Update definition. Define always.
4319         * tests/test-exclude.c (__attribute__): Remove definition.
4320         (ATTRIBUTE_NORETURN): Update definition. Define always.
4321         Reported by Paul Eggert.
4322
4323 2011-02-13  Bruno Haible  <bruno@clisp.org>
4324
4325         mbrtowc: Add more tests for native Windows platforms.
4326         * tests/test-mbrtowc-w32-1.sh: New file.
4327         * tests/test-mbrtowc-w32-2.sh: New file.
4328         * tests/test-mbrtowc-w32-3.sh: New file.
4329         * tests/test-mbrtowc-w32-4.sh: New file.
4330         * tests/test-mbrtowc-w32-5.sh: New file.
4331         * tests/test-mbrtowc-w32.c: New file.
4332         * modules/mbrtowc-tests (Files): Add them.
4333         (Makefile.am): Arrange to run these tests.
4334         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
4335         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
4336
4337 2011-02-13  Bruno Haible  <bruno@clisp.org>
4338
4339         mbrtowc: Work around native Windows bug.
4340         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
4341         guess when no suitable locale for testing was found.
4342         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
4343
4344 2011-02-13  Bruno Haible  <bruno@clisp.org>
4345
4346         mbsinit: Work around mingw bug.
4347         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
4348         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
4349         Windows.
4350         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
4351
4352 2011-02-13  Bruno Haible  <bruno@clisp.org>
4353
4354         mbsinit: Don't crash for a NULL argument.
4355         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
4356         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
4357
4358 2011-02-13  Bruno Haible  <bruno@clisp.org>
4359
4360         Don't interfere with a program's definition of __attribute__.
4361         * lib/stdio.in.h (__attribute__): Remove definition.
4362         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
4363         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
4364         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
4365         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
4366         * lib/string.in.h (__attribute__): Remove definition.
4367         Reported by Paul Eggert.
4368
4369 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4370
4371         stdlib: don't get in the way of non-GCC __attribute__
4372         See thread starting at
4373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
4374         Revert previous stdlib change, installing the following instead:
4375         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
4376         to get in the way of a non-GCC compiler that supports __attribute__.
4377         (_GL_ATTRIBUTE_RETURN): New macro.
4378         (_Exit): Use it instead of __attribute__.
4379
4380 2011-02-12  Bruno Haible  <bruno@clisp.org>
4381
4382         quotearg test: Avoid test failure on mingw.
4383         * tests/test-quotearg.sh: Convert the locale identifier from native
4384         Windows syntax to Unix syntax.
4385
4386 2011-02-12  Bruno Haible  <bruno@clisp.org>
4387
4388         setlocale: Prefer gnulib's override over libintl's override.
4389         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
4390         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
4391         GNULIB_defined_setlocale is set.
4392
4393 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4394
4395         stdlib: support non-GCC __attribute__
4396
4397         Fix a serious and tricky problem encountered when attempting to
4398         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
4399         5.5, but it crashed due to memory corruption on Solaris 10 with
4400         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
4401         bits that are otherwise zero.  This tagging is optional inside
4402         Emacs but is preferred and is used when __attribute__ ((__aligned
4403         (8))) works, as it does with both recent-enough GCC and with Sun C
4404         5.11.  However, Sun C 5.11 is not GCC and does not #define
4405         __GNUC__ and __GNUC_MINOR__.
4406
4407         When I added the getloadavg module to Emacs, it brought in
4408         stdlib.in.h, which contained this fragment:
4409
4410            #ifndef __attribute__
4411            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
4412            #  define __attribute__(Spec)   /* empty */
4413            # endif
4414            #endif
4415
4416         When files that include <stdlib.h> were compiled with Sun C 5.11,
4417         the above code disabled __attribute__ ((__aligned (8))), which
4418         caused variables to not be properly aligned, which eventually led
4419         to the pointer corruption mentioned above.  (This was a bit hard
4420         to diagnose, unfortunately.)
4421
4422         Several "#define __attribute__(X) /* empty */" code snippets need
4423         to be eradicated from Gnulib to work with non-GCC compilers that
4424         support __attribute__.  The Autoconf way to do this is to test for
4425         each kind of attribute that we want support for, and selectively
4426         enable that in source code.
4427
4428         Fix this problem just for stdlib.h, by adding a test for the
4429         __noreturn__ attribute, and change stdlib.in.h to use that test
4430         when needed.  This technique can be easily generalized to the
4431         other *.in.h files and attributes, and a similar technique can be
4432         used for *.h and *.c files.  This patch is enough to solve the
4433         problem for Emacs + getloadavg, and I thought I'd publish it for
4434         feedback before undertaking further, similar fixes in other
4435         modules.
4436
4437         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
4438         because it's not needed for stdlib.h.  It merely substitutes the
4439         value directly into stdlib.h.  We may well need to #define it, or
4440         similar symbols, for other modules, but it's nice to also have an
4441         option to not #define it for applications like Emacs that do not
4442         need it.
4443
4444         * lib/stdlib.in.h (__attribute__): Do not #define.
4445         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
4446         be defined only if the _Exit module is also used.
4447         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
4448         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
4449         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
4450         platforms.
4451         * modules/_Exit (Files): Add m4/attribute.m4.
4452         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
4453         * m4/attribute.m4: New file.
4454
4455 2011-02-12  Bruno Haible  <bruno@clisp.org>
4456
4457         wcsrtombs: Work around bug on native Windows.
4458         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
4459         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
4460         instead of len.
4461         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
4462
4463 2011-02-12  Bruno Haible  <bruno@clisp.org>
4464
4465         mbsrtowcs: Work around bug on native Windows.
4466         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
4467         against mingw bug.
4468         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
4469
4470 2011-02-12  Bruno Haible  <bruno@clisp.org>
4471
4472         Avoid setlocale bugs in tests.
4473         * modules/btowc (Dependencies): Add setlocale.
4474         * modules/c-strcase (Dependencies): Likewise.
4475         * modules/mbmemcasecmp (Dependencies): Likewise.
4476         * modules/mbmemcasecoll (Dependencies): Likewise.
4477         * modules/mbrtowc (Dependencies): Likewise.
4478         * modules/mbscasecmp (Dependencies): Likewise.
4479         * modules/mbscasestr (Dependencies): Likewise.
4480         * modules/mbschr (Dependencies): Likewise.
4481         * modules/mbscspn (Dependencies): Likewise.
4482         * modules/mbsinit (Dependencies): Likewise.
4483         * modules/mbsncasecmp (Dependencies): Likewise.
4484         * modules/mbsnrtowcs (Dependencies): Likewise.
4485         * modules/mbspbrk (Dependencies): Likewise.
4486         * modules/mbspcasecmp (Dependencies): Likewise.
4487         * modules/mbsrchr (Dependencies): Likewise.
4488         * modules/mbsrtowcs (Dependencies): Likewise.
4489         * modules/mbsspn (Dependencies): Likewise.
4490         * modules/mbsstr (Dependencies): Likewise.
4491         * modules/nl_langinfo (Dependencies): Likewise.
4492         * modules/quotearg (Dependencies): Likewise.
4493         * modules/unicase/locale-language (Dependencies): Likewise.
4494         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
4495         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
4496         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
4497         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
4498         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
4499         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
4500         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
4501         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
4502         * modules/vasnprintf-posix (Dependencies): Likewise.
4503         * modules/wcrtomb (Dependencies): Likewise.
4504         * modules/wcsnrtombs (Dependencies): Likewise.
4505         * modules/wcsrtombs (Dependencies): Likewise.
4506
4507 2011-02-12  Bruno Haible  <bruno@clisp.org>
4508
4509         setlocale: Workaround native Windows bug.
4510         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
4511         succeeds but sets LC_CTYPE to "C", report a failure.
4512         * tests/test-setlocale2.sh: New file.
4513         * tests/test-setlocale2.c: New file.
4514         * modules/setlocale-tests (Files): Add the new files.
4515         (Makefile.am): Enable test-setlocale2.sh test.
4516         * doc/posix-functions/setlocale.texi: Mention workaround.
4517
4518 2011-02-11  Bruno Haible  <bruno@clisp.org>
4519
4520         Tests for module 'setlocale'.
4521         * modules/setlocale-tests: New file.
4522         * tests/test-setlocale1.sh: New file.
4523         * tests/test-setlocale1.c: New file.
4524
4525         New module 'setlocale'.
4526         * lib/locale.in.h (setlocale): New declaration.
4527         * lib/setlocale.c: New file, based on
4528         gettext/gettext-runtime/intl/setlocale.c.
4529         * m4/setlocale.m4: New file.
4530         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
4531         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
4532         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
4533         REPLACE_SETLOCALE.
4534         * modules/setlocale: New file.
4535         * tests/test-locale-c++.cc: Test the declaration of setlocale.
4536         * doc/posix-functions/setlocale.texi: Mention the new module.
4537
4538 2011-02-11  Bruno Haible  <bruno@clisp.org>
4539
4540         Prepare for locale dependent tests on mingw.
4541         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
4542         because it has the wrong locale encoding.
4543         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
4544         French_France.1252 instead of "fr".
4545         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
4546         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
4547         because it has the wrong locale encoding.
4548         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
4549         native Windows, try Turkish_Turkey.65001.
4550         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
4551         Chinese_China.54936.
4552
4553         Prepare for locale dependent tests on mingw.
4554         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
4555         differently.
4556         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4557         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4558         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4559         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4560
4561 2011-02-11  Eric Blake  <eblake@redhat.com>
4562
4563         strptime: avoid compiler warnings
4564         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
4565         compiler warnings about dead code.
4566         Reported by Daniel P. Berrange.
4567
4568 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
4569
4570         doc: update users.txt
4571         * users.txt: Add rcs.
4572
4573 2011-02-10  John W. Eaton  <jwe@gnu.org>
4574
4575         doc: update users.txt
4576         * users.txt: Add octave.
4577
4578 2011-02-10  Jim Meyering  <meyering@redhat.com>
4579
4580         doc: update users.txt
4581         * users.txt: Add iwhd.
4582
4583 2011-02-09  Bruno Haible  <bruno@clisp.org>
4584
4585         gnulib-tool: Make copyright notice adjustment more robust.
4586         * gnulib-tool (func_import): In sed_transform_main_lib_file,
4587         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
4588         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
4589         License".
4590         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
4591
4592 2011-02-06  Bruno Haible  <bruno@clisp.org>
4593
4594         New module 'towctrans'.
4595         * modules/towctrans: New file.
4596         * lib/wctype.in.h (towctrans): New declaration.
4597         * lib/towctrans.c: New file.
4598         * lib/towctrans-impl.h: New file.
4599         * m4/towctrans.m4: New file.
4600         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
4601         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
4602         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
4603         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
4604         * doc/posix-functions/towctrans.texi: Mention the new module.
4605
4606 2011-02-06  Bruno Haible  <bruno@clisp.org>
4607
4608         New module 'wctrans'.
4609         * modules/wctrans: New file.
4610         * lib/wctype.in.h (wctrans): New declaration.
4611         * lib/wctrans.c: New file.
4612         * lib/wctrans-impl.h: New file.
4613         * m4/wctrans.m4: New file.
4614         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
4615         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
4616         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
4617         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
4618         * doc/posix-functions/wctrans.texi: Mention the new module.
4619
4620 2011-02-06  Bruno Haible  <bruno@clisp.org>
4621
4622         New module 'iswctype'.
4623         * modules/iswctype: New file.
4624         * lib/wctype.in.h (iswctype): New declaration.
4625         * lib/iswctype.c: New file.
4626         * lib/iswctype-impl.h: New file.
4627         * m4/iswctype.m4: New file.
4628         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
4629         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
4630         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
4631         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
4632         * doc/posix-functions/iswctype.texi: Mention the new module and the
4633         HP-UX 11.00 problem.
4634
4635 2011-02-06  Bruno Haible  <bruno@clisp.org>
4636
4637         New module 'wctype'.
4638         * modules/wctype: Change to represent the wctype() substitute.
4639         * lib/wctype.in.h (wctype): New declaration.
4640         * lib/wctype.c: New file.
4641         * lib/wctype-impl.h: New file.
4642         * m4/wctype.m4: New file.
4643         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
4644         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
4645         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
4646         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
4647         * doc/posix-functions/wctype.texi: Mention the new module and the
4648         HP-UX 11.00 problem.
4649
4650 2011-02-06  Bruno Haible  <bruno@clisp.org>
4651
4652         wctype-h: Ensure wctype_t and wctrans_t are defined.
4653         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
4654         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4655         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4656         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
4657         HAVE_WCTRANS_T.
4658         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
4659
4660 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4661
4662         flock: fix license typo
4663
4664         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
4665         omitted.
4666
4667 2011-02-08  Bruno Haible  <bruno@clisp.org>
4668
4669         Split large sed scripts, for HP-UX sed.
4670         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
4671         to avoid HP-UX limit of 99 commands, in the near future.
4672         * modules/stdlib (Makefile.am): Likewise.
4673         * modules/unistd (Makefile.am): Likewise.
4674         * modules/wchar (Makefile.am): Likewise.
4675         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4676         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
4677         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
4678
4679 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4680             Bruno Haible  <bruno@clisp.org>
4681
4682         stdlib: improve random_r modularization
4683         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
4684         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
4685         you also need the random_r module to get this material right.
4686         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
4687         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
4688         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
4689
4690 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4691
4692         stdlib: don't depend on stdint
4693         * lib/stdlib.in.h: Don't include <stdint.h> merely because
4694         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
4695         be independent of whether stdint.h is needed.
4696         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
4697         here, instead of ...
4698         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
4699         struct random_data should be using the random_r module, not just
4700         the stdlib module (which wouldn't make sense: what package needs
4701         just struct random_data without also needing random_r?).
4702         * modules/stdlib (Depends-on): Remove stdint.
4703
4704         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
4705         See the thread rooted at
4706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
4707         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
4708         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
4709         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
4710         __VMS)); previously it was always included (via fcntl--.h).
4711         (getloadavg): Do not use c_strtod.  Instead, approximate it by
4712         hand; this is good enough for load averages.  Also, do not use
4713         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
4714         flags directly if available and don't bother otherwise.  (Packages
4715         that need the extra reliability should use the modules that define
4716         these flags on older platforms that lack them.)
4717         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
4718         fcntl-safer.
4719
4720 2011-02-08  Jim Meyering  <meyering@redhat.com>
4721
4722         di-set.h, ino-map.h: add multiple-inclusion guard
4723         Technically, the guard is required only for ino-map.h, due to its
4724         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
4725         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
4726         * lib/ino-map.h: Likewise.
4727
4728 2011-02-06  Bruno Haible  <bruno@clisp.org>
4729
4730         iswblank: Ensure declaration on glibc systems.
4731         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
4732         * modules/iswblank (Dependencies): Add 'extensions'.
4733         * doc/posix-functions/iswblank.texi: Document the glibc problem.
4734
4735 2011-02-06  Bruno Haible  <bruno@clisp.org>
4736
4737         New module 'iswblank'.
4738         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
4739         * modules/iswblank: New file.
4740         * modules/wctype-h (Files): Remove lib/iswblank.c.
4741         (Makefile.am): Substitute GNULIB_ISWBLANK.
4742         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
4743         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
4744         (gl_WCTYPE_H_DEFAULTS): New macro.
4745         (gl_WCTYPE_H): Require it. Remove iswblank related code.
4746         * modules/iswblank-tests: New file.
4747         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
4748         * tests/test-wctype-h.c (main): Remove iswblank tests.
4749         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
4750         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
4751         of 'wctype-h'.
4752         * NEWS: Mention the change.
4753         * modules/mbchar (Depends-on): Add iswblank.
4754
4755 2011-02-08  Bruno Haible  <bruno@clisp.org>
4756
4757         di-set tests: Refactor.
4758         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
4759         unnecessary includes.
4760         (ASSERT): Remove macro.
4761         (main): Make C90 compliant by avoiding variable declaration after
4762         statement.
4763         * modules/di-set-tests (Files): Add tests/macros.h.
4764
4765 2011-02-08  Bruno Haible  <bruno@clisp.org>
4766
4767         ino-map tests: Refactor.
4768         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
4769         unnecessary includes.
4770         (ASSERT): Remove macro.
4771         (main): Make C90 compliant by avoiding variable declaration after
4772         statement.
4773         * modules/ino-map-tests (Files): Add tests/macros.h.
4774
4775 2011-02-08  Jim Meyering  <meyering@redhat.com>
4776
4777         di-set: add "const" to a cast
4778         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
4779         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
4780
4781 2011-02-06  Bruno Haible  <bruno@clisp.org>
4782
4783         Rename module 'wctype' to 'wctype-h'.
4784         * modules/wctype-h: Renamed from modules/wctype.
4785         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
4786         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
4787         (Files, Depends-on, Makefile.am): Update.
4788         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
4789         (Files, Makefile.am): Update.
4790         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
4791         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
4792         * doc/posix-headers/wctype.texi: Update.
4793         * doc/posix-functions/iswalnum.texi: Update.
4794         * doc/posix-functions/iswalpha.texi: Update.
4795         * doc/posix-functions/iswblank.texi: Update.
4796         * doc/posix-functions/iswcntrl.texi: Update.
4797         * doc/posix-functions/iswdigit.texi: Update.
4798         * doc/posix-functions/iswgraph.texi: Update.
4799         * doc/posix-functions/iswlower.texi: Update.
4800         * doc/posix-functions/iswprint.texi: Update.
4801         * doc/posix-functions/iswpunct.texi: Update.
4802         * doc/posix-functions/iswspace.texi: Update.
4803         * doc/posix-functions/iswupper.texi: Update.
4804         * doc/posix-functions/iswxdigit.texi: Update.
4805         * doc/posix-functions/towlower.texi: Update.
4806         * doc/posix-functions/towupper.texi: Update.
4807         * NEWS: Mention the change.
4808         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
4809         * modules/mbchar (Dependencies): Likewise.
4810         * modules/mbswidth (Dependencies): Likewise.
4811         * modules/quotearg (Dependencies): Likewise.
4812         * modules/regex (Dependencies): Likewise.
4813         * modules/wcscasecmp (Dependencies): Likewise.
4814         * modules/wcsncasecmp (Dependencies): Likewise.
4815         * modules/wcwidth (Dependencies): Likewise.
4816
4817 2011-02-06  Bruno Haible  <bruno@clisp.org>
4818
4819         New module 'wcswidth'.
4820         * modules/wcswidth: New file.
4821         * lib/wchar.in.h (wcswidth): New declaration.
4822         * lib/wcswidth.c: New file.
4823         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
4824         * m4/wcswidth.m4: New file.
4825         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
4826         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
4827         REPLACE_WCSWIDTH.
4828         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
4829         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
4830         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
4831         * doc/posix-functions/wcswidth.texi: Mention the new module.
4832
4833 2011-02-06  Bruno Haible  <bruno@clisp.org>
4834
4835         New module 'wcstok'.
4836         * modules/wcstok: New file.
4837         * lib/wchar.in.h (wcstok): New declaration.
4838         * lib/wcstok.c: New file.
4839         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
4840         * m4/wcstok.m4: New file.
4841         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
4842         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
4843         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
4844         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
4845         * doc/posix-functions/wcstok.texi: Mention the new module.
4846
4847 2011-02-06  Bruno Haible  <bruno@clisp.org>
4848
4849         New module 'wcsstr'.
4850         * modules/wcsstr: New file.
4851         * lib/wchar.in.h (wcsstr): New declaration.
4852         * lib/wcsstr.c: New file.
4853         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
4854         * m4/wcsstr.m4: New file.
4855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
4856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
4857         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
4858         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
4859         * doc/posix-functions/wcsstr.texi: Mention the new module.
4860
4861 2011-02-06  Bruno Haible  <bruno@clisp.org>
4862
4863         New module 'wcspbrk'.
4864         * modules/wcspbrk: New file.
4865         * lib/wchar.in.h (wcspbrk): New declaration.
4866         * lib/wcspbrk.c: New file.
4867         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
4868         * m4/wcspbrk.m4: New file.
4869         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
4870         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
4871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
4872         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
4873         * doc/posix-functions/wcspbrk.texi: Mention the new module.
4874
4875 2011-02-06  Bruno Haible  <bruno@clisp.org>
4876
4877         New module 'wcsspn'.
4878         * modules/wcsspn: New file.
4879         * lib/wchar.in.h (wcsspn): New declaration.
4880         * lib/wcsspn.c: New file.
4881         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
4882         * m4/wcsspn.m4: New file.
4883         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
4884         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
4885         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
4886         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
4887         * doc/posix-functions/wcsspn.texi: Mention the new module.
4888
4889 2011-02-06  Bruno Haible  <bruno@clisp.org>
4890
4891         New module 'wcscspn'.
4892         * modules/wcscspn: New file.
4893         * lib/wchar.in.h (wcscspn): New declaration.
4894         * lib/wcscspn.c: New file.
4895         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
4896         * m4/wcscspn.m4: New file.
4897         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
4898         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
4899         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
4900         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
4901         * doc/posix-functions/wcscspn.texi: Mention the new module.
4902
4903 2011-02-06  Bruno Haible  <bruno@clisp.org>
4904
4905         New module 'wcsrchr'.
4906         * modules/wcsrchr: New file.
4907         * lib/wchar.in.h (wcsrchr): New declaration.
4908         * lib/wcsrchr.c: New file.
4909         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
4910         * m4/wcsrchr.m4: New file.
4911         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
4912         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
4913         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
4914         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
4915         * doc/posix-functions/wcsrchr.texi: Mention the new module.
4916
4917 2011-02-06  Bruno Haible  <bruno@clisp.org>
4918
4919         New module 'wcschr'.
4920         * modules/wcschr: New file.
4921         * lib/wchar.in.h (wcschr): New declaration.
4922         * lib/wcschr.c: New file.
4923         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
4924         * m4/wcschr.m4: New file.
4925         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
4926         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
4927         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
4928         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
4929         * doc/posix-functions/wcschr.texi: Mention the new module.
4930
4931 2011-02-06  Bruno Haible  <bruno@clisp.org>
4932
4933         New module 'wcsdup'.
4934         * modules/wcsdup: New file.
4935         * lib/wchar.in.h (wcsdup): New declaration.
4936         * lib/wcsdup.c: New file.
4937         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
4938         * m4/wcsdup.m4: New file.
4939         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
4940         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
4941         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
4942         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
4943         * doc/posix-functions/wcsdup.texi: Mention the new module.
4944
4945 2011-02-06  Bruno Haible  <bruno@clisp.org>
4946
4947         New module 'wcsxfrm'.
4948         * modules/wcsxfrm: New file.
4949         * lib/wchar.in.h (wcsxfrm): New declaration.
4950         * lib/wcsxfrm.c: New file.
4951         * lib/wcsxfrm-impl.h: New file.
4952         * m4/wcsxfrm.m4: New file.
4953         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
4954         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
4955         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
4956         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
4957         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
4958
4959 2011-02-06  Bruno Haible  <bruno@clisp.org>
4960
4961         New module 'wcscoll'.
4962         * modules/wcscoll: New file.
4963         * lib/wchar.in.h (wcscoll): New declaration.
4964         * lib/wcscoll.c: New file.
4965         * lib/wcscoll-impl.h: New file.
4966         * m4/wcscoll.m4: New file.
4967         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
4968         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
4969         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
4970         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
4971         * doc/posix-functions/wcscoll.texi: Mention the new module.
4972
4973 2011-02-06  Bruno Haible  <bruno@clisp.org>
4974
4975         New module 'wcsncasecmp'.
4976         * modules/wcsncasecmp: New file.
4977         * lib/wchar.in.h (wcsncasecmp): New declaration.
4978         * lib/wcsncasecmp.c: New file.
4979         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
4980         * m4/wcsncasecmp.m4: New file.
4981         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
4982         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
4983         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
4984         HAVE_WCSNCASECMP.
4985         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
4986         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
4987
4988 2011-02-06  Bruno Haible  <bruno@clisp.org>
4989
4990         New module 'wcscasecmp'.
4991         * modules/wcscasecmp: New file.
4992         * lib/wchar.in.h (wcscasecmp): New declaration.
4993         * lib/wcscasecmp.c: New file.
4994         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
4995         * m4/wcscasecmp.m4: New file.
4996         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
4997         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
4998         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
4999         HAVE_WCSCASECMP.
5000         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
5001         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
5002
5003 2011-02-05  Bruno Haible  <bruno@clisp.org>
5004
5005         New module 'wcsncmp'.
5006         * modules/wcsncmp: New file.
5007         * lib/wchar.in.h (wcsncmp): New declaration.
5008         * lib/wcsncmp.c: New file.
5009         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
5010         * m4/wcsncmp.m4: New file.
5011         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
5012         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
5013         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
5014         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
5015         * doc/posix-functions/wcsncmp.texi: Mention the new module.
5016
5017 2011-02-05  Bruno Haible  <bruno@clisp.org>
5018
5019         New module 'wcscmp'.
5020         * modules/wcscmp: New file.
5021         * lib/wchar.in.h (wcscmp): New declaration.
5022         * lib/wcscmp.c: New file.
5023         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
5024         * m4/wcscmp.m4: New file.
5025         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
5026         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
5027         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
5028         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
5029         * doc/posix-functions/wcscmp.texi: Mention the new module.
5030
5031 2011-02-05  Bruno Haible  <bruno@clisp.org>
5032
5033         New module 'wcsncat'.
5034         * modules/wcsncat: New file.
5035         * lib/wchar.in.h (wcsncat): New declaration.
5036         * lib/wcsncat.c: New file.
5037         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
5038         * m4/wcsncat.m4: New file.
5039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
5040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
5041         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
5042         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
5043         * doc/posix-functions/wcsncat.texi: Mention the new module.
5044
5045 2011-02-05  Bruno Haible  <bruno@clisp.org>
5046
5047         New module 'wcscat'.
5048         * modules/wcscat: New file.
5049         * lib/wchar.in.h (wcscat): New declaration.
5050         * lib/wcscat.c: New file.
5051         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
5052         * m4/wcscat.m4: New file.
5053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
5054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
5055         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
5056         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
5057         * doc/posix-functions/wcscat.texi: Mention the new module.
5058
5059 2011-02-05  Bruno Haible  <bruno@clisp.org>
5060
5061         New module 'wcpncpy'.
5062         * modules/wcpncpy: New file.
5063         * lib/wchar.in.h (wcpncpy): New declaration.
5064         * lib/wcpncpy.c: New file.
5065         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
5066         * m4/wcpncpy.m4: New file.
5067         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
5068         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
5069         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
5070         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
5071         * doc/posix-functions/wcpncpy.texi: Mention the new module.
5072
5073 2011-02-05  Bruno Haible  <bruno@clisp.org>
5074
5075         New module 'wcsncpy'.
5076         * modules/wcsncpy: New file.
5077         * lib/wchar.in.h (wcsncpy): New declaration.
5078         * lib/wcsncpy.c: New file.
5079         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
5080         * m4/wcsncpy.m4: New file.
5081         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
5082         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
5083         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
5084         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
5085         * doc/posix-functions/wcsncpy.texi: Mention the new module.
5086
5087 2011-02-05  Bruno Haible  <bruno@clisp.org>
5088
5089         New module 'wcpcpy'.
5090         * modules/wcpcpy: New file.
5091         * lib/wchar.in.h (wcpcpy): New declaration.
5092         * lib/wcpcpy.c: New file.
5093         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
5094         * m4/wcpcpy.m4: New file.
5095         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
5096         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
5097         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
5098         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
5099         * doc/posix-functions/wcpcpy.texi: Mention the new module.
5100
5101 2011-02-05  Bruno Haible  <bruno@clisp.org>
5102
5103         New module 'wcscpy'.
5104         * modules/wcscpy: New file.
5105         * lib/wchar.in.h (wcscpy): New declaration.
5106         * lib/wcscpy.c: New file.
5107         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
5108         * m4/wcscpy.m4: New file.
5109         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
5110         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
5111         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
5112         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
5113         * doc/posix-functions/wcscpy.texi: Mention the new module.
5114
5115 2011-02-05  Bruno Haible  <bruno@clisp.org>
5116
5117         New module 'wcsnlen'.
5118         * modules/wcsnlen: New file.
5119         * lib/wchar.in.h (wcsnlen): New declaration.
5120         * lib/wcsnlen.c: New file.
5121         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
5122         * m4/wcsnlen.m4: New file.
5123         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
5124         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
5125         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
5126         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
5127         * doc/posix-functions/wcsnlen.texi: Mention the new module.
5128
5129 2011-02-05  Bruno Haible  <bruno@clisp.org>
5130
5131         New module 'wcslen'.
5132         * modules/wcslen: New file.
5133         * lib/wchar.in.h (wcslen): New declaration.
5134         * lib/wcslen.c: New file.
5135         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
5136         * m4/wcslen.m4: New file.
5137         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
5138         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
5139         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
5140         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
5141         * doc/posix-functions/wcslen.texi: Mention the new module.
5142
5143 2011-02-05  Bruno Haible  <bruno@clisp.org>
5144
5145         New module 'wmemset'.
5146         * modules/wmemset: New file.
5147         * lib/wchar.in.h (wmemset): New declaration.
5148         * lib/wmemset.c: New file.
5149         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
5150         * m4/wmemset.m4: New file.
5151         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
5152         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
5153         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
5154         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
5155         * doc/posix-functions/wmemset.texi: Mention the new module.
5156
5157 2011-02-05  Bruno Haible  <bruno@clisp.org>
5158
5159         New module 'wmemmove'.
5160         * modules/wmemmove: New file.
5161         * lib/wchar.in.h (wmemmove): New declaration.
5162         * lib/wmemmove.c: New file.
5163         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
5164         * m4/wmemmove.m4: New file.
5165         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
5166         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
5167         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
5168         HAVE_WMEMMOVE.
5169         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
5170         * doc/posix-functions/wmemmove.texi: Mention the new module.
5171
5172 2011-02-05  Bruno Haible  <bruno@clisp.org>
5173
5174         New module 'wmemcpy'.
5175         * modules/wmemcpy: New file.
5176         * lib/wchar.in.h (wmemcpy): New declaration.
5177         * lib/wmemcpy.c: New file.
5178         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
5179         * m4/wmemcpy.m4: New file.
5180         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
5181         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
5182         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
5183         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
5184         * doc/posix-functions/wmemcpy.texi: Mention the new module.
5185
5186 2011-02-05  Bruno Haible  <bruno@clisp.org>
5187
5188         New module 'wmemcmp'.
5189         * modules/wmemcmp: New file.
5190         * lib/wchar.in.h (wmemcmp): New declaration.
5191         * lib/wmemcmp.c: New file.
5192         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
5193         * m4/wmemcmp.m4: New file.
5194         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
5195         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
5196         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
5197         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
5198         * doc/posix-functions/wmemcmp.texi: Mention the new module.
5199
5200 2011-02-07  Jim Meyering  <meyering@redhat.com>
5201
5202         di-set, ino-map: new modules, from coreutils
5203         * lib/di-set.c: New file.
5204         * lib/di-set.h: Likewise.
5205         * lib/ino-map.c: Likewise.
5206         * lib/ino-map.h: Likewise.
5207         * modules/di-set: Likewise.
5208         * modules/di-set-tests: Likewise.
5209         * modules/ino-map: Likewise.
5210         * modules/ino-map-tests: Likewise.
5211         * tests/test-di-set.c: Likewise.
5212         * tests/test-ino-map.c: Likewise.
5213
5214 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
5215
5216         getloadavg: merge minor changes from Emacs
5217
5218         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
5219         (getloadavg): Use memset, not bzero.
5220
5221         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
5222         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5223         clash (bug#86).
5224
5225 2010-11-14  Bruno Haible  <bruno@clisp.org>
5226
5227         Allow multiple gnulib generated replacements to coexist.
5228         * lib/getopt.in.h (struct option): Avoid identical redefinition.
5229         * lib/inttypes.in.h (imaxdiv_t): Likewise.
5230         * lib/langinfo.in.h (nl_item): Likewise.
5231         * lib/math.in.h (_NaN, NAN): Likewise.
5232         * lib/netdb.in.h (struct addrinfo): Likewise.
5233         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
5234         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
5235         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
5236         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
5237         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
5238         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
5239         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
5240         pthread_mutexattr_init, pthread_mutexattr_settype,
5241         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
5242         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
5243         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
5244         pthread_spin_trylock, pthread_spin_unlock): Likewise.
5245         * lib/sched.in.h (struct sched_param): Likewise.
5246         * lib/se-selinux.in.h (security_class_t, security_context_t,
5247         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
5248         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
5249         lsetfilecon, fsetfilecon, security_check_context,
5250         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
5251         Likewise.
5252         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
5253         Likewise.
5254         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
5255         _gl_function_taking_int_returning_void_t, union sigval,
5256         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
5257         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
5258         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5259         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
5260         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
5261         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
5262         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
5263         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
5264         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
5265         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
5266         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
5267         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
5268         socklen_t, rpl_fd_isset): Likewise.
5269         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
5270         * lib/sys_time.in.h (struct timeval): Likewise.
5271         * lib/sys_times.in.h (struct tms): Likewise.
5272         * lib/sys_utsname.in.h (struct utsname):
5273         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
5274         * lib/unistd.in.h (getpagesize): Likewise.
5275         * lib/wchar.in.h (mbstate_t): Likewise.
5276         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5277         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
5278         towlower, towupper): Likewise.
5279         Reported by Sam Steingold <sds@gnu.org>.
5280
5281 2011-02-05  Eric Blake  <eblake@redhat.com>
5282
5283         unsetenv: work around Haiku issues
5284         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
5285         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
5286
5287 2010-12-30  Bruce Korb  <bkorb@gnu.org>
5288
5289         libposix: avoid calling error() within libposix
5290         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
5291         is defined.
5292
5293 2011-02-05  Eric Blake  <eblake@redhat.com>
5294
5295         strerror_r-posix: port to cygwin
5296         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
5297         implementation.
5298         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
5299         * tests/test-strerror_r.c (main): Fix test.
5300         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5301         issue.
5302
5303 2011-02-05  Bruno Haible  <bruno@clisp.org>
5304
5305         New module 'wmemchr'.
5306         * modules/wmemchr: New file.
5307         * lib/wchar.in.h (wmemchr): New declaration.
5308         * lib/wmemchr.c: New file.
5309         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
5310         * m4/wmemchr.m4: New file.
5311         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
5312         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
5313         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
5314         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
5315         * doc/posix-functions/wmemchr.texi: Mention the new module.
5316
5317 2011-02-04  Eric Blake  <eblake@redhat.com>
5318
5319         fdopendir: detect FreeBSD bug
5320         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
5321         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
5322
5323 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5324
5325         stdbool: do not define HAVE_STDBOOL_H
5326         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
5327         AC_HEADER_STDBOOL.  All uses changed.  Do not define
5328         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
5329         imported from the latest Autoconf git.  It was motivated by Emacs,
5330         which uses gnulib but does not need HAVE_STDBOOL_H.
5331
5332 2011-02-04  Bruno Haible  <bruno@clisp.org>
5333
5334         wcsnrtombs: Prepare for new module wwcsnrtombs.
5335         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
5336         * lib/wcsnrtombs.c: Include it.
5337         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
5338
5339         wcsrtombs: Prepare for new module wwcsrtombs.
5340         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
5341         * lib/wcsrtombs.c: Include it.
5342         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
5343
5344         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
5345         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
5346         * lib/mbsnrtowcs.c: Include it.
5347         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
5348
5349         mbsrtowcs: Prepare for new module mbsrtowwcs.
5350         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
5351         * lib/mbsrtowcs.c: Include it.
5352         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
5353
5354 2011-02-04  Bruno Haible  <bruno@clisp.org>
5355
5356         vasnprintf: Reduce use of malloc for small format strings.
5357         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
5358         (arguments): Add room for the first 7 arguments.
5359         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
5360         (char_directives, u8_directives, u16_directives, u32_directives): Add
5361         room for the first 7 directives.
5362         * lib/printf-parse.c: Include <string.h>.
5363         (PRINTF_PARSE): Change memory handling code so that it uses the first
5364         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
5365         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
5366         Reported by Pádraig Brady <P@draigbrady.com>.
5367
5368 2011-01-31  Eric Blake  <eblake@redhat.com>
5369
5370         dup2: work around Haiku bug
5371         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
5372         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
5373         * doc/posix-functions/dup2.texi (dup2): Document the bug.
5374         * tests/test-dup2.c (main): Enhance test.
5375
5376 2011-01-31  Simon Josefsson  <simon@josefsson.org>
5377
5378         doc: off_t is not available in eglibc 2.11.2 stdio.h.
5379         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
5380         declared by eglibc 2.11.2.
5381         * lib/stdio.in.h: Likewise.
5382
5383 2011-01-31  Eric Blake  <eblake@redhat.com>
5384
5385         ignore-value: add missing test dependency
5386         * tests/test-ignore-value.c: Revert previous change; stdio.h
5387         provides off_t.
5388         * modules/ignore-value-tests (Depends-on): Add missing dependency.
5389
5390 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
5391
5392         mktime: clarify long_int width checking
5393         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
5394         the top level, to make it clearer that the assumption about
5395         long_int width is being checked.  See
5396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
5397
5398 2011-01-30  Simon Josefsson  <simon@josefsson.org>
5399
5400         ignore-value: Fix self-test.
5401         * tests/test-ignore-value.c: Include sys/types.h for off_t.
5402
5403 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5404
5405         TYPE_MAXIMUM: avoid theoretically undefined behavior
5406         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
5407         negative number, which the C Standard says has undefined behavior.
5408         In practice this is not a problem, but might as well do it by the book.
5409         Reported by Rich Felker and Eric Blake; see
5410         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
5411         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
5412         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5413         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5414         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
5415         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5416         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
5417
5418         mktime: #undef mktime before #defining it
5419         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
5420
5421         mktime: systematically normalize tm_isdst comparisons
5422         * lib/mktime.c (isdst_differ): New function.
5423         (__mktime_internal): Use it systematically for all isdst comparisons.
5424         This completes the fix for libc BZ #6723, and removes the need for
5425         normalizing tm_isdst.  See
5426         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
5427         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
5428
5429         mktime: fix some integer overflow issues and sidestep the rest
5430
5431         This was prompted by a bug report by Benjamin Lindner for MinGW
5432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
5433         His bug is due to signed integer overflow (0 - INT_MIN), and I
5434         I scanned through mktime.c looking for other integer overflow
5435         problems, fixing all the bugs I found.
5436
5437         Although the C Standard says the resulting code is still not safe
5438         in the presence of integer overflow, in practice it should be good
5439         enough for all real-world two's-complement implementations, except
5440         for debugging environments that deliberately trap on integer
5441         overflow (e.g., gcc -ftrapv).
5442
5443         * lib/mktime.c (WRAPV): New macro.
5444         (SHR): Also check that long_int and time_t shift right in the
5445         usual way, before using the fast-but-unportable method.
5446         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
5447         used.  The code already assumed two's complement, so there's
5448         no need to test for alternatives.  All uses removed.
5449         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
5450         the C standard.  Problem reported by Rich Felker in
5451         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
5452         (twos_complement_arithmetic): Also check long_int and time_t.
5453         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
5454         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
5455         (__mktime_internal): Avoid integer overflow with unary subtraction
5456         in two instances where -1 - X is an adequate replacement for -X,
5457         since the calculations are approximate.
5458
5459 2011-01-29  Eric Blake  <eblake@redhat.com>
5460
5461         mktime: avoid infinite loop
5462         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
5463         type; behavior is still undefined but portable to all known targets.
5464         Reported by Rich Felker.
5465
5466 2011-01-29  Simon Josefsson  <simon@josefsson.org>
5467
5468         rename, unlink, same-inode: Relicense.
5469         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
5470         * modules/unlink (License): Likewise.
5471         * modules/same-inode (License): Likewise.
5472
5473 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5474
5475         mktime: avoid problems on NetBSD 5 / i386
5476         * lib/mktime.c (long_int): New type.  This works around a problem
5477         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
5478         but time_t is 64 bits, and where I expect the existing code is
5479         wrong in some cases.
5480         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
5481         (ydhms_diff): Bring back the compile-time check for wide-enough
5482         year and yday.
5483
5484         mktime: fix misspelling in comment
5485         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
5486         This merges all recent glibc changes of importance.
5487
5488 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5489
5490         move-if-change: cope with concurrent mv of identical file.
5491         * build-aux/move-if-change (CMPPROG): Accept environment
5492         variable as an override for `cmp'.
5493         (usage): Document CMPPROG.
5494         Adjust comparison to drop stdout.  Cope with failure of mv if
5495         the target file exists and is identical to the source, for
5496         parallel builds.
5497         Report from H.J. Lu against binutils in PR binutils/12283.
5498
5499 2011-01-28  Bruce Korb  <bkorb@gnu.org>
5500
5501         * users.txt: Mention sharutils.
5502
5503 2011-01-28  Simon Josefsson  <simon@josefsson.org>
5504
5505         * users.txt: Mention OATH Toolkit.
5506
5507 2011-01-27  Bruno Haible  <bruno@clisp.org>
5508
5509         Prepare for supporting FreeBSD 10.
5510         * build-aux/config.libpath: Remove handling of freebsd1*.
5511
5512 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
5513
5514         Prepare for supporting FreeBSD 10.
5515         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
5516         match FreeBSD 10.0.
5517
5518 2011-01-27  Bruno Haible  <bruno@clisp.org>
5519
5520         vma-iter, get-rusage-as: Add OpenBSD support.
5521         * modules/vma-iter (configure.ac): Test for mquery.
5522         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
5523         * lib/vma-iter.c: Include <sys/mman.h>.
5524         (vma_iterate): Add an implementation based on mquery().
5525         * lib/resource-ext.h (get_rusage_as): Update comments.
5526         * lib/get-rusage-as.c: Likewise.
5527         * lib/get-rusage-data.c: Likewise.
5528
5529 2011-01-26  Karl Berry  <karl@gnu.org>
5530
5531         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
5532         variables to make it easier to override the makeinfo program used.
5533
5534 2011-01-26  Eric Blake  <eblake@redhat.com>
5535
5536         fcntl: work around Haiku F_DUPFD bugs
5537         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
5538         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
5539         cloexec bit on duplication.
5540         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
5541
5542 2011-01-26  Bruno Haible  <bruno@clisp.org>
5543
5544         Enable memory leak tests on AIX.
5545         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
5546         * tests/test-fprintf-posix3.c (main): Likewise.
5547
5548 2011-01-26  Bruno Haible  <bruno@clisp.org>
5549
5550         Tests for module 'get-rusage-data'.
5551         * modules/get-rusage-data-tests: New file.
5552         * tests/test-get-rusage-data.c: New file.
5553
5554         New module 'get-rusage-data'.
5555         * lib/resource-ext.h (get_rusage_data): New declaration.
5556         * lib/get-rusage-data.c: New file.
5557         * modules/get-rusage-data: New file.
5558
5559 2011-01-25  Bruno Haible  <bruno@clisp.org>
5560
5561         get-rusage-as: Allow for easier testing.
5562         * lib/resource-ext.h (get_rusage_as): Add comment.
5563         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
5564         (main): New function for interactive testing.
5565
5566 2011-01-25  Bruno Haible  <bruno@clisp.org>
5567
5568         vma-iter: Treat Haiku like BeOS.
5569         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
5570         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
5571
5572 2011-01-25  Eric Blake  <eblake@redhat.com>
5573
5574         c-stack: fix regression on cygwin when libsigsegv is present
5575         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
5576
5577 2011-01-24  Bruno Haible  <bruno@clisp.org>
5578
5579         vma-iter: Avoid empty intervals.
5580         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
5581         on an empty interval.
5582
5583 2011-01-24  Jim Meyering  <meyering@redhat.com>
5584
5585         u64: remove unnecessary #include
5586         * lib/u64.h: Don't include <stddef.h>.  It was not used.
5587
5588 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5589
5590         Allow the user to avoid the HAVE_RAW_DECL_* macros.
5591         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
5592
5593 2011-01-23  Bruno Haible  <bruno@clisp.org>
5594
5595         New module 'vma-iter'.
5596         * lib/vma-iter.h: New file.
5597         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
5598         * modules/vma-iter: New file.
5599         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
5600         for get_rusage_as_via_iterator.
5601         (vma_iterate_callback): New function.
5602         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
5603         * modules/get-rusage-as (Depends-on): Add vma-iter.
5604
5605 2011-01-23  Bruno Haible  <bruno@clisp.org>
5606
5607         uninorm: Tweak includes.
5608         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
5609         Reported by Jim Meyering.
5610
5611 2011-01-23  Bruno Haible  <bruno@clisp.org>
5612
5613         get-rusage-as: Improve on NetBSD.
5614         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
5615         /proc, like on FreeBSD.
5616
5617 2011-01-23  Jim Meyering  <meyering@redhat.com>
5618
5619         xreadlink.h: remove unnecessary #include
5620         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
5621
5622         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
5623         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
5624
5625 2011-01-23  Bruno Haible  <bruno@clisp.org>
5626
5627         get-rusage-as: Fix bug.
5628         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
5629         original limit when aborting the first loop.
5630
5631 2011-01-23  Bruno Haible  <bruno@clisp.org>
5632
5633         wctype: Ensure valid C syntax.
5634         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
5635         unconditionally, instead of gl_NEXT_HEADERS conditionally.
5636
5637 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5638
5639         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
5640         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
5641         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
5642         as they are needed only for configure's test case.
5643         This removes two unnecessary symbols from config.h.
5644
5645         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
5646         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
5647         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
5648         AC_CHECK_HEADERS_ONCE on a header that we also invoke
5649         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
5650         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
5651         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
5652         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5653         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5654         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5655         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5656         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5657         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5658         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5659         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5660         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5661         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5662         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5663
5664 2011-01-21  Eric Blake  <eblake@redhat.com>
5665
5666         maintainer-makefile: work with older git for submodule check
5667         * top/maint.mk (public-submodule-commit): Rewrite to avoid
5668         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
5669         Reported by Matthias Bolte.
5670
5671         bootstrap: minor portability fixes
5672         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
5673         (usage): Omit leading capital and trailing . on help phrases, per
5674         GNU Coding Standards.
5675         (check_versions, top level): Prefix messages with script name.
5676
5677 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
5678
5679         bootstrap: support --no-git option
5680         * build-aux/bootstrap: Add --no-git option, to be used when
5681         --gnulib-srcdir points to the exact desired checkout.
5682
5683 2011-01-21  Eric Blake  <eblake@redhat.com>
5684
5685         strerror_r-posix: work with glibc 2.13
5686         * lib/strerror_r.c (strerror_r): Fix return type.
5687
5688 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5689             Bruno Haible  <bruno@clisp.org>
5690
5691         uN_strstr: New unit tests.
5692         * modules/unistr/u8-strstr-tests: New file.
5693         * modules/unistr/u16-strstr-tests: New file.
5694         * modules/unistr/u32-strstr-tests: New file.
5695         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
5696         * tests/unistr/test-u8-strstr.c: New file.
5697         * tests/unistr/test-u16-strstr.c: New file.
5698         * tests/unistr/test-u32-strstr.c: New file.
5699
5700 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5701             Bruno Haible  <bruno@clisp.org>
5702
5703         Make uN_strstr functions O(n) worst-case.
5704         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
5705         16-bit and 32-bit unit cases, use the unibyte algorithm from
5706         lib/mbsstr.c.
5707         * lib/unistr/u8-strstr.c: Include <string.h>.
5708         (UNIT_IS_UINT8_T): New macro.
5709         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
5710         (U_STRLEN, U_STRNLEN): New macros.
5711         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
5712         (U_STRLEN, U_STRNLEN): New macros.
5713         * modules/unistr/u8-strstr (Depends-on): Add strstr.
5714         (configure.ac): Update required libunistring version.
5715         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
5716         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
5717         malloca.
5718         (configure.ac): Update required libunistring version.
5719         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
5720         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
5721         malloca.
5722         (configure.ac): Update required libunistring version.
5723
5724 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5725             Bruno Haible  <bruno@clisp.org>
5726
5727         Prepare for faster uN_strstr functions.
5728         * lib/str-kmp.h: Support definable UNITs.
5729         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
5730         needle_len argument.
5731         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
5732         * lib/mbscasestr.c (mbscasestr): Likewise.
5733
5734 2011-01-21  Pádraig Brady <P@draigBrady.com>
5735
5736         malloca-tests: make faster by unsetting MALLOC_PERTURB_
5737         * tests/test-malloca.c (main): Unset the environment variable
5738         to greatly speed up the test.
5739         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
5740         * modules/malloca-tests: Depend on unsetenv.
5741
5742 2011-01-21  Pádraig Brady <P@draigBrady.com>
5743
5744         ignore-value: remove stdint dependency
5745         * lib/ignore-value.h: Remove <stdint.h>
5746         * modules/ignore-value: Remove stdint dependency.
5747
5748 2011-01-21  Jim Meyering  <meyering@redhat.com>
5749
5750         maint.mk: adjust variable name to be consistent with other gl_ vars
5751         * top/maint.mk (gl_public_submodule_commit): Rename the variable
5752         to be lower case.
5753
5754 2011-01-20  Jim Meyering  <meyering@redhat.com>
5755
5756         maint.mk: make "check" depend on public-submodule-commit by default
5757         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
5758
5759 2011-01-20  Bruno Haible  <bruno@clisp.org>
5760
5761         mbfile, mbiter: Complete change from 2008-12-21.
5762         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
5763         * m4/mbiter.m4 (gl_MBITER): Likewise.
5764
5765 2011-01-20  Jim Meyering  <meyering@redhat.com>
5766
5767         init.sh: insert space between each function name and "()"
5768         * tests/init.sh: Make it a little easier to see that a function's
5769         name is "warn_", and not "warn" when looking at the first part of
5770         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
5771
5772 2011-01-20  Jim Meyering  <meyering@redhat.com>
5773
5774         mountlist: clean up code formatting
5775         * lib/mountlist.c (read_file_system_list): Split a long line,
5776         correct bracing style, use NULL in place of "(struct statfs *)0",
5777         don't parenthesize return value, add spaces around "=" and after
5778         ";-in-for-stmt".
5779
5780 2011-01-14  Markus Duft <mduft@gentoo.org>
5781
5782         mountlist: add support for Interix
5783         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
5784         Apply statvfs to all entries of /dev/fs.
5785         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
5786         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
5787
5788 2011-01-20  Jim Meyering  <meyering@redhat.com>
5789
5790         maint.mk: improve the public-submodule-commit rule
5791         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
5792         to suppress printing of its commands... unless V=1.
5793         Add git submodule's --quiet option to suppress printing of e.g.,
5794         "Entering gnulib" output.
5795         "cd" into $(srcdir) before running git submodule.
5796
5797 2011-01-20  Bruno Haible  <bruno@clisp.org>
5798
5799         include_next: Fix bug introduced on 2011-01-18.
5800         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
5801         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
5802         ac_cv_header_... variable if the second argument is not 'check'.
5803         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
5804         gl_NEXT_HEADERS_INTERNAL.
5805
5806 2011-01-20  Bruno Haible  <bruno@clisp.org>
5807
5808         Allow the user to avoid the GNULIB_TEST_* macros.
5809         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
5810         Suggested by Paul Eggert.
5811
5812 2011-01-14  Jim Meyering  <meyering@redhat.com>
5813
5814         bootstrap: avoid failure when there is no .gitmodules file
5815         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
5816         has been assigned to, even when its value is the empty string.
5817         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
5818         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
5819         Reported by John W. Eaton <jwe@gnu.org>.
5820
5821 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
5822
5823         assume <ctype.h>, ..., <time.h> exist
5824         For years gnulib has been assuming the existence of the headers
5825         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
5826         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
5827         them, since they don't appear to be needed.
5828         * README (Portability guidelines): Document this.
5829         * lib/flock.c: Assume <fcntl.h> exists.
5830         * lib/regex_internal.h: Assume <locale.h> exists.
5831         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
5832         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
5833         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
5834         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
5835         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
5836         * m4/regex.m4 (gl_REGEX): Likewise.
5837         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
5838         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
5839         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
5840         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
5841         * tests/test-argp.c: Likewise.
5842         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
5843
5844         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
5845         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
5846         AA_APPLE_UNIVERSAL_BUILD.  See
5847         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
5848         * NEWS: Document this.
5849
5850 2011-01-19  Eric Blake  <eblake@redhat.com>
5851
5852         c-stack: assume stack overflow if SA_SIGINFO unsupported
5853         * lib/c-stack.c (SIGACTION_WORKS): Rename...
5854         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
5855         sigaction will work.
5856         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
5857         behavior match Linux.
5858         * tests/test-c-stack.c (main): Prefer NULL for pointers.
5859
5860         stdbool-tests: accomodate Haiku
5861         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
5862
5863         binary-io: fix O_TEXT on Haiku
5864         * modules/binary-io (Depends-on): Add fcntl-h.
5865         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
5866         than blindly undefining O_TEXT.
5867         Reported by Scott McCreary.
5868
5869 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5870
5871         include_next: do not check for standard headers like stddef.h
5872
5873         I found this problem when modifying Emacs to use gnulib.
5874         I noticed that it added HAVE_STDDEF_H to config.h, even though
5875         gnulib always assumes <stddef.h> exists as per README and this
5876         symbol is unnecessary.
5877         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
5878         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
5879         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
5880         faster for headers like stddef.h that are known to exist.
5881         (gl_CHECK_NEXT_HEADERS): Use it.
5882         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
5883         rather than gl_CHECK_NEXT_HEADERS.
5884         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
5885         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
5886
5887 2011-01-18  Eric Blake  <eblake@redhat.com>
5888
5889         ansi-c++-opt: skip C++ dependency style if C++ is unused
5890         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
5891         tests when we know C++ compilation is not desired.
5892         Reported by Scott McCreary.
5893
5894 2011-01-18  Bruno Haible  <bruno@clisp.org>
5895
5896         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
5897         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
5898         (main): Perform test also when getrlimit and setrlimit don't exist or
5899         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
5900         limiting the address space size using setrlimit, compare the address
5901         space size before and after the the test.
5902         * tests/test-dprintf-posix2.c: Likewise.
5903         * tests/test-fprintf-posix3.sh: Update skip messages.
5904         * tests/test-dprintf-posix2.sh: Likewise.
5905         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
5906         * modules/dprintf-posix-tests (Depends-on): Likewise.
5907         Reported by Bruce Korb <bkorb@gnu.org> and
5908         Gary V. Vaughan <gary@gnu.org>.
5909
5910 2011-01-18  Bruno Haible  <bruno@clisp.org>
5911
5912         get-rusage-as: Improvement for Cygwin.
5913         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
5914         areas that are merely reserved.
5915
5916 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5917
5918         strftime: remove dependencies on multibyte modules
5919
5920         strftime depended on mbrlen, mbsinit, and wchar, but these modules
5921         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
5922         only if __osf__ is defined, and I suspect OSF doesn't need these
5923         other modules.  If my guess is wrong, we'll need to come up with a
5924         variant of strftime that doesn't need the multibyte modules.
5925
5926         I discovered this problem when attempting modify Emacs to use the
5927         strftime module.  With the previous gnulib, this caused Emacs to
5928         need 31 new files, ranging from lib/config.charset to
5929         m4/wint_t.m4.  This was overkill and I expect would be offputting
5930         to the Emacs maintainers.  After this change, only 6 new files are
5931         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
5932         stdbool.m4, and tm_gmtoff.m4.
5933
5934         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
5935         Suggested by Bruno Haible in
5936         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
5937         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
5938         and do not check for wchar.h.
5939         * modules/strftime (Files): Remove m4/mbstate_t.m4.
5940         (Depends-on): Remove mbrlen, mbsinit, wchar.
5941
5942 2011-01-18  Bruno Haible  <bruno@clisp.org>
5943
5944         Tests for module 'get-rusage-as'.
5945         * modules/get-rusage-as-tests: New file.
5946         * tests/test-get-rusage-as.c: New file.
5947
5948         New module 'get-rusage-as'.
5949         * modules/get-rusage-as: New file.
5950         * lib/resource-ext.h: New file.
5951         * lib/get-rusage-as.c: New file.
5952
5953 2011-01-17  Eric Blake  <eblake@redhat.com>
5954
5955         sigaction: relax license from LGPLv3+ to LGPLv2+
5956         * modules/sigaction (License): Relax to LGPLv2+.
5957
5958 2011-01-14  Bruno Haible  <bruno@clisp.org>
5959
5960         filemode: Make function declarations usable in C++ mode.
5961         * lib/filemode.h: Enclose function declarations in extern "C" block.
5962         Reported by John W. Eaton <jwe@gnu.org>.
5963
5964 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
5965
5966         save-cwd: no longer include "xgetcwd.h"
5967         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
5968         This avoids a compilation failure in projects that use save-cwd
5969         without also using the xgetcwd module.
5970
5971 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5972
5973         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
5974         This is so that a program like Emacs, which needs only dtoastr,
5975         does not have to bother with distributing and compiling ftoastr
5976         and ldtoastr.
5977         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
5978         * modules/dtoastr, modules/ldtoastr: New files.
5979         * modules/ftoastr: Now works just for 'float'.
5980         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
5981         (Makefile.am): Remove ftoastr.h (not needed and no effect),
5982         dtoastr.c, ldtoastr.c.
5983
5984 2011-01-11  Jim Meyering  <meyering@redhat.com>
5985
5986         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
5987         There is no need to work around the lack of the fchdir function,
5988         since gnulib can now provide a replacement when required.
5989         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
5990         * modules/save-cwd (Depends-on): Add fchdir.
5991
5992 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5993
5994         openat, save-cwd: avoid xmalloc
5995
5996         This removes a direct (but undocumented) dependency of openat on
5997         xalloc, along with an indirect dependency via save-cwd.  It also
5998         removes a dependency of save-cwd on xgetcwd, and thereby
5999         indirectly on xalloc.  This change causes the openat substitute
6000         to fall back on save_cwd when memory is tight, and for save_cwd to
6001         fail instead of dying when memory is tight, but that's good enough.
6002         Problem and initial idea for fix reported by Bastien Roucaries in
6003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
6004
6005         * lib/openat-proc.c: Include stdlib.h (for malloc), not
6006         xalloc.h (for xmalloc).
6007         (openat_proc_name): Use malloc, not xmalloc.
6008         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
6009         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
6010
6011         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
6012         This avoids heap allocation for file names whose lengths are in
6013         the range 512..1023, with the upper bound increasing to at most
6014         4031 depending on the platform's PATH_MAX.  (We do not want
6015         pathmax.h here as it might supply a non-constant PATH_MAX.)
6016         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
6017         Perhaps they should be moved to malloca.h?
6018         (OPENAT_BUFFER_SIZE): Use them.
6019
6020 2011-01-10  Bruno Haible  <bruno@clisp.org>
6021
6022         doc: Update users.txt.
6023         * users.txt: Add recutils.
6024
6025 2011-01-09  Karl Berry  <karl@gnu.org>
6026
6027         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
6028
6029         * doc/configmake.texi: New file.
6030         * doc/gnulib.texi: Include it.
6031         * modules/configmake: Move documentation from here.
6032
6033 2011-01-09  Bruno Haible  <bruno@clisp.org>
6034
6035         Update to Unicode 6.0.0.
6036         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
6037         (get_lbp): Update for Unicode 6.0.0.
6038         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
6039         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
6040         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
6041         U+11001, U+11038..U+11046. Remove U+06DE.
6042         (uc_width): Fix bounds of planes.
6043         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6044         lib/uniwidth/width.c.
6045         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
6046         trailing whitespace removed.
6047         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
6048         without comments, but with the original copyright notice.
6049         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
6050         * lib/unicase/ignorable.h: Likewise.
6051         * lib/unicase/tocasefold.h: Likewise.
6052         * lib/unicase/tolower.h: Likewise.
6053         * lib/unicase/totitle.h: Likewise.
6054         * lib/unicase/toupper.h: Likewise.
6055         * lib/unictype/bidi_of.h: Likewise.
6056         * lib/unictype/blocks.h: Likewise.
6057         * lib/unictype/categ_C.h: Likewise.
6058         * lib/unictype/categ_Cn.h: Likewise.
6059         * lib/unictype/categ_L.h: Likewise.
6060         * lib/unictype/categ_Ll.h: Likewise.
6061         * lib/unictype/categ_Lm.h: Likewise.
6062         * lib/unictype/categ_Lo.h: Likewise.
6063         * lib/unictype/categ_Lu.h: Likewise.
6064         * lib/unictype/categ_M.h: Likewise.
6065         * lib/unictype/categ_Mc.h: Likewise.
6066         * lib/unictype/categ_Me.h: Likewise.
6067         * lib/unictype/categ_Mn.h: Likewise.
6068         * lib/unictype/categ_N.h: Likewise.
6069         * lib/unictype/categ_Nd.h: Likewise.
6070         * lib/unictype/categ_No.h: Likewise.
6071         * lib/unictype/categ_P.h: Likewise.
6072         * lib/unictype/categ_Po.h: Likewise.
6073         * lib/unictype/categ_S.h: Likewise.
6074         * lib/unictype/categ_Sc.h: Likewise.
6075         * lib/unictype/categ_Sk.h: Likewise.
6076         * lib/unictype/categ_Sm.h: Likewise.
6077         * lib/unictype/categ_So.h: Likewise.
6078         * lib/unictype/categ_of.h: Likewise.
6079         * lib/unictype/combining.h: Likewise.
6080         * lib/unictype/ctype_alnum.h: Likewise.
6081         * lib/unictype/ctype_alpha.h: Likewise.
6082         * lib/unictype/ctype_graph.h: Likewise.
6083         * lib/unictype/ctype_lower.h: Likewise.
6084         * lib/unictype/ctype_print.h: Likewise.
6085         * lib/unictype/ctype_punct.h: Likewise.
6086         * lib/unictype/ctype_upper.h: Likewise.
6087         * lib/unictype/decdigit.h: Likewise.
6088         * lib/unictype/digit.h: Likewise.
6089         * lib/unictype/numeric.h: Likewise.
6090         * lib/unictype/pr_alphabetic.h: Likewise.
6091         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6092         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6093         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6094         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6095         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6096         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6097         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6098         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6099         * lib/unictype/pr_case_ignorable.h: Likewise.
6100         * lib/unictype/pr_cased.h: Likewise.
6101         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
6102         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
6103         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
6104         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
6105         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
6106         * lib/unictype/pr_combining.h: Likewise.
6107         * lib/unictype/pr_composite.h: Likewise.
6108         * lib/unictype/pr_currency_symbol.h: Likewise.
6109         * lib/unictype/pr_decimal_digit.h: Likewise.
6110         * lib/unictype/pr_deprecated.h: Likewise.
6111         * lib/unictype/pr_format_control.h: Likewise.
6112         * lib/unictype/pr_grapheme_base.h: Likewise.
6113         * lib/unictype/pr_grapheme_extend.h: Likewise.
6114         * lib/unictype/pr_grapheme_link.h: Likewise.
6115         * lib/unictype/pr_id_continue.h: Likewise.
6116         * lib/unictype/pr_id_start.h: Likewise.
6117         * lib/unictype/pr_ideographic.h: Likewise.
6118         * lib/unictype/pr_lowercase.h: Likewise.
6119         * lib/unictype/pr_math.h: Likewise.
6120         * lib/unictype/pr_numeric.h: Likewise.
6121         * lib/unictype/pr_other_alphabetic.h: Likewise.
6122         * lib/unictype/pr_other_id_continue.h: Likewise.
6123         * lib/unictype/pr_other_math.h: Likewise.
6124         * lib/unictype/pr_punctuation.h: Likewise.
6125         * lib/unictype/pr_sentence_terminal.h: Likewise.
6126         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6127         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6128         * lib/unictype/pr_unified_ideograph.h: Likewise.
6129         * lib/unictype/pr_uppercase.h: Likewise.
6130         * lib/unictype/pr_xid_continue.h: Likewise.
6131         * lib/unictype/pr_xid_start.h: Likewise.
6132         * lib/unictype/scripts.h: Likewise.
6133         * lib/unictype/scripts_byname.gperf: Likewise.
6134         * lib/unictype/sy_java_ident.h: Likewise.
6135         * lib/unigbrk/gbrkprop.h: Likewise.
6136         * lib/unilbrk/lbrkprop1.h: Likewise.
6137         * lib/unilbrk/lbrkprop2.h: Likewise.
6138         * lib/uninorm/decomposition-table2.h: Likewise.
6139         * lib/uniwbrk/wbrkprop.h: Likewise.
6140         * tests/unicase/test-cased.c: Likewise.
6141         * tests/unicase/test-ignorable.c: Likewise.
6142         * tests/unicase/test-uc_tolower.c: Likewise.
6143         * tests/unicase/test-uc_totitle.c: Likewise.
6144         * tests/unicase/test-uc_toupper.c: Likewise.
6145         * tests/unictype/test-categ_C.c: Likewise.
6146         * tests/unictype/test-categ_Cn.c: Likewise.
6147         * tests/unictype/test-categ_L.c: Likewise.
6148         * tests/unictype/test-categ_Ll.c: Likewise.
6149         * tests/unictype/test-categ_Lm.c: Likewise.
6150         * tests/unictype/test-categ_Lo.c: Likewise.
6151         * tests/unictype/test-categ_Lu.c: Likewise.
6152         * tests/unictype/test-categ_M.c: Likewise.
6153         * tests/unictype/test-categ_Mc.c: Likewise.
6154         * tests/unictype/test-categ_Me.c: Likewise.
6155         * tests/unictype/test-categ_Mn.c: Likewise.
6156         * tests/unictype/test-categ_N.c: Likewise.
6157         * tests/unictype/test-categ_Nd.c: Likewise.
6158         * tests/unictype/test-categ_No.c: Likewise.
6159         * tests/unictype/test-categ_P.c: Likewise.
6160         * tests/unictype/test-categ_Po.c: Likewise.
6161         * tests/unictype/test-categ_S.c: Likewise.
6162         * tests/unictype/test-categ_Sc.c: Likewise.
6163         * tests/unictype/test-categ_Sk.c: Likewise.
6164         * tests/unictype/test-categ_Sm.c: Likewise.
6165         * tests/unictype/test-categ_So.c: Likewise.
6166         * tests/unictype/test-ctype_alnum.c: Likewise.
6167         * tests/unictype/test-ctype_alpha.c: Likewise.
6168         * tests/unictype/test-ctype_graph.c: Likewise.
6169         * tests/unictype/test-ctype_lower.c: Likewise.
6170         * tests/unictype/test-ctype_print.c: Likewise.
6171         * tests/unictype/test-ctype_punct.c: Likewise.
6172         * tests/unictype/test-ctype_upper.c: Likewise.
6173         * tests/unictype/test-decdigit.h: Likewise.
6174         * tests/unictype/test-digit.h: Likewise.
6175         * tests/unictype/test-numeric.h: Likewise.
6176         * tests/unictype/test-pr_alphabetic.c: Likewise.
6177         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6178         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6179         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6180         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6181         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6182         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6183         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6184         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6185         * tests/unictype/test-pr_case_ignorable.c: Likewise.
6186         * tests/unictype/test-pr_cased.c: Likewise.
6187         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
6188         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
6189         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
6190         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
6191         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
6192         * tests/unictype/test-pr_combining.c: Likewise.
6193         * tests/unictype/test-pr_composite.c: Likewise.
6194         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6195         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6196         * tests/unictype/test-pr_deprecated.c: Likewise.
6197         * tests/unictype/test-pr_format_control.c: Likewise.
6198         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6199         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6200         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6201         * tests/unictype/test-pr_id_continue.c: Likewise.
6202         * tests/unictype/test-pr_id_start.c: Likewise.
6203         * tests/unictype/test-pr_ideographic.c: Likewise.
6204         * tests/unictype/test-pr_lowercase.c: Likewise.
6205         * tests/unictype/test-pr_math.c: Likewise.
6206         * tests/unictype/test-pr_numeric.c: Likewise.
6207         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6208         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6209         * tests/unictype/test-pr_other_math.c: Likewise.
6210         * tests/unictype/test-pr_punctuation.c: Likewise.
6211         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6212         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6213         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6214         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6215         * tests/unictype/test-pr_uppercase.c: Likewise.
6216         * tests/unictype/test-pr_xid_continue.c: Likewise.
6217         * tests/unictype/test-pr_xid_start.c: Likewise.
6218         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6219         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6220         changes.
6221         * lib/unictype/categ_Cc.h: Likewise.
6222         * lib/unictype/categ_Cf.h: Likewise.
6223         * lib/unictype/categ_Co.h: Likewise.
6224         * lib/unictype/categ_Cs.h: Likewise.
6225         * lib/unictype/categ_Lt.h: Likewise.
6226         * lib/unictype/categ_Nl.h: Likewise.
6227         * lib/unictype/categ_Pc.h: Likewise.
6228         * lib/unictype/categ_Pd.h: Likewise.
6229         * lib/unictype/categ_Pe.h: Likewise.
6230         * lib/unictype/categ_Pf.h: Likewise.
6231         * lib/unictype/categ_Pi.h: Likewise.
6232         * lib/unictype/categ_Ps.h: Likewise.
6233         * lib/unictype/categ_Z.h: Likewise.
6234         * lib/unictype/categ_Zl.h: Likewise.
6235         * lib/unictype/categ_Zp.h: Likewise.
6236         * lib/unictype/categ_Zs.h: Likewise.
6237         * lib/unictype/ctype_blank.h: Likewise.
6238         * lib/unictype/ctype_cntrl.h: Likewise.
6239         * lib/unictype/ctype_digit.h: Likewise.
6240         * lib/unictype/ctype_space.h: Likewise.
6241         * lib/unictype/ctype_xdigit.h: Likewise.
6242         * lib/unictype/mirror.h: Likewise.
6243         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6244         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6245         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6246         * lib/unictype/pr_bidi_control.h: Likewise.
6247         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6248         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6249         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6250         * lib/unictype/pr_bidi_pdf.h: Likewise.
6251         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6252         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6253         * lib/unictype/pr_dash.h: Likewise.
6254         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6255         * lib/unictype/pr_diacritic.h: Likewise.
6256         * lib/unictype/pr_extender.h: Likewise.
6257         * lib/unictype/pr_hex_digit.h: Likewise.
6258         * lib/unictype/pr_hyphen.h: Likewise.
6259         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6260         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6261         * lib/unictype/pr_ignorable_control.h: Likewise.
6262         * lib/unictype/pr_iso_control.h: Likewise.
6263         * lib/unictype/pr_join_control.h: Likewise.
6264         * lib/unictype/pr_left_of_pair.h: Likewise.
6265         * lib/unictype/pr_line_separator.h: Likewise.
6266         * lib/unictype/pr_logical_order_exception.h: Likewise.
6267         * lib/unictype/pr_non_break.h: Likewise.
6268         * lib/unictype/pr_not_a_character.h: Likewise.
6269         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6270         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6271         * lib/unictype/pr_other_id_start.h: Likewise.
6272         * lib/unictype/pr_other_lowercase.h: Likewise.
6273         * lib/unictype/pr_other_uppercase.h: Likewise.
6274         * lib/unictype/pr_paired_punctuation.h: Likewise.
6275         * lib/unictype/pr_paragraph_separator.h: Likewise.
6276         * lib/unictype/pr_pattern_syntax.h: Likewise.
6277         * lib/unictype/pr_pattern_white_space.h: Likewise.
6278         * lib/unictype/pr_private_use.h: Likewise.
6279         * lib/unictype/pr_quotation_mark.h: Likewise.
6280         * lib/unictype/pr_radical.h: Likewise.
6281         * lib/unictype/pr_soft_dotted.h: Likewise.
6282         * lib/unictype/pr_space.h: Likewise.
6283         * lib/unictype/pr_titlecase.h: Likewise.
6284         * lib/unictype/pr_variation_selector.h: Likewise.
6285         * lib/unictype/pr_white_space.h: Likewise.
6286         * lib/unictype/pr_zero_width.h: Likewise.
6287         * lib/unictype/sy_c_ident.h: Likewise.
6288         * lib/unictype/sy_c_whitespace.h: Likewise.
6289         * lib/unictype/sy_java_whitespace.h: Likewise.
6290         * lib/uninorm/composition-table.gperf: Likewise.
6291         * lib/uninorm/decomposition-table1.h: Likewise.
6292         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
6293         LB8.
6294         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6295         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6296         * modules/unictype/*: Bump version number of expected libunistring
6297         version.
6298
6299 2011-01-09  Bruno Haible  <bruno@clisp.org>
6300
6301         Update to Unicode 5.2.0.
6302         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
6303         trailing whitespace removed.
6304
6305 2011-01-09  Bruno Haible  <bruno@clisp.org>
6306
6307         New Unicode character properties, from Unicode 5.2.0.
6308         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
6309         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
6310         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
6311         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
6312         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
6313         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
6314         uc_is_property_cased, uc_is_property_case_ignorable,
6315         uc_is_property_changes_when_lowercased,
6316         uc_is_property_changes_when_uppercased,
6317         uc_is_property_changes_when_titlecased,
6318         uc_is_property_changes_when_casefolded,
6319         uc_is_property_changes_when_casemapped): New declarations.
6320         * lib/unictype/pr_byname.gperf: Add the new properties.
6321         * modules/unictype/property-byname (Depends-on): Depend on the new
6322         properties modules.
6323         * modules/unictype/property-all (Depends-on): Likewise.
6324         * MODULES.html.sh (Unicode string functions): Add
6325         unictype/property-case-ignorable, unictype/property-cased,
6326         unictype/property-changes-when-casefolded,
6327         unictype/property-changes-when-casemapped,
6328         unictype/property-changes-when-lowercased,
6329         unictype/property-changes-when-titlecased,
6330         unictype/property-changes-when-uppercased.
6331
6332         New module 'unictype/property-changes-when-casemapped'.
6333         * modules/unictype/property-changes-when-casemapped: New file.
6334         * lib/unictype/pr_changes_when_casemapped.c: New file.
6335         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
6336         generated by gen-uni-tables.
6337         * modules/unictype/property-changes-when-casemapped-tests: New file.
6338         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
6339         automatically generated by gen-uni-tables.
6340
6341         New module 'unictype/property-changes-when-casefolded'.
6342         * modules/unictype/property-changes-when-casefolded: New file.
6343         * lib/unictype/pr_changes_when_casefolded.c: New file.
6344         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
6345         generated by gen-uni-tables.
6346         * modules/unictype/property-changes-when-casefolded-tests: New file.
6347         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
6348         automatically generated by gen-uni-tables.
6349
6350         New module 'unictype/property-changes-when-titlecased'.
6351         * modules/unictype/property-changes-when-titlecased: New file.
6352         * lib/unictype/pr_changes_when_titlecased.c: New file.
6353         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
6354         generated by gen-uni-tables.
6355         * modules/unictype/property-changes-when-titlecased-tests: New file.
6356         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
6357         automatically generated by gen-uni-tables.
6358
6359         New module 'unictype/property-changes-when-uppercased'.
6360         * modules/unictype/property-changes-when-uppercased: New file.
6361         * lib/unictype/pr_changes_when_uppercased.c: New file.
6362         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
6363         generated by gen-uni-tables.
6364         * modules/unictype/property-changes-when-uppercased-tests: New file.
6365         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
6366         automatically generated by gen-uni-tables.
6367
6368         New module 'unictype/property-changes-when-lowercased'.
6369         * modules/unictype/property-changes-when-lowercased: New file.
6370         * lib/unictype/pr_changes_when_lowercased.c: New file.
6371         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
6372         generated by gen-uni-tables.
6373         * modules/unictype/property-changes-when-lowercased-tests: New file.
6374         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
6375         automatically generated by gen-uni-tables.
6376
6377         New module 'unictype/property-case-ignorable'.
6378         * modules/unictype/property-case-ignorable: New file.
6379         * lib/unictype/pr_case_ignorable.c: New file.
6380         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
6381         by gen-uni-tables.
6382         * modules/unictype/property-case-ignorable-tests: New file.
6383         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
6384         generated by gen-uni-tables.
6385
6386         New module 'unictype/property-cased'.
6387         * modules/unictype/property-cased: New file.
6388         * lib/unictype/pr_cased.c: New file.
6389         * lib/unictype/pr_cased.h: New file, automatically generated by
6390         gen-uni-tables.
6391         * modules/unictype/property-cased-tests: New file.
6392         * tests/unictype/test-pr_cased.c: New file, automatically generated by
6393         gen-uni-tables.
6394
6395 2011-01-09  Bruno Haible  <bruno@clisp.org>
6396
6397         Update to Unicode 5.2.0.
6398         * lib/gen-uni-tables.c (output_predicate, output_category,
6399         output_combclass, output_bidi_category, output_decimal_digit_test,
6400         output_decimal_digit, output_digit_test, output_digit,
6401         output_numeric_test, output_numeric, output_mirror, output_scripts,
6402         output_scripts_byname, output_blocks, output_ident_category): Fix
6403         comment header.
6404         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
6405         get_wbp.
6406         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
6407         items.
6408         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
6409         Changes_When_Lowercased, Changes_When_Uppercased,
6410         Changes_When_Titlecased, Changes_When_Casefolded,
6411         Changes_When_Casemapped.
6412         (is_property_alphabetic, is_property_default_ignorable_code_point):
6413         Update for Unicode 5.2.0.
6414         (is_property_cased, is_property_case_ignorable,
6415         is_property_changes_when_lowercased,
6416         is_property_changes_when_uppercased,
6417         is_property_changes_when_titlecased,
6418         is_property_changes_when_casefolded,
6419         is_property_changes_when_casemapped): New functions.
6420         (output_properties): Output also the properties cased, case_ignorable,
6421         changes_when_lowercased, changes_when_uppercased,
6422         changes_when_titlecased, changes_when_casefolded,
6423         changes_when_casemapped.
6424         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
6425         Unicode TR#11 revision 17 -> 19.
6426         (LBP_CP): New enumeration value.
6427         (LBP_*): Adjust values accordingly.
6428         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6429         TR#14 revision 22 -> 24.
6430         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
6431         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
6432         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6433         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
6434         is_WBP_MIDLETTER.
6435         (output_composition_tables): Allow for 24 bits instead of 16 bits in
6436         the code1 and code2 of each composition rule.
6437         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
6438         * lib/unicase/ignorable.h: Likewise.
6439         * lib/unicase/tocasefold.h: Likewise.
6440         * lib/unicase/tolower.h: Likewise.
6441         * lib/unicase/totitle.h: Likewise.
6442         * lib/unicase/toupper.h: Likewise.
6443         * lib/unictype/bidi_of.h: Likewise.
6444         * lib/unictype/blocks.h: Likewise.
6445         * lib/unictype/categ_C.h: Likewise.
6446         * lib/unictype/categ_Cf.h: Likewise.
6447         * lib/unictype/categ_Cn.h: Likewise.
6448         * lib/unictype/categ_L.h: Likewise.
6449         * lib/unictype/categ_Ll.h: Likewise.
6450         * lib/unictype/categ_Lm.h: Likewise.
6451         * lib/unictype/categ_Lo.h: Likewise.
6452         * lib/unictype/categ_Lu.h: Likewise.
6453         * lib/unictype/categ_M.h: Likewise.
6454         * lib/unictype/categ_Mc.h: Likewise.
6455         * lib/unictype/categ_Mn.h: Likewise.
6456         * lib/unictype/categ_N.h: Likewise.
6457         * lib/unictype/categ_Nd.h: Likewise.
6458         * lib/unictype/categ_Nl.h: Likewise.
6459         * lib/unictype/categ_No.h: Likewise.
6460         * lib/unictype/categ_P.h: Likewise.
6461         * lib/unictype/categ_Pd.h: Likewise.
6462         * lib/unictype/categ_Po.h: Likewise.
6463         * lib/unictype/categ_S.h: Likewise.
6464         * lib/unictype/categ_Sc.h: Likewise.
6465         * lib/unictype/categ_So.h: Likewise.
6466         * lib/unictype/categ_of.h: Likewise.
6467         * lib/unictype/combining.h: Likewise.
6468         * lib/unictype/ctype_alnum.h: Likewise.
6469         * lib/unictype/ctype_alpha.h: Likewise.
6470         * lib/unictype/ctype_graph.h: Likewise.
6471         * lib/unictype/ctype_lower.h: Likewise.
6472         * lib/unictype/ctype_print.h: Likewise.
6473         * lib/unictype/ctype_punct.h: Likewise.
6474         * lib/unictype/ctype_upper.h: Likewise.
6475         * lib/unictype/decdigit.h: Likewise.
6476         * lib/unictype/digit.h: Likewise.
6477         * lib/unictype/numeric.h: Likewise.
6478         * lib/unictype/pr_alphabetic.h: Likewise.
6479         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6480         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6481         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6482         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6483         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6484         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6485         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6486         * lib/unictype/pr_combining.h: Likewise.
6487         * lib/unictype/pr_composite.h: Likewise.
6488         * lib/unictype/pr_currency_symbol.h: Likewise.
6489         * lib/unictype/pr_dash.h: Likewise.
6490         * lib/unictype/pr_decimal_digit.h: Likewise.
6491         * lib/unictype/pr_deprecated.h: Likewise.
6492         * lib/unictype/pr_diacritic.h: Likewise.
6493         * lib/unictype/pr_extender.h: Likewise.
6494         * lib/unictype/pr_grapheme_base.h: Likewise.
6495         * lib/unictype/pr_grapheme_extend.h: Likewise.
6496         * lib/unictype/pr_grapheme_link.h: Likewise.
6497         * lib/unictype/pr_id_continue.h: Likewise.
6498         * lib/unictype/pr_id_start.h: Likewise.
6499         * lib/unictype/pr_ideographic.h: Likewise.
6500         * lib/unictype/pr_ignorable_control.h: Likewise.
6501         * lib/unictype/pr_logical_order_exception.h: Likewise.
6502         * lib/unictype/pr_lowercase.h: Likewise.
6503         * lib/unictype/pr_numeric.h: Likewise.
6504         * lib/unictype/pr_other_alphabetic.h: Likewise.
6505         * lib/unictype/pr_punctuation.h: Likewise.
6506         * lib/unictype/pr_sentence_terminal.h: Likewise.
6507         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6508         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6509         * lib/unictype/pr_unified_ideograph.h: Likewise.
6510         * lib/unictype/pr_uppercase.h: Likewise.
6511         * lib/unictype/pr_xid_continue.h: Likewise.
6512         * lib/unictype/pr_xid_start.h: Likewise.
6513         * lib/unictype/pr_zero_width.h: Likewise.
6514         * lib/unictype/scripts.h: Likewise.
6515         * lib/unictype/scripts_byname.gperf: Likewise.
6516         * lib/unictype/sy_java_ident.h: Likewise.
6517         * lib/unigbrk/gbrkprop.h: Likewise.
6518         * lib/unilbrk/lbrkprop1.h: Likewise.
6519         * lib/unilbrk/lbrkprop2.h: Likewise.
6520         * lib/unilbrk/lbrktables.h: Likewise.
6521         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
6522         LBP_CP. Implement rule LB30.
6523         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
6524         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
6525         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
6526         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
6527         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
6528         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
6529         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
6530         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
6531         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
6532         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
6533         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
6534         bits instead of 16 bits in the code1 and code2 of each composition
6535         rule.
6536         (uc_composition): Update for Unicode 5.2.0.
6537         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
6538         * lib/uninorm/decomposition-table2.h: Likewise.
6539         * lib/uniwbrk/wbrkprop.h: Likewise.
6540         * tests/unicase/test-cased.c: Likewise.
6541         * tests/unicase/test-ignorable.c: Likewise.
6542         * tests/unicase/test-uc_tolower.c: Likewise.
6543         * tests/unicase/test-uc_totitle.c: Likewise.
6544         * tests/unicase/test-uc_toupper.c: Likewise.
6545         * tests/unictype/test-categ_C.c: Likewise.
6546         * tests/unictype/test-categ_Cf.c: Likewise.
6547         * tests/unictype/test-categ_Cn.c: Likewise.
6548         * tests/unictype/test-categ_L.c: Likewise.
6549         * tests/unictype/test-categ_Ll.c: Likewise.
6550         * tests/unictype/test-categ_Lm.c: Likewise.
6551         * tests/unictype/test-categ_Lo.c: Likewise.
6552         * tests/unictype/test-categ_Lu.c: Likewise.
6553         * tests/unictype/test-categ_M.c: Likewise.
6554         * tests/unictype/test-categ_Mc.c: Likewise.
6555         * tests/unictype/test-categ_Mn.c: Likewise.
6556         * tests/unictype/test-categ_N.c: Likewise.
6557         * tests/unictype/test-categ_Nd.c: Likewise.
6558         * tests/unictype/test-categ_Nl.c: Likewise.
6559         * tests/unictype/test-categ_No.c: Likewise.
6560         * tests/unictype/test-categ_P.c: Likewise.
6561         * tests/unictype/test-categ_Pd.c: Likewise.
6562         * tests/unictype/test-categ_Po.c: Likewise.
6563         * tests/unictype/test-categ_S.c: Likewise.
6564         * tests/unictype/test-categ_Sc.c: Likewise.
6565         * tests/unictype/test-categ_So.c: Likewise.
6566         * tests/unictype/test-ctype_alnum.c: Likewise.
6567         * tests/unictype/test-ctype_alpha.c: Likewise.
6568         * tests/unictype/test-ctype_graph.c: Likewise.
6569         * tests/unictype/test-ctype_lower.c: Likewise.
6570         * tests/unictype/test-ctype_print.c: Likewise.
6571         * tests/unictype/test-ctype_punct.c: Likewise.
6572         * tests/unictype/test-ctype_upper.c: Likewise.
6573         * tests/unictype/test-decdigit.h: Likewise.
6574         * tests/unictype/test-digit.h: Likewise.
6575         * tests/unictype/test-numeric.h: Likewise.
6576         * tests/unictype/test-pr_alphabetic.c: Likewise.
6577         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6578         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6579         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6580         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6581         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6582         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6583         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6584         * tests/unictype/test-pr_combining.c: Likewise.
6585         * tests/unictype/test-pr_composite.c: Likewise.
6586         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6587         * tests/unictype/test-pr_dash.c: Likewise.
6588         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6589         * tests/unictype/test-pr_deprecated.c: Likewise.
6590         * tests/unictype/test-pr_diacritic.c: Likewise.
6591         * tests/unictype/test-pr_extender.c: Likewise.
6592         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6593         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6594         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6595         * tests/unictype/test-pr_id_continue.c: Likewise.
6596         * tests/unictype/test-pr_id_start.c: Likewise.
6597         * tests/unictype/test-pr_ideographic.c: Likewise.
6598         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6599         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6600         * tests/unictype/test-pr_lowercase.c: Likewise.
6601         * tests/unictype/test-pr_numeric.c: Likewise.
6602         * tests/unictype/test-pr_other_alphabetic.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/unictype/test-pr_zero_width.c: Likewise.
6612         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6613         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
6614         changed behaviour: line breaking is now disallowed between a letter
6615         or '=' and '('.
6616         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6617         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6618         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
6619         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
6620         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6621         lib/uniwidth/width.c.
6622         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
6623         without comments, but with the original copyright notice.
6624         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6625         changes.
6626         * lib/unictype/categ_Cc.h: Likewise.
6627         * lib/unictype/categ_Co.h: Likewise.
6628         * lib/unictype/categ_Cs.h: Likewise.
6629         * lib/unictype/categ_Lt.h: Likewise.
6630         * lib/unictype/categ_Me.h: Likewise.
6631         * lib/unictype/categ_Pc.h: Likewise.
6632         * lib/unictype/categ_Pe.h: Likewise.
6633         * lib/unictype/categ_Pf.h: Likewise.
6634         * lib/unictype/categ_Pi.h: Likewise.
6635         * lib/unictype/categ_Ps.h: Likewise.
6636         * lib/unictype/categ_Sk.h: Likewise.
6637         * lib/unictype/categ_Sm.h: Likewise.
6638         * lib/unictype/categ_Z.h: Likewise.
6639         * lib/unictype/categ_Zl.h: Likewise.
6640         * lib/unictype/categ_Zp.h: Likewise.
6641         * lib/unictype/categ_Zs.h: Likewise.
6642         * lib/unictype/ctype_blank.h: Likewise.
6643         * lib/unictype/ctype_cntrl.h: Likewise.
6644         * lib/unictype/ctype_digit.h: Likewise.
6645         * lib/unictype/ctype_space.h: Likewise.
6646         * lib/unictype/ctype_xdigit.h: Likewise.
6647         * lib/unictype/mirror.h: Likewise.
6648         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6649         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6650         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6651         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6652         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6653         * lib/unictype/pr_bidi_control.h: Likewise.
6654         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6655         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6656         * lib/unictype/pr_bidi_pdf.h: Likewise.
6657         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6658         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6659         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6660         * lib/unictype/pr_format_control.h: Likewise.
6661         * lib/unictype/pr_hex_digit.h: Likewise.
6662         * lib/unictype/pr_hyphen.h: Likewise.
6663         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6664         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6665         * lib/unictype/pr_iso_control.h: Likewise.
6666         * lib/unictype/pr_join_control.h: Likewise.
6667         * lib/unictype/pr_left_of_pair.h: Likewise.
6668         * lib/unictype/pr_line_separator.h: Likewise.
6669         * lib/unictype/pr_math.h: Likewise.
6670         * lib/unictype/pr_non_break.h: Likewise.
6671         * lib/unictype/pr_not_a_character.h: Likewise.
6672         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6673         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6674         * lib/unictype/pr_other_id_continue.h: Likewise.
6675         * lib/unictype/pr_other_id_start.h: Likewise.
6676         * lib/unictype/pr_other_lowercase.h: Likewise.
6677         * lib/unictype/pr_other_math.h: Likewise.
6678         * lib/unictype/pr_other_uppercase.h: Likewise.
6679         * lib/unictype/pr_paired_punctuation.h: Likewise.
6680         * lib/unictype/pr_paragraph_separator.h: Likewise.
6681         * lib/unictype/pr_pattern_syntax.h: Likewise.
6682         * lib/unictype/pr_pattern_white_space.h: Likewise.
6683         * lib/unictype/pr_private_use.h: Likewise.
6684         * lib/unictype/pr_quotation_mark.h: Likewise.
6685         * lib/unictype/pr_radical.h: Likewise.
6686         * lib/unictype/pr_soft_dotted.h: Likewise.
6687         * lib/unictype/pr_space.h: Likewise.
6688         * lib/unictype/pr_titlecase.h: Likewise.
6689         * lib/unictype/pr_variation_selector.h: Likewise.
6690         * lib/unictype/pr_white_space.h: Likewise.
6691         * lib/unictype/sy_c_ident.h: Likewise.
6692         * lib/unictype/sy_c_whitespace.h: Likewise.
6693         * lib/unictype/sy_java_whitespace.h: Likewise.
6694         * modules/uni*/*: Bump version number of expected libunistring version.
6695         Reported by Simon Josefsson.
6696
6697 2011-01-09  Karl Heuer  <kwzh@gnu.org>
6698
6699         useless-if-before-free: fix typo in --help and make the internal,
6700         automatic version date update process work once again.
6701         --help output contained a NUL character instead of the
6702         backslash-zero that was intended.  Also, the "must lie within
6703         the first 8 lines" line is on line 9, and hence not getting
6704         automatically updated.
6705         * build-aux/useless-if-before-free: Fix the former by adding a
6706         backslash, and the latter by condensing the three lines of what-it-does
6707         to a single line, leaving one line of slack for the future.
6708
6709 2011-01-09  Bruno Haible  <bruno@clisp.org>
6710
6711         uniwidth/width: Fix width of U+1D173..U+1D17A.
6712         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
6713         symbolic_width, output_width_property_test): New functions.
6714         (main): Invoke output_nonspacing_property, output_width_property_test.
6715         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
6716         U+1D173..U+1D17A.
6717         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
6718         1.
6719         * modules/uniwidth/*: Bump version number of expected libunistring
6720         version.
6721         * modules/unilbrk/*: Likewise.
6722
6723 2011-01-08  Bruno Haible  <bruno@clisp.org>
6724
6725         uninorm tests: Preserve copyright of Unicode data file.
6726         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
6727         Mention modifications.
6728
6729 2011-01-08  Bruno Haible  <bruno@clisp.org>
6730
6731         gen-uni-tables: Prepare for Unicode 5.2.0.
6732         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
6733         (debug_output_lbp, output_lbp): Update.
6734
6735 2011-01-08  Bruno Haible  <bruno@clisp.org>
6736
6737         unilbrk: Clarify gen-uni-tables.c code.
6738         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
6739         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
6740         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
6741
6742 2011-01-07  Bruno Haible  <bruno@clisp.org>
6743
6744         strtod: Restore errno when successfully parsing Infinity or NaN.
6745         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
6746         restore the original errno.
6747
6748 2011-01-07  Bruno Haible  <bruno@clisp.org>
6749
6750         remove test: Avoid failure on HP-UX 11.
6751         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
6752
6753 2011-01-07  Bruno Haible  <bruno@clisp.org>
6754
6755         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
6756         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
6757         error code.
6758
6759 2011-01-07  Pádraig Brady <P@draigBrady.com>
6760
6761         ignore-value: fixup comments, and add Eric Blake
6762         as an author since he rewrote the macros.
6763         * lib/ignore-value.h (ignore_value):  State that
6764         we now support aggregates.  Also specify exactly
6765         when the GCC warn_unused_result feature was added.
6766
6767 2011-01-06  Eric Blake  <eblake@redhat.com>
6768
6769         ignore-value: support aggregate types
6770         * lib/ignore-value.h (ignore_value): Provide separate gcc
6771         definition.
6772         * modules/ignore-value-tests: New test module.
6773         * tests/test-ignore-value.c: New test.
6774
6775         maint.mk: improve sc_prohibit_strcmp regex
6776         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
6777         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
6778         definition of STRNEQ.
6779
6780         signal: work around Haiku issue with SIGBUS
6781         * lib/siglist.h: Add comment.
6782         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
6783         strsignal's favoring of SIGSEGV.
6784         * tests/test-signal.c (main): Avoid test failure.
6785         * doc/posix-headers/signal.texi (signal.h): Document the issue.
6786         Reported by Scott McCreary.
6787
6788         maint.mk: add pre-release check to ensure submodule commits are public
6789         * top/maint.mk (public-submodule-commit): New rule.
6790         (submodule-checks): New variable.
6791         (alpha beta stable): Depend on the variable.
6792
6793 2011-01-05  Pádraig Brady <P@draigBrady.com>
6794         and Jim Meyering  <meyering@redhat.com>
6795
6796         ignore-value: make ignore_value more generic; deprecate ignore_ptr
6797         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
6798         (ATTRIBUTE_DEPRECATED): Define.
6799         (_ignore_case): New function.
6800         (ignore_value): New macro, to replace the old function.
6801         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
6802         * modules/ignore-value (Depends-on): Add stdint.
6803
6804 2011-01-04  Eric Blake  <eblake@redhat.com>
6805
6806         doc: regenerate INSTALL
6807         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
6808         @firstparagraphindent support, now that autoconf dropped it.
6809         (INSTALL_PRELUDE): Reinstate old macro.
6810         * doc/install.texi: Resync from autoconf.
6811         * doc/INSTALL: Reflect recent autoconf update.
6812         * doc/INSTALL.ISO: Likewise.
6813         * doc/INSTALL.UTF-8: Likewise.
6814         Reported by Karl Berry.
6815
6816 2011-01-04  Bruce Korb  <address@hidden>
6817
6818         git-version-gen: avoid a sub-shell
6819         * build-aux/git-version-gen: Redirect stderr in `...` via
6820         "exec 2>...", rather than via an added sub-shell.
6821
6822 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
6823
6824         git-version-gen: use (...) rather than sh -c '...'
6825         * build-aux/git-version-gen: Rather than hard-coding a shell's name
6826         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
6827
6828 2011-01-03  Jim Meyering  <meyering@redhat.com>
6829
6830         git-version-gen: convert leading TABs to spaces
6831         * build-aux/git-version-gen: Expand leading TABs.
6832
6833         git-version-gen: handle failed "git rev-list"
6834         * build-aux/git-version-gen: Rather than leaking a "fatal" error
6835         from git and proceeding as if it had succeeded but printed no SHA1
6836         checksums, suppress the diagnostic and handle the failure.
6837         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
6838
6839         git-version-gen: include command name in one more diagnostic
6840         * build-aux/git-version-gen: When the required .tarball-version file
6841         was missing or unreadable, you might see the diagnostic from "cat",
6842         but no trace of the name of the invoking script.  Now, you still see
6843         the diagnostic from cat, but also get one from "git-version-gen: ".
6844         Inspired by a patch from Bruce Korb.
6845
6846         update-copyright: adjust test to match changed code
6847         * tests/test-update-copyright.sh: Change test's expected output
6848         to match new actual output.
6849
6850 2011-01-02  Bruno Haible  <bruno@clisp.org>
6851
6852         getlogin_r: Avoid test failure on HP-UX 11.
6853         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
6854         ERANGE when the second argument is zero.
6855         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
6856         portability problem.
6857
6858 2011-01-02  Bruce Korb  <bkorb@gnu.org>
6859
6860         * build-aux/update-copyright: doc Simon's changes
6861
6862 2011-01-02  Simon Josefsson  <simon@josefsson.org>
6863
6864         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
6865         environment variable.
6866
6867 2011-01-02  Bruno Haible  <bruno@clisp.org>
6868
6869         unigbrk: Avoid gcc warnings.
6870         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
6871         unused variable.
6872         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
6873         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
6874         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
6875         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
6876         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
6877         Change type of first argument to 'const char *'.
6878         (main): Remove unused variable.
6879         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
6880         type of first argument to 'const char *'.
6881         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
6882         Likewise.
6883         (main): Change type of variable 's'.
6884         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
6885         to 'int'.
6886
6887 2011-01-02  Bruno Haible  <bruno@clisp.org>
6888
6889         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
6890         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
6891         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
6892         bug.
6893         * lib/pwrite.c: Undo 2010-12-31 patch.
6894         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
6895
6896 2011-01-02  Bruno Haible  <bruno@clisp.org>
6897
6898         pread: Fix test whether it works.
6899         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
6900
6901 2011-01-02  Bruno Haible  <bruno@clisp.org>
6902
6903         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
6904         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
6905         ends in "6". Don't require a specific month name. Try also the locale
6906         names found on HP-UX 11 and Solaris 7.
6907
6908 2011-01-02  Bruno Haible  <bruno@clisp.org>
6909
6910         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
6911         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
6912         C linkage.
6913         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
6914
6915 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6916
6917         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
6918         for consistency, since the "cluster" term is not used elsewhere.
6919         * lib/unigbrk.in.h: Update name.
6920         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
6921         * lib/unigbrk/u16-grapheme-next.c: Update name.
6922         * lib/unigbrk/u16-grapheme-prev.c: Update name.
6923         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
6924         * lib/unigbrk/u32-grapheme-next.c: Update name.
6925         * lib/unigbrk/u32-grapheme-prev.c: Update name.
6926         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
6927         * lib/unigbrk/u8-grapheme-next.c: Update name.
6928         * lib/unigbrk/u8-grapheme-prev.c: Update name.
6929         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
6930         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
6931         Suggested by Bruno Haible.
6932
6933 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6934
6935         Remove module 'u8-grapheme-len' as too redundant with
6936         'u8-grapheme-next'.
6937         * modules/unigbrk/u8-grapheme-len: Delete file.
6938         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
6939         * lib/unigbrk.in.h: Remove prototype for deleted function.
6940         * lib/unigbrk/u8-grapheme-len.c: Delete file.
6941         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
6942
6943         Remove module 'u16-grapheme-len' as too redundant with
6944         'u16-grapheme-next'.
6945         * modules/unigbrk/u16-grapheme-len: Delete file.
6946         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
6947         * lib/unigbrk.in.h: Remove prototype for deleted function.
6948         * lib/unigbrk/u16-grapheme-len.c: Delete file.
6949         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
6950
6951         Remove module 'u32-grapheme-len' as too redundant with
6952         'u32-grapheme-next'.
6953         * modules/unigbrk/u32-grapheme-len: Delete file.
6954         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
6955         * lib/unigbrk.in.h: Remove prototype for deleted function.
6956         * lib/unigbrk/u32-grapheme-len.c: Delete file.
6957         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
6958
6959         Suggested by Bruno Haible.
6960
6961 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6962
6963         * unigbrk.in.h: Fix typo: "ben" => "been".
6964         Reported by Bruno Haible.
6965
6966 2011-01-01  Jim Meyering  <meyering@redhat.com>
6967
6968         maint: update almost all copyright ranges to include 2011
6969         Run the new "make update-copyright" rule.
6970
6971 2011-01-01  Jim Meyering  <meyering@redhat.com>
6972
6973         maint: update-copyright: exempt doc/INSTALL*
6974         * Makefile (update-copyright): Also exclude doc/INSTALL*,
6975         since they are generated.  Suggested by Bruno Haible.
6976
6977 2011-01-01  Jim Meyering  <meyering@redhat.com>
6978
6979         maint: refine the update-copyright rule
6980         * Makefile (update-copyright): Also exclude any file that includes
6981         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
6982         code that merely generates the comment.
6983
6984 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6985
6986         New module 'u8-grapheme-len'.
6987         * modules/unigbrk/u8-grapheme-len: New file.
6988         * modules/unigbrk/u8-grapheme-len-tests: New file.
6989         * lib/unigbrk.in.h: Add prototype for new function.
6990         * lib/unigbrk/u8-grapheme-len.c: New file.
6991         * tests/unigbrk/test-u8-grapheme-len.c: New file.
6992
6993         New module 'u16-grapheme-len'.
6994         * modules/unigbrk/u16-grapheme-len: New file.
6995         * modules/unigbrk/u16-grapheme-len-tests: New file.
6996         * lib/unigbrk.in.h: Add prototype for new function.
6997         * lib/unigbrk/u16-grapheme-len.c: New file.
6998         * tests/unigbrk/test-u16-grapheme-len.c: New file.
6999
7000         New module 'u32-grapheme-len'.
7001         * modules/unigbrk/u32-grapheme-len: New file.
7002         * modules/unigbrk/u32-grapheme-len-tests: New file.
7003         * lib/unigbrk.in.h: Add prototype for new function.
7004         * lib/unigbrk/u32-grapheme-len.c: New file.
7005         * tests/unigbrk/test-u32-grapheme-len.c: New file.
7006
7007         New module 'u8-grapheme-next'.
7008         * modules/unigbrk/u8-grapheme-next: New file.
7009         * modules/unigbrk/u8-grapheme-next-tests: New file.
7010         * lib/unigbrk.in.h: Add prototype for new function.
7011         * lib/unigbrk/u8-grapheme-next.c: New file.
7012         * tests/unigbrk/test-u8-grapheme-next.c: New file.
7013
7014         New module 'u16-grapheme-next'.
7015         * modules/unigbrk/u16-grapheme-next: New file.
7016         * modules/unigbrk/u16-grapheme-next-tests: New file.
7017         * lib/unigbrk.in.h: Add prototype for new function.
7018         * lib/unigbrk/u16-grapheme-next.c: New file.
7019         * tests/unigbrk/test-u16-grapheme-next.c: New file.
7020
7021         New module 'u32-grapheme-next'.
7022         * modules/unigbrk/u32-grapheme-next: New file.
7023         * modules/unigbrk/u32-grapheme-next-tests: New file.
7024         * lib/unigbrk.in.h: Add prototype for new function.
7025         * lib/unigbrk/u32-grapheme-next.c: New file.
7026         * tests/unigbrk/test-u32-grapheme-next.c: New file.
7027
7028         New module 'u8-grapheme-prev'.
7029         * modules/unigbrk/u8-grapheme-prev: New file.
7030         * modules/unigbrk/u8-grapheme-prev-tests: New file.
7031         * lib/unigbrk.in.h: Add prototype for new function.
7032         * lib/unigbrk/u8-grapheme-prev.c: New file.
7033         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
7034
7035         New module 'u16-grapheme-prev'.
7036         * modules/unigbrk/u16-grapheme-prev: New file.
7037         * modules/unigbrk/u16-grapheme-prev-tests: New file.
7038         * lib/unigbrk.in.h: Add prototype for new function.
7039         * lib/unigbrk/u16-grapheme-prev.c: New file.
7040         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
7041
7042         New module 'u32-grapheme-prev'.
7043         * modules/unigbrk/u32-grapheme-prev: New file.
7044         * modules/unigbrk/u32-grapheme-prev-tests: New file.
7045         * lib/unigbrk.in.h: Add prototype for new function.
7046         * lib/unigbrk/u32-grapheme-prev.c: New file.
7047         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
7048
7049         New module 'u8-grapheme-breaks'.
7050         * modules/unigbrk/u8-grapheme-breaks: New file.
7051         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
7052         * lib/unigbrk.in.h: Add prototype for new function.
7053         * lib/unigbrk/u8-grapheme-breaks.c: New file.
7054         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
7055
7056         New module 'u16-grapheme-breaks'.
7057         * modules/unigbrk/u16-grapheme-breaks: New file.
7058         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
7059         * lib/unigbrk.in.h: Add prototype for new function.
7060         * lib/unigbrk/u16-grapheme-breaks.c: New file.
7061         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
7062
7063         New module 'u32-grapheme-breaks'.
7064         * modules/unigbrk/u32-grapheme-breaks: New file.
7065         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
7066         * lib/unigbrk.in.h: Add prototype for new function.
7067         * lib/unigbrk/u32-grapheme-breaks.c: New file.
7068         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
7069
7070         New module 'ulc-grapheme-breaks'.
7071         * modules/unigbrk/ulc-grapheme-breaks: New file.
7072         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
7073         * m4/locale-ar.m4: New file.
7074         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
7075         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
7076         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
7077
7078 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7079
7080         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
7081         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
7082         modified how this file was generated before I initially submitted
7083         the module, but failed to regenerate it.  This meant that several
7084         of the level2 entries were wrong.
7085         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
7086         Remove the division-by-2 that is folded into the table now that
7087         gbrkprop.h has been regenerated properly.  Now -1 entries are
7088         handled correctly.
7089
7090         New module 'unigbrk/uc-gbrk-prop-tests'.
7091         * modules/unigbrk/uc-gbrk-prop-tests: New file.
7092         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
7093         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
7094         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
7095
7096 2011-01-01  Bruno Haible  <bruno@clisp.org>
7097
7098         Avoid use of hexadecimal escapes.
7099         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
7100         instead of hexadecimal escapes.
7101
7102 2011-01-01  Jim Meyering  <meyering@redhat.com>
7103
7104         maint: new rule to update copyright year ranges
7105         * Makefile (update-copyright): New rule.
7106
7107         maint: indent with TABs in Makefile
7108         * Makefile: Expand leading sequences of spaces to TABs
7109
7110         version-etc: update the copyright year it reports
7111         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
7112
7113 2010-12-31  Bruno Haible  <bruno@clisp.org>
7114
7115         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
7116         * lib/isfinite.c (zerof, zerod, zerol): New variables.
7117         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
7118         zero.
7119
7120 2010-12-31  Bruno Haible  <bruno@clisp.org>
7121
7122         pwrite: Work around HP-UX 11.11 bug.
7123         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
7124         works and set REPLACE_PWRITE if not.
7125         * lib/pwrite.c (pwrite): Add an implementation that uses the system
7126         function.
7127         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
7128
7129 2010-12-31  Bruno Haible  <bruno@clisp.org>
7130
7131         pread: Work around HP-UX 11 bugs.
7132         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
7133         and set REPLACE_PREAD if not.
7134         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
7135
7136 2010-12-31  Eric Blake  <eblake@redhat.com>
7137
7138         nl_langinfo: fix YESEXPR on Irix 6.5
7139         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
7140         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
7141         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
7142         it.
7143
7144 2010-12-31  Bruno Haible  <bruno@clisp.org>
7145
7146         iconv: Document HP-UX 11 bug.
7147         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
7148
7149 2010-12-31  Bruno Haible  <bruno@clisp.org>
7150
7151         ldexpl: Fix link error on HP-UX 11.
7152         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
7153         LDEXPL_LIBM, using $ISNANL_LIBM.
7154
7155 2010-12-31  Eric Blake  <eblake@redhat.com>
7156
7157         ftello: avoid compilation failure with SunStudio c89
7158         * lib/ftello.c (ftello): Use lseek, not llseek.
7159
7160         tests: avoid failing coreutils tests on cygwin
7161         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
7162         (create_exe_shims_): Return 0 when skipping.
7163
7164 2010-12-31  Bruno Haible  <bruno@clisp.org>
7165
7166         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
7167         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
7168
7169 2010-12-31  Bruno Haible  <bruno@clisp.org>
7170
7171         waitpid: Fix link error in C++ mode.
7172         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
7173
7174 2010-12-31  Bruno Haible  <bruno@clisp.org>
7175
7176         isnan: Use GCC built-ins when possible.
7177         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
7178         __builtin_isnan.
7179         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
7180         (isnan): Define using GCC built-ins for GCC >= 4.0.
7181
7182 2010-12-31  Bruno Haible  <bruno@clisp.org>
7183
7184         isnand: Fix mistake.
7185         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
7186         __builtin_isnand.
7187
7188 2010-12-31  Bruno Haible  <bruno@clisp.org>
7189
7190         open: Avoid C++ error on HP-UX 11.
7191         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
7192
7193 2010-12-31  Bruno Haible  <bruno@clisp.org>
7194
7195         time_r: Add missing declarations on HP-UX 11.
7196         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
7197         instead of HAVE_LOCALTIME_R.
7198         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
7199         HAVE_LOCALTIME_R always.
7200         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
7201         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
7202         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
7203         HAVE_LOCALTIME_R.
7204         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
7205         * doc/posix-functions/localtime_r.texi: Likewise.
7206
7207 2010-12-29  Eric Blake  <eblake@redhat.com>
7208
7209         mountlist: tweak previous commit
7210         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
7211         Reported by Paul Eggert.
7212
7213         mountlist: fix local drive detection on cygwin
7214         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
7215         that works for cygwin.
7216
7217 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7218
7219         ftoastr, snprintf: ftoastr + snprintf module
7220         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
7221         since the snprintf module now should be good enough here.
7222         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
7223         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
7224         and gl_MODULE_INDICATOR([snprintf]), but the former enables
7225         GNULIB_SNPRINTF only for the test directory, and the latter
7226         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
7227         seems to suffice by itself.
7228
7229 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7230
7231         alloca: one step towards thread-safety
7232         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
7233         need for a static variable.  All callers changed.  This does not
7234         make the alloca replacement thread-safe, but it's one step.
7235
7236         tests: minor indenting change
7237         * tests/init.sh: Sync from coreutils housekeeping patch
7238         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
7239         to keep lines within 80 columns.
7240
7241 2010-12-28  Jim Meyering  <meyering@redhat.com>
7242
7243         regex: don't infloop on persistent failing calloc
7244         * lib/regexec.c (build_trtable): Return failure indication upon
7245         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
7246         In glibc, this was fixed for version 2.13:
7247         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
7248
7249 2010-12-28  Bruno Haible  <bruno@clisp.org>
7250             Paul Eggert <eggert@cs.ucla.edu>
7251
7252         linkat: Make implementation robust against system behaviour variations.
7253         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
7254         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
7255         way, and to -2 if it needs a generic runtime test.
7256         * lib/linkat.c (solaris_optimized_link_immediate,
7257         solaris_optimized_link_follow): New functions.
7258         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
7259         (check_same_link): Use it.
7260
7261 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
7262
7263         New module 'unigbrk/base'.
7264         * modules/unigbrk/base: New file.
7265         * lib/unigbrk.in.h: New file.
7266
7267         New module 'unigbrk/uc-gbrk-prop'.
7268         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
7269         * modules/unigbrk/uc-gbrk-prop: New file.
7270         * lib/unigbrk/gbrkprop.h: New file.
7271         * lib/unigbrk/uc-gbrk-prop.c: New file.
7272
7273         New module 'unigbrk/uc-is-grapheme-break'.
7274         * modules/unigbrk/uc-is-grapheme-break: New file.
7275         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
7276         * lib/unigbrk/uc-is-grapheme-break.c: New file.
7277         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
7278         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
7279         * tests/unigbrk/GraphemeBreakTest.txt: New file.
7280
7281         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
7282
7283 2010-12-27  Bruno Haible  <bruno@clisp.org>
7284
7285         linkat test: Avoid failure on Solaris 11 2010-11.
7286         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
7287
7288 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7289
7290         utimens: work around glibc rounding bug on more platforms
7291         * lib/utimens.c (fdutimens): Work around rounding bug even if
7292         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
7293         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
7294
7295 2010-12-27  Bruno Haible  <bruno@clisp.org>
7296
7297         select tests: Improve comments.
7298         * tests/test-select.c (do_select): Add comments.
7299
7300 2010-12-27  Bruno Haible  <bruno@clisp.org>
7301
7302         select tests: Safer way of handling timeout.
7303         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
7304         at every invocation.
7305
7306 2010-12-27  Bruno Haible  <bruno@clisp.org>
7307
7308         select tests: Use 'bool' where appropriate.
7309         * tests/test-select.c (connect_to_socket): Change argument type to
7310         'bool'.
7311
7312 2010-12-27  Bruno Haible  <bruno@clisp.org>
7313
7314         select tests: Use existing modules.
7315         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
7316         (configure.ac): Don't test for unistd.h.
7317         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
7318         declared in <unistd.h>.
7319
7320 2010-12-27  Bruno Haible  <bruno@clisp.org>
7321
7322         mbrtowc: Work around a Solaris 7 bug.
7323         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
7324         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
7325         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
7326         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
7327         MBRTOWC_NULL_ARG1_BUG.
7328         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
7329         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
7330         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
7331         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
7332
7333 2010-12-27  Jim Meyering  <meyering@redhat.com>
7334
7335         read-file.c: tweak syntax
7336         * lib/read-file.c (fread_file): Remove space after "*" in function
7337         definitions.
7338
7339 2010-12-27  Bruno Haible  <bruno@clisp.org>
7340
7341         times test: Avoid gcc warnings on OSF/1.
7342         * tests/test-times.c (main): Cast printf arguments from clock_t to
7343         'long int'.
7344
7345 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7346
7347         utimens: work around glibc rounding bug on older Linux kernels
7348         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
7349         on Linux with a glibc whose utimes might not work, then work
7350         around a longstanding glibc bug involving rounding rather than
7351         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
7352         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7353
7354 2010-12-26  Bruno Haible  <bruno@clisp.org>
7355
7356         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
7357         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
7358         _GL_CXXALIAS_SYS.
7359         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7360
7361 2010-12-26  Bruno Haible  <bruno@clisp.org>
7362
7363         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
7364         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
7365         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7366         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
7367         looking for the declaration.
7368         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7369         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
7370         problem.
7371         * doc/posix-functions/inet_pton.texi: Likewise.
7372
7373 2010-12-26  Bruno Haible  <bruno@clisp.org>
7374
7375         arpa_inet: Use the common idioms with C++ support.
7376         * lib/arpa_inet.in.h: Include c++defs.h.
7377         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
7378         support.
7379         * modules/arpa_inet (Depends-on): Add c++defs.
7380         (Makefile.am): Substitute the contents of c++defs.h.
7381         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
7382         * modules/arpa_inet-c++-tests: New file.
7383         * tests/test-arpa_inet-c++.cc: New file.
7384
7385 2010-12-25  Bruno Haible  <bruno@clisp.org>
7386
7387         Fix more C++ link errors on Solaris 8.
7388         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
7389         $(LIB_EACCESS).
7390         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
7391         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
7392         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
7393         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
7394         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
7395
7396 2010-12-25  Bruno Haible  <bruno@clisp.org>
7397
7398         printf-posix: Fix link error when a non-GCC compiler is used.
7399         * lib/stdio.in.h (printf): When not using GCC, override printf
7400         correctly.
7401         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7402
7403 2010-12-25  Bruno Haible  <bruno@clisp.org>
7404
7405         strerror_r-posix: Update doc.
7406         * doc/posix-functions/strerror_r.texi: Update doc about the return
7407         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
7408
7409 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7410
7411         utimens: simplify the logic of the previous change
7412         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
7413         This should not affect whether the test succeeds or fails.
7414
7415         utimens: configure better on hosts with NFS clock skew
7416         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
7417         uses the clock of the local host.  It might use the clock of the
7418         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
7419         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7420
7421 2010-12-25  Bruno Haible  <bruno@clisp.org>
7422
7423         ptsname test: Avoid failure on Solaris.
7424         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
7425         open a pseudo-terminal; don't use BSD-style ptys.
7426         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
7427
7428 2010-12-25  Bruno Haible  <bruno@clisp.org>
7429
7430         ptsname: Avoid ERANGE failure on some systems.
7431         * lib/ptsname.c (buffer): Increase size.
7432
7433 2010-12-25  Bruno Haible  <bruno@clisp.org>
7434
7435         rename, renameat: Avoid test failures at NFS mounted locations.
7436         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
7437         so that subsequent mkdir calls succeed.
7438
7439 2010-12-25  Bruno Haible  <bruno@clisp.org>
7440
7441         iswblank: Fix C++ link error on Solaris 8.
7442         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
7443         _GL_FUNCDECL_SYS.
7444
7445 2010-12-25  Bruno Haible  <bruno@clisp.org>
7446
7447         unistd: Fix C++ link error on Solaris 8.
7448         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
7449
7450 2010-12-25  Bruno Haible  <bruno@clisp.org>
7451
7452         readlink doc: Mention an old glibc bug.
7453         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
7454
7455 2010-12-25  Bruno Haible  <bruno@clisp.org>
7456
7457         fcntl-h: Fix for use of C++ on glibc systems.
7458         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7459         also on glibc systems in C++ mode.
7460         Reported by Gary V. Vaughan <gary@gnu.org>.
7461
7462 2010-12-25  Bruno Haible  <bruno@clisp.org>
7463
7464         roundl-ieee: Make it work on OSF/1 5.1 with cc.
7465         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
7466
7467 2010-12-25  Bruno Haible  <bruno@clisp.org>
7468
7469         truncl-ieee: Make it work on OSF/1 5.1 with cc.
7470         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
7471         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
7472         test whether truncl works according to ISO C 99 with IEC 60559.
7473         * m4/truncl-ieee.m4: New file.
7474         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
7475         m4/signbit.m4.
7476         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
7477
7478 2010-12-25  Bruno Haible  <bruno@clisp.org>
7479
7480         ceill-ieee: Make it work on OSF/1 5.1 with cc.
7481         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
7482         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
7483         test whether ceill works according to ISO C 99 with IEC 60559.
7484         * m4/ceill-ieee.m4: New file.
7485         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
7486         m4/signbit.m4.
7487         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
7488
7489 2010-12-25  Bruno Haible  <bruno@clisp.org>
7490
7491         Ensure all prerequisites of <wchar.h> are included.
7492         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
7493         before <wchar.h>.
7494         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
7495         gl_MBRLEN_NUL_RETVAL): Likewise.
7496         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7497         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
7498         AC_FUNC_MBRTOWC): Likewise.
7499         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7500         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
7501         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7502         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
7503         Likewise.
7504         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7505         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
7506         (gl_WCHAR_H): Improve comments.
7507         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7508
7509 2010-12-25  Bruno Haible  <bruno@clisp.org>
7510
7511         strtok_r: Fix C syntax error in autoconf macro.
7512         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
7513         characters in test program.
7514
7515 2010-12-24  Bruno Haible  <bruno@clisp.org>
7516
7517         ceil, trunc, round: Fix gcc warnings.
7518         * lib/ceil.c (MIN): Undefine before redefining.
7519         * lib/trunc.c (MIN): Likewise.
7520         * lib/round.c (MIN): Likewise.
7521         Include <math.h> first.
7522
7523 2010-12-24  Bruno Haible  <bruno@clisp.org>
7524
7525         select tests: Avoid failures on OSF/1 5.1.
7526         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
7527         failure of closing the last socket; it may fail with ECONNRESET.
7528
7529 2010-12-24  Eric Blake  <eblake@redhat.com>
7530
7531         stdint: avoid HP-UX 10.20 preprocessor bug
7532         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
7533         than #if.
7534         * tests/test-floor2.c (main): Likewise.
7535         Reported by Peter O'Gorman.
7536
7537         pipe: make obsoletion transition easier
7538         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
7539         * modules/pipe (Files): Include revived file.
7540         (Include): Drop reference, to mirror getdate's behavior.
7541
7542 2010-12-24  Bruno Haible  <bruno@clisp.org>
7543
7544         sys_socket: Hide mismatch of declarations on NonStop Kernel.
7545         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
7546         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7547         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7548
7549 2010-12-24  Bruno Haible  <bruno@clisp.org>
7550
7551         gethostname: Ensure declaration on NonStop Kernel.
7552         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
7553         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7554
7555 2010-12-24  Bruno Haible  <bruno@clisp.org>
7556
7557         sys_select: Ensure all necessary types on NonStop Kernel.
7558         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
7559         include <sys/time.h>.
7560         * doc/posix-headers/sys_select.texi: Mention that it's missing on
7561         NonStop Kernel.
7562         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7563
7564 2010-12-24  Bruno Haible  <bruno@clisp.org>
7565
7566         sys_select: Remove unneeded include.
7567         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
7568         have <sys/select.h>.
7569
7570 2010-12-24  Bruno Haible  <bruno@clisp.org>
7571
7572         gethostname: Provide a fallback for HOST_NAME_MAX.
7573         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
7574         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
7575         instead.
7576         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7577
7578 2010-12-24  Bruno Haible  <bruno@clisp.org>
7579
7580         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
7581         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
7582         (SA_RESTART): Likewise.
7583         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7584
7585 2010-12-24  Bruno Haible  <bruno@clisp.org>
7586
7587         signal: Define NSIG.
7588         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
7589         * tests/test-signal.c (nsig): New variable.
7590         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7591
7592 2010-12-24  Bruno Haible  <bruno@clisp.org>
7593
7594         rename, renameat: Avoid test failures on OSF/1 5.1.
7595         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
7596         alternative error codes.
7597         * tests/test-renameat.c (main): Likewise.
7598
7599 2010-12-24  Bruno Haible  <bruno@clisp.org>
7600
7601         *printf: Detect large precisions bug on Solaris 10/SPARC.
7602         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
7603         by Paul Eggert.
7604         * tests/test-snprintf-posix.h (test_function): Add this test code here
7605         too.
7606         * tests/test-sprintf-posix.h (test_function): Likewise.
7607         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7608         * tests/test-vasprintf-posix.c (test_function): Likewise.
7609         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
7610         around by gnulib.
7611         * doc/posix-functions/printf.texi: Likewise.
7612         * doc/posix-functions/snprintf.texi: Likewise.
7613         * doc/posix-functions/sprintf.texi: Likewise.
7614         * doc/posix-functions/vfprintf.texi: Likewise.
7615         * doc/posix-functions/vprintf.texi: Likewise.
7616         * doc/posix-functions/vsnprintf.texi: Likewise.
7617         * doc/posix-functions/vsprintf.texi: Likewise.
7618         * doc/posix-functions/dprintf.texi: Undo last commit.
7619         * doc/posix-functions/vdprintf.texi: Likewise.
7620
7621 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7622
7623         tests: port test-fdutimensat.c to Solaris 8
7624         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
7625         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
7626         On Solaris 8, it fails with errno == ENOSYS, because there is no
7627         futimens (so it can't use the fd), and there is no lutimens (so it
7628         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
7629
7630         vsnprintf: make more consistent with snprintf; doc fixes
7631
7632         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
7633         the byte count return problem was promoted from the snprintf-posix
7634         to the snprintf module.
7635         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7636         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
7637         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
7638         * tests/test-snprintf.c (main): Check the byte count returned.
7639         * tests/test-vsnprintf.c (main): Likewise.
7640
7641 2010-12-23  Eric Blake  <eblake@redhat.com>
7642
7643         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
7644         * modules/sigpipe (License): Relax license.
7645
7646 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7647
7648         doc: document Solaris printf bug with large float precisions
7649         * doc/posix-functions/dprintf.texi (dprintf):
7650         * doc/posix-functions/fprintf.texi (fprintf):
7651         * doc/posix-functions/printf.texi (printf):
7652         * doc/posix-functions/snprintf.texi (snprintf):
7653         * doc/posix-functions/sprintf.texi (sprintf):
7654         * doc/posix-functions/vdprintf.texi (vdprintf):
7655         * doc/posix-functions/vfprintf.texi (vfprintf):
7656         * doc/posix-functions/vprintf.texi (vprintf):
7657         * doc/posix-functions/vsnprintf.texi (vsnprintf):
7658         * doc/posix-functions/vsprintf.texi (vsprintf):
7659         Mention that these functions mishandle large floating point
7660         precisions on Solaris 10.  The same bug is also present in Solaris
7661         8, and I assume earlier.  This causes "cd gnulib-tests; make
7662         check" to fail on Solaris 8 (and I assume, later) when building
7663         the latest coreutils, in test-vasprintf-posix's call to
7664         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
7665         the wide flavors (e.g., wprintf) so this patch just updates the
7666         documentation for the narrow ones.
7667
7668         test-posixtm.c: add two tests
7669         * tests/test-posixtm.c: Add two tests, to highlight the
7670         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
7671         around this bug; this is merely to document it.
7672
7673 2010-12-22  Bruno Haible  <bruno@clisp.org>
7674
7675         getlogin_r: Work around portability problem on OSF/1.
7676         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
7677         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
7678         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
7679         test for a truncated result.
7680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
7681         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
7682         * modules/getlogin_r (Depends-on): Add memchr.
7683         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
7684
7685 2010-12-22  Bruno Haible  <bruno@clisp.org>
7686
7687         ptsname: Avoid test failure on OSF/1 5.1.
7688         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
7689         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
7690         (same_slave): New function.
7691         (main): Use it to compare ptsname's result with the expected file name.
7692
7693 2010-12-22  Bruno Haible  <bruno@clisp.org>
7694
7695         Port extended stdio modules to HP NonStop Kernel.
7696         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
7697         macros.
7698         * lib/fbufmode.c: Update comments.
7699         * lib/fflush.c: Likewise.
7700         * lib/fpurge.c: Likewise.
7701         * lib/freadable.c: Likewise.
7702         * lib/freadahead.c: Likewise.
7703         * lib/freading.c: Likewise.
7704         * lib/freadptr.c: Likewise.
7705         * lib/freadseek.c: Likewise.
7706         * lib/fseeko.c: Likewise.
7707         * lib/fseterr.c: Likewise.
7708         * lib/fwritable.c: Likewise.
7709         * lib/fwriting.c: Likewise.
7710         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7711
7712 2010-12-22  Bruno Haible  <bruno@clisp.org>
7713
7714         ttyname_r: Work around bug on OSF/1 5.1.
7715         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
7716         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
7717         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
7718         present.
7719         * lib/ttyname_r.c (ttyname_r): Update comments.
7720
7721 2010-12-22  Bruno Haible  <bruno@clisp.org>
7722
7723         round: Implement result sign according to IEEE 754.
7724         * lib/round.c (MIN, MINUS_ZERO): New macros.
7725         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
7726         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
7727         * tests/test-round-ieee.c (main): Likewise.
7728         * tests/test-roundl-ieee.c (main): Likewise.
7729
7730         trunc: Implement result sign according to IEEE 754.
7731         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
7732         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
7733         * tests/test-trunc2.c: Include minus-zero.h.
7734         (MINUS_ZERO): New macro.
7735         (trunc_reference): Keep in sync with lib/trunc.c.
7736         * tests/test-truncf2.c: Include minus-zero.h.
7737         (MINUS_ZERO): New macro.
7738         (truncf_reference): Keep in sync with lib/trunc.c.
7739         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
7740         * tests/test-trunc-ieee.c (main): Likewise.
7741         * tests/test-truncl-ieee.c (main): Likewise.
7742
7743         ceil: Implement result sign according to IEEE 754.
7744         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
7745         (FUNC): Return -0.0 for -1 < x < 0.
7746         * tests/test-ceil2.c: Include minus-zero.h.
7747         (MINUS_ZERO): New macro.
7748         (ceil_reference): Keep in sync with lib/ceil.c.
7749         * tests/test-ceilf2.c: Include minus-zero.h.
7750         (MINUS_ZERO): New macro.
7751         (ceilf_reference): Keep in sync with lib/ceil.c.
7752         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
7753         * tests/test-ceil-ieee.c (main): Likewise.
7754         * tests/test-ceill-ieee.c (main): Likewise.
7755
7756         floor: Implement result sign according to IEEE 754.
7757         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
7758         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
7759         * tests/test-floorf2.c (floorf_reference): Likewise.
7760         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
7761         * tests/test-floor-ieee.c (main): Likewise.
7762         * tests/test-floorl-ieee.c (main): Likewise.
7763
7764 2010-12-22  Bruno Haible  <bruno@clisp.org>
7765
7766         getaddrinfo: Update doc.
7767         * doc/posix-functions/gai_strerror.texi: Return type is also different
7768         on AIX and HP-UX.
7769
7770 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7771
7772         getaddrinfo, inet_ntop: Update doc for Solaris.
7773         * doc/posix-functions/gai_strerror.texi: Return type is also an
7774         issue on Solaris 9 and earlier.
7775         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
7776         on Solaris 10 and earlier.
7777
7778 2010-12-21  Bruno Haible  <bruno@clisp.org>
7779
7780         New module 'roundl-ieee'.
7781         * modules/roundl-ieee: New file.
7782         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
7783         test whether roundl works according to ISO C 99 with IEC 60559.
7784         * m4/roundl-ieee.m4: New file.
7785         * modules/roundl-ieee-tests: New file.
7786         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
7787         * tests/test-roundl.c (main): Remove signbit tests.
7788         * modules/roundl-tests (Depends-on): Remove signbit.
7789         * doc/posix-functions/roundl.texi: Mention the new module.
7790
7791 2010-12-21  Bruno Haible  <bruno@clisp.org>
7792
7793         New module 'truncl-ieee'.
7794         * modules/truncl-ieee: New file.
7795         * modules/truncl-ieee-tests: New file.
7796         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
7797         * tests/test-truncl.c (main): Remove signbit tests.
7798         * modules/truncl-tests (Depends-on): Remove signbit.
7799         * doc/posix-functions/truncl.texi: Mention the new module.
7800
7801 2010-12-21  Bruno Haible  <bruno@clisp.org>
7802
7803         New module 'ceill-ieee'.
7804         * modules/ceill-ieee: New file.
7805         * modules/ceill-ieee-tests: New file.
7806         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
7807         * tests/test-ceill.c (main): Remove signbit tests.
7808         * modules/ceill-tests (Depends-on): Remove signbit.
7809         * doc/posix-functions/ceill.texi: Mention the new module.
7810
7811 2010-12-21  Bruno Haible  <bruno@clisp.org>
7812
7813         New module 'floorl-ieee'.
7814         * modules/floorl-ieee: New file.
7815         * modules/floorl-ieee-tests: New file.
7816         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
7817         * tests/test-floorl.c (main): Remove signbit tests.
7818         * modules/floorl-tests (Depends-on): Remove signbit.
7819         * doc/posix-functions/floorl.texi: Mention the new module.
7820
7821 2010-12-21  Bruno Haible  <bruno@clisp.org>
7822
7823         New module 'round-ieee'.
7824         * modules/round-ieee: New file.
7825         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
7826         whether round works according to ISO C 99 with IEC 60559.
7827         * m4/round-ieee.m4: New file.
7828         * modules/round-ieee-tests: New file.
7829         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
7830         * tests/test-round1.c (main): Remove signbit tests.
7831         * modules/round-tests (Depends-on): Remove 'signbit'.
7832         * doc/posix-functions/round.texi: Mention the new module.
7833
7834 2010-12-21  Bruno Haible  <bruno@clisp.org>
7835
7836         New module 'trunc-ieee'.
7837         * modules/trunc-ieee: New file.
7838         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
7839         whether trunc works according to ISO C 99 with IEC 60559.
7840         * m4/trunc-ieee.m4: New file.
7841         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
7842         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
7843         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
7844         * modules/trunc-ieee-tests: New file.
7845         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
7846         * tests/test-trunc1.c (main): Remove signbit tests.
7847         * modules/trunc-tests (Depends-on): Remove 'signbit'.
7848         * doc/posix-functions/trunc.texi: Mention the new module.
7849
7850 2010-12-21  Bruno Haible  <bruno@clisp.org>
7851
7852         New module 'ceil-ieee'.
7853         * modules/ceil-ieee: New file.
7854         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
7855         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
7856         ISO C 99 with IEC 60559.
7857         * m4/ceil-ieee.m4: New file.
7858         * modules/ceil (Files): Add lib/ceil.c.
7859         (Depends-on): Add 'float'.
7860         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7861         * lib/math.in.h (ceil): New declaration.
7862         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
7863         REPLACE_CEIL.
7864         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
7865         * modules/ceil-ieee-tests: New file.
7866         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
7867         * tests/test-math-c++.cc: Check the signature of 'ceil'.
7868         * doc/posix-functions/ceil.texi: Mention the new module.
7869
7870 2010-12-21  Bruno Haible  <bruno@clisp.org>
7871
7872         New module 'floor-ieee'.
7873         * modules/floor-ieee: New file.
7874         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
7875         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
7876         ISO C 99 with IEC 60559.
7877         * m4/floor-ieee.m4: New file.
7878         * modules/floor (Files): Add lib/floor.c.
7879         (Depends-on): Add 'float'.
7880         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7881         * lib/math.in.h (floor): New declaration.
7882         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
7883         REPLACE_FLOOR.
7884         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
7885         * modules/floor-ieee-tests: New file.
7886         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
7887         * tests/test-math-c++.cc: Check the signature of 'floor'.
7888         * doc/posix-functions/floor.texi: Mention the new module.
7889
7890 2010-12-21  Bruno Haible  <bruno@clisp.org>
7891
7892         New module 'roundf-ieee'.
7893         * modules/roundf-ieee: New file.
7894         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
7895         test whether roundf works according to ISO C 99 with IEC 60559.
7896         * m4/roundf-ieee.m4: New file.
7897         * modules/roundf-ieee-tests: New file.
7898         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
7899         * tests/test-roundf1.c (main): Remove signbit tests.
7900         * modules/roundf-tests (Depends-on): Remove 'signbit'.
7901         * doc/posix-functions/roundf.texi: Mention the new module.
7902
7903 2010-12-21  Bruno Haible  <bruno@clisp.org>
7904
7905         New module 'truncf-ieee'.
7906         * modules/truncf-ieee: New file.
7907         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
7908         test whether truncf works according to ISO C 99 with IEC 60559.
7909         * m4/truncf-ieee.m4: New file.
7910         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
7911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
7912         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
7913         * modules/truncf-ieee-tests: New file.
7914         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
7915         * tests/test-truncf1.c (main): Remove signbit tests.
7916         * modules/truncf-tests (Depends-on): Remove 'signbit'.
7917         * doc/posix-functions/truncf.texi: Mention the new module.
7918
7919 2010-12-21  Bruno Haible  <bruno@clisp.org>
7920
7921         New module 'ceilf-ieee'.
7922         * modules/ceilf-ieee: New file.
7923         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
7924         test whether ceilf works according to ISO C 99 with IEC 60559.
7925         * m4/ceilf-ieee.m4: New file.
7926         * modules/ceilf-ieee-tests: New file.
7927         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
7928         * tests/test-ceilf1.c (main): Remove signbit tests.
7929         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
7930         * doc/posix-functions/ceilf.texi: Mention the new module.
7931
7932 2010-12-21  Bruno Haible  <bruno@clisp.org>
7933
7934         New module 'floorf-ieee'.
7935         * modules/floorf-ieee: New file.
7936         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
7937         test whether floorf works according to ISO C 99 with IEC 60559.
7938         * m4/floorf-ieee.m4: New file.
7939         * modules/floorf-ieee-tests: New file.
7940         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
7941         * tests/test-floorf1.c (main): Remove signbit tests.
7942         * modules/floorf-tests (Depends-on): Remove 'signbit'.
7943         * doc/posix-functions/floorf.texi: Mention the new module.
7944
7945 2010-12-21  Bruno Haible  <bruno@clisp.org>
7946
7947         Support for minus zero in autoconf macros.
7948         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
7949         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
7950         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
7951         * tests/minus-zero.h: Update comments.
7952
7953 2010-12-21  Bruno Haible  <bruno@clisp.org>
7954
7955         Tests for module 'ceil'.
7956         * modules/ceil-tests: New file.
7957         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
7958         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
7959
7960 2010-12-21  Bruno Haible  <bruno@clisp.org>
7961
7962         Tests for module 'floor'.
7963         * modules/floor-tests: New file.
7964         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
7965         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
7966
7967 2010-12-21  Bruno Haible  <bruno@clisp.org>
7968
7969         math: Fix indentation.
7970         * lib/math.in.h (floorf): Fix indentation.
7971
7972 2010-12-21  Bruno Haible  <bruno@clisp.org>
7973
7974         Fix cross-compilation guesses on Solaris.
7975         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
7976         not match "solaris2.10".
7977         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7978         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
7979         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
7980
7981 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
7982
7983         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
7984         This fixes a problem observed with the latest coreutils snapshot
7985         that caused a test to fail on Solaris 8.  src/csplit.c's call
7986         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
7987         earlier, instead of returning the number of bytes that would have
7988         been generated; this causes csplit to incorrectly report memory
7989         exhaustion.
7990         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
7991         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
7992         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
7993         comments to match.
7994         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
7995         Fix typo in matching older versions of Solaris: "solaris2.10"
7996         is matched by the shell pattern "solaris2.[0-9]*".  This matters
7997         only for guessing while cross-compiling.
7998         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
7999
8000 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8001
8002         ftoastr: fix comment again
8003         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8004         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
8005         Also, simplify example a bit by using flags = 0.
8006
8007 2010-12-20  Bruno Haible  <bruno@clisp.org>
8008
8009         round*, trunc*: Update documentation regarding glibc.
8010         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
8011         * doc/posix-functions/round.texi: Likewise.
8012         * doc/posix-functions/roundl.texi: Likewise.
8013         * doc/posix-functions/truncf.texi: Likewise.
8014         * doc/posix-functions/trunc.texi: Likewise.
8015         * doc/posix-functions/truncl.texi: Likewise.
8016
8017 2010-12-20  Bruno Haible  <bruno@clisp.org>
8018
8019         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
8020         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
8021         * doc/posix-functions/round.texi: Likewise.
8022         * doc/posix-functions/roundl.texi: Likewise.
8023
8024 2010-12-20  Bruno Haible  <bruno@clisp.org>
8025
8026         ttyname_r: Add missing declaration on HP-UX 11.
8027         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
8028         HAVE_TTYNAME_R.
8029         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
8030         declared. Set HAVE_TTYNAME_R always.
8031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8032         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
8033         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
8034         HAVE_TTYNAME_R.
8035         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
8036
8037 2010-12-20  Bruno Haible  <bruno@clisp.org>
8038
8039         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
8040         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
8041         * doc/posix-functions/getlogin_r.texi: Likewise.
8042         * tests/test-getlogin.c: Include <errno.h>.
8043         (main): Avoid test failure on HP-UX 11.11.
8044         * tests/test-getlogin_r.c (main): Likewise.
8045
8046 2010-12-20  Bruno Haible  <bruno@clisp.org>
8047
8048         getlogin_r: Add missing declaration on HP-UX 11.
8049         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
8050         declared also when it exists as a function.
8051         * doc/posix-functions/getlogin_r.texi: Document this workaround.
8052
8053 2010-12-20  Bruno Haible  <bruno@clisp.org>
8054
8055         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
8056         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
8057         through wcrtomb.
8058
8059 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8060
8061         ftoastr: fix comment
8062         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8063         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
8064
8065 2010-12-19  Bruno Haible  <bruno@clisp.org>
8066
8067         isnan: Ensure it is a macro.
8068         * lib/math.in.h (isnan): Define as a macro if not already a macro.
8069         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
8070         Solaris.
8071
8072 2010-12-19  Bruno Haible  <bruno@clisp.org>
8073
8074         ldexpl test: Fix link error on OSF/1 5.1.
8075         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
8076
8077 2010-12-19  Bruno Haible  <bruno@clisp.org>
8078
8079         wctype: Make it work in C++ mode on OSF/1 5.1.
8080         * lib/wctype.in.h (iswblank): Declare but not define here.
8081         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
8082         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
8083         * modules/wctype (Files): Add lib/iswblank.c.
8084
8085 2010-12-19  Bruno Haible  <bruno@clisp.org>
8086
8087         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
8088         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
8089         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
8090
8091 2010-12-19  Bruno Haible  <bruno@clisp.org>
8092
8093         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
8094         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
8095         _POSIX_PII_SOCKET.
8096         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
8097         * doc/posix-functions/recvfrom.texi: Likewise.
8098         * doc/posix-functions/send.texi: Likewise.
8099         * doc/posix-functions/sendto.texi: Likewise.
8100
8101 2010-12-19  Bruno Haible  <bruno@clisp.org>
8102
8103         tcgetsid: Add missing declaration on OSF/1 5.1.
8104         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
8105         HAVE_TCGETSID.
8106         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
8107         Don't set HAVE_TCGETSID.
8108         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
8109         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
8110         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
8111         HAVE_TCGETSID.
8112         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
8113
8114 2010-12-19  Bruno Haible  <bruno@clisp.org>
8115
8116         stdio: Fix problem with popen() declaration on OSF/1 5.1.
8117         * lib/stdio.in.h: During the include_next statement, let recursive
8118         includes of this file include only the system header file.
8119
8120 2010-12-19  Bruno Haible  <bruno@clisp.org>
8121
8122         iconv_open: Fix regression from 2010-12-04.
8123         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
8124         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
8125
8126 2010-12-19  Bruno Haible  <bruno@clisp.org>
8127
8128         stdbool test: Avoid a gcc warning.
8129         * tests/test-stdbool.c (main): Fail if e1 is false.
8130         Reported by Jim Meyering.
8131
8132 2010-12-19  Jim Meyering  <meyering@redhat.com>
8133
8134         setenv: restore to working order
8135         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
8136         mistakenly removed.
8137         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
8138         HAVE_SETENV.
8139         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
8140         HAVE_SETENV.
8141
8142 2010-12-19  Bruno Haible  <bruno@clisp.org>
8143
8144         Document some different function declarations on OSF/1 5.1.
8145         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
8146         * doc/posix-functions/inet_ntop.texi: Likewise.
8147         * doc/posix-functions/gethostname.texi: Likewise.
8148         * lib/unistd.in.h (gethostname): Update comment.
8149
8150 2010-12-19  Bruno Haible  <bruno@clisp.org>
8151
8152         doc: Mention vasprintf-posix module.
8153         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
8154         the 'vasprintf-posix' module.
8155         * doc/glibc-functions/vasprintf.texi: Likewise.
8156
8157 2010-12-19  Bruno Haible  <bruno@clisp.org>
8158
8159         unsetenv: Add missing declaration on OSF/1 5.1.
8160         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
8161         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
8162         Don't set HAVE_UNSETENV. In the test program, set _BSD.
8163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
8164         not HAVE_UNSETENV.
8165         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
8166         HAVE_UNSETENV.
8167         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
8168
8169 2010-12-19  Bruno Haible  <bruno@clisp.org>
8170
8171         setenv: Add missing declaration on OSF/1 5.1.
8172         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
8173         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
8174         declared. Don't set HAVE_SETENV.
8175         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
8176         not HAVE_SETENV.
8177         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
8178         HAVE_SETENV.
8179         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
8180
8181 2010-12-19  Bruno Haible  <bruno@clisp.org>
8182
8183         nl_langinfo tests: Avoid gcc warning.
8184         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
8185
8186 2010-12-19  Bruno Haible  <bruno@clisp.org>
8187
8188         mknod: Avoid error in C++ mode on OSF/1 with GCC.
8189         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
8190         _GL_CXXALIAS_SYS.
8191
8192 2010-12-19  Bruno Haible  <bruno@clisp.org>
8193
8194         stdbool: Relax test.
8195         * tests/test-stdbool.c (e): Don't require that casts from a variable's
8196         address to 'bool' work in static initializer, for compilers other than
8197         GCC.
8198
8199 2010-12-19  Bruno Haible  <bruno@clisp.org>
8200
8201         ftello: Add missing declaration on OSF/1 5.1.
8202         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
8203         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
8204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
8205         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
8206         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
8207
8208 2010-12-19  Bruno Haible  <bruno@clisp.org>
8209
8210         fseeko: Add missing declaration on OSF/1 5.1.
8211         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
8212         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
8213         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
8214         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
8215         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
8216
8217 2010-12-19  Bruno Haible  <bruno@clisp.org>
8218
8219         fchdir: Add missing declaration on OSF/1 5.1.
8220         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
8221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
8222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
8223         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
8224         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
8225
8226 2010-12-19  Bruno Haible  <bruno@clisp.org>
8227
8228         relocatable-prog-wrapper: Separate from relocatable-prog.
8229         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
8230         uninstall-relocwrapper rule here.
8231         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
8232         Reported by Ian Beckwith <ianb@erislabs.net>.
8233
8234 2010-12-19  Bruno Haible  <bruno@clisp.org>
8235
8236         unistr/u8-mbsnlen: Add missing dependency.
8237         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
8238         Reported by Ian Beckwith <ianb@erislabs.net>.
8239
8240 2010-12-19  Bruno Haible  <bruno@clisp.org>
8241
8242         iconv: Make it possible again to use this module without 'iconv-h'.
8243         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
8244         if it is not defined.
8245         Reported by Ian Beckwith <ianb@erislabs.net>.
8246
8247 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8248
8249         acl: port to Solaris 8 when copying from tmpfs to ufs
8250         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
8251         error number.  Problem observed on Solaris 8 with latest
8252         coreutils, with "mv A B", where A is on a tmpfs file system and B
8253         is on a ufs file system.  This caused coreutils' mv/part-symlink
8254         test to fail.
8255
8256         tests: set fail=0 at start
8257         * tests/init.sh (setup_): Move fail=0 initialization here ...
8258         (mktempd_): ... from here, so that tests can rely on fail being
8259         set to 0 initially.  This fixes a problem in coreutils; see:
8260         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
8261
8262 2010-12-18  Bruno Haible  <bruno@clisp.org>
8263
8264         memmem-simple: Stylistic changes.
8265         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
8266         Fix preprocessor directive indentation.
8267
8268 2010-12-15  Pádraig Brady <P@draigBrady.com>
8269
8270         memmem, memmem-simple: reorganize and expand empty needle check
8271         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
8272         functional checks to memmem-simple so that one has a fully functional
8273         memmem by using just this module.
8274         Restrict the performance only check to the memmem module.
8275         Also expand the empty needle check to ensure the correct
8276         pointer is returned, not just a non NULL pointer.
8277         * doc/glibc-functions/memmem.texi: Rearrange the portability
8278         documentation to correlate with the rearranged checks.
8279         Clarify exactly how the memmem and memmem-simple modules
8280         relate to each other.
8281
8282 2010-12-15  Pádraig Brady <P@draigBrady.com>
8283             Bruno Haible  <bruno@clisp.org>
8284
8285         Improve cross-compilation guesses for uClibc.
8286         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
8287         that uClibc does not have the glibc bug.
8288         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
8289         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
8290
8291 2010-12-14  Eric Blake  <eblake@redhat.com>
8292
8293         configmake: provide fallbacks for oldest supported autotools
8294         * m4/configmake.m4: New file.
8295         * modules/configmake (Files): Ship it.
8296         (configure.ac): Use it to guarantee fallbacks.
8297
8298 2010-12-13  Pádraig Brady <P@draigBrady.com>
8299
8300         read-file: Improve handling of large files
8301         * lib/read-file.c (fread_file): Minimize realloc()s
8302         for regular files, and better manage sizes around SIZE_MAX.
8303
8304 2010-12-13  Eric Blake  <eblake@redhat.com>
8305
8306         cloexec, fcntl: relax license
8307         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
8308         consent from all contributors.
8309         * modules/fcntl (License): Likewise.
8310
8311 2010-12-10  Bruno Haible  <bruno@clisp.org>
8312
8313         Tests for module 'pipe-posix'.
8314         * modules/pipe-posix-tests: New file.
8315         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
8316
8317 2010-12-10  Bruno Haible  <bruno@clisp.org>
8318
8319         pipe-posix: Make it work in C++ mode.
8320         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
8321         (pipe): Use common idiom, not a macro definition.
8322         * lib/pipe.c: New file.
8323         * m4/pipe.m4: New file.
8324         * modules/pipe-posix (Description): Enhance.
8325         (Files): Add lib/pipe.c, m4/pipe.m4.
8326         (configure.ac): Invoke gl_FUNC_PIPE.
8327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
8328         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
8329         * tests/test-unistd-c++.cc: Check the signature of pipe.
8330
8331 2010-12-10  Bruno Haible  <bruno@clisp.org>
8332
8333         Rename module 'pipe' to 'spawn-pipe'.
8334         * modules/spawn-pipe: New file, renamed from modules/pipe.
8335         (Files, configure.ac, Makefile.am): Update.
8336         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
8337         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
8338         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
8339         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
8340         "spawn-pipe.h" instead of "pipe.h".
8341         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
8342         to gl_SPAWN_PIPE.
8343         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
8344         (Files, Makefile.am): Update.
8345         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
8346         Update.
8347         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
8348         Include "spawn-pipe.h" instead of "pipe.h".
8349         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
8350         * lib/javacomp.c: Likewise.
8351         * lib/javaversion.c: Likewise.
8352         * lib/pipe-filter-gi.c: Likewise.
8353         * lib/pipe-filter-ii.c: Likewise.
8354         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
8355         * modules/javacomp (Depends-on): Likewise.
8356         * modules/javaversion (Depends-on): Likewise.
8357         * modules/pipe-filter-gi (Depends-on): Likewise.
8358         * modules/pipe-filter-ii (Depends-on): Likewise.
8359         * MODULES.html.sh (Executing programs): Update.
8360         * NEWS: Mention the change.
8361
8362 2010-12-10  Eric Blake  <eblake@redhat.com>
8363
8364         pipe-posix: new module
8365         * modules/pipe-posix: New file.
8366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
8367         (gl_UNISTD_H): Check for declaration.
8368         * modules/unistd (Makefile.am): Substitute it.
8369         * lib/unistd.in.h (pipe): Provide it for mingw.
8370         * doc/posix-functions/pipe.texi (pipe): Update documentation.
8371         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
8372
8373 2010-12-07  Bruno Haible  <bruno@clisp.org>
8374
8375         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
8376         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
8377         u8_strcmp_gnu.
8378         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
8379
8380 2010-12-06  Bruno Haible  <bruno@clisp.org>
8381
8382         Update internal documentation.
8383         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
8384
8385 2010-12-04  Bruno Haible  <bruno@clisp.org>
8386
8387         Put more information about failed tests into the test return codes.
8388         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
8389         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
8390         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8391         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8392         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
8393         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8394         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8395         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8396         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
8397         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8398         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
8399         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8400         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8401         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8402         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
8403         returns a bit mask.
8404         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
8405         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
8406         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
8407         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
8408         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8409         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8410         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8411         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8412         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8413         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8414         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8415         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8416         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8417         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8418         * m4/link.m4 (gl_FUNC_LINK): Likewise.
8419         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8420         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
8421         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
8422         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8423         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
8424         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8425         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8426         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
8427         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8428         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8429         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8430         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
8431         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8432         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8433         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
8434         gl_PRINTF_PRECISION): Likewise.
8435         * m4/regex.m4 (gl_REGEX): Likewise.
8436         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8437         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8438         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
8439         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8440         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8441         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8442         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8443         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
8444         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8445         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8446         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8447         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8448         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8449         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
8450         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8451         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8452         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
8453         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8454         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8455         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
8456         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
8457         enumerated value.
8458         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
8459
8460 2010-12-04  Bruno Haible  <bruno@clisp.org>
8461
8462         Update for Solaris 11 2010-11.
8463         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
8464         Express, released in November 2010.
8465
8466 2010-12-04  Bruno Haible  <bruno@clisp.org>
8467
8468         nproc: Relax license.
8469         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
8470         and Paul Eggert.
8471         Requested by Ludovic Courtès <ludo@gnu.org>.
8472
8473 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
8474
8475         utimecmp: fine-grained src to nearby coarse-grained dest
8476
8477         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
8478         and the source is on a file system with higher-resolution time
8479         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
8480         not work, and the time stamps are close together, the algorithm to
8481         determine the exact resolution from the read-back mtime was buggy:
8482         it had a "!=" where it should have had an "==".  This bug has been
8483         in the code ever since it was introduced to gnulib.
8484         Problem reported by Dan Jacobson in
8485         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
8486
8487 2010-11-30  Bruno Haible  <bruno@clisp.org>
8488
8489         strerror_r-posix: Fix autoconf test.
8490         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
8491
8492 2010-11-28  Bruno Haible  <bruno@clisp.org>
8493             Paul Eggert  <eggert@cs.ucla.edu>
8494
8495         Tests for module 'getdomainname'.
8496         * modules/getdomainname-tests: New file.
8497         * tests/test-getdomainname.c: New file, based on
8498         tests/test-gethostname.c.
8499
8500 2010-11-28  Bruno Haible  <bruno@clisp.org>
8501             Paul Eggert  <eggert@cs.ucla.edu>
8502
8503         getdomainname: Use the system function when possible.
8504         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
8505         (getdomainname): Replace if needed. Provide the declaration if it is
8506         missing. Don't use _GL_CXXALIAS_SYS_CAST.
8507         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
8508         (getdomainname): When the system has getdomainname, call the system
8509         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
8510         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
8511         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
8512         found in libnsl. Look for the declaration also in <netdb.h>. Replace
8513         the function if its second argument is of type 'int' or if it is found
8514         in libnsl.
8515         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
8516         <sys/systeminfo.h> and sysinfo().
8517         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
8518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8519         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
8520         HAVE_GETDOMAINNAME.
8521         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
8522         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
8523         * doc/glibc-functions/getdomainname.texi: Document the problems with
8524         the getdomainname declaration.
8525
8526 2010-11-28  Bruno Haible  <bruno@clisp.org>
8527
8528         sys_socket: Ensure ss_family field on AIX.
8529         * lib/sys_socket.in.h (ss_family): New macro definition.
8530         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
8531         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
8532         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8533         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8534         * modules/sys_socket (Makefile.am): Substitute
8535         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8536         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
8537
8538 2010-11-27  Bruno Haible  <bruno@clisp.org>
8539
8540         readline: Improve configure output.
8541         * m4/readline.m4 (gl_FUNC_READLINE): Make the
8542         "checking for readline..." result understandable.
8543
8544 2010-11-27  Bruno Haible  <bruno@clisp.org>
8545
8546         *printf-posix: Detect a bug on Solaris 10/x86.
8547         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
8548         for floating-point output.
8549         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
8550         directive.
8551         * tests/test-snprintf-posix.h (test_function): Likewise.
8552         * tests/test-sprintf-posix.h (test_function): Likewise.
8553         * tests/test-vasprintf-posix.c (test_function): Likewise.
8554         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
8555         * doc/posix-functions/printf.texi: Likewise.
8556         * doc/posix-functions/snprintf.texi: Likewise.
8557         * doc/posix-functions/sprintf.texi: Likewise.
8558         * doc/posix-functions/vfprintf.texi: Likewise.
8559         * doc/posix-functions/vprintf.texi: Likewise.
8560         * doc/posix-functions/vsnprintf.texi: Likewise.
8561         * doc/posix-functions/vsprintf.texi: Likewise.
8562         * doc/glibc-functions/obstack_printf.texi: Likewise.
8563         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8564
8565 2010-11-27  Bruno Haible  <bruno@clisp.org>
8566
8567         Fix link error when module libunistring-optional is in use.
8568         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
8569         * modules/striconveha-tests (Makefile.am): Likewise.
8570
8571 2010-11-27  Bruno Haible  <bruno@clisp.org>
8572
8573         regex: Mention link dependencies.
8574         * modules/regex (Link): New section.
8575         * modules/rpmatch (Link): Likewise.
8576         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
8577
8578 2010-11-27  Bruno Haible  <bruno@clisp.org>
8579
8580         ftoastr: Fix compilation error on Solaris.
8581         * lib/ftoastr.c: Include <config.h>.
8582
8583 2010-11-27  Bruno Haible  <bruno@clisp.org>
8584
8585         getloadavg: Update documentation.
8586         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
8587
8588 2010-11-27  Bruno Haible  <bruno@clisp.org>
8589
8590         sys_socket: Fix test whether the functions are declared.
8591         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
8592         not <sys/select.h>.
8593
8594 2010-11-27  Bruno Haible  <bruno@clisp.org>
8595
8596         getpass: Make sure to get system declaration on some platforms.
8597         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
8598         gl_USE_SYSTEM_EXTENSIONS.
8599         * modules/getpass (Depends-on): Add extensions.
8600
8601 2010-11-26  Bruno Haible  <bruno@clisp.org>
8602
8603         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
8604         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
8605         'iconv' module is present.
8606         (ICONV_CONST): New macro.
8607         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
8608         ICONV_CONST.
8609         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
8610         set ICONV_CONST.
8611         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
8612         here.
8613         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
8614         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
8615         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
8616         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
8617         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
8618         present.
8619
8620 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8621
8622         ftoastr: comment fix
8623         * lib/ftoastr.c: "little" -> "little or no" in comment
8624
8625 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
8626
8627         stdint: port to GCC 4.3 + OSX + Octave
8628         On this platform, stdint.h is buggy and defines int64_t to long
8629         long int.  The replacement defined it to long int, causing
8630         problems with C++ style name mangling.  Instead, trust the system
8631         definition if INT64_MAX is defined, and likewise for the unsigned
8632         variant.   Problem reported by Jarno Rajahalme in
8633         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
8634         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
8635         and don't mess with int64_t and INT64_MAX in this case.
8636         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
8637
8638 2010-11-24  Bruno Haible  <bruno@clisp.org>
8639
8640         doc: Corrections regarding MacOS X 10.4 and 10.5.
8641         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
8642         MacOS X.
8643         Reported by Simon Josefsson.
8644
8645 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
8646
8647         Uninstall ".bin" files installed by relocwrapper.
8648         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
8649         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
8650         unless it is already there.
8651
8652 2010-11-21  Bruno Haible  <bruno@clisp.org>
8653
8654         Update for NetBSD 5.0.
8655         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8656         NetBSD; the test fails on NetBSD 5.0.
8657         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8658         about NetBSD.
8659
8660 2010-11-21  Bruno Haible  <bruno@clisp.org>
8661
8662         Update for HP-UX 11.23 and HP-UX 11.31.
8663         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
8664         HP-UX.
8665
8666 2010-11-21  Bruno Haible  <bruno@clisp.org>
8667
8668         Update for MacOS X 10.5.
8669         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8670         MacOS X; the test fails on MacOS X 10.5.8.
8671         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8672         about MacOS X.
8673
8674 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
8675
8676         bootstrap: add bootstrap_sync option.
8677         See discussion at
8678         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
8679         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
8680         * build-aux/bootstrap: Accept --bootstrap-sync to update
8681         bootstrap if it is not identical to the local gnulib's
8682         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
8683         enable this by default.  Accept --no-bootstrap-sync to disable
8684         it.
8685
8686 2010-11-20  Bruno Haible  <bruno@clisp.org>
8687
8688         Ensure that <features.h> is included before __GLIBC__ is tested.
8689         * lib/printf-parse.h: Include <features.h>.
8690         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
8691         Reported by Mike Frysinger <vapier@gentoo.org>.
8692
8693         Ensure that <features.h> is included before __GLIBC__ is tested.
8694         * lib/wchar.in.h: Include <features.h>.
8695         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
8696         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
8697         Reported by Mike Frysinger <vapier@gentoo.org>.
8698
8699         Ensure that <features.h> is included before __GLIBC__ is tested.
8700         * lib/arpa_inet.in.h: Include <features.h>.
8701         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
8702         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
8703         Reported by Mike Frysinger <vapier@gentoo.org>.
8704
8705         Ensure that <features.h> is included before __GLIBC__ is tested.
8706         * build-aux/link-warning.h: Include <features.h>.
8707         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
8708         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
8709         Reported by Mike Frysinger <vapier@gentoo.org>.
8710
8711         Ensure that <features.h> is included before __GLIBC__ is tested.
8712         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
8713         Reported by Mike Frysinger <vapier@gentoo.org>.
8714
8715 2010-11-20  Bruno Haible  <bruno@clisp.org>
8716
8717         memmem: Fix autoconf test.
8718         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
8719
8720 2010-11-20  Bruno Haible  <bruno@clisp.org>
8721
8722         Port to uClibc.
8723         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
8724         * lib/fcntl.in.h: Likewise.
8725         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
8726         * lib/mbrtowc.c (mbrtowc): Likewise.
8727         * lib/relocatable.c (find_shared_library_fullname): Likewise.
8728         * lib/strerror_r.c: Likewise.
8729         * lib/unistr/u8-strnlen.c: Likewise.
8730         * lib/vasnprintf.c (decimal_point_char): Likewise.
8731         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8732         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8733         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8734         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8735         * tests/test-sigaction.c (handler, main): Likewise.
8736         * lib/freading.h: Treat uClibc like a non-glibc platform.
8737         * lib/freading.c: Likewise.
8738         * lib/gettext.h: Likewise.
8739         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
8740         Likewise.
8741         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
8742         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8743         * lib/propername.c (proper_name_utf8): Likewise.
8744         * lib/spawn.in.h: Likewise.
8745         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
8746         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
8747         mem_cd_iconveh_internal): Likewise.
8748         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
8749         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8750         strstr, strcasestr): Likewise.
8751         * lib/unicodeio.c (unicode_to_mb): Likewise.
8752         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
8753         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
8754         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
8755         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
8756         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
8757         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
8758         * lib/unistr/u8-stpncpy.c: Likewise.
8759         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8760         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
8761         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8762         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8763         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8764         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
8765         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
8766         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
8767         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8768         Likewise.
8769         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8770         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8771         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8772         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8773         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8774         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8775         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8776         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8777         * tests/test-getopt.h (OPTIND_MIN): Likewise.
8778         * tests/test-striconveha.c (main): Likewise.
8779         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8780         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
8781         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
8782         * doc/posix-functions/getline.texi: Likewise.
8783         Reported by Mike Frysinger <vapier@gentoo.org>.
8784
8785 2010-11-20  Bruno Haible  <bruno@clisp.org>
8786
8787         nproc: Fix condition.
8788         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
8789         HAVE_PTHREAD_AFFINITY_NP.
8790
8791 2010-11-20  Bruno Haible  <bruno@clisp.org>
8792
8793         Fix a comment.
8794         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
8795
8796 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8797
8798         ftoastr: don't assume snprintf
8799         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
8800         Implement a subset of snprintf here, by using sprintf safely.
8801         * modules/ftoastr (Depends-on): Remove snprintf.
8802
8803 2010-11-19  Jim Meyering  <meyering@redhat.com>
8804
8805         test-rename.h: fix compilation failure
8806         * tests/test-rename.h (test_rename): Add omitted "}".
8807
8808 2010-11-17  Jim Meyering  <meyering@redhat.com>
8809
8810         maint.mk: add a URL discussing the no-@acronym policy
8811         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
8812
8813 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8814
8815         ftoastr: depend on snprintf, improve comments
8816         * lib/ftoastr.c: Also mention Loitsch's draft.
8817         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
8818         needed in the current implementation, but it might simplify
8819         speeding up the code later.
8820         * modules/ftoastr: Depend on snprintf; this improves portability.
8821         Suggested by Bruno Haible in the same email.
8822
8823         ftoastr: port to hosts lacking strtof and strtold
8824         Problem reported by Bruno Haible in
8825         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
8826         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
8827         environment and strtold (and presumably strtof) are not available.
8828         * modules/ftoastr (Files): Add m4/c-strtod.m4.
8829         (configure.ac): Require gl_C99_STRTOLD.
8830
8831 2010-11-18  Bruno Haible  <bruno@clisp.org>
8832
8833         c-strtold: Avoid link error on AIX 7.
8834         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
8835         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
8836         (gl_C_STRTOLD): Test whether strtold_l exists.
8837         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8838
8839 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8840
8841         intprops: new macro INT_BITS_STRLEN_BOUND
8842         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
8843         ftoastr.h.  This exposes an internal of intprops.h that was formerly
8844         not exposed.  Also, it uses a slightly tighter bound than before;
8845         though this makes no practical difference, we might as well be as
8846         tight as we easily can.
8847
8848         ftoastr: new module, for lossless conversion of floats to short strings
8849         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
8850         * modules/ftoastr: New files.
8851
8852 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8853
8854         bootstrap: port to Solaris sed
8855         * build-aux/bootstrap (get_version): Port to Solaris sed.
8856         See Ralf Wildenhues's note in
8857         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
8858
8859 2010-11-14  Jim Meyering  <meyering@redhat.com>
8860
8861         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
8862         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
8863         and move definition closer to sole use.
8864
8865 2010-11-13  Jim Meyering  <meyering@redhat.com>
8866
8867         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
8868         Now we require at least autoconf-2.59, which means the work-around
8869         is no longer needed.
8870         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
8871         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8872         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8873         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
8874         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8875
8876 2010-11-13  Bruno Haible  <bruno@clisp.org>
8877
8878         rename, renameat: Avoid test failures at NFS mounted locations.
8879         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
8880         functions.
8881         (test_rename): Use assert_nonexistent.
8882         * tests/test-rename.c: Include <dirent.h>.
8883         * tests/test-renameat.c: Likewise.
8884         Reported by Gary V. Vaughan <gary@gnu.org>.
8885
8886         rename, renameat: Document Linux bug with NFS
8887         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
8888         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
8889         * doc/posix-functions/renameat.texi: Likewise.
8890         Suggested by Eric Blake.
8891
8892 2010-11-13  Bruno Haible  <bruno@clisp.org>
8893
8894         rename test: Add comments.
8895         * tests/test-rename.h (test_rename): Add structure and comments.
8896
8897 2010-11-13  Eric Blake  <eblake@redhat.com>
8898
8899         maintainer-makefile: cover a few more files
8900         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
8901         scripts generated within C files, for libvirt.
8902
8903 2010-11-13  Bruno Haible  <bruno@clisp.org>
8904
8905         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
8906         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
8907         character, return the number of bytes that belong together, not always
8908         1.
8909         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8910         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8911         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8912         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
8913         number of bytes of an invalid character.
8914         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
8915         (main): Invoke it.
8916         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
8917         results.
8918         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
8919         malformed byte sequences.
8920         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
8921         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
8922         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
8923         Reported by Ben Pfaff and Paolo Bonzini.
8924
8925 2010-11-13  Bruno Haible  <bruno@clisp.org>
8926
8927         openat: Work around glibc bug with fchownat() and empty file names.
8928         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
8929         (gl_FUNC_FCHOWNAT): Invoke it.
8930         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
8931         * doc/posix-functions/fchownat.texi: Document the glibc bug.
8932         Reported by Gary V. Vaughan <gary@gnu.org>.
8933
8934 2010-11-13  Bruno Haible  <bruno@clisp.org>
8935
8936         openat: Ensure autoconf macro ordering.
8937         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
8938         gl_USE_SYSTEM_EXTENSIONS.
8939         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
8940
8941 2010-11-13  Bruno Haible  <bruno@clisp.org>
8942
8943         Update comments.
8944         * lib/unistr/u8-check.c: Update file name in comments.
8945         * lib/unistr/u8-mblen.c: Likewise.
8946         * lib/unistr/u8-prev.c: Likewise.
8947         * lib/unistr/u8-strmblen.c: Likewise.
8948         * lib/unistr/u8-strmbtouc.c: Likewise.
8949
8950 2010-11-13  Jim Meyering  <meyering@redhat.com>
8951
8952         tests: avoid test failure on Solaris 10 due to lack of PATH export
8953         * tests/test-update-copyright.sh: Don't forget to export PATH.
8954
8955         init.sh: ensure that IFS is defined, just in case...
8956         * tests/init.sh (setup_): Ensure that IFS is defined,
8957         so that saving and restoring it works as expected.  This
8958         appears to be useful at least for an old version of dash
8959         from a long time ago (RH 6).  See here for details:
8960         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
8961
8962         maint.mk: tighten "test a == b" check
8963         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
8964         test to files that contain something like #!/bin/sh.
8965         Without this, coreutils would get two false positives in
8966         the comments of C source files.
8967
8968 2010-11-12  Eric Blake  <eblake@redhat.com>
8969
8970         bootstrap: fix typo in previous attempt
8971         * build-aux/bootstrap (buildreq): Correct the grouping.
8972         Reported by Paul Eggert.
8973
8974         maintainer-makefile: prohibit test x == x
8975         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
8976         Based on a report by Matthias Bolte.
8977
8978         bootstrap: allow FreeBSD gzip
8979         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
8980         which has no '.' and goes to stderr.
8981         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
8982         Reported by Matthias Bolte.
8983
8984         maintainer-makefile: check for i18n setup
8985         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
8986         will likely work.
8987
8988 2010-11-12  Bruno Haible  <bruno@clisp.org>
8989
8990         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
8991         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
8992         * lib/nanosleep.c (nanosleep): Likewise.
8993
8994 2010-11-11  Bruno Haible  <bruno@clisp.org>
8995
8996         fcntl-h: Fix for use of C++ on glibc systems.
8997         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8998         also on glibc systems in C++ mode.
8999         Reported by Gary V. Vaughan <gary@gnu.org>.
9000
9001 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9002
9003         mknod: avoid false failure with dash
9004         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
9005
9006 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9007
9008         unlink: Fix "is it should" typo in diagnostic.
9009         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
9010         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
9011
9012 2010-11-11  Bruno Haible  <bruno@clisp.org>
9013
9014         Tests for module 'strerror_r-posix'.
9015         * modules/strerror_r-posix-tests: New file.
9016         * tests/test-strerror_r.c: New file.
9017         * tests/test-string-c++.cc: Check the signature of strerror_r.
9018
9019         New module 'strerror_r-posix'.
9020         * lib/string.in.h (strerror_r): New declaration.
9021         * lib/strerror_r.c: New file.
9022         * m4/strerror_r.m4: New file.
9023         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
9024         of strerror_r.
9025         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
9026         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9027         * modules/strerror_r-posix: New file.
9028         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
9029         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9030         * doc/posix-functions/strerror_r.texi: Mention the new module and the
9031         portability problems.
9032
9033 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
9034
9035         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
9036         line is also considered for output. Quoted function name in shell
9037         command, so temporary files for functions like MyClass::operator()
9038         are removed correctly without errors.
9039
9040 2010-11-09  Bruno Haible  <bruno@clisp.org>
9041
9042         * doc/posix-functions/strerror.texi: List more failing platforms.
9043
9044         * doc/posix-functions/strerror.texi: Add a comment.
9045
9046 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9047
9048         fdopendir: fix bug on MacOS X when low on file descriptors
9049
9050         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
9051         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
9052         All callers changed.
9053         (fdopendir): Invoke save_cwd at the top level, not after using
9054         multiple dup() calls to use up file descriptors.  Then retry
9055         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
9056         less than the maximum number of open file descriptors, because
9057         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
9058         on Mac OS X 10.6.4 for tar 1.24
9059         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
9060         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
9061         and for tar 1.25
9062         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
9063
9064 2010-11-07  Bruno Haible  <bruno@clisp.org>
9065
9066         vasnprintf: Support I flag on glibc systems.
9067         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
9068         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
9069         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
9070         snprintf function.
9071         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
9072         glibc systems.
9073         * tests/test-vasnprintf-posix3.c: New file.
9074         * modules/vasnprintf-posix-tests (Files): Add it.
9075         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
9076
9077 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9078
9079         [html] Fix copy/paste bug: Use unique name for compiler warnings.
9080         * MODULES.html.sh: For compiler warnings, use name
9081         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
9082
9083 2010-11-05  Eric Blake  <eblake@redhat.com>
9084
9085         ceil, floor: avoid spurious failure with icc
9086         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
9087         [denormals-as-zero] when optimizing without -mieee-fp option.
9088         * tests/test-floorf2.c (floorf_reference): Likewise.
9089         * tests/test-ceilf1.c (dummy): New function.
9090         (main): Use it to outsmart icc's optimization.
9091         * tests/test-floorf1.c (dummy, main): Likewise.
9092
9093         tests: require working signbit
9094         * modules/ceilf-tests (Depends-on): Add signbit.
9095         * modules/ceill-tests (Depends-on): Likewise.
9096         * modules/floorf-tests (Depends-on): Likewise.
9097         * modules/floorl-tests (Depends-on): Likewise.
9098         * modules/round-tests (Depends-on): Likewise.
9099         * modules/roundf-tests (Depends-on): Likewise.
9100         * modules/roundl-tests (Depends-on): Likewise.
9101         * modules/trunc-tests (Depends-on): Likewise.
9102         * modules/truncf-tests (Depends-on): Likewise.
9103         * modules/truncl-tests (Depends-on): Likewise.
9104
9105         strtod: work around icc bug
9106         * lib/strtod.c (minus_zero): Define to working value.
9107         (strtod): Use it to avoid icc bug.
9108
9109         copysign: enhance tests
9110         * modules/copysign-tests (Files): Add minus-zero.h.
9111         * tests/test-copysign.c (main): Also test zeros.
9112
9113 2010-11-04  Eric Blake  <eblake@redhat.com>
9114
9115         ceil, floor, round, trunc: enhance tests of -0
9116         * tests/test-ceilf1.c (main): Ensure correct sign of result.
9117         * tests/test-ceill.c (main): Likewise.
9118         * tests/test-floorf1.c (main): Likewise.
9119         * tests/test-floorl.c (main): Likewise.
9120         * tests/test-round1.c (main): Likewise.
9121         * tests/test-roundf1.c (main): Likewise.
9122         * tests/test-roundl.c (main): Likewise.
9123         * tests/test-trunc1.c (main): Likewise.
9124         * tests/test-truncf1.c (main): Likewise.
9125         * tests/test-truncl.c (main): Likewise.
9126
9127 2010-11-04  Eric Blake  <eblake@redhat.com>
9128
9129         frexp, tests: work around ICC bug with -zero
9130         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
9131         works with more compilers.
9132         * tests/minus-zero.h: New file.
9133         * modules/ceilf-tests (Files): Include it.
9134         * modules/ceill-tests (Files): Likewise.
9135         * modules/floorf-tests (Files): Likewise.
9136         * modules/floorl-tests (Files): Likewise.
9137         * modules/frexp-nolibm-tests (Files): Likewise.
9138         * modules/frexp-tests (Files): Likewise.
9139         * modules/frexpl-nolibm-tests (Files): Likewise.
9140         * modules/frexpl-tests (Files): Likewise.
9141         * modules/isnan-tests (Files): Likewise.
9142         * modules/isnand-nolibm-tests (Files): Likewise.
9143         * modules/isnand-tests (Files): Likewise.
9144         * modules/isnanf-nolibm-tests (Files): Likewise.
9145         * modules/isnanf-tests (Files): Likewise.
9146         * modules/isnanl-nolibm-tests (Files): Likewise.
9147         * modules/isnanl-tests (Files): Likewise.
9148         * modules/round-tests (Files): Likewise.
9149         * modules/roundf-tests (Files): Likewise.
9150         * modules/roundl-tests (Files): Likewise.
9151         * modules/ldexpl-tests (Files): Likewise.
9152         * modules/signbit-tests (Files): Likewise.
9153         * modules/snprintf-posix-tests (Files): Likewise.
9154         * modules/sprintf-posix-tests (Files): Likewise.
9155         * modules/strtod-tests (Files): Likewise.
9156         * modules/trunc-tests (Files): Likewise.
9157         * modules/truncf-tests (Files): Likewise.
9158         * modules/truncl-tests (Files): Likewise.
9159         * modules/vsnprintf-posix-tests (Files): Likewise.
9160         * modules/vsprintf-posix-tests (Files): Likewise.
9161         * modules/vasnprintf-posix-tests (Files): Likewise.
9162         * modules/vasprintf-posix-tests (Files): Likewise.
9163         * tests/test-ceilf1.c (main): Use it.
9164         * tests/test-ceill.c (main): Likewise.
9165         * tests/test-floorf1.c (main): Likewise.
9166         * tests/test-floorl.c (main): Likewise.
9167         * tests/test-frexp.c (main): Likewise.
9168         * tests/test-frexpl.c (main): Likewise.
9169         * tests/test-isnan.c (main): Likewise.
9170         * tests/test-isnand.h (main): Likewise.
9171         * tests/test-isnanf.h (main): Likewise.
9172         * tests/test-isnanl.h (main): Likewise.
9173         * tests/test-ldexpl.c (main): Likewise.
9174         * tests/test-round.c (main): Likewise.
9175         * tests/test-roundf.c (main): Likewise.
9176         * tests/test-roundl.c (main): Likewise.
9177         * tests/test-signbit.c (test_signbitf, test_signbitd)
9178         (test_signbitl): Likewise.
9179         * tests/test-snprintf-posix.h (test_function): Likewise.
9180         * tests/test-sprintf-posix.h (test_function): Likewise.
9181         * tests/test-strtod.c (main): Likewise.
9182         * tests/test-trunc1.c (main): Likewise.
9183         * tests/test-truncf1.c (main): Likewise.
9184         * tests/test-truncl.c (main): Likewise.
9185
9186         isnanl: work around icc bug
9187         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
9188
9189 2010-11-03  Eric Blake  <eblake@redhat.com>
9190
9191         tests: fix compiler warnings
9192         * tests/test-getopt.h (test_getopt): Fix condition.
9193         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9194         * tests/test-pipe2.c (main): Likewise.
9195         * tests/test-quotearg-simple.c (main): Avoid icc warning.
9196
9197         utimens: fix broken m4 test
9198         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
9199
9200 2010-10-28  Bruno Haible  <bruno@clisp.org>
9201
9202         posix_spawn*, getdtablesize: Relax license.
9203         * modules/posix_spawn (License): Change to LGPLv2+.
9204         * modules/posix_spawnp (License): Likewise.
9205         * modules/posix_spawn-internal (License): Likewise.
9206         * modules/posix_spawnattr_init (License): Likewise.
9207         * modules/posix_spawnattr_getflags (License): Likewise.
9208         * modules/posix_spawnattr_setflags (License): Likewise.
9209         * modules/posix_spawnattr_getpgroup (License): Likewise.
9210         * modules/posix_spawnattr_setpgroup (License): Likewise.
9211         * modules/posix_spawnattr_getschedparam (License): Likewise.
9212         * modules/posix_spawnattr_setschedparam (License): Likewise.
9213         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
9214         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
9215         * modules/posix_spawnattr_getsigdefault (License): Likewise.
9216         * modules/posix_spawnattr_setsigdefault (License): Likewise.
9217         * modules/posix_spawnattr_getsigmask (License): Likewise.
9218         * modules/posix_spawnattr_setsigmask (License): Likewise.
9219         * modules/posix_spawnattr_destroy (License): Likewise.
9220         * modules/posix_spawn_file_actions_init (License): Likewise.
9221         * modules/posix_spawn_file_actions_addclose (License): Likewise.
9222         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
9223         * modules/posix_spawn_file_actions_addopen (License): Likewise.
9224         * modules/posix_spawn_file_actions_destroy (License): Likewise.
9225         * modules/getdtablesize (License): Likewise.
9226         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
9227
9228 2010-10-26  Bruno Haible  <bruno@clisp.org>
9229
9230         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
9231         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
9232         Cygwin and mingw.
9233         Suggested by Eric Blake.
9234
9235 2010-10-26  Bruno Haible  <bruno@clisp.org>
9236
9237         stdio: Work around compilation error due to renameat() on Solaris 10.
9238         * lib/stdio.in.h: Include <unistd.h> on Solaris.
9239         * lib/renameat.c: Don't include <unistd.h> here.
9240         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
9241         Reported by Paul Eggert and Eric Blake.
9242
9243 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9244
9245         renameat: port to Solaris 10, which declares renameat in unistd.h
9246
9247         * lib/renameat.c: Include unistd.h before stdio.h, because
9248         Solaris 10 declares renameat in unistd.h.  Problem encountered
9249         when building GNU tar 1.24 on Solaris 10.
9250
9251 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9252
9253         fdopendir: fix C89 compilation
9254         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
9255         compilers.
9256
9257 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9258
9259         inttostr: simplify by removing unnecessary redundancy
9260         * lib/anytostr.c: Don't include verify.h.
9261         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
9262         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
9263         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
9264         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
9265         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
9266         Likewise.
9267         * modules/inttostr (Depends-on): Remove 'verify'.
9268
9269 2010-10-23  Bruno Haible  <bruno@clisp.org>
9270
9271         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
9272         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
9273         Reported by Eric Blake.
9274
9275 2010-10-23  Bruno Haible  <bruno@clisp.org>
9276
9277         Tests: Fix LOCALE_JA on MirBSD 10.
9278         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
9279         to an UTF-8 locale.
9280         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
9281         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9282         Reported by Eric Blake.
9283
9284 2010-10-21  Bruno Haible  <bruno@clisp.org>
9285
9286         nl_langinfo test: Avoid test failure on NetBSD 5.
9287         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
9288         Reported by Eric Blake.
9289
9290 2010-10-21  Eric Blake  <eblake@redhat.com>
9291
9292         c-stack: work around libsigsegv 2.8 bug
9293         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
9294         overflow on at least PowerPC64.
9295
9296 2010-10-17  Bruno Haible  <bruno@clisp.org>
9297
9298         userspec: Drop redundant file.
9299         * modules/userspec (Files): Remove lib/inttostr.h.
9300
9301 2010-10-17  Bruno Haible  <bruno@clisp.org>
9302
9303         nl_langinfo tests: Silence some warnings.
9304         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
9305         Reported by Jim Meyering.
9306
9307 2010-10-17  Bruno Haible  <bruno@clisp.org>
9308
9309         Make use of GCC's attribute __alloc_size__.
9310         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
9311         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
9312         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
9313         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
9314         __alloc_size__.
9315         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9316         Suggested by Jim Meyering.
9317
9318 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
9319
9320         bootstrap: anchor .gitignore entries.
9321         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
9322         with...
9323         (insert_vc_ignore): ... this new function, which prepends `/' to
9324         all .gitignore entries before passing them to
9325         insert_sorted_if_absent.
9326
9327 2010-10-16  Bruno Haible  <bruno@clisp.org>
9328
9329         nextafter: Fix configure check.
9330         * modules/nextafter (configure.ac): Correct expected prototype.
9331
9332 2010-10-16  Bruno Haible  <bruno@clisp.org>
9333
9334         termios: Update documentation.
9335         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
9336
9337 2010-10-16  Bruno Haible  <bruno@clisp.org>
9338
9339         tests: Make them compile with TinyCC.
9340         * tests/test-strstr.c (main): Remove parentheses around array
9341         initializer.
9342
9343 2010-10-15  Eric Blake  <eblake@redhat.com>
9344
9345         ignore-value: make header idempotent
9346         * lib/ignore-value.h: Add double-inclusion guards.
9347         Reported by Stefan Berger.
9348
9349 2010-10-15  Jim Meyering  <meyering@redhat.com>
9350
9351         GNUmakefile: handle "stable" target, not "major"
9352         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
9353         lists in maint.mk and announce-gen.  Without this, "make stable"
9354         would fail to ensure that $(VERSION) is up to date.
9355
9356 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
9357
9358         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
9359         & co.
9360
9361 2010-10-14  Bruno Haible  <bruno@clisp.org>
9362
9363         vasnprintf: Don't set errno to 0.
9364         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
9365         block that sets it to 0.
9366         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
9367
9368 2010-10-14  Bruno Haible  <bruno@clisp.org>
9369
9370         socketlib: Fix.
9371         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
9372         gl_PREREQ_SYS_H_WINSOCK2.
9373         Reported by Ian Beckwith <ianb@erislabs.net>.
9374
9375 2010-10-13  Jim Meyering  <meyering@redhat.com>
9376
9377         test-select-stdin.c: avoid warn_unused_result warnings
9378         * tests/test-select-stdin.c: Include "macros.h".
9379         ASSERT that read and fflush succeed.
9380
9381 2010-10-13  Jim Meyering  <meyering@redhat.com>
9382
9383         git-version-gen: do require git-VC'd files in cwd
9384         * build-aux/git-version-gen: Reject a git version string
9385         if there are no commits associated with the current directory.
9386         This avoids an unlikely false-positive (unrelated dir whose parent
9387         repository also contains a tag matching v*), as pointed out
9388         by Giuseppe Scrivano in
9389         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
9390
9391 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9392
9393         argv-iter: omit nonconforming declaration
9394         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
9395         enum arg_iter_err declaration, which doesn't conform to C99.
9396         Solaris 10 cc warns about this.
9397
9398 2010-10-13  Eric Blake  <eblake@redhat.com>
9399
9400         termios: fix compilation on mingw
9401         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
9402         (gl_TERMIOS_H): Adjust it on mingw.
9403         * modules/termios (Makefile.am): Substitute new key.
9404         * lib/termios.in.h (includes): Make include_next conditional.
9405         * doc/posix-headers/termios.texi (termios.h): Update
9406         documentation.
9407         Reported by Daniel P. Berrange.
9408
9409 2010-10-13  Jim Meyering  <meyering@redhat.com>
9410
9411         git-version-gen: don't require that .git/ be in the current dir
9412         * build-aux/git-version-gen: Adjust this script so that it works
9413         when run from any working directory beneath the top-level .git/-
9414         containing directory.  Inspired by a patch from Giuseppe Scrivano,
9415         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
9416
9417         test-select: avoid warn_unused_result warnings
9418         * tests/test-select.c: Include "macros.h".
9419         ASSERT that each call to read, write, and pipe succeeds.
9420         While not technically required, also check each "close".
9421         * modules/select-tests (Files): Add tests/macros.h.
9422
9423         test-symlinkat: remove declaration of unused local
9424         * tests/test-symlinkat.c (main): Remove unused local, "buf".
9425
9426         test-inttostr: avoid shadowing warnings
9427         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
9428         and use malloc rather than the stack for the same reason as
9429         mentioned in the comment justifying the other allocation.
9430
9431 2010-10-11  Bruno Haible  <bruno@clisp.org>
9432
9433         stdlib: Allow multiple gnulib generated replacements to coexist.
9434         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
9435         Reported by Sam Steingold <sds@gnu.org>.
9436
9437 2010-10-11  Jim Meyering  <meyering@redhat.com>
9438
9439         fix a documentation typo
9440         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
9441
9442 2010-10-11  Eric Blake  <eblake@redhat.com>
9443
9444         futimens: work around Solaris 11 bug
9445         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
9446         * tests/test-futimens.h (test_futimens): Enhance, rather than
9447         weaken test.
9448         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9449
9450 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9451
9452         Indentation.
9453         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
9454         higher-level operators more to the left.
9455
9456 2010-10-11  Jim Meyering  <meyering@redhat.com>
9457
9458         test-futimens: avoid unwarranted test failure on Solaris 5.11
9459         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
9460         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
9461         because it tries to dereference the NULL name argument.
9462
9463 2010-10-11  Bruno Haible  <bruno@clisp.org>
9464
9465         Indentation.
9466         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
9467         indentation.
9468
9469 2010-10-11  Jim Meyering  <meyering@redhat.com>
9470
9471         spawn.in.h: make indentation consistent with parentheses
9472         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
9473         Make indentation consistent with parentheses.
9474
9475 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
9476
9477         Fix mismatched parens in previous commit
9478         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
9479         parens.
9480
9481 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
9482
9483         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
9484
9485         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
9486         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
9487         * lib/malloca.c: Include "verify.h".
9488         (verify1): Remove, replacing with a verify call.
9489         * lib/relocwrapper.c (verify1): Likewise.
9490         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
9491         Likewise.
9492         * modules/malloca (Depends-on): Add 'verify'.
9493         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
9494         * modules/vasnprintf (Depends-on): Add 'verify'.
9495         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9496         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9497         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9498         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9499         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9500         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9501         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9502
9503         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
9504
9505         Formerly the style was sometimes 2*X - 1, because the C standard
9506         was wrongly thought to disallow ?: in integral constant expressions.
9507         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
9508         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
9509         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9510         * lib/stdint.in.h (_verify_intmax_size): Likewise.
9511         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
9512         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
9513         verify that time_t cannot be floating.
9514
9515 2010-10-08  Eric Blake  <eblake@redhat.com>
9516
9517         time: enforce recent POSIX ruling that time_t is integral
9518         * lib/time.in.h (__time_t_must_be_integral): Detect any
9519         problematic systems, allowing the rest of gnulib to assume POSIX.
9520
9521 2010-10-08  Jim Meyering  <meyering@redhat.com>
9522
9523         fdopendir: fix a bug on systems lacking openat and /proc support
9524         OpenBSD 4.7 is one such system.  The most noticeable effect was
9525         failure of any application making nontrivial use of fts: rm, du,
9526         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
9527           ./rm: traversal failed: `a': Bad file descriptor
9528         Debugging that, you see that even though FD 6 was closed just
9529         prior to the opendir call in fd_clone_opendir, its resulting
9530         dir->dd_fd was 8, rather than the expected value of 6:
9531
9532         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
9533         93                close (fd);
9534         (gdb) n
9535         94                dir = fd_clone_opendir (dupfd);
9536         (gdb) n
9537         95                saved_errno = errno;
9538         (gdb) p dir->dd_fd
9539         $11 = 8
9540
9541         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
9542         The problem is that on OpenBSD, fd_clone_opendir has to resort
9543         to using the old-style save/restore CWD mechanism, due to its
9544         lack of openat/proc support, and *that* would steal the FD (6)
9545         that opendir was supposed to use.
9546
9547         The fix is to squirrel away the desired FD so that save_cwd uses a
9548         different one, and then free the dest FD right before calling opendir.
9549         That guarantees opendir will use the required file descriptor.
9550
9551         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
9552
9553 2010-10-08  Bruno Haible  <bruno@clisp.org>
9554
9555         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
9556         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
9557
9558 2010-10-08  Bruno Haible  <bruno@clisp.org>
9559
9560         nanosleep: Make replacement POSIX compliant.
9561         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
9562         is out of range.
9563         Reported by Jim Meyering.
9564
9565 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9566
9567         bootstrap: add hook for altering gnulib.mk, for Bison
9568         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
9569         the Bison bootstrapping process can rewrite file names and variables
9570         in this file before later parts of 'bootstrap' use the file.
9571         Bison wants to include lib/gnulib.mk from the top-level makefile,
9572         so it needs the file names in this file to be relative to the top
9573         level, not relative to lib; plus it needs variable names to be
9574         rewritten.
9575         (slurp): Use the new function.
9576
9577         bootstrap: reformat for readability
9578         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
9579
9580 2010-10-08  Eric Blake  <eblake@redhat.com>
9581
9582         docs: update cygwin progress
9583         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
9584         1.7.7.
9585         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
9586         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
9587         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
9588         * doc/posix-functions/carg.texi (carg): Likewise.
9589         * doc/posix-functions/cargf.texi (cargf): Likewise.
9590         * doc/posix-functions/casin.texi (casin): Likewise.
9591         * doc/posix-functions/casinf.texi (casinf): Likewise.
9592         * doc/posix-functions/casinh.texi (casinh): Likewise.
9593         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
9594         * doc/posix-functions/catan.texi (catan): Likewise.
9595         * doc/posix-functions/catanf.texi (catanf): Likewise.
9596         * doc/posix-functions/catanh.texi (catanh): Likewise.
9597         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
9598         * doc/posix-functions/ccos.texi (ccos): Likewise.
9599         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
9600         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
9601         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
9602         * doc/posix-functions/cexp.texi (cexp): Likewise.
9603         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
9604         * doc/posix-functions/cimag.texi (cimag): Likewise.
9605         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
9606         * doc/posix-functions/clog.texi (clog): Likewise.
9607         * doc/posix-functions/clogf.texi (clogf): Likewise.
9608         * doc/posix-functions/conj.texi (conj): Likewise.
9609         * doc/posix-functions/conjf.texi (conjf): Likewise.
9610         * doc/posix-functions/cpow.texi (cpow): Likewise.
9611         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
9612         * doc/posix-functions/cproj.texi (cproj): Likewise.
9613         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
9614         * doc/posix-functions/creal.texi (creal): Likewise.
9615         * doc/posix-functions/crealf.texi (crealf): Likewise.
9616         * doc/posix-functions/csin.texi (csin): Likewise.
9617         * doc/posix-functions/csinf.texi (csinf): Likewise.
9618         * doc/posix-functions/csinh.texi (csinh): Likewise.
9619         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
9620         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
9621         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
9622         * doc/posix-functions/ctan.texi (ctan): Likewise.
9623         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
9624         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
9625         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
9626         * doc/posix-headers/complex.texi (complex.h): Likewise.
9627
9628 2010-10-07  Jim Meyering  <meyering@redhat.com>
9629
9630         parse-datetime: avoid compilation failure on OpenBSD 4.7
9631         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
9632         This works around a compilation failure on OpenBSD 4.7:
9633         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
9634
9635 2010-10-07  Eric Blake  <eblake@redhat.com>
9636
9637         docs: update cygwin progress
9638         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
9639         1.7.6.
9640         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9641         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
9642         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
9643         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
9644         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
9645         Likewise.
9646         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
9647         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
9648         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
9649         Likewise.
9650         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
9651         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
9652         Likewise.
9653         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
9654         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
9655         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
9656         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
9657         Likewise.
9658         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
9659         Likewise.
9660         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
9661
9662         docs: update parse-datetime history
9663         * doc/parse-datetime.texi (Authors of parse_datetime): Better
9664         documentation of this function's history and alternatives.
9665
9666         cygwin: use more robust version check
9667         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
9668         exclude an eventual cygwin 1.9.1.
9669         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9670         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9671         (gl_FUNC_STRCASESTR): Likewise.
9672         Reported by Bruno Haible.
9673
9674 2010-10-06  Bruno Haible  <bruno@clisp.org>
9675
9676         string, sys_select: Avoid #including large headers unless necessary.
9677         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
9678         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
9679         OSF/1, BeOS, Haiku.
9680         Reported by Jim Meyering.
9681
9682 2010-10-05  Eric Blake  <eblake@redhat.com>
9683
9684         memmem, strstr, strcasestr: fix bug with long periodic needle
9685         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
9686         periodic needle having false positive.
9687         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
9688         and cygwin 1.7.7.
9689         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
9690         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9691         (gl_FUNC_STRCASESTR): Likewise.
9692         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9693         * tests/test-memmem.c (main): Expose the bug.
9694         * tests/test-strcasestr.c (main): Likewise.
9695         * tests/test-strstr.c (main): Likewise.
9696         * tests/test-c-strcasestr.c (main): Likewise.
9697         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
9698         * doc/posix-functions/strstr.texi (strstr): Likewise.
9699         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9700         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
9701
9702 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9703
9704         parse-datetime: do some more renaming
9705         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
9706         parse_datetime, not get_date.  Mention the renaming.
9707         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
9708         in comments.
9709         * m4/bison.m4: Likewise.
9710
9711 2010-10-05  Eric Blake  <eblake@redhat.com>
9712
9713         parse-datetime: better name than get_date
9714         * NEWS: Reword the deprecation notice.
9715         * modules/get_date: Rename to modules/parse-datetime.
9716         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
9717         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
9718         * lib/get_date.y: Rename to lib/parse-datetime.y.
9719         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
9720         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
9721         * doc/getdate.texi: Provide fallback wrapper.
9722         * lib/getdate.h: Move guts, and wrap...
9723         * lib/parse-datetime.h: ...new file.
9724         * lib/parse-datetime.y (get_date): Rename...
9725         (parse_datetime): ...to this.
9726         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
9727         (gl_PARSE_DATETIME): ...to this.
9728         * doc/posix-functions/getdate.texi (get_date): Provide fallback
9729         documentation.
9730         * modules/getdate (Files): Provide fallback docs and header.
9731         (Notice, Depends-on): Update references.
9732         * tests/test-parse-datetime.c: Likewise.
9733         * DEPENDENCIES: Likewise.
9734         * MODULES.html.sh (Date and time <time.h>): Likewise.
9735         * doc/parse-datetime.texi (Date input formats)
9736         (Authors of parse_datetime): Likewise.
9737         * modules/parse-datetime (Files, configure.ac, Makefile.am)
9738         (Include): Likewise.
9739         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
9740         * gnulib-tool: Likewise.
9741         * m4/bison.m4 (gl_BISON): Likewise.
9742         Suggested by Bruno Haible.
9743
9744 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9745
9746         more ports to Solaris tr, which needs [] around ranges
9747         * gnulib-tool: Solaris tr needs [] around ranges.
9748         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9749         * tests/test-pipe-filter-gi1.c (main): Likewise.
9750         * tests/test-pipe-filter-ii1.c (main): Likewise.
9751
9752 2010-10-05  Eric Blake  <eblake@redhat.com>
9753
9754         bootstrap: fix Solaris regression
9755         * build-aux/bootstrap (check_versions): Solaris tr still needs []
9756         around ranges.
9757         Reported by Pádraig Brady.
9758
9759         bootstrap: work with pkg-config
9760         * build-aux/bootstrap (check_versions): Also transliterate - in
9761         prerequisite name.
9762         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
9763         prerequisites that were already found, to avoid confusion.
9764         Reported by Justin Clift.
9765
9766         faccessat: remove unused wrappers
9767         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
9768         presence of these wrappers dragged in -lgen on Solaris.
9769         Reported by Clemens Brogi; fix suggested by Paul Eggert.
9770
9771 2010-10-05  Jim Meyering  <meyering@redhat.com>
9772
9773         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
9774         * Makefile (sc_pragma_columns): New syntax-check rule.
9775
9776 2010-10-04  Bruno Haible  <bruno@clisp.org>
9777
9778         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
9779         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
9780         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
9781         Reported by Bruce Korb and Eric Blake.
9782
9783 2010-10-04  Bruno Haible  <bruno@clisp.org>
9784
9785         threadlib: Make option --with-libpth-prefix work.
9786         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
9787         use $LIBPTH, not just -lpth.
9788
9789 2010-10-04  Bruno Haible  <bruno@clisp.org>
9790
9791         Avoid line length limitation from HP NonStop system header files.
9792         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
9793         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
9794         * lib/ctype.in.h: Likewise.
9795         * lib/dirent.in.h: Likewise.
9796         * lib/errno.in.h: Likewise.
9797         * lib/fcntl.in.h: Likewise.
9798         * lib/float.in.h: Likewise.
9799         * lib/getopt.in.h: Likewise.
9800         * lib/iconv.in.h: Likewise.
9801         * lib/inttypes.in.h: Likewise.
9802         * lib/langinfo.in.h: Likewise.
9803         * lib/locale.in.h: Likewise.
9804         * lib/math.in.h: Likewise.
9805         * lib/netdb.in.h: Likewise.
9806         * lib/netinet_in.in.h: Likewise.
9807         * lib/poll.in.h: Likewise.
9808         * lib/pthread.in.h: Likewise.
9809         * lib/pty.in.h: Likewise.
9810         * lib/sched.in.h: Likewise.
9811         * lib/se-selinux.in.h: Likewise.
9812         * lib/search.in.h: Likewise.
9813         * lib/signal.in.h: Likewise.
9814         * lib/spawn.in.h: Likewise.
9815         * lib/stdarg.in.h: Likewise.
9816         * lib/stddef.in.h: Likewise.
9817         * lib/stdint.in.h: Likewise.
9818         * lib/stdio.in.h: Likewise.
9819         * lib/stdlib.in.h: Likewise.
9820         * lib/string.in.h: Likewise.
9821         * lib/strings.in.h: Likewise.
9822         * lib/sys_file.in.h: Likewise.
9823         * lib/sys_ioctl.in.h: Likewise.
9824         * lib/sys_select.in.h: Likewise.
9825         * lib/sys_socket.in.h: Likewise.
9826         * lib/sys_stat.in.h: Likewise.
9827         * lib/sys_time.in.h: Likewise.
9828         * lib/sys_times.in.h: Likewise.
9829         * lib/sys_utsname.in.h: Likewise.
9830         * lib/sys_wait.in.h: Likewise.
9831         * lib/sysexits.in.h: Likewise.
9832         * lib/termios.in.h: Likewise.
9833         * lib/time.in.h: Likewise.
9834         * lib/unistd.in.h: Likewise.
9835         * lib/wchar.in.h: Likewise.
9836         * lib/wctype.in.h: Likewise.
9837         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
9838         * modules/ctype (Makefile.am): Likewise.
9839         * modules/dirent (Makefile.am): Likewise.
9840         * modules/errno (Makefile.am): Likewise.
9841         * modules/fcntl-h (Makefile.am): Likewise.
9842         * modules/float (Makefile.am): Likewise.
9843         * modules/getopt-posix (Makefile.am): Likewise.
9844         * modules/iconv-h (Makefile.am): Likewise.
9845         * modules/inttypes (Makefile.am): Likewise.
9846         * modules/langinfo (Makefile.am): Likewise.
9847         * modules/locale (Makefile.am): Likewise.
9848         * modules/math (Makefile.am): Likewise.
9849         * modules/netdb (Makefile.am): Likewise.
9850         * modules/netinet_in (Makefile.am): Likewise.
9851         * modules/poll-h (Makefile.am): Likewise.
9852         * modules/pthread (Makefile.am): Likewise.
9853         * modules/pty (Makefile.am): Likewise.
9854         * modules/sched (Makefile.am): Likewise.
9855         * modules/search (Makefile.am): Likewise.
9856         * modules/selinux-h (Makefile.am): Likewise.
9857         * modules/signal (Makefile.am): Likewise.
9858         * modules/spawn (Makefile.am): Likewise.
9859         * modules/stdarg (Makefile.am): Likewise.
9860         * modules/stddef (Makefile.am): Likewise.
9861         * modules/stdint (Makefile.am): Likewise.
9862         * modules/stdio (Makefile.am): Likewise.
9863         * modules/stdlib (Makefile.am): Likewise.
9864         * modules/string (Makefile.am): Likewise.
9865         * modules/strings (Makefile.am): Likewise.
9866         * modules/sys_file (Makefile.am): Likewise.
9867         * modules/sys_ioctl (Makefile.am): Likewise.
9868         * modules/sys_select (Makefile.am): Likewise.
9869         * modules/sys_socket (Makefile.am): Likewise.
9870         * modules/sys_stat (Makefile.am): Likewise.
9871         * modules/sys_time (Makefile.am): Likewise.
9872         * modules/sys_times (Makefile.am): Likewise.
9873         * modules/sys_utsname (Makefile.am): Likewise.
9874         * modules/sys_wait (Makefile.am): Likewise.
9875         * modules/sysexits (Makefile.am): Likewise.
9876         * modules/termios (Makefile.am): Likewise.
9877         * modules/time (Makefile.am): Likewise.
9878         * modules/unistd (Makefile.am): Likewise.
9879         * modules/wchar (Makefile.am): Likewise.
9880         * modules/wctype (Makefile.am): Likewise.
9881
9882 2010-10-04  Bruno Haible  <bruno@clisp.org>
9883
9884         read-file tests: Avoid a test failure on NonStop Kernel.
9885         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
9886         a regular file.
9887         Reported by Joachim Schmitz <schmitz@hp.com>.
9888
9889 2010-10-03  Bruno Haible  <bruno@clisp.org>
9890
9891         gnulib-tool: Fixes for --create-testdir with --libtool.
9892         * gnulib-tool (func_get_automake_snippet): Don't augment
9893         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
9894         an executable.
9895         (func_create_testdir): Handle module 'alloca' like func_import.
9896         Reported by Bruce Korb <bruce.korb@gmail.com>.
9897
9898 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
9899
9900         Avoid some lines longer than 80 characters.
9901         * lib/stdint.in.h: Break long comment lines.
9902         * lib/math.in.h: Likewise.
9903         (_GL_NUM_UINT_WORDS): New macro, for readability.
9904         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
9905         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
9906         * lib/stdlib.in.h: Likewise.
9907         * lib/spawn.in.h: Likewise.
9908         * lib/sys_socket.in.h: Update an URL.
9909         * lib/sys_stat.in.h: Break long line.
9910
9911 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
9912
9913         Improve pmccabe2html.
9914         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
9915         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
9916         when the sources change. Remove the line in the HTML about "Used
9917         ranges" (which implied that there might be other unused ranges),
9918         rename "Resume" to "Summary" (easier to understand for more users).
9919         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
9920         styles, and some unnecessary blank lines.
9921
9922 2010-10-03  Bruno Haible  <bruno@clisp.org>
9923             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9924
9925         acl: Add support for ACLs on NonStop Kernel.
9926         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
9927         Check whether the function aclsort() exists.
9928         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
9929         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
9930         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9931         (acl_nontrivial [HAVE_ACLSORT]: New function.
9932         (file_has_acl): Implement for NonStop Kernel.
9933         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9934         (qset_acl): Implement for NonStop Kernel.
9935         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
9936         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9937         (main): Implement for NonStop Kernel.
9938         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
9939         Kernel. Handle this flavor.
9940         * tests/test-set-mode-acl.sh: Likewise.
9941         * tests/test-copy-acl.sh: Likewise.
9942         * tests/test-copy-file.sh: Likewise.
9943
9944 2010-10-03  Bruno Haible  <bruno@clisp.org>
9945
9946         Info about ACLs on NonStop Kernel.
9947         * doc/acl-resources.txt: Add info about NonStop Kernel.
9948         References by Joachim Schmitz <schmitz@hp.com>.
9949
9950 2010-10-02  Bruno Haible  <bruno@clisp.org>
9951
9952         Define missing EDQUOT on NonStop Kernel.
9953         * lib/errno.in.h (EDQUOT): Assign a value if missing.
9954         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
9955         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
9956         missing.
9957         * doc/posix-headers/errno.texi: Mention the NSK bug.
9958         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
9959         Reported by Joachim Schmitz <schmitz@hp.com>.
9960
9961 2010-10-02  Bruno Haible  <bruno@clisp.org>
9962
9963         Update doc for POSIX:2008.
9964         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
9965         Update URL of POSIX specification.
9966
9967 2010-10-02  Bruno Haible  <bruno@clisp.org>
9968
9969         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
9970         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
9971         from gnulib, not from Automake.
9972
9973 2010-10-02  Bruno Haible  <bruno@clisp.org>
9974
9975         New module 'system-posix'.
9976         * modules/system-posix: New file.
9977         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
9978         module is present.
9979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9980         GNULIB_SYSTEM_POSIX.
9981         * modules/stdlib (Depends-on): Remove sys_wait.
9982         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
9983         * doc/posix-functions/system.texi: Mention the new module.
9984         * doc/posix-headers/stdlib.texi: Likewise.
9985         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
9986         define test_sys_wait_macros to a no-op.
9987         Reported by Sam Steingold <sds@gnu.org>.
9988
9989 2010-09-30  Bruno Haible  <bruno@clisp.org>
9990
9991         More renaming from 'getdate' to 'get_date'.
9992         * doc/get_date.texi: Renamed from doc/getdate.texi.
9993         * modules/get_date (Files): Update.
9994         * MODULES.html.sh (Date and time <time.h>): Update.
9995         * DEPENDENCIES: Update.
9996         * gnulib-tool: Update comment.
9997         * m4/bison.m4 (gl_BISON): Likewise.
9998         * m4/get_date.m4 (gl_GET_DATE): Likewise.
9999
10000 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
10001
10002         bootstrap: support ACLOCAL_FLAGS during aclocal
10003         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
10004         can add additional -I dir for third-party .m4 files.
10005
10006 2010-09-30  Eric Blake  <eblake@redhat.com>
10007
10008         bootstrap: use glibtoolize on MacOS
10009         * build-aux/bootstrap (check_versions): Convert libtool into
10010         libtoolize.
10011         (tool search): Move libtool check earlier, and look for
10012         glibtoolize for MacOS.
10013         (gnulib_tool_options): Auto-add --libtool when appropriate.
10014         Reported by Justin Clift.
10015
10016         poll: fix typo that broke test on MacOS
10017         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
10018         Reported by Justin Clift.
10019
10020         getdate: rename to get_date
10021         Note: getdate.h is not renamed, to minimize client impact.
10022         * modules/getdate: Mark obsolete.  Move old contents...
10023         * modules/get_date: ...to new module name.
10024         * modules/getdate-tests: Move...
10025         * modules/get_date-tests: ...here.
10026         * m4/getdate.m4: Move...
10027         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
10028         * lib/getdate.y: Move...
10029         * lib/get_date.y: ...here.
10030         * tests/test-getdate.c: Move...
10031         * tests/test-get_date.c: ...here.
10032         * doc/posix-functions/getdate.texi (getdate): Update name.
10033         * NEWS: Mention the change.
10034
10035 2010-09-29  Bruno Haible  <bruno@clisp.org>
10036
10037         Separate the module 'waitpid' from the module 'sys_wait'.
10038         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
10039         present.
10040         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
10041         gl_MODULE_INDICATOR_FOR_TESTS.
10042         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
10043         * modules/sys_wait (Depends-on): Remove waitpid.
10044         (Makefile.am): Substitute GNULIB_WAITPID.
10045         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
10046         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
10047         signature only if the 'waitpid' module is present.
10048         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
10049         * NEWS: Mention the change.
10050         * modules/grantpt (Depends-on): Add waitpid.
10051         * modules/wait-process (Depends-on): Likewise.
10052
10053 2010-09-29  Bruno Haible  <bruno@clisp.org>
10054
10055         More tests for module 'sys_wait'.
10056         * modules/sys_wait-c++-tests: New file.
10057         * tests/test-sys_wait-c++.cc: New file.
10058         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
10059         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10060
10061 2010-09-29  Bruno Haible  <bruno@clisp.org>
10062
10063         New module 'waitpid'.
10064         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
10065         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
10066         Don't include <process.h>.
10067         (waitpid): Declare only, using modern idiom.
10068         * m4/waitpid.m4: New file.
10069         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
10070         * modules/waitpid: New file.
10071         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
10072         (Makefile.am): Update.
10073         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10074
10075 2010-09-28  Bruno Haible  <bruno@clisp.org>
10076
10077         poll: Assume ANSI C.
10078         * lib/poll.c (poll): Use an ANSI C declaration.
10079
10080 2010-09-28  Bruno Haible  <bruno@clisp.org>
10081
10082         poll-h: Create poll.h on all platforms.
10083         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
10084         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
10085         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
10086         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
10087         (gl_REPLACE_POLL_H): Don't set POLL_H.
10088         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
10089         * modules/poll-h (Depends-on): Add include_next.
10090         (Makefile.am): Create poll.h unconditionally. Substitute also
10091         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
10092
10093 2010-09-28  Bruno Haible  <bruno@clisp.org>
10094
10095         Tests for module 'poll-h'.
10096         * modules/poll-h-c++-tests: New file.
10097         * tests/test-poll-h-c++.cc: New file.
10098
10099         Tests for module 'poll-h'.
10100         * modules/poll-h-tests: New file.
10101         * tests/test-poll-h.c: New file.
10102
10103 2010-09-28  Bruno Haible  <bruno@clisp.org>
10104
10105         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
10106         * modules/poll-h (Depends-on): Add 'extensions'.
10107
10108 2010-09-28  Bruno Haible  <bruno@clisp.org>
10109
10110         New module 'poll-h'.
10111         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
10112         (poll): Use modern idiom.
10113         * modules/poll-h: New file.
10114         * modules/poll (Files): Remove lib/poll.in.h.
10115         (Depends-on): Add poll-h.
10116         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
10117         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
10118         * m4/poll_h.m4: New file.
10119         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
10120         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
10121         and invoke gl_REPLACE_POLL_H.
10122         * lib/poll.c: Use common idiom.
10123         * tests/test-poll.c: Likewise.
10124         * doc/posix-headers/poll.texi: Mention the poll-h module.
10125         Suggested by Eric Blake.
10126
10127 2010-09-26  Bruno Haible  <bruno@clisp.org>
10128
10129         sys_wait: Implement WSTOPSIG.
10130         * lib/sys_wait.in.h (WSTOPSIG): New macro.
10131         Reported by Simon Josefsson.
10132
10133 2010-09-26  Simon Josefsson  <simon@josefsson.org>
10134
10135         stdlib, sys_wait: Avoid compilation error on mingw.
10136         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
10137
10138 2010-09-26  Bruno Haible  <bruno@clisp.org>
10139
10140         stdlib tests: Avoid code duplication.
10141         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
10142         * modules/sys_wait-tests (Files): Likewise.
10143         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
10144         * tests/test-stdlib.c: Include test-sys_wait.h.
10145         (main): Invoke test_sys_wait_macros.
10146         * tests/test-sys_wait.c: Include test-sys_wait.h.
10147         (main): Invoke test_sys_wait_macros.
10148
10149 2010-09-25  Simon Josefsson  <simon@josefsson.org>
10150
10151         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
10152         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
10153         sure Windows sockets are working before calling getaddrinfo.
10154         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
10155         * doc/gnulib.texi (Windows sockets): Fix typo.
10156
10157 2010-09-25  Bruno Haible  <bruno@clisp.org>
10158
10159         Tests for module 'regex-quote'.
10160         * modules/regex-quote-tests: New file.
10161         * tests/test-regex-quote.c: New file.
10162
10163         New module 'regex-quote'.
10164         * lib/regex-quote.h: New file.
10165         * lib/regex-quote.c: New file.
10166         * modules/regex-quote: New file.
10167         Suggested by Reuben Thomas <rrt@sc3d.org>.
10168
10169 2010-09-24  Bruno Haible  <bruno@clisp.org>
10170
10171         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
10172         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
10173
10174 2010-09-23  Bruno Haible  <bruno@clisp.org>
10175
10176         setenv: Relax license.
10177         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
10178         Blake.
10179         Requested by Eric Blake.
10180
10181 2010-09-22  Bruno Haible  <bruno@clisp.org>
10182
10183         termios: Relax license.
10184         * modules/termios (License): Change to LGPLv2+.
10185         Requested by Eric Blake.
10186
10187 2010-09-22  Bruno Haible  <bruno@clisp.org>
10188
10189         threadlib: Allow the package to change the default to 'no'.
10190         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
10191         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
10192         Reported by Paul Eggert.
10193
10194 2010-09-22  Pádraig Brady  <P@draigbrady.com>
10195             Bruno Haible  <bruno@clisp.org>
10196
10197         Fix endless loop in mbmemcasecoll.
10198         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
10199         byte.
10200         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
10201
10202 2010-09-22  Bruno Haible  <bruno@clisp.org>
10203
10204         Tests for module 'memcoll'.
10205         * modules/memcoll-tests: New file.
10206         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
10207
10208         memcoll, xmemcoll: Clarify size vs. length.
10209         * modules/memcoll.c (memcoll0): Clarify specification.
10210         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
10211         passed to collate_error.
10212
10213 2010-09-22  Bruno Haible  <bruno@clisp.org>
10214
10215         Tests for module 'memcasecmp'.
10216         * modules/memcasecmp-tests: New file.
10217         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
10218
10219 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10220
10221         * lib/pthread.in.h: Add split double-inclusion guard, and include
10222         system <pthread.h> if there is one.  Use @@-style as in other
10223         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
10224         pthread.h doesn't.
10225         (pthread_mutexattr_destroy, pthread_mutexattr_init):
10226         (pthread_mutexattr_settype, pthread_mutex_trylock):
10227         New static inline functions, if there's no system <pthread.h>.
10228         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
10229         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
10230         Approximate with mutexes if the system lacks spinlocks, as in
10231         MacOS.
10232         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
10233         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
10234         @@-style.  Check for spinlocks separately.
10235         (gl_PTHREAD_DEFAULTS): New macro.
10236         * modules/pthread: Redo to use a more typical style for in.h files.
10237
10238 2010-09-21  Eric Blake  <eblake@redhat.com>
10239
10240         net_if: enhance tests
10241         * tests/test-net_if.c (main): Move signature checks earlier.
10242         Print failures to stderr.
10243         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
10244         Document the bug that we do not yet fix.
10245
10246 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10247
10248         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
10249         about gnulib, not GSS.
10250
10251 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10252
10253         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
10254         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
10255         for Emacs.
10256         * build-aux/pmccabe2html: Make Makefile.am example code more
10257         cut-and-paste friendly.
10258
10259 2010-09-21  Simon Josefsson  <simon@josefsson.org>
10260
10261         * tests/test-net_if.c: New file.
10262         * modules/net_if-tests: New file.
10263
10264 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10265
10266         pthread: add pthread_spin_destroy
10267         * lib/pthread.in.h (pthread_spin_destroy): New function.
10268
10269 2010-09-19  Bruno Haible  <bruno@clisp.org>
10270
10271         gnulib-tool: Fix --help output.
10272         * gnulib-tool (func_usage): Fix help message.
10273         Reported by Reuben Thomas <rrt@sc3d.org>.
10274
10275 2010-09-18  Jim Meyering  <meyering@redhat.com>
10276
10277         maint.mk: avoid unexpanded \n in two diagnostics
10278         * top/maint.mk (sc_prohibit_always_true_header_tests):
10279         Don't use a literal \n in a halt=... assignment.  It would not be
10280         expanded, and the two \n bytes would appear in the diagnostic output
10281         rather than the desired newline.  Use halt=$$(printf ... instead.
10282         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10283
10284 2010-09-18  Bruno Haible  <bruno@clisp.org>
10285
10286         netinet_in: Doc tweak.
10287         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
10288         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10289
10290 2010-09-18  Jim Meyering  <meyering@redhat.com>
10291
10292         init.sh: correct an outdated comment
10293         * tests/init.sh (create_exe_shims_):  s/function/alias/
10294
10295         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
10296         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
10297         a file named "*.exe" is removed between the glob expansion and the
10298         processing of that oddly named file.
10299
10300 2010-09-17  Eric Blake  <eblake@redhat.com>
10301
10302         mirbsd: add some more support
10303         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
10304         in BSD family.
10305         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
10306         devices as OpenBSD.
10307         * m4/host-os.m4 (mirbsd): Add MirBSD.
10308
10309         tests: fix unportable assumption on sys/wait.h
10310         * tests/test-sys_wait.c (main): Relax test.
10311         * tests/test-stdlib.c (main): Likewise.
10312
10313         init.sh: accomodate directory with no .exes
10314         * tests/init.sh: Accomodate directory containing only scripts.
10315
10316         tests: avoid compiler warning
10317         * tests/test-stdlib.c (main): Use the variable.
10318
10319         fdutimens, fdutimensat: update signature, again
10320         * lib/utimens.h (gl_futimens): Delete, and move signature...
10321         (fdutimens): ...here.
10322         (fdutimensat): Rearrange signature.
10323         (lutimensat): Rename variable for clarity.
10324         * lib/fdutimensat.c (fdutimensat): Update signature.
10325         * lib/utimens.c (fdutimens): Likewise.
10326         (gl_futimens): Delete.
10327         (utimens, lutimens): Update callers.
10328         * lib/futimens.c (futimens): Likewise.
10329         * tests/test-fdutimensat.c: Likewise.
10330         * tests/test-utimens.c: Likewise.
10331         * tests/test-futimens.h: Update comment.
10332         * NEWS: Mention this.
10333         Suggested by Paul Eggert.
10334
10335 2010-09-17  Bruno Haible  <bruno@clisp.org>
10336
10337         Take over the maintenance of some older macros from Autoconf.
10338         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
10339         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
10340         GNU Autoconf.
10341         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
10342         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
10343
10344 2010-09-17  Eric Blake  <eblake@redhat.com>
10345
10346         fdutimensat: drop atflag validation
10347         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
10348         with valid fd, to close a race scenario where futimens is
10349         unsupported and FILE was replaced by a symlink.
10350         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
10351         accordingly.
10352         Suggested by Paul Eggert.
10353
10354 2010-09-16  Bruno Haible  <bruno@clisp.org>
10355
10356         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
10357         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
10358
10359 2010-09-16  Bruno Haible  <bruno@clisp.org>
10360
10361         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
10362         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
10363         login_tty exists.
10364         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10365
10366 2010-09-16  Bruno Haible  <bruno@clisp.org>
10367
10368         login_tty: Make the replacement code work on BSD systems.
10369         * lib/login_tty.c: Include <sys/ioctl.h>.
10370         (login_tty): Use ioctl TIOCSCTTY when available.
10371         * modules/login_tty (Depends-on): Add sys_ioctl.
10372         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10373
10374 2010-09-16  Bruno Haible  <bruno@clisp.org>
10375
10376         login_tty: Stricter unit test.
10377         * modules/login_tty-tests (Depends-on): Add tcgetsid.
10378         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
10379         and tcgetsid() after login_tty.
10380         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10381
10382 2010-09-16  Bruno Haible  <bruno@clisp.org>
10383
10384         New module 'tcgetsid'.
10385         * lib/tcgetsid.c: New file.
10386         * m4/tcgetsid.m4: New file.
10387         * modules/tcgetsid: New file.
10388         * modules/termios (Depends-on): Add c++defs, warn-on-use.
10389         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
10390         GNULIB_TCGETSID, HAVE_TCGETSID.
10391         * lib/termios.in.h: Include <sys/types.h>.
10392         (tcgetsid): New declaration.
10393         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
10394         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
10395         * doc/posix-functions/tcgetsid.texi: Mention the new module.
10396         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
10397
10398 2010-09-16  Bruno Haible  <bruno@clisp.org>
10399
10400         Tests for module 'termios'.
10401         * modules/termios-c++-tests: New file.
10402         * modules/termios-tests: New file.
10403         * tests/test-termios-c++.cc: New file.
10404         * tests/test-termios.c: New file.
10405
10406         New module 'termios'.
10407         * modules/termios: New file.
10408         * lib/termios.in.h: New file.
10409         * m4/termios_h.m4: New file.
10410         * doc/posix-headers/termios.texi: Mention the new module.
10411
10412 2010-09-16  Eric Blake  <eblake@redhat.com>
10413
10414         fdutimensat: add an atflag parameter
10415         * lib/fdutimensat.c (fdutimensat): Add new parameter.
10416         * lib/utimens.h (fdutimensat): Update prototype.
10417         * tests/test-fdutimensat.c: Adjust test to match.
10418         * NEWS: Document the change.
10419         Suggested by Paul Eggert.
10420
10421 2010-09-16  Bruno Haible  <bruno@clisp.org>
10422
10423         Fix typos in comments.
10424         * lib/striconveh.h: Fix typo in comment.
10425         * lib/login_tty.c (login_tty): Likewise.
10426
10427 2010-09-15  Bruno Haible  <bruno@clisp.org>
10428
10429         stdlib: clarify MirBSD WEXITSTATUS bug
10430         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
10431         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10432
10433 2010-09-15  Eric Blake  <eblake@redhat.com>
10434
10435         stdlib: work around MirBSD WEXITSTATUS bug
10436         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
10437         * modules/stdlib (Depends-on): Add sys_wait.
10438         * tests/test-sys_wait.c (main): Enhance test.
10439         * tests/test-stdlib.c (main): Likewise.
10440         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
10441
10442         docs: mention MacOS issue with WEXITSTATUS(constant)
10443         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
10444         issue.
10445         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10446
10447         strnlen: add tests
10448         * modules/strnlen-tests: New file.
10449         * tests/test-strnlen.c: Likewise.
10450
10451 2010-09-14  Bruno Haible  <bruno@clisp.org>
10452
10453         unistr/base: Avoid link errors when module 'libunistring' is also used.
10454         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
10455         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
10456         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
10457         Declare also when HAVE_LIBUNISTRING is set.
10458         Reported by Pádraig Brady <P@draigbrady.com>.
10459
10460 2010-09-14  Eric Blake  <eblake@redhat.com>
10461
10462         test-rawmemchr: make more robust
10463         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
10464         (Depends-on, configure.ac): Add needed prerequisites to use it.
10465         * modules/memchr-tests (Files, Depends-on, configure.ac):
10466         Likewise, to avoid implicit reliance on memchr module prereqs.
10467         * tests/test-memchr.c (main): Ensure proper masking.
10468         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
10469         reads.
10470
10471         memchr: detect glibc Alpha bug
10472         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
10473         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
10474         Alpha.
10475         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
10476         * tests/test-memchr.c (main): Enhance test.
10477         Reported by Nelson H. F. Beebe.
10478
10479 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10480
10481         fts, getcwd, glob: audit for dirfd returning -1
10482         * lib/fts.c (opendir): Remove #define; no longer used.
10483         (opendirat): New arg PDIR_FD.  All callers changed.
10484         (fts_build, _opendir2): Use new opendirat to avoid the need for
10485         dirfd, or for checking whether dirfd returns a negative value.
10486         Don't use opendir; always use openat followed by fdopendir.
10487         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
10488         it.
10489         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
10490         returns -1 here.
10491         * modules/fts (Depends-on): Remove dirfd.
10492         * modules/getcwd (Depends-on): Likewise.
10493
10494 2010-09-13  Eric Blake  <eblake@redhat.com>
10495
10496         float: fix broken MirBSD header
10497         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
10498         * doc/posix-headers/float.texi (float.h): Document it.
10499
10500 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10501
10502         fts: use O_NOFOLLOW to avoid race condition when opening a directory
10503         * lib/fts.c (opendirat): New arg extra_flags.
10504         (__opendir2): Use it to avoid following symlinks when opening
10505         a directory, if symlinks are not supposed to be followed.  See
10506         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
10507
10508         fdopendir: preserve argument fd before returning
10509         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
10510         (fdopendir_with_dup, fd_clone_opendir): New static functions.
10511         (fdopendir): Use them, arranging for FD to be open to the same
10512         directory that it was when it started.  (It might be temporarily
10513         closed while fdopendir is running, so this not thread- or
10514         signal-safe.)  Be careful to do the right thing even when file
10515         descriptors are scarce and dup fails with errno == EMFILE.  See
10516         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
10517
10518 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
10519
10520         regex: Pass the system regex if its only problem is 32-bit regoff_t.
10521         * NEWS: Document change.
10522         * m4/regex.m4: Disable test for regoff_t size.
10523
10524 2010-09-13  Jim Meyering  <meyering@redhat.com>
10525
10526         fts: don't operate on an invalid file descriptor after failed dup
10527         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
10528         negative file descriptor.
10529
10530 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10531
10532         savedir: add streamsavedir, deprecate fdsavedir
10533         * NEWS: Mention deprecation of fdsavedir.
10534         * lib/savedir.c (streamsavedir): New extern function, whose name
10535         ends in "savedir" to be consistent with the others.  This differs
10536         from savedirstream in that it doesn't close its argument.  The
10537         next version of GNU tar will use this instead of fdsavedir, to
10538         avoid some race conditions and conserve file descriptors.
10539         (savedirstream): Reimplement as a wrapper around streamsavedir.
10540         (fdsavedir): Add a comment deprecating this function.  As far as
10541         I know, only GNU tar used it, and GNU tar doesn't need it any more.
10542         * lib/savedir.h (streamsavedir): New decl.
10543         (fdsavedir): Add a comment deprecating this.
10544
10545 2010-09-10  Bruno Haible  <bruno@clisp.org>
10546
10547         langinfo: Fix last commit.
10548         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
10549         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
10550         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10551
10552 2010-09-10  Bruno Haible  <bruno@clisp.org>
10553
10554         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
10555         * lib/progreloc.c (O_EXEC): Define fallback.
10556
10557 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
10558
10559         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
10560         * NEWS: Document recent changes to fcntl-h.
10561         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
10562         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
10563         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
10564         Similarly for O_SEARCH; this last was already true, but not documented.
10565         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
10566         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
10567         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
10568         Likewise.
10569         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
10570         is zero, not whether it is defined.
10571         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
10572         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
10573         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
10574
10575 2010-09-10  Bruno Haible  <bruno@clisp.org>
10576
10577         langinfo, nl_langinfo: Fix for IRIX 5.3.
10578         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
10579         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
10580         HAVE_LANGINFO_YESEXPR.
10581         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
10582         HAVE_LANGINFO_YESEXPR.
10583         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
10584         HAVE_LANGINFO_T_FMT_AMPM is 0.
10585         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
10586         HAVE_LANGINFO_YESEXPR is 0.
10587         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
10588         NOEXPR.
10589         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
10590         * doc/posix-functions/nl_langinfo.texi: Likewise.
10591         Reported by Eric Blake.
10592
10593 2010-09-10  Bruno Haible  <bruno@clisp.org>
10594
10595         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
10596         * doc/glibc-functions/login_tty.texi: Mention the include file problem
10597         on FreeBSD 8.0 and OpenBSD 4.6.
10598         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
10599         * m4/pty_h.m4 (gl_PTY_H): Likewise.
10600         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
10601         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
10602         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
10603         ac_includes_default.
10604         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10605
10606 2010-09-09  Eric Blake  <eblake@redhat.com>
10607
10608         strsignal: work around NetBSD bug
10609         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
10610         * lib/string.in.h (includes): Likewise.
10611         * doc/posix-functions/strsignal.texi (strsignal): Document the
10612         bug.
10613         Reported by Nelson H. F. Beebe.
10614
10615         gnulib-tool: work with NetBSD /bin/sh
10616         * gnulib-tool (func_cache_var, func_cache_lookup_module)
10617         (func_get_description, func_get_comment, func_get_status)
10618         (func_get_notice, func_get_applicability, func_get_filelist)
10619         (func_get_dependencies, func_get_autoconf_early_snippet)
10620         (func_get_autoconf_snippet, func_get_automake_snippet)
10621         (func_get_include_directive, func_get_link_directive)
10622         (func_get_license, func_get_maintainer, func_import): Avoid
10623         shell syntax errors from parsing syntax extensions.
10624
10625 2010-09-09  Bruno Haible  <bruno@clisp.org>
10626
10627         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10628         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
10629         a reliable way to determine whether the 'alias' command works.
10630
10631 2010-09-08  Jim Meyering  <meyering@redhat.com>
10632
10633         init.sh: penalize a set-x-impaired shell; don't disqualify it
10634         * tests/init.sh: Too many shells corrupt application stderr when
10635         you set -x, so we can't afford to disqualify them, since at least
10636         on Irix-6.5, that would disqualify all bourne shells.
10637         Instead, use a two-pass approach.
10638         On the first pass, try to find a shell that meets the stricter
10639         condition that set -x does not corrupt stderr.
10640         If no shell meets the stricter condition, retest each candidate
10641         shell, but without that extra condition.  Finally, when
10642         VERBOSE=yes is requested and set -x might cause trouble, simply
10643         issue a warning and refrain from enabling debug output.
10644
10645 2010-09-08  Eric Blake  <eblake@redhat.com>
10646
10647         unsetenv: fix OpenBSD bug
10648         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
10649         * doc/posix-functions/unsetenv.texi (unsetenv): Update
10650         documentation.
10651         Reported by Jim Meyering.
10652
10653         strtod: work around IRIX 6.5 bug
10654         * lib/strtod.c (strtod): Reparse number on shorter string if
10655         exponent parse was invalid.
10656         * tests/test-strtod.c (main): Add check for "0x1p 2".
10657         Reported by Tom G. Christensen.
10658
10659         getopt: optimize previous patch
10660         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
10661         empty variable.  Speed up awk script.
10662         Reported by Paolo Bonzini.
10663
10664 2010-09-08  Jim Meyering  <meyering@redhat.com>
10665
10666         test.sh: disqualify shells for which set -x corrupts stderr
10667         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
10668         and OpenBSD 4.7.  They make it so with "set -x", environment settings
10669         appear in stderr output.  For example, this command:
10670             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
10671         prints "P=1" on those two systems:
10672
10673 2010-09-08  Bruno Haible  <bruno@clisp.org>
10674
10675         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10676         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
10677         commands, because some shells ignore redirections when there is an
10678         error in the command lookup.
10679         Reported by Eric Blake.
10680
10681 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
10682
10683         * lib/regex.h: Fix a mention of `regex_compile' (should be
10684         `re_compile_pattern').
10685         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
10686         (re_set_registers): Correct name of parameter in comment.
10687
10688         * doc/regex.texi: Add documentation for missing syntax flags.
10689         Remove commented-out documentation of defunct syntax option
10690         RE_NO_EMPTY_ALTS.
10691         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
10692         Add documentation of re_set_registers.
10693         Document trick to re-use a pattern buffer by setting fastmap manually.
10694         Update documentation of struct re_pattern_buffer per public members.
10695         Uncomment documentation of equivalence class operators and
10696         collating symbol operators, since they are now implemented,
10697         Explain leftmost-longest matching in relation to alternatives.
10698         Tidy documentation of substring matching.
10699         Remove POSIX documentation, which is done better in
10700         glibc, and refer the reader there. Keep BSD API documentation, as
10701         that is not readily available elsewhere.
10702
10703 2010-09-07  Eric Blake  <eblake@redhat.com>
10704
10705         getopt: handle POSIXLY_CORRECT set but not exported
10706         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
10707         export state of POSIXLY_CORRECT, due to bash set -o posix.
10708         Reported by Dustin J. Mitchell.
10709
10710 2010-09-05  Bruno Haible  <bruno@clisp.org>
10711
10712         gnulib-tool: Highlight the changed options.
10713         * gnulib-tool (func_usage): Display the --import, --add-import,
10714         --remove-import explanations in bold font.
10715
10716 2010-09-06  Karl Berry  <karl@gnu.org>
10717
10718         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
10719
10720 2010-09-05  Bruno Haible  <bruno@clisp.org>
10721
10722         uniwidth/width: Update comment.
10723         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
10724         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
10725
10726 2010-09-05  Bruno Haible  <bruno@clisp.org>
10727
10728         isinf, isnan: Relax license.
10729         * modules/isinf (License): Change from GPL to LGPL, with consent from
10730         Ben Pfaff.
10731         * modules/isnan (License): Likewise.
10732         Requested by Ludovic Courtès.
10733
10734 2010-09-04  Bruno Haible  <bruno@clisp.org>
10735
10736         gnulib-tool: Help migration from --import to --add-import or --update.
10737         * gnulib-tool: Emit a verbose error message when --import is used
10738         without any module name.
10739
10740 2010-09-04  Bruno Haible  <bruno@clisp.org>
10741
10742         Update doc about gnulib-tool.
10743         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
10744         'gnulib-tool --update' in more detail.
10745         Reported by Eric Blake.
10746
10747 2010-09-04  Bruno Haible  <bruno@clisp.org>
10748
10749         gnulib-tool: Change --import. New options --add/remove-import.
10750         * gnulib-tool: New options --add-import, --remove-import.
10751         (func_usage): Document them.
10752         (have_associative): Define always.
10753         (func_import): In import mode, don't merge the specified settings with
10754         the cached settings. Implement remove-import mode.
10755         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
10756         Explain when to use them versus --import.
10757         (Simple update): Use --add-import instead of --import.
10758         * NEWS: Mention the change.
10759
10760 2010-09-04  Bruno Haible  <bruno@clisp.org>
10761
10762         * doc/gnulib-tool.texi (Initial import): Update paragraph about
10763         separate gnulib.mk.
10764
10765 2010-09-04  Bruno Haible  <bruno@clisp.org>
10766
10767         gnulib-tool: Don't talk about CVS any more.
10768         * gnulib-tool (func_usage, func_import): Write "version control"
10769         instead of CVS.
10770
10771 2010-09-04  Jim Meyering  <meyering@redhat.com>
10772
10773         maint.mk: avoid obscure sc_copyright_check failure in coreutils
10774         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
10775         false positives (whose names may be ill-chosen) when searching
10776         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
10777         would cause a false-positive.
10778
10779         avoid coreutils "make distcheck" failure
10780         Coreutils tests with an absolute build directory name that contains
10781         a space.  Not quoting this directory name caused a failure.
10782         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
10783         * tests/test-vc-list-files-cvs.sh: Likewise.
10784
10785 2010-09-04  Bruno Haible  <bruno@clisp.org>
10786
10787         gnulib-tool: Avoid error when run in a package without Makefile.am.
10788         * gnulib-tool: When collecting the m4dirs in a package that does not
10789         have a Makefile.am, eliminate those directories that contain no
10790         gnulib-cache.m4. Fix expression that counts these directories.
10791
10792 2010-09-04  Bruno Haible  <bruno@clisp.org>
10793
10794         update-copyright test: Improve output when perl is missing or too old.
10795         * tests/test-update-copyright.sh: Move test of Perl version down after
10796         the test whether Perl exists. Provide an explanation relating Perl's
10797         error message to Automake's SKIP: message.
10798
10799 2010-09-04  Bruno Haible  <bruno@clisp.org>
10800
10801         Don't augment PATH in TESTS_ENVIRONMENT.
10802         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
10803         set abs_aux_dir instead of augmenting PATH.
10804         * modules/vc-list-files-tests (Makefile.am): Likewise.
10805         * tests/test-update-copyright.sh: Augment PATH here.
10806         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
10807         path_prepend_.
10808         * tests/test-vc-list-files-git.sh: Likewise.
10809
10810 2010-09-04  Jim Meyering  <meyering@redhat.com>
10811
10812         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
10813         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
10814
10815 2010-09-04  Bruno Haible  <bruno@clisp.org>
10816
10817         strdup: Fix compilation error in C++ mode.
10818         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
10819         the macro.
10820
10821 2010-09-04  Bruno Haible  <bruno@clisp.org>
10822
10823         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
10824         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
10825         macro into a function.
10826         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10827
10828 2010-09-04  Bruno Haible  <bruno@clisp.org>
10829
10830         Set PATH_SEPARATOR the same way autoconf does.
10831         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
10832         the value of PATH_SEPARATOR the same way autoconf-generated configure
10833         scripts do.
10834         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
10835         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
10836
10837 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10838
10839         Set PATH_SEPARATOR the same way autoconf does.
10840         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
10841         the same way autoconf-generated configure scripts do.
10842         * posix-modules: Likewise.
10843
10844 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10845
10846         hash: fix safe_hasher const typo
10847         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
10848         const; otherwise, there is a type error later.
10849
10850 2010-09-02  Jim Meyering  <meyering@redhat.com>
10851
10852         test-update-copyright.sh: require perl 5.8.0
10853         * tests/test-update-copyright.sh: Require 5.8.0,
10854         which Tom G. Christensen has confirmed is adequate,
10855         while 5.6.1 is not.
10856
10857 2010-09-02  Eric Blake  <eblake@redhat.com>
10858
10859         tests: init.sh improvements for re-exec'ing with zsh
10860         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
10861         -vx through shell re-exec.
10862         Reported by Tom G. Christensen.
10863
10864         wctype: fix typo in previous commit
10865         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
10866         Reported by Ludovic Courtès.
10867
10868 2010-09-02  Jim Meyering  <meyering@redhat.com>
10869
10870         test-update-copyright.sh: skip test if Perl is too old
10871         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
10872         Reported by Tom G. Christensen.
10873
10874 2010-09-02  Bruno Haible  <bruno@clisp.org>
10875
10876         wctype: Avoid compilation error on IRIX 6.5.30.
10877         * lib/wctype.in.h (iswblank): Declare with a replacement if
10878         REPLACE_ISWBLANK is set.
10879         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
10880         declared. Set REPLACE_ISWBLANK.
10881         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
10882         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
10883         * doc/posix-headers/wctype.texi: Likewise.
10884         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10885
10886 2010-09-01  Bruno Haible  <bruno@clisp.org>
10887
10888         New module 'socketlib'.
10889         * modules/socketlib: New file.
10890         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
10891         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
10892         * modules/sockets (Depends-on): Add socketlib.
10893         Suggested by Sam Steingold <sds@gnu.org>.
10894
10895 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10896
10897         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
10898
10899         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
10900         when one needs search access to a directory but not read access.
10901         On systems where it is available, it works in some cases where
10902         O_RDONLY does not, namely on directories that are searchable but
10903         not readable, and which need only to be searchable.  If O_SEARCH
10904         is not available, fall back to the traditional method of using
10905         O_RDONLY.
10906
10907         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
10908         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
10909         when opening a directory that needs only to be searchable.
10910         * lib/chdir-safer.c (chdir_no_follow): Likewise.
10911         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
10912         * lib/openat-proc.c (openat_proc_name): Likewise.
10913         * lib/openat.c (openat_needs_fchdir): Likewise.
10914         * lib/save-cwd.c (save_cwd): Likewise.
10915         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
10916
10917 2010-08-28  Bruno Haible  <bruno@clisp.org>
10918
10919         New module 'host-cpu-c-abi'.
10920         * modules/host-cpu-c-abi: New file.
10921         * m4/host-cpu-c-abi.m4: New file, based on part of
10922         clisp/src/m4/general.m4.
10923         Requested by Sam Steingold <sds@gnu.org>.
10924
10925 2010-08-31  Eric Blake  <eblake@redhat.com>
10926         and Jim Meyering  <meyering@redhat.com>
10927
10928         hash: factor, and guard against misbehaving hasher function
10929         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
10930         of table->hasher's return value.  Also protect against a hash value
10931         so large that adding it to table->bucket results in a NULL pointer.
10932         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
10933         Use it in place of open-coded check-and-abort.
10934
10935 2010-08-30  Bruno Haible  <bruno@clisp.org>
10936
10937         hash: silence spurious clang warning
10938         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
10939         Reported by Eric Blake.
10940
10941 2010-08-30  Eric Blake  <eblake@redhat.com>
10942
10943         strstr, memmem, strcasestr: avoid leaked shell message
10944         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
10945         FreeBSD.
10946         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10947         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10948
10949         tests: silence clang warning
10950         * tests/test-malloca.c (do_allocation): Avoid dead store.
10951
10952 2010-08-29  Bruno Haible  <bruno@clisp.org>
10953
10954         gettext: Fix recent mistake.
10955         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
10956
10957 2010-08-29  Bruno Haible  <bruno@clisp.org>
10958
10959         selinux-h: Offer a --without-selinux option.
10960         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
10961         --without-selinux was specified, skip all tests and define
10962         HAVE_SELINUX_SELINUX_H to 0.
10963         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
10964         set LIB_SELINUX to empty.
10965         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
10966         gl_LIBSELINUX. If --without-selinux was specified, replace
10967         selinux/context.h.
10968         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
10969
10970 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10971             Bruno Haible  <bruno@clisp.org>
10972
10973         Make the module 'realloc-gnu' work again on AIX and OSF/1.
10974         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
10975         of HAVE_REALLOC.
10976         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
10977         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
10978         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
10979         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10980
10981 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10982             Bruno Haible  <bruno@clisp.org>
10983
10984         Make the module 'calloc-gnu' work again on AIX and OSF/1.
10985         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
10986         HAVE_CALLOC.
10987         * lib/xmalloc.c: Update accordingly.
10988         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
10989         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
10990         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
10991
10992 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10993             Bruno Haible  <bruno@clisp.org>
10994
10995         Make the module 'malloc-gnu' work again on AIX and OSF/1.
10996         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
10997         HAVE_MALLOC.
10998         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
10999         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
11000         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11001
11002 2010-08-29  Bruno Haible  <bruno@clisp.org>
11003
11004         Update modules list.
11005         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11006         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
11007         (String handling <string.h>): Add astrxfrm.
11008         (File system functions): Add readlinkat.
11009
11010 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11011
11012         Tests for module 'realloc-gnu'.
11013         * modules/realloc-gnu-tests: New file.
11014         * tests/test-realloc-gnu.c: New file.
11015
11016         Tests for module 'calloc-gnu'.
11017         * modules/calloc-gnu-tests: New file.
11018         * tests/test-calloc-gnu.c: New file.
11019
11020         Tests for module 'malloc-gnu'.
11021         * modules/malloc-gnu-tests: New file.
11022         * tests/test-malloc-gnu.c: New file.
11023
11024 2010-08-28  Bruno Haible  <bruno@clisp.org>
11025
11026         Rename module 'realloc' -> 'realloc-gnu'.
11027         * modules/realloc-gnu: New file, copied from modules/realloc.
11028         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
11029         obsolete.
11030         * modules/mgetgroups (Depends-on): Update.
11031         * doc/posix-functions/realloc.texi: Update.
11032         * NEWS: Mention the change.
11033
11034         Rename module 'calloc' -> 'calloc-gnu'.
11035         * modules/calloc-gnu: New file, copied from modules/calloc.
11036         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
11037         obsolete.
11038         * doc/posix-functions/calloc.texi: Update.
11039         * NEWS: Mention the change.
11040
11041         Rename module 'malloc' -> 'malloc-gnu'.
11042         * modules/malloc-gnu: New file, copied from modules/malloc.
11043         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
11044         obsolete.
11045         * modules/argp (Depends-on): Update.
11046         * modules/regex (Depends-on): Update.
11047         * doc/posix-functions/malloc.texi: Update.
11048         * NEWS: Mention the change.
11049
11050 2010-08-28  Eric Blake  <eblake@redhat.com>
11051
11052         pread, pwrite: add missing dependency
11053         * modules/pread (Depends-on): Add extensions.
11054         * modules/pwrite (Depends-on): Likewise.
11055
11056 2010-08-28  Bruno Haible  <bruno@clisp.org>
11057
11058         unistr/u*-strchr: Fix tests dependencies.
11059         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
11060         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
11061         Reported by Ian Beckwith <ianb@erislabs.net>.
11062
11063 2010-08-28  Bruno Haible  <bruno@clisp.org>
11064
11065         read-file: Don't occupy too much unused memory.
11066         * lib/read-file.c (fread_file): Shrink the buffer at the end.
11067
11068 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
11069             Eric Blake  <eblake@redhat.com>
11070             Bruno Haible  <bruno@clisp.org>
11071
11072         read-file: Avoid memory reallocations with regular files.
11073         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
11074         (fread_file): With regular files, use the remaining length as the
11075         initial buffer size.  Check against overflow.
11076         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
11077         sys_stat.
11078
11079 2010-08-28  Bruno Haible  <bruno@clisp.org>
11080
11081         ftello: Relax license.
11082         * modules/ftello (License): Relax to LGPLv2+.
11083         Reported by Eric Blake.
11084
11085 2010-08-28  Bruno Haible  <bruno@clisp.org>
11086
11087         Avoid relocwrapper link errors due to gnulib replacement functions.
11088         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
11089         function.
11090         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11091
11092 2010-08-28  Bruno Haible  <bruno@clisp.org>
11093
11094         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
11095         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
11096         defined.
11097         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
11098         Suggested by Eric Blake.
11099
11100 2010-08-28  Bruno Haible  <bruno@clisp.org>
11101
11102         sys_socket, netdb: Ensure socklen_t gets defined.
11103         * modules/sys_socket (Depends-on): Add socklen.
11104         * modules/netdb (Depends-on): Likewise.
11105         * modules/getaddrinfo (Depends-on): Remove socklen.
11106         * modules/getsockopt (Depends-on): Likewise.
11107         * modules/setsockopt (Depends-on): Likewise.
11108         * tests/test-sys_socket.c: Check that socklen_t is defined.
11109         * tests/test-netdb.c: Likewise.
11110         * m4/socklen.m4: Update comments.
11111         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11112
11113 2010-08-27  Eric Blake  <eblake@redhat.com>
11114
11115         login_tty: add missing dependency
11116         * modules/login_tty (Depends-on): Add pty.
11117
11118 2010-08-26  Eric Blake  <eblake@redhat.com>
11119
11120         lib-symbol-versions: fix m4 quoting
11121         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
11122         format for AC_LINK_IFELSE.
11123
11124         glob: fix compile test
11125         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
11126
11127         btowc: fix missing file
11128         * modules/btowc (Files): Also ship locale-fr.m4.
11129
11130         lseek: fix link test
11131         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
11132         AC_LINK_IFELSE.
11133
11134         include_next: silence autoconf 2.68 warning
11135         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
11136         AC_COMPILE_IFELSE as special.
11137         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
11138         autoconf < 2.68.
11139
11140         acl: fix compilation test
11141         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
11142         AC_COMPILE_IFELSE.
11143
11144 2010-08-26  Bruno Haible  <bruno@clisp.org>
11145
11146         Modernize AC_TRY_RUN invocations.
11147         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
11148         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11149         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
11150         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
11151         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
11152         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11153         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11154         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11155         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11156         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11157         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11158         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11159         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11160         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11161         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11162         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11163         gl_MBRLEN_NUL_RETVAL): Likewise.
11164         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11165         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11166         Likewise.
11167         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11168         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11169         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11170         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11171         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
11172         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
11173         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
11174         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11175         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
11176         Likewise.
11177         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11178         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
11179         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11180         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11181         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11182         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11183         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11184         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
11185         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11186         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11187
11188 2010-08-26  Bruno Haible  <bruno@clisp.org>
11189
11190         Modernize AC_TRY_LINK invocations.
11191         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
11192         AC_TRY_LINK.
11193         * m4/argp.m4 (gl_ARGP): Likewise.
11194         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11195         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11196         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
11197         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
11198         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
11199         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
11200         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11201         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11202         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
11203         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
11204         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
11205         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
11206         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
11207         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11208         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11209         * m4/hostent.m4 (gl_HOSTENT): Likewise.
11210         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11211         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
11212         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11213         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
11214         Likewise.
11215         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
11216         Likewise.
11217         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
11218         Likewise.
11219         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11220         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
11221         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
11222         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11223         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11224         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11225         * m4/servent.m4 (gl_SERVENT): Likewise.
11226         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11227         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11228         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11229         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11230         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11231         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11232         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11233         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11234         * modules/tsearch-tests (configure.ac): Likewise.
11235
11236 2010-08-26  Bruno Haible  <bruno@clisp.org>
11237
11238         Modernize AC_TRY_COMPILE invocations.
11239         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
11240         AC_TRY_COMPILE.
11241         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
11242         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
11243         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11244         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11245         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11246         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11247         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11248         * m4/lock.m4 (gl_LOCK): Likewise.
11249         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11250         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11251         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
11252         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11253         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11254         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
11255         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
11256         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
11257         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11258         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11259         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11260         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11261         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
11262         extraneous semicolon.
11263
11264 2010-08-26  Jim Meyering  <meyering@redhat.com>
11265
11266         stat-time: relax license LGPL
11267         * modules/stat-time (License): Change from GPL to LGPL,
11268         with consent from all contributors, for use in libguile.
11269         Requested by Ludovic Courtès.
11270
11271 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
11272
11273         poll: return immediately on POLLHUP.
11274         * lib/poll.c (poll): Always set timeout before wait_timeout is
11275         computed.
11276
11277 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11278
11279         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
11280         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
11281         rmdir ("dir/.//"), unlinkat.
11282
11283 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11284
11285         stdbool: avoid spurious failure with modern xlc
11286         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11287
11288 2010-08-24  Bruno Haible  <bruno@clisp.org>
11289
11290         getloadavg: simplify code
11291         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
11292         gl_have_func. Update comments.
11293
11294 2010-08-24  Eric Blake  <eblake@redhat.com>
11295
11296         getloadavg: don't define SVR4 on cygwin
11297         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
11298         only define SVR4 when -lkvm is required.
11299         Reported by Yaakov Selkowitz.
11300
11301 2010-08-24  Bruno Haible  <bruno@clisp.org>
11302
11303         priv-set: fix comment
11304         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
11305
11306 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11307
11308         priv-set: fix comments
11309         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
11310         to match code, as suggested by David Bartley in:
11311         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
11312
11313 2010-08-23  Eric Blake  <eblake@redhat.com>
11314
11315         stdbool: avoid rejecting clang
11316         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11317         * tests/test-stdbool.c: Enable more tests if using the system
11318         <stdbool.h> instead of the gnulib replacement.
11319         (main): Move xlc bug test to a runtime test for all compilers.
11320         Reported by Anders Kaseorg.
11321
11322         argz: fix shell quoting issue
11323         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
11324         Reported by Charles Wilson.
11325
11326 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
11327             Erik Faye-Lund <kusmabite@gmail.com>
11328
11329         poll, select: handle ERROR_BROKEN_PIPE.
11330         * lib/poll.c (win32_compute_revents): Return POLLHUP when
11331         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11332         * lib/select.c (win32_compute_revents): Do not mark a pipe
11333         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11334
11335 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
11336
11337         fts: allow compilation with C++
11338         * lib/fts_.h: Specify extern "C" linkage with C++.
11339
11340 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11341
11342         Fix gnulib-tool sed script de-commentation for AIX sed.
11343         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
11344         sed.
11345
11346 2010-08-17  Eric Blake  <eblake@redhat.com>
11347
11348         test-stddef: test for (some) offsetof bugs
11349         * tests/test-stddef.c: Enhance test to ensure correct type of
11350         offsetof.
11351         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
11352         that we are not fixing at this time.
11353
11354 2010-08-15  Bruno Haible  <bruno@clisp.org>
11355
11356         stpncpy: Allow stpncpy to be defined as a macro.
11357         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
11358         if it's already correctly declared.
11359         * lib/string.in.h (stpncpy): Undefine before redefining.
11360         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
11361
11362 2010-08-14  Bruno Haible  <bruno@clisp.org>
11363
11364         Rename module 'memxfrm' to 'amemxfrm'.
11365         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
11366         (amemxfrm): Renamed from memxfrm.
11367         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
11368         (amemxfrm): Renamed from memxfrm.
11369         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
11370         * NEWS: Mention the change.
11371         * MODULES.html.sh (String handling <string.h>): Update.
11372         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
11373         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
11374         * lib/unicase/u16-casexfrm.c: Likewise.
11375         * lib/unicase/u32-casexfrm.c: Likewise.
11376         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
11377         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
11378         * lib/uninorm/u16-normxfrm.c: Likewise.
11379         * lib/uninorm/u32-normxfrm.c: Likewise.
11380         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
11381         memxfrm.
11382         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
11383         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
11384         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
11385         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
11386         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
11387         Suggested by Paul Eggert.
11388
11389 2010-08-14  Bruno Haible  <bruno@clisp.org>
11390
11391         Tests for module 'astrxfrm'.
11392         * modules/astrxfrm-tests: New file.
11393         * tests/test-astrxfrm.c: New file.
11394
11395         New module 'astrxfrm'.
11396         * lib/astrxfrm.h: New file.
11397         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
11398         * modules/astrxfrm: New file.
11399
11400 2010-08-14  Reuben Thomas <rrt@sc3d.org>
11401
11402         regex: Tweak doc.
11403         * doc/regex.texi (Overview): Don't mention regex.c.
11404         (GNU Regular Expression Compiling): Likewise.
11405         (Match-end-of-line Operator): Mention 'not_eol'.
11406
11407 2010-08-14  Brian Gough  <bjg@gnu.org>
11408             Bruno Haible  <bruno@clisp.org>
11409
11410         git-merge-changelog: add doc relating to use with bzr and hg.
11411         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
11412
11413 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
11414
11415         pthread: fix pthread.h creation for srcdir != builddir
11416         * modules/pthread (Makefile.am): Fix the rule to work also in a
11417         non-srcdir build.
11418
11419 2010-08-13  Karl Berry  <karl@gnu.org>
11420
11421         * doc/regex.texi (Predefined Syntaxes): @smallexample.
11422         * doc/posix-*/*: force line break before @url of POSIX
11423         specifications.
11424         Suggested by Werner Lemberg.
11425
11426 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11427
11428         strtod: fix const diagnostic
11429         * lib/strtod.c (strtod): Don't assign const char * to char *,
11430         as this elicits a warning from GCC when warnings are enabled.
11431
11432 2010-08-10  Pádraig Brady <P@draigbrady.com>
11433         and Eric Blake  <eblake@redhat.com>
11434
11435         copy-acl: ignore ENOTSUP on HP-UX
11436         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
11437         so that it is available for HP-UX.
11438         * lib/copy-acl.c (qcopy_acl): Use it.
11439         Reported by Patrick M. Callahan.
11440
11441 2010-08-10  Eric Blake  <eblake@redhat.com>
11442
11443         open, chown: relax license
11444         * modules/open (License): Change to LGPLv2+, with consent by all
11445         authors, for use in augeas.
11446         * modules/chown (License): Likewise.
11447         * modules/lchown (Likewise): Likewise.
11448         Requested by Adam Stokes.
11449
11450 2010-08-09  Karl Berry  <karl@gnu.org>
11451
11452         * build-aux/ar-lib: new file, import from Automake.
11453         * config/srclist.txt: autocheck for updates.
11454
11455 2010-08-09  Eric Blake  <eblake@redhat.com>
11456
11457         readlinkat: adjust client modules
11458         * modules/areadlinkat (Depends-on): Use readlinkat, not
11459         symlinkat.
11460         * modules/areadlinkat-with-size (Depends-on): Likewise.
11461
11462         mknod: be more vocal about danger of running tests as root
11463         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
11464         root, since that is just asking for problems.
11465         Suggested by Bruno Haible, based on a report by Rainer Tammer.
11466
11467         readlinkat: split into its own module
11468         * modules/symlinkat: Split readlinkat...
11469         * modules/readlinkat: ...into separate module.
11470         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
11471         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
11472         * lib/symlinkat.c (readlinkat): Move...
11473         * lib/readlinkat.c: ...into new file.
11474         * modules/symlinkat-tests: Split readlinkat test...
11475         * modules/readlinkat-tests: ...into separate module.
11476         * tests/test-symlinkat.c: Split...
11477         * tests/test-readlinkat.c: ...into new file.
11478         * NEWS: Document the split.
11479         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11480         * lib/unistd.in.h (readlinkat): Likewise.
11481         Suggested by Bruno Haible.
11482
11483 2010-08-08  Bruno Haible  <bruno@clisp.org>
11484
11485         memxfrm: Speed up.
11486         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
11487         that usually only one call to strxfrm is necessary for each string
11488         part.
11489         Reported by Paul Eggert <eggert@cs.ucla.edu>.
11490
11491 2010-08-07  Karl Berry  <karl@gnu.org>
11492
11493         * doc/posix-headers/limits.texi,
11494         * doc/posix-functions/malloc.texi,
11495         * doc/posix-functions/strsignal.texi: missing @item.
11496         * doc/ld-version-script.texi: spurious leading i.
11497         * doc/regex.texi (Interval Operators): no commas inside @var.
11498
11499 2010-08-01  Bruno Haible  <bruno@clisp.org>
11500
11501         Integrate the regex documentation.
11502         * doc/gnulib.texi: Define 'cn' index.
11503         (Regular expressions): New a chapter that includes regex.texi and
11504         regexprops-generic.texi.
11505         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
11506         syntax.
11507
11508         Whitespace cleanup.
11509         * doc/regex.texi: Remove trailing spaces.
11510
11511         Add regex documentation.
11512         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
11513         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
11514         Written by Kathy A. Hargreaves and Karl Berry.
11515
11516 2010-08-01  Bruno Haible  <bruno@clisp.org>
11517
11518         link: Update documentation.
11519         * doc/posix-functions/link.texi: Update regarding Solaris.
11520
11521 2010-07-31  Bruno Haible  <bruno@clisp.org>
11522
11523         Update modules list.
11524         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
11525         (String handling <string.h>): Add memcmp2, memxfrm.
11526         (Container data structures): Add xlist, xsublist, xoset.
11527         (Core language properties): Add alignof, unused-parameter.
11528         (Process control, Numeric conversion functions <stdlib.h>): Renamed
11529         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
11530         (Unibyte characters <ctype.h>): New section.
11531         (String handling <string.h>): New section.
11532         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
11533         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
11534         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
11535         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
11536         tan, tanh, tanl, y0, y1, yn.
11537         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
11538         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
11539         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
11540         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
11541         unlockpt, vdprintf, vdprintf-posix.
11542         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
11543         (File system functions): Add concat-filename, sys_file, sys_ioctl,
11544         xconcat-filename.
11545         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
11546         getdtablesize, pipe2, pipe2-safer.
11547         (Security): New section.
11548         (Networking functions): Add accept4.
11549         (Signal handling): Add sigpipe.
11550         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
11551         mbmemcasecoll.
11552         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
11553         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
11554         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
11555         pipe-filter-ii.
11556         (Misc): Add argp-version-etc, login_tty, parse-duration.
11557
11558 2010-07-31  Bruno Haible  <bruno@clisp.org>
11559
11560         Improve doc in MODULES.html.
11561         * modules/linkat (Description): Add the word "function".
11562         * modules/mkfifo (Description): Likewise.
11563         * modules/mknod (Description): Likewise.
11564         * modules/remove (Description): Likewise.
11565         * modules/renameat (Description): Likewise.
11566         * modules/stat (Description): Likewise.
11567         * modules/symlink (Description): Likewise.
11568         * modules/unlink (Description): Likewise.
11569
11570 2010-07-31  Bruno Haible  <bruno@clisp.org>
11571
11572         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
11573         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
11574         option --enable/disable-c++ instead of --enable/disable-cxx.
11575         * NEWS: Mention the change.
11576
11577 2010-07-31  Bruno Haible  <bruno@clisp.org>
11578
11579         readlink, areadlink: Relax test a bit.
11580         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
11581         alternative to ENOTDIR.
11582         * tests/test-areadlink.h (test_areadlink): Likewise.
11583         Reported by Rainer Tammer.
11584
11585 2010-07-31  Bruno Haible  <bruno@clisp.org>
11586
11587         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
11588         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
11589         character, perform the search using U_STRCHR.
11590         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
11591         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
11592         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
11593         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
11594         Suggested by Paolo Bonzini.
11595
11596 2010-07-31  Bruno Haible  <bruno@clisp.org>
11597
11598         unistr/u*-strstr: Fix dependencies.
11599         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
11600         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
11601         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
11602
11603 2010-07-31  Bruno Haible  <bruno@clisp.org>
11604
11605         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
11606         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
11607         the beginning of the loop.
11608         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
11609         cases in 'switch' statement.
11610
11611         unistr/u8-strchr: Fix several bugs.
11612         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
11613         the string. When not found, return NULL, not a pointer near the end.
11614
11615         More tests for unistr/u8-strchr.
11616         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
11617         that the function does not read past the first occurrence of the byte
11618         being searched.
11619         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
11620         * tests/unistr/test-u16-strchr.c (main): New function.
11621         * tests/unistr/test-u32-strchr.c (main): New function.
11622
11623 2010-07-31  Bruno Haible  <bruno@clisp.org>
11624
11625         posix-modules: Ignore backup files of documentation files.
11626         * posix-modules: grep only through files named *.texi.
11627
11628 2010-07-31  Bruno Haible  <bruno@clisp.org>
11629
11630         symlinkat: Fix documentation.
11631         * doc/posix-functions/readlinkat.texi: Fix module name.
11632
11633 2010-07-31  Bruno Haible  <bruno@clisp.org>
11634
11635         fchownat: Replace also when chown has the trailing slash bug.
11636         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
11637         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
11638         introduced on 2010-04-10.
11639         Reported by Rainer Tammer.
11640
11641 2010-07-31  Bruno Haible  <bruno@clisp.org>
11642
11643         linkat: Work around AIX 7.1 bug.
11644         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
11645         whether linkat handles trailing slash correctly. If not, replace linkat
11646         and define LINKAT_TRAILING_SLASH_BUG.
11647         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
11648         check whether (fd1,file1) points to a directory if file1 or file2 ends
11649         in a slash. Code taken from lib/link.c.
11650         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
11651         Reported by Rainer Tammer.
11652
11653 2010-07-31  Bruno Haible  <bruno@clisp.org>
11654
11655         Correctly determine whether pow is available in libc on AIX 7 with xlc.
11656         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
11657         This disables an xlc optimization that was causing wrong test results.
11658         Reported by Rainer Tammer.
11659
11660 2010-07-31  Bruno Haible  <bruno@clisp.org>
11661
11662         iconv: Work around AIX 6.1..7.1 bug.
11663         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
11664         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
11665         cross-compiling, guess no on all versions of AIX.
11666         Reported by Rainer Tammer.
11667
11668 2010-07-31  Bruno Haible  <bruno@clisp.org>
11669
11670         readlink: Relax test a bit.
11671         * tests/test-readlink.h (test_readlink): Allow different errno value
11672         when readlink is called with a file name that ends in / and refers to
11673         a file.
11674         Suggested by Eric Blake.
11675         Reported by Rainer Tammer.
11676
11677 2010-07-31  Bruno Haible  <bruno@clisp.org>
11678
11679         copysign: Does not require -lm on glibc systems.
11680         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
11681         gl_COMMON_DOUBLE_MATHFUNC.
11682         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
11683
11684 2010-07-31  Bruno Haible  <bruno@clisp.org>
11685
11686         duplocale: Work around AIX 7.1 bug.
11687         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
11688         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
11689         * lib/duplocale.c (rpl_duplocale): Update comment.
11690         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
11691         Reported by Rainer Tammer.
11692
11693 2010-07-30  Bruno Haible  <bruno@clisp.org>
11694
11695         dirfd: Avoid link error on AIX 7.1.
11696         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
11697         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
11698         exist, set REPLACE_DIRFD.
11699         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
11700         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
11701         * doc/posix-functions/dirfd.texi: Update.
11702         Reported by Rainer Tammer.
11703
11704 2010-07-30  Eric Blake  <eblake@redhat.com>
11705
11706         strtod: next round of AIX fixes
11707         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
11708         exponent.
11709         * tests/test-strtod.c (main): Enhance tests.
11710         * doc/posix-functions/strtod.texi (strtod): Document next bug.
11711         Reported by Rainer Tammer.
11712
11713         futimens: fix configure check
11714         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
11715         Reported by Bruno Haible.
11716
11717 2010-07-30  Bruno Haible  <bruno@clisp.org>
11718
11719         getline: Update regarding AIX.
11720         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
11721         Reported by Rainer Tammer.
11722
11723 2010-07-30  Bruno Haible  <bruno@clisp.org>
11724
11725         wcwidth: Drop replacement on AIX 7.
11726         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
11727         AIX 7.
11728         Reported by Rainer Tammer.
11729
11730 2010-07-30  Bruno Haible  <bruno@clisp.org>
11731
11732         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
11733         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
11734         a 'char *'.
11735         Reported by Rainer Tammer.
11736
11737 2010-07-30  Bruno Haible  <bruno@clisp.org>
11738
11739         unlink: Update regarding AIX.
11740         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
11741         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
11742         Reported by Rainer Tammer.
11743
11744 2010-07-30  Bruno Haible  <bruno@clisp.org>
11745
11746         symlink: Update regarding AIX.
11747         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
11748         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
11749         Reported by Rainer Tammer.
11750
11751 2010-07-30  Bruno Haible  <bruno@clisp.org>
11752
11753         strndup: Update regarding AIX.
11754         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
11755         AIX 7.
11756         Reported by Rainer Tammer.
11757
11758 2010-07-30  Bruno Haible  <bruno@clisp.org>
11759
11760         stat: Update regarding AIX.
11761         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
11762         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
11763         Reported by Rainer Tammer.
11764
11765 2010-07-30  Bruno Haible  <bruno@clisp.org>
11766
11767         truncl: Fix autoconf test.
11768         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
11769         whether truncl works.
11770         Reported by Rainer Tammer.
11771
11772 2010-07-30  Bruno Haible  <bruno@clisp.org>
11773
11774         round: Update regarding AIX.
11775         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
11776         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
11777         Reported by Rainer Tammer.
11778
11779 2010-07-30  Bruno Haible  <bruno@clisp.org>
11780
11781         rename: Update regarding AIX.
11782         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
11783         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
11784         Reported by Rainer Tammer.
11785
11786 2010-07-30  Bruno Haible  <bruno@clisp.org>
11787
11788         printf.m4: Update regarding AIX.
11789         * m4/printf.m4: Update comments regarding AIX.
11790         Reported by Rainer Tammer.
11791
11792 2010-07-30  Bruno Haible  <bruno@clisp.org>
11793
11794         iconv: Update regarding AIX.
11795         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
11796         AIX 7.
11797         Reported by Rainer Tammer.
11798
11799 2010-07-30  Bruno Haible  <bruno@clisp.org>
11800
11801         getopt: Update regarding AIX.
11802         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
11803         no on AIX.
11804         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
11805         Reported by Rainer Tammer.
11806
11807 2010-07-30  Bruno Haible  <bruno@clisp.org>
11808
11809         ldexpl; Update regarding AIX.
11810         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
11811         on AIX 7.
11812         Reported by Rainer Tammer.
11813
11814 2010-07-30  Bruno Haible  <bruno@clisp.org>
11815
11816         frexpl: Update regarding AIX.
11817         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
11818         on AIX 7.
11819         Reported by Rainer Tammer.
11820
11821 2010-07-30  Bruno Haible  <bruno@clisp.org>
11822
11823         open, fopen: Update regarding AIX.
11824         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
11825         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11826         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
11827         * doc/posix-functions/fopen.texi: Likewise.
11828         Reported by Rainer Tammer.
11829
11830 2010-07-30  Bruno Haible  <bruno@clisp.org>
11831
11832         chown: Update doc regarding AIX.
11833         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
11834         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
11835         Reported by Rainer Tammer.
11836
11837 2010-07-30  Eric Blake  <eblake@redhat.com>
11838
11839         strtod: fix bug in replacement function on AIX
11840         * lib/strtod.c (strtod): Special case broken "0x" parse in
11841         underlying strtod.
11842         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
11843         * doc/posix-functions/strtod.texi (strtod): Likewise.
11844         Reported by Rainer Tammer.
11845
11846 2010-07-30  Bruno Haible  <bruno@clisp.org>
11847
11848         mbrlen: Fix cross-compilation guess for AIX.
11849         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
11850         guess. Leftover from 2008-12-22.
11851
11852 2010-07-30  Bruno Haible  <bruno@clisp.org>
11853
11854         mbrtowc: Fix cross-compilation guess for AIX.
11855         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
11856         guess. Leftover from 2008-12-21.
11857
11858 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
11859
11860         init.sh: work around trap limitation of some shells
11861         * tests/init.sh (setup_): Move exit trap outside of shell function.
11862
11863 2010-07-29  Eric Blake  <eblake@redhat.com>
11864
11865         strtod: aid debugging
11866         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
11867         understanding why strtod is rejected.
11868
11869 2010-07-28  Bruno Haible  <bruno@clisp.org>
11870
11871         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
11872         * lib/unistr/u8-chr.c: Include <string.h>.
11873         * tests/unistr/test-u8-chr.c: Likewise.
11874         * tests/unistr/test-u16-chr.c: Likewise.
11875         * tests/unistr/test-u32-chr.c: Likewise.
11876         * tests/unistr/test-u8-strchr.c: Likewise.
11877         * tests/unistr/test-u16-strchr.c: Likewise.
11878         * tests/unistr/test-u32-strchr.c: Likewise.
11879         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
11880         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
11881         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
11882         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
11883
11884 2010-07-28  Bruno Haible  <bruno@clisp.org>
11885
11886         Use spaces for indentation, not tabs.
11887         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
11888
11889 2010-07-27  Bruno Haible  <bruno@clisp.org>
11890
11891         mbspcasecmp: Fix function specification.
11892         * lib/string.in.h (mbspcasecmp): Fix specification comment.
11893         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
11894         Reported by Eric Blake <eblake@redhat.com>.
11895
11896 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
11897
11898         timespec: use cast and not conditional, as truncation isn't possible
11899         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
11900         instead of a conditional.  Comment about the situation in more detail.
11901         This undoes most of the 2009-10-29 patch.
11902
11903 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
11904
11905         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
11906         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
11907         * lib/unistr/u8-strchr.c: Likewise.
11908         * modules/unistr/u8-chr: Depend on memchr.
11909
11910         unistr/u*-strchr: add tests
11911         * modules/unistr/u8-strchr-tests: New file.
11912         * modules/unistr/u16-strchr-tests: New file.
11913         * modules/unistr/u32-strchr-tests: New file.
11914         * tests/unistr/test-strchr.h: New file.
11915         * tests/unistr/test-u8-strchr.c: New file.
11916         * tests/unistr/test-u16-strchr.c: New file.
11917         * tests/unistr/test-u32-strchr.c: New file.
11918
11919         unistr/u*-chr: test multibyte sequences more
11920         * tests/unistr/test-chr.h: Do complete testing of the characters in the
11921         test vector.
11922         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
11923         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
11924         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
11925
11926         unistr/u*-chr: test multibyte sequences
11927         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
11928
11929         unistr/u*-chr: prepare for multibyte tests
11930         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
11931         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
11932         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
11933         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
11934         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
11935         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
11936
11937 2010-07-18  Bruno Haible  <bruno@clisp.org>
11938
11939         unistr/u8-strchr: Optimize non-ASCII argument case.
11940         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
11941         because the first byte often matches anyway.
11942         Reported by Pádraig Brady <P@draigbrady.com>.
11943
11944 2010-07-15  Karl Berry  <karl@gnu.org>
11945
11946         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
11947
11948 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
11949
11950         getcwd: on Solaris, work better if ancestors are inaccessible
11951         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
11952         buffer and size, try again with a large buffer.  This works better
11953         on Solaris, since its getcwd succeeds even if the path to the root
11954         is inaccessible, and this is helpful in common cases such as .zfs
11955         hidden directories.  Problem reported by J Chapman Flack in
11956         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
11957         Use system getcwd if it's declared, not merely if it's partly
11958         working; use the partly-working test only to avoid needless effort
11959         if the system getcwd fails.
11960         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
11961         comment that was already obsolete and is now even more obsolete.
11962         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
11963         now might call strdup.
11964
11965 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
11966
11967         pthread: Add enough so that coreutils/src/sort.c compiles.
11968         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
11969         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
11970         gnulib. Include <sched.h> and <time.h>, as per POSIX.
11971         Include <sys/types.h>, in case it defines pthread_t.
11972         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
11973         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
11974         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
11975         (pthread_rwlockattr_t, pthread_spinlock_t):
11976         New typedefs, if HAVE_PTHREAD_T is not defined.
11977         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
11978         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
11979         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
11980         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
11981         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
11982         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
11983         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
11984         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
11985         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
11986         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
11987         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
11988         New macros.
11989         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
11990         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
11991         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
11992         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
11993         (pthread_spin_unlock): New dummy functions.
11994         (pthread_create): Return EAGAIN; don't set errno.
11995         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
11996         require AC_C_INLINE.
11997         * modules/pthread (Depends-on): Add sched, time.
11998         (pthread.h): Use AM_V_GEN.
11999
12000 2010-07-13  Bruno Haible  <bruno@clisp.org>
12001
12002         striconveh: Don't malloc memory if the result buffer is sufficient.
12003         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
12004         buffer if its size is sufficient.
12005         Reported by Ludovic Courtès <ludo@gnu.org>.
12006
12007 2010-07-13  Bruno Haible  <bruno@clisp.org>
12008
12009         strtod: Add safety check.
12010         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
12011
12012 2010-07-12  Bruno Haible  <bruno@clisp.org>
12013
12014         Unify tests that set gl_cv_func_ldexpl_no_libm.
12015         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
12016         gl_FUNC_LDEXPL.
12017         (gl_FUNC_LDEXPL): Invoke it.
12018         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12019
12020 2010-07-12  Bruno Haible  <bruno@clisp.org>
12021
12022         Unify tests that set gl_cv_func_ldexp_no_libm.
12023         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
12024         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
12025         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
12026         (configure.ac): Simply invoke gl_FUNC_LDEXP.
12027         * modules/strtod (Files): Add m4/ldexp.m4.
12028
12029 2010-07-12  Bruno Haible  <bruno@clisp.org>
12030
12031         Unify tests that set gl_cv_func_frexpl_no_libm.
12032         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
12033         gl_FUNC_FREXPL_NO_LIBM.
12034         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
12035         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12036
12037 2010-07-12  Bruno Haible  <bruno@clisp.org>
12038
12039         Unify tests that set gl_cv_func_frexp_no_libm.
12040         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
12041         gl_FUNC_FREXP_NO_LIBM.
12042         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
12043         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12044
12045 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12046
12047         memcoll: clarify sizes versus lengths, document better, and tweak perf
12048         * lib/memcoll.c (strcoll_loop, memcoll0):
12049         Improve quality of descriptive comments.  Name variables
12050         consistently as to whether they are lengths (which do not include
12051         terminating null) versus sizes (which do).
12052         * lib/xmemcoll.c (xmemcoll0): Likewise.
12053         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
12054         returned when s1size == 0; this is easier to compile and saves
12055         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
12056
12057 2010-07-12  Bruno Haible  <bruno@clisp.org>
12058
12059         Tests for module '_Exit'.
12060         * modules/_Exit-tests: New file.
12061         * tests/test-_Exit.sh: New file.
12062         * tests/test-_Exit.c: New file.
12063
12064         New module '_Exit'.
12065         * lib/stdlib.in.h (__attribute__): New macro.
12066         (_Exit): New declaration.
12067         * lib/_Exit.c: New file.
12068         * m4/_Exit.m4: New file.
12069         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
12070         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
12071         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
12072         * modules/_Exit: New file.
12073         * tests/test-stdlib-c++.cc (_Exit): Check signature.
12074         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
12075
12076 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12077
12078         strtod: make it more-accurate typically, and don't require libm
12079         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
12080         Include limits.h.  Don't include string.h.
12081         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
12082         (locale_isspace): New function, so that no casts are needed to
12083         check whether *s is a space.
12084         (ldexp): Provide an unused dummy if not available.
12085         (scale_radix_exp, parse_number, underlying_strtod): New functions.
12086         (strtod): Use them.  This implementation prefers to use the
12087         underlying strtod if available, falling back on our own code
12088         only to fix known bugs.  This is more likely to produce an
12089         accurate result.  Also, it avoids the use of libm functions.
12090         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
12091         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
12092         was absent, but it caused a test failure with coreutils.
12093         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
12094         with libm.
12095         * modules/strtod (Makefile.am, Link): libm is no longer needed.
12096         * modules/strtod-tests (Makefile.am): Likewise.
12097
12098 2010-07-11  Pádraig Brady  <P@draigBrady.com>
12099             Bruno Haible  <bruno@clisp.org>
12100
12101         unistr/u8-strchr: Optimize ASCII argument case.
12102         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
12103
12104 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12105
12106         (x)memcoll: minor tweaks
12107         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
12108         is after the type that it qualifies.
12109         (memcoll0): Likewise.
12110         * lib/memcoll.h (memcoll0): Likewise.
12111         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
12112         * lib/xmemcoll.h (xmemcoll0): Likewise.
12113         * lib/memcoll.c (memcoll0): Correct the comment.  This function
12114         differs from memcoll in that the NUL byte is part of the argument.
12115         Omit the abort-checks, as performance is a real issue here.  Plus,
12116         the checks were wrong anyway (an off-by-one error).  Omit local
12117         variable 'diff', as it's a bit clearer that way.
12118         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
12119         no longer needed.
12120
12121 2010-07-08  Chen Guo <chenguo4@yahoo.com>
12122
12123         (x)memcoll: speedup when input is known to be NUL delimited
12124         * lib/memcoll.c: Include stdlib.
12125         (memcoll0): New function.
12126         (strcoll_loop): New function, refactored for use in both memcoll
12127         and memcoll0.
12128         * lib/memcoll.h (memcoll0): Add prototype.
12129         * lib/xmemcoll.c (xmemcoll0): New function.
12130         (collate_error): New function, refactored for use in both xmemcoll
12131         and xmemcoll0.
12132         * lib/xmemcoll.h (xmemcoll0): Add prototype.
12133         * m4/memcoll.m4: add inline invocation.
12134
12135 2010-07-06  Pádraig Brady  <P@draigBrady.com>
12136
12137         * build-aux/bootstrap: Remove any local translations
12138         from the translation project synchronization directory,
12139         so that local only translations are not distributed.
12140
12141 2010-07-04  Bruno Haible  <bruno@clisp.org>
12142
12143         fsusage: Clarify which code applies to which platforms.
12144         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
12145         platform.
12146         * lib/fsusage.c (get_fs_usage): Likewise.
12147
12148 2010-07-04  Bruno Haible  <bruno@clisp.org>
12149
12150         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
12151         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
12152         Reported by Martin Lambers <marlam@marlam.de>.
12153
12154 2010-07-04  Jim Meyering  <meyering@redhat.com>
12155
12156         hash: once again explicitly disallow insertion of NULL
12157         * lib/hash.c (hash_insert0): Reinstate just-removed test:
12158         inserting a NULL pointer cannot work with these functions.
12159         Add a comment with details.
12160         This reverts part of the 2010-07-01 commit, 5bef1a35
12161         "hash: extend module to deal with non-pointer keys".
12162
12163 2010-07-01  Bruno Haible  <bruno@clisp.org>
12164
12165         stdbool: Update doc.
12166         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
12167         Info from Christian Weisgerber <naddy@mips.inka.de>.
12168
12169 2010-07-01  Jim Meyering  <meyering@redhat.com>
12170
12171         hash: extend module to deal with non-pointer keys
12172         * lib/hash.c (hash_insert0): New interface, much like hash_insert
12173         but that allows insertion of non-pointer entries.
12174         Do not disallow an ENTRY value of NULL.
12175         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
12176         * lib/hash.h (hash_insert0): Declare.
12177
12178 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12179
12180         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
12181         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
12182         not present (i.e. with autoconf 2.59 and when using gettextize, not
12183         gnulib), require AC_GNU_SOURCE instead.
12184
12185 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
12186
12187         idpriv-drop: Fix tests.
12188         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
12189         not to the test-idpriv-droptemp program.
12190
12191 2010-06-29  Bruno Haible  <bruno@clisp.org>
12192
12193         string: Fix syntax error with g++ 2.96.
12194         * lib/string.in.h (__pure__): Remove definition.
12195         (_GL_ATTRIBUTE_PURE): New macro.
12196         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
12197         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
12198         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12199
12200 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
12201
12202         unitypes: Fix bug introduced on 2010-05-18.
12203         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
12204
12205 2010-06-22  Eric Blake  <eblake@redhat.com>
12206
12207         memmem: slight optimization
12208         * lib/str-two-way.h (critical_factorization): Update comments.
12209         Reduce work during factorization phase.
12210         Reported by Carlos Bueno <carlos@bueno.org>.
12211
12212 2010-06-21  Bruno Haible  <bruno@clisp.org>
12213
12214         Fix HAVE_CALLOC_POSIX misnomer.
12215         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
12216         !HAVE_CALLOC_POSIX.
12217         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
12218         HAVE_CALLOC_POSIX.
12219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
12220         instead of HAVE_CALLOC_POSIX.
12221         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
12222         HAVE_CALLOC_POSIX.
12223
12224         Use modern idiom for calloc() replacement.
12225         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
12226         AC_FUNC_CALLOC.
12227         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
12228         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
12229         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12230         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
12231         (gl_REPLACE_CALLOC): New macro.
12232
12233 2010-06-21  Bruno Haible  <bruno@clisp.org>
12234
12235         Fix HAVE_REALLOC_POSIX misnomer.
12236         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
12237         !HAVE_REALLOC_POSIX.
12238         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
12239         HAVE_REALLOC_POSIX.
12240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
12241         instead of HAVE_REALLOC_POSIX.
12242         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
12243         HAVE_REALLOC_POSIX.
12244
12245         Use modern idiom for realloc() replacement.
12246         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
12247         AC_FUNC_REALLOC.
12248         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
12249         Autoconf's AC_FUNC_REALLOC.
12250         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12251         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
12252         (gl_REPLACE_REALLOC): New macro.
12253         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12254
12255 2010-06-21  Bruno Haible  <bruno@clisp.org>
12256
12257         Fix HAVE_MALLOC_POSIX misnomer.
12258         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
12259         !HAVE_MALLOC_POSIX.
12260         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
12261         HAVE_MALLOC_POSIX.
12262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
12263         instead of HAVE_MALLOC_POSIX.
12264         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
12265         HAVE_MALLOC_POSIX.
12266
12267         Use modern idiom for malloc() replacement.
12268         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
12269         AC_FUNC_MALLOC.
12270         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
12271         Autoconf's AC_FUNC_MALLOC.
12272         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12273         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
12274         (gl_REPLACE_MALLOC): New macro.
12275         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12276
12277 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
12278
12279         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
12280         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
12281         This macro takes 3 arguments, not 4.
12282
12283 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
12284
12285         ipv6: fix detection under mingw
12286         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
12287         in6_addr.
12288
12289 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
12290
12291         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
12292         that strtod() works when cross-compiling to a glibc version known
12293         to work.
12294
12295 2010-06-15  Bruno Haible  <bruno@clisp.org>
12296
12297         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
12298
12299 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
12300
12301         select: Correct timeout.
12302         * lib/select.c (rpl_select): Compute wait_timeout correctly.
12303
12304 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12305
12306         git-version-gen: init shell var to avoid env var influence
12307         * build-aux/git-version-gen (v): Init shell var to empty.
12308
12309 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12310
12311         priv-set: Don't assume that priv.h exists merely because getppriv does.
12312         See Jan Andersen's bug report about AIX 5L in
12313         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
12314         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
12315         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
12316         * lib/priv-set.h: Likewise.
12317         * tests/test-priv-set.c: Likewise.
12318
12319 2010-06-13  Bruno Haible  <bruno@clisp.org>
12320
12321         relocatable: Make it easier to test whether to install wrappers.
12322         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
12323         RELOCATABLE_VIA_WRAPPER.
12324
12325 2010-06-13  Bruno Haible  <bruno@clisp.org>
12326
12327         gnulib-tool: Display specified modules and dependencies differently.
12328         * gnulib-tool (func_show_module_list): New function.
12329         (func_import, func_create_testdir): Invoke it.
12330         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12331
12332 2010-06-13  Bruno Haible  <bruno@clisp.org>
12333
12334         gnulib-tool: Align code of func_import and func_create_testdir.
12335         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
12336         specified_modules.
12337
12338 2010-06-12  Jim Meyering  <meyering@redhat.com>
12339
12340         test-inttostr: avoid spurious failure on Solaris 9
12341         * tests/test-inttostr.c (main): Skip the test when snprintf fails
12342         to accept "%ju".  Reported by Bruno Haible.
12343
12344 2010-06-11  Jim Meyering  <meyering@redhat.com>
12345
12346         test-sys_socket: mark variables as used more readably
12347         * tests/test-sys_socket.c (main): Mark otherwise unused variables
12348         as "used" explicitly via (void) statement casts.  This is more
12349         readable than using them in an artificial return expression.
12350         Suggestion from Bruno Haible.
12351
12352 2010-06-11  Bruno Haible  <bruno@clisp.org>
12353
12354         Avoid some more warnings from "gcc -Wwrite-strings".
12355         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
12356         to 'const char *'.
12357         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
12358         * tests/test-c-strcasestr.c (main): Likewise.
12359         * tests/test-mbscasestr1.c (main): Likewise.
12360         * tests/test-mbscasestr2.c (main): Likewise.
12361         * tests/test-memmem.c (main): Likewise.
12362         * tests/test-strstr.c (main): Likewise.
12363         * tests/test-strcasestr.c (main): Likewise.
12364
12365 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12366
12367         init.sh: change framework_failure_ to fail with status 99, not 1
12368         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
12369         automake's parallel-tests rule that this is an unexpected failure,
12370         even if the test is listed in XFAIL_TESTS.
12371
12372 2010-06-11  Jim Meyering  <meyering@redhat.com>
12373
12374         test-inttostr: avoid warnings about 4-6KB literal strings
12375         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
12376         Include "macros.h", for its definition of ASSERT.
12377         (CK): s/assert/ASSERT/
12378         * modules/inttostr-tests (Files): Add macros.h.
12379
12380         init.sh: don't use $ME_ or skip_ before they are defined
12381         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
12382         their first uses.  Also hoist their companions: warn_, fail_,
12383         framework_failure_, $stderr_fileno.  Prompted by a patch from
12384         Stefano Lattarini.
12385
12386         test-sys_socket: avoid set-but-not-used warnings from gcc
12387         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
12388         avoid warning about set-but-not-used variables.
12389
12390         test-xvasprintf: avoid 'const' discard warnings
12391         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
12392         "const" when assigning from literal strings.
12393         (test_xasprintf): Add "void" in function argument list to placate
12394         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
12395
12396         tests: avoid compilation warnings in argmatch and exclude tests...
12397         in packages that define ARGMATCH_DIE_DECL, like coreutils.
12398         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
12399         Since it always exits, declare with the "noreturn" attribute.
12400         * tests/test-argmatch.c: Likewise.
12401
12402         tests: avoid 'const' discard warnings in mbsstr tests
12403         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
12404         * tests/test-mbsstr2.c (main): Likewise.
12405
12406         test-verify: avoid warning from gcc's -Wmissing-declarations
12407         * tests/test-verify.c (function): Declare to be static.
12408
12409         test-inttostr.c: include <string.h> for use of strcmp
12410         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
12411
12412         test-linkat: avoid failed assertion on "other" architectures
12413         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
12414         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
12415         sparc: https://bugs.launchpad.net/bugs/591968
12416
12417 2010-06-11  Jim Meyering  <meyering@redhat.com>
12418
12419         printf.m4: avoid autoconf's "Expanded Before Required" warning
12420         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
12421         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
12422         autoconf warning.
12423
12424 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
12425
12426         Replacement header templates are now named with ".in", not "_".
12427         * doc/gnulib-intro.texi: Correct.
12428
12429 2010-06-10  Jim Meyering  <meyering@redhat.com>
12430
12431         inttostr-tests: depend on snprintf, not snprintf-posix
12432         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
12433         snprintf-posix, to avoid this aclocal failure:
12434           missing file gnulib-tests/vasnprintf.c
12435           configure.ac:45: error: expected source file, required through \
12436           AC_LIBSOURCES, not found
12437
12438 2010-06-10  Jim Meyering  <meyering@redhat.com>
12439
12440         inttostr: add a new function, inttostr, and tests
12441         The namesake function was not available.  The existence of the
12442         template file, inttostr.c makes its addition nontrivial.
12443         * lib/anytostr.c: Rename from inttostr.c.
12444         (anytostr): Rename from inttostr.
12445         * lib/inttostr.c: New file.
12446         * modules/inttostr (Files): Add anytostr.c.
12447         (Makefile.am): Set lib_SOURCES instead of ...
12448         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
12449         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
12450         * lib/offtostr.c: Likewise.
12451         * lib/uinttostr.c: Likewise.
12452         * lib/umaxtostr.c: Likewise.
12453         * modules/inttostr-tests: New file.
12454         * tests/test-inttostr.c: New file.  Test these functions.
12455
12456 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
12457             Bruno Haible  <bruno@clisp.org>
12458
12459         Add "Extending Gnulib" chapter to manual.
12460         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
12461         chapter.
12462         (Extending Gnulib): New chapter.
12463         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
12464         chapter.
12465
12466 2010-06-09  Bruno Haible  <bruno@clisp.org>
12467
12468         Avoid relocwrapper link errors due to gnulib replacement functions.
12469         * lib/areadlink.c: Use the system's malloc, realloc functions.
12470         (areadlink): Set errno to ENOMEM explicitly.
12471         * modules/areadlink (Depends-on): Remove malloc-posix.
12472         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12473
12474 2010-06-09  Bruno Haible  <bruno@clisp.org>
12475
12476         Avoid relocwrapper link errors due to gnulib replacement functions.
12477         * lib/canonicalize-lgpl.c: Use the system's malloc function.
12478         * lib/malloca.c: Likewise.
12479         * lib/relocatable.c: Likewise.
12480         * lib/progreloc.c: Use the system's malloc, sprintf functions.
12481         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
12482         * lib/setenv.c: Use the system's malloc, realloc functions.
12483         * lib/strerror.c: Use the system's sprintf function.
12484         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12485
12486 2010-06-04  Bruno Haible  <bruno@clisp.org>
12487
12488         Prefer documented low-level autoconf macro names.
12489         * m4/lib-link.m4: Use m4_translit instead of translit.
12490         * m4/environ.m4: Likewise.
12491         * m4/mathfunc.m4: Likewise.
12492         * m4/onceonly.m4: Likewise.
12493         * m4/stdint.m4: Likewise.
12494         Suggested by Eric Blake.
12495
12496 2010-06-04  Martin Lambers  <marlam@marlam.de>
12497             Bruno Haible  <bruno@clisp.org>
12498
12499         havelib: Allow library names with '+' characters.
12500         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12501         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
12502
12503 2010-06-09  Bruno Haible  <bruno@clisp.org>
12504
12505         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
12506         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
12507         realloc failed.
12508
12509 2010-06-08  Peter Simons  <simons@cryp.to>
12510
12511         maint.mk: make the news-check rule more configurable
12512         * top/maint.mk (news-check-lines-spec): New variable.
12513         (news-check): Use "sed -n 1,10p" in place of "head".
12514
12515 2010-06-07  Jim Meyering  <meyering@redhat.com>
12516
12517         do-release-commit-and-tag: fix typo in --help
12518         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
12519
12520         regex: avoid new dead-code warning with gcc-4.6.0
12521         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
12522         if-block containing a while-loop.  It's been unused for at least
12523         5 years.
12524
12525 2010-06-05  Bruno Haible  <bruno@clisp.org>
12526
12527         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
12528         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
12529
12530 2010-06-04  Bruno Haible  <bruno@clisp.org>
12531
12532         Update to GNU gettext 0.18.1.
12533         * modules/gettext (configure.ac): Require gettext infrastructure from
12534         version 0.18.1.
12535
12536 2010-06-03  Bruno Haible  <bruno@clisp.org>
12537
12538         Don't use AC_LIBOBJ with file names in subdirectories.
12539         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
12540         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
12541         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
12542         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
12543         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
12544         gl_LIBUNISTRING_LIBSOURCE.
12545         (Makefile.am): Augment lib_SOURCES here, conditionally.
12546         * NEWS: Drop requirement for Automake option 'subdir-objects'.
12547
12548 2010-06-03  Bruno Haible  <bruno@clisp.org>
12549
12550         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
12551         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
12552         expansion does not end with a newline.
12553         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
12554         unnecessary newline.
12555
12556 2010-06-03  Bruno Haible  <bruno@clisp.org>
12557
12558         Reduce dependencies.
12559         * tests/test-quotearg.h: New file, extracted from
12560         tests/test-quotearg.c.
12561         * tests/test-quotearg-simple.c: New file, extracted from
12562         tests/test-quotearg.c.
12563         * tests/test-quotearg.c: Don't include <ctype.h>.
12564         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
12565         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
12566         use_quote_double_quotes, use_quotearg_colon): Moved to
12567         tests/test-quotearg.h.
12568         (results_g, flag_results, custom_quotes, custom_results): Moved
12569         to tests/test-quotearg-simple.c.
12570         (main): Moved the part that does not depend on gettext to
12571         tests/test-quotearg-simple.c. Return 77 if the test cannot be
12572         performed.
12573         * modules/quotearg-simple: New file.
12574         * modules/quotearg-simple-tests: New file.
12575         * modules/quotearg (Depends-on): Add quotearg-simple.
12576         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
12577         (Files): Add tests/test-quotearg.h.
12578         Reported by Paolo Bonzini.
12579
12580 2010-06-03  Bruno Haible  <bruno@clisp.org>
12581
12582         Reduce dependencies.
12583         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
12584
12585 2010-06-03  Bruno Haible  <bruno@clisp.org>
12586
12587         time: Undefine more broken macros.
12588         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
12589         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
12590         Reported by Eric Blake.
12591
12592 2010-06-03  Bruno Haible  <bruno@clisp.org>
12593
12594         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
12595         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
12596         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
12597         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
12598         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
12599         Reported by Ludovic Courtès <ludo@gnu.org>.
12600
12601 2010-06-02  Eric Blake  <eblake@redhat.com>
12602
12603         time: work with mingw + pthreads-win32 library
12604         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
12605         if timespec is defined only in pthread.h.
12606         * modules/time (Makefile.am): Substitute it.
12607         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
12608         <pthread.h>, when needed.
12609         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
12610         from the library.
12611
12612 2010-05-31  Bruno Haible  <bruno@clisp.org>
12613
12614         Avoid expanding two macros in the wrong order.
12615         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
12616         gl_LIBUNISTRING if it is defined.
12617         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
12618         autoconf >= 2.64.
12619         Reported by Ludovic Courtès <ludo@gnu.org>.
12620
12621 2010-05-27  Jim Meyering  <meyering@redhat.com>
12622
12623         maint.mk: also prohibit "#undef" of always-defined symbols
12624         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
12625         Allow more than one space before the symbol name.
12626         (sc_prohibit_always-defined_macros): Use grep's -E, now that
12627         the regexp uses alternation.
12628
12629 2010-05-26  Eric Blake  <eblake@redhat.com>
12630
12631         maint.mk: avoid echo -e
12632         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
12633         Convert all uses of echo -* to printf.
12634         Reported by Matthias Bolte.
12635
12636 2010-05-25  Bruno Haible  <bruno@clisp.org>
12637
12638         Update to GNU gettext 0.18, part 2.
12639         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
12640         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
12641
12642 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12643
12644         Add missing include in test-pwrite.c.
12645         * tests/test-pwrite.c: Include string.h, for strcmp.
12646
12647 2010-05-24  Bruno Haible  <bruno@clisp.org>
12648
12649         * NEWS: Mention requirement for Automake option 'subdir-objects'.
12650
12651 2010-05-24  Bruno Haible  <bruno@clisp.org>
12652
12653         Don't use conversion with transliteration in u{8,16,32}_strcoll.
12654         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
12655         iconveh_error argument.
12656         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
12657         U_STRCONV_TO_LOCALE.
12658         * lib/unistr/u16-strcoll.c: Likewise.
12659         * lib/unistr/u32-strcoll.c: Likewise.
12660         * modules/unistr/u8-strcoll (Depends-on): Add
12661         uniconv/u8-strconv-to-enc, localcharset. Remove
12662         uniconv/u8-strconv-to-locale.
12663         (configure.ac): Bump version number.
12664         * modules/unistr/u16-strcoll (Depends-on): Add
12665         uniconv/u16-strconv-to-enc, localcharset. Remove
12666         uniconv/u16-strconv-to-locale.
12667         (configure.ac): Bump version number.
12668         * modules/unistr/u32-strcoll (Depends-on): Add
12669         uniconv/u32-strconv-to-enc, localcharset. Remove
12670         uniconv/u32-strconv-to-locale.
12671         (configure.ac): Bump version number.
12672
12673 2010-05-24  Bruno Haible  <bruno@clisp.org>
12674
12675         Avoid a test failure on NetBSD 5.0.
12676         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
12677         an iconv() bug.
12678
12679 2010-05-24  Bruno Haible  <bruno@clisp.org>
12680
12681         Adjust #include directive style.
12682         * modules/regex (Includes): Recommend to write <regex.h>.
12683
12684 2010-05-24  Bruno Haible  <bruno@clisp.org>
12685
12686         regex: Don't require alloca.
12687         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
12688         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
12689         only inside if (0).
12690
12691 2010-05-23  Jim Meyering  <meyering@redhat.com>
12692
12693         test-renameat.c: include <sys/stat.h>
12694         * tests/test-renameat.c: Include <sys/stat.h>; required for
12695         definition of S_IS* macros.
12696
12697 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
12698
12699         Update maintainer documentation for 'relocatable-prog' module.
12700         * doc/relocatable-maint.texi: Update.
12701         Comments by Bruno Haible.
12702
12703 2010-05-23  Bruno Haible  <bruno@clisp.org>
12704
12705         git-merge-changelog: Enable --split-merged-entry by default.
12706         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
12707         (usage): Don't mention this option any more.
12708         Reported by Ralf Wildenhues.
12709
12710 2010-05-23  Jim Meyering  <meyering@redhat.com>
12711
12712         test-pwrite: do not leave behind a test file named "out"
12713         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
12714         The trivial-looking use of init.sh is really necessary.
12715         It ensures that the temporary file, "out", is created in
12716         a temporary directory, and removed upon termination.
12717         * tests/test-pwrite.sh: Re-add file.
12718         * modules/pwrite-tests: Reference it.
12719
12720 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12721
12722         Fix output redirection buglet in init.sh.
12723         * tests/init.sh: Fix redirection of stderr.
12724
12725 2010-05-20  Simon Josefsson  <simon@josefsson.org>
12726
12727         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
12728
12729 2010-05-17  Simon Josefsson  <simon@josefsson.org>
12730
12731         * modules/valgrind-tests: New file.
12732         * m4/valgrind-tests.m4: New file.
12733         * doc/valgrind-tests.texi: New file.
12734         * doc/gnulib.texi (Running self-tests under valgrind): New
12735         section.
12736
12737 2010-05-19  Bruno Haible  <bruno@clisp.org>
12738
12739         Clean up dead code in recent commit.
12740         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
12741         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
12742         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
12743         Suggested by Paolo Bonzini.
12744
12745 2010-05-19  Bruno Haible  <bruno@clisp.org>
12746
12747         Avoid valgrind error reports from libunistring.
12748         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
12749         * modules/libunistring (Files): Add it.
12750         * modules/libunistring-optional (Files): Likewise.
12751
12752 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
12753             Bruno Haible  <bruno@clisp.org>
12754
12755         New module 'libunistring-optional'.
12756         * modules/libunistring-optional: New file.
12757         * m4/libunistring-base.m4: New file.
12758         * m4/libunistring-optional.m4: New file.
12759         * lib/unicase.in.h: Renamed from lib/unicase.h.
12760         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
12761         * lib/unictype.in.h: Renamed from lib/unictype.h.
12762         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
12763         * lib/uniname.in.h: Renamed from lib/uniname.h.
12764         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
12765         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
12766         * lib/unistr.in.h: Renamed from lib/unistr.h.
12767         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
12768         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
12769         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
12770         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
12771         gl_LIBUNISTRING. If the library was found, determine the installed
12772         version and set LIBUNISTRING_VERSION.
12773         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
12774         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
12775         handle a configuration option --with-included-libunistring.
12776         * modules/libunistring (Files): Add m4/absolute-header.m4.
12777         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
12778         Add m4/libunistring-base.m4.
12779         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12780         (Makefile.am): Build unicase.h from unicase.in.h.
12781         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
12782         Add m4/libunistring-base.m4.
12783         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12784         (Makefile.am): Build uniconv.h from uniconv.in.h.
12785         * modules/unictype/base (Files): Use unictype.in.h instead of
12786         unictype.h. Add m4/libunistring-base.m4.
12787         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12788         (Makefile.am): Build unictype.h from unictype.in.h.
12789         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
12790         Add m4/libunistring-base.m4.
12791         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12792         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
12793         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
12794         Add m4/libunistring-base.m4.
12795         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12796         (Makefile.am): Build uniname.h from uniname.in.h.
12797         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
12798         Add m4/libunistring-base.m4.
12799         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12800         (Makefile.am): Build uninorm.h from uninorm.in.h.
12801         * modules/unistdio/base (Files): Use unistdio.in.h instead of
12802         unistdio.h. Add m4/libunistring-base.m4.
12803         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12804         (Makefile.am): Build unistdio.h from unistdio.in.h.
12805         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
12806         Add m4/libunistring-base.m4.
12807         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12808         (Makefile.am): Build unistr.h from unistr.in.h.
12809         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
12810         Add m4/libunistring-base.m4.
12811         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12812         (Makefile.am): Build unitypes.h from unitypes.in.h.
12813         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
12814         Add m4/libunistring-base.m4.
12815         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12816         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
12817         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
12818         uniwidth.h. Add m4/libunistring-base.m4.
12819         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12820         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
12821         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
12822         instead of augmenting lib_SOURCES.
12823         * modules/unicase/empty-suffix-context: Likewise.
12824         * modules/unicase/locale-language: Likewise.
12825         * modules/unicase/tolower: Likewise.
12826         * modules/unicase/totitle: Likewise.
12827         * modules/unicase/toupper: Likewise.
12828         * modules/unicase/u8-casecmp: Likewise.
12829         * modules/unicase/u8-casecoll: Likewise.
12830         * modules/unicase/u8-casefold: Likewise.
12831         * modules/unicase/u8-casexfrm: Likewise.
12832         * modules/unicase/u8-ct-casefold: Likewise.
12833         * modules/unicase/u8-ct-tolower: Likewise.
12834         * modules/unicase/u8-ct-totitle: Likewise.
12835         * modules/unicase/u8-ct-toupper: Likewise.
12836         * modules/unicase/u8-is-cased: Likewise.
12837         * modules/unicase/u8-is-casefolded: Likewise.
12838         * modules/unicase/u8-is-lowercase: Likewise.
12839         * modules/unicase/u8-is-titlecase: Likewise.
12840         * modules/unicase/u8-is-uppercase: Likewise.
12841         * modules/unicase/u8-prefix-context: Likewise.
12842         * modules/unicase/u8-suffix-context: Likewise.
12843         * modules/unicase/u8-tolower: Likewise.
12844         * modules/unicase/u8-totitle: Likewise.
12845         * modules/unicase/u8-toupper: Likewise.
12846         * modules/unicase/u16-casecmp: Likewise.
12847         * modules/unicase/u16-casecoll: Likewise.
12848         * modules/unicase/u16-casefold: Likewise.
12849         * modules/unicase/u16-casexfrm: Likewise.
12850         * modules/unicase/u16-ct-casefold: Likewise.
12851         * modules/unicase/u16-ct-tolower: Likewise.
12852         * modules/unicase/u16-ct-totitle: Likewise.
12853         * modules/unicase/u16-ct-toupper: Likewise.
12854         * modules/unicase/u16-is-cased: Likewise.
12855         * modules/unicase/u16-is-casefolded: Likewise.
12856         * modules/unicase/u16-is-lowercase: Likewise.
12857         * modules/unicase/u16-is-titlecase: Likewise.
12858         * modules/unicase/u16-is-uppercase: Likewise.
12859         * modules/unicase/u16-prefix-context: Likewise.
12860         * modules/unicase/u16-suffix-context: Likewise.
12861         * modules/unicase/u16-tolower: Likewise.
12862         * modules/unicase/u16-totitle: Likewise.
12863         * modules/unicase/u16-toupper: Likewise.
12864         * modules/unicase/u32-casecmp: Likewise.
12865         * modules/unicase/u32-casecoll: Likewise.
12866         * modules/unicase/u32-casefold: Likewise.
12867         * modules/unicase/u32-casexfrm: Likewise.
12868         * modules/unicase/u32-ct-casefold: Likewise.
12869         * modules/unicase/u32-ct-tolower: Likewise.
12870         * modules/unicase/u32-ct-totitle: Likewise.
12871         * modules/unicase/u32-ct-toupper: Likewise.
12872         * modules/unicase/u32-is-cased: Likewise.
12873         * modules/unicase/u32-is-casefolded: Likewise.
12874         * modules/unicase/u32-is-lowercase: Likewise.
12875         * modules/unicase/u32-is-titlecase: Likewise.
12876         * modules/unicase/u32-is-uppercase: Likewise.
12877         * modules/unicase/u32-prefix-context: Likewise.
12878         * modules/unicase/u32-suffix-context: Likewise.
12879         * modules/unicase/u32-tolower: Likewise.
12880         * modules/unicase/u32-totitle: Likewise.
12881         * modules/unicase/u32-toupper: Likewise.
12882         * modules/unicase/ulc-casecmp: Likewise.
12883         * modules/unicase/ulc-casecoll: Likewise.
12884         * modules/unicase/ulc-casexfrm: Likewise.
12885         * modules/uniconv/u8-conv-from-enc: Likewise.
12886         * modules/uniconv/u8-conv-to-enc: Likewise.
12887         * modules/uniconv/u8-strconv-from-enc: Likewise.
12888         * modules/uniconv/u8-strconv-from-locale: Likewise.
12889         * modules/uniconv/u8-strconv-to-enc: Likewise.
12890         * modules/uniconv/u8-strconv-to-locale: Likewise.
12891         * modules/uniconv/u16-conv-from-enc: Likewise.
12892         * modules/uniconv/u16-conv-to-enc: Likewise.
12893         * modules/uniconv/u16-strconv-from-enc: Likewise.
12894         * modules/uniconv/u16-strconv-from-locale: Likewise.
12895         * modules/uniconv/u16-strconv-to-enc: Likewise.
12896         * modules/uniconv/u16-strconv-to-locale: Likewise.
12897         * modules/uniconv/u32-conv-from-enc: Likewise.
12898         * modules/uniconv/u32-conv-to-enc: Likewise.
12899         * modules/uniconv/u32-strconv-from-enc: Likewise.
12900         * modules/uniconv/u32-strconv-from-locale: Likewise.
12901         * modules/uniconv/u32-strconv-to-enc: Likewise.
12902         * modules/uniconv/u32-strconv-to-locale: Likewise.
12903         * modules/unictype/bidicategory-byname: Likewise.
12904         * modules/unictype/bidicategory-name: Likewise.
12905         * modules/unictype/bidicategory-of: Likewise.
12906         * modules/unictype/bidicategory-test: Likewise.
12907         * modules/unictype/block-list: Likewise.
12908         * modules/unictype/block-test: Likewise.
12909         * modules/unictype/category-C: Likewise.
12910         * modules/unictype/category-Cc: Likewise.
12911         * modules/unictype/category-Cf: Likewise.
12912         * modules/unictype/category-Cn: Likewise.
12913         * modules/unictype/category-Co: Likewise.
12914         * modules/unictype/category-Cs: Likewise.
12915         * modules/unictype/category-L: Likewise.
12916         * modules/unictype/category-Ll: Likewise.
12917         * modules/unictype/category-Lm: Likewise.
12918         * modules/unictype/category-Lo: Likewise.
12919         * modules/unictype/category-Lt: Likewise.
12920         * modules/unictype/category-Lu: Likewise.
12921         * modules/unictype/category-M: Likewise.
12922         * modules/unictype/category-Mc: Likewise.
12923         * modules/unictype/category-Me: Likewise.
12924         * modules/unictype/category-Mn: Likewise.
12925         * modules/unictype/category-N: Likewise.
12926         * modules/unictype/category-Nd: Likewise.
12927         * modules/unictype/category-Nl: Likewise.
12928         * modules/unictype/category-No: Likewise.
12929         * modules/unictype/category-P: Likewise.
12930         * modules/unictype/category-Pc: Likewise.
12931         * modules/unictype/category-Pd: Likewise.
12932         * modules/unictype/category-Pe: Likewise.
12933         * modules/unictype/category-Pf: Likewise.
12934         * modules/unictype/category-Pi: Likewise.
12935         * modules/unictype/category-Po: Likewise.
12936         * modules/unictype/category-Ps: Likewise.
12937         * modules/unictype/category-S: Likewise.
12938         * modules/unictype/category-Sc: Likewise.
12939         * modules/unictype/category-Sk: Likewise.
12940         * modules/unictype/category-Sm: Likewise.
12941         * modules/unictype/category-So: Likewise.
12942         * modules/unictype/category-Z: Likewise.
12943         * modules/unictype/category-Zl: Likewise.
12944         * modules/unictype/category-Zp: Likewise.
12945         * modules/unictype/category-Zs: Likewise.
12946         * modules/unictype/category-and: Likewise.
12947         * modules/unictype/category-and-not: Likewise.
12948         * modules/unictype/category-byname: Likewise.
12949         * modules/unictype/category-name: Likewise.
12950         * modules/unictype/category-none: Likewise.
12951         * modules/unictype/category-of: Likewise.
12952         * modules/unictype/category-or: Likewise.
12953         * modules/unictype/category-test: Likewise.
12954         * modules/unictype/combining-class: Likewise.
12955         * modules/unictype/ctype-alnum: Likewise.
12956         * modules/unictype/ctype-alpha: Likewise.
12957         * modules/unictype/ctype-blank: Likewise.
12958         * modules/unictype/ctype-cntrl: Likewise.
12959         * modules/unictype/ctype-digit: Likewise.
12960         * modules/unictype/ctype-graph: Likewise.
12961         * modules/unictype/ctype-lower: Likewise.
12962         * modules/unictype/ctype-print: Likewise.
12963         * modules/unictype/ctype-punct: Likewise.
12964         * modules/unictype/ctype-space: Likewise.
12965         * modules/unictype/ctype-upper: Likewise.
12966         * modules/unictype/ctype-xdigit: Likewise.
12967         * modules/unictype/decimal-digit: Likewise.
12968         * modules/unictype/digit: Likewise.
12969         * modules/unictype/mirror: Likewise.
12970         * modules/unictype/numeric: Likewise.
12971         * modules/unictype/property-alphabetic: Likewise.
12972         * modules/unictype/property-ascii-hex-digit: Likewise.
12973         * modules/unictype/property-bidi-arabic-digit: Likewise.
12974         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
12975         * modules/unictype/property-bidi-block-separator: Likewise.
12976         * modules/unictype/property-bidi-boundary-neutral: Likewise.
12977         * modules/unictype/property-bidi-common-separator: Likewise.
12978         * modules/unictype/property-bidi-control: Likewise.
12979         * modules/unictype/property-bidi-embedding-or-override: Likewise.
12980         * modules/unictype/property-bidi-eur-num-separator: Likewise.
12981         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
12982         * modules/unictype/property-bidi-european-digit: Likewise.
12983         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
12984         * modules/unictype/property-bidi-left-to-right: Likewise.
12985         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
12986         * modules/unictype/property-bidi-other-neutral: Likewise.
12987         * modules/unictype/property-bidi-pdf: Likewise.
12988         * modules/unictype/property-bidi-segment-separator: Likewise.
12989         * modules/unictype/property-bidi-whitespace: Likewise.
12990         * modules/unictype/property-byname: Likewise.
12991         * modules/unictype/property-combining: Likewise.
12992         * modules/unictype/property-composite: Likewise.
12993         * modules/unictype/property-currency-symbol: Likewise.
12994         * modules/unictype/property-dash: Likewise.
12995         * modules/unictype/property-decimal-digit: Likewise.
12996         * modules/unictype/property-default-ignorable-code-point: Likewise.
12997         * modules/unictype/property-deprecated: Likewise.
12998         * modules/unictype/property-diacritic: Likewise.
12999         * modules/unictype/property-extender: Likewise.
13000         * modules/unictype/property-format-control: Likewise.
13001         * modules/unictype/property-grapheme-base: Likewise.
13002         * modules/unictype/property-grapheme-extend: Likewise.
13003         * modules/unictype/property-grapheme-link: Likewise.
13004         * modules/unictype/property-hex-digit: Likewise.
13005         * modules/unictype/property-hyphen: Likewise.
13006         * modules/unictype/property-id-continue: Likewise.
13007         * modules/unictype/property-id-start: Likewise.
13008         * modules/unictype/property-ideographic: Likewise.
13009         * modules/unictype/property-ids-binary-operator: Likewise.
13010         * modules/unictype/property-ids-trinary-operator: Likewise.
13011         * modules/unictype/property-ignorable-control: Likewise.
13012         * modules/unictype/property-iso-control: Likewise.
13013         * modules/unictype/property-join-control: Likewise.
13014         * modules/unictype/property-left-of-pair: Likewise.
13015         * modules/unictype/property-line-separator: Likewise.
13016         * modules/unictype/property-logical-order-exception: Likewise.
13017         * modules/unictype/property-lowercase: Likewise.
13018         * modules/unictype/property-math: Likewise.
13019         * modules/unictype/property-non-break: Likewise.
13020         * modules/unictype/property-not-a-character: Likewise.
13021         * modules/unictype/property-numeric: Likewise.
13022         * modules/unictype/property-other-alphabetic: Likewise.
13023         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
13024         * modules/unictype/property-other-grapheme-extend: Likewise.
13025         * modules/unictype/property-other-id-continue: Likewise.
13026         * modules/unictype/property-other-id-start: Likewise.
13027         * modules/unictype/property-other-lowercase: Likewise.
13028         * modules/unictype/property-other-math: Likewise.
13029         * modules/unictype/property-other-uppercase: Likewise.
13030         * modules/unictype/property-paired-punctuation: Likewise.
13031         * modules/unictype/property-paragraph-separator: Likewise.
13032         * modules/unictype/property-pattern-syntax: Likewise.
13033         * modules/unictype/property-pattern-white-space: Likewise.
13034         * modules/unictype/property-private-use: Likewise.
13035         * modules/unictype/property-punctuation: Likewise.
13036         * modules/unictype/property-quotation-mark: Likewise.
13037         * modules/unictype/property-radical: Likewise.
13038         * modules/unictype/property-sentence-terminal: Likewise.
13039         * modules/unictype/property-soft-dotted: Likewise.
13040         * modules/unictype/property-space: Likewise.
13041         * modules/unictype/property-terminal-punctuation: Likewise.
13042         * modules/unictype/property-test: Likewise.
13043         * modules/unictype/property-titlecase: Likewise.
13044         * modules/unictype/property-unassigned-code-value: Likewise.
13045         * modules/unictype/property-unified-ideograph: Likewise.
13046         * modules/unictype/property-uppercase: Likewise.
13047         * modules/unictype/property-variation-selector: Likewise.
13048         * modules/unictype/property-white-space: Likewise.
13049         * modules/unictype/property-xid-continue: Likewise.
13050         * modules/unictype/property-xid-start: Likewise.
13051         * modules/unictype/property-zero-width: Likewise.
13052         * modules/unictype/scripts: Likewise.
13053         * modules/unictype/syntax-c-ident: Likewise.
13054         * modules/unictype/syntax-c-whitespace: Likewise.
13055         * modules/unictype/syntax-java-ident: Likewise.
13056         * modules/unictype/syntax-java-whitespace: Likewise.
13057         * modules/unilbrk/u8-possible-linebreaks: Likewise.
13058         * modules/unilbrk/u8-width-linebreaks: Likewise.
13059         * modules/unilbrk/u16-possible-linebreaks: Likewise.
13060         * modules/unilbrk/u16-width-linebreaks: Likewise.
13061         * modules/unilbrk/u32-possible-linebreaks: Likewise.
13062         * modules/unilbrk/u32-width-linebreaks: Likewise.
13063         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
13064         * modules/unilbrk/ulc-width-linebreaks: Likewise.
13065         * modules/uniname/uniname: Likewise.
13066         * modules/uninorm/canonical-decomposition: Likewise.
13067         * modules/uninorm/composition: Likewise.
13068         * modules/uninorm/decomposing-form: Likewise.
13069         * modules/uninorm/decomposition: Likewise.
13070         * modules/uninorm/filter: Likewise.
13071         * modules/uninorm/nfc: Likewise.
13072         * modules/uninorm/nfd: Likewise.
13073         * modules/uninorm/nfkc: Likewise.
13074         * modules/uninorm/nfkd: Likewise.
13075         * modules/uninorm/u8-normalize: Likewise.
13076         * modules/uninorm/u8-normcmp: Likewise.
13077         * modules/uninorm/u8-normcoll: Likewise.
13078         * modules/uninorm/u8-normxfrm: Likewise.
13079         * modules/uninorm/u16-normalize: Likewise.
13080         * modules/uninorm/u16-normcmp: Likewise.
13081         * modules/uninorm/u16-normcoll: Likewise.
13082         * modules/uninorm/u16-normxfrm: Likewise.
13083         * modules/uninorm/u32-normalize: Likewise.
13084         * modules/uninorm/u32-normcmp: Likewise.
13085         * modules/uninorm/u32-normcoll: Likewise.
13086         * modules/uninorm/u32-normxfrm: Likewise.
13087         * modules/unistdio/u8-asnprintf: Likewise.
13088         * modules/unistdio/u8-asprintf: Likewise.
13089         * modules/unistdio/u8-snprintf: Likewise.
13090         * modules/unistdio/u8-sprintf: Likewise.
13091         * modules/unistdio/u8-u8-asnprintf: Likewise.
13092         * modules/unistdio/u8-u8-asprintf: Likewise.
13093         * modules/unistdio/u8-u8-snprintf: Likewise.
13094         * modules/unistdio/u8-u8-sprintf: Likewise.
13095         * modules/unistdio/u8-u8-vasnprintf: Likewise.
13096         * modules/unistdio/u8-u8-vasprintf: Likewise.
13097         * modules/unistdio/u8-u8-vsnprintf: Likewise.
13098         * modules/unistdio/u8-u8-vsprintf: Likewise.
13099         * modules/unistdio/u8-vasnprintf: Likewise.
13100         * modules/unistdio/u8-vasprintf: Likewise.
13101         * modules/unistdio/u8-vsnprintf: Likewise.
13102         * modules/unistdio/u8-vsprintf: Likewise.
13103         * modules/unistdio/u16-asnprintf: Likewise.
13104         * modules/unistdio/u16-asprintf: Likewise.
13105         * modules/unistdio/u16-snprintf: Likewise.
13106         * modules/unistdio/u16-sprintf: Likewise.
13107         * modules/unistdio/u16-u16-asnprintf: Likewise.
13108         * modules/unistdio/u16-u16-asprintf: Likewise.
13109         * modules/unistdio/u16-u16-snprintf: Likewise.
13110         * modules/unistdio/u16-u16-sprintf: Likewise.
13111         * modules/unistdio/u16-u16-vasnprintf: Likewise.
13112         * modules/unistdio/u16-u16-vasprintf: Likewise.
13113         * modules/unistdio/u16-u16-vsnprintf: Likewise.
13114         * modules/unistdio/u16-u16-vsprintf: Likewise.
13115         * modules/unistdio/u16-vasnprintf: Likewise.
13116         * modules/unistdio/u16-vasprintf: Likewise.
13117         * modules/unistdio/u16-vsnprintf: Likewise.
13118         * modules/unistdio/u16-vsprintf: Likewise.
13119         * modules/unistdio/u32-asnprintf: Likewise.
13120         * modules/unistdio/u32-asprintf: Likewise.
13121         * modules/unistdio/u32-snprintf: Likewise.
13122         * modules/unistdio/u32-sprintf: Likewise.
13123         * modules/unistdio/u32-u32-asnprintf: Likewise.
13124         * modules/unistdio/u32-u32-asprintf: Likewise.
13125         * modules/unistdio/u32-u32-snprintf: Likewise.
13126         * modules/unistdio/u32-u32-sprintf: Likewise.
13127         * modules/unistdio/u32-u32-vasnprintf: Likewise.
13128         * modules/unistdio/u32-u32-vasprintf: Likewise.
13129         * modules/unistdio/u32-u32-vsnprintf: Likewise.
13130         * modules/unistdio/u32-u32-vsprintf: Likewise.
13131         * modules/unistdio/u32-vasnprintf: Likewise.
13132         * modules/unistdio/u32-vasprintf: Likewise.
13133         * modules/unistdio/u32-vsnprintf: Likewise.
13134         * modules/unistdio/u32-vsprintf: Likewise.
13135         * modules/unistdio/ulc-asnprintf: Likewise.
13136         * modules/unistdio/ulc-asprintf: Likewise.
13137         * modules/unistdio/ulc-fprintf: Likewise.
13138         * modules/unistdio/ulc-snprintf: Likewise.
13139         * modules/unistdio/ulc-sprintf: Likewise.
13140         * modules/unistdio/ulc-vasnprintf: Likewise.
13141         * modules/unistdio/ulc-vasprintf: Likewise.
13142         * modules/unistdio/ulc-vfprintf: Likewise.
13143         * modules/unistdio/ulc-vsnprintf: Likewise.
13144         * modules/unistdio/ulc-vsprintf: Likewise.
13145         * modules/unistr/u8-check: Likewise.
13146         * modules/unistr/u8-chr: Likewise.
13147         * modules/unistr/u8-cmp: Likewise.
13148         * modules/unistr/u8-cmp2: Likewise.
13149         * modules/unistr/u8-cpy: Likewise.
13150         * modules/unistr/u8-cpy-alloc: Likewise.
13151         * modules/unistr/u8-endswith: Likewise.
13152         * modules/unistr/u8-mblen: Likewise.
13153         * modules/unistr/u8-mbsnlen: Likewise.
13154         * modules/unistr/u8-mbtouc: Likewise.
13155         * modules/unistr/u8-mbtouc-unsafe: Likewise.
13156         * modules/unistr/u8-mbtoucr: Likewise.
13157         * modules/unistr/u8-move: Likewise.
13158         * modules/unistr/u8-next: Likewise.
13159         * modules/unistr/u8-prev: Likewise.
13160         * modules/unistr/u8-set: Likewise.
13161         * modules/unistr/u8-startswith: Likewise.
13162         * modules/unistr/u8-stpcpy: Likewise.
13163         * modules/unistr/u8-stpncpy: Likewise.
13164         * modules/unistr/u8-strcat: Likewise.
13165         * modules/unistr/u8-strchr: Likewise.
13166         * modules/unistr/u8-strcmp: Likewise.
13167         * modules/unistr/u8-strcoll: Likewise.
13168         * modules/unistr/u8-strcpy: Likewise.
13169         * modules/unistr/u8-strcspn: Likewise.
13170         * modules/unistr/u8-strdup: Likewise.
13171         * modules/unistr/u8-strlen: Likewise.
13172         * modules/unistr/u8-strmblen: Likewise.
13173         * modules/unistr/u8-strmbtouc: Likewise.
13174         * modules/unistr/u8-strncat: Likewise.
13175         * modules/unistr/u8-strncmp: Likewise.
13176         * modules/unistr/u8-strncpy: Likewise.
13177         * modules/unistr/u8-strnlen: Likewise.
13178         * modules/unistr/u8-strpbrk: Likewise.
13179         * modules/unistr/u8-strrchr: Likewise.
13180         * modules/unistr/u8-strspn: Likewise.
13181         * modules/unistr/u8-strstr: Likewise.
13182         * modules/unistr/u8-strtok: Likewise.
13183         * modules/unistr/u8-to-u16: Likewise.
13184         * modules/unistr/u8-to-u32: Likewise.
13185         * modules/unistr/u8-uctomb: Likewise.
13186         * modules/unistr/u16-check: Likewise.
13187         * modules/unistr/u16-chr: Likewise.
13188         * modules/unistr/u16-cmp: Likewise.
13189         * modules/unistr/u16-cmp2: Likewise.
13190         * modules/unistr/u16-cpy: Likewise.
13191         * modules/unistr/u16-cpy-alloc: Likewise.
13192         * modules/unistr/u16-endswith: Likewise.
13193         * modules/unistr/u16-mblen: Likewise.
13194         * modules/unistr/u16-mbsnlen: Likewise.
13195         * modules/unistr/u16-mbtouc: Likewise.
13196         * modules/unistr/u16-mbtouc-unsafe: Likewise.
13197         * modules/unistr/u16-mbtoucr: Likewise.
13198         * modules/unistr/u16-move: Likewise.
13199         * modules/unistr/u16-next: Likewise.
13200         * modules/unistr/u16-prev: Likewise.
13201         * modules/unistr/u16-set: Likewise.
13202         * modules/unistr/u16-startswith: Likewise.
13203         * modules/unistr/u16-stpcpy: Likewise.
13204         * modules/unistr/u16-stpncpy: Likewise.
13205         * modules/unistr/u16-strcat: Likewise.
13206         * modules/unistr/u16-strchr: Likewise.
13207         * modules/unistr/u16-strcmp: Likewise.
13208         * modules/unistr/u16-strcoll: Likewise.
13209         * modules/unistr/u16-strcpy: Likewise.
13210         * modules/unistr/u16-strcspn: Likewise.
13211         * modules/unistr/u16-strdup: Likewise.
13212         * modules/unistr/u16-strlen: Likewise.
13213         * modules/unistr/u16-strmblen: Likewise.
13214         * modules/unistr/u16-strmbtouc: Likewise.
13215         * modules/unistr/u16-strncat: Likewise.
13216         * modules/unistr/u16-strncmp: Likewise.
13217         * modules/unistr/u16-strncpy: Likewise.
13218         * modules/unistr/u16-strnlen: Likewise.
13219         * modules/unistr/u16-strpbrk: Likewise.
13220         * modules/unistr/u16-strrchr: Likewise.
13221         * modules/unistr/u16-strspn: Likewise.
13222         * modules/unistr/u16-strstr: Likewise.
13223         * modules/unistr/u16-strtok: Likewise.
13224         * modules/unistr/u16-to-u32: Likewise.
13225         * modules/unistr/u16-to-u8: Likewise.
13226         * modules/unistr/u16-uctomb: Likewise.
13227         * modules/unistr/u32-check: Likewise.
13228         * modules/unistr/u32-chr: Likewise.
13229         * modules/unistr/u32-cmp: Likewise.
13230         * modules/unistr/u32-cmp2: Likewise.
13231         * modules/unistr/u32-cpy: Likewise.
13232         * modules/unistr/u32-cpy-alloc: Likewise.
13233         * modules/unistr/u32-endswith: Likewise.
13234         * modules/unistr/u32-mblen: Likewise.
13235         * modules/unistr/u32-mbsnlen: Likewise.
13236         * modules/unistr/u32-mbtouc: Likewise.
13237         * modules/unistr/u32-mbtouc-unsafe: Likewise.
13238         * modules/unistr/u32-mbtoucr: Likewise.
13239         * modules/unistr/u32-move: Likewise.
13240         * modules/unistr/u32-next: Likewise.
13241         * modules/unistr/u32-prev: Likewise.
13242         * modules/unistr/u32-set: Likewise.
13243         * modules/unistr/u32-startswith: Likewise.
13244         * modules/unistr/u32-stpcpy: Likewise.
13245         * modules/unistr/u32-stpncpy: Likewise.
13246         * modules/unistr/u32-strcat: Likewise.
13247         * modules/unistr/u32-strchr: Likewise.
13248         * modules/unistr/u32-strcmp: Likewise.
13249         * modules/unistr/u32-strcoll: Likewise.
13250         * modules/unistr/u32-strcpy: Likewise.
13251         * modules/unistr/u32-strcspn: Likewise.
13252         * modules/unistr/u32-strdup: Likewise.
13253         * modules/unistr/u32-strlen: Likewise.
13254         * modules/unistr/u32-strmblen: Likewise.
13255         * modules/unistr/u32-strmbtouc: Likewise.
13256         * modules/unistr/u32-strncat: Likewise.
13257         * modules/unistr/u32-strncmp: Likewise.
13258         * modules/unistr/u32-strncpy: Likewise.
13259         * modules/unistr/u32-strnlen: Likewise.
13260         * modules/unistr/u32-strpbrk: Likewise.
13261         * modules/unistr/u32-strrchr: Likewise.
13262         * modules/unistr/u32-strspn: Likewise.
13263         * modules/unistr/u32-strstr: Likewise.
13264         * modules/unistr/u32-strtok: Likewise.
13265         * modules/unistr/u32-to-u16: Likewise.
13266         * modules/unistr/u32-to-u8: Likewise.
13267         * modules/unistr/u32-uctomb: Likewise.
13268         * modules/uniwbrk/u8-wordbreaks: Likewise.
13269         * modules/uniwbrk/u16-wordbreaks: Likewise.
13270         * modules/uniwbrk/u32-wordbreaks: Likewise.
13271         * modules/uniwbrk/ulc-wordbreaks: Likewise.
13272         * modules/uniwbrk/wordbreak-property: Likewise.
13273         * modules/uniwidth/u8-strwidth: Likewise.
13274         * modules/uniwidth/u8-width: Likewise.
13275         * modules/uniwidth/u16-strwidth: Likewise.
13276         * modules/uniwidth/u16-width: Likewise.
13277         * modules/uniwidth/u32-strwidth: Likewise.
13278         * modules/uniwidth/u32-width: Likewise.
13279         * modules/uniwidth/width: Likewise.
13280         * modules/unicase/cased-tests (Makefile.am): Link all test programs
13281         with $(LIBUNISTRING).
13282         * modules/unicase/ignorable-tests: Likewise.
13283         * modules/unicase/locale-language-tests: Likewise.
13284         * modules/unicase/tolower-tests: Likewise.
13285         * modules/unicase/totitle-tests: Likewise.
13286         * modules/unicase/toupper-tests: Likewise.
13287         * modules/unicase/u8-casecmp-tests: Likewise.
13288         * modules/unicase/u8-casecoll-tests: Likewise.
13289         * modules/unicase/u8-casefold-tests: Likewise.
13290         * modules/unicase/u8-is-cased-tests: Likewise.
13291         * modules/unicase/u8-is-casefolded-tests: Likewise.
13292         * modules/unicase/u8-is-lowercase-tests: Likewise.
13293         * modules/unicase/u8-is-titlecase-tests: Likewise.
13294         * modules/unicase/u8-is-uppercase-tests: Likewise.
13295         * modules/unicase/u8-tolower-tests: Likewise.
13296         * modules/unicase/u8-totitle-tests: Likewise.
13297         * modules/unicase/u8-toupper-tests: Likewise.
13298         * modules/unicase/u16-casecmp-tests: Likewise.
13299         * modules/unicase/u16-casecoll-tests: Likewise.
13300         * modules/unicase/u16-casefold-tests: Likewise.
13301         * modules/unicase/u16-is-cased-tests: Likewise.
13302         * modules/unicase/u16-is-casefolded-tests: Likewise.
13303         * modules/unicase/u16-is-lowercase-tests: Likewise.
13304         * modules/unicase/u16-is-titlecase-tests: Likewise.
13305         * modules/unicase/u16-is-uppercase-tests: Likewise.
13306         * modules/unicase/u16-tolower-tests: Likewise.
13307         * modules/unicase/u16-totitle-tests: Likewise.
13308         * modules/unicase/u16-toupper-tests: Likewise.
13309         * modules/unicase/u32-casecmp-tests: Likewise.
13310         * modules/unicase/u32-casecoll-tests: Likewise.
13311         * modules/unicase/u32-casefold-tests: Likewise.
13312         * modules/unicase/u32-is-cased-tests: Likewise.
13313         * modules/unicase/u32-is-casefolded-tests: Likewise.
13314         * modules/unicase/u32-is-lowercase-tests: Likewise.
13315         * modules/unicase/u32-is-titlecase-tests: Likewise.
13316         * modules/unicase/u32-is-uppercase-tests: Likewise.
13317         * modules/unicase/u32-tolower-tests: Likewise.
13318         * modules/unicase/u32-totitle-tests: Likewise.
13319         * modules/unicase/u32-toupper-tests: Likewise.
13320         * modules/unicase/ulc-casecmp-tests: Likewise.
13321         * modules/unicase/ulc-casecoll-tests: Likewise.
13322         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
13323         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
13324         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
13325         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
13326         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
13327         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
13328         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
13329         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
13330         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
13331         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
13332         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
13333         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
13334         * modules/unictype/bidicategory-byname-tests: Likewise.
13335         * modules/unictype/bidicategory-name-tests: Likewise.
13336         * modules/unictype/bidicategory-of-tests: Likewise.
13337         * modules/unictype/bidicategory-test-tests: Likewise.
13338         * modules/unictype/block-list-tests: Likewise.
13339         * modules/unictype/block-of-tests: Likewise.
13340         * modules/unictype/block-test-tests: Likewise.
13341         * modules/unictype/category-C-tests: Likewise.
13342         * modules/unictype/category-Cc-tests: Likewise.
13343         * modules/unictype/category-Cf-tests: Likewise.
13344         * modules/unictype/category-Cn-tests: Likewise.
13345         * modules/unictype/category-Co-tests: Likewise.
13346         * modules/unictype/category-Cs-tests: Likewise.
13347         * modules/unictype/category-L-tests: Likewise.
13348         * modules/unictype/category-Ll-tests: Likewise.
13349         * modules/unictype/category-Lm-tests: Likewise.
13350         * modules/unictype/category-Lo-tests: Likewise.
13351         * modules/unictype/category-Lt-tests: Likewise.
13352         * modules/unictype/category-Lu-tests: Likewise.
13353         * modules/unictype/category-M-tests: Likewise.
13354         * modules/unictype/category-Mc-tests: Likewise.
13355         * modules/unictype/category-Me-tests: Likewise.
13356         * modules/unictype/category-Mn-tests: Likewise.
13357         * modules/unictype/category-N-tests: Likewise.
13358         * modules/unictype/category-Nd-tests: Likewise.
13359         * modules/unictype/category-Nl-tests: Likewise.
13360         * modules/unictype/category-No-tests: Likewise.
13361         * modules/unictype/category-P-tests: Likewise.
13362         * modules/unictype/category-Pc-tests: Likewise.
13363         * modules/unictype/category-Pd-tests: Likewise.
13364         * modules/unictype/category-Pe-tests: Likewise.
13365         * modules/unictype/category-Pf-tests: Likewise.
13366         * modules/unictype/category-Pi-tests: Likewise.
13367         * modules/unictype/category-Po-tests: Likewise.
13368         * modules/unictype/category-Ps-tests: Likewise.
13369         * modules/unictype/category-S-tests: Likewise.
13370         * modules/unictype/category-Sc-tests: Likewise.
13371         * modules/unictype/category-Sk-tests: Likewise.
13372         * modules/unictype/category-Sm-tests: Likewise.
13373         * modules/unictype/category-So-tests: Likewise.
13374         * modules/unictype/category-Z-tests: Likewise.
13375         * modules/unictype/category-Zl-tests: Likewise.
13376         * modules/unictype/category-Zp-tests: Likewise.
13377         * modules/unictype/category-Zs-tests: Likewise.
13378         * modules/unictype/category-and-not-tests: Likewise.
13379         * modules/unictype/category-and-tests: Likewise.
13380         * modules/unictype/category-byname-tests: Likewise.
13381         * modules/unictype/category-name-tests: Likewise.
13382         * modules/unictype/category-none-tests: Likewise.
13383         * modules/unictype/category-of-tests: Likewise.
13384         * modules/unictype/category-or-tests: Likewise.
13385         * modules/unictype/category-test-withtable-tests: Likewise.
13386         * modules/unictype/combining-class-tests: Likewise.
13387         * modules/unictype/ctype-alnum-tests: Likewise.
13388         * modules/unictype/ctype-alpha-tests: Likewise.
13389         * modules/unictype/ctype-blank-tests: Likewise.
13390         * modules/unictype/ctype-cntrl-tests: Likewise.
13391         * modules/unictype/ctype-digit-tests: Likewise.
13392         * modules/unictype/ctype-graph-tests: Likewise.
13393         * modules/unictype/ctype-lower-tests: Likewise.
13394         * modules/unictype/ctype-print-tests: Likewise.
13395         * modules/unictype/ctype-punct-tests: Likewise.
13396         * modules/unictype/ctype-space-tests: Likewise.
13397         * modules/unictype/ctype-upper-tests: Likewise.
13398         * modules/unictype/ctype-xdigit-tests: Likewise.
13399         * modules/unictype/decimal-digit-tests: Likewise.
13400         * modules/unictype/digit-tests: Likewise.
13401         * modules/unictype/mirror-tests: Likewise.
13402         * modules/unictype/numeric-tests: Likewise.
13403         * modules/unictype/property-alphabetic-tests: Likewise.
13404         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
13405         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
13406         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
13407         * modules/unictype/property-bidi-block-separator-tests: Likewise.
13408         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
13409         * modules/unictype/property-bidi-common-separator-tests: Likewise.
13410         * modules/unictype/property-bidi-control-tests: Likewise.
13411         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
13412         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
13413         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
13414         * modules/unictype/property-bidi-european-digit-tests: Likewise.
13415         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
13416         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
13417         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
13418         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
13419         * modules/unictype/property-bidi-pdf-tests: Likewise.
13420         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
13421         * modules/unictype/property-bidi-whitespace-tests: Likewise.
13422         * modules/unictype/property-byname-tests: Likewise.
13423         * modules/unictype/property-combining-tests: Likewise.
13424         * modules/unictype/property-composite-tests: Likewise.
13425         * modules/unictype/property-currency-symbol-tests: Likewise.
13426         * modules/unictype/property-dash-tests: Likewise.
13427         * modules/unictype/property-decimal-digit-tests: Likewise.
13428         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
13429         * modules/unictype/property-deprecated-tests: Likewise.
13430         * modules/unictype/property-diacritic-tests: Likewise.
13431         * modules/unictype/property-extender-tests: Likewise.
13432         * modules/unictype/property-format-control-tests: Likewise.
13433         * modules/unictype/property-grapheme-base-tests: Likewise.
13434         * modules/unictype/property-grapheme-extend-tests: Likewise.
13435         * modules/unictype/property-grapheme-link-tests: Likewise.
13436         * modules/unictype/property-hex-digit-tests: Likewise.
13437         * modules/unictype/property-hyphen-tests: Likewise.
13438         * modules/unictype/property-id-continue-tests: Likewise.
13439         * modules/unictype/property-id-start-tests: Likewise.
13440         * modules/unictype/property-ideographic-tests: Likewise.
13441         * modules/unictype/property-ids-binary-operator-tests: Likewise.
13442         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
13443         * modules/unictype/property-ignorable-control-tests: Likewise.
13444         * modules/unictype/property-iso-control-tests: Likewise.
13445         * modules/unictype/property-join-control-tests: Likewise.
13446         * modules/unictype/property-left-of-pair-tests: Likewise.
13447         * modules/unictype/property-line-separator-tests: Likewise.
13448         * modules/unictype/property-logical-order-exception-tests: Likewise.
13449         * modules/unictype/property-lowercase-tests: Likewise.
13450         * modules/unictype/property-math-tests: Likewise.
13451         * modules/unictype/property-non-break-tests: Likewise.
13452         * modules/unictype/property-not-a-character-tests: Likewise.
13453         * modules/unictype/property-numeric-tests: Likewise.
13454         * modules/unictype/property-other-alphabetic-tests: Likewise.
13455         * modules/unictype/property-other-default-ignorable-code-point-tests:
13456         Likewise.
13457         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
13458         * modules/unictype/property-other-id-continue-tests: Likewise.
13459         * modules/unictype/property-other-id-start-tests: Likewise.
13460         * modules/unictype/property-other-lowercase-tests: Likewise.
13461         * modules/unictype/property-other-math-tests: Likewise.
13462         * modules/unictype/property-other-uppercase-tests: Likewise.
13463         * modules/unictype/property-paired-punctuation-tests: Likewise.
13464         * modules/unictype/property-paragraph-separator-tests: Likewise.
13465         * modules/unictype/property-pattern-syntax-tests: Likewise.
13466         * modules/unictype/property-pattern-white-space-tests: Likewise.
13467         * modules/unictype/property-private-use-tests: Likewise.
13468         * modules/unictype/property-punctuation-tests: Likewise.
13469         * modules/unictype/property-quotation-mark-tests: Likewise.
13470         * modules/unictype/property-radical-tests: Likewise.
13471         * modules/unictype/property-sentence-terminal-tests: Likewise.
13472         * modules/unictype/property-soft-dotted-tests: Likewise.
13473         * modules/unictype/property-space-tests: Likewise.
13474         * modules/unictype/property-terminal-punctuation-tests: Likewise.
13475         * modules/unictype/property-test-tests: Likewise.
13476         * modules/unictype/property-titlecase-tests: Likewise.
13477         * modules/unictype/property-unassigned-code-value-tests: Likewise.
13478         * modules/unictype/property-unified-ideograph-tests: Likewise.
13479         * modules/unictype/property-uppercase-tests: Likewise.
13480         * modules/unictype/property-variation-selector-tests: Likewise.
13481         * modules/unictype/property-white-space-tests: Likewise.
13482         * modules/unictype/property-xid-continue-tests: Likewise.
13483         * modules/unictype/property-xid-start-tests: Likewise.
13484         * modules/unictype/property-zero-width-tests: Likewise.
13485         * modules/unictype/scripts-tests: Likewise.
13486         * modules/unictype/syntax-c-ident-tests: Likewise.
13487         * modules/unictype/syntax-c-whitespace-tests: Likewise.
13488         * modules/unictype/syntax-java-ident-tests: Likewise.
13489         * modules/unictype/syntax-java-whitespace-tests: Likewise.
13490         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
13491         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
13492         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
13493         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
13494         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
13495         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
13496         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
13497         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
13498         * modules/uniname/uniname-tests: Likewise.
13499         * modules/uninorm/canonical-decomposition-tests: Likewise.
13500         * modules/uninorm/compat-decomposition-tests: Likewise.
13501         * modules/uninorm/composition-tests: Likewise.
13502         * modules/uninorm/decomposing-form-tests: Likewise.
13503         * modules/uninorm/decomposition-tests: Likewise.
13504         * modules/uninorm/filter-tests: Likewise.
13505         * modules/uninorm/nfc-tests: Likewise.
13506         * modules/uninorm/nfd-tests: Likewise.
13507         * modules/uninorm/nfkc-tests: Likewise.
13508         * modules/uninorm/nfkd-tests: Likewise.
13509         * modules/uninorm/u8-normcmp-tests: Likewise.
13510         * modules/uninorm/u8-normcoll-tests: Likewise.
13511         * modules/uninorm/u16-normcmp-tests: Likewise.
13512         * modules/uninorm/u16-normcoll-tests: Likewise.
13513         * modules/uninorm/u32-normcmp-tests: Likewise.
13514         * modules/uninorm/u32-normcoll-tests: Likewise.
13515         * modules/unistdio/u8-asnprintf-tests: Likewise.
13516         * modules/unistdio/u8-vasnprintf-tests: Likewise.
13517         * modules/unistdio/u8-vasprintf-tests: Likewise.
13518         * modules/unistdio/u8-vsnprintf-tests: Likewise.
13519         * modules/unistdio/u8-vsprintf-tests: Likewise.
13520         * modules/unistdio/u16-asnprintf-tests: Likewise.
13521         * modules/unistdio/u16-vasnprintf-tests: Likewise.
13522         * modules/unistdio/u16-vasprintf-tests: Likewise.
13523         * modules/unistdio/u16-vsnprintf-tests: Likewise.
13524         * modules/unistdio/u16-vsprintf-tests: Likewise.
13525         * modules/unistdio/u32-asnprintf-tests: Likewise.
13526         * modules/unistdio/u32-vasnprintf-tests: Likewise.
13527         * modules/unistdio/u32-vasprintf-tests: Likewise.
13528         * modules/unistdio/u32-vsnprintf-tests: Likewise.
13529         * modules/unistdio/u32-vsprintf-tests: Likewise.
13530         * modules/unistdio/ulc-asnprintf-tests: Likewise.
13531         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
13532         * modules/unistdio/ulc-vasprintf-tests: Likewise.
13533         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
13534         * modules/unistdio/ulc-vsprintf-tests: Likewise.
13535         * modules/unistr/u8-check-tests: Likewise.
13536         * modules/unistr/u8-chr-tests: Likewise.
13537         * modules/unistr/u8-cmp-tests: Likewise.
13538         * modules/unistr/u8-cmp2-tests: Likewise.
13539         * modules/unistr/u8-cpy-alloc-tests: Likewise.
13540         * modules/unistr/u8-cpy-tests: Likewise.
13541         * modules/unistr/u8-mblen-tests: Likewise.
13542         * modules/unistr/u8-mbsnlen-tests: Likewise.
13543         * modules/unistr/u8-mbtouc-tests: Likewise.
13544         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
13545         * modules/unistr/u8-mbtoucr-tests: Likewise.
13546         * modules/unistr/u8-move-tests: Likewise.
13547         * modules/unistr/u8-next-tests: Likewise.
13548         * modules/unistr/u8-prev-tests: Likewise.
13549         * modules/unistr/u8-set-tests: Likewise.
13550         * modules/unistr/u8-stpcpy-tests: Likewise.
13551         * modules/unistr/u8-stpncpy-tests: Likewise.
13552         * modules/unistr/u8-strcat-tests: Likewise.
13553         * modules/unistr/u8-strcmp-tests: Likewise.
13554         * modules/unistr/u8-strcoll-tests: Likewise.
13555         * modules/unistr/u8-strcpy-tests: Likewise.
13556         * modules/unistr/u8-strdup-tests: Likewise.
13557         * modules/unistr/u8-strlen-tests: Likewise.
13558         * modules/unistr/u8-strmblen-tests: Likewise.
13559         * modules/unistr/u8-strmbtouc-tests: Likewise.
13560         * modules/unistr/u8-strncat-tests: Likewise.
13561         * modules/unistr/u8-strncmp-tests: Likewise.
13562         * modules/unistr/u8-strncpy-tests: Likewise.
13563         * modules/unistr/u8-strnlen-tests: Likewise.
13564         * modules/unistr/u8-to-u16-tests: Likewise.
13565         * modules/unistr/u8-to-u32-tests: Likewise.
13566         * modules/unistr/u8-uctomb-tests: Likewise.
13567         * modules/unistr/u16-check-tests: Likewise.
13568         * modules/unistr/u16-chr-tests: Likewise.
13569         * modules/unistr/u16-cmp-tests: Likewise.
13570         * modules/unistr/u16-cmp2-tests: Likewise.
13571         * modules/unistr/u16-cpy-alloc-tests: Likewise.
13572         * modules/unistr/u16-cpy-tests: Likewise.
13573         * modules/unistr/u16-mblen-tests: Likewise.
13574         * modules/unistr/u16-mbsnlen-tests: Likewise.
13575         * modules/unistr/u16-mbtouc-tests: Likewise.
13576         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
13577         * modules/unistr/u16-mbtoucr-tests: Likewise.
13578         * modules/unistr/u16-move-tests: Likewise.
13579         * modules/unistr/u16-next-tests: Likewise.
13580         * modules/unistr/u16-prev-tests: Likewise.
13581         * modules/unistr/u16-set-tests: Likewise.
13582         * modules/unistr/u16-stpcpy-tests: Likewise.
13583         * modules/unistr/u16-stpncpy-tests: Likewise.
13584         * modules/unistr/u16-strcat-tests: Likewise.
13585         * modules/unistr/u16-strcmp-tests: Likewise.
13586         * modules/unistr/u16-strcoll-tests: Likewise.
13587         * modules/unistr/u16-strcpy-tests: Likewise.
13588         * modules/unistr/u16-strdup-tests: Likewise.
13589         * modules/unistr/u16-strlen-tests: Likewise.
13590         * modules/unistr/u16-strmblen-tests: Likewise.
13591         * modules/unistr/u16-strmbtouc-tests: Likewise.
13592         * modules/unistr/u16-strncat-tests: Likewise.
13593         * modules/unistr/u16-strncmp-tests: Likewise.
13594         * modules/unistr/u16-strncpy-tests: Likewise.
13595         * modules/unistr/u16-strnlen-tests: Likewise.
13596         * modules/unistr/u16-to-u32-tests: Likewise.
13597         * modules/unistr/u16-to-u8-tests: Likewise.
13598         * modules/unistr/u16-uctomb-tests: Likewise.
13599         * modules/unistr/u32-check-tests: Likewise.
13600         * modules/unistr/u32-chr-tests: Likewise.
13601         * modules/unistr/u32-cmp-tests: Likewise.
13602         * modules/unistr/u32-cmp2-tests: Likewise.
13603         * modules/unistr/u32-cpy-alloc-tests: Likewise.
13604         * modules/unistr/u32-cpy-tests: Likewise.
13605         * modules/unistr/u32-mblen-tests: Likewise.
13606         * modules/unistr/u32-mbsnlen-tests: Likewise.
13607         * modules/unistr/u32-mbtouc-tests: Likewise.
13608         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
13609         * modules/unistr/u32-mbtoucr-tests: Likewise.
13610         * modules/unistr/u32-move-tests: Likewise.
13611         * modules/unistr/u32-next-tests: Likewise.
13612         * modules/unistr/u32-prev-tests: Likewise.
13613         * modules/unistr/u32-set-tests: Likewise.
13614         * modules/unistr/u32-stpcpy-tests: Likewise.
13615         * modules/unistr/u32-stpncpy-tests: Likewise.
13616         * modules/unistr/u32-strcat-tests: Likewise.
13617         * modules/unistr/u32-strcmp-tests: Likewise.
13618         * modules/unistr/u32-strcoll-tests: Likewise.
13619         * modules/unistr/u32-strcpy-tests: Likewise.
13620         * modules/unistr/u32-strdup-tests: Likewise.
13621         * modules/unistr/u32-strlen-tests: Likewise.
13622         * modules/unistr/u32-strmblen-tests: Likewise.
13623         * modules/unistr/u32-strmbtouc-tests: Likewise.
13624         * modules/unistr/u32-strncat-tests: Likewise.
13625         * modules/unistr/u32-strncmp-tests: Likewise.
13626         * modules/unistr/u32-strncpy-tests: Likewise.
13627         * modules/unistr/u32-strnlen-tests: Likewise.
13628         * modules/unistr/u32-to-u16-tests: Likewise.
13629         * modules/unistr/u32-to-u8-tests: Likewise.
13630         * modules/unistr/u32-uctomb-tests: Likewise.
13631         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
13632         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
13633         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
13634         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
13635         * modules/uniwidth/u8-strwidth-tests: Likewise.
13636         * modules/uniwidth/u8-width-tests: Likewise.
13637         * modules/uniwidth/u16-strwidth-tests: Likewise.
13638         * modules/uniwidth/u16-width-tests: Likewise.
13639         * modules/uniwidth/u32-strwidth-tests: Likewise.
13640         * modules/uniwidth/u32-width-tests: Likewise.
13641         * modules/uniwidth/width-tests: Likewise.
13642
13643 2010-05-18  Richard Jones  <rjones@redhat.com>
13644
13645         doc: users.txt: list hivex
13646         * users.txt: Add hivex.
13647
13648 2010-05-18  Richard Jones  <rjones@redhat.com>
13649
13650         doc: users.txt: list febootstrap
13651         * users.txt: Add febootstrap.
13652
13653 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
13654
13655         bootstrap: fix an error when gnulib is not used as a git submodule
13656         * build-aux/bootstrap (gnulib_path): If its length is zero then
13657         assign "gnulib" to it.
13658         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
13659
13660 2010-05-16  Bruno Haible  <bruno@clisp.org>
13661
13662         Avoid autoconf warnings about AM_ICONV.
13663         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
13664         2.64.
13665
13666 2010-05-16  Bruno Haible  <bruno@clisp.org>
13667
13668         absolute-header: Make the macro usable in more situations.
13669         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
13670         from gl_ABSOLUTE_HEADER.
13671         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
13672
13673 2010-05-16  James Youngman  <jay@gnu.org>
13674
13675         doc: update users.txt
13676         * users.txt: Add CSSC.
13677
13678 2010-05-16  Jim Meyering  <meyering@redhat.com>
13679
13680         init.sh: fix an error in the previous change; add more comments
13681         * tests/init.sh: Compare exit code in loop against 9, not 2.
13682         Patch by Bruno Haible.
13683         Make the two tests more similar by adding an empty "then" clause.
13684         Add comments.
13685
13686         init.sh: avoid unnecessary shell re-exec
13687         * tests/init.sh: Improve the re-exec-required check to first test the
13688         current shell.  If it passes the test, do not search for a shell that
13689         does pass, and do not re-exec.  This test is particularly contorted to
13690         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
13691         of $(...) evokes a syntax error and causes immediate shell exit with
13692         status 2.  Bruno Haible reported that the re-exec made it impossible
13693         to single-step through any init.sh-using script.
13694
13695 2010-05-16  Bruno Haible  <bruno@clisp.org>
13696
13697         Fix collision between gnulib's and libintl's printf replacements.
13698         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
13699         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
13700         (printf): When using GNU C, map the __printf__ function to rpl_printf
13701         via __asm__. When not using GNU C, define rpl_printf instead of
13702         __printf__.
13703         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
13704         commit.
13705         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
13706         commit.
13707         * m4/asm-underscore.m4: New file.
13708         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
13709         * modules/stdio (Files): Add m4/asm-underscore.m4.
13710         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
13711         Reported by Ben Pfaff.
13712
13713 2010-05-16  Bruno Haible  <bruno@clisp.org>
13714
13715         verify: Avoid skipping the test on openSUSE 11.0.
13716         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
13717
13718 2010-05-13  Bruno Haible  <bruno@clisp.org>
13719
13720         Avoid useless warnings from G++.
13721         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
13722         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
13723         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13724
13725 2010-05-11  Jim Meyering  <meyering@redhat.com>
13726
13727         maint.mk: tweak preceding change
13728         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
13729         regexps tighter by anchoring at EOL, and make the new group "shy"
13730         for slightly decreased overhead.
13731
13732 2010-05-11  Eric Blake  <eblake@redhat.com>
13733
13734         maint.mk: gnulib doesn't guarantee NSIG
13735         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
13736
13737 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13738
13739         test-pwrite.c: Remove unused variable declaration.
13740         * tests/test-pwrite.c (main): Remove read_buf declaration.
13741
13742         Remove useless test-pwrite.sh file.
13743         * tests/test-pwrite.sh: Delete file.
13744         * modules/pwrite-tests: Remove references.
13745         Reported by Bruno Haible.
13746
13747 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13748
13749         init.sh: fix a typo
13750         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
13751
13752 2010-05-10  Jim Meyering  <meyering@redhat.com>
13753
13754         maint.mk: avoid using a temporary file in the always-defined-macros check
13755         * top/maint.mk (.re-defmac): Remove rule.
13756         (gl_trap_): Remove definition.
13757         (sc_prohibit_always-defined_macros): Rewrite not to create and
13758         depend on a temporary file.  Instead, depend on GNU grep's ability
13759         to read a list of regular expressions from stdin when given "-f -".
13760
13761 2010-05-09  Bruno Haible  <bruno@clisp.org>
13762
13763         Update to GNU gettext 0.18, part 1.
13764         * m4/gettext.m4: Update to GNU gettext 0.18.
13765         * m4/intl.m4: Likewise.
13766         * m4/po.m4: Likewise.
13767         * modules/gettext (Files): Add m4/fcntl-o.m4.
13768         (configure.ac): Require gettext infrastructure from version 0.18.
13769
13770 2010-05-09  Jim Meyering  <meyering@redhat.com>
13771
13772         init.sh: enable MALLOC_PERTURB_
13773         * tests/init.sh: Enable glibc's malloc-perturbing option.
13774
13775         maint.mk: improve sc_cross_check_PATH_usage_in_tests
13776         With my recent change in init.sh from the two-line form:
13777             -#   : ${srcdir=.}
13778             -#   . "$srcdir/init.sh"; path_prepend_ .
13779             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
13780         I noticed that using the one-line form would cause this test
13781         to fail with a false-positive, or to stop working altogether,
13782         depending on whether help-version changed or all the tests did.
13783         * top/maint.mk (_hv_regex): Remove this definition.
13784         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
13785         (_hv_regex_strong): Use a stronger regex to check for conformance.
13786         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
13787         Give a separate diagnostic for lack of conforming use.
13788
13789         maint.mk: prohibit definition of symbols defined by gnulib
13790         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
13791         definition of symbols defined by gnulib.
13792
13793 2010-05-09  Bruno Haible  <bruno@clisp.org>
13794
13795         acl: Avoid test failure on Cygwin-hosted mingw.
13796         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
13797
13798 2010-05-09  Bruno Haible  <bruno@clisp.org>
13799
13800         error: Use system's fcntl function.
13801         * lib/error.c (fcntl): Undefine.
13802
13803 2010-05-09  Jim Meyering  <meyering@redhat.com>
13804
13805         verify: adjust formatting to be more consistent
13806         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
13807         argument-list '('s, and after one comma.
13808
13809 2010-05-09  Bruno Haible  <bruno@clisp.org>
13810
13811         error: More reliable output on mingw.
13812         * lib/error.c: Include <windows.h>.
13813         (is_open): New function.
13814         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
13815         defined.
13816
13817 2010-05-09  Bruno Haible  <bruno@clisp.org>
13818
13819         vasnprintf: Fix syntax errors in libintl build on mingw.
13820         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
13821         pad_ourselves and prec_ourselves after use.
13822
13823 2010-05-08  Bruno Haible  <bruno@clisp.org>
13824
13825         * lib/config.charset: Update comments for Cygwin 1.7.
13826         * lib/localcharset.c: Likewise.
13827
13828 2010-05-07  Jim Meyering  <meyering@redhat.com>
13829
13830         init.sh: improve comments
13831         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
13832         . "${srcdir=.}/init.sh"; path_prepend_ .
13833         Add a note about path_prepend_ and the alternative of using
13834         TESTS_ENVIRONMENT.
13835
13836 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
13837
13838         exclude: Unescape hashed patterns in wildcard mode.
13839         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
13840         to the hash list.
13841         * tests/test-exclude8.sh: New test case.
13842         * modules/exclude-tests: Add new test.
13843
13844 2010-05-05  Eric Blake  <eblake@redhat.com>
13845
13846         verify: automate tests
13847         * modules/verify-tests: New module.
13848         * tests/test-verify.sh: New file.
13849         * tests/test-verify.c: Guard each negative test with a unique id.
13850         Also avoid warning about unused left hand of comma expressions.
13851
13852 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13853
13854         Further improvements to verify.h, suggested by Eric Blake.
13855         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
13856         the GL_* versions, to avoid collision with OpenGL.
13857         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
13858         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
13859         than testing merely whether it's defined.
13860
13861         Modify verify.h to pacify gcc -Wredundant_decls.
13862         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
13863         These use the prefix "GL_" since they're likely to be useful elsewhere.
13864         We may need to break them out into a different .h file.
13865         (__COUNTER__): Define to 0 if the compiler doesn't support it.
13866         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
13867         of verify_function__.
13868
13869 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13870
13871         Tests for module pwrite.
13872         * modules/pwrite-tests: New file.
13873         * tests/test-pwrite.sh: New file.
13874         * tests/test-pwrite.c: New file.
13875
13876         New module pwrite.
13877         * lib/unistd.in.h (pwrite): New declaration.
13878         * lib/pwrite.c: New file, from glibc with modifications.
13879         * m4/pwrite.m4: New file.
13880         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
13881         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
13882         REPLACE_PWRITE.
13883         * modules/pwrite: New file.
13884         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
13885         REPLACE_PWRITE.
13886         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
13887         * doc/posix-functions/pwrite.texi: Mention the new module.
13888
13889 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13890
13891         pread: Update documentation.
13892         * doc/posix-functions/pread.texi: Mention the 'pread' module.
13893
13894 2010-05-04  Eric Blake  <eblake@redhat.com>
13895
13896         docs: update cygwin progress
13897         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
13898         this bug.
13899         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
13900         Added in cygwin 1.7.2.
13901         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
13902         Likewise.
13903         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
13904         Likewise.
13905         * doc/glibc-functions/dup3.texi (dup3): Likewise.
13906         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13907         * doc/glibc-functions/accept4.texi (accept4): Likewise.
13908         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
13909         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
13910         Mention nproc module.
13911         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
13912         bug in cygwin 1.7.5 addition.
13913         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
13914         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
13915         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
13916         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
13917         1.7.5.
13918         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
13919         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
13920         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
13921         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
13922         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
13923         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
13924         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
13925         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
13926         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
13927         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
13928         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
13929         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
13930         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
13931         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
13932         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
13933         Likewise.
13934         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
13935         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
13936         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
13937         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
13938         Likewise.
13939         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
13940         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
13941         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
13942         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
13943         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
13944         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
13945         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
13946         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
13947         Likewise.
13948         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
13949         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
13950         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
13951         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
13952         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
13953         Likewise.
13954         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
13955         Likewise.
13956         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
13957         Likewise.
13958         * doc/glibc-functions/xdrrec_endofrecord.texi
13959         (xdrrec_endofrecord): Likewise.
13960         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
13961         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
13962         Likewise.
13963         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
13964         Likewise.
13965
13966 2010-05-04  Jim Meyering  <meyering@redhat.com>
13967
13968         gendocs.sh: make its "-s FILE" option more useful
13969         * build-aux/gendocs.sh: When honoring the -s FILE option, update
13970         $PACKAGE to reflect the probably-different basename of "FILE".
13971
13972 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13973
13974         bootstrap: don't ignore download_po_files failure
13975         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
13976         failure.
13977
13978 2010-05-03  Jim Meyering  <meyering@redhat.com>
13979
13980         maint.mk: allow to pass options to gendocs.sh
13981         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
13982         (gendocs_options_): New overridable variable.
13983
13984         gnu-web-doc-update: don't ignore configure or build failure
13985         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
13986
13987         announce-gen: backslash-escape '@'s in --help output
13988         * build-aux/announce-gen: Fix syntax errors.
13989
13990         maint.mk, announce-gen: allow project-specific announcement mail headers
13991         * top/maint.mk (translation_project_): Define default.
13992         (announcement_Cc_, announcement_mail_headers_): Likewise.
13993         (announcement): Invoke announce-gen with new --mail-headers option.
13994         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
13995
13996         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
13997         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
13998         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
13999         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
14000         line in the "err2" output file when running "make check" in verbose
14001         mode (i.e., with set -x enabled).
14002
14003 2010-05-03  Bruno Haible  <bruno@clisp.org>
14004
14005         wctob: Fix for weird platforms.
14006         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
14007         argument value.
14008
14009 2010-05-03  Jim Meyering  <meyering@redhat.com>
14010
14011         maint.mk: prohibit unwarranted use of <strings.h>
14012         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
14013         strings.h in a file that does not also use strcasecmp, strncasecmp,
14014         ffs or ffsll.
14015
14016         maint.mk: remove obsolete comments
14017         * top/maint.mk: Remove stale, commented-out rules.
14018
14019 2010-05-02  Bruno Haible  <bruno@clisp.org>
14020
14021         wcwidth: Declare also when it's aliased.
14022         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
14023         macro.
14024
14025 2010-05-02  Bruno Haible  <bruno@clisp.org>
14026
14027         Fix regression from 2010-04-25.
14028         * gnulib-tool (func_modules_transitive_closure): Check the status of
14029         all modules, not only of the tests that are of the form foo-tests where
14030         foo is a module.
14031
14032 2010-05-02  Bruno Haible  <bruno@clisp.org>
14033
14034         wctob: Work around nasty Cygwin 1.7.2 bug.
14035         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
14036         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
14037
14038 2010-05-01  Bruno Haible  <bruno@clisp.org>
14039
14040         fpurge: Sharper test.
14041         * tests/test-fpurge.c (main): Add one more ftell check.
14042         * modules/fpurge-tests (Depends-on): Add ftell.
14043         Suggested by Eric Blake.
14044
14045 2010-05-01  Bruno Haible  <bruno@clisp.org>
14046
14047         ftello: Another test.
14048         * tests/test-ftello3.c: New file.
14049         * modules/ftello-tests (Files): Add it.
14050         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14051         MOSTLYCLEANFILES.
14052
14053         ftell: Another test.
14054         * tests/test-ftell3.c: New file.
14055         * modules/ftell-tests (Files): Add it.
14056         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14057         MOSTLYCLEANFILES.
14058
14059 2010-05-01  Bruno Haible  <bruno@clisp.org>
14060
14061         ftell, ftello: Work around Solaris bug.
14062         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
14063         * lib/ftello.c: Include stdio-impl.h.
14064         (ftello): On Solaris, when _IOWRT is set, compute the result without
14065         looking at _IOREAD.
14066         * modules/ftello (Files): Add lib/stdio-impl.h.
14067         * doc/posix-functions/ftell.texi: Mention Solaris bug.
14068         * doc/posix-functions/ftello.texi: Likewise.
14069         Reported by Eric Blake.
14070
14071 2010-05-01  Bruno Haible  <bruno@clisp.org>
14072
14073         freading: Adapt to special meaning of _IOREAD flag on Solaris.
14074         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
14075         the _IOWRT flag is also set.
14076
14077 2010-05-01  Bruno Haible  <bruno@clisp.org>
14078
14079         Fix doc about a HP-UX stdio bug.
14080         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
14081         * doc/posix-functions/ftello.texi: Likewise.
14082
14083 2010-05-01  Bruno Haible  <bruno@clisp.org>
14084
14085         lseek test: Fix failure on Solaris.
14086         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
14087         output.
14088
14089 2010-04-30  Jim Meyering  <meyering@redhat.com>
14090
14091         bootstrap: don't ignore failure to generate po*/Makevars
14092         * build-aux/bootstrap (with_gettext): Don't ignore failure
14093         to create po/Makevars or runtime-po/Makevars.
14094
14095 2010-04-29  Eric Blake  <eblake@redhat.com>
14096
14097         headers: relax license to LGPLv2+
14098         * modules/fcntl-h (License): Relax license.
14099         * modules/getopt-posix (License): Likewise.
14100         * modules/locale (License): Likewise.
14101         * modules/math (License): Likewise.
14102         * modules/pty (License): Likewise.
14103         * modules/sched (License): Likewise.
14104         * modules/search (License): Likewise.
14105         * modules/spawn (License): Likewise.
14106         * modules/stdarg (License): Likewise.
14107         * modules/sysexits (License): Likewise.
14108
14109 2010-04-29  Jim Meyering  <meyering@redhat.com>
14110
14111         inttypes: relax license to LGPLv2+
14112         * modules/inttypes (License): Relax license.
14113
14114 2010-04-29  Simon Josefsson  <simon@josefsson.org>
14115
14116         * top/maint.mk (indent): Run twice to produce idempotent results.
14117
14118 2010-04-28  Bruno Haible  <bruno@clisp.org>
14119
14120         getdate: Generate getdate.c in the source directory.
14121         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
14122         MOSTLYCLEANFILES.
14123         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
14124
14125 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
14126
14127         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
14128         is not declared as a const *; avoid warnings in that case.
14129
14130 2010-04-28  Eric Blake  <eblake@redhat.com>
14131
14132         canonicalize-lgpl: avoid compiler warning
14133         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
14134         declaration' / 'extraneous semicolon' warning with some compilers.
14135         Reported by Andreas Gruenbacher.
14136
14137 2010-04-28  Jim Meyering  <meyering@redhat.com>
14138
14139         init.sh: ensure a more reliable exit status when exiting via trap
14140         * tests/init.sh (setup_): Don't rely on $? in signal handler.
14141         Inspired by patches from Dmitry V. Levin.
14142         Also trap on signal 3 (SIGQUIT).
14143
14144 2010-04-27  Bruno Haible  <bruno@clisp.org>
14145
14146         Update doc about utimes().
14147         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
14148         'utimens' module.
14149         Reported by Andreas Gruenbacher <agruen@suse.de>.
14150
14151 2010-04-27  Eric Blake  <eblake@redhat.com>
14152
14153         full-read, full-write: relax license
14154         * modules/full-read (License): Drop to LGPLv2+.
14155         * modules/full-write (License): Likewise.
14156         * modules/safe-read (License): Likewise.
14157         * modules/safe-write (License): Likewise.
14158
14159         pthread: mention library for linking
14160         * modules/pthread (Link): Mention $(LIB_PTHREAD).
14161
14162 2010-04-27  Jim Meyering  <meyering@redhat.com>
14163
14164         maint.mk: fix a bug introduced in last change
14165         * top/maint.mk (gl_assured_headers_): Now that all names are on
14166         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
14167         is not anchored to end of word, it should be adequate.
14168
14169         maint.mk: avoid side-effect in latest syntax-check
14170         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
14171         to run commands via $(shell...), and hence to incur cost only when
14172         the new rule is actually run.
14173
14174         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
14175         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
14176         and use that to create a regexp used to detect all #if HAVE_..._H uses.
14177         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
14178         (gl_assured_headers_, az_, AZ_): Define.
14179         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
14180
14181 2010-04-26  Jim Meyering  <jim@meyering.net>
14182             Bruno Haible  <bruno@clisp.org>
14183
14184         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
14185         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
14186         Prompted by an exchange with Gilles Espinasse.
14187
14188 2010-04-26  Jim Meyering  <meyering@redhat.com>
14189
14190         git-version-gen: aesthetic tweak
14191         * build-aux/git-version-gen: Use "$nl" rather than a literal,
14192         so that the command remains on a single line.
14193
14194 2010-04-26  Eric Blake  <eblake@redhat.com>
14195
14196         git-version-gen: allow use on EBCDIC hosts
14197         * build-aux/git-version-gen (dirty): Use literal rather than tying
14198         ourselves to ascii.
14199         Reported by Steve Goetze.
14200
14201 2010-04-25  Bruno Haible  <bruno@clisp.org>
14202
14203         netdb: Add support for GNULIB_POSIXCHECK.
14204         * lib/netdb.in.h: Include warn-on-use.h.
14205         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
14206         functions are used when GNULIB_POSIXCHECK is defined and the
14207         getaddrinfo module is not in use.
14208         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
14209         freeaddrinfo, gai_strerror, getnameinfo are declared.
14210         * modules/netdb (Depends-on): Add warn-on-use.
14211         (Makefile.am): Include warn-on-use.h in netdb.h.
14212
14213 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
14214
14215         build: avoid "make check" failure without .git/ directory
14216         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
14217         there is no .git/ directory.
14218
14219 2010-04-25  Bruno Haible  <bruno@clisp.org>
14220
14221         ptsname: Fix misuse of ttyname_r.
14222         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
14223         of errno.
14224
14225 2010-04-25  Bruno Haible  <bruno@clisp.org>
14226
14227         ttyname_r: Make it work on Solaris 10.
14228         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
14229         if the system function has the POSIX declaration. Test whether the
14230         function fails if the buffer is less than 128 bytes large.
14231         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
14232         system's ttyname_r function. Provide a reasonably large buffer.
14233         * modules/ttyname_r (Depends-on): Add extensions.
14234         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
14235
14236 2010-04-25  Bruno Haible  <bruno@clisp.org>
14237
14238         Use the 'extensions' module for some more functions on Solaris.
14239         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
14240         module.
14241         * doc/posix-functions/ctime_r.texi: Likewise.
14242         * doc/posix-functions/getgrgid_r.texi: Likewise.
14243         * doc/posix-functions/getgrnam_r.texi: Likewise.
14244         * doc/posix-functions/getpwnam_r.texi: Likewise.
14245         * doc/posix-functions/getpwuid_r.texi: Likewise.
14246         * doc/posix-functions/readdir_r.texi: Likewise.
14247         * doc/posix-functions/sigwait.texi: Likewise.
14248         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
14249         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
14250
14251 2010-04-25  Bruno Haible  <bruno@clisp.org>
14252
14253         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
14254         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
14255         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
14256         * lib/ttyname_r.c: Include <limits.h>.
14257         (ttyname_r): Define using the system's ttyname_r function, if it exists
14258         and not on Solaris.
14259         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
14260         set.
14261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
14262         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
14263         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
14264         Reported by Simon Josefsson.
14265
14266 2010-04-25  Bruno Haible  <bruno@clisp.org>
14267
14268         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
14269         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
14270         * doc/posix-functions/ctime_r.texi: Likewise.
14271         * doc/posix-functions/getgrgid_r.texi: Likewise.
14272         * doc/posix-functions/getgrnam_r.texi: Likewise.
14273         * doc/posix-functions/getlogin_r.texi: Likewise.
14274         * doc/posix-functions/getpwnam_r.texi: Likewise.
14275         * doc/posix-functions/getpwuid_r.texi: Likewise.
14276         * doc/posix-functions/readdir_r.texi: Likewise.
14277         * doc/posix-functions/sigwait.texi: Likewise.
14278         * doc/posix-functions/ttyname_r.texi: Likewise.
14279         Reported by Simon Josefsson.
14280
14281 2010-04-25  Bruno Haible  <bruno@clisp.org>
14282
14283         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
14284         * gnulib-tool (func_usage): Document that --with-*-tests options apply
14285         also to --create-testdir.
14286         (func_acceptable): Don't consider the status of *-tests modules here.
14287         (func_modules_transitive_closure): Consider it here, before including a
14288         test module.
14289         (func_import, func_create_testdir): Set inc_all_direct_tests,
14290         inc_all_indirect_tests.
14291         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
14292         --create-testdir and --create-megatestdir.
14293
14294 2010-04-25  Bruno Haible  <bruno@clisp.org>
14295
14296         gnulib-tool: Add --without-*-tests options.
14297         * gnulib-tool (func_usage): Document the --without-*-tests options.
14298         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
14299         excl_unportable_tests): New variables.
14300         Fail if they are specified with --import or --update.
14301         (func_acceptable): Respect the excl_*_tests variables.
14302         (func_import): Set the excl_*_tests variables to empty.
14303
14304 2010-04-25  Simon Josefsson  <simon@josefsson.org>
14305             Bruno Haible  <bruno@clisp.org>
14306
14307         Work around a MacOS X 10.4 bug with openpty.
14308         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
14309         * tests/test-openpty.c (main): Close the master side explicitly.
14310
14311 2010-04-25  Bruno Haible  <bruno@clisp.org>
14312
14313         strnlen: Fix a C++ test error on MacOS X and Solaris.
14314         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
14315         the function is not declared.
14316         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
14317         Simon Josefsson.
14318
14319 2010-04-24  Bruno Haible  <bruno@clisp.org>
14320
14321         Avoid a gcc warning.
14322         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
14323         of correct type for %08lx directive.
14324         Reported by Eric Blake.
14325
14326 2010-04-24  Bruno Haible  <bruno@clisp.org>
14327
14328         vasnprintf: Correct errno value in case of out-of-memory.
14329         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
14330         or sprintf. Use the errno value from SNPRINTF or sprintf.
14331         Reported by Ian Beckwith <ianb@erislabs.net>.
14332
14333 2010-04-24  Bruno Haible  <bruno@clisp.org>
14334
14335         ansi-c++-opt: Find correct compiler when cross-compiling.
14336         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
14337         AC_CHECK_PROGS.
14338         Reported by Simon Josefsson.
14339
14340 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
14341
14342         vc-list-files: Add support for subversion
14343         * build-aux/vc-list-files: Use "svn list" to generate the list of
14344         files controlled by subversion.
14345
14346 2010-04-23  Jim Meyering  <meyering@redhat.com>
14347
14348         vc-list-files tests: convert to use init.sh
14349         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
14350         path_prepend_.
14351         Use Exit, not exit.
14352         Use skip_ rather than open coding it.
14353         Remove trap set-up and compare definitions.
14354         * tests/test-vc-list-files-git.sh: Likewise.
14355         * modules/vc-list-files-tests (Files): Add tests/init.sh.
14356
14357 2010-04-22  Simon Josefsson  <simon@josefsson.org>
14358
14359         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
14360         backup files.
14361
14362 2010-04-21  Simon Josefsson  <simon@josefsson.org>
14363
14364         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
14365
14366 2010-04-20  Eric Blake  <eblake@redhat.com>
14367
14368         tests: be robust to ignored SIGPIPE
14369         * tests/test-select-in.sh: Consume all output.
14370         * tests/test-lseek.sh: Check correct exit status, while avoiding
14371         EPIPE.
14372
14373 2010-04-20  Simon Josefsson  <simon@josefsson.org>
14374             Bruno Haible  <bruno@clisp.org>
14375
14376         visibility: Don't use -fvisibility if it leads to a warning.
14377         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
14378         yes, don't pretend that visibility works if it leads to a warning.
14379         Reported by Mike Gran <spk121@yahoo.com>.
14380
14381 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
14382
14383         * build-aux/bootstrap: Use "git -h" for testing for supported options
14384         instead of "git --help".  The short-form option only shows a summary,
14385         and doesn't layout the full man page.  Grep for the full option name
14386         in the summary, too.
14387
14388 2010-04-19  Bruno Haible  <bruno@clisp.org>
14389
14390         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
14391         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
14392         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
14393         mention of RELOCATABLE_STRIP.
14394         Reported by Sylvain Beucler <beuc@beuc.net>.
14395
14396 2010-04-19  Bruno Haible  <bruno@clisp.org>
14397
14398         * lib/diffseq.h: Fix typo in comment.
14399         Reported by Eric Blake.
14400
14401 2010-04-19  Bruno Haible  <bruno@clisp.org>
14402
14403         ioctl: Move autoconf macro to a .m4 file.
14404         * m4/ioctl.m4: New file, extracted from modules/ioctl.
14405         * modules/ioctl (Files): Add it.
14406         (configure.ac): Simply invoke gl_FUNC_IOCTL.
14407         Reported by Ian Beckwith <ianb@erislabs.net>.
14408
14409 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
14410             Bruno Haible  <bruno@clisp.org>
14411
14412         diffseq: Accommodate use-case with abstract arrays.
14413         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
14414         is not defined.
14415         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
14416         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
14417
14418 2010-04-18  Bruno Haible  <bruno@clisp.org>
14419
14420         * doc/posix-headers/stdbool.texi: More precise wording.
14421
14422 2010-04-17  Jim Meyering  <meyering@redhat.com>
14423
14424         maint.mk: use gnu-style indentation in an embedded perl script
14425         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
14426         Rename variable: s/two/last_two_bytes/
14427
14428 2010-04-16  Eric Blake  <eblake@redhat.com>
14429
14430         test-stdbool: skip test that fails with Solaris CC
14431         * tests/test-stdbool.c (f): Skip test that causes compilation
14432         error under buggy C++ compiler.
14433         * lib/stdbool.in.h: Document the limitation.
14434         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
14435
14436         setenv: allow compilation with C++
14437         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
14438         register keyword.
14439
14440         stdint: allow test to pass with C++
14441         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
14442
14443         getopt: allow compilation with C++
14444         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
14445         struct.
14446         * lib/getopt.c (_getopt_internal_r): Use correct type.
14447         Reported by Dagobert Michelson, via Joel E. Denny.
14448
14449 2010-04-16  Bruno Haible  <bruno@clisp.org>
14450
14451         Override netdb.h always.
14452         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
14453         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
14454         Reported by Ludovic Courtès <ludo@gnu.org>.
14455
14456 2010-04-15  Bruno Haible  <bruno@clisp.org>
14457
14458         openpty: Fix mistake from 2010-03-21.
14459         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
14460         Reported by Simon Josefsson.
14461
14462 2010-04-15  Eric Blake  <eblake@redhat.com>
14463
14464         test-forkpty: fix expected signature
14465         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
14466         Reported by Simon Josefsson.
14467
14468 2010-04-15  Jim Meyering  <meyering@redhat.com>
14469
14470         maint.mk: texinfo_suffix_re_: correct the default regexp
14471         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
14472
14473         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
14474         make it configurable via texinfo_suffix_re_.
14475
14476 2010-04-14  Eric Blake  <eblake@redhat.com>
14477
14478         strtok_r: relax license to LGPLv2+
14479         * modules/strtok_r (License): Relax license.
14480         Reported by Matthias Bolte.
14481
14482 2010-04-14  Simon Josefsson  <simon@josefsson.org>
14483
14484         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
14485         version 1.4.4 by default instead of requiring the libgcrypt
14486         version used during build.  This makes it possible to use the
14487         application with older but still binary compatible libgcrypt
14488         versions.
14489
14490 2010-04-13  Eric Blake  <eblake@redhat.com>
14491
14492         getopt-gnu: match recent glibc fixes and posix ruling
14493         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
14494         '+' handling, when requesting extensions.
14495         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
14496         'W;' handling.
14497         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
14498         * doc/posix-functions/getopt.texi (getopt): Document this.
14499         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14500         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14501         Likewise.
14502
14503         getopt: merge bug fixes from glibc
14504         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
14505         diagnostics.  Honor '+:' correctly.  Reject ';'.
14506
14507         getopt-posix: detect MacOS bug
14508         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
14509         optind when missing a required argument.
14510         * doc/posix-functions/getopt.texi (getopt): Document the bug.
14511         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14512         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14513         Likewise.
14514
14515         getopt-posix: avoid spurious failure on Solaris
14516         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
14517         an indicator that setting optind=1 is sufficient for reset.
14518
14519         getopt-posix: avoid spurious failure on FreeBSD
14520         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
14521         in POSIX mode, since the m4 test uses it.
14522
14523         gnulib-tool: silence warning on BSD sh
14524         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
14525
14526 2010-04-13  Jim Meyering  <meyering@redhat.com>
14527
14528         doc: users.txt: GNU patch now uses gnulib
14529         * users.txt: Add patch.
14530
14531 2010-04-12  Jim Meyering  <meyering@redhat.com>
14532
14533         maint.mk: generate more concise timing data for syntax-check rules
14534         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
14535         " done" from each line that reports a syntax-check test duration.
14536
14537 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
14538
14539         git-version-gen: use "git update-index..." rather than "git status"
14540         * build-aux/git-version-gen: Use git update-index --refresh, not
14541         "git status".  With some versions of git, "git status" would fail
14542         to update the index and result in an unwarranted "-dirty" suffix.
14543
14544 2010-04-11  Jim Meyering  <meyering@redhat.com>
14545
14546         openat: correct formatting (no semantic change)
14547         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
14548         Suggested by Bruno Haible.
14549
14550 2010-04-11  Bruno Haible  <bruno@clisp.org>
14551
14552         Stricter declaration checking in testdirs.
14553         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14554         If for_tests is true, augment AM_CPPFLAGS to define
14555         GNULIB_STRICT_CHECKING.
14556         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
14557         GNULIB_STRICT_CHECKING is defined, verify that the function is
14558         declared.
14559
14560 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
14561             Bruno Haible  <bruno@clisp.org>
14562
14563         libunistring: Improve configure output.
14564         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
14565         Don't say "consider installing GNU libunistring" when checking again
14566         with libiconv.
14567
14568 2010-04-11  Bruno Haible  <bruno@clisp.org>
14569
14570         libunistring: Correct value of $LTLIBUNISTRING.
14571         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
14572         correct the value of $LTLIBUNISTRING.
14573
14574 2010-04-11  Bruno Haible  <bruno@clisp.org>
14575
14576         havelib: Add static libraries to LIBS in the right order.
14577         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
14578         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
14579
14580 2010-04-11  Bruno Haible  <bruno@clisp.org>
14581
14582         libunistring: Detect libunistring also when it depends on libiconv.
14583         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
14584         the second AC_LIB_HAVE_LINKFLAGS invocation.
14585
14586 2010-04-11  James Youngman  <jay@gnu.org>
14587
14588         close-stream: declare local scalars to be "const"
14589         * lib/close-stream.c (close_stream): Make boolean variables const
14590         to document the fact that we set but do not change them.
14591
14592 2010-04-11  Bruno Haible  <bruno@clisp.org>
14593
14594         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
14595
14596 2010-04-11  Jim Meyering  <meyering@redhat.com>
14597
14598         maint.mk: don't include dist-check.mk
14599         * top/maint.mk: Remove bogus include directive.
14600
14601         maint.mk: improve empty-line-at-EOF check
14602         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
14603         solution, rather than tail+Perl-based one.  The latter would read
14604         a few kilobytes from the end of each file, and did not handle empty
14605         files properly.
14606
14607         maint.mk: print the elapsed time for each syntax-check rule
14608         * top/maint.mk (sc_m_rules_): Save start time in a file.
14609         (sc_z_rules_): New rules: remove temp file and print elapsed time.
14610         (local-check): Interpose the .z rules
14611
14612 2010-04-11  Jim Meyering  <meyering@redhat.com>
14613
14614         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
14615         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
14616         empty file with one that ends in an empty line.
14617
14618 2010-04-10  Bruno Haible  <bruno@clisp.org>
14619
14620         mkdir: Make it work on mingw64.
14621         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
14622         * lib/mkdir.c: Update comment.
14623         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
14624
14625 2010-04-10  Bruno Haible  <bruno@clisp.org>
14626
14627         Don't override improved macro from newer autoconf.
14628         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
14629         autoconf >= 2.62.
14630         Reported by Joel E. Denny <jdenny@clemson.edu>.
14631
14632 2010-04-10  Jim Meyering  <meyering@redhat.com>
14633
14634         maint.mk: new syntax-check rule: prohibit empty lines at end of file
14635         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
14636
14637         maint.mk: correct a diagnostic
14638         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
14639         in diagnostic; now use $prohibit.
14640
14641 2010-04-10  Bruno Haible  <address@hidden>
14642
14643         fchownat: Fix a C++ test error on Solaris 8.
14644         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
14645         the function does not exist.
14646
14647 2010-04-10  Bruno Haible  <bruno@clisp.org>
14648
14649         vasnprintf: Add more tests.
14650         * tests/test-vasnprintf-posix.c: Include <errno.h>.
14651         (test_function): Test converting an invalid wide string.
14652
14653         vasnprintf: Correct handling of unconvertible wide string arguments.
14654         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
14655         VASNPRINTF.
14656         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
14657         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
14658         smaller than the expected maximum need for the directive. Set errno to
14659         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
14660         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
14661         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
14662         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
14663         * modules/vasnprintf (Files): Add m4/printf.m4.
14664         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14665
14666 2010-04-10  Bruno Haible  <bruno@clisp.org>
14667
14668         vasnprintf: Fix crash in %ls directive.
14669         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
14670         string is passed as argument to %ls, with no precision and no width.
14671         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14672
14673 2010-04-10  Bruno Haible  <bruno@clisp.org>
14674
14675         vasnprintf: Fix multiple test failures on mingw.
14676         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
14677         _snprintf, or snwprintf, not _snwprintf.
14678
14679 2010-04-10  Bruno Haible  <bruno@clisp.org>
14680
14681         write: Fix a C++ test error on mingw.
14682         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
14683
14684 2010-04-10  Bruno Haible  <bruno@clisp.org>
14685
14686         vasnprintf test: Reduce code duplication.
14687         * tests/test-vasnprintf.c (test_function): New function, extracted from
14688         test_vasnprintf.
14689         (test_vasnprintf, test_asnprintf): Invoke it.
14690
14691 2010-04-10  Bruno Haible  <bruno@clisp.org>
14692
14693         strnlen: Fix warning in C++ mode on MacOS X.
14694         * lib/string.in.h (strnlen): Use the modern idiom.
14695         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
14696         defining strnlen as a macro already in <config.h>.
14697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14698         REPLACE_STRNLEN.
14699         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
14700         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14701
14702 2010-04-08  James Youngman  <jay@gnu.org>
14703
14704         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
14705         the example.
14706
14707 2010-04-09  Jim Meyering  <meyering@redhat.com>
14708
14709         maint.mk: print better diagnostic when there is no $(_hv_file)
14710         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
14711         announce that when $(_hv_file) (aka help-version) does not exist.
14712
14713         init.sh: run tr in the "C" locale to avoid multibyte interpretation
14714         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
14715         not try to interpret its random input bytes.  Jarno Rajahalme reported
14716         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
14717         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
14718         (mktempd_): Likewise, just in case.
14719
14720         ftruncate: add two years to projected module removal date: 2012
14721         * m4/ftruncate.m4: Adjust comments.
14722
14723         ftruncate: mark module as obsolete; even MinGW provides it, now
14724         * modules/ftruncate (Status): Obsolete.
14725         (Notice): Say that.
14726         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
14727         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
14728
14729 2010-04-08  Bruno Haible  <bruno@clisp.org>
14730
14731         Fix side effects from tests-related modules.
14732         * modules/dprintf-posix (Comment): New section.
14733         * modules/fprintf-posix (Comment): Likewise.
14734         * modules/obstack-printf-posix (Comment): Likewise.
14735         * modules/printf-posix (Comment): Likewise.
14736         * modules/snprintf-posix (Comment): Likewise.
14737         * modules/sprintf-posix (Comment): Likewise.
14738         * modules/vasnprintf-posix (Comment): Likewise.
14739         * modules/vasprintf-posix (Comment): Likewise.
14740         * modules/vdprintf-posix (Comment): Likewise.
14741         * modules/vfprintf-posix (Comment): Likewise.
14742         * modules/vprintf-posix (Comment): Likewise.
14743         * modules/vsnprintf-posix (Comment): Likewise.
14744         * modules/vsprintf-posix (Comment): Likewise.
14745         * modules/xprintf-posix (Comment): Likewise.
14746         * modules/xvasprintf-posix (Comment): Likewise.
14747         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
14748         * modules/floorf-tests (Depends-on): Likewise.
14749         * modules/round-tests (Depends-on): Likewise.
14750         * modules/roundf-tests (Depends-on): Likewise.
14751         * modules/trunc-tests (Depends-on): Likewise.
14752         * modules/truncf-tests (Depends-on): Likewise.
14753         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
14754         'fprintf-posix' module is not present.
14755         * tests/test-floorf2.c (check): Likewise.
14756         * tests/test-trunc2.c (check): Likewise.
14757         * tests/test-truncf2.c (check): Likewise.
14758         * tests/test-round2.c (equal): Likewise.
14759         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14760
14761 2010-04-07  Karl Berry  <karl@gnu.org>
14762
14763         * config/srclist.txt,
14764         * config/srclistvars.sh,
14765         * config/srclist-update: doc fixes.
14766
14767 2010-04-07  Jim Meyering  <meyering@redhat.com>
14768
14769         maint.mk: add a PATH crosschecking syntax-check rule
14770         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
14771         Useful if you use a test like the one in help-version (coreutils,
14772         diffutils, grep, gzip) that ensures $(VERSION) matches what is
14773         printed by prog --version.
14774
14775 2010-04-06  Bruno Haible  <bruno@clisp.org>
14776
14777         Fix link error on mingw.
14778         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
14779         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
14780
14781 2010-04-06  Bruno Haible  <bruno@clisp.org>
14782
14783         Assume rmdir exists.
14784         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
14785
14786 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
14787
14788         doc: update users.txt
14789         * users.txt: Add gcal.
14790
14791 2010-04-06  Jim Meyering  <meyering@redhat.com>
14792
14793         init.sh: simply unset TMPDIR rather than risking env -i
14794         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
14795         although it probably works fine on all Unix-based systems, some
14796         systems (Cygwin?) cannot tolerate a totally cleared environment.
14797         Suggestion from Eric Blake.
14798
14799 2010-04-06  Jim Meyering  <meyering@redhat.com>
14800
14801         init.sh: portability fix: use env's POSIX-specified -i option not -u
14802         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
14803         than unportable env -u.  Solaris 5.11's env lacks support for -u.
14804
14805 2010-04-05  Bruno Haible  <bruno@clisp.org>
14806
14807         btowc: Work around Cygwin 1.7.2 bug.
14808         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
14809         does not map NUL to 0.
14810         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
14811
14812 2010-04-05  Bruno Haible  <bruno@clisp.org>
14813
14814         Make the multithread modules work on Cygwin 1.7.2.
14815         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
14816         imported symbols can be declared weak, so that it returns "no" on
14817         Cygwin 1.7.2.
14818
14819 2010-04-05  Bruno Haible  <bruno@clisp.org>
14820
14821         Use the module 'strncat'.
14822         * modules/unistr/u8-strncat (Depends-on): Add strncat.
14823
14824         Tests for module 'strncat'.
14825         * modules/strncat-tests: New file.
14826         * tests/test-strncat.c: New file.
14827
14828         New module 'strncat'.
14829         * lib/string.in.h (strncat): New declaration.
14830         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
14831         * m4/strncat.m4: New file, based on m4/memchr.m4.
14832         * modules/strncat: New file.
14833         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
14834         is declared.
14835         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
14836         REPLACE_STRNCAT.
14837         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
14838         REPLACE_STRNCAT.
14839         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
14840         module.
14841         * tests/test-string-c++.cc: Check signature of strncat.
14842
14843 2010-04-05  Jim Meyering  <meyering@redhat.com>
14844
14845         xstrtoumax-tests: convert to use init.sh
14846         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
14847         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14848         Use Exit, not exit.
14849         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14850
14851         xstrtoimax-tests: convert to use init.sh
14852         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
14853         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14854         Use Exit, not exit.
14855         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14856
14857 2010-04-05  Bruno Haible  <bruno@clisp.org>
14858
14859         sys_socket: Avoid #define replacements in C++ mode.
14860         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
14861         warning to the function if possible, rather than #defining the symbol
14862         to a dysfunctional alias.
14863
14864 2010-04-05  Bruno Haible  <bruno@clisp.org>
14865
14866         fseeko: Fix C++ test error on mingw.
14867         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
14868         gl_FUNC_FSEEKO.
14869         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
14870         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
14871         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
14872         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
14873
14874 2010-04-05  Bruno Haible  <bruno@clisp.org>
14875
14876         duplocale: Improve test output.
14877         * tests/test-duplocale.c (main): Print reason for skipped test.
14878
14879 2010-04-05  Bruno Haible  <bruno@clisp.org>
14880
14881         Assume rmdir exists.
14882         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
14883         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
14884
14885 2010-04-05  Bruno Haible  <bruno@clisp.org>
14886
14887         Fix link error on Solaris 8 with cc.
14888         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
14889
14890 2010-04-05  Bruno Haible  <bruno@clisp.org>
14891
14892         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14893         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
14894
14895 2010-04-05  Bruno Haible  <bruno@clisp.org>
14896
14897         vasprintf: Update documentation.
14898         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
14899
14900 2010-04-05  Bruno Haible  <bruno@clisp.org>
14901
14902         ptsname: Improve test.
14903         * tests/test-ptsname.c (main): Also try the various master names of BSD
14904         systems.
14905
14906 2010-04-05  Bruno Haible  <bruno@clisp.org>
14907
14908         memchr: Avoid a possible C++ test error.
14909         * lib/string.in.h (memchr): Provide declaration if function is missing.
14910         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
14911         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
14912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
14913         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
14914
14915 2010-04-05  Bruno Haible  <bruno@clisp.org>
14916
14917         strtok_r: Improve idiom.
14918         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
14919         AC_LIBOBJ is used.
14920
14921 2010-04-05  Bruno Haible  <bruno@clisp.org>
14922
14923         strdup: Improve idiom.
14924         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
14925         AC_LIBOBJ is used.
14926         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
14927         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
14928         when AC_LIBOBJ is used.
14929
14930 2010-04-05  Bruno Haible  <bruno@clisp.org>
14931
14932         mbsinit, mbrtowc, wcrtomb: Improve idioms.
14933         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
14934         don't set REPLACE_MBSINIT to 1.
14935         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
14936         don't set REPLACE_MBRTOWC to 1.
14937         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
14938         exist, don't set REPLACE_MBSRTOWCS to 1.
14939         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
14940         exist, don't set REPLACE_MBSNRTOWCS to 1.
14941         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
14942         don't set REPLACE_WCRTOMB to 1.
14943         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
14944         exist, don't set REPLACE_WCSRTOMBS to 1.
14945         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
14946         exist, don't set REPLACE_WCSNRTOMBS to 1.
14947
14948 2010-04-05  Bruno Haible  <bruno@clisp.org>
14949
14950         ldexpl: Improve idiom.
14951         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
14952         make sure to set HAVE_DECL_LDEXPL to 0.
14953
14954 2010-04-05  Jim Meyering  <meyering@redhat.com>
14955
14956         xstrtol-tests: convert to use init.sh
14957         * modules/xstrtol-tests (Files): Add tests/init.sh.
14958         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14959         Use Exit, not exit.
14960         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14961
14962         atexit-tests: convert to use init.sh
14963         * modules/atexit-tests (Files): Add tests/init.sh.
14964         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14965         Use Exit, not exit.
14966         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14967
14968         init.sh: fix typo
14969         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
14970
14971         init.sh: make it easier for a test script to write to the tty, ...
14972         when using automake's parallel-tests mode.
14973         * tests/init.sh (stderr_fileno_): Define overridable variable.
14974         (warn_): New function, to use it.
14975         (fail_, skip_, framework_failure_): Use warn_.
14976
14977 2010-04-04  Bruno Haible  <bruno@clisp.org>
14978
14979         btowc: Avoid warning.
14980         * lib/btowc.c: Include <stdlib.h>.
14981         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
14982
14983 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14984             Bruno Haible  <bruno@clisp.org>
14985
14986         wchar: Port to NetBSD 1.5.
14987         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
14988         * lib/wctype.in.h (WEOF): Likewise.
14989
14990 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14991             Bruno Haible  <bruno@clisp.org>
14992
14993         Port extended stdio to NetBSD 1.5.
14994         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
14995         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
14996         older.
14997
14998 2010-04-04  Bruno Haible  <bruno@clisp.org>
14999
15000         string: Remove unused substitution.
15001         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15002         HAVE_DECL_STRERROR.
15003         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
15004
15005 2010-04-04  Bruno Haible  <bruno@clisp.org>
15006
15007         strtod: Avoid a possible C++ test error.
15008         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
15009         set REPLACE_STRTOD.
15010
15011 2010-04-04  Bruno Haible  <bruno@clisp.org>
15012
15013         strerror: Update documentation.
15014         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
15015
15016 2010-04-04  Bruno Haible  <bruno@clisp.org>
15017
15018         stdio: Fix some C++ test errors on Solaris 8 with GCC.
15019         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
15020         _GL_CXXALIAS_SYS_CAST.
15021
15022 2010-04-04  Bruno Haible  <bruno@clisp.org>
15023
15024         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15025         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
15026         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
15027         REPLACE_FREXPL to 1.
15028         * doc/posix-functions/frexpl.texi: Update documentation.
15029
15030 2010-04-04  Bruno Haible  <bruno@clisp.org>
15031
15032         math: Fix some C++ test errors on Solaris 8 and Cygwin.
15033         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
15034
15035 2010-04-04  Bruno Haible  <bruno@clisp.org>
15036
15037         Implement nanosleep for native Windows.
15038         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
15039
15040 2010-04-04  Bruno Haible  <bruno@clisp.org>
15041
15042         math: Fix some C++ test errors on Solaris 8.
15043         * lib/math.in.h (truncf, trunc): Use simpler idiom.
15044
15045 2010-04-04  Bruno Haible  <bruno@clisp.org>
15046
15047         math: Fix some C++ test errors on Cygwin.
15048         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
15049         truncl): Provide declaration if the system does not have it.
15050         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
15051         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
15052         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
15053         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
15054         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
15055         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
15056         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
15057         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
15058         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
15059         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
15060         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
15061         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
15062         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
15063         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
15064         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
15065         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
15066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
15067         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15068         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15069         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
15070         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15071         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15072
15073 2010-04-04  Bruno Haible  <bruno@clisp.org>
15074
15075         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
15076         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15077         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15078         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15079         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15080         * m4/isinf.m4 (gl_ISINF): Likewise.
15081         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15082
15083 2010-04-04  Bruno Haible  <bruno@clisp.org>
15084
15085         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
15086         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15087
15088 2010-04-04  Bruno Haible  <bruno@clisp.org>
15089
15090         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
15091         * modules/tmpfile (configure.ac): Update.
15092
15093         tmpfile: Fix C++ test error on mingw.
15094         * lib/stdio.in.h (tmpfile): New declaration.
15095         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
15096         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
15097         * modules/tmpfile (Depends-on): Add stdio.
15098         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15099         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
15100         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
15101         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
15102         REPLACE_TMPFILE.
15103         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
15104
15105 2010-04-04  Bruno Haible  <bruno@clisp.org>
15106
15107         ioctl: Fix C++ test error on mingw.
15108         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
15109         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
15110         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
15111
15112 2010-04-03  Bruno Haible  <bruno@clisp.org>
15113
15114         wcwidth: Fix C++ test error on mingw.
15115         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
15116         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
15117         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
15118
15119 2010-04-03  Bruno Haible  <bruno@clisp.org>
15120
15121         nanosleep: Fix C++ test error on mingw.
15122         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
15123         * lib/time.in.h (nanosleep): Use modern idiom.
15124         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
15125         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
15126         REPLACE_NANOSLEEP to 1.
15127         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
15128         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
15129
15130 2010-04-03  Bruno Haible  <bruno@clisp.org>
15131
15132         strptime: Fix C++ test error on mingw.
15133         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
15134         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
15135         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
15136         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
15137         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
15138         not REPLACE_STRPTIME.
15139         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
15140         REPLACE_STRPTIME.
15141
15142 2010-04-03  Bruno Haible  <bruno@clisp.org>
15143
15144         timegm: Fix C++ test error on mingw.
15145         * lib/time.in.h (timegm): Use modern idiom.
15146         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
15147         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
15148         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
15149         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
15150
15151 2010-04-03  Bruno Haible  <bruno@clisp.org>
15152
15153         timegm: Assume declaration if function exists.
15154         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
15155         if it exists. Don't clobber ac_cv_func_timegm.
15156
15157 2010-04-03  Bruno Haible  <bruno@clisp.org>
15158
15159         time_r: Fix C++ test error on mingw.
15160         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
15161         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
15162         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
15163         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
15164         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
15165
15166 2010-04-03  Bruno Haible  <bruno@clisp.org>
15167
15168         time_r: Minor updates.
15169         * modules/time_r (Description): Mention the provided functions.
15170         * lib/time_r.c: Don't include <string.h>.
15171         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
15172         * doc/posix-functions/localtime_r.texi: Likewise.
15173
15174 2010-04-03  Bruno Haible  <bruno@clisp.org>
15175
15176         time: Fix regression introduced on 2010-03-08.
15177         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
15178         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
15179
15180 2010-04-03  Jim Meyering  <meyering@redhat.com>
15181
15182         maint.mk: don't silently disable project-specific syntax-check rules
15183         * top/maint.mk (_prohibit_regexp): Define, to help people realize
15184         that they need to convert their project-specific syntax-check rules
15185         to use the new _sc_search_regexp.
15186
15187 2010-04-03  Bruno Haible  <bruno@clisp.org>
15188
15189         fchdir: Fix regression introduced on 2010-03-08.
15190         * lib/unistd.in.h (fchdir): Fix declaration.
15191         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
15192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
15193         REPLACE_FCHDIR.
15194         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
15195         REPLACE_FCHDIR.
15196
15197 2010-04-03  Bruno Haible  <bruno@clisp.org>
15198
15199         getpagesize: Fix C++ test error on mingw.
15200         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
15201         system does not declare the function.
15202         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
15203         declared.
15204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15205         HAVE_DECL_GETPAGESIZE.
15206         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
15207
15208 2010-04-03  Bruno Haible  <bruno@clisp.org>
15209
15210         stdio: Make C++ tests work on mingw.
15211         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
15212         does not declare the function.
15213
15214 2010-04-03  Bruno Haible  <bruno@clisp.org>
15215
15216         ftello: Fix C++ test error on mingw.
15217         * lib/stdio.in.h (ftello): Use modern idiom.
15218         * lib/ftello.c (ftello): Renamed from rpl_ftello.
15219         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
15220         is missing and that it needs to be replaced.
15221         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
15222         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
15223         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
15224
15225 2010-04-03  Bruno Haible  <bruno@clisp.org>
15226
15227         fseeko: Fix C++ test error on mingw.
15228         * lib/stdio.in.h (fseeko): Use modern idiom.
15229         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
15230         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
15231         is missing and that it needs to be replaced.
15232         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
15233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
15234         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
15235
15236 2010-04-03  Bruno Haible  <bruno@clisp.org>
15237
15238         mkstemp: Fix C++ test error on mingw.
15239         * lib/stdlib.in.h (mkstemp): Use modern idiom.
15240         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
15241         function is missing and that it needs to be replaced.
15242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
15243         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
15244
15245 2010-04-03  Bruno Haible  <bruno@clisp.org>
15246
15247         stpncpy: Fix C++ test error on mingw.
15248         * lib/string.in.h (stpncpy): Use modern idiom.
15249         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
15250         function is missing and that it needs to be replaced.
15251         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15252         REPLACE_STPNCPY.
15253         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
15254
15255 2010-04-03  Bruno Haible  <bruno@clisp.org>
15256
15257         sys_stat: Fix C++ test error on mingw.
15258         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
15259         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
15260
15261 2010-04-03  Bruno Haible  <bruno@clisp.org>
15262
15263         pty: Update doc.
15264         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
15265
15266 2010-04-03  Bruno Haible  <bruno@clisp.org>
15267
15268         unistd: Fix C++ test error on mingw.
15269         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
15270
15271 2010-04-03  Bruno Haible  <bruno@clisp.org>
15272
15273         Update doc regarding mingw.
15274         * doc/glibc-functions/openpty.texi: Update regarding mingw.
15275         * doc/glibc-functions/login_tty.texi: Likewise.
15276         * doc/glibc-functions/forkpty.texi: Likewise.
15277
15278 2010-04-03  Bruno Haible  <bruno@clisp.org>
15279
15280         stdlib: Avoid compilation failure of c-strtold on mingw.
15281         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
15282
15283 2010-04-03  Bruno Haible  <bruno@clisp.org>
15284
15285         locale: Make C++ tests work on Cygwin and mingw.
15286         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
15287         cannot provide the function.
15288         Reported by Simon Josefsson.
15289
15290 2010-04-03  Bruno Haible  <bruno@clisp.org>
15291
15292         localename: Port to MacOS X 10.6.
15293         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
15294         memory layout of the locales in MacOS X 10.6 as well.
15295         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
15296
15297 2010-04-02  Bruno Haible  <bruno@clisp.org>
15298
15299         gnulib-tool: Ensure that long-running tests are executed last.
15300         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
15301         running tests after the one for the other tests.
15302
15303 2010-04-02  Bruno Haible  <bruno@clisp.org>
15304
15305         gnulib-tool: Ensure the tests in the main directory are executed first.
15306         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
15307         start with the current directory.
15308
15309 2010-04-02  Bruno Haible  <bruno@clisp.org>
15310
15311         Tests for module 'havelib', moved here from GNU gettext.
15312         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
15313         modifications.
15314         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
15315         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
15316         with modifications.
15317         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
15318         modifications.
15319         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
15320         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
15321         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
15322         with modifications.
15323         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
15324         with modifications.
15325         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
15326         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
15327         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
15328         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
15329         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
15330         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
15331         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
15332         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
15333         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
15334         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
15335         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
15336         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
15337         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
15338         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
15339         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
15340         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
15341         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
15342         with modifications.
15343         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
15344         with modifications.
15345         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
15346         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
15347         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
15348         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
15349         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
15350         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
15351         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
15352         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
15353         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
15354         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
15355         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
15356         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
15357         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
15358         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
15359         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
15360         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
15361         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
15362         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
15363         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
15364         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
15365         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
15366         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
15367         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
15368         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
15369         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
15370         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
15371         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
15372         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
15373         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
15374         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
15375         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
15376         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
15377         * tests/havelib/rpathx/rpathx.c: New file, from
15378         gettext/autoconf-lib-link.
15379         * tests/havelib/rpathx/Makefile.am: New file, from
15380         gettext/autoconf-lib-link.
15381         * tests/havelib/rpathx/configure.ac: New file, from
15382         gettext/autoconf-lib-link with modifications.
15383         * tests/havelib/rpathy/rpathy.c: New file, from
15384         gettext/autoconf-lib-link.
15385         * tests/havelib/rpathy/Makefile.am: New file, from
15386         gettext/autoconf-lib-link.
15387         * tests/havelib/rpathy/configure.ac: New file, from
15388         gettext/autoconf-lib-link with modifications.
15389         * tests/havelib/rpathz/rpathz.c: New file, from
15390         gettext/autoconf-lib-link.
15391         * tests/havelib/rpathz/Makefile.am: New file, from
15392         gettext/autoconf-lib-link.
15393         * tests/havelib/rpathz/configure.ac: New file, from
15394         gettext/autoconf-lib-link with modifications.
15395         * tests/havelib/rpathlx/usex.c: New file, from
15396         gettext/autoconf-lib-link.
15397         * tests/havelib/rpathlx/Makefile.am: New file, from
15398         gettext/autoconf-lib-link.
15399         * tests/havelib/rpathlx/configure.ac: New file, from
15400         gettext/autoconf-lib-link with modifications.
15401         * tests/havelib/rpathly/usey.c: New file, from
15402         gettext/autoconf-lib-link.
15403         * tests/havelib/rpathly/Makefile.am: New file, from
15404         gettext/autoconf-lib-link.
15405         * tests/havelib/rpathly/configure.ac: New file, from
15406         gettext/autoconf-lib-link with modifications.
15407         * tests/havelib/rpathlz/usez.c: New file, from
15408         gettext/autoconf-lib-link.
15409         * tests/havelib/rpathlz/Makefile.am: New file, from
15410         gettext/autoconf-lib-link.
15411         * tests/havelib/rpathlz/configure.ac: New file, from
15412         gettext/autoconf-lib-link with modifications.
15413         * tests/havelib/rpathlyx/usey.c: New file, from
15414         gettext/autoconf-lib-link.
15415         * tests/havelib/rpathlyx/Makefile.am: New file, from
15416         gettext/autoconf-lib-link.
15417         * tests/havelib/rpathlyx/configure.ac: New file, from
15418         gettext/autoconf-lib-link with modifications.
15419         * tests/havelib/rpathlzyx/usez.c: New file, from
15420         gettext/autoconf-lib-link.
15421         * tests/havelib/rpathlzyx/Makefile.am: New file, from
15422         gettext/autoconf-lib-link.
15423         * tests/havelib/rpathlzyx/configure.ac: New file, from
15424         gettext/autoconf-lib-link with modifications.
15425         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
15426         with modifications.
15427
15428 2010-04-02  Bruno Haible  <bruno@clisp.org>
15429
15430         gnulib-tool: Create distributed built sources also for the tests.
15431         * gnulib-tool (func_create_testdir): Also generate distributed built
15432         sources in the tests directory.
15433
15434 2010-04-02  Bruno Haible  <bruno@clisp.org>
15435
15436         gnulib-tool: Obey user's environment variables.
15437         * gnulib-tool (func_create_testdir): When creating built sources,
15438         respect the environment variables for autoconf, automake, etc. given by
15439         the user.
15440
15441 2010-04-02  Bruno Haible  <bruno@clisp.org>
15442
15443         gnulib-tool: Provide the value of --m4-base to modules.
15444         * gnulib-tool (func_import, func_create_testdir): Emit a definition
15445         of gl_m4_base.
15446
15447 2010-04-02  Eric Blake  <eblake@redhat.com>
15448
15449         maint.mk: fix some fallout
15450         * NEWS: Document the incompatible change, and its effect on cfg.mk.
15451         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
15452
15453 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15454
15455         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
15456         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
15457         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
15458         (sc_cast_of_x_alloc_return_value): Likewise.
15459         (sc_cast_of_alloca_return_value): Likewise.
15460         (sc_space_tab): Likewise.
15461         (sc_prohibit_atoi_atof): Likewise.
15462         (sc_prohibit_magic_number_exit): Likewise.
15463         (sc_error_exit_success): Likewise.
15464         (sc_file_system): Likewise.
15465         (sc_prohibit_have_config_h): Likewise.
15466         (sc_require_config_h): Likewise.
15467         (sc_prohibit_HAVE_MBRTOWC): Likewise.
15468         (sc_obsolete_symbols): Likewise.
15469         (sc_changelog): Likewise.
15470         (sc_program_name): Likewise.
15471         (sc_the_the): Likewise.
15472         (sc_trailing_blank): Likewise.
15473         (sc_two_space_separator_in_usage): Likewise.
15474         (sc_useless_cpp_parens): Likewise.
15475         (sc_GPL_version): Likewise.
15476         (sc_GFDL_version): Likewise.
15477         (sc_texinfo_acronym): Likewise.
15478         (sc_prohibit_cvs_keyword): Likewise.
15479         (sc_prohibit_stat_st_blocks): Likewise.
15480         (sc_prohibit_S_IS_definition): Likewise.
15481         (sc_redundant_const): Likewise.
15482         (sc_makefile_TAB_only_indentation): Likewise.
15483         (sc_m4_quote_check): Likewise.
15484         (sc_makefile_path_separator_check): Likewise.
15485         (sc_copyright_check): Likewise.
15486         (sc_Wundef_boolean): Likewise.
15487         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15488
15489         maint.mk: match 0 or more whitespace-before-function-call '('
15490         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
15491         that have zero or two-and-more spaces between the function name
15492         and the open parenthesis.
15493         (sc_error_message_warn_fatal): Likewise.
15494         (sc_error_message_uppercase): Likewise.
15495         (sc_error_message_period): Likewise.
15496
15497 2010-03-31  Eric Blake  <eblake@redhat.com>
15498
15499         maint.mk: check for [ as well as test
15500         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
15501         Based on a libvirt report by Matthias Bolte.
15502
15503         gnumakefile: don't squelch _version output
15504         * top/GNUmakefile (_version): Create one-shot dependency rather
15505         than using $(shell) when version must be regenerated.
15506         (_autoreconf): Run verbosely, by default.
15507
15508         sys_time: avoid compiler warnings
15509         * lib/sys_time.in.h (includes): Ensure gcc pragma is
15510         unconditional, fixing regression from 2010-03-29.
15511         Reported by Simon Josefsson.
15512
15513 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15514
15515         maint.mk: s/_header_without_use/_sc_header_without_use/
15516         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
15517         (sc_prohibit_assert_without_use): Use the new name.
15518         (sc_prohibit_close_stream_without_use): Likewise.
15519         (sc_prohibit_getopt_without_use): Likewise.
15520         (sc_prohibit_quotearg_without_use): Likewise.
15521         (sc_prohibit_quote_without_use): Likewise.
15522         (sc_prohibit_long_options_without_use): Likewise.
15523         (sc_prohibit_inttostr_without_use): Likewise.
15524         (sc_prohibit_ignore_value_without_use): Likewise.
15525         (sc_prohibit_error_without_use): Likewise.
15526         (sc_prohibit_xalloc_without_use): Likewise.
15527         (sc_prohibit_hash_without_use): Likewise.
15528         (sc_prohibit_hash_pjw_without_use): Likewise.
15529         (sc_prohibit_safe_read_without_use): Likewise.
15530         (sc_prohibit_argmatch_without_use): Likewise.
15531         (sc_prohibit_canonicalize_without_use): Likewise.
15532         (sc_prohibit_root_dev_ino_without_use): Likewise.
15533         (sc_prohibit_openat_without_use): Likewise.
15534         (sc_prohibit_c_ctype_without_use): Likewise.
15535         (sc_prohibit_signal_without_use): Likewise.
15536         (sc_prohibit_intprops_without_use): Likewise.
15537
15538 2010-03-30  Eric Blake  <eblake@redhat.com>
15539
15540         maint: improve module indicators
15541         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
15542         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
15543         columns, and avoid extra macro expansion.
15544
15545         fdopendir: work around FreeBSD bug
15546         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15547         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
15548         * modules/dirent (Makefile.am): Substitute it.
15549         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
15550         declaration.
15551         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
15552         fix.
15553         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15554
15555 2010-03-29  Bruno Haible  <bruno@clisp.org>
15556
15557         Emit #pragma system_header after the inclusion guard, not before.
15558         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
15559         guard that spans the entire file, not before. This enables an
15560         optimization in GCC's preprocessor.
15561         * lib/ctype.in.h: Likewise.
15562         * lib/dirent.in.h: Likewise.
15563         * lib/errno.in.h: Likewise.
15564         * lib/float.in.h: Likewise.
15565         * lib/getopt.in.h: Likewise.
15566         * lib/iconv.in.h: Likewise.
15567         * lib/langinfo.in.h: Likewise.
15568         * lib/locale.in.h: Likewise.
15569         * lib/math.in.h: Likewise.
15570         * lib/netdb.in.h: Likewise.
15571         * lib/netinet_in.in.h: Likewise.
15572         * lib/pty.in.h: Likewise.
15573         * lib/sched.in.h: Likewise.
15574         * lib/se-selinux.in.h: Likewise.
15575         * lib/search.in.h: Likewise.
15576         * lib/spawn.in.h: Likewise.
15577         * lib/stdarg.in.h: Likewise.
15578         * lib/stdint.in.h: Likewise.
15579         * lib/string.in.h: Likewise.
15580         * lib/strings.in.h: Likewise.
15581         * lib/sys_file.in.h: Likewise.
15582         * lib/sys_ioctl.in.h: Likewise.
15583         * lib/sys_time.in.h: Likewise.
15584         * lib/sys_times.in.h: Likewise.
15585         * lib/sys_utsname.in.h: Likewise.
15586         * lib/sys_wait.in.h: Likewise.
15587         * lib/sysexits.in.h: Likewise.
15588         * lib/wctype.in.h: Likewise.
15589
15590 2010-03-28  James Youngman  <jay@gnu.org>
15591
15592         save-cwd: don't leak a file descriptor when the caller execs.
15593         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
15594         saved file descriptor.
15595         * modules/save-cwd (Depends-on): Depend on cloexec.
15596
15597 2010-03-29  Bruno Haible  <bruno@clisp.org>
15598
15599         Remove vestiges of fts-lgpl module.
15600         * lib/fts_.h: Assume GNULIB_FTS is 1.
15601         * lib/fts.c: Likewise.
15602         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15603
15604 2010-03-28  Bruno Haible  <bruno@clisp.org>
15605
15606         Fix definition of tests witness macro.
15607         * gnulib-tool (func_import): Fix definition of witness macro.
15608
15609 2010-03-28  Bruno Haible  <bruno@clisp.org>
15610
15611         Fix ioctl's protoype on glibc systems.
15612         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
15613         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
15614         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
15615         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
15616         signature. If not, arrange to replace the ioctl function.
15617         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15618         REPLACE_IOCTL.
15619         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
15620         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
15621         Reported by Ludovic Courtès <ludo@gnu.org>.
15622
15623 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
15624
15625         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
15626         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
15627         made it so grep -r --include=GLOB* ... did not work.
15628
15629 2010-03-26  Jim Meyering  <meyering@redhat.com>
15630             Eric Blake  <eblake@redhat.com>
15631
15632         maint.mk: prohibit use of test's -o and -a operators
15633         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
15634
15635 2010-03-28  Bruno Haible  <bruno@clisp.org>
15636
15637         Remove unused GNULIB_XYZ macro definitions.
15638         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
15639         invocation.
15640
15641 2010-03-28  Bruno Haible  <bruno@clisp.org>
15642
15643         Mark privileged tests modules.
15644         * modules/idpriv-drop-tests (Status): New section.
15645         * modules/idpriv-droptemp-tests (Status): New section.
15646
15647 2010-03-28  Bruno Haible  <bruno@clisp.org>
15648
15649         Split C++ tests into separate tests modules.
15650         * modules/dirent-c++-tests: New file, extracted from
15651         modules/dirent-tests.
15652         * modules/dirent-tests: Depend on it.
15653         * modules/fcntl-h-c++-tests: New file, extracted from
15654         modules/fcntl-h-tests.
15655         * modules/fcntl-h-tests: Depend on it.
15656         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
15657         * modules/glob-tests: Depend on it.
15658         * modules/iconv-h-c++-tests: New file, extracted from
15659         modules/iconv-h-tests.
15660         * modules/iconv-h-tests: Depend on it.
15661         * modules/langinfo-c++-tests: New file, extracted from
15662         modules/langinfo-tests.
15663         * modules/langinfo-tests: Depend on it.
15664         * modules/locale-c++-tests: New file, extracted from
15665         modules/locale-tests.
15666         * modules/locale-tests: Depend on it.
15667         * modules/math-c++-tests: New file, extracted from modules/math-tests.
15668         * modules/math-tests: Depend on it.
15669         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
15670         * modules/pty-tests: Depend on it.
15671         * modules/search-c++-tests: New file, extracted from
15672         modules/search-tests.
15673         * modules/search-tests: Depend on it.
15674         * modules/signal-c++-tests: New file, extracted from
15675         modules/signal-tests.
15676         * modules/signal-tests: Depend on it.
15677         * modules/spawn-c++-tests: New file, extracted from
15678         modules/spawn-tests.
15679         * modules/spawn-tests: Depend on it.
15680         * modules/stdio-c++-tests: New file, extracted from
15681         modules/stdio-tests.
15682         * modules/stdio-tests: Depend on it.
15683         * modules/stdlib-c++-tests: New file, extracted from
15684         modules/stdlib-tests.
15685         * modules/stdlib-tests: Depend on it.
15686         * modules/string-c++-tests: New file, extracted from
15687         modules/string-tests.
15688         * modules/string-tests: Depend on it.
15689         * modules/sys_ioctl-c++-tests: New file, extracted from
15690         modules/sys_ioctl-tests.
15691         * modules/sys_ioctl-tests: Depend on it.
15692         * modules/sys_select-c++-tests: New file, extracted from
15693         modules/sys_select-tests.
15694         * modules/sys_select-tests: Depend on it.
15695         * modules/sys_socket-c++-tests: New file, extracted from
15696         modules/sys_socket-tests.
15697         * modules/sys_socket-tests: Depend on it.
15698         * modules/sys_stat-c++-tests: New file, extracted from
15699         modules/sys_stat-tests.
15700         * modules/sys_stat-tests: Depend on it.
15701         * modules/sys_time-c++-tests: New file, extracted from
15702         modules/sys_time-tests.
15703         * modules/sys_time-tests: Depend on it.
15704         * modules/time-c++-tests: New file, extracted from modules/time-tests.
15705         * modules/time-tests: Depend on it.
15706         * modules/unistd-c++-tests: New file, extracted from
15707         modules/unistd-tests.
15708         * modules/unistd-tests: Depend on it.
15709         * modules/wchar-c++-tests: New file, extracted from
15710         modules/wchar-tests.
15711         * modules/wchar-tests: Depend on it.
15712         * modules/wctype-c++-tests: New file, extracted from
15713         modules/wctype-tests.
15714         * modules/wctype-tests: Depend on it.
15715         Reported by Simon Josefsson.
15716
15717 2010-03-28  Bruno Haible  <bruno@clisp.org>
15718
15719         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
15720         * gnulib-tool (func_exists_module): New function, extracted from
15721         func_verify_module.
15722         (func_verify_module): Use it.
15723         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
15724         'foo' only if 'foo' exists.
15725         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
15726         module.
15727
15728 2010-03-28  Bruno Haible  <bruno@clisp.org>
15729
15730         gnulib-tool: Add support for special categories of tests.
15731         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
15732         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
15733         (func_usage): Document them.
15734         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
15735         inc_unportable_tests, inc_all_tests): New variables.
15736         (func_acceptable): Consider these variables.
15737         (func_modules_transitive_closure): Make it work when the 'Status' field
15738         consists of multiple words.
15739         (func_import): Store and restore the values of inc_cxx_tests,
15740         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
15741         inc_all_tests in gnulib-comp.m4.
15742         (func_create_testdir): Set inc_all_tests to true.
15743         * doc/gnulib.texi (Extra tests modules): New section.
15744         Suggested by Jim Meyering.
15745
15746 2010-03-28  Bruno Haible  <bruno@clisp.org>
15747
15748         ansi-c++-opt: Allow turning off the C++ build by default.
15749         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
15750         gl_CXX_CHOICE_DEFAULT_NO is defined.
15751         Requested by Eric Blake.
15752
15753 2010-03-28  Bruno Haible  <bruno@clisp.org>
15754
15755         unistd: Avoid #define replacements in C++ mode.
15756         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15757         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15758         setsockopt, shutdown, select): In C++, attach a warning to the function
15759         if possible, rather than #defining the symbol to a dysfunctional alias.
15760         Reported by John W. Eaton <jwe@gnu.org>.
15761
15762 2010-03-28  Bruno Haible  <bruno@clisp.org>
15763
15764         Fix link errors on mingw.
15765         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
15766         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
15767         $(LIBSOCKET).
15768         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
15769         $(LIBSOCKET).
15770
15771 2010-03-28  Bruno Haible  <bruno@clisp.org>
15772             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15773
15774         lib-ignore: Determine different options for different compilers.
15775         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
15776         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
15777         Add comments.
15778         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
15779         * NEWS: Mention the change.
15780
15781 2010-03-27  Bruno Haible  <bruno@clisp.org>
15782
15783         Remove unused GNULIB_XYZ macro definitions.
15784         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15785         * modules/fseek (configure.ac): Likewise.
15786         * modules/ioctl (configure.ac): Likewise.
15787         * modules/open (configure.ac): Likewise.
15788         * modules/stdlib-safer (configure.ac): Likewise.
15789
15790 2010-03-27  Bruno Haible  <bruno@clisp.org>
15791
15792         Add a remark about certain modules.
15793         * modules/malloc (Comment): New section.
15794         * modules/realloc (Comment): Likewise.
15795         * modules/sigpipe (Comment): Likewise.
15796
15797 2010-03-27  Bruno Haible  <bruno@clisp.org>
15798
15799         Resolve conflict between the two kinds of module indicators.
15800         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
15801         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
15802         * modules/canonicalize (configure.ac): Invoke
15803         gl_MODULE_INDICATOR_FOR_TESTS.
15804         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
15805         GNULIB_XYZ.
15806         * tests/test-dirent-c++.cc: Likewise.
15807         * tests/test-dirent-safer.c: Likewise.
15808         * tests/test-dup2.c: Likewise.
15809         * tests/test-fchdir.c: Likewise.
15810         * tests/test-fcntl-h-c++.cc: Likewise.
15811         * tests/test-getopt.c: Likewise.
15812         * tests/test-getopt.h: Likewise.
15813         * tests/test-langinfo-c++.cc: Likewise.
15814         * tests/test-locale-c++.cc: Likewise.
15815         * tests/test-math-c++.cc: Likewise.
15816         * tests/test-pty-c++.cc: Likewise.
15817         * tests/test-search-c++.cc: Likewise.
15818         * tests/test-signal-c++.cc: Likewise.
15819         * tests/test-spawn-c++.cc: Likewise.
15820         * tests/test-stdio-c++.cc: Likewise.
15821         * tests/test-stdlib-c++.cc: Likewise.
15822         * tests/test-string-c++.cc: Likewise.
15823         * tests/test-sys_ioctl-c++.cc: Likewise.
15824         * tests/test-sys_select-c++.cc: Likewise.
15825         * tests/test-sys_socket-c++.cc: Likewise.
15826         * tests/test-sys_stat-c++.cc: Likewise.
15827         * tests/test-sys_time-c++.cc: Likewise.
15828         * tests/test-time-c++.cc: Likewise.
15829         * tests/test-unistd-c++.cc: Likewise.
15830         * tests/test-wchar-c++.cc: Likewise.
15831         * tests/uninorm/test-u8-nfc.c: Likewise.
15832         * tests/uninorm/test-u8-nfd.c: Likewise.
15833         * tests/uninorm/test-u8-nfkc.c: Likewise.
15834         * tests/uninorm/test-u8-nfkd.c: Likewise.
15835         * tests/uninorm/test-u16-nfc.c: Likewise.
15836         * tests/uninorm/test-u16-nfd.c: Likewise.
15837         * tests/uninorm/test-u16-nfkc.c: Likewise.
15838         * tests/uninorm/test-u16-nfkd.c: Likewise.
15839         * tests/uninorm/test-u32-nfc.c: Likewise.
15840         * tests/uninorm/test-u32-nfc-big.c: Likewise.
15841         * tests/uninorm/test-u32-nfd.c: Likewise.
15842         * tests/uninorm/test-u32-nfd-big.c: Likewise.
15843         * tests/uninorm/test-u32-nfkc.c: Likewise.
15844         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
15845         * tests/uninorm/test-u32-nfkd.c: Likewise.
15846         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
15847         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15848
15849 2010-03-27  Bruno Haible  <bruno@clisp.org>
15850
15851         Distinguish two kinds of module indicators.
15852         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
15853         gl_MODULE_INDICATOR.
15854         (gl_MODULE_INDICATOR): New macro.
15855         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15856         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
15857         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15858         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15859         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15860         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15861         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15862         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15863         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15864         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15865         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15866         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15867         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15868         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15869         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15870         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15871         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15872         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15873         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15874         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15875         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15876         * modules/cloexec (configure.ac): Likewise.
15877         * modules/getopt-gnu (configure.ac): Likewise.
15878         * modules/uninorm/u8-normalize (configure.ac): Likewise.
15879         * modules/uninorm/u16-normalize (configure.ac): Likewise.
15880         * modules/uninorm/u32-normalize (configure.ac): Likewise.
15881         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
15882
15883 2010-03-27  Bruno Haible  <bruno@clisp.org>
15884
15885         New module description field 'Comment'.
15886         * gnulib-tool: New option --extract-comment.
15887         (func_usage): Document it.
15888         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
15889         (func_get_comment): New function.
15890         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
15891
15892 2010-03-27  Bruno Haible  <bruno@clisp.org>
15893
15894         Addendum to 2010-02-07 commit.
15895         * gnulib-tool (func_usage): Document --extract-applicability option.
15896
15897 2010-03-27  Bruno Haible  <bruno@clisp.org>
15898
15899         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
15900         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
15901         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
15902         rather than link errors.
15903
15904 2010-03-27  Bruno Haible  <bruno@clisp.org>
15905
15906         Avoid side effects from tests-related modules on the compilation of lib.
15907         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
15908         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
15909         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
15910         parameter. Emit into AM_CPPFLAGS a definition of the designated C
15911         macro.
15912         (func_import): Define a witness macro. Assign it a value that depends
15913         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
15914         tests-related modules.
15915         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
15916         Reported by Jim Meyering.
15917
15918 2010-03-27  Bruno Haible  <bruno@clisp.org>
15919
15920         Factorize common .m4 code.
15921         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
15922         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
15923         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
15924         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
15925         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15926         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
15927         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
15928         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15929         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15930         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15931         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
15932         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15933         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15934         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15935         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15936         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
15937         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15938         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15939         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15940         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
15941         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
15942         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15943         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15944         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15945         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15946         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15947         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
15948         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
15949         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
15950         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15951         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15952         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15953
15954 2010-03-27  Bruno Haible  <bruno@clisp.org>
15955
15956         Fix a compilation error on Cygwin with g++ >= 4.3.
15957         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
15958         if it is undefined or if we alias it to chmod.
15959         (lstat): Don't warn about the use of this function if it is undefined
15960         or if we alias it to stat.
15961         Reported by Simon Josefsson.
15962
15963 2010-03-27  Bruno Haible  <bruno@clisp.org>
15964
15965         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
15966         * modules/getlogin (configure.ac): Update.
15967
15968         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
15969         * modules/getlogin_r (configure.ac): Update.
15970
15971         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
15972         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
15973         * modules/inet_ntop (configure.ac): Update.
15974
15975         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
15976         * modules/inet_pton (configure.ac): Update.
15977
15978         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
15979         * modules/mbslen (configure.ac): Update.
15980
15981         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
15982         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
15983         * modules/forkpty (configure.ac): Update.
15984         * modules/openpty (configure.ac): Update.
15985
15986 2010-03-26  Simon Josefsson  <simon@josefsson.org>
15987
15988         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
15989         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
15990
15991 2010-03-25  Eric Blake  <eblake@redhat.com>
15992
15993         maint: use pragma consistently across replacement headers
15994         * lib/ctype.in.h (system_header): Hoist for consistent placement.
15995         * lib/dirent.in.h (system_header): Likewise.
15996         * lib/errno.in.h (system_header): Likewise.
15997         * lib/float.in.h (system_header): Likewise.
15998         * lib/getopt.in.h (system_header): Likewise.
15999         * lib/iconv.in.h (system_header): Likewise.
16000         * lib/inttypes.in.h (system_header): Likewise.
16001         * lib/langinfo.in.h (system_header): Likewise.
16002         * lib/locale.in.h (system_header): Likewise.
16003         * lib/math.in.h (system_header): Likewise.
16004         * lib/netdb.in.h (system_header): Likewise.
16005         * lib/netinet_in.in.h (system_header): Likewise.
16006         * lib/pty.in.h (system_header): Likewise.
16007         * lib/sched.in.h (system_header): Likewise.
16008         * lib/se-selinux.in.h (system_header): Likewise.
16009         * lib/search.in.h (system_header): Likewise.
16010         * lib/spawn.in.h (system_header): Likewise.
16011         * lib/stdarg.in.h (system_header): Likewise.
16012         * lib/stdint.in.h (system_header): Likewise.
16013         * lib/string.in.h (system_header): Likewise.
16014         * lib/strings.in.h (system_header): Likewise.
16015         * lib/sys_file.in.h (system_header): Likewise.
16016         * lib/sys_ioctl.in.h (system_header): Likewise.
16017         * lib/sys_socket.in.h (system_header): Likewise.
16018         * lib/sys_times.in.h (system_header): Likewise.
16019         * lib/sys_utsname.in.h (system_header): Likewise.
16020         * lib/sys_wait.in.h (system_header): Likewise.
16021         * lib/sysexits.in.h (system_header): Likewise.
16022         * lib/unistd.in.h (system_header): Likewise.
16023         * lib/wctype.in.h (system_header): Likewise.
16024
16025         arpa/inet: fix mingw compilation warning
16026         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
16027         Reported by Matthew Bolte.
16028
16029 2010-03-25  Bruno Haible  <bruno@clisp.org>
16030
16031         Avoid collision between gnulib wrapper and libintl wrapper.
16032         * lib/printf.c (printf): Don't define if a printf wrapper is already
16033         defined in intl/printf.c.
16034         Reported by Michel Boaventura <michel@michelboaventura.com>.
16035
16036 2010-03-25  Bruno Haible  <bruno@clisp.org>
16037
16038         Use ANSI C.
16039         * lib/readutmp.h (getutent): Provide ANSI C prototype.
16040
16041 2010-03-25  Bruno Haible  <bruno@clisp.org>
16042
16043         Minor formatting changes.
16044         * lib/acosl.c: Insert space before function argument list.
16045         * lib/argz.c: Likewise.
16046         * lib/asinl.c: Likewise.
16047         * lib/expl.c: Likewise.
16048         * lib/gen-uni-tables.c: Likewise.
16049         * lib/gettext.h: Likewise.
16050         * lib/glthread/lock.h: Likewise.
16051         * lib/tanl.c: Likewise.
16052         * lib/uniname/uniname.c: Likewise.
16053         * tests/test-idpriv-drop.c: Likewise.
16054         * tests/test-idpriv-droptemp.c: Likewise.
16055         * tests/test-lock.c: Likewise.
16056         * tests/test-tls.c: Likewise.
16057         * lib/argp-help.c: Insert space before function-like macro argument
16058         list.
16059         * lib/memcmp.c: Likewise.
16060         * tests/test-base64.c: Likewise.
16061         * lib/localename.c: Insert space before sizeof's argument list.
16062         * lib/safe-alloc.h: Likewise.
16063         * lib/file-set.h: Insert space before macro argument list.
16064         * tests/test-argp.c: Likewise.
16065         * lib/argp-namefrob.h: Insert space before function parameter list.
16066         * lib/getaddrinfo.c: Likewise.
16067         * lib/netdb.in.h: Likewise.
16068         * lib/parse-duration.h: Likewise.
16069         * lib/parse-duration.c: Likewise.
16070         * lib/poll.c: Likewise.
16071         * lib/select.c: Likewise.
16072         * lib/trim.h: Likewise.
16073         * tests/test-usleep.c: Likewise.
16074         * lib/ldexpl.c: Insert space before function parameter list and before
16075         function argument list.
16076         * lib/logl.c: Likewise.
16077         * lib/sqrtl.c: Likewise.
16078         * lib/trim.c: Likewise.
16079         * lib/cosl.c: Use GNU style indentation. Insert space before function
16080         argument list.
16081         * lib/sinl.c: Likewise.
16082         * lib/tsearch.c: Insert space after 'for'.
16083         Reported by Jim Meyering.
16084
16085 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
16086
16087         * maint.mk (sc_Wundef_boolean): Check for the presence of the
16088         config header before grepping, as it's not present before
16089         autoreconf/configure are run.  Reported by Simon Josefsson.
16090
16091 2010-03-23  Bruno Haible  <bruno@clisp.org>
16092
16093         pt_chown: Make it work with automake < 1.11.
16094         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
16095         Reported by Simon Josefsson.
16096
16097 2010-03-23  Bruno Haible  <bruno@clisp.org>
16098
16099         pt_chown: Don't depend on GPLed modules.
16100         * lib/pt_chown.c: Don't include idpriv.h.
16101         (main): Don't drop privileges.
16102         * modules/pt_chown (Depends-on): Remove idpriv-drop.
16103         Reported by Simon Josefsson.
16104
16105 2010-03-24  Simon Josefsson  <simon@josefsson.org>
16106
16107         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
16108         suggestions from karl@freefriends.org (Karl Berry).
16109
16110 2010-03-22  Eric Blake  <eblake@redhat.com>
16111
16112         gethostname: further tweaks
16113         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
16114         are overriding gethostname.
16115         Suggested by Bruno Haible.
16116
16117 2010-03-21  Bruno Haible  <bruno@clisp.org>
16118
16119         Fix comments.
16120         * lib/forkpty.c (rpl_forkpty): Fix comment.
16121         * lib/openpty.c (rpl_openpty): Likewise.
16122         Reported by Eric Blake.
16123
16124 2010-03-22  Eric Blake  <eblake@redhat.com>
16125
16126         gethostname: fix build on mingw
16127         * lib/unistd.in.h (includes): Work around fact that mingw
16128         <winsock2.h> re-includes <unistd.h>, by avoiding any
16129         redeclarations if we are being included by <winsock2.h>.
16130         Reported by Matthias Bolte.
16131
16132 2010-03-21  Bruno Haible  <bruno@clisp.org>
16133
16134         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16135         * lib/forkpty.c (forkpty): New replacement function, from glibc with
16136         modifications.
16137         * lib/pty.in.h (forkpty): Update declaration. Add comments.
16138         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
16139         provide the replacement.
16140         * modules/forkpty (Depends-on): Add openpty, login_tty.
16141         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
16142         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
16143         * doc/glibc-functions/forkpty.texi: More supported platforms.
16144         * config/srclist.txt: Add forkpty.c (commented).
16145
16146 2010-03-21  Bruno Haible  <bruno@clisp.org>
16147
16148         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
16149         (Makefile.am): Verify that PTY_LIB is defined.
16150
16151         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
16152
16153 2010-03-21  Bruno Haible  <bruno@clisp.org>
16154
16155         Tests for module 'login_tty'.
16156         * modules/login_tty-tests: New file.
16157         * tests/test-login_tty.c: New file.
16158
16159         New module 'login_tty'.
16160         * lib/login_tty.c: New file.
16161         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
16162         * modules/login_tty: New file.
16163         * doc/glibc-functions/login_tty.texi: Mention the new module.
16164
16165 2010-03-21  Bruno Haible  <bruno@clisp.org>
16166
16167         login_tty: Documentation.
16168         * doc/glibc-functions/login_tty.texi: New file.
16169         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
16170
16171 2010-03-21  Bruno Haible  <bruno@clisp.org>
16172
16173         pty: Consistent macro naming.
16174         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
16175         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
16176         * modules/pty (configure.ac): Update.
16177
16178 2010-03-21  Bruno Haible  <bruno@clisp.org>
16179
16180         Tests for openpty: Make stricter.
16181         * tests/test-openpty.c (main): Add test of canonical processing and
16182         erase.
16183         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
16184
16185         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16186         * lib/openpty.c (openpty): New replacement function.
16187         * lib/pty.in.h: Include <termios.h>.
16188         (openpty): Update declaration. Add comments.
16189         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
16190         is not declared, arrange to provide the replacement. Check for _getpty
16191         and posix_openpt.
16192         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
16193         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
16194         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
16195         * modules/pty-tests (test_pty_c___LDADD): New variable.
16196         * doc/glibc-functions/openpty.texi: More supported platforms.
16197
16198 2010-03-21  Bruno Haible  <bruno@clisp.org>
16199
16200         setenv: Tweaks.
16201         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
16202         the test program.
16203         * doc/posix-functions/setenv.texi: Update platforms list.
16204
16205 2010-03-21  Bruno Haible  <bruno@clisp.org>
16206
16207         New module 'unlockpt'.
16208         * lib/unlockpt.c: New file, from glibc with modifications.
16209         * m4/unlockpt.m4: New file.
16210         * modules/unlockpt: New file.
16211         * lib/stdlib.in.h (unlockpt): New declaration.
16212         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
16213         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
16214         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
16215         HAVE_UNLOCKPT.
16216         * doc/posix-functions/unlockpt.texi: Mention the new module.
16217         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
16218         * config/srclist.txt: Add unlockpt.c (commented).
16219
16220 2010-03-21  Jim Meyering  <meyering@redhat.com>
16221
16222         maint.mk: prohibit inclusion of "intprops.h" without use
16223         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
16224
16225 2010-03-21  Bruno Haible  <bruno@clisp.org>
16226
16227         New module 'grantpt'.
16228         * lib/grantpt.c: New file, from glibc with modifications.
16229         * m4/grantpt.m4: New file.
16230         * modules/grantpt: New file.
16231         * lib/stdlib.in.h (grantpt): New declaration.
16232         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
16233         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
16234         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
16235         HAVE_GRANTPT.
16236         * doc/posix-functions/grantpt.texi: Mention the new module.
16237         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
16238         * config/srclist.txt: Add grantpt.c (commented).
16239
16240 2010-03-21  Bruno Haible  <bruno@clisp.org>
16241
16242         New module 'pt_chown'.
16243         * lib/pt_chown.c: New file, from glibc with modifications.
16244         * lib/pty-private.h: New file, from glibc with modifications.
16245         * modules/pt_chown: New file.
16246         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
16247
16248 2010-03-21  Bruno Haible  <bruno@clisp.org>
16249
16250         Tests for module 'ptsname'.
16251         * modules/ptsname-tests: New file.
16252         * tests/test-ptsname.c: New file.
16253
16254         New module 'ptsname'.
16255         * lib/ptsname.c: New file, from glibc with modifications.
16256         * m4/ptsname.m4: New file.
16257         * modules/ptsname: New file.
16258         * lib/stdlib.in.h (ptsname): New declaration.
16259         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
16260         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
16261         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
16262         HAVE_PTSNAME.
16263         * doc/posix-functions/ptsname.texi: Mention the new module.
16264         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
16265         * config/srclist.txt: Add ptsname.c (commented).
16266
16267 2010-03-21  Bruno Haible  <bruno@clisp.org>
16268
16269         Tests for module 'ttyname_r'.
16270         * modules/ttyname_r-tests: New file.
16271         * tests/test-ttyname_r.c: New file.
16272
16273         New module 'ttyname_r'.
16274         * lib/ttyname_r.c: New file.
16275         * m4/ttyname_r.m4: New file.
16276         * modules/ttyname_r: New file.
16277         * lib/unistd.in.h (ttyname_r): New declaration.
16278         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
16279         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
16280         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
16281         HAVE_TTYNAME_R.
16282         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
16283         * doc/posix-functions/ttyname_r.texi: Mention the new module.
16284
16285 2010-03-20  Bruno Haible  <bruno@clisp.org>
16286
16287         signal: Undefine macro definitions in C++ mode.
16288         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
16289         sigfillset): Undefine macro definitions from the system header in C++
16290         mode.
16291         Reported by John W. Eaton <jwe@gnu.org>.
16292
16293 2010-03-20  Bruno Haible  <bruno@clisp.org>
16294
16295         Ensure no #include statements inside extern "C" { ... }.
16296         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
16297         contain #include statements.
16298         * lib/time.in.h: Likewise.
16299
16300 2010-03-20  Bruno Haible  <bruno@clisp.org>
16301
16302         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
16303         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
16304         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
16305         Reported by John W. Eaton <jwe@gnu.org>.
16306
16307 2010-03-20  Bruno Haible  <bruno@clisp.org>
16308
16309         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
16310         Reported by Jim Meyering.
16311
16312 2010-03-20  Bruno Haible  <bruno@clisp.org>
16313
16314         pipe: Set errno upon failure.
16315         * lib/pipe.h: Specify that when -1 is returned, errno is set.
16316         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
16317         errno value in error message.
16318
16319 2010-03-20  Bruno Haible  <bruno@clisp.org>
16320             Jim Meyering  <meyering@redhat.com>
16321
16322         lchown: Avoid "unused variable" warning.
16323         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
16324
16325 2010-03-20  Bruno Haible  <bruno@clisp.org>
16326
16327         Work around unlink() bug on MacOS X 10.5.6.
16328         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
16329         attempting to unlink a parent directory.
16330         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
16331         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
16332         activate for the replacement function.
16333         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
16334
16335 2010-03-20  Bruno Haible  <bruno@clisp.org>
16336
16337         Fix link errors on Solaris 8.
16338         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
16339         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
16340
16341 2010-03-19  Jim Meyering  <meyering@redhat.com>
16342
16343         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
16344         The _LIBC implementation of build_range_exp correctly honors the
16345         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
16346         However, the non-_LIBC implementation would ignore that syntax-bit
16347         flag and return REG_ERANGE unconditionally.
16348         This change makes it honor that flag.
16349         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
16350         Make two pointer parameters "const".
16351         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
16352         (parse_bracket_exp): Update caller.
16353
16354         regex.m4: correct the reversed range endpoint ([b-a]) test
16355         * m4/regex.m4: When requiring that [b-a] evoke failure,
16356         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
16357         test pass once again for x86-based systems.
16358
16359 2010-03-19  Bruno Haible  <bruno@clisp.org>
16360
16361         scandir: Fix link error on Solaris 8.
16362         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
16363         macros.
16364
16365 2010-03-19  Bruno Haible  <bruno@clisp.org>
16366
16367         getusershell: Fix documentation.
16368         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
16369         module.
16370         * doc/glibc-functions/setusershell.texi: Likewise.
16371
16372         getusershell: Provide declaration, missing on Solaris 9.
16373         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
16374         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
16375         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
16376         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
16377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16378         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
16379         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
16380         HAVE_GETUSERSHELL.
16381         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
16382
16383 2010-03-19  Bruno Haible  <bruno@clisp.org>
16384
16385         wctype: Provide iswblank function.
16386         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
16387         exists and is fine.
16388         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
16389         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
16390         * tests/test-wctype.c (main): Re-enable the iswblank tests.
16391         * doc/posix-functions/iswblank.texi: Update.
16392
16393 2010-03-19  Bruno Haible  <bruno@clisp.org>
16394
16395         Tests of module 'pty' in C++ mode.
16396         * modules/pty-tests: New file.
16397         * tests/test-pty-c++.cc: New file.
16398         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16399
16400 2010-03-19  Eric Blake  <eblake@redhat.com>
16401
16402         logb: fix documentation
16403         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
16404         1.5 declaration bug.
16405
16406         forkpty, openpty: prefer glibc's const-safe prototype
16407         * lib/forkpty.c (rpl_forkpty): New file.
16408         * lib/openpty.c (rpl_openpty): Likewise.
16409         * modules/forkpty (Files): Distribute it.
16410         * modules/openpty (Files): Likewise.
16411         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
16412         check...
16413         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
16414         replacement for for non-const BSD signature.
16415         * modules/pty (Makefile.am): Substitute witnesses.
16416         * lib/pty.in.h (forkpty, openpty): Declare replacements.
16417         * tests/test-forkpty.c: Update signature check.
16418         * tests/test-openpty.c: Likewise.
16419         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
16420         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16421
16422         forkpty, openpty: split functions into new modules
16423         * modules/pty (Makefile.am): Substitute new witnesses.
16424         (Libraries): Move library detection...
16425         * modules/forkpty: ...into new module.
16426         * modules/openpty: Another new module.
16427         * modules/pty-tests: Rename and split...
16428         * modules/forkpty-tests: ...to this...
16429         * modules/openpty-tests: ...and this.
16430         * tests/test-pty.c: Rename and split...
16431         * tests/test-forkpty.c: ...to this...
16432         * tests/test-openpty.c: ...and this.
16433         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
16434         (gl_PTY): Split library searching...
16435         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
16436         (gl_FORKPTY, gl_OPENPTY): New macros.
16437         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
16438         * NEWS: Mention the split.
16439         * MODULES.html.sh (Misc): Document the modules.
16440         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
16441         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16442
16443         pty: improve replacement header
16444         * lib/pty.in.h: New file.
16445         * modules/pty (Files): Ship it.
16446         (Makefile.am): Always build replacement.
16447         * m4/pty.m4: Rename...
16448         * m4/pty_h.m4: ...to this.
16449         (gl_PTY): Modernize setting of witness macros; update check of
16450         forkpty to take proper advantage of cache.
16451         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
16452
16453         getopt: avoid compiler warning
16454         * lib/getopt.c (attribute_hidden): Remove unused macro.
16455
16456 2010-03-18  Bruno Haible  <bruno@clisp.org>
16457
16458         Fix link errors on Solaris 8.
16459         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
16460         * modules/search-tests (test_search_c___LDADD): Likewise.
16461         * modules/signal-tests (test_signal_c___LDADD): Likewise.
16462         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
16463         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
16464         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
16465         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
16466         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
16467         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
16468
16469 2010-03-18  Bruno Haible  <bruno@clisp.org>
16470
16471         Fix bug introduced on 2010-03-14.
16472         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
16473         (gl_SPAWN_H): Require it.
16474         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
16475         Reported by Simon Josefsson.
16476
16477 2010-03-18  Bruno Haible  <bruno@clisp.org>
16478
16479         Fix typo introduced on 2009-12-31.
16480         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
16481         posix_spawn_file_actions_adddup2.
16482
16483 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
16484         and Eric Blake  <eblake@redhat.com>
16485
16486         test-vc-list-files-git: make more robust
16487         * tests/test-vc-list-files-git.sh: Unset problematic environment
16488         variables.  Chain commands together.
16489
16490 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
16491
16492         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
16493         `AC_CHECK_DECL' invocation.
16494
16495 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
16496
16497         * lib/inttostr.c (inttostr): Make sure the invocation of verify
16498         appears before executable statements. Suggested by Petr Sumbera
16499         <Petr.Sumbera@Sun.COM>.
16500
16501 2010-03-14  Bruno Haible  <bruno@clisp.org>
16502
16503         * tests/test-flock.c (test_exclusive): Comment out a test that causes
16504         portability problems. Instead use a simpler test.
16505         (main): Check that invalid arguments are rejected only on Linux.
16506
16507 2010-03-14  Bruno Haible  <bruno@clisp.org>
16508
16509         Fix bug introduced on 2009-12-31.
16510         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16511         gl_PREREQ_SYS_H_WINSOCK2 always.
16512         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
16513         SYS_SOCKET_H variable.
16514         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
16515         Update comments.
16516         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
16517         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16518         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16519         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16520         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
16521
16522 2010-03-14  Bruno Haible  <bruno@clisp.org>
16523
16524         Fix values returned by sinl, cosl.
16525         * lib/trigl.h: Add specification comments.
16526         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
16527         that combines the values from the precomputed table with the values of
16528         the Chebyshev polynomials.
16529
16530 2010-03-14  Bruno Haible  <bruno@clisp.org>
16531
16532         Fix compilation error when modules 'posix_spawn[p]' are not used.
16533         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
16534         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
16535
16536 2010-03-14  Bruno Haible  <bruno@clisp.org>
16537
16538         Fix compilation error on mingw when module 'time_r' is not used.
16539         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
16540         is 1.
16541         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
16542         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16543         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
16544         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
16545
16546 2010-03-14  Bruno Haible  <bruno@clisp.org>
16547
16548         Fix compilation error with Sun C.
16549         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
16550         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
16551         instead of GCC specific ULONG_LONG_MAX.
16552         * lib/xstrtoll.c: Likewise.
16553         * lib/xstrtoull.c: Likewise.
16554
16555 2010-03-13  Bruno Haible  <bruno@clisp.org>
16556
16557         Allow the user to disable C++ code and tests.
16558         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
16559         (gl_PROG_ANSI_CXX): Require it.
16560
16561 2010-03-13  Bruno Haible  <bruno@clisp.org>
16562
16563         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
16564         cases.
16565
16566 2010-03-13  Bruno Haible  <bruno@clisp.org>
16567
16568         Test that gnulib does not break the standard C++ headers.
16569         * tests/test-locale-c++2.cc: New file.
16570         * modules/locale-tests (Files): Add it.
16571         (Makefile.am): Compile it for test-locale-c++.
16572         * tests/test-math-c++2.cc: New file.
16573         * modules/math-tests (Files): Add it.
16574         (Makefile.am): Compile it for test-math-c++.
16575         * tests/test-signal-c++2.cc: New file.
16576         * modules/signal-tests (Files): Add it.
16577         (Makefile.am): Compile it for test-signal-c++.
16578         * tests/test-stdio-c++2.cc: New file.
16579         * modules/stdio-tests (Files): Add it.
16580         (Makefile.am): Compile it for test-stdio-c++.
16581         * tests/test-stdlib-c++2.cc: New file.
16582         * modules/stdlib-tests (Files): Add it.
16583         (Makefile.am): Compile it for test-stdlib-c++.
16584         * tests/test-string-c++2.cc: New file.
16585         * modules/string-tests (Files): Add it.
16586         (Makefile.am): Compile it for test-string-c++.
16587         * tests/test-time-c++2.cc: New file.
16588         * modules/time-tests (Files): Add it.
16589         (Makefile.am): Compile it for test-time-c++.
16590         Reported by John W. Eaton <jwe@gnu.org>.
16591
16592 2010-03-13  Bruno Haible  <bruno@clisp.org>
16593
16594         * gnulib-tool (func_usage): Clarify which options are available for
16595         --create-testdir and --create-megatestdir.
16596
16597 2010-03-13  Bruno Haible  <bruno@clisp.org>
16598
16599         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
16600         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
16601         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
16602         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16603         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
16604         when appropriate.
16605         Reported by Jim Meyering.
16606
16607 2010-03-12  Simon Josefsson  <simon@josefsson.org>
16608
16609         * gnulib-tool (func_import): Explain origin of code.
16610
16611 2010-03-12  Bruno Haible  <bruno@clisp.org>
16612
16613         Fix problem with automake's definition of CXXLINK.
16614         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
16615         Reported by Simon Josefsson and Ludovic Courtès.
16616
16617 2010-03-12  Bruno Haible  <bruno@clisp.org>
16618
16619         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
16620         stable releases.
16621
16622 2010-03-11  Bruno Haible  <bruno@clisp.org>
16623
16624         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
16625         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
16626         whether the system provides one variant or multiple variants of the
16627         function.
16628         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
16629         C++ compilers.
16630         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
16631         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
16632         Reported by Jim Meyering.
16633
16634 2010-03-09  Simon Josefsson  <simon@josefsson.org>
16635
16636         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
16637
16638 2010-03-08  Bruno Haible  <bruno@clisp.org>
16639
16640         gnulib-tool: Add support for --libtool in --create-testdir.
16641         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
16642         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
16643
16644 2010-03-08  Eric Blake  <eblake@redhat.com>
16645
16646         gnulib-tool.texi: mention possibility of git submodule
16647         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
16648         submodules.
16649         * doc/.gitignore: Ignore another generated file.
16650
16651 2010-03-08  Karl Berry  <karl@gnu.org>
16652
16653         * doc/gnulib-tool.texi (VCS Issues): Mention third option
16654         of committing gnulib files while skipping others.
16655
16656 2010-03-07  Bruno Haible  <bruno@clisp.org>
16657
16658         Tests of module 'wctype' in C++ mode.
16659         * tests/test-wctype-c++.cc: New file.
16660         * modules/wctype-tests (Files): Add it and tests/signature.h.
16661         (Depends-on): Add ansi-c++-opt.
16662         (Makefile.am): Arrange to compile and run test-wctype-c++.
16663
16664         Tests of module 'wchar' in C++ mode.
16665         * tests/test-wchar-c++.cc: New file.
16666         * modules/wchar-tests (Files): Add it and tests/signature.h.
16667         (Depends-on): Add ansi-c++-opt.
16668         (Makefile.am): Arrange to compile and run test-wchar-c++.
16669         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
16670         gl_MODULE_INDICATOR.
16671
16672         Tests of module 'unistd' in C++ mode.
16673         * tests/test-unistd-c++.cc: New file.
16674         * modules/unistd-tests (Files): Add it and tests/signature.h.
16675         (Depends-on): Add ansi-c++-opt.
16676         (Makefile.am): Arrange to compile and run test-unistd-c++.
16677         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
16678         gl_MODULE_INDICATOR.
16679
16680         Tests of module 'time' in C++ mode.
16681         * tests/test-time-c++.cc: New file.
16682         * modules/time-tests (Files): Add it and tests/signature.h.
16683         (Depends-on): Add ansi-c++-opt.
16684         (Makefile.am): Arrange to compile and run test-time-c++.
16685         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16686
16687         Tests of module 'sys_time' in C++ mode.
16688         * tests/test-sys_time-c++.cc: New file.
16689         * modules/sys_time-tests (Files): Add it and tests/signature.h.
16690         (Depends-on): Add ansi-c++-opt.
16691         (Makefile.am): Arrange to compile and run test-sys_time-c++.
16692         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
16693         gl_MODULE_INDICATOR.
16694
16695         Tests of module 'sys_stat' in C++ mode.
16696         * tests/test-sys_stat-c++.cc: New file.
16697         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
16698         (Depends-on): Add ansi-c++-opt.
16699         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
16700         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
16701         gl_MODULE_INDICATOR.
16702
16703         Tests of module 'sys_socket' in C++ mode.
16704         * tests/test-sys_socket-c++.cc: New file.
16705         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
16706         (Depends-on): Add ansi-c++-opt.
16707         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
16708         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
16709         gl_MODULE_INDICATOR.
16710
16711         Tests of module 'sys_select' in C++ mode.
16712         * tests/test-sys_select-c++.cc: New file.
16713         * modules/sys_select-tests (Files): Add it and tests/signature.h.
16714         (Depends-on): Add ansi-c++-opt.
16715         (Makefile.am): Arrange to compile and run test-sys_select-c++.
16716         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
16717         gl_MODULE_INDICATOR.
16718
16719         Tests of module 'sys_ioctl' in C++ mode.
16720         * tests/test-sys_ioctl-c++.cc: New file.
16721         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
16722         (Depends-on): Add ansi-c++-opt.
16723         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
16724         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
16725         gl_MODULE_INDICATOR.
16726
16727         Tests of module 'string' in C++ mode.
16728         * tests/test-string-c++.cc: New file.
16729         * modules/string-tests (Files): Add it and tests/signature.h.
16730         (Depends-on): Add ansi-c++-opt.
16731         (Makefile.am): Arrange to compile and run test-string-c++.
16732         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
16733         gl_MODULE_INDICATOR.
16734
16735         Tests of module 'stdlib' in C++ mode.
16736         * tests/test-stdlib-c++.cc: New file.
16737         * modules/stdlib-tests (Files): Add it and tests/signature.h.
16738         (Depends-on): Add ansi-c++-opt.
16739         (Makefile.am): Arrange to compile and run test-stdlib-c++.
16740         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
16741         gl_MODULE_INDICATOR.
16742
16743         Tests of module 'stdio' in C++ mode.
16744         * tests/test-stdio-c++.cc: New file.
16745         * modules/stdio-tests (Files): Add it and tests/signature.h.
16746         (Depends-on): Add ansi-c++-opt.
16747         (Makefile.am): Arrange to compile and run test-stdio-c++.
16748         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
16749         gl_MODULE_INDICATOR.
16750
16751         Tests of module 'spawn' in C++ mode.
16752         * tests/test-spawn-c++.cc: New file.
16753         * modules/spawn-tests (Files): Add it and tests/signature.h.
16754         (Depends-on): Add ansi-c++-opt.
16755         (Makefile.am): Arrange to compile and run test-spawn-c++.
16756         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
16757         gl_MODULE_INDICATOR.
16758
16759         Tests of module 'signal' in C++ mode.
16760         * tests/test-signal-c++.cc: New file.
16761         * modules/signal-tests (Files): Add it and tests/signature.h.
16762         (Depends-on): Add ansi-c++-opt.
16763         (Makefile.am): Arrange to compile and run test-signal-c++.
16764         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
16765         gl_MODULE_INDICATOR.
16766
16767         Tests of module 'search' in C++ mode.
16768         * tests/test-search-c++.cc: New file.
16769         * modules/search-tests (Files): Add it and tests/signature.h.
16770         (Depends-on): Add ansi-c++-opt.
16771         (Makefile.am): Arrange to compile and run test-search-c++.
16772         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
16773         gl_MODULE_INDICATOR.
16774
16775         Tests of module 'math' in C++ mode.
16776         * tests/test-math-c++.cc: New file.
16777         * modules/math-tests (Files): Add it and tests/signature.h.
16778         (Depends-on): Add ansi-c++-opt.
16779         (Makefile.am): Arrange to compile and run test-math-c++.
16780         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16781
16782         Tests of module 'locale' in C++ mode.
16783         * tests/test-locale-c++.cc: New file.
16784         * modules/locale-tests (Files): Add it and tests/signature.h.
16785         (Depends-on): Add ansi-c++-opt.
16786         (Makefile.am): Arrange to compile and run test-locale-c++.
16787         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
16788         gl_MODULE_INDICATOR.
16789
16790         Tests of module 'langinfo' in C++ mode.
16791         * tests/test-langinfo-c++.cc: New file.
16792         * modules/langinfo-tests (Files): Add it and tests/signature.h.
16793         (Depends-on): Add ansi-c++-opt.
16794         (Makefile.am): Arrange to compile and run test-langinfo-c++.
16795         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
16796         gl_MODULE_INDICATOR.
16797
16798         Tests of module 'iconv-h' in C++ mode.
16799         * tests/test-iconv-h-c++.cc: New file.
16800         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
16801         (Depends-on): Add ansi-c++-opt.
16802         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
16803
16804         Tests of module 'glob' in C++ mode.
16805         * tests/test-glob-c++.cc: New file.
16806         * modules/glob-tests (Files): Add it.
16807         (Depends-on): Add ansi-c++-opt.
16808         (Makefile.am): Arrange to compile and run test-glob-c++.
16809
16810         Tests of module 'fcntl-h' in C++ mode.
16811         * tests/test-fcntl-h-c++.cc: New file.
16812         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
16813         (Depends-on): Add ansi-c++-opt.
16814         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
16815         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
16816         gl_MODULE_INDICATOR.
16817
16818         Tests of module 'dirent' in C++ mode.
16819         * tests/test-dirent-c++.cc: New file.
16820         * modules/dirent-tests (Files): Add it and tests/signature.h.
16821         (Depends-on): Add ansi-c++-opt.
16822         (Makefile.am): Arrange to compile and run test-dirent-c++.
16823         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16824         gl_MODULE_INDICATOR.
16825
16826         New module 'ansi-c++-opt'.
16827         * modules/ansi-c++-opt: New file.
16828         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
16829
16830         Document C++ namespace mode.
16831         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
16832
16833         wctype: Avoid #define replacements in C++ mode.
16834         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
16835         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
16836         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
16837         In C++, define a namespaced alias symbol.
16838         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
16839         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
16840         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
16841         rule.
16842
16843         wchar: Avoid #define replacements in C++ mode.
16844         * lib/wchar.in.h: Include c++defs.h.
16845         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
16846         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
16847         symbol.
16848         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
16849         * modules/wchar (Depends-on): Add c++defs.
16850         (Makefile.am): Update wchar.h rule.
16851
16852         unistd: Avoid #define replacements in C++ mode.
16853         * lib/unistd.in.h: Include c++defs.h.
16854         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
16855         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
16856         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
16857         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
16858         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
16859         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
16860         symbol.
16861         (environ): Update.
16862         * modules/unistd (Depends-on): Add c++defs.
16863         (Makefile.am): Update unistd.h rule.
16864
16865         time: Avoid #define replacements in C++ mode.
16866         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
16867         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
16868         define a namespaced alias symbol.
16869         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
16870         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
16871         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
16872         * modules/time (Depends-on): Add c++defs, warn-on-use.
16873         (Makefile.am): Update time.h rule.
16874         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16875         * modules/nanosleep (configure.ac): Likewise.
16876         * modules/strptime (configure.ac): Likewise.
16877         * modules/timegm (configure.ac): Likewise.
16878
16879         sys_time: Avoid #define replacements in C++ mode.
16880         * lib/sys_time.in.h: Include c++defs.h.
16881         (gettimeofday): In C++, define a namespaced alias symbol.
16882         * modules/sys_time (Depends-on): Add c++defs.
16883         (Makefile.am): Update sys/time.h rule.
16884
16885         sys_stat: Avoid #define replacements in C++ mode.
16886         * lib/sys_stat.in.h: Include c++defs.h.
16887         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
16888         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
16889         namespaced alias symbol.
16890         In C++, define a namespaced alias symbol.
16891         * modules/sys_stat (Depends-on): Add c++defs.
16892         (Makefile.am): Update sys/stat.h rule.
16893
16894         sys_socket: Avoid #define replacements in C++ mode.
16895         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
16896         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
16897         definitions also when the system has a <sys/socket.h>.
16898         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16899         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
16900         In C++, define a namespaced alias symbol.
16901         * modules/sys_socket (Depends-on): Add c++defs.
16902         (Makefile.am): Update sys/socket.h rule.
16903
16904         sys_select: Avoid #define replacements in C++ mode.
16905         * lib/sys_select.in.h: Include c++defs.h. Enable the function
16906         definitions also when the system has a <sys/select.h>.
16907         (select): In C++, define a namespaced alias symbol.
16908         * modules/sys_select (Depends-on): Add c++defs.
16909         (Makefile.am): Update sys/select.h rule.
16910
16911         sys_ioctl: Avoid #define replacements in C++ mode.
16912         * lib/sys_ioctl.in.h: Include c++defs.h.
16913         (ioctl): In C++, define a namespaced alias symbol.
16914         * modules/sys_ioctl (Depends-on): Add c++defs.
16915         (Makefile.am): Update sys/ioctl.h rule.
16916
16917         string: Avoid #define replacements in C++ mode.
16918         * lib/string.in.h: Include c++defs.h.
16919         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
16920         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16921         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16922         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
16923         strsignal, strverscmp): In C++, define a namespaced alias symbol.
16924         * modules/string (Depends-on): Add c++defs.
16925         (Makefile.am): Update string.h rule.
16926
16927         stdlib: Avoid #define replacements in C++ mode.
16928         * lib/stdlib.in.h: Include c++defs.h.
16929         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
16930         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
16931         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
16932         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
16933         symbol.
16934         * modules/stdlib (Depends-on): Add c++defs.
16935         (Makefile.am): Update stdlib.h rule.
16936
16937         stdio: Avoid #define replacements in C++ mode.
16938         * lib/stdio.in.h: Include c++defs.h.
16939         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
16940         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
16941         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
16942         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
16943         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
16944         namespaced alias symbol.
16945         * modules/stdio (Depends-on): Add c++defs.
16946         (Makefile.am): Update stdio.h rule.
16947
16948         spawn: Avoid #define replacements in C++ mode.
16949         * lib/spawn.in.h: Include c++defs.h.
16950         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16951         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16952         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16953         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16954         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16955         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16956         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16957         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16958         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16959         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16960         In C++, define a namespaced alias symbol.
16961         * modules/spawn (Depends-on): Add c++defs.
16962         (Makefile.am): Update spawn.h rule.
16963
16964         signal: Avoid #define replacements in C++ mode.
16965         * lib/signal.in.h: Include c++defs.h.
16966         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16967         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
16968         namespaced alias symbol.
16969         * modules/signal (Depends-on): Add c++defs.
16970         (Makefile.am): Update signal.h rule.
16971
16972         search: Avoid #define replacements in C++ mode.
16973         * lib/search.in.h: Include c++defs.h.
16974         (_gl_search_compar_fn, _gl_search_action_fn): New types.
16975         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
16976         symbol.
16977         * modules/search (Depends-on): Add c++defs.
16978         (Makefile.am): Update search.h rule.
16979
16980         math: Avoid #define replacements in C++ mode.
16981         * lib/math.in.h: Include c++defs.h.
16982         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
16983         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
16984         trunc, truncl): In C++, define a namespaced alias symbol.
16985         * modules/math (Depends-on): Add c++defs.
16986         (Makefile.am): Update math.h rule.
16987
16988         locale: Avoid #define replacements in C++ mode.
16989         * lib/locale.in.h: Include c++defs.h.
16990         (duplocale): In C++, define a namespaced alias symbol.
16991         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
16992         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
16993         * modules/locale (Depends-on): Add c++defs.
16994         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
16995
16996         langinfo: Avoid #define replacements in C++ mode.
16997         * lib/langinfo.in.h: Include c++defs.h.
16998         (nl_langinfo): In C++, define a namespaced alias symbol.
16999         * modules/langinfo (Depends-on): Add c++defs.
17000         (Makefile.am): Update langinfo.h rule.
17001
17002         iconv-h: Avoid #define replacements in C++ mode.
17003         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
17004         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
17005         symbol.
17006         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17007         whenever iconv is present.
17008         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
17009         (Makefile.am): Update iconv.h rule.
17010
17011         glob: Avoid #define replacements in C++ mode.
17012         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
17013         (_gl_glob_errfunc_fn): New type.
17014         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
17015         symbol.
17016         * modules/glob (Depends-on): Add c++defs, warn-on-use.
17017         (Makefile.am): Update glob.h rule.
17018
17019         fcntl-h: Avoid #define replacements in C++ mode.
17020         * lib/fcntl.in.h: Include c++defs.h.
17021         (fcntl, open, openat): In C++, define a namespaced alias symbol.
17022         * modules/fcntl-h (Depends-on): Add c++defs.
17023         (Makefile.am): Update fcntl.h rule.
17024
17025         dirent: Avoid #define replacements in C++ mode.
17026         * lib/dirent.in.h: Include c++defs.h.
17027         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
17028         namespaced alias symbol.
17029         (dirfd): Update declaration.
17030         * modules/dirent (Depends-on): Add c++defs.
17031         (Makefile.am): Update dirent.h rule.
17032
17033         ctype: Make it usable in C++ code.
17034         * lib/ctype.in.h: Include c++defs.h.
17035         (isblank): Declare as extern "C".
17036         * modules/ctype (Depends-on): Add c++defs.
17037         (Makefile.am): Update ctype.h rule.
17038
17039         New module 'c++defs'.
17040         * modules/c++defs: New file.
17041         * build-aux/c++defs.h: New file.
17042         Reported by John W. Eaton <jwe@gnu.org>.
17043
17044 2010-03-07  Bruno Haible  <bruno@clisp.org>
17045
17046         logb: Provide missing declaration for Cygwin.
17047         * lib/math.in.h (logb): New declaration.
17048         * m4/logb.m4: New file.
17049         * modules/logb (Files): Add m4/logb.m4.
17050         (Depends-on): Add math.
17051         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
17052         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
17053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
17054         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
17055         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
17056
17057 2010-03-07  Bruno Haible  <bruno@clisp.org>
17058
17059         Fix test-cond link error.
17060         * tests/test-cond.c: Include <stdio.h>.
17061
17062 2010-03-07  Bruno Haible  <bruno@clisp.org>
17063
17064         Fix test-dirent-safer link error.
17065         * modules/dirent-safer-tests (Makefile.am): Define
17066         test_dirent_safer_LDADD.
17067
17068 2010-03-07  Bruno Haible  <bruno@clisp.org>
17069
17070         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
17071         among default module list.
17072
17073 2010-03-07  Bruno Haible  <bruno@clisp.org>
17074
17075         Fix link error on platforms with GNU libiconv.
17076         * modules/unistr/u8-strcoll-tests (Makefile): Define
17077         test_u8_strcoll_LDADD.
17078         * modules/unistr/u16-strcoll-tests (Makefile): Define
17079         test_u16_strcoll_LDADD.
17080         * modules/unistr/u32-strcoll-tests (Makefile): Define
17081         test_u32_strcoll_LDADD.
17082
17083 2010-03-07  Bruno Haible  <bruno@clisp.org>
17084
17085         Use POSIX declarations for socket functions.
17086         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
17087         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
17088         rpl_sendto): Change declaration to match POSIX.
17089         * lib/connect.c (rpl_connect): Likewise.
17090         * lib/accept.c (rpl_accept): Likewise.
17091         * lib/bind.c (rpl_bind): Likewise.
17092         * lib/getpeername.c (rpl_getpeername): Likewise.
17093         * lib/getsockname.c (rpl_getsockname): Likewise.
17094         * lib/recv.c (rpl_recv): Likewise.
17095         * lib/send.c (rpl_send): Likewise.
17096         * lib/recvfrom.c (rpl_recvfrom): Likewise.
17097         * lib/sendto.c (rpl_sendto): Likewise.
17098
17099 2010-03-06  Bruno Haible  <bruno@clisp.org>
17100
17101         Clarify access, euidaccess, faccessat.
17102         * doc/posix-functions/faccessat.texi: Mention security problem under
17103         "Other problems", not "Portability problems".
17104         * doc/posix-functions/access.texi: Likewise. Mention a related security
17105         problem.
17106         * doc/glibc-functions/euidaccess.texi: Mention security problems.
17107         * lib/euidaccess.c: Add comments about platforms.
17108         * lib/unistd.in.h (access, euidaccess): Add warnings.
17109
17110 2010-03-07  Bruno Haible  <bruno@clisp.org>
17111
17112         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
17113         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
17114         (POSIX_SPAWN_SETSCHEDULER): Likewise.
17115         (POSIX_SPAWN_USEVFORK): Define in a way that works when
17116         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17117         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
17118         declare when POSIX_SPAWN_SETSCHEDULER is zero.
17119         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
17120         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
17121         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
17122         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
17123         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
17124         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
17125         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
17126         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
17127         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
17128         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
17129         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
17130         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
17131         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
17132         Likewise.
17133         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
17134         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
17135         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
17136         Likewise.
17137         * tests/test-spawn.c (main): Make it work when
17138         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17139
17140 2010-03-07  Bruno Haible  <bruno@clisp.org>
17141
17142         Fix incorrect Makefile.am generation in German locale.
17143         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17144         Execute sed command with character range in C locale.
17145
17146 2010-03-06  Bruno Haible  <bruno@clisp.org>
17147
17148         Tests for module 'iconv-h'.
17149         * modules/iconv-h-tests: New file.
17150         * tests/test-iconv-h.c: New file.
17151
17152         New module 'iconv-h'.
17153         * modules/iconv-h: New file.
17154         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
17155         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
17156         (configure.ac): Remove gl_ICONV_H.
17157         (Makefile.am): Remove rule for iconv.h.
17158
17159 2010-03-06  Bruno Haible  <bruno@clisp.org>
17160
17161         More consistent naming of *.m4 files.
17162         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
17163         * modules/wctype (Files): Update.
17164
17165         More consistent naming of *.m4 files.
17166         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
17167         * modules/wchar (Files): Update.
17168
17169 2010-03-06  Jim Meyering  <meyering@redhat.com>
17170
17171         euidaccess: relax license to LGPLv2+
17172         * modules/euidaccess (License): Relax to LGPLv2+.
17173
17174 2010-03-06  Bruno Haible  <bruno@clisp.org>
17175
17176         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
17177         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
17178         (Makefile.am): Augment lib_SOURCES instead.
17179
17180 2010-03-04  Jim Meyering  <meyering@redhat.com>
17181
17182         utime: remove obsolete module
17183         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
17184         unnecessary for years, and has been marked as obsolete for 10 months.
17185         * modules/utime: Remove file.
17186         * lib/utime.c: Remove file.
17187         * m4/utime.m4: Remove file.
17188         * m4/utimes-null.m4: Remove file.
17189         * doc/posix-functions/utime.texi (utime): Remove reference to
17190         the module.  Move the sole "fixed by gnulib" item into the
17191         "problems not fixed by Gnulib" list.
17192         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
17193
17194 2010-03-05  Simon Josefsson  <simon@josefsson.org>
17195
17196         * modules/exit (License): Relax license to LGPLv2+.
17197         (Status): Mark as obsolete.
17198         * NEWS: Mention deprecated 'exit' module.
17199         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
17200         of now obsolete 'exit'.
17201
17202 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17203
17204         fts-lgpl: remove unused module
17205         * modules/fts-lgpl: Remove.
17206         * MODULES.html.sh (func_all_modules): Adjust.
17207         * check-module (find_included_lib_files): Adjust.
17208         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
17209
17210 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
17211
17212         copy-acl: enhance Solaris ACL error handling
17213         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
17214         * lib/set-mode-acl.c (qset_acl): Likewise.
17215
17216 2010-03-02  Bruno Haible  <bruno@clisp.org>
17217
17218         spawn: Don't override the system defined values on FreeBSD 8.
17219         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
17220         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
17221         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
17222         if HAVE_POSIX_SPAWN is 1.
17223         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
17224
17225 2010-03-01  Bruno Haible  <bruno@clisp.org>
17226
17227         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
17228         regarding Automake.
17229
17230 2010-02-25  Bruno Haible  <bruno@clisp.org>
17231
17232         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
17233         * gnulib-tool: Define 'echo' as a function only before the ksh alias
17234         setting, not afterwards.
17235         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
17236
17237 2010-02-24  Eric Blake  <eblake@redhat.com>
17238
17239         bootstrap, git-version-gen: use timestamp
17240         * build-aux/git-version-gen (scriptversion): Force UTC.
17241         * build-aux/bootstrap (scriptversion): New variable.
17242
17243         bootstrap: allow older git
17244         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
17245         older than 1.6.4.  Requested by the libvirt project.
17246
17247 2010-02-23  Eric Blake  <eblake@redhat.com>
17248
17249         warn-on-use: work with old autoconf
17250         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
17251         AS_VAR semantics of autoconf 2.60.
17252         Reported by Bruno Haible.
17253
17254         bootstrap: improve some comments
17255         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
17256         clarification comments.
17257
17258         gettimeofday: provide correct function
17259         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
17260         when replacement is declared, otherwise provide gettimeofday.
17261         Reported by Michael Goffioul.
17262
17263 2010-02-23  Jim Meyering  <meyering@redhat.com>
17264
17265         lib-ignore: relax license to "unlimited", not LGPLv2+
17266         * modules/lib-ignore (License): Relax to "unlimited".
17267
17268 2010-02-23  Jim Meyering  <meyering@redhat.com>
17269
17270         lib-ignore: relax license to LGPLv2+
17271         * modules/lib-ignore (License): Relax to LGPLv2+.
17272
17273 2010-02-22  Eric Blake  <eblake@redhat.com>
17274
17275         lseek: avoid bash 3.2 broken pipe bug
17276         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
17277         warning from bash 3.2.
17278         Reported by Ben Pfaff, with analysis from Bruno Haible.
17279
17280         bootstrap: support non-FSF copyright holder
17281         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
17282         bootstrap.conf override of COPYRIGHT_HOLDER.
17283         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
17284
17285         bootstrap: interoperate with gettext 0.14.1
17286         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
17287
17288         bootstrap: allow for alternate submodule location
17289         * build-aux/bootstrap (gnulib_path): New variable; use instead of
17290         hardcoding submodule location.
17291         (gnulib_mk): Allow direct use of Makefile.am.
17292
17293         bootstrap: use GNULIB_SRCDIR to reduce disk usage
17294         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
17295         rather than reconfiguring where the submodule points.
17296
17297         gettimeofday: restore support for platforms that lack function
17298         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
17299         replacement if function is missing.
17300         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
17301         * modules/sys_time (Makefile.am): Substitute it.
17302         * lib/sys_time.in.h (gettimeofday): Check it.
17303         Reported by Michael Goffioul.
17304
17305 2010-02-21  Bruno Haible  <bruno@clisp.org>
17306
17307         * lib/stdio.in.h (obstack_printf): Fix typo.
17308
17309 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
17310
17311         vc-list-files: use bzr ls's -R option
17312         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
17313         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
17314
17315 2010-02-21  Jim Meyering  <meyering@redhat.com>
17316
17317         init.sh: fix EXEEXT shims to work also for names like test-prog
17318         * tests/init.sh: Re-exec a better shell, when needed.
17319         If the current shell lacks support for posix $(...), an init.sh-using
17320         test will now try to find a shell that supports that.  If EXEEXT is
17321         nonempty, we also require support for hyphen-in-alias-name and shell
17322         substitutions like ${var#glob}.  Failure to find such a shell results
17323         in a skipped test.
17324
17325 2010-02-21  Bruno Haible  <bruno@clisp.org>
17326
17327         Really work around around "broken pipe" error message from bash 3.2.
17328         * gnulib-tool (func_reset_sigpipe): Remove function.
17329         (echo): In bash 3.2, define to a function that uses printf.
17330         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
17331
17332 2010-02-20  Bruno Haible  <bruno@clisp.org>
17333
17334         Restore support for automake 1.9.6 with autoconf 2.61.
17335         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
17336         Reported by James Youngman <jay@gnu.org>.
17337
17338 2010-02-20  Bruno Haible  <bruno@clisp.org>
17339
17340         Improve *printf warning condition.
17341         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
17342         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
17343         and the function is overridden due to SIGPIPE emulation.
17344
17345 2010-02-20  Bruno Haible  <bruno@clisp.org>
17346
17347         * lib/stdio.in.h: Tweak comments.
17348
17349 2010-02-19  Bruno Haible  <bruno@clisp.org>
17350
17351         Make it easier to find modules. New gnulib-tool option '--find'.
17352         * gnulib-tool: New option --find.
17353         (func_usage): Document it.
17354         (func_sanitize_modulelist): New function, extracted from
17355         func_all_modules.
17356         (func_all_modules): Invoke it.
17357         * doc/gnulib-tool.texi (Which modules?): New node.
17358
17359 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
17360
17361         * lib/sys_select.in.h: Provide select replacement even if
17362         sys/select.h exists on a system, for Interix.
17363
17364 2010-02-18  Jim Meyering  <meyering@redhat.com>
17365
17366         init.sh: don't use $(...) just yet
17367         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
17368         to accommodate e.g., Solaris' /bin/sh.
17369
17370 2010-02-17  Bruno Haible  <bruno@clisp.org>
17371
17372         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
17373         Reported by Ludovic Courtès <ludo@gnu.org>.
17374
17375 2010-02-16  Simon Josefsson  <simon@josefsson.org>
17376
17377         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
17378         linking with -lintl.
17379
17380 2010-02-17  Simon Josefsson  <simon@josefsson.org>
17381
17382         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
17383         if not provided by the system's netdb.h.  Reported by
17384         ludo@gnu.org (Ludovic Courtès).
17385
17386 2010-02-15  Jim Meyering  <meyering@redhat.com>
17387
17388         init.sh: improve portability and efficiency
17389         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
17390         "dummy" in a for loop.
17391         Use '!', not '^' to select the complement of a character set used
17392         in a "case" statement.
17393         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
17394         Suggestions from Eric Blake.
17395
17396         init.sh: automatically accommodate programs with the .exe suffix
17397         Automatically arrange for an invocation of "prog" to execute the
17398         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
17399         may use the simpler "prog", yet still work when built on a system
17400         that requires specifying the added suffix.
17401         Do this by constructing a function named "prog" that invokes
17402         "prog.exe" for each .exe file in selected directories.
17403         * tests/init.sh (find_exe_basenames_): New function.
17404         (create_exe_shim_functions_): New function.
17405         (path_prepend_): Use it.
17406
17407         maint.mk: mark syntax-check sc_*.m rules as .PHONY
17408         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
17409         "make -t syntax-check" doesn't create a ton of sc_*.m files.
17410
17411 2010-02-14  Jim Meyering  <meyering@redhat.com>
17412
17413         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
17414         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
17415         (sc_prohibit_hash_pjw_without_use): New rule.
17416
17417         maint.mk: allow the default upload destination dir to be overridden
17418         * top/maint.mk (upload_dest_dir_): Define with a default that
17419         preserves the status quo.
17420         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
17421         Reported by Peter Simons.
17422
17423         maint.mk: prohibit inclusion of "hash.h" without_use
17424         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
17425
17426 2010-02-10  Jim Meyering  <meyering@redhat.com>
17427
17428         maint.mk: prohibit inclusion of "ignore-value.h" without_use
17429         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
17430
17431 2010-02-09  Eric Blake  <ebb9@byu.net>
17432         and Bruno Haible  <bruno@clisp.org>
17433
17434         obstack-printf-posix: ensure declaration
17435         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
17436         extracted from gl_FUNC_OBSTACK_PRINTF.
17437         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
17438         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
17439         Likewise.
17440         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
17441         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
17442         0.
17443
17444 2010-02-08  Bruno Haible  <bruno@clisp.org>
17445
17446         gnulib-tool: Fix typo in 2010-02-07 commit.
17447         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
17448         Reported by Eric Blake.
17449
17450 2010-02-07  Bruno Haible  <bruno@clisp.org>
17451
17452         gnulib-tool: Fix up caching patches.
17453         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
17454         option --no-cache. Use associative arrays when supported by the shell.
17455         (sed_comments): New variable.
17456         (modcache): Renamed from do_cache.
17457         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
17458         abbreviate unnecessarily.
17459         (have_associative): New variable.
17460         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
17461         way also for ksh and zsh.
17462         (func_init_sed_convert_to_cache_statements): New function, extracted
17463         from func_cache_lookup_module. Add support for associative arrays.
17464         Don't set the c_MODULE_cached variable here. Ignore all lines before
17465         the first field header. Remove only the final newline, not all trailing
17466         newlines. Support empty fields correctly. Limit the use of 'eval' to
17467         assignments.
17468         (func_get_description, func_get_status, func_get_notice,
17469         func_get_applicability, func_get_filelist, func_get_dependencies,
17470         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
17471         func_get_automake_snippet, func_get_include_directive,
17472         func_get_link_directive, func_get_license, func_get_maintainer):
17473         Update documentation. List the unoptimized code first. Add support for
17474         associative arrays. Limit the use of 'eval' to assignments.
17475         (func_get_applicability): Undo stylistic pessimisations.
17476         (func_get_automake_snippet, func_get_include_directive): Reduce code
17477         duplication.
17478         (func_modules_transitive_closure, func_modules_add_dummy,
17479         func_modules_notice, func_modules_to_filelist, func_add_file,
17480         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
17481         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
17482         func_create_testdir, func_create_megatestdir): Update documentation.
17483
17484 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17485
17486         * gnulib-tool (func_cache_lookup_module): Store the module name
17487         belonging to the cache variable; error out if two different
17488         module names map to the same cache variable name.
17489
17490 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17491
17492         gnulib-tool: Make caching optional.
17493         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
17494         Update matching short versions of --no-changelog.
17495         (func_usage): Update.
17496         (sed_extract_cache_prog): Renamed from ...
17497         (sed_extract_prog): ... this; revert to old extraction script.
17498         (func_get_description, func_get_status)
17499         (func_get_notice, func_get_applicability, func_get_filelist)
17500         (func_get_dependencies, func_get_autoconf_early_snippet)
17501         (func_get_autoconf_snippet, func_get_automake_snippet)
17502         (func_get_include_directive, func_get_link_directive)
17503         (func_get_license, func_get_maintainer): If $do_cache is false,
17504         use old, non-caching extraction scripts.
17505         Suggestion by Bruno Haible.
17506
17507 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17508
17509         gnulib-tool: cache module metainformation.
17510         * gnulib-tool (sed_extract_prog): Match newline before each
17511         header, and rewrite header to a shell variable suffix.
17512         (func_cache_var, func_cache_lookup_module): New functions,
17513         to turn a module name into a cache variable prefix, and to
17514         look up and cache module metainformation.
17515         (func_get_description, func_get_status)
17516         (func_get_notice, func_get_applicability, func_get_filelist)
17517         (func_get_dependencies, func_get_autoconf_early_snippet)
17518         (func_get_autoconf_snippet, func_get_automake_snippet)
17519         (func_get_include_directive, func_get_link_directive)
17520         (func_get_license, func_get_maintainer): Use
17521         func_cache_lookup_module.
17522
17523 2010-02-07  Bruno Haible  <bruno@clisp.org>
17524
17525         fnctl: Fix missing dependency.
17526         * modules/fcntl (Depends-on): Add getdtablesize.
17527         Reported by John W. Eaton <jwe@gnu.org>.
17528
17529 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17530
17531         Argp: fix recognition of short alias options.
17532
17533         * lib/argp-parse.c (convert_options): Fix improper use of
17534         `|' between character values.
17535         * tests/test-argp.c (group1_option): New alias option
17536         --read (-r).
17537         (group1_parser): Special handling for 'r'.
17538         (test15): New test case.
17539         (test_fun): Add test15.
17540         * tests/test-argp-2.sh: Update expected --help and --usage
17541         outputs.
17542
17543 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17544
17545         * tests/test-argp.c: Fix indentation.
17546
17547 2010-02-04  Eric Blake  <ebb9@byu.net>
17548
17549         gettimeofday: expose type of second argument
17550         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
17551         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
17552         * tests/test-gettimeofday.c: Use it to silence warning.
17553         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
17554         the issue.
17555
17556 2010-02-03  Jim Meyering  <meyering@redhat.com>
17557
17558         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
17559         * lib/regcomp.c (TYPE_SIGNED): Define.
17560         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
17561
17562         regcomp.c: avoid a new -Wshadow warning
17563         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
17564
17565 2010-02-01  Jim Meyering  <meyering@redhat.com>
17566
17567         removing useless parentheses in cpp #define directives
17568         For motivation, see commit c0221df4, "define STREQ(a,b)
17569         consistently, removing useless parentheses"
17570         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
17571         * lib/mountlist.c (MNT_IGNORE): Likewise.
17572         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
17573
17574 2010-02-01  Eric Blake  <ebb9@byu.net>
17575
17576         sys_time: use link-warning
17577         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
17578         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
17579         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
17580         * modules/sys_time (Depends-on): Add warn-on-use.
17581         (Makefile.am): Always build replacement.
17582         (configure.ac): Update substitutions.
17583         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
17584         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
17585         bother with SYS_TIME_H.
17586         * modules/gettimeofday (configure.ac): Declare indicator.
17587         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
17588         in use.
17589
17590         closein-tests: silence compiler warning
17591         * tests/test-closein.c (main): Ignore fread result.
17592         * modules/closein-tests (Depends-on): Add ignore-value.
17593
17594         tests: silence warning about system return
17595         * tests/test-areadlink-with-size.c (main): Ignore system result.
17596         * tests/test-areadlink.c (main): Likewise.
17597         * tests/test-areadlinkat-with-size.c (main): Likewise.
17598         * tests/test-areadlinkat.c (main): Likewise.
17599         * tests/test-canonicalize-lgpl.c (main): Likewise.
17600         * tests/test-canonicalize.c (main): Likewise.
17601         * tests/test-chown.c (main): Likewise.
17602         * tests/test-fchownat.c (main): Likewise.
17603         * tests/test-fdutimensat.c (main): Likewise.
17604         * tests/test-fstatat.c (main): Likewise.
17605         * tests/test-futimens.c (main): Likewise.
17606         * tests/test-lchown.c (main): Likewise.
17607         * tests/test-link.c (main): Likewise.
17608         * tests/test-linkat.c (main): Likewise.
17609         * tests/test-lstat.c (main): Likewise.
17610         * tests/test-mkdir.c (main): Likewise.
17611         * tests/test-mkdirat.c (main): Likewise.
17612         * tests/test-mkfifo.c (main): Likewise.
17613         * tests/test-mkfifoat.c (main): Likewise.
17614         * tests/test-mknod.c (main): Likewise.
17615         * tests/test-readlink.c (main): Likewise.
17616         * tests/test-remove.c (main): Likewise.
17617         * tests/test-rename.c (main): Likewise.
17618         * tests/test-renameat.c (main): Likewise.
17619         * tests/test-rmdir.c (main): Likewise.
17620         * tests/test-symlink.c (main): Likewise.
17621         * tests/test-symlinkat.c (main): Likewise.
17622         * tests/test-unlink.c (main): Likewise.
17623         * tests/test-unlinkat.c (main): Likewise.
17624         * tests/test-utimens.c (main): Likewise.
17625         * tests/test-utimensat.c (main): Likewise.
17626         * modules/areadlink-tests (Depends-on): Add ignore-value.
17627         * modules/areadlink-with-size-tests (Depends-on): Likewise.
17628         * modules/areadlinkat-tests (Depends-on): Likewise.
17629         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
17630         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17631         * modules/canonicalize-tests (Depends-on): Likewise.
17632         * modules/chown-tests (Depends-on): Likewise.
17633         * modules/fdutimensat-tests (Depends-on): Likewise.
17634         * modules/futimens-tests (Depends-on): Likewise.
17635         * modules/lchown-tests (Depends-on): Likewise.
17636         * modules/link-tests (Depends-on): Likewise.
17637         * modules/linkat-tests (Depends-on): Likewise.
17638         * modules/lstat-tests (Depends-on): Likewise.
17639         * modules/mkdir-tests (Depends-on): Likewise.
17640         * modules/mkfifo-tests (Depends-on): Likewise.
17641         * modules/mkfifoat-tests (Depends-on): Likewise.
17642         * modules/mknod-tests (Depends-on): Likewise.
17643         * modules/openat-tests (Depends-on): Likewise.
17644         * modules/readlink-tests (Depends-on): Likewise.
17645         * modules/remove-tests (Depends-on): Likewise.
17646         * modules/rename-tests (Depends-on): Likewise.
17647         * modules/renameat-tests (Depends-on): Likewise.
17648         * modules/rmdir-tests (Depends-on): Likewise.
17649         * modules/symlink-tests (Depends-on): Likewise.
17650         * modules/symlinkat-tests (Depends-on): Likewise.
17651         * modules/unlink-tests (Depends-on): Likewise.
17652         * modules/utimens-tests (Depends-on): Likewise.
17653         * modules/utimensat-tests (Depends-on): Likewise.
17654
17655 2010-01-31  Bruno Haible  <bruno@clisp.org>
17656
17657         Perform the same test for many <math.h> functions.
17658         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
17659         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
17660         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
17661         of gl_MATHFUNC.
17662         * modules/acos (configure.ac): Likewise.
17663         * modules/asin (configure.ac): Likewise.
17664         * modules/atan (configure.ac): Likewise.
17665         * modules/atan2 (configure.ac): Likewise.
17666         * modules/cbrt (configure.ac): Likewise.
17667         * modules/copysign (configure.ac): Likewise.
17668         * modules/cos (configure.ac): Likewise.
17669         * modules/cosh (configure.ac): Likewise.
17670         * modules/erf (configure.ac): Likewise.
17671         * modules/erfc (configure.ac): Likewise.
17672         * modules/exp (configure.ac): Likewise.
17673         * modules/fmod (configure.ac): Likewise.
17674         * modules/hypot (configure.ac): Likewise.
17675         * modules/j0 (configure.ac): Likewise.
17676         * modules/j1 (configure.ac): Likewise.
17677         * modules/jn (configure.ac): Likewise.
17678         * modules/lgamma (configure.ac): Likewise.
17679         * modules/log (configure.ac): Likewise.
17680         * modules/log10 (configure.ac): Likewise.
17681         * modules/log1p (configure.ac): Likewise.
17682         * modules/pow (configure.ac): Likewise.
17683         * modules/remainder (configure.ac): Likewise.
17684         * modules/sin (configure.ac): Likewise.
17685         * modules/sinh (configure.ac): Likewise.
17686         * modules/tan (configure.ac): Likewise.
17687         * modules/tanh (configure.ac): Likewise.
17688         * modules/y0 (configure.ac): Likewise.
17689         * modules/y1 (configure.ac): Likewise.
17690         * modules/yn (configure.ac): Likewise.
17691         Suggested by Paolo Bonzini.
17692
17693 2010-01-31  Bruno Haible  <bruno@clisp.org>
17694
17695         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
17696
17697 2010-01-31  Bruno Haible  <bruno@clisp.org>
17698
17699         Work around getdelim() bug on FreeBSD 8.0.
17700         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
17701         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
17702         not work.
17703         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
17704         is 1.
17705         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
17706         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
17707         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
17708         a non-zero size.
17709         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
17710
17711 2010-01-31  Bruno Haible  <bruno@clisp.org>
17712
17713         Work around getline() bug on FreeBSD 8.0.
17714         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
17715         and a non-zero size.
17716         * tests/test-getline.c (main): Likewise.
17717         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
17718         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
17719
17720 2010-01-28  Eric Blake  <ebb9@byu.net>
17721
17722         regex: fix build failure
17723         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
17724         platforms.
17725
17726 2010-01-28  Jim Meyering  <meyering@redhat.com>
17727
17728         regex: do not ignore memory allocation failure
17729         * lib/regex_internal.c (create_cd_newstate): Detect
17730         re_node_set_init_copy failure.   Extracted from glibc commit
17731         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17732
17733         regex: sync more white-space changes from libc
17734         * lib/regex_internal.c: White-space only changes.
17735         * lib/regexec.c: Likewise.
17736
17737         regex: add many uses of __attribute_warn_unused_result__
17738         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
17739         * lib/regexec.c: Likewise.
17740         Extracted from a messy glibc commit.
17741
17742         regcomp.c: spelling and merge-artifact from glibc
17743         * lib/regcomp.c: Merge remainder of glibc's
17744         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17745
17746         regcomp.c: sync white-space changes from glibc
17747         * lib/regcomp.c: Merge to accommodate white space
17748         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17749
17750         regcomp.c: do not ignore internal return values
17751         * lib/regcomp.c: Do not ignore internal return values.
17752         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
17753         but without its white-space changes and spelling fixes.
17754
17755         regex_internal.h: define __attribute_warn_unused_result__
17756         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
17757
17758         maint: add a syntax-check rule to check for vulnerable Makefile.in
17759         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
17760
17761 2010-01-27  Jim Meyering  <meyering@redhat.com>
17762
17763         ncftpput-ftp: clean up spaces
17764         * build-aux/ncftpput-ftp: Make Copyright line consistent.
17765         Remove trailing blanks.
17766
17767 2010-01-27  Simon Josefsson  <simon@josefsson.org>
17768
17769         * build-aux/git-version-gen: Fix copyright statement.
17770         * build-aux/gnupload: Likewise.
17771         * tests/test-arcfour.c: Likewise.
17772         * tests/test-arctwo.c: Likewise.
17773         * tests/test-count-one-bits.c: Likewise.
17774         * tests/test-crc.c: Likewise.
17775         * tests/test-des.c: Likewise.
17776         * tests/test-gc-arcfour.c: Likewise.
17777         * tests/test-gc-arctwo.c: Likewise.
17778         * tests/test-gc-des.c: Likewise.
17779         * tests/test-gc-hmac-md5.c: Likewise.
17780         * tests/test-gc-hmac-sha1.c: Likewise.
17781         * tests/test-gc-md2.c: Likewise.
17782         * tests/test-gc-md4.c: Likewise.
17783         * tests/test-gc-md5.c: Likewise.
17784         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17785         * tests/test-gc-rijndael.c: Likewise.
17786         * tests/test-gc-sha1.c: Likewise.
17787         * tests/test-gc.c: Likewise.
17788         * tests/test-gethostname.c: Likewise.
17789         * tests/test-gettimeofday.c: Likewise.
17790         * tests/test-hash.c: Likewise.
17791         * tests/test-hmac-md5.c: Likewise.
17792         * tests/test-hmac-sha1.c: Likewise.
17793         * tests/test-md2.c: Likewise.
17794         * tests/test-md4.c: Likewise.
17795         * tests/test-md5.c: Likewise.
17796         * tests/test-memchr.c: Likewise.
17797         * tests/test-memchr2.c: Likewise.
17798         * tests/test-memcmp.c: Likewise.
17799         * tests/test-memmem.c: Likewise.
17800         * tests/test-memrchr.c: Likewise.
17801         * tests/test-rawmemchr.c: Likewise.
17802         * tests/test-read-file.c: Likewise.
17803         * tests/test-rijndael.c: Likewise.
17804         * tests/test-sockets.c: Likewise.
17805         * tests/test-strchrnul.c: Likewise.
17806         * tests/test-strstr.c: Likewise.
17807         * tests/test-strtod.c: Likewise.
17808         * build-aux/ncftpput-ftp: Likewise.
17809
17810 2010-01-26  Eric Blake  <ebb9@byu.net>
17811
17812         ignore-value: update recommended header name
17813         * modules/ignore-value (Include): Only use <> for headers that
17814         exist in glibc.
17815
17816 2010-01-26  Jim Meyering  <meyering@redhat.com>
17817
17818         test-userspec.c: avoid compiler warnings
17819         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
17820         and "initialization discards qualifiers..." warnings.
17821         Put the first "uid" in its own scope, and make char* members "const".
17822
17823 2010-01-25  Bruno Haible  <bruno@clisp.org>
17824
17825         gnulib-tool: Make warning diagnostics consistent.
17826         * gnulib-tool (func_warning): New function.
17827         Use it everywhere where gnulib-tool produces output to stderr and it is
17828         not a fatal error.
17829
17830 2010-01-25  Bruno Haible  <bruno@clisp.org>
17831
17832         Fix test dependencies.
17833         * modules/xstrtol-tests (Depends-on): Add inttypes.
17834         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
17835
17836 2010-01-25 Pádraig Brady <P@draigBrady.com>
17837
17838         syntax-check: detect incorrect boolean macro values in config.h
17839         * modules/maintainer-makefile (configure.ac): Parameterize the location
17840         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
17841         The logic is from Eric Blake and the location indicated by Jim Meyering.
17842         Note the more natural CONFIG_HEADER name is prohibited by automake
17843         for backwards compatibility reasons.
17844         * top/maint.mk (sc_Wundef_boolean): New rule.
17845
17846 2010-01-25  Jim Meyering  <meyering@redhat.com>
17847
17848         bootstrap: detect MacOS 10.6's shasum, too
17849         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
17850         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
17851
17852 2010-01-23  Jim Meyering  <meyering@redhat.com>
17853
17854         xstrtoll: new module
17855         * modules/xstrtoll: New file.
17856         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
17857         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
17858         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
17859         ./configure fails if you use this module and lack "long long".
17860         * modules/xstrtoll-tests: New module.
17861         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
17862         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
17863         new init.sh-based test framework.
17864
17865 2010-01-24  Bruno Haible  <bruno@clisp.org>
17866
17867         Tests for module 'yn'.
17868         * modules/yn-tests: New file.
17869         * tests/test-yn.c: New file.
17870
17871         Tests for module 'y1'.
17872         * modules/y1-tests: New file.
17873         * tests/test-y1.c: New file.
17874
17875         Tests for module 'y0'.
17876         * modules/y0-tests: New file.
17877         * tests/test-y0.c: New file.
17878
17879         Tests for module 'tanh'.
17880         * modules/tanh-tests: New file.
17881         * tests/test-tanh.c: New file.
17882
17883         Tests for module 'tan'.
17884         * modules/tan-tests: New file.
17885         * tests/test-tan.c: New file.
17886
17887         Tests for module 'sqrt'.
17888         * modules/sqrt-tests: New file.
17889         * tests/test-sqrt.c: New file.
17890
17891         Tests for module 'sinh'.
17892         * modules/sinh-tests: New file.
17893         * tests/test-sinh.c: New file.
17894
17895         Tests for module 'sin'.
17896         * modules/sin-tests: New file.
17897         * tests/test-sin.c: New file.
17898
17899         Tests for module 'rint'.
17900         * modules/rint-tests: New file.
17901         * tests/test-rint.c: New file.
17902
17903         Tests for module 'remainder'.
17904         * modules/remainder-tests: New file.
17905         * tests/test-remainder.c: New file.
17906
17907         Tests for module 'pow'.
17908         * modules/pow-tests: New file.
17909         * tests/test-pow.c: New file.
17910
17911         Tests for module 'nextafter'.
17912         * modules/nextafter-tests: New file.
17913         * tests/test-nextafter.c: New file.
17914
17915         Tests for module 'modf'.
17916         * modules/modf-tests: New file.
17917         * tests/test-modf.c: New file.
17918
17919         Tests for module 'logb'.
17920         * modules/logb-tests: New file.
17921         * tests/test-logb.c: New file.
17922
17923         Tests for module 'log1p'.
17924         * modules/log1p-tests: New file.
17925         * tests/test-log1p.c: New file.
17926
17927         Tests for module 'log10'.
17928         * modules/log10-tests: New file.
17929         * tests/test-log10.c: New file.
17930
17931         Tests for module 'log'.
17932         * modules/log-tests: New file.
17933         * tests/test-log.c: New file.
17934
17935         Tests for module 'lgamma'.
17936         * modules/lgamma-tests: New file.
17937         * tests/test-lgamma.c: New file.
17938
17939         Tests for module 'ldexp'.
17940         * modules/ldexp-tests: New file.
17941         * tests/test-ldexp.c: New file.
17942
17943         Tests for module 'jn'.
17944         * modules/jn-tests: New file.
17945         * tests/test-jn.c: New file.
17946
17947         Tests for module 'j1'.
17948         * modules/j1-tests: New file.
17949         * tests/test-j1.c: New file.
17950
17951         Tests for module 'j0'.
17952         * modules/j0-tests: New file.
17953         * tests/test-j0.c: New file.
17954
17955         Tests for module 'hypot'.
17956         * modules/hypot-tests: New file.
17957         * tests/test-hypot.c: New file.
17958
17959         Tests for module 'fmod'.
17960         * modules/fmod-tests: New file.
17961         * tests/test-fmod.c: New file.
17962
17963         Tests for module 'fabs'.
17964         * modules/fabs-tests: New file.
17965         * tests/test-fabs.c: New file.
17966
17967         Tests for module 'exp'.
17968         * modules/exp-tests: New file.
17969         * tests/test-exp.c: New file.
17970
17971         Tests for module 'erfc'.
17972         * modules/erfc-tests: New file.
17973         * tests/test-erfc.c: New file.
17974
17975         Tests for module 'erf'.
17976         * modules/erf-tests: New file.
17977         * tests/test-erf.c: New file.
17978
17979         Tests for module 'cosh'.
17980         * modules/cosh-tests: New file.
17981         * tests/test-cosh.c: New file.
17982
17983         Tests for module 'cos'.
17984         * modules/cos-tests: New file.
17985         * tests/test-cos.c: New file.
17986
17987         Tests for module 'copysign'.
17988         * modules/copysign-tests: New file.
17989         * tests/test-copysign.c: New file.
17990
17991         Tests for module 'cbrt'.
17992         * modules/cbrt-tests: New file.
17993         * tests/test-cbrt.c: New file.
17994
17995         Tests for module 'atan2'.
17996         * modules/atan2-tests: New file.
17997         * tests/test-atan2.c: New file.
17998
17999         Tests for module 'atan'.
18000         * modules/atan-tests: New file.
18001         * tests/test-atan.c: New file.
18002
18003         Tests for module 'asin'.
18004         * modules/asin-tests: New file.
18005         * tests/test-asin.c: New file.
18006
18007         Tests for module 'acos'.
18008         * modules/acos-tests: New file.
18009         * tests/test-acos.c: New file.
18010
18011 2010-01-24  Bruno Haible  <bruno@clisp.org>
18012
18013         Fix tests for common <math.h> functions.
18014         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
18015         code snippet that references the function pointer, rather than merely
18016         calling the function. Substitute the FUNC_LIBM variable.
18017         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
18018         * modules/acos (configure.ac): Likewise.
18019         * modules/asin (configure.ac): Likewise.
18020         * modules/atan (configure.ac): Likewise.
18021         * modules/atan2 (configure.ac): Likewise.
18022         * modules/cbrt (configure.ac): Likewise.
18023         * modules/copysign (configure.ac): Likewise.
18024         * modules/cos (configure.ac): Likewise.
18025         * modules/cosh (configure.ac): Likewise.
18026         * modules/erf (configure.ac): Likewise.
18027         * modules/erfc (configure.ac): Likewise.
18028         * modules/exp (configure.ac): Likewise.
18029         * modules/fabs (configure.ac): Likewise.
18030         * modules/fmod (configure.ac): Likewise.
18031         * modules/hypot (configure.ac): Likewise.
18032         * modules/j0 (configure.ac): Likewise.
18033         * modules/j1 (configure.ac): Likewise.
18034         * modules/jn (configure.ac): Likewise.
18035         * modules/ldexp (configure.ac): Likewise.
18036         * modules/lgamma (configure.ac): Likewise.
18037         * modules/log (configure.ac): Likewise.
18038         * modules/log10 (configure.ac): Likewise.
18039         * modules/log1p (configure.ac): Likewise.
18040         * modules/logb (configure.ac): Likewise.
18041         * modules/modf (configure.ac): Likewise.
18042         * modules/nextafter (configure.ac): Likewise.
18043         * modules/pow (configure.ac): Likewise.
18044         * modules/remainder (configure.ac): Likewise.
18045         * modules/rint (configure.ac): Likewise.
18046         * modules/sin (configure.ac): Likewise.
18047         * modules/sinh (configure.ac): Likewise.
18048         * modules/tan (configure.ac): Likewise.
18049         * modules/tanh (configure.ac): Likewise.
18050         * modules/y0 (configure.ac): Likewise.
18051         * modules/y1 (configure.ac): Likewise.
18052         * modules/yn (configure.ac): Likewise.
18053
18054 2010-01-24  Bruno Haible  <bruno@clisp.org>
18055
18056         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
18057         * tests/test-acosl.c (x): New variable.
18058         (main): Store argument in x and fetch it from x.
18059         * tests/test-asinl.c (x): New variable.
18060         (main): Store argument in x and fetch it from x.
18061         * tests/test-atanl.c (x): New variable.
18062         (main): Store argument in x and fetch it from x.
18063         * tests/test-cosl.c (x): New variable.
18064         (main): Store argument in x and fetch it from x.
18065         * tests/test-expl.c (x): New variable.
18066         (main): Store argument in x and fetch it from x.
18067         * tests/test-logl.c (x): New variable.
18068         (main): Store argument in x and fetch it from x.
18069         * tests/test-sinl.c (x): New variable.
18070         (main): Store argument in x and fetch it from x.
18071         * tests/test-sqrtl.c (x): New variable.
18072         (main): Store argument in x and fetch it from x.
18073         * tests/test-tanl.c (x): New variable.
18074         (main): Store argument in x and fetch it from x.
18075
18076 2010-01-24  Bruno Haible  <bruno@clisp.org>
18077
18078         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
18079         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
18080         assignments to the initial TESTS_ENVIRONMENT.
18081         * doc/gnulib.texi (Unit test modules): Document it.
18082         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
18083         TESTS_ENVIRONMENT.
18084         * modules/btowc-tests (Makefile.am): Likewise.
18085         * modules/c-stack-tests (Makefile.am): Likewise.
18086         * modules/c-strcase-tests (Makefile.am): Likewise.
18087         * modules/copy-file-tests (Makefile.am): Likewise.
18088         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
18089         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
18090         * modules/mbrtowc-tests (Makefile.am): Likewise.
18091         * modules/mbscasecmp-tests (Makefile.am): Likewise.
18092         * modules/mbscasestr-tests (Makefile.am): Likewise.
18093         * modules/mbschr-tests (Makefile.am): Likewise.
18094         * modules/mbscspn-tests (Makefile.am): Likewise.
18095         * modules/mbsinit-tests (Makefile.am): Likewise.
18096         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
18097         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
18098         * modules/mbspbrk-tests (Makefile.am): Likewise.
18099         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
18100         * modules/mbsrchr-tests (Makefile.am): Likewise.
18101         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
18102         * modules/mbsspn-tests (Makefile.am): Likewise.
18103         * modules/mbsstr-tests (Makefile.am): Likewise.
18104         * modules/nl_langinfo-tests (Makefile.am): Likewise.
18105         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
18106         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
18107         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
18108         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
18109         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
18110         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
18111         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
18112         * modules/wcrtomb-tests (Makefile.am): Likewise.
18113         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
18114         * modules/wcsrtombs-tests (Makefile.am): Likewise.
18115         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
18116         assignments from TESTS_ENVIRONMENT.
18117         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
18118         augmentation.
18119         * modules/argp-version-etc-tests (Makefile.am): Likewise.
18120         * modules/atexit-tests (Makefile.am): Likewise.
18121         * modules/binary-io-tests (Makefile.am): Likewise.
18122         * modules/closein-tests (Makefile.am): Likewise.
18123         * modules/dprintf-posix-tests (Makefile.am): Likewise.
18124         * modules/exclude-tests (Makefile.am): Likewise.
18125         * modules/fflush-tests (Makefile.am): Likewise.
18126         * modules/fpending-tests (Makefile.am): Likewise.
18127         * modules/fprintf-posix-tests (Makefile.am): Likewise.
18128         * modules/freadahead-tests (Makefile.am): Likewise.
18129         * modules/freadptr-tests (Makefile.am): Likewise.
18130         * modules/freadseek-tests (Makefile.am): Likewise.
18131         * modules/fseek-tests (Makefile.am): Likewise.
18132         * modules/fseeko-tests (Makefile.am): Likewise.
18133         * modules/ftell-tests (Makefile.am): Likewise.
18134         * modules/ftello-tests (Makefile.am): Likewise.
18135         * modules/idpriv-drop-tests (Makefile.am): Likewise.
18136         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
18137         * modules/lseek-tests (Makefile.am): Likewise.
18138         * modules/parse-duration-tests (Makefile.am): Likewise.
18139         * modules/perror-tests (Makefile.am): Likewise.
18140         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
18141         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
18142         * modules/pipe-tests (Makefile.am): Likewise.
18143         * modules/pread-tests (Makefile.am): Likewise.
18144         * modules/printf-posix-tests (Makefile.am): Likewise.
18145         * modules/select-tests (Makefile.am): Likewise.
18146         * modules/sigpipe-tests (Makefile.am): Likewise.
18147         * modules/tsearch-tests (Makefile.am): Likewise.
18148         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
18149         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
18150         * modules/uniname/uniname-tests (Makefile.am): Likewise.
18151         * modules/uniwidth/width-tests (Makefile.am): Likewise.
18152         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
18153         * modules/version-etc-tests (Makefile.am): Likewise.
18154         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
18155         * modules/vprintf-posix-tests (Makefile.am): Likewise.
18156         * modules/xalloc-die-tests (Makefile.am): Likewise.
18157         * modules/xprintf-posix-tests (Makefile.am): Likewise.
18158         * modules/xstrtoimax-tests (Makefile.am): Likewise.
18159         * modules/xstrtol-tests (Makefile.am): Likewise.
18160         * modules/xstrtoumax-tests (Makefile.am): Likewise.
18161         * modules/yesno-tests (Makefile.am): Likewise.
18162         Suggested by Jim Meyering.
18163
18164 2010-01-24  Bruno Haible  <bruno@clisp.org>
18165
18166         More documentation.
18167         * doc/gnulib.texi (Writing modules): New chapter.
18168         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
18169         the new chapter.
18170
18171 2010-01-24  Jim Meyering  <meyering@redhat.com>
18172
18173         maint.mk: do not prepend "./" after filtering
18174         * top/maint.mk (_prepend_srcdir_prefix): New variable
18175         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
18176         "./" when $(srcdir) is ".".
18177
18178         define STREQ(a,b) consistently, removing useless parentheses
18179         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
18180         since the only risk is that "a" or "b" contains an unparenthesized
18181         comma, but if either did that, STREQ would have 3 or more arguments.
18182         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
18183         * lib/fts.c (STREQ): Remove unnecessary parentheses.
18184         * lib/hash-triple.c (STREQ): Likewise.
18185         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
18186         * lib/getugroups.c (STREQ): Likewise.
18187
18188 2010-01-23  Jim Meyering  <meyering@redhat.com>
18189
18190         maint.mk: fix syntax-check in a non-srcdir build directory
18191         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
18192         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
18193
18194 2010-01-22  Jim Meyering  <meyering@redhat.com>
18195
18196         userspec: add unit tests
18197         * tests/test-userspec.c: New file.
18198         * modules/userspec-tests: Likewise.
18199
18200 2010-01-21  Jim Meyering  <meyering@redhat.com>
18201
18202         maint.mk: handle source file names containing "." robustly
18203         * top/maint.mk (_dot_escaped_srcdir): Define.
18204         (VC_LIST): Use it in LHS of sed substitution.
18205
18206 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
18207
18208         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
18209         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
18210         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
18211         from a non-srcdir build.
18212
18213 2010-01-20  Eric Blake  <ebb9@byu.net>
18214
18215         warn-on-use: use instead of link-warning
18216         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
18217         * modules/unistd (Depends-on, Makefile.am): Likewise.
18218         * modules/arpa_inet (Depends-on): Replace link-warning with
18219         warn-on-use.
18220         (Makefile.am): Update rules accordingly.
18221         * modules/ctype (Depends-on, Makefile.am): Likewise.
18222         * modules/dirent (Depends-on, Makefile.am): Likewise.
18223         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
18224         * modules/inttypes (Depends-on, Makefile.am): Likewise.
18225         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18226         * modules/locale (Depends-on, Makefile.am): Likewise.
18227         * modules/math (Depends-on, Makefile.am): Likewise.
18228         * modules/search (Depends-on, Makefile.am): Likewise.
18229         * modules/signal (Depends-on, Makefile.am): Likewise.
18230         * modules/spawn (Depends-on, Makefile.am): Likewise.
18231         * modules/stdlib (Depends-on, Makefile.am): Likewise.
18232         * modules/string (Depends-on, Makefile.am): Likewise.
18233         * modules/strings (Depends-on, Makefile.am): Likewise.
18234         * modules/sys_file (Depends-on, Makefile.am): Likewise.
18235         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
18236         * modules/sys_select (Depends-on, Makefile.am): Likewise.
18237         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
18238         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
18239         * modules/sys_times (Depends-on, Makefile.am): Likewise.
18240         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18241         * modules/wchar (Depends-on, Makefile.am): Likewise.
18242         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
18243         should be poisoned.
18244         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
18245         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
18246         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
18247         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18248         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18249         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18250         * m4/math_h.m4 (gl_MATH_H): Likewise.
18251         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18252         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18253         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18254         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18255         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18256         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18257         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
18258         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
18259         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18260         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18261         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18262         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18263         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18264         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18265         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18266         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18267         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
18268         GL_LINK_WARNING.
18269         * lib/ctype.in.h: Likewise.
18270         * lib/dirent.in.h: Likewise.
18271         * lib/fcntl.in.h: Likewise.
18272         * lib/inttypes.in.h: Likewise.
18273         * lib/langinfo.in.h: Likewise.
18274         * lib/locale.in.h: Likewise.
18275         * lib/math.in.h: Likewise.
18276         * lib/search.in.h: Likewise.
18277         * lib/signal.in.h: Likewise.
18278         * lib/spawn.in.h: Likewise.
18279         * lib/stdio.in.h: Likewise.
18280         * lib/stdlib.in.h: Likewise.
18281         * lib/string.in.h: Likewise.
18282         * lib/strings.in.h: Likewise.
18283         * lib/sys_file.in.h: Likewise.
18284         * lib/sys_ioctl.in.h: Likewise.
18285         * lib/sys_select.in.h: Likewise.
18286         * lib/sys_socket.in.h: Likewise.
18287         * lib/sys_stat.in.h: Likewise.
18288         * lib/sys_times.in.h: Likewise.
18289         * lib/sys_utsname.in.h: Likewise.
18290         * lib/unistd.in.h: Likewise.
18291         * lib/wchar.in.h: Likewise.
18292
18293 2010-01-20  Bruno Haible  <bruno@clisp.org>
18294
18295         Avoid duplicate -lm.
18296         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
18297         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
18298         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
18299         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
18300         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
18301         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
18302         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
18303         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
18304         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
18305         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
18306         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
18307         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18308         Reported by Paolo Bonzini.
18309
18310 2010-01-19  Bruno Haible  <bruno@clisp.org>
18311
18312         langinfo, nl_langinfo: Relicense under LGPLv2+.
18313         * modules/langinfo (License): Change to LGPLv2+.
18314         * modules/nl_langinfo (License): Likewise.
18315         Patch by David Lutterkort <lutter@redhat.com>.
18316
18317 2010-01-19  Bruno Haible  <bruno@clisp.org>
18318
18319         Avoid compilation error with cc on OSF/1 5.1.
18320         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
18321         statement, not before.
18322         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18323
18324 2010-01-18  Bruno Haible  <bruno@clisp.org>
18325
18326         Avoid a link error due to the __printf__ symbol.
18327         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
18328         and 2.6.x.
18329         (__format__, __printf__): Remove definitions.
18330         * lib/argp-fmtstream.h: Likewise.
18331         * lib/argp.h: Likewise.
18332         * lib/error.h: Likewise.
18333         * lib/vasnprintf.h: Likewise.
18334         * lib/xprintf.h: Likewise.
18335         * lib/xvasprintf.h: Likewise.
18336         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18337
18338 2010-01-18  Bruno Haible  <bruno@clisp.org>
18339
18340         Tests for module 'tanl'.
18341         * modules/tanl-tests: New file.
18342         * tests/test-tanl.c: New file.
18343
18344         Tests for module 'sqrtl'.
18345         * modules/sqrtl-tests: New file.
18346         * tests/test-sqrtl.c: New file.
18347
18348         Tests for module 'sinl'.
18349         * modules/sinl-tests: New file.
18350         * tests/test-sinl.c: New file.
18351
18352         Tests for module 'logl'.
18353         * modules/logl-tests: New file.
18354         * tests/test-logl.c: New file.
18355
18356         Tests for module 'expl'.
18357         * modules/expl-tests: New file.
18358         * tests/test-expl.c: New file.
18359
18360         Tests for module 'cosl'.
18361         * modules/cosl-tests: New file.
18362         * tests/test-cosl.c: New file.
18363
18364         Tests for module 'atanl'.
18365         * modules/atanl-tests: New file.
18366         * tests/test-atanl.c: New file.
18367
18368         Tests for module 'asinl'.
18369         * modules/asinl-tests: New file.
18370         * tests/test-asinl.c: New file.
18371
18372         Tests for module 'acosl'.
18373         * modules/acosl-tests: New file.
18374         * tests/test-acosl.c: New file.
18375
18376         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18377         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
18378         tanl): Use the standard gnulib idiom.
18379         * lib/cosl.c: Don't include trigl.c and sincosl.c.
18380         * lib/sinl.c: Likewise.
18381         * lib/tanl.c: Don't include trigl.c.
18382         (kernel_tanl): Make static.
18383         * lib/sincosl.c: Include trigl.h first.
18384         * lib/trigl.c: Likewise.
18385         * m4/acosl.m4: New file.
18386         * m4/asinl.m4: New file.
18387         * m4/atanl.m4: New file.
18388         * m4/cosl.m4: New file.
18389         * m4/expl.m4: New file.
18390         * m4/logl.m4: New file.
18391         * m4/sinl.m4: New file.
18392         * m4/sqrtl.m4: New file.
18393         * m4/tanl.m4: New file.
18394         * m4/mathl.m4: Remove file.
18395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
18396         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18397         Don't initialize GNULIB_MATHL.
18398         * modules/acosl: New file.
18399         * modules/asinl: New file.
18400         * modules/atanl: New file.
18401         * modules/cosl: New file.
18402         * modules/expl: New file.
18403         * modules/logl: New file.
18404         * modules/sinl: New file.
18405         * modules/sqrtl: New file.
18406         * modules/tanl: New file.
18407         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
18408         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
18409         substitute GNULIB_MATHL.
18410         * modules/mathl: Rewritten.
18411         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
18412         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
18413         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
18414         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
18415         * doc/posix-functions/expl.texi: Mention the 'expl' module.
18416         * doc/posix-functions/logl.texi: Mention the 'logl' module.
18417         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
18418         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
18419         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
18420
18421 2010-01-18  Bruno Haible  <bruno@clisp.org>
18422
18423         sqrt: Make gl_FUNC_SQRT requirable.
18424         * m4/sqrt.m4: New file.
18425         * modules/sqrt (Files): Add it.
18426         (configure.ac): Invoke gl_FUNC_SQRT.
18427
18428 2010-01-18  Bruno Haible  <bruno@clisp.org>
18429
18430         New modules for common <math.h> functions.
18431         * m4/mathfunc.m4: New file.
18432         * modules/acos: New file.
18433         * modules/asin: New file.
18434         * modules/atan: New file.
18435         * modules/atan2: New file.
18436         * modules/cbrt: New file.
18437         * modules/copysign: New file.
18438         * modules/cos: New file.
18439         * modules/cosh: New file.
18440         * modules/erf: New file.
18441         * modules/erfc: New file.
18442         * modules/exp: New file.
18443         * modules/fabs: New file.
18444         * modules/fmod: New file.
18445         * modules/hypot: New file.
18446         * modules/j0: New file.
18447         * modules/j1: New file.
18448         * modules/jn: New file.
18449         * modules/ldexp: New file.
18450         * modules/lgamma: New file.
18451         * modules/log: New file.
18452         * modules/log10: New file.
18453         * modules/log1p: New file.
18454         * modules/logb: New file.
18455         * modules/modf: New file.
18456         * modules/nextafter: New file.
18457         * modules/pow: New file.
18458         * modules/remainder: New file.
18459         * modules/rint: New file.
18460         * modules/sin: New file.
18461         * modules/sinh: New file.
18462         * modules/sqrt: New file.
18463         * modules/tan: New file.
18464         * modules/tanh: New file.
18465         * modules/y0: New file.
18466         * modules/y1: New file.
18467         * modules/yn: New file.
18468         * doc/posix-functions/acos.texi: Mention the 'acos' module.
18469         * doc/posix-functions/asin.texi: Mention the 'asin' module.
18470         * doc/posix-functions/atan.texi: Mention the 'atan' module.
18471         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
18472         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
18473         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
18474         * doc/posix-functions/cos.texi: Mention the 'cos' module.
18475         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
18476         * doc/posix-functions/erf.texi: Mention the 'erf' module.
18477         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
18478         * doc/posix-functions/exp.texi: Mention the 'exp' module.
18479         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
18480         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
18481         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
18482         * doc/posix-functions/j0.texi: Mention the 'j0' module.
18483         * doc/posix-functions/j1.texi: Mention the 'j1' module.
18484         * doc/posix-functions/jn.texi: Mention the 'jn' module.
18485         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
18486         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
18487         * doc/posix-functions/log.texi: Mention the 'log' module.
18488         * doc/posix-functions/log10.texi: Mention the 'log10' module.
18489         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
18490         * doc/posix-functions/logb.texi: Mention the 'logb' module.
18491         * doc/posix-functions/modf.texi: Mention the 'modf' module.
18492         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
18493         * doc/posix-functions/pow.texi: Mention the 'pow' module.
18494         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
18495         * doc/posix-functions/rint.texi: Mention the 'rint' module.
18496         * doc/posix-functions/sin.texi: Mention the 'sin' module.
18497         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
18498         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
18499         * doc/posix-functions/tan.texi: Mention the 'tan' module.
18500         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
18501         * doc/posix-functions/y0.texi: Mention the 'y0' module.
18502         * doc/posix-functions/y1.texi: Mention the 'y1' module.
18503         * doc/posix-functions/yn.texi: Mention the 'yn' module.
18504
18505 2010-01-18  Jim Meyering  <meyering@redhat.com>
18506
18507         ignore-value: relax license to LGPLv2+
18508         * modules/ignore-value (License): Relax to LGPLv2+.
18509
18510         getdate: don't leak when TZ contains two or more '"'s
18511         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
18512         double quote in TZ after the first one.
18513
18514         readtokens: do not leak internal token_lengths buffer
18515         * lib/readtokens.c (readtokens): Free the local, lengths,
18516         when the supplied "token_lengths" parameter is NULL.
18517
18518 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18519
18520         Fix a couple of missing LIBTHREAD link failures on AIX.
18521         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
18522         $(LIBTHREAD).
18523         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
18524
18525         Link test-poll against INET_PTON_LIB.
18526         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
18527         for inet_pton on Solaris 10.
18528
18529 2010-01-17  Bruno Haible  <bruno@clisp.org>
18530
18531         unistdio/*-sprintf: Fix typo in module description.
18532         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
18533         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
18534         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
18535         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
18536         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
18537         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
18538         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
18539         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18540
18541 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18542
18543         gnulib-tool: fix filelist for AIX, HP-UX ksh.
18544         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
18545         variables in shell case patterns, for AIX and HP-UX ksh.
18546
18547         Split large sed scripts, for HP-UX sed.
18548         * modules/stdio: Split sed scripts around 50 sed commands,
18549         to avoid HP-UX limit of 99 commands, in the near future.
18550         * modules/string: Likewise.
18551         * modules/unistd: Likewise.
18552
18553         gnulib-tool: avoid writing in the current directory.
18554         * gnulib-tool (func_emit_lib_Makefile_am)
18555         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
18556         not in the current directory, so concurrent gnulib-tool
18557         instances do not interfere.
18558
18559 2010-01-16  Jim Meyering  <meyering@redhat.com>
18560
18561         doc: update users.txt
18562         * users.txt: Add grep.
18563         (diffutils, gzip): Update URLs.
18564
18565 2010-01-12  Bruno Haible  <bruno@clisp.org>
18566
18567         posix_spawn: Avoid test failure on Cygwin.
18568         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
18569         characters.
18570         Reported by Simon Josefsson.
18571
18572 2010-01-12  Bruno Haible  <bruno@clisp.org>
18573
18574         * tests/test-cond.c (main): When skipping the test, show the reason.
18575
18576 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18577
18578         * lib/striconv.c (str_cd_iconv): Avoid if before free.
18579
18580 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18581
18582         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
18583         VC_LIST_ALWAYS_EXCLUDE_REGEX.
18584
18585 2010-01-12  Eric Blake  <ebb9@byu.net>
18586
18587         build: guarantee AS_VAR_IF
18588         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
18589         (gl_AS_VAR_IF): Move...
18590         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
18591         Reported by Simon Josefsson.
18592
18593 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18594
18595         * lib/stdio.in.h: Fix typo.
18596
18597 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18598
18599         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
18600         libgpg-error.
18601
18602 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18603
18604         * tests/test-xalloc-die.sh: Use $EXEEXT.
18605
18606 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18607             Bruno Haible  <bruno@clisp.org>
18608
18609         getlogin, getlogin_r: Avoid test failure.
18610         * tests/test-getlogin.c: Include <stdio.h>.
18611         (main): Skip the test when the function fails because stdin is not a
18612         tty.
18613         * tests/test-getlogin_r.c: Include <stdio.h>.
18614         (main): Skip the test when the function fails because stdin is not a
18615         tty.
18616
18617 2010-01-11  Eric Blake  <ebb9@byu.net>
18618
18619         tests: avoid more large file warnings
18620         * tests/test-fflush.c: Avoid warning about ftell use.
18621         * tests/test-fseek.c: Avoid warning about fseek use.
18622
18623 2010-01-10  Bruno Haible  <bruno@clisp.org>
18624
18625         nproc: Work better on Linux when /proc and /sys are not mounted.
18626         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
18627         as lower bound when, on glibc/Linux systems,
18628         sysconf (_SC_NPROCESSORS_CONF) returns 1.
18629         Suggested by Pádraig Brady <P@draigbrady.com>.
18630         Reported by Dmitry V. Levin <ldv@altlinux.org>.
18631
18632         nproc: Refactor.
18633         * lib/nproc.c (num_processors_via_affinity_mask): New function,
18634         extracted from num_processors.
18635         (num_processors): Call it.
18636
18637 2010-01-11  Jim Meyering  <meyering@redhat.com>
18638
18639         utimecmp: avoid new warning from upcoming gcc-4.5.0
18640         * lib/utimecmp.c (BILLION): Define using #define rather than an
18641         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
18642
18643 2010-01-11  Eric Blake  <ebb9@byu.net>
18644
18645         math: add portability warnings for classification macros
18646         * modules/math (Depends-on): Add warn-on-use.
18647         (Makefile.am): Provide new substitutions.
18648         * m4/math_h.m4 (gl_MATH_H): Require inline.
18649         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
18650         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
18651         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
18652         implement warnings.
18653
18654         unistd: warn on use of environ without module
18655         * modules/unistd (Depends-on): Add warn-on-use.
18656         (Makefile.am): Provide new substitutions.
18657         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
18658         * lib/unistd.in.h (environ): Wrap with a warning helper function.
18659
18660         stdio: warn on suspicious uses
18661         * modules/stdio (Depends-on): Add warn-on-use.
18662         (Makefile.am): Provide new substitutions.
18663         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
18664         fseeko.
18665         * lib/stdio.in.h (gets): Always warn on use.
18666         (fseek, ftell): Adjust when warnings are issued, and honor
18667         _GL_NO_LARGE_FILES as a way to silence the warning.
18668         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
18669         any warning about large file offsets.
18670         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
18671         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
18672         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
18673         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
18674         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
18675         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
18676         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
18677         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
18678
18679         warn-on-use: new module
18680         * modules/warn-on-use: New file.
18681         * build-aux/warn-on-use.h: Likewise.
18682         * m4/warn-on-use.m4: Likewise.
18683         * MODULES.html.sh (Support for building): Mention it.
18684
18685 2010-01-10  Bruno Haible  <bruno@clisp.org>
18686
18687         Tests for module 'unistr/u32-strdup'.
18688         * modules/unistr/u32-strdup-tests: New file.
18689         * tests/unistr/test-u32-strdup.c: New file.
18690
18691         Tests for module 'unistr/u16-strdup'.
18692         * modules/unistr/u16-strdup-tests: New file.
18693         * tests/unistr/test-u16-strdup.c: New file.
18694
18695         Tests for module 'unistr/u8-strdup'.
18696         * modules/unistr/u8-strdup-tests: New file.
18697         * tests/unistr/test-u8-strdup.c: New file.
18698         * tests/unistr/test-strdup.h: New file.
18699
18700         Tests for module 'unistr/u32-strncmp'.
18701         * modules/unistr/u32-strncmp-tests: New file.
18702         * tests/unistr/test-u32-strncmp.c: New file.
18703
18704         Tests for module 'unistr/u16-strncmp'.
18705         * modules/unistr/u16-strncmp-tests: New file.
18706         * tests/unistr/test-u16-strncmp.c: New file.
18707
18708         Tests for module 'unistr/u8-strncmp'.
18709         * modules/unistr/u8-strncmp-tests: New file.
18710         * tests/unistr/test-u8-strncmp.c: New file.
18711         * tests/unistr/test-strncmp.h: New file.
18712
18713         Tests for module 'unistr/u32-strcoll'.
18714         * modules/unistr/u32-strcoll-tests: New file.
18715         * tests/unistr/test-u32-strcoll.c: New file.
18716
18717         Tests for module 'unistr/u16-strcoll'.
18718         * modules/unistr/u16-strcoll-tests: New file.
18719         * tests/unistr/test-u16-strcoll.c: New file.
18720
18721         Tests for module 'unistr/u8-strcoll'.
18722         * modules/unistr/u8-strcoll-tests: New file.
18723         * tests/unistr/test-u8-strcoll.c: New file.
18724
18725         Tests for module 'unistr/u32-strcmp'.
18726         * modules/unistr/u32-strcmp-tests: New file.
18727         * tests/unistr/test-u32-strcmp.c: New file.
18728         * tests/unistr/test-u32-strcmp.h: New file.
18729
18730         Tests for module 'unistr/u16-strcmp'.
18731         * modules/unistr/u16-strcmp-tests: New file.
18732         * tests/unistr/test-u16-strcmp.c: New file.
18733         * tests/unistr/test-u16-strcmp.h: New file.
18734
18735         Tests for module 'unistr/u8-strcmp'.
18736         * modules/unistr/u8-strcmp-tests: New file.
18737         * tests/unistr/test-u8-strcmp.c: New file.
18738         * tests/unistr/test-u8-strcmp.h: New file.
18739         * tests/unistr/test-strcmp.h: New file.
18740
18741         Tests for module 'unistr/u32-strncat'.
18742         * modules/unistr/u32-strncat-tests: New file.
18743         * tests/unistr/test-u32-strncat.c: New file.
18744
18745         Tests for module 'unistr/u16-strncat'.
18746         * modules/unistr/u16-strncat-tests: New file.
18747         * tests/unistr/test-u16-strncat.c: New file.
18748
18749         Tests for module 'unistr/u8-strncat'.
18750         * modules/unistr/u8-strncat-tests: New file.
18751         * tests/unistr/test-u8-strncat.c: New file.
18752         * tests/unistr/test-strncat.h: New file.
18753
18754         Tests for module 'unistr/u32-strcat'.
18755         * modules/unistr/u32-strcat-tests: New file.
18756         * tests/unistr/test-u32-strcat.c: New file.
18757
18758         Tests for module 'unistr/u16-strcat'.
18759         * modules/unistr/u16-strcat-tests: New file.
18760         * tests/unistr/test-u16-strcat.c: New file.
18761
18762         Tests for module 'unistr/u8-strcat'.
18763         * modules/unistr/u8-strcat-tests: New file.
18764         * tests/unistr/test-u8-strcat.c: New file.
18765         * tests/unistr/test-strcat.h: New file.
18766
18767         Tests for module 'unistr/u32-stpncpy'.
18768         * modules/unistr/u32-stpncpy-tests: New file.
18769         * tests/unistr/test-u32-stpncpy.c: New file.
18770
18771         Tests for module 'unistr/u16-stpncpy'.
18772         * modules/unistr/u16-stpncpy-tests: New file.
18773         * tests/unistr/test-u16-stpncpy.c: New file.
18774
18775         Tests for module 'unistr/u8-stpncpy'.
18776         * modules/unistr/u8-stpncpy-tests: New file.
18777         * tests/unistr/test-u8-stpncpy.c: New file.
18778         * tests/unistr/test-stpncpy.h: New file.
18779
18780         Tests for module 'unistr/u32-strncpy'.
18781         * modules/unistr/u32-strncpy-tests: New file.
18782         * tests/unistr/test-u32-strncpy.c: New file.
18783
18784         Tests for module 'unistr/u16-strncpy'.
18785         * modules/unistr/u16-strncpy-tests: New file.
18786         * tests/unistr/test-u16-strncpy.c: New file.
18787
18788         Tests for module 'unistr/u8-strncpy'.
18789         * modules/unistr/u8-strncpy-tests: New file.
18790         * tests/unistr/test-u8-strncpy.c: New file.
18791         * tests/unistr/test-strncpy.h: New file.
18792
18793         Tests for module 'unistr/u32-stpcpy'.
18794         * modules/unistr/u32-stpcpy-tests: New file.
18795         * tests/unistr/test-u32-stpcpy.c: New file.
18796
18797         Tests for module 'unistr/u16-stpcpy'.
18798         * modules/unistr/u16-stpcpy-tests: New file.
18799         * tests/unistr/test-u16-stpcpy.c: New file.
18800
18801         Tests for module 'unistr/u8-stpcpy'.
18802         * modules/unistr/u8-stpcpy-tests: New file.
18803         * tests/unistr/test-u8-stpcpy.c: New file.
18804         * tests/unistr/test-stpcpy.h: New file.
18805
18806         Tests for module 'unistr/u32-strcpy'.
18807         * modules/unistr/u32-strcpy-tests: New file.
18808         * tests/unistr/test-u32-strcpy.c: New file.
18809
18810         Tests for module 'unistr/u16-strcpy'.
18811         * modules/unistr/u16-strcpy-tests: New file.
18812         * tests/unistr/test-u16-strcpy.c: New file.
18813
18814         Tests for module 'unistr/u8-strcpy'.
18815         * modules/unistr/u8-strcpy-tests: New file.
18816         * tests/unistr/test-u8-strcpy.c: New file.
18817         * tests/unistr/test-strcpy.h: New file.
18818
18819         Tests for module 'unistr/u32-strnlen'.
18820         * modules/unistr/u32-strnlen-tests: New file.
18821         * tests/unistr/test-u32-strnlen.c: New file.
18822
18823         Tests for module 'unistr/u16-strnlen'.
18824         * modules/unistr/u16-strnlen-tests: New file.
18825         * tests/unistr/test-u16-strnlen.c: New file.
18826
18827         Tests for module 'unistr/u8-strnlen'.
18828         * modules/unistr/u8-strnlen-tests: New file.
18829         * tests/unistr/test-u8-strnlen.c: New file.
18830         * tests/unistr/test-strnlen.h: New file.
18831
18832         Tests for module 'unistr/u32-strlen'.
18833         * modules/unistr/u32-strlen-tests: New file.
18834         * tests/unistr/test-u32-strlen.c: New file.
18835
18836         Tests for module 'unistr/u16-strlen'.
18837         * modules/unistr/u16-strlen-tests: New file.
18838         * tests/unistr/test-u16-strlen.c: New file.
18839
18840         Tests for module 'unistr/u8-strlen'.
18841         * modules/unistr/u8-strlen-tests: New file.
18842         * tests/unistr/test-u8-strlen.c: New file.
18843
18844         Tests for module 'unistr/u32-prev'.
18845         * modules/unistr/u32-prev-tests: New file.
18846         * tests/unistr/test-u32-prev.c: New file.
18847
18848         Tests for module 'unistr/u16-prev'.
18849         * modules/unistr/u16-prev-tests: New file.
18850         * tests/unistr/test-u16-prev.c: New file.
18851
18852         Tests for module 'unistr/u8-prev'.
18853         * modules/unistr/u8-prev-tests: New file.
18854         * tests/unistr/test-u8-prev.c: New file.
18855
18856         Tests for module 'unistr/u32-next'.
18857         * modules/unistr/u32-next-tests: New file.
18858         * tests/unistr/test-u32-next.c: New file.
18859
18860         Tests for module 'unistr/u16-next'.
18861         * modules/unistr/u16-next-tests: New file.
18862         * tests/unistr/test-u16-next.c: New file.
18863
18864         Tests for module 'unistr/u8-next'.
18865         * modules/unistr/u8-next-tests: New file.
18866         * tests/unistr/test-u8-next.c: New file.
18867
18868         Tests for module 'unistr/u32-strmbtouc'.
18869         * modules/unistr/u32-strmbtouc-tests: New file.
18870         * tests/unistr/test-u32-strmbtouc.c: New file.
18871
18872         Tests for module 'unistr/u16-strmbtouc'.
18873         * modules/unistr/u16-strmbtouc-tests: New file.
18874         * tests/unistr/test-u16-strmbtouc.c: New file.
18875
18876         Tests for module 'unistr/u8-strmbtouc'.
18877         * modules/unistr/u8-strmbtouc-tests: New file.
18878         * tests/unistr/test-u8-strmbtouc.c: New file.
18879
18880         Tests for module 'unistr/u32-strmblen'.
18881         * modules/unistr/u32-strmblen-tests: New file.
18882         * tests/unistr/test-u32-strmblen.c: New file.
18883
18884         Tests for module 'unistr/u16-strmblen'.
18885         * modules/unistr/u16-strmblen-tests: New file.
18886         * tests/unistr/test-u16-strmblen.c: New file.
18887
18888         Tests for module 'unistr/u8-strmblen'.
18889         * modules/unistr/u8-strmblen-tests: New file.
18890         * tests/unistr/test-u8-strmblen.c: New file.
18891
18892         Tests for module 'unistr/u32-cpy-alloc'.
18893         * modules/unistr/u32-cpy-alloc-tests: New file.
18894         * tests/unistr/test-u32-cpy-alloc.c: New file.
18895
18896         Tests for module 'unistr/u16-cpy-alloc'.
18897         * modules/unistr/u16-cpy-alloc-tests: New file.
18898         * tests/unistr/test-u16-cpy-alloc.c: New file.
18899
18900         Tests for module 'unistr/u8-cpy-alloc'.
18901         * modules/unistr/u8-cpy-alloc-tests: New file.
18902         * tests/unistr/test-u8-cpy-alloc.c: New file.
18903         * tests/unistr/test-cpy-alloc.h: New file.
18904
18905         Tests for module 'unistr/u32-mbsnlen'.
18906         * modules/unistr/u32-mbsnlen-tests: New file.
18907         * tests/unistr/test-u32-mbsnlen.c: New file.
18908
18909         Tests for module 'unistr/u16-mbsnlen'.
18910         * modules/unistr/u16-mbsnlen-tests: New file.
18911         * tests/unistr/test-u16-mbsnlen.c: New file.
18912
18913         Tests for module 'unistr/u8-mbsnlen'.
18914         * modules/unistr/u8-mbsnlen-tests: New file.
18915         * tests/unistr/test-u8-mbsnlen.c: New file.
18916
18917         Tests for module 'unistr/u32-chr'.
18918         * modules/unistr/u32-chr-tests: New file.
18919         * tests/unistr/test-u32-chr.c: New file.
18920
18921         Tests for module 'unistr/u16-chr'.
18922         * modules/unistr/u16-chr-tests: New file.
18923         * tests/unistr/test-u16-chr.c: New file.
18924
18925         Tests for module 'unistr/u8-chr'.
18926         * modules/unistr/u8-chr-tests: New file.
18927         * tests/unistr/test-u8-chr.c: New file.
18928         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
18929
18930         Tests for module 'unistr/u32-cmp2'.
18931         * modules/unistr/u32-cmp2-tests: New file.
18932         * tests/unistr/test-u32-cmp2.c: New file.
18933
18934         Tests for module 'unistr/u16-cmp2'.
18935         * modules/unistr/u16-cmp2-tests: New file.
18936         * tests/unistr/test-u16-cmp2.c: New file.
18937
18938         Tests for module 'unistr/u8-cmp2'.
18939         * modules/unistr/u8-cmp2-tests: New file.
18940         * tests/unistr/test-u8-cmp2.c: New file.
18941         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
18942
18943         Tests for module 'unistr/u32-cmp'.
18944         * modules/unistr/u32-cmp-tests: New file.
18945         * tests/unistr/test-u32-cmp.c: New file.
18946
18947         Tests for module 'unistr/u16-cmp'.
18948         * modules/unistr/u16-cmp-tests: New file.
18949         * tests/unistr/test-u16-cmp.c: New file.
18950
18951         Tests for module 'unistr/u8-cmp'.
18952         * modules/unistr/u8-cmp-tests: New file.
18953         * tests/unistr/test-u8-cmp.c: New file.
18954         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
18955
18956         Tests for module 'unistr/u32-set'.
18957         * modules/unistr/u32-set-tests: New file.
18958         * tests/unistr/test-u32-set.c: New file.
18959
18960         Tests for module 'unistr/u16-set'.
18961         * modules/unistr/u16-set-tests: New file.
18962         * tests/unistr/test-u16-set.c: New file.
18963
18964         Tests for module 'unistr/u8-set'.
18965         * modules/unistr/u8-set-tests: New file.
18966         * tests/unistr/test-u8-set.c: New file.
18967         * tests/unistr/test-set.h: New file.
18968
18969         Tests for module 'unistr/u32-move'.
18970         * modules/unistr/u32-move-tests: New file.
18971         * tests/unistr/test-u32-move.c: New file.
18972
18973         Tests for module 'unistr/u16-move'.
18974         * modules/unistr/u16-move-tests: New file.
18975         * tests/unistr/test-u16-move.c: New file.
18976
18977         Tests for module 'unistr/u8-move'.
18978         * modules/unistr/u8-move-tests: New file.
18979         * tests/unistr/test-u8-move.c: New file.
18980         * tests/unistr/test-move.h: New file.
18981
18982         Tests for module 'unistr/u32-cpy'.
18983         * modules/unistr/u32-cpy-tests: New file.
18984         * tests/unistr/test-u32-cpy.c: New file.
18985
18986         Tests for module 'unistr/u16-cpy'.
18987         * modules/unistr/u16-cpy-tests: New file.
18988         * tests/unistr/test-u16-cpy.c: New file.
18989
18990         Tests for module 'unistr/u8-cpy'.
18991         * modules/unistr/u8-cpy-tests: New file.
18992         * tests/unistr/test-u8-cpy.c: New file.
18993         * tests/unistr/test-cpy.h: New file.
18994
18995 2010-01-09  Bruno Haible  <bruno@clisp.org>
18996
18997         Tests for module 'unistr/u32-uctomb'.
18998         * modules/unistr/u32-uctomb-tests: New file.
18999         * tests/unistr/test-u32-uctomb.c: New file.
19000
19001         Tests for module 'unistr/u16-uctomb'.
19002         * modules/unistr/u16-uctomb-tests: New file.
19003         * tests/unistr/test-u16-uctomb.c: New file.
19004
19005         Tests for module 'unistr/u8-uctomb'.
19006         * modules/unistr/u8-uctomb-tests: New file.
19007         * tests/unistr/test-u8-uctomb.c: New file.
19008
19009         Tests for module 'unistr/u32-mbtoucr'.
19010         * modules/unistr/u32-mbtoucr-tests: New file.
19011         * tests/unistr/test-u32-mbtoucr.c: New file.
19012
19013         Tests for module 'unistr/u16-mbtoucr'.
19014         * modules/unistr/u16-mbtoucr-tests: New file.
19015         * tests/unistr/test-u16-mbtoucr.c: New file.
19016
19017         Tests for module 'unistr/u8-mbtoucr'.
19018         * modules/unistr/u8-mbtoucr-tests: New file.
19019         * tests/unistr/test-u8-mbtoucr.c: New file.
19020
19021         Tests for module 'unistr/u32-mbtouc'.
19022         * modules/unistr/u32-mbtouc-tests: New file.
19023         * tests/unistr/test-u32-mbtouc.c: New file.
19024
19025         Tests for module 'unistr/u16-mbtouc'.
19026         * modules/unistr/u16-mbtouc-tests: New file.
19027         * tests/unistr/test-u16-mbtouc.c: New file.
19028
19029         Tests for module 'unistr/u8-mbtouc'.
19030         * modules/unistr/u8-mbtouc-tests: New file.
19031         * tests/unistr/test-u8-mbtouc.c: New file.
19032
19033         Tests for module 'unistr/u32-mbtouc-unsafe'.
19034         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
19035         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
19036         * tests/unistr/test-u32-mbtouc.h: New file.
19037
19038         Tests for module 'unistr/u16-mbtouc-unsafe'.
19039         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
19040         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
19041         * tests/unistr/test-u16-mbtouc.h: New file.
19042
19043         Tests for module 'unistr/u8-mbtouc-unsafe'.
19044         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
19045         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
19046         * tests/unistr/test-u8-mbtouc.h: New file.
19047
19048         Tests for module 'unistr/u32-mblen'.
19049         * modules/unistr/u32-mblen-tests: New file.
19050         * tests/unistr/test-u32-mblen.c: New file.
19051
19052         Tests for module 'unistr/u16-mblen'.
19053         * modules/unistr/u16-mblen-tests: New file.
19054         * tests/unistr/test-u16-mblen.c: New file.
19055
19056         Tests for module 'unistr/u8-mblen'.
19057         * modules/unistr/u8-mblen-tests: New file.
19058         * tests/unistr/test-u8-mblen.c: New file.
19059
19060         Tests for module 'unistr/u32-to-u16'.
19061         * modules/unistr/u32-to-u16-tests: New file.
19062         * tests/unistr/test-u32-to-u16.c: New file.
19063
19064         Tests for module 'unistr/u32-to-u8'.
19065         * modules/unistr/u32-to-u8-tests: New file.
19066         * tests/unistr/test-u32-to-u8.c: New file.
19067
19068         Tests for module 'unistr/u16-to-u32'.
19069         * modules/unistr/u16-to-u32-tests: New file.
19070         * tests/unistr/test-u16-to-u32.c: New file.
19071
19072         Tests for module 'unistr/u16-to-u8'.
19073         * modules/unistr/u16-to-u8-tests: New file.
19074         * tests/unistr/test-u16-to-u8.c: New file.
19075
19076         Tests for module 'unistr/u8-to-u32'.
19077         * modules/unistr/u8-to-u32-tests: New file.
19078         * tests/unistr/test-u8-to-u32.c: New file.
19079
19080         Tests for module 'unistr/u8-to-u16'.
19081         * modules/unistr/u8-to-u16-tests: New file.
19082         * tests/unistr/test-u8-to-u16.c: New file.
19083
19084         Tests for module 'unistr/u32-check'.
19085         * modules/unistr/u32-check-tests: New file.
19086         * tests/unistr/test-u32-check.c: New file.
19087
19088         Tests for module 'unistr/u16-check'.
19089         * modules/unistr/u16-check-tests: New file.
19090         * tests/unistr/test-u16-check.c: New file.
19091
19092         Tests for module 'unistr/u8-check'.
19093         * modules/unistr/u8-check-tests: New file.
19094         * tests/unistr/test-u8-check.c: New file.
19095
19096         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
19097         (category_equals): New function.
19098         (main): Add more tests.
19099         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
19100
19101         * tests/unictype/test-bidi_byname.c (main): Add more tests.
19102
19103 2010-01-10  Bruno Haible  <bruno@clisp.org>
19104
19105         unistr/u*-strcoll: Try harder to distinguish different strings.
19106         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
19107         compare s1 and s2 to see if they are different.
19108
19109 2010-01-10  Bruno Haible  <bruno@clisp.org>
19110
19111         unistr/u*-stpncpy: Fix the return value.
19112         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
19113         description of the return value consistent with stpncpy in glibc.
19114         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
19115         written non-NUL unit.
19116
19117 2010-01-10  Bruno Haible  <bruno@clisp.org>
19118
19119         unistr/u*-next: Add missing dependencies.
19120         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
19121         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
19122         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
19123
19124 2010-01-10  Bruno Haible  <bruno@clisp.org>
19125
19126         unistr/u8-mbsnlen: Fix return value for incomplete character.
19127         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
19128         u8_mblen.
19129         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
19130         Remove unistr/u8-mblen.
19131         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
19132         u16_mblen.
19133         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
19134         Remove unistr/u16-mblen.
19135
19136 2010-01-10  Bruno Haible  <bruno@clisp.org>
19137
19138         wchar: Fix compilation error when <wchar.h> is used from coreutils.
19139         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
19140         Reported by Brian Gough <bjg@gnu.org> and
19141         Chris Clayton <chris2553@googlemail.com> via
19142         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
19143
19144 2010-01-09  Bruno Haible  <bruno@clisp.org>
19145
19146         unistr/u16-to-u32: Reject invalid input.
19147         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
19148         u16_mbtouc.
19149         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
19150         Remove unistr/u16-mbtouc.
19151
19152         unistr/u16-to-u8: Reject invalid input.
19153         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
19154         u16_mbtouc.
19155         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
19156         Remove unistr/u16-mbtouc.
19157
19158         unistr/u8-to-u32: Reject invalid input.
19159         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
19160         u8_mbtouc.
19161         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
19162         Remove unistr/u8-mbtouc.
19163
19164         unistr/u8-to-u16: Reject invalid input.
19165         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
19166         u8_mbtouc.
19167         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
19168         Remove unistr/u8-mbtouc.
19169
19170 2010-01-09  Bruno Haible  <bruno@clisp.org>
19171
19172         Tests for module 'getlogin'.
19173         * modules/getlogin-tests: New file.
19174         * tests/test-getlogin.c: New file.
19175
19176         New module 'getlogin'.
19177         * lib/unistd.in.h (getlogin): New declaration.
19178         * lib/getlogin.c: New file.
19179         * m4/getlogin.m4: New file.
19180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
19181         HAVE_GETLOGIN.
19182         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
19183         HAVE_GETLOGIN.
19184         * modules/getlogin: New file.
19185         * doc/posix-functions/getlogin.texi: Mention the new module.
19186         Reported by John W. Eaton <jwe@gnu.org>.
19187
19188 2010-01-09  Bruno Haible  <bruno@clisp.org>
19189
19190         getlogin_r: Support for native Windows.
19191         * lib/getlogin_r.c: Include <windows.h>
19192         (getlogin_r): Implement for native Windows.
19193         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
19194         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
19195         via John W. Eaton <jwe@gnu.org>.
19196
19197 2010-01-09  Bruno Haible  <bruno@clisp.org>
19198
19199         getlogin_r: Small fixes.
19200         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
19201         succeeds.
19202         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
19203         before testing whether getlogin_r is declared. No need to set
19204         HAVE_DECL_GETLOGIN_R to 1.
19205         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
19206
19207 2010-01-09  Bruno Haible  <bruno@clisp.org>
19208
19209         * lib/unistd.in.h (getlogin_r): Add comment.
19210
19211 2010-01-09  Bruno Haible  <bruno@clisp.org>
19212
19213         Tests for module 'getlogin_r'.
19214         * modules/getlogin_r-tests: New file.
19215         * tests/test-getlogin_r.c: New file.
19216
19217 2010-01-09  Jim Meyering  <meyering@redhat.com>
19218
19219         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
19220         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
19221         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
19222
19223 2010-01-08  Simon Josefsson  <simon@josefsson.org>
19224
19225         * lib/dup2.c (rpl_dup2): Improve comment.
19226
19227 2010-01-08  Eric Blake  <ebb9@byu.net>
19228
19229         maint.mk: allow packages to add makefile @@ exceptions
19230         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
19231         (sc_makefile_check): Rename...
19232         (sc_makefile_at_at_check): ...to this, and use hook.
19233
19234         dup2: work around mingw bug
19235         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
19236         Reported by Simon Josefsson.
19237
19238 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
19239
19240         glob: Fix C++ compilation.
19241         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
19242         C++.
19243
19244 2010-01-07  Bruno Haible  <bruno@clisp.org>
19245
19246         Fix indentation of wctype.in.h, broken since 2007-01-06.
19247         * lib/wctype.in.h: Fix indentation of preprocessor directives.
19248
19249 2010-01-07  Bruno Haible  <bruno@clisp.org>
19250
19251         mbslen: Avoid collision with system function.
19252         * lib/string.in.h [MirBSD]: Include <wchar.h>.
19253         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
19254         * m4/mbslen.m4: New file.
19255         * modules/mbslen (Files): Add it.
19256         (configure.ac): Invoke gl_MBSLEN.
19257         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
19258         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
19259         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
19260         via Ian Beckwith <ianb@erislabs.net>.
19261
19262 2010-01-07  Bruno Haible  <bruno@clisp.org>
19263
19264         dirent: Document the last fix.
19265         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
19266
19267 2010-01-07  Bruno Haible  <bruno@clisp.org>
19268
19269         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
19270         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
19271         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
19272         va_list are defined.
19273         * doc/posix-headers/stdio.texi: Document the bug of missing types.
19274         Reported by Eric Blake.
19275
19276 2010-01-07  Bruno Haible  <bruno@clisp.org>
19277
19278         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
19279         * modules/xlist (Depends-on): Add 'list',
19280         * modules/xoset (Depends-on): Add 'oset'.
19281         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19282
19283 2010-01-07  Bruno Haible  <bruno@clisp.org>
19284
19285         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
19286         * doc/posix-functions/strncasecmp.texi: Likewise.
19287
19288 2010-01-07  Bruno Haible  <bruno@clisp.org>
19289
19290         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
19291
19292 2010-01-07  John W. Eaton  <jwe@octave.org>
19293
19294         wctype: allow C++ use
19295         * lib/wctype.in.h: Add extern "C" block for C++.
19296
19297 2010-01-06  Eric Blake  <ebb9@byu.net>
19298
19299         maint.mk: detect incorrect GFDL usage
19300         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
19301
19302 2010-01-06  Jim Meyering  <meyering@redhat.com>
19303         and Eric Blake  <ebb9@byu.net>
19304
19305         maint.mk: ignore multi-line copyright in NEWS
19306         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
19307
19308 2010-01-06  Eric Blake  <ebb9@byu.net>
19309
19310         select: add missing dependency
19311         * modules/select-tests (Depends-on): Move sockets dependency...
19312         * modules/select (Depends-on): ...here.
19313         Reported by Ian Beckwith.
19314
19315         doc: regenerate INSTALL
19316         * doc/INSTALL: Reflect recent autoconf update.
19317         * doc/INSTALL.ISO: Likewise.
19318         * doc/INSTALL.UTF-8: Likewise.
19319
19320         pread: fix compilation on glibc
19321         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
19322         Reported by Ralf Wildenhues.
19323
19324         dirent: fix test failure
19325         * lib/dirent.in.h (includes): Guarantee ino_t.
19326         Reported by Ralf Wildenhues.
19327
19328 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
19329
19330         linkat, renameat: avoid bad free
19331         * lib/at-func2.c (at_func2): Fix typo.
19332         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
19333
19334 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19335
19336         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
19337         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
19338         to avoid failure of symlink test later.
19339
19340 2010-01-06  Eric Blake  <ebb9@byu.net>
19341
19342         stdio, unistd: guarantee ssize_t
19343         * lib/unistd.in.h (includes): Ensure that types required by POSIX
19344         2008 are exposed when needed.
19345         * lib/stdio.in.h (includes): Likewise.
19346         Reported by Ralf Wildenhues.
19347
19348 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
19349
19350         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
19351         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
19352         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
19353
19354 2010-01-06  Jim Meyering  <meyering@redhat.com>
19355
19356         readtokens: this module *does* require xalloc.h
19357         It uses only functions that were omitted by the old syntax-check rule.
19358         * lib/readtokens.c: Include "xalloc.h" once again.
19359         * modules/readtokens (Depends-on): Add xalloc.
19360         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
19361
19362 2010-01-05  Eric Blake  <ebb9@byu.net>
19363
19364         maint: support 'make announcement' from a VPATH build
19365         * top/maint.mk (announcement): Look for correct NEWS file.
19366
19367 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
19368
19369         utimens (fdutimens): ignore a negative FD, per contract
19370         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
19371         when we have a valid file descriptor.  Otherwise, using a brand
19372         new glibc (with just-patched futimens that now fails with EBADF)
19373         would cause this function to fail with ENOSYS.
19374         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
19375         See also http://bugzilla.redhat.com/552320.
19376
19377 2010-01-05  Eric Blake  <ebb9@byu.net>
19378
19379         strcase: document what it provides
19380         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
19381         gnulib module.
19382         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
19383         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
19384
19385 2010-01-05  Jim Meyering  <meyering@redhat.com>
19386
19387         maint: remove useless inclusions of "xalloc.h"
19388         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
19389         * lib/readtokens.c: Likewise.
19390         * lib/same.c: Likewise.
19391         * modules/getloadavg (Depends-on): Remove xalloc.
19392         * modules/readtokens: Likewise.
19393         * modules/same: Likewise.
19394
19395         maint.mk: include 4 more function names in alloca.h-checking regexp
19396         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
19397         regexp.  Before, we would give a false-positive (saying alloca.h
19398         is included unnecessarily) when the only uses involved omitted symbols.
19399
19400         xalloc.h: use consistent formatting
19401         * lib/xalloc.h: Move declarations to start in the first column.
19402
19403 2010-01-05  Eric Blake  <ebb9@byu.net>
19404
19405         mkdir: avoid xalloc
19406         * lib/mkdir.c (includes): Drop unused header.
19407         Reported by John W. Eaton.
19408
19409 2010-01-04  Jim Meyering  <meyering@redhat.com>
19410
19411         nl_langinfo: avoid configure-time syntax error
19412         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
19413         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
19414         the empty string.  Don't let that provoke a shell syntax error.
19415
19416         regcomp, regexec, fnmatch: avoid array bounds read error
19417         * lib/regcomp.c (build_equiv_class): From glibc:
19418         Use only the low 24 bits of a findidx return value as an index
19419         into the weights array.  Patch by Ulrich Drepper:
19420         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
19421         * lib/regexec.c (check_node_accept_bytes): Likewise.
19422         * lib/fnmatch_loop.c (FCT): Likewise.
19423
19424         regcomp: skip collseq lookup when there are no rules
19425         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
19426         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
19427
19428         regcomp: recognize ill-formed { } expressions
19429         * lib/regcomp.c (parse_dup_op): From glibc:
19430         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
19431
19432         regcomp: fix typo in comment
19433         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
19434         s/satisfy/satisfies/.
19435
19436         regcomp: sync from glibc: remove dead store
19437         * lib/regcomp.c (duplicate_node_closure): Remove useless
19438         search_duplicated_node call and dead store.
19439
19440         regcomp: sync from glibc; always use nl_langinfo
19441         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
19442         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
19443         * modules/regex (Depends-on): Add nl_langinfo.
19444
19445 2010-01-04  Eric Blake  <ebb9@byu.net>
19446
19447         fdopendir: fix configure test
19448         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
19449
19450 2010-01-01  Bruno Haible  <bruno@clisp.org>
19451
19452         wchar: Remove unused configure check.
19453         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
19454
19455 2010-01-01  Eric Blake  <ebb9@byu.net>
19456
19457         headers: make check of system header explicit
19458         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
19459         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
19460         ourselves.
19461         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19462         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19463         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
19464         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
19465         internals.
19466         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
19467         missing.
19468         Suggested by Bruno Haible.
19469
19470 2010-01-01  Jim Meyering  <meyering@redhat.com>
19471
19472         ChangeLog: tweak to eliminate unnecessary copyright line
19473         * ChangeLog: Remove a copyright line that was mistakenly updated
19474         by today's update-copyright run.  Reported by Eric Blake.
19475
19476         test-update-copyright: don't let envvar setting cause test failure
19477         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19478
19479 2010-01-01  Bruno Haible  <bruno@clisp.org>
19480
19481         localename: Avoid gcc warning.
19482         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
19483         function if it is not used.
19484
19485 2010-01-01  Jim Meyering  <meyering@redhat.com>
19486
19487         update nearly all FSF copyright year lists to include 2010
19488         Use the same procedure as for 2009, outlined in
19489         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
19490
19491         version-etc: set COPYRIGHT_YEAR to 2010
19492         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
19493
19494 2009-12-31  Eric Blake  <ebb9@byu.net>
19495
19496         doc: correct availability of cygwin 1.5.x getopt
19497         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
19498         variables.
19499         * doc/posix-functions/opterr.texi (opterr): Likewise.
19500         * doc/posix-functions/optind.texi (optind): Likewise.
19501         * doc/posix-functions/optopt.texi (optopt): Likewise.
19502         * doc/posix-functions/tzname.texi (tzname): Likewise.
19503
19504         openat: update maintainer
19505         * modules/openat (Maintainer): Add myself.
19506
19507         utimens: avoid shadowing warning
19508         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
19509         buffers into one, to avoid shadowing, as well as avoiding a
19510         redundant stat.
19511         Reported by Jim Meyering.
19512
19513         test-dup2: avoid compiler warning
19514         * tests/test-dup2.c (is_inheritable): Only define if used.
19515
19516 2010-01-01  Bruno Haible  <bruno@clisp.org>
19517
19518         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
19519         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
19520         defined, use wctomb instead of wcrtomb.
19521
19522 2010-01-01  Bruno Haible  <bruno@clisp.org>
19523
19524         iconv: Reject native Solaris iconv.
19525         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
19526         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
19527
19528 2009-12-31  Bruno Haible  <bruno@clisp.org>
19529
19530         * tests/test-signal.c (main): Remove test of 'SIG'.
19531
19532 2009-12-31  Bruno Haible  <bruno@clisp.org>
19533
19534         spawn: Fix incomplete fix.
19535         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19536         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19537         warnings for GNULIB_POSIXCHECK again.
19538         Reported by Eric Blake.
19539
19540 2009-12-31  Bruno Haible  <bruno@clisp.org>
19541
19542         Avoid namespace pollution on glibc systems.
19543         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
19544         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
19545         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
19546         glibc systems.
19547
19548 2009-12-31  Bruno Haible  <bruno@clisp.org>
19549
19550         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
19551         (gl_REPLACE_WCHAR_H): Turn into a no-op.
19552         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
19553         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19554         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19555         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19556         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19557
19558 2009-12-31  Bruno Haible  <bruno@clisp.org>
19559
19560         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19561         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
19562         afterwards.
19563
19564 2009-12-31  Bruno Haible  <bruno@clisp.org>
19565
19566         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
19567         SYS_UTSNAME_H.
19568
19569 2009-12-31  Bruno Haible  <bruno@clisp.org>
19570
19571         spawn: Fix misapplied patch.
19572         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19573         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19574         warnings for GNULIB_POSIXCHECK.
19575
19576 2009-12-31  Bruno Haible  <bruno@clisp.org>
19577
19578         times: Update after sys_times changed.
19579         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
19580         * modules/times (Files): Add it.
19581         (configure.ac): Invoke gl_FUNC_TIMES.
19582
19583 2009-12-31  Bruno Haible  <bruno@clisp.org>
19584
19585         Use AC_C_INLINE where necessary.
19586         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
19587         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19588         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19589         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19590         * m4/mbfile.m4 (gl_MBFILE): Likewise.
19591         * m4/mbiter.m4 (gl_MBITER): Likewise.
19592         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19593         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19594         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
19595         * modules/u64 (configure.ac): Likewise.
19596
19597 2009-12-31  Bruno Haible  <bruno@clisp.org>
19598
19599         Use AC_C_INLINE instead of module 'inline' where possible.
19600         * modules/inline (Description): Clarify purpose.
19601         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
19602         * modules/count-one-bits (Depends-on): Remove inline.
19603         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
19604         * modules/openat (Depends-on): Remove inline.
19605         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
19606         instead of depending on module 'inline'.
19607         * modules/filevercmp (Depends-on, configure.ac): Likewise.
19608         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
19609         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
19610         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
19611         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
19612         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
19613         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
19614         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
19615         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
19616         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
19617         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
19618         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
19619         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
19620         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
19621         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
19622         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
19623         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
19624         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
19625         Likewise.
19626         * modules/unictype/property-ascii-hex-digit (Depends-on,
19627         configure.ac): Likewise.
19628         * modules/unictype/property-bidi-arabic-digit (Depends-on,
19629         configure.ac): Likewise.
19630         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
19631         configure.ac): Likewise.
19632         * modules/unictype/property-bidi-block-separator (Depends-on,
19633         configure.ac): Likewise.
19634         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
19635         configure.ac): Likewise.
19636         * modules/unictype/property-bidi-common-separator (Depends-on,
19637         configure.ac): Likewise.
19638         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
19639         Likewise.
19640         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
19641         configure.ac): Likewise.
19642         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
19643         configure.ac): Likewise.
19644         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
19645         configure.ac): Likewise.
19646         * modules/unictype/property-bidi-european-digit (Depends-on,
19647         configure.ac): Likewise.
19648         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
19649         configure.ac): Likewise.
19650         * modules/unictype/property-bidi-left-to-right (Depends-on,
19651         configure.ac): Likewise.
19652         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
19653         configure.ac): Likewise.
19654         * modules/unictype/property-bidi-other-neutral (Depends-on,
19655         configure.ac): Likewise.
19656         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
19657         Likewise.
19658         * modules/unictype/property-bidi-segment-separator (Depends-on,
19659         configure.ac): Likewise.
19660         * modules/unictype/property-bidi-whitespace (Depends-on,
19661         configure.ac): Likewise.
19662         * modules/unictype/property-combining (Depends-on, configure.ac):
19663         Likewise.
19664         * modules/unictype/property-composite (Depends-on, configure.ac):
19665         Likewise.
19666         * modules/unictype/property-currency-symbol (Depends-on,
19667         configure.ac): Likewise.
19668         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
19669         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
19670         Likewise.
19671         * modules/unictype/property-default-ignorable-code-point (Depends-on,
19672         configure.ac): Likewise.
19673         * modules/unictype/property-deprecated (Depends-on, configure.ac):
19674         Likewise.
19675         * modules/unictype/property-diacritic (Depends-on, configure.ac):
19676         Likewise.
19677         * modules/unictype/property-extender (Depends-on, configure.ac):
19678         Likewise.
19679         * modules/unictype/property-format-control (Depends-on, configure.ac):
19680         Likewise.
19681         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
19682         Likewise.
19683         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
19684         Likewise.
19685         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
19686         Likewise.
19687         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
19688         Likewise.
19689         * modules/unictype/property-hyphen (Depends-on, configure.ac):
19690         Likewise.
19691         * modules/unictype/property-id-continue (Depends-on, configure.ac):
19692         Likewise.
19693         * modules/unictype/property-id-start (Depends-on, configure.ac):
19694         Likewise.
19695         * modules/unictype/property-ideographic (Depends-on, configure.ac):
19696         Likewise.
19697         * modules/unictype/property-ids-binary-operator (Depends-on,
19698         configure.ac): Likewise.
19699         * modules/unictype/property-ids-trinary-operator (Depends-on,
19700         configure.ac): Likewise.
19701         * modules/unictype/property-ignorable-control (Depends-on,
19702         configure.ac): Likewise.
19703         * modules/unictype/property-iso-control (Depends-on, configure.ac):
19704         Likewise.
19705         * modules/unictype/property-join-control (Depends-on, configure.ac):
19706         Likewise.
19707         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
19708         Likewise.
19709         * modules/unictype/property-line-separator (Depends-on, configure.ac):
19710         Likewise.
19711         * modules/unictype/property-logical-order-exception (Depends-on,
19712         configure.ac): Likewise.
19713         * modules/unictype/property-lowercase (Depends-on, configure.ac):
19714         Likewise.
19715         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
19716         * modules/unictype/property-non-break (Depends-on, configure.ac):
19717         Likewise.
19718         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
19719         Likewise.
19720         * modules/unictype/property-numeric (Depends-on, configure.ac):
19721         Likewise.
19722         * modules/unictype/property-other-alphabetic (Depends-on,
19723         configure.ac): Likewise.
19724         * modules/unictype/property-other-default-ignorable-code-point
19725         (Depends-on, configure.ac): Likewise.
19726         * modules/unictype/property-other-grapheme-extend (Depends-on,
19727         configure.ac): Likewise.
19728         * modules/unictype/property-other-id-continue (Depends-on,
19729         configure.ac): Likewise.
19730         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
19731         Likewise.
19732         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
19733         Likewise.
19734         * modules/unictype/property-other-math (Depends-on, configure.ac):
19735         Likewise.
19736         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
19737         Likewise.
19738         * modules/unictype/property-paired-punctuation (Depends-on,
19739         configure.ac): Likewise.
19740         * modules/unictype/property-paragraph-separator (Depends-on,
19741         configure.ac): Likewise.
19742         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
19743         Likewise.
19744         * modules/unictype/property-pattern-white-space (Depends-on,
19745         configure.ac): Likewise.
19746         * modules/unictype/property-private-use (Depends-on, configure.ac):
19747         Likewise.
19748         * modules/unictype/property-punctuation (Depends-on, configure.ac):
19749         Likewise.
19750         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
19751         Likewise.
19752         * modules/unictype/property-radical (Depends-on, configure.ac):
19753         Likewise.
19754         * modules/unictype/property-sentence-terminal (Depends-on,
19755         configure.ac): Likewise.
19756         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
19757         Likewise.
19758         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
19759         * modules/unictype/property-terminal-punctuation (Depends-on,
19760         configure.ac): Likewise.
19761         * modules/unictype/property-titlecase (Depends-on, configure.ac):
19762         Likewise.
19763         * modules/unictype/property-unassigned-code-value (Depends-on,
19764         configure.ac): Likewise.
19765         * modules/unictype/property-unified-ideograph (Depends-on,
19766         configure.ac): Likewise.
19767         * modules/unictype/property-uppercase (Depends-on, configure.ac):
19768         Likewise.
19769         * modules/unictype/property-variation-selector (Depends-on,
19770         configure.ac): Likewise.
19771         * modules/unictype/property-white-space (Depends-on, configure.ac):
19772         Likewise.
19773         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
19774         Likewise.
19775         * modules/unictype/property-xid-start (Depends-on, configure.ac):
19776         Likewise.
19777         * modules/unictype/property-zero-width (Depends-on, configure.ac):
19778         Likewise.
19779         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
19780         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
19781         Likewise.
19782
19783 2009-12-31  Bruno Haible  <bruno@clisp.org>
19784
19785         Remove unnecessary AC_C_INLINE invocation.
19786         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
19787         since 2009-08-21.
19788
19789 2009-12-31  Jim Meyering  <meyering@redhat.com>
19790
19791         maint.mk: don't require explicit gpg_key_ID in cfg.mk
19792         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
19793         With this change, we can all remove the gpg_key_ID = ... definition
19794         from our respective cfg.mk files.
19795
19796         maint.mk: create announcement template in ~/, not in /tmp
19797         * top/maint.mk (emit_upload_commands): Adjust.
19798         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
19799         Remove temporary file, .ci-msg.
19800
19801 2009-12-31  Eric Blake  <ebb9@byu.net>
19802
19803         link-warning: always build headers with link warnings
19804         * modules/arpa_inet (Makefile.am): Always build replacement
19805         header.
19806         * modules/ctype (Makefile.am): Likewise.
19807         * modules/dirent (Makefile.am): Likewise.
19808         * modules/inttypes (Makefile.am): Likewise.
19809         * modules/langinfo (Makefile.am): Likewise.
19810         * modules/locale (Makefile.am): Likewise.
19811         * modules/spawn (Makefile.am): Likewise.
19812         * modules/sys_file (Makefile.am): Likewise.
19813         * modules/sys_ioctl (Makefile.am): Likewise.
19814         * modules/sys_select (Makefile.am): Likewise.
19815         * modules/sys_socket (Makefile.am): Likewise.
19816         * modules/sys_times (Makefile.am): Likewise.
19817         * modules/sys_utsname (Makefile.am): Likewise.
19818         * modules/sys_wait (Makefile.am): Likewise.
19819         * modules/wchar (Makefile.am): Likewise.
19820         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
19821         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
19822         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
19823         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
19824         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
19825         Likewise.
19826         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19827         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19828         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
19829         Likewise.
19830         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
19831         Likewise.
19832         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19833         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
19834         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
19835         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19836         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19837         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19838         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19839         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
19840         (gl_WCHAR_H_DEFAULTS): Likewise.
19841
19842 2009-12-31  Eric Blake  <ebb9@byu.net>
19843
19844         signal, spawn: use link warnings
19845         * lib/signal.in.h (sigset_t): Make unconditional.
19846         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
19847         (sigpending, sigprocmask, sigaction): Add link warnings.
19848         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
19849         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
19850         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
19851         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
19852         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
19853         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
19854         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
19855         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
19856         (posix_spawn_file_actions_destroy)
19857         (posix_spawn_file_actions_addopen)
19858         (posix_spawn_file_actions_addclose)
19859         (posix_spawn_file_actions_adddup2): Likewise.
19860         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
19861         * tests/test-signal.c (main): Enhance test.
19862
19863         spawn: improve wrapper support
19864         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
19865         (gl_SPAWN_H_DEFAULTS): New defaults.
19866         * modules/spawn (Makefile.am): Substitute them.
19867         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
19868         Only declare if missing or broken.
19869
19870         sys_times, sys_utsname: use include_next
19871         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
19872         header.
19873         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
19874         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19875         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19876         * modules/sys_times (Depends-on): Add include_next.
19877         (Makefile.am): Substitute additional values.
19878         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19879         * lib/sys_times.in.h (includes): Include native header, if
19880         available.
19881         * lib/sys_utsname.in.h (includes): Likewise.
19882         * tests/test-sys_times.c (main): Enhance test.
19883
19884         fdutimensat: revert prior patch
19885         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
19886         utimens.h.
19887         Reported by Bruno Haible.
19888
19889 2009-12-30  Eric Blake  <ebb9@byu.net>
19890
19891         sys_wait: drop link-warning dependency
19892         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
19893         link-warning efforts.
19894         * lib/sys_wait.in.h: Likewise.
19895
19896         fdutimensat: remove bogus dependency
19897         * modules/fdutimensat (Depends-on): Drop inline.
19898
19899         unistd: fix typo
19900         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
19901
19902 2009-12-30  Bruno Haible  <bruno@clisp.org>
19903
19904         Fix compilation error with Solaris cc.
19905         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
19906         * lib/unicase/u16-is-invariant.c: Likewise.
19907         * lib/unicase/u32-is-invariant.c: Likewise.
19908         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19909
19910 2009-12-30  Bruno Haible  <bruno@clisp.org>
19911
19912         Fix test crash.
19913         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
19914         locales.
19915         Reported by Simon Josefsson <simon@josefsson.org>.
19916
19917 2009-12-30  Bruno Haible  <bruno@clisp.org>
19918
19919         Fix compilation error on most platforms.
19920         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
19921         Reported by Simon Josefsson <simon@josefsson.org>
19922         and Nelson H. F. Beebe <beebe@math.utah.edu>.
19923
19924 2009-12-30  Eric Blake  <ebb9@byu.net>
19925
19926         futimens, utimensat: work around ntfs-3g bug
19927         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
19928         a ctime bug is present, and expand workaround to cover ntfs-3g.
19929         * lib/utimens.c (fdutimens, lutimens): Likewise.
19930         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
19931         (validate_timespec): Adjust return value.
19932         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
19933         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19934         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
19935
19936 2009-12-29  Eric Blake  <ebb9@byu.net>
19937
19938         link-warning: make usage consistent
19939         * modules/ctype (Depends-on): Add link-warning.
19940         (Makefile.am): Update rules accordingly.
19941         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19942         * modules/locale (Depends-on, Makefile.am): Likewise.
19943         * modules/sys_file (Makefile.am): Likewise.
19944         * modules/getopt-posix (Makefile.am): Delete unused link warning
19945         efforts.
19946         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
19947         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
19948         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
19949         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
19950
19951         stdio: remove unused variables
19952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
19953         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
19954         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19955
19956         tests: test more substitute headers
19957         * modules/ctype-tests: New file.
19958         * modules/dirent-tests: Likewise.
19959         * modules/spawn-tests: Likewise.
19960         * modules/sys_file-tests: Likewise.
19961         * modules/sys_ioctl-tests: Likewise.
19962         * modules/sys_wait-tests: Likewise.
19963         * tests/test-ctype.c: Likewise.
19964         * tests/test-dirent.c: Likewise.
19965         * tests/test-spawn.c: Likewise.
19966         * tests/test-sys_file.c: Likewise.
19967         * tests/test-sys_ioctl.c: Likewise.
19968         * tests/test-sys_wait.c: Likewise.
19969         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
19970         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
19971         whether or not flock is in use.
19972
19973         tests: remove License section from module
19974         * modules/arpa_inet-tests: Remove unneeded section.
19975         * modules/byteswap-tests: Likewise.
19976         * modules/ceilf-tests: Likewise.
19977         * modules/ceill-tests: Likewise.
19978         * modules/crypto/des-tests: Likewise.
19979         * modules/crypto/gc-arcfour-tests: Likewise.
19980         * modules/crypto/gc-arctwo-tests: Likewise.
19981         * modules/crypto/gc-des-tests: Likewise.
19982         * modules/crypto/gc-hmac-md5-tests: Likewise.
19983         * modules/crypto/gc-hmac-sha1-tests: Likewise.
19984         * modules/crypto/gc-md2-tests: Likewise.
19985         * modules/crypto/gc-md4-tests: Likewise.
19986         * modules/crypto/gc-md5-tests: Likewise.
19987         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
19988         * modules/crypto/gc-rijndael-tests: Likewise.
19989         * modules/crypto/gc-sha1-tests: Likewise.
19990         * modules/crypto/gc-tests: Likewise.
19991         * modules/crypto/md2-tests: Likewise.
19992         * modules/crypto/md4-tests: Likewise.
19993         * modules/fcntl-h-tests: Likewise.
19994         * modules/floorf-tests: Likewise.
19995         * modules/floorl-tests: Likewise.
19996         * modules/frexp-nolibm-tests: Likewise.
19997         * modules/frexp-tests: Likewise.
19998         * modules/frexpl-nolibm-tests: Likewise.
19999         * modules/frexpl-tests: Likewise.
20000         * modules/getaddrinfo-tests: Likewise.
20001         * modules/inttypes-tests: Likewise.
20002         * modules/isfinite-tests: Likewise.
20003         * modules/isinf-tests: Likewise.
20004         * modules/ldexpl-tests: Likewise.
20005         * modules/locale-tests: Likewise.
20006         * modules/math-tests: Likewise.
20007         * modules/netdb-tests: Likewise.
20008         * modules/netinet_in-tests: Likewise.
20009         * modules/printf-frexp-tests: Likewise.
20010         * modules/printf-frexpl-tests: Likewise.
20011         * modules/priv-set-tests: Likewise.
20012         * modules/random_r-tests: Likewise.
20013         * modules/round-tests: Likewise.
20014         * modules/roundf-tests: Likewise.
20015         * modules/roundl-tests: Likewise.
20016         * modules/search-tests: Likewise.
20017         * modules/select-tests: Likewise.
20018         * modules/signal-tests: Likewise.
20019         * modules/stdbool-tests: Likewise.
20020         * modules/stddef-tests: Likewise.
20021         * modules/stdint-tests: Likewise.
20022         * modules/stdio-tests: Likewise.
20023         * modules/stdlib-tests: Likewise.
20024         * modules/string-tests: Likewise.
20025         * modules/strings-tests: Likewise.
20026         * modules/sys_select-tests: Likewise.
20027         * modules/sys_socket-tests: Likewise.
20028         * modules/sys_stat-tests: Likewise.
20029         * modules/sys_time-tests: Likewise.
20030         * modules/sys_utsname-tests: Likewise.
20031         * modules/sysexits-tests: Likewise.
20032         * modules/time-tests: Likewise.
20033         * modules/trunc-tests: Likewise.
20034         * modules/truncf-tests: Likewise.
20035         * modules/truncl-tests: Likewise.
20036         * modules/tsearch-tests: Likewise.
20037         * modules/unistd-tests: Likewise.
20038         * modules/wchar-tests: Likewise.
20039         * modules/wctype-tests: Likewise.
20040
20041         tests: fix license on several tests
20042         * tests/test-des.c: Update to GPLv3+.
20043         * tests/test-flock.c: Likewise.
20044         * tests/test-fsync.c: Likewise.
20045         * tests/test-futimens.h: Likewise.
20046         * tests/test-gc-arcfour.c: Likewise.
20047         * tests/test-gc-arctwo.c: Likewise.
20048         * tests/test-gc-des.c: Likewise.
20049         * tests/test-gc-hmac-md5.c: Likewise.
20050         * tests/test-gc-hmac-sha1.c: Likewise.
20051         * tests/test-gc-md2.c: Likewise.
20052         * tests/test-gc-md4.c: Likewise.
20053         * tests/test-gc-md5.c: Likewise.
20054         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20055         * tests/test-gc-rijndael.c: Likewise.
20056         * tests/test-gc-sha1.c: Likewise.
20057         * tests/test-gc.c: Likewise.
20058         * tests/test-getcwd.c: Likewise.
20059         * tests/test-link.c: Likewise.
20060         * tests/test-link.h: Likewise.
20061         * tests/test-lutimens.h: Likewise.
20062         * tests/test-md2.c: Likewise.
20063         * tests/test-md4.c: Likewise.
20064         * tests/test-mkdir.h: Likewise.
20065         * tests/test-rename.c: Likewise.
20066         * tests/test-rename.h: Likewise.
20067         * tests/test-safe-alloc.c: Likewise.
20068         * tests/test-utimens-common.h: Likewise.
20069         * tests/test-utimens.h: Likewise.
20070
20071         maint: sync license texts
20072         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
20073         * doc/gpl-3.0.texi: Revert copyright year update.
20074         * doc/lgpl-3.0.texi: Likewise.
20075
20076 2009-12-29  Jim Meyering  <meyering@redhat.com>
20077
20078         update nearly all FSF copyright year lists to include 2009
20079         The files named by the following are exempted:
20080             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
20081               test -f "$dst" && { echo "$dst"; continue; }
20082               test -d "$dst" || continue
20083               echo "$dst"/$(basename "$src")
20084             done > exempt
20085             git ls-files tests/unictype >> exempt
20086         In the remaining files, convert to all-interval notation if
20087         - there is already at least one year interval like 2000-2003
20088         - the file is maintained by me
20089         - the file is in lib/uni*/, where that style already prevails
20090         Otherwise, use update-copyright's default.
20091
20092 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20093         and Eric Blake  <ebb9@byu.net>
20094
20095         tests: don't require debug system() to pass
20096         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
20097         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20098         * tests/test-unlink.h (test_unlink_func): Likewise.
20099         * tests/test-fstatat.c (main): ...into callers.
20100         * tests/test-lstat.c (main): Likewise.
20101         * tests/test-rmdir.c (main): Likewise.
20102         * tests/test-unlink.c (main): Likewise.
20103         * tests/test-unlinkat.c (main): Likewise.
20104         * tests/test-areadlink-with-size.c (main): Don't require a
20105         debug-only system call to pass, aiding cross-testing to mingw.
20106         * tests/test-areadlink.c (main): Likewise.
20107         * tests/test-areadlinkat-with-size.c (main): Likewise.
20108         * tests/test-areadlinkat.c (main): Likewise.
20109         * tests/test-canonicalize-lgpl.c (main): Likewise.
20110         * tests/test-canonicalize.c (main): Likewise.
20111         * tests/test-chown.c (main): Likewise.
20112         * tests/test-fchownat.c (main): Likewise.
20113         * tests/test-lchown.c (main): Likewise.
20114         * tests/test-fdutimensat.c (main): Likewise.
20115         * tests/test-futimens.c (main): Likewise.
20116         * tests/test-link.c (main): Likewise.
20117         * tests/test-linkat.c (main): Likewise.
20118         * tests/test-mkdir.c (main): Likewise.
20119         * tests/test-mkdirat.c (main): Likewise.
20120         * tests/test-mkfifo.c (main): Likewise.
20121         * tests/test-mkfifoat.c (main): Likewise.
20122         * tests/test-mknod.c (main): Likewise.
20123         * tests/test-readlink.c (main): Likewise.
20124         * tests/test-remove.c (main): Likewise.
20125         * tests/test-rename.c (main): Likewise.
20126         * tests/test-renameat.c (main): Likewise.
20127         * tests/test-symlink.c (main): Likewise.
20128         * tests/test-symlinkat.c (main): Likewise.
20129         * tests/test-utimens.c (main): Likewise.
20130         * tests/test-utimensat.c (main): Likewise.
20131
20132 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20133
20134         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
20135         on $(UNUSED_PARAMETER_H) to avoid build failure.
20136
20137 2009-12-28  Jim Meyering  <meyering@redhat.com>
20138
20139         update-copyright: you may specify a max. line length other than 72
20140         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20141
20142         maint: use consistent FSF copyright line syntax
20143         * lib/posixtm.c: Add missing comma in FSF copyright line.
20144         * lib/posixtm.h: Likewise.
20145         * lib/getugroups.c: Add missing ", Inc.".
20146
20147         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
20148         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
20149         FSF copyright line.  Remove trailing blanks.
20150
20151 2009-12-28  Eric Blake  <ebb9@byu.net>
20152
20153         test-dup2: reduce dependencies
20154         * modules/cloexec (Configure.ac): Set witness.
20155         * modules/dup2-tests (Depends-on): Drop cloexec.
20156         * tests/test-dup2.c (main): Skip portion of test if cloexec module
20157         not present.
20158         Suggested by Bruno Haible.
20159
20160 2009-12-26  Bruno Haible  <bruno@clisp.org>
20161
20162         Remove an unneeded dependency.
20163         * modules/fseterr (Depends-on): Remove dup2.
20164
20165 2009-12-26  Eric Blake  <ebb9@byu.net>
20166
20167         tests: use macros.h in more places
20168         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
20169         (ASSERT_STREAM): Provide default of stderr.
20170         * tests/test-dirent-safer.c: Include macros.h, using alternate
20171         stream for assertions.
20172         * tests/test-dup-safer.c: Likewise.
20173         * tests/test-freopen-safer.c: Likewise.
20174         * tests/test-getopt.c: Likewise.
20175         * tests/test-openat-safer.c: Likewise.
20176         * tests/test-pipe.c: Likewise.
20177         * tests/test-popen-safer.c: Likewise.
20178         * modules/dirent-safer-tests (Files): Include macros.h.
20179         * modules/unistd-safer-tests (Files): Likewise.
20180         * modules/freopen-safer-tests (Files): Likewise.
20181         * modules/getopt-posix-tests (Files): Likewise.
20182         * modules/openat-safer-tests (Files): Likewise.
20183         * modules/pipe-tests (Files): Likewise.
20184
20185 2009-12-26  Bruno Haible  <bruno@clisp.org>
20186
20187         javacomp: Portability fix.
20188         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
20189         that it also works on Solaris.
20190
20191 2009-12-26  Bruno Haible  <bruno@clisp.org>
20192
20193         localename: Fix storage allocation of gl_locale_name_thread's result.
20194         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
20195         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
20196         all platforms that have 'uselocale'.
20197         (gl_locale_name_thread_unsafe): New function, extracted from
20198         gl_locale_name_thread.
20199         (gl_locale_name_thread): Call struniq on all platforms that have
20200         'uselocale'.
20201         * tests/test-localename.c (test_locale_name_thread): Check that the
20202         resulting strings are permanently allocated.
20203         * modules/localename-tests (Depends-on): Add strdup.
20204
20205 2009-12-26  Bruno Haible  <bruno@clisp.org>
20206
20207         * tests/test-localename.c (categories): Fill in the strings.
20208
20209 2009-12-26  Jim Meyering  <meyering@redhat.com>
20210
20211         isdir: complete the removal of m4/isdir.m4
20212         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
20213
20214         isdir: clean up, since at least grep still uses it
20215         * lib/isdir.c: Include "isdir.h".
20216         (S_ISDIR): Remove now-unneeded definition.
20217         * modules/isdir (Files): Add lib/isdir.h.
20218         * lib/isdir.h: New file, with declaration.
20219         * m4/isdir.m4: Remove file -- unneeded.
20220
20221 2009-12-25  Bruno Haible  <bruno@clisp.org>
20222
20223         selinux-h: Make generated .h files standalone.
20224         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
20225         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
20226         * lib/se-selinux.in.h: Likewise.
20227         * modules/selinux-h (Depends-on): Add unused-parameter.
20228         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
20229         selinux/selinux.h and selinux/context.h.
20230         Suggested by Eric Blake.
20231
20232 2009-12-25  Bruno Haible  <bruno@clisp.org>
20233
20234         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
20235         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
20236         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
20237         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
20238         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
20239
20240 2009-12-24  Bruno Haible  <bruno@clisp.org>
20241
20242         openat: Fix warning.
20243         * lib/openat-proc.c: Include <unistd.h>.
20244
20245 2009-12-24  Bruno Haible  <bruno@clisp.org>
20246
20247         New module 'unused-parameter'.
20248         * build-aux/unused-parameter.h: New file, extracted from earlier
20249         gnulib-common.m4.
20250         * modules/unused-parameter: New file.
20251         * lib/unistr.h: Include unused-parameter.h.
20252         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
20253         _GL_UNUSED.
20254         * modules/unistr/base (Depends-on): Add unused-parameter.
20255
20256 2009-12-24  Bruno Haible  <bruno@clisp.org>
20257
20258         Add missing dependencies to 'extensions' module.
20259         * m4/extensions.m4: Add comment.
20260         * modules/accept4 (Depends-on): Add extensions.
20261         * modules/dup3 (Depends-on): Likewise.
20262         * modules/fcntl (Depends-on): Likewise.
20263         * modules/futimens (Depends-on): Likewise.
20264         * modules/mknod (Depends-on): Likewise.
20265         * modules/pipe2 (Depends-on): Likewise.
20266         * modules/stat-time (Depends-on): Likewise.
20267         * modules/strcasestr-simple (Depends-on): Likewise.
20268         * modules/strsignal (Depends-on): Likewise.
20269         * modules/utimensat (Depends-on): Likewise.
20270         * modules/localcharset (Depends-on): Likewise. Needed because of
20271         gl_FCNTL_O_FLAGS.
20272         * modules/wcrtomb (Depends-on): Likewise. Needed because of
20273         AC_TYPE_MBSTATE_T.
20274         * modules/wcsnrtombs (Depends-on): Likewise.
20275         * modules/wcsrtombs (Depends-on): Likewise.
20276
20277 2009-12-24  Bruno Haible  <bruno@clisp.org>
20278
20279         binary-io: Avoid gcc warning due to SET_BINARY.
20280         * lib/binary-io.h (SET_BINARY): Cast the result to void.
20281         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
20282
20283 2009-12-24  Bruno Haible  <bruno@clisp.org>
20284
20285         Avoid future namespace pollution on glibc systems.
20286         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
20287         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
20288         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
20289         glibc systems.
20290
20291 2009-12-24  Bruno Haible  <bruno@clisp.org>
20292
20293         Refactor common macros used in tests.
20294         * tests/macros.h: New file.
20295         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
20296         and/or <stdlib.h>, if appropriate.
20297         (ASSERT, SIZEOF): Remove macros.
20298         * tests/test-areadlink-with-size.c: Likewise.
20299         * tests/test-areadlinkat.c: Likewise.
20300         * tests/test-areadlinkat-with-size.c: Likewise.
20301         * tests/test-argmatch.c: Likewise.
20302         * tests/test-argv-iter.c: Likewise.
20303         * tests/test-array-mergesort.c: Likewise.
20304         * tests/test-array_list.c: Likewise.
20305         * tests/test-array_oset.c: Likewise.
20306         * tests/test-avltree_list.c: Likewise.
20307         * tests/test-avltree_oset.c: Likewise.
20308         * tests/test-avltreehash_list.c: Likewise.
20309         * tests/test-base64.c: Likewise.
20310         * tests/test-binary-io.c: Likewise.
20311         * tests/test-bitrotate.c: Likewise.
20312         * tests/test-btowc.c: Likewise.
20313         * tests/test-byteswap.c: Likewise.
20314         * tests/test-c-ctype.c: Likewise.
20315         * tests/test-c-stack.c: Likewise.
20316         * tests/test-c-strcasecmp.c: Likewise.
20317         * tests/test-c-strcasestr.c: Likewise.
20318         * tests/test-c-strncasecmp.c: Likewise.
20319         * tests/test-c-strstr.c: Likewise.
20320         * tests/test-canonicalize-lgpl.c: Likewise.
20321         * tests/test-canonicalize.c: Likewise.
20322         * tests/test-carray_list.c: Likewise.
20323         * tests/test-ceilf1.c: Likewise.
20324         * tests/test-ceilf2.c: Likewise.
20325         * tests/test-ceill.c: Likewise.
20326         * tests/test-chown.c: Likewise.
20327         * tests/test-cloexec.c: Likewise.
20328         * tests/test-copy-acl.c: Likewise.
20329         * tests/test-copy-file.c: Likewise.
20330         * tests/test-count-one-bits.c: Likewise.
20331         * tests/test-dprintf-posix.c: Likewise.
20332         * tests/test-dup2.c: Likewise.
20333         * tests/test-dup3.c: Likewise.
20334         * tests/test-duplocale.c: Likewise.
20335         * tests/test-fbufmode.c: Likewise.
20336         * tests/test-fchdir.c: Likewise.
20337         * tests/test-fchownat.c: Likewise.
20338         * tests/test-fcntl-safer.c: Likewise.
20339         * tests/test-fcntl.c: Likewise.
20340         * tests/test-fdopendir.c: Likewise.
20341         * tests/test-fdutimensat.c: Likewise.
20342         * tests/test-fflush2.c: Likewise.
20343         * tests/test-file-has-acl.c: Likewise.
20344         * tests/test-filevercmp.c: Likewise.
20345         * tests/test-flock.c: Likewise.
20346         * tests/test-floorf1.c: Likewise.
20347         * tests/test-floorf2.c: Likewise.
20348         * tests/test-floorl.c: Likewise.
20349         * tests/test-fnmatch.c: Likewise.
20350         * tests/test-fopen.h: Likewise.
20351         * tests/test-fpending.c: Likewise.
20352         * tests/test-fprintf-posix.c: Likewise.
20353         * tests/test-fpurge.c: Likewise.
20354         * tests/test-freadable.c: Likewise.
20355         * tests/test-freadahead.c: Likewise.
20356         * tests/test-freading.c: Likewise.
20357         * tests/test-freadptr.c: Likewise.
20358         * tests/test-freadptr2.c: Likewise.
20359         * tests/test-freadseek.c: Likewise.
20360         * tests/test-freopen.c: Likewise.
20361         * tests/test-frexp.c: Likewise.
20362         * tests/test-frexpl.c: Likewise.
20363         * tests/test-fseek.c: Likewise.
20364         * tests/test-fseeko.c: Likewise.
20365         * tests/test-fstatat.c: Likewise.
20366         * tests/test-fstrcmp.c: Likewise.
20367         * tests/test-fsync.c: Likewise.
20368         * tests/test-ftell.c: Likewise.
20369         * tests/test-ftello.c: Likewise.
20370         * tests/test-func.c: Likewise.
20371         * tests/test-futimens.c: Likewise.
20372         * tests/test-fwritable.c: Likewise.
20373         * tests/test-fwriting.c: Likewise.
20374         * tests/test-getcwd.c: Likewise.
20375         * tests/test-getdate.c: Likewise.
20376         * tests/test-getdelim.c: Likewise.
20377         * tests/test-getdtablesize.c: Likewise.
20378         * tests/test-getgroups.c: Likewise.
20379         * tests/test-getline.c: Likewise.
20380         * tests/test-getndelim2.c: Likewise.
20381         * tests/test-glob.c: Likewise.
20382         * tests/test-hash.c: Likewise.
20383         * tests/test-i-ring.c: Likewise.
20384         * tests/test-iconv-utf.c: Likewise.
20385         * tests/test-iconv.c: Likewise.
20386         * tests/test-idpriv-drop.c: Likewise.
20387         * tests/test-idpriv-droptemp.c: Likewise.
20388         * tests/test-inet_ntop.c: Likewise.
20389         * tests/test-inet_pton.c: Likewise.
20390         * tests/test-isblank.c: Likewise.
20391         * tests/test-isfinite.c: Likewise.
20392         * tests/test-isinf.c: Likewise.
20393         * tests/test-isnan.c: Likewise.
20394         * tests/test-isnand.h: Likewise.
20395         * tests/test-isnanf.h: Likewise.
20396         * tests/test-isnanl.h: Likewise.
20397         * tests/test-lchown.c: Likewise.
20398         * tests/test-ldexpl.c: Likewise.
20399         * tests/test-link.c: Likewise.
20400         * tests/test-linkat.c: Likewise.
20401         * tests/test-linked_list.c: Likewise.
20402         * tests/test-linkedhash_list.c: Likewise.
20403         * tests/test-localename.c: Likewise.
20404         * tests/test-lseek.c: Likewise.
20405         * tests/test-lstat.c: Likewise.
20406         * tests/test-mbmemcasecmp.c: Likewise.
20407         * tests/test-mbmemcasecoll.c: Likewise.
20408         * tests/test-mbrtowc.c: Likewise.
20409         * tests/test-mbscasecmp.c: Likewise.
20410         * tests/test-mbscasestr1.c: Likewise.
20411         * tests/test-mbscasestr2.c: Likewise.
20412         * tests/test-mbscasestr3.c: Likewise.
20413         * tests/test-mbscasestr4.c: Likewise.
20414         * tests/test-mbschr.c: Likewise.
20415         * tests/test-mbscspn.c: Likewise.
20416         * tests/test-mbsinit.c: Likewise.
20417         * tests/test-mbsncasecmp.c: Likewise.
20418         * tests/test-mbsnrtowcs.c: Likewise.
20419         * tests/test-mbspbrk.c: Likewise.
20420         * tests/test-mbspcasecmp.c: Likewise.
20421         * tests/test-mbsrchr.c: Likewise.
20422         * tests/test-mbsrtowcs.c: Likewise.
20423         * tests/test-mbsspn.c: Likewise.
20424         * tests/test-mbsstr1.c: Likewise.
20425         * tests/test-mbsstr2.c: Likewise.
20426         * tests/test-mbsstr3.c: Likewise.
20427         * tests/test-memchr.c: Likewise.
20428         * tests/test-memchr2.c: Likewise.
20429         * tests/test-memcmp.c: Likewise.
20430         * tests/test-memmem.c: Likewise.
20431         * tests/test-memrchr.c: Likewise.
20432         * tests/test-mkdir.c: Likewise.
20433         * tests/test-mkdirat.c: Likewise.
20434         * tests/test-mkfifo.c: Likewise.
20435         * tests/test-mkfifoat.c: Likewise.
20436         * tests/test-mknod.c: Likewise.
20437         * tests/test-nanosleep.c: Likewise.
20438         * tests/test-nl_langinfo.c: Likewise.
20439         * tests/test-obstack-printf.c: Likewise.
20440         * tests/test-open.c: Likewise.
20441         * tests/test-openat.c: Likewise.
20442         * tests/test-pipe-filter-gi1.c: Likewise.
20443         * tests/test-pipe-filter-gi2-main.c: Likewise.
20444         * tests/test-pipe-filter-ii1.c: Likewise.
20445         * tests/test-pipe-filter-ii2-main.c: Likewise.
20446         * tests/test-pipe2.c: Likewise.
20447         * tests/test-popen.h: Likewise.
20448         * tests/test-posixtm.c: Likewise.
20449         * tests/test-pread.c: Likewise.
20450         * tests/test-printf-frexp.c: Likewise.
20451         * tests/test-printf-frexpl.c: Likewise.
20452         * tests/test-printf-posix.c: Likewise.
20453         * tests/test-priv-set.c: Likewise.
20454         * tests/test-quotearg.c: Likewise.
20455         * tests/test-random_r.c: Likewise.
20456         * tests/test-rawmemchr.c: Likewise.
20457         * tests/test-rbtree_list.c: Likewise.
20458         * tests/test-rbtree_oset.c: Likewise.
20459         * tests/test-rbtreehash_list.c: Likewise.
20460         * tests/test-readlink.c: Likewise.
20461         * tests/test-remove.c: Likewise.
20462         * tests/test-rename.c: Likewise.
20463         * tests/test-renameat.c: Likewise.
20464         * tests/test-rmdir.c: Likewise.
20465         * tests/test-round1.c: Likewise.
20466         * tests/test-roundf1.c: Likewise.
20467         * tests/test-roundl.c: Likewise.
20468         * tests/test-safe-alloc.c: Likewise.
20469         * tests/test-sameacls.c: Likewise.
20470         * tests/test-set-mode-acl.c: Likewise.
20471         * tests/test-setenv.c: Likewise.
20472         * tests/test-sigaction.c: Likewise.
20473         * tests/test-signbit.c: Likewise.
20474         * tests/test-sleep.c: Likewise.
20475         * tests/test-snprintf-posix.c: Likewise.
20476         * tests/test-snprintf.c: Likewise.
20477         * tests/test-sprintf-posix.c: Likewise.
20478         * tests/test-stat-time.c: Likewise.
20479         * tests/test-stat.c: Likewise.
20480         * tests/test-strcasestr.c: Likewise.
20481         * tests/test-strchrnul.c: Likewise.
20482         * tests/test-strerror.c: Likewise.
20483         * tests/test-striconv.c: Likewise.
20484         * tests/test-striconveh.c: Likewise.
20485         * tests/test-striconveha.c: Likewise.
20486         * tests/test-strsignal.c: Likewise.
20487         * tests/test-strstr.c: Likewise.
20488         * tests/test-strtod.c: Likewise.
20489         * tests/test-strverscmp.c: Likewise.
20490         * tests/test-symlink.c: Likewise.
20491         * tests/test-symlinkat.c: Likewise.
20492         * tests/test-trunc1.c: Likewise.
20493         * tests/test-trunc2.c: Likewise.
20494         * tests/test-truncf1.c: Likewise.
20495         * tests/test-truncf2.c: Likewise.
20496         * tests/test-truncl.c: Likewise.
20497         * tests/test-uname.c: Likewise.
20498         * tests/test-unlink.c: Likewise.
20499         * tests/test-unlinkat.c: Likewise.
20500         * tests/test-unsetenv.c: Likewise.
20501         * tests/test-usleep.c: Likewise.
20502         * tests/test-utimens.c: Likewise.
20503         * tests/test-utimensat.c: Likewise.
20504         * tests/test-vasnprintf-posix.c: Likewise.
20505         * tests/test-vasnprintf-posix2.c: Likewise.
20506         * tests/test-vasnprintf.c: Likewise.
20507         * tests/test-vasprintf-posix.c: Likewise.
20508         * tests/test-vasprintf.c: Likewise.
20509         * tests/test-vdprintf-posix.c: Likewise.
20510         * tests/test-vfprintf-posix.c: Likewise.
20511         * tests/test-vprintf-posix.c: Likewise.
20512         * tests/test-vsnprintf-posix.c: Likewise.
20513         * tests/test-vsnprintf.c: Likewise.
20514         * tests/test-vsprintf-posix.c: Likewise.
20515         * tests/test-wcrtomb.c: Likewise.
20516         * tests/test-wcsnrtombs.c: Likewise.
20517         * tests/test-wcsrtombs.c: Likewise.
20518         * tests/test-wctype.c: Likewise.
20519         * tests/test-wcwidth.c: Likewise.
20520         * tests/test-xfprintf-posix.c: Likewise.
20521         * tests/test-xmemdup0.c: Likewise.
20522         * tests/test-xprintf-posix.c: Likewise.
20523         * tests/test-xvasprintf.c: Likewise.
20524         * tests/unicase/test-locale-language.c: Likewise.
20525         * tests/unicase/test-mapping-part1.h: Likewise.
20526         * tests/unicase/test-predicate-part1.h: Likewise.
20527         * tests/unicase/test-u8-casecmp.c: Likewise.
20528         * tests/unicase/test-u8-casecoll.c: Likewise.
20529         * tests/unicase/test-u8-casefold.c: Likewise.
20530         * tests/unicase/test-u8-is-cased.c: Likewise.
20531         * tests/unicase/test-u8-is-casefolded.c: Likewise.
20532         * tests/unicase/test-u8-is-lowercase.c: Likewise.
20533         * tests/unicase/test-u8-is-titlecase.c: Likewise.
20534         * tests/unicase/test-u8-is-uppercase.c: Likewise.
20535         * tests/unicase/test-u8-tolower.c: Likewise.
20536         * tests/unicase/test-u8-totitle.c: Likewise.
20537         * tests/unicase/test-u8-toupper.c: Likewise.
20538         * tests/unicase/test-u16-casecmp.c: Likewise.
20539         * tests/unicase/test-u16-casecoll.c: Likewise.
20540         * tests/unicase/test-u16-casefold.c: Likewise.
20541         * tests/unicase/test-u16-is-cased.c: Likewise.
20542         * tests/unicase/test-u16-is-casefolded.c: Likewise.
20543         * tests/unicase/test-u16-is-lowercase.c: Likewise.
20544         * tests/unicase/test-u16-is-titlecase.c: Likewise.
20545         * tests/unicase/test-u16-is-uppercase.c: Likewise.
20546         * tests/unicase/test-u16-tolower.c: Likewise.
20547         * tests/unicase/test-u16-totitle.c: Likewise.
20548         * tests/unicase/test-u16-toupper.c: Likewise.
20549         * tests/unicase/test-u32-casecmp.c: Likewise.
20550         * tests/unicase/test-u32-casecoll.c: Likewise.
20551         * tests/unicase/test-u32-casefold.c: Likewise.
20552         * tests/unicase/test-u32-is-cased.c: Likewise.
20553         * tests/unicase/test-u32-is-casefolded.c: Likewise.
20554         * tests/unicase/test-u32-is-lowercase.c: Likewise.
20555         * tests/unicase/test-u32-is-titlecase.c: Likewise.
20556         * tests/unicase/test-u32-is-uppercase.c: Likewise.
20557         * tests/unicase/test-u32-tolower.c: Likewise.
20558         * tests/unicase/test-u32-totitle.c: Likewise.
20559         * tests/unicase/test-u32-toupper.c: Likewise.
20560         * tests/unicase/test-ulc-casecmp.c: Likewise.
20561         * tests/unicase/test-ulc-casecoll.c: Likewise.
20562         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20563         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20564         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20565         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20566         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20567         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20568         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20569         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20570         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20571         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20572         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20573         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20574         * tests/unictype/test-bidi_byname.c: Likewise.
20575         * tests/unictype/test-bidi_name.c: Likewise.
20576         * tests/unictype/test-bidi_of.c: Likewise.
20577         * tests/unictype/test-bidi_test.c: Likewise.
20578         * tests/unictype/test-block_list.c: Likewise.
20579         * tests/unictype/test-block_of.c: Likewise.
20580         * tests/unictype/test-block_test.c: Likewise.
20581         * tests/unictype/test-categ_and.c: Likewise.
20582         * tests/unictype/test-categ_and_not.c: Likewise.
20583         * tests/unictype/test-categ_byname.c: Likewise.
20584         * tests/unictype/test-categ_name.c: Likewise.
20585         * tests/unictype/test-categ_none.c: Likewise.
20586         * tests/unictype/test-categ_of.c: Likewise.
20587         * tests/unictype/test-categ_or.c: Likewise.
20588         * tests/unictype/test-categ_test_withtable.c: Likewise.
20589         * tests/unictype/test-combining.c: Likewise.
20590         * tests/unictype/test-decdigit.c: Likewise.
20591         * tests/unictype/test-digit.c: Likewise.
20592         * tests/unictype/test-mirror.c: Likewise.
20593         * tests/unictype/test-numeric.c: Likewise.
20594         * tests/unictype/test-pr_byname.c: Likewise.
20595         * tests/unictype/test-pr_test.c: Likewise.
20596         * tests/unictype/test-predicate-part1.h: Likewise.
20597         * tests/unictype/test-scripts.c: Likewise.
20598         * tests/unictype/test-sy_c_ident.c: Likewise.
20599         * tests/unictype/test-sy_java_ident.c: Likewise.
20600         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
20601         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
20602         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
20603         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
20604         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
20605         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
20606         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
20607         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
20608         * tests/uninorm/test-canonical-decomposition.c: Likewise.
20609         * tests/uninorm/test-compat-decomposition.c: Likewise.
20610         * tests/uninorm/test-composition.c: Likewise.
20611         * tests/uninorm/test-decomposing-form.c: Likewise.
20612         * tests/uninorm/test-decomposition.c: Likewise.
20613         * tests/uninorm/test-u8-nfc.c: Likewise.
20614         * tests/uninorm/test-u8-nfd.c: Likewise.
20615         * tests/uninorm/test-u8-nfkc.c: Likewise.
20616         * tests/uninorm/test-u8-nfkd.c: Likewise.
20617         * tests/uninorm/test-u8-normcmp.c: Likewise.
20618         * tests/uninorm/test-u8-normcoll.c: Likewise.
20619         * tests/uninorm/test-u16-nfc.c: Likewise.
20620         * tests/uninorm/test-u16-nfd.c: Likewise.
20621         * tests/uninorm/test-u16-nfkc.c: Likewise.
20622         * tests/uninorm/test-u16-nfkd.c: Likewise.
20623         * tests/uninorm/test-u16-normcmp.c: Likewise.
20624         * tests/uninorm/test-u16-normcoll.c: Likewise.
20625         * tests/uninorm/test-u32-nfc.c: Likewise.
20626         * tests/uninorm/test-u32-nfd.c: Likewise.
20627         * tests/uninorm/test-u32-nfkc.c: Likewise.
20628         * tests/uninorm/test-u32-nfkd.c: Likewise.
20629         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20630         * tests/uninorm/test-u32-normcmp.c: Likewise.
20631         * tests/uninorm/test-u32-normcoll.c: Likewise.
20632         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
20633         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20634         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20635         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20636         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20637         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20638         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20639         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20640         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20641         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20642         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20643         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20644         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20645         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20646         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20647         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20648         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20649         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20650         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20651         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20652         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20653         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20654         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20655         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20656         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20657         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20658         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20659         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20660         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20661         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
20662         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
20663         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
20664         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
20665         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20666         * tests/uniwidth/test-u8-width.c: Likewise.
20667         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20668         * tests/uniwidth/test-u16-width.c: Likewise.
20669         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20670         * tests/uniwidth/test-u32-width.c: Likewise.
20671         * tests/uniwidth/test-uc_width.c: Likewise.
20672         * tests/uniwidth/test-uc_width2.c: Likewise.
20673         * modules/acl-tests (Files): Add tests/macros.h.
20674         * modules/areadlink-tests (Files): Likewise.
20675         * modules/areadlink-with-size-tests (Files): Likewise.
20676         * modules/areadlinkat-tests (Files): Likewise.
20677         * modules/areadlinkat-with-size-tests (Files): Likewise.
20678         * modules/argmatch-tests (Files): Likewise.
20679         * modules/argv-iter-tests (Files): Likewise.
20680         * modules/array-list-tests (Files): Likewise.
20681         * modules/array-mergesort-tests (Files): Likewise.
20682         * modules/array-oset-tests (Files): Likewise.
20683         * modules/avltree-list-tests (Files): Likewise.
20684         * modules/avltree-oset-tests (Files): Likewise.
20685         * modules/avltreehash-list-tests (Files): Likewise.
20686         * modules/base64-tests (Files): Likewise.
20687         * modules/binary-io-tests (Files): Likewise.
20688         * modules/bitrotate-tests (Files): Likewise.
20689         * modules/btowc-tests (Files): Likewise.
20690         * modules/byteswap-tests (Files): Likewise.
20691         * modules/c-ctype-tests (Files): Likewise.
20692         * modules/c-stack-tests (Files): Likewise.
20693         * modules/c-strcase-tests (Files): Likewise.
20694         * modules/c-strcasestr-tests (Files): Likewise.
20695         * modules/c-strstr-tests (Files): Likewise.
20696         * modules/canonicalize-lgpl-tests (Files): Likewise.
20697         * modules/canonicalize-tests (Files): Likewise.
20698         * modules/carray-list-tests (Files): Likewise.
20699         * modules/ceilf-tests (Files): Likewise.
20700         * modules/ceill-tests (Files): Likewise.
20701         * modules/chown-tests (Files): Likewise.
20702         * modules/cloexec-tests (Files): Likewise.
20703         * modules/copy-file-tests (Files): Likewise.
20704         * modules/count-one-bits-tests (Files): Likewise.
20705         * modules/dprintf-posix-tests (Files): Likewise.
20706         * modules/dup2-tests (Files): Likewise.
20707         * modules/dup3-tests (Files): Likewise.
20708         * modules/duplocale-tests (Files): Likewise.
20709         * modules/fbufmode-tests (Files): Likewise.
20710         * modules/fchdir-tests (Files): Likewise.
20711         * modules/fcntl-safer-tests (Files): Likewise.
20712         * modules/fcntl-tests (Files): Likewise.
20713         * modules/fdopendir-tests (Files): Likewise.
20714         * modules/fdutimensat-tests (Files): Likewise.
20715         * modules/fflush-tests (Files): Likewise.
20716         * modules/filevercmp-tests (Files): Likewise.
20717         * modules/flock-tests (Files): Likewise.
20718         * modules/floorf-tests (Files): Likewise.
20719         * modules/floorl-tests (Files): Likewise.
20720         * modules/fnmatch-tests (Files): Likewise.
20721         * modules/fopen-safer-tests (Files): Likewise.
20722         * modules/fopen-tests (Files): Likewise.
20723         * modules/fpending-tests (Files): Likewise.
20724         * modules/fprintf-posix-tests (Files): Likewise.
20725         * modules/fpurge-tests (Files): Likewise.
20726         * modules/freadable-tests (Files): Likewise.
20727         * modules/freadahead-tests (Files): Likewise.
20728         * modules/freading-tests (Files): Likewise.
20729         * modules/freadptr-tests (Files): Likewise.
20730         * modules/freadseek-tests (Files): Likewise.
20731         * modules/freopen-tests (Files): Likewise.
20732         * modules/frexp-nolibm-tests (Files): Likewise.
20733         * modules/frexp-tests (Files): Likewise.
20734         * modules/frexpl-nolibm-tests (Files): Likewise.
20735         * modules/frexpl-tests (Files): Likewise.
20736         * modules/fseek-tests (Files): Likewise.
20737         * modules/fseeko-tests (Files): Likewise.
20738         * modules/fstrcmp-tests (Files): Likewise.
20739         * modules/fsync-tests (Files): Likewise.
20740         * modules/ftell-tests (Files): Likewise.
20741         * modules/ftello-tests (Files): Likewise.
20742         * modules/func-tests (Files): Likewise.
20743         * modules/futimens-tests (Files): Likewise.
20744         * modules/fwritable-tests (Files): Likewise.
20745         * modules/fwriting-tests (Files): Likewise.
20746         * modules/getcwd-tests (Files): Likewise.
20747         * modules/getdate-tests (Files): Likewise.
20748         * modules/getdelim-tests (Files): Likewise.
20749         * modules/getdtablesize-tests (Files): Likewise.
20750         * modules/getgroups-tests (Files): Likewise.
20751         * modules/getline-tests (Files): Likewise.
20752         * modules/getndelim2-tests (Files): Likewise.
20753         * modules/glob-tests (Files): Likewise.
20754         * modules/hash-tests (Files): Likewise.
20755         * modules/i-ring-tests (Files): Likewise.
20756         * modules/iconv-tests (Files): Likewise.
20757         * modules/iconv_open-utf-tests (Files): Likewise.
20758         * modules/idpriv-drop-tests (Files): Likewise.
20759         * modules/idpriv-droptemp-tests (Files): Likewise.
20760         * modules/inet_ntop-tests (Files): Likewise.
20761         * modules/inet_pton-tests (Files): Likewise.
20762         * modules/isblank-tests (Files): Likewise.
20763         * modules/isfinite-tests (Files): Likewise.
20764         * modules/isinf-tests (Files): Likewise.
20765         * modules/isnan-tests (Files): Likewise.
20766         * modules/isnand-nolibm-tests (Files): Likewise.
20767         * modules/isnand-tests (Files): Likewise.
20768         * modules/isnanf-nolibm-tests (Files): Likewise.
20769         * modules/isnanf-tests (Files): Likewise.
20770         * modules/isnanl-nolibm-tests (Files): Likewise.
20771         * modules/isnanl-tests (Files): Likewise.
20772         * modules/lchown-tests (Files): Likewise.
20773         * modules/ldexpl-tests (Files): Likewise.
20774         * modules/link-tests (Files): Likewise.
20775         * modules/linkat-tests (Files): Likewise.
20776         * modules/linked-list-tests (Files): Likewise.
20777         * modules/linkedhash-list-tests (Files): Likewise.
20778         * modules/localename-tests (Files): Likewise.
20779         * modules/lseek-tests (Files): Likewise.
20780         * modules/lstat-tests (Files): Likewise.
20781         * modules/mbmemcasecmp-tests (Files): Likewise.
20782         * modules/mbmemcasecoll-tests (Files): Likewise.
20783         * modules/mbrtowc-tests (Files): Likewise.
20784         * modules/mbscasecmp-tests (Files): Likewise.
20785         * modules/mbscasestr-tests (Files): Likewise.
20786         * modules/mbschr-tests (Files): Likewise.
20787         * modules/mbscspn-tests (Files): Likewise.
20788         * modules/mbsinit-tests (Files): Likewise.
20789         * modules/mbsncasecmp-tests (Files): Likewise.
20790         * modules/mbsnrtowcs-tests (Files): Likewise.
20791         * modules/mbspbrk-tests (Files): Likewise.
20792         * modules/mbspcasecmp-tests (Files): Likewise.
20793         * modules/mbsrchr-tests (Files): Likewise.
20794         * modules/mbsrtowcs-tests (Files): Likewise.
20795         * modules/mbsspn-tests (Files): Likewise.
20796         * modules/mbsstr-tests (Files): Likewise.
20797         * modules/memchr-tests (Files): Likewise.
20798         * modules/memchr2-tests (Files): Likewise.
20799         * modules/memcmp-tests (Files): Likewise.
20800         * modules/memmem-tests (Files): Likewise.
20801         * modules/memrchr-tests (Files): Likewise.
20802         * modules/mkdir-tests (Files): Likewise.
20803         * modules/mkfifo-tests (Files): Likewise.
20804         * modules/mkfifoat-tests (Files): Likewise.
20805         * modules/mknod-tests (Files): Likewise.
20806         * modules/nanosleep-tests (Files): Likewise.
20807         * modules/nl_langinfo-tests (Files): Likewise.
20808         * modules/obstack-printf-tests (Files): Likewise.
20809         * modules/open-tests (Files): Likewise.
20810         * modules/openat-tests (Files): Likewise.
20811         * modules/pipe-filter-gi-tests (Files): Likewise.
20812         * modules/pipe-filter-ii-tests (Files): Likewise.
20813         * modules/pipe2-tests (Files): Likewise.
20814         * modules/popen-safer-tests (Files): Likewise.
20815         * modules/popen-tests (Files): Likewise.
20816         * modules/posixtm-tests (Files): Likewise.
20817         * modules/pread-tests (Files): Likewise.
20818         * modules/printf-frexp-tests (Files): Likewise.
20819         * modules/printf-frexpl-tests (Files): Likewise.
20820         * modules/printf-posix-tests (Files): Likewise.
20821         * modules/priv-set-tests (Files): Likewise.
20822         * modules/quotearg-tests (Files): Likewise.
20823         * modules/random_r-tests (Files): Likewise.
20824         * modules/rawmemchr-tests (Files): Likewise.
20825         * modules/rbtree-list-tests (Files): Likewise.
20826         * modules/rbtree-oset-tests (Files): Likewise.
20827         * modules/rbtreehash-list-tests (Files): Likewise.
20828         * modules/readlink-tests (Files): Likewise.
20829         * modules/remove-tests (Files): Likewise.
20830         * modules/rename-tests (Files): Likewise.
20831         * modules/renameat-tests (Files): Likewise.
20832         * modules/rmdir-tests (Files): Likewise.
20833         * modules/round-tests (Files): Likewise.
20834         * modules/roundf-tests (Files): Likewise.
20835         * modules/roundl-tests (Files): Likewise.
20836         * modules/safe-alloc-tests (Files): Likewise.
20837         * modules/setenv-tests (Files): Likewise.
20838         * modules/sigaction-tests (Files): Likewise.
20839         * modules/signbit-tests (Files): Likewise.
20840         * modules/sleep-tests (Files): Likewise.
20841         * modules/snprintf-posix-tests (Files): Likewise.
20842         * modules/snprintf-tests (Files): Likewise.
20843         * modules/sprintf-posix-tests (Files): Likewise.
20844         * modules/stat-tests (Files): Likewise.
20845         * modules/stat-time-tests (Files): Likewise.
20846         * modules/strcasestr-tests (Files): Likewise.
20847         * modules/strchrnul-tests (Files): Likewise.
20848         * modules/strerror-tests (Files): Likewise.
20849         * modules/striconv-tests (Files): Likewise.
20850         * modules/striconveh-tests (Files): Likewise.
20851         * modules/striconveha-tests (Files): Likewise.
20852         * modules/strsignal-tests (Files): Likewise.
20853         * modules/strstr-tests (Files): Likewise.
20854         * modules/strtod-tests (Files): Likewise.
20855         * modules/strverscmp-tests (Files): Likewise.
20856         * modules/symlink-tests (Files): Likewise.
20857         * modules/symlinkat-tests (Files): Likewise.
20858         * modules/trunc-tests (Files): Likewise.
20859         * modules/truncf-tests (Files): Likewise.
20860         * modules/truncl-tests (Files): Likewise.
20861         * modules/uname-tests (Files): Likewise.
20862         * modules/unicase/cased-tests (Files): Likewise.
20863         * modules/unicase/ignorable-tests (Files): Likewise.
20864         * modules/unicase/locale-language-tests (Files): Likewise.
20865         * modules/unicase/tolower-tests (Files): Likewise.
20866         * modules/unicase/totitle-tests (Files): Likewise.
20867         * modules/unicase/toupper-tests (Files): Likewise.
20868         * modules/unicase/u8-casecmp-tests (Files): Likewise.
20869         * modules/unicase/u8-casecoll-tests (Files): Likewise.
20870         * modules/unicase/u8-casefold-tests (Files): Likewise.
20871         * modules/unicase/u8-is-cased-tests (Files): Likewise.
20872         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
20873         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
20874         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
20875         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
20876         * modules/unicase/u8-tolower-tests (Files): Likewise.
20877         * modules/unicase/u8-totitle-tests (Files): Likewise.
20878         * modules/unicase/u8-toupper-tests (Files): Likewise.
20879         * modules/unicase/u16-casecmp-tests (Files): Likewise.
20880         * modules/unicase/u16-casecoll-tests (Files): Likewise.
20881         * modules/unicase/u16-casefold-tests (Files): Likewise.
20882         * modules/unicase/u16-is-cased-tests (Files): Likewise.
20883         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
20884         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
20885         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
20886         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
20887         * modules/unicase/u16-tolower-tests (Files): Likewise.
20888         * modules/unicase/u16-totitle-tests (Files): Likewise.
20889         * modules/unicase/u16-toupper-tests (Files): Likewise.
20890         * modules/unicase/u32-casecmp-tests (Files): Likewise.
20891         * modules/unicase/u32-casecoll-tests (Files): Likewise.
20892         * modules/unicase/u32-casefold-tests (Files): Likewise.
20893         * modules/unicase/u32-is-cased-tests (Files): Likewise.
20894         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
20895         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
20896         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
20897         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
20898         * modules/unicase/u32-tolower-tests (Files): Likewise.
20899         * modules/unicase/u32-totitle-tests (Files): Likewise.
20900         * modules/unicase/u32-toupper-tests (Files): Likewise.
20901         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
20902         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
20903         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
20904         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
20905         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
20906         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
20907         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
20908         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
20909         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
20910         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
20911         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
20912         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
20913         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
20914         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
20915         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
20916         * modules/unictype/bidicategory-name-tests (Files): Likewise.
20917         * modules/unictype/bidicategory-of-tests (Files): Likewise.
20918         * modules/unictype/bidicategory-test-tests (Files): Likewise.
20919         * modules/unictype/block-list-tests (Files): Likewise.
20920         * modules/unictype/block-of-tests (Files): Likewise.
20921         * modules/unictype/block-test-tests (Files): Likewise.
20922         * modules/unictype/category-C-tests (Files): Likewise.
20923         * modules/unictype/category-Cc-tests (Files): Likewise.
20924         * modules/unictype/category-Cf-tests (Files): Likewise.
20925         * modules/unictype/category-Cn-tests (Files): Likewise.
20926         * modules/unictype/category-Co-tests (Files): Likewise.
20927         * modules/unictype/category-Cs-tests (Files): Likewise.
20928         * modules/unictype/category-L-tests (Files): Likewise.
20929         * modules/unictype/category-Ll-tests (Files): Likewise.
20930         * modules/unictype/category-Lm-tests (Files): Likewise.
20931         * modules/unictype/category-Lo-tests (Files): Likewise.
20932         * modules/unictype/category-Lt-tests (Files): Likewise.
20933         * modules/unictype/category-Lu-tests (Files): Likewise.
20934         * modules/unictype/category-M-tests (Files): Likewise.
20935         * modules/unictype/category-Mc-tests (Files): Likewise.
20936         * modules/unictype/category-Me-tests (Files): Likewise.
20937         * modules/unictype/category-Mn-tests (Files): Likewise.
20938         * modules/unictype/category-N-tests (Files): Likewise.
20939         * modules/unictype/category-Nd-tests (Files): Likewise.
20940         * modules/unictype/category-Nl-tests (Files): Likewise.
20941         * modules/unictype/category-No-tests (Files): Likewise.
20942         * modules/unictype/category-P-tests (Files): Likewise.
20943         * modules/unictype/category-Pc-tests (Files): Likewise.
20944         * modules/unictype/category-Pd-tests (Files): Likewise.
20945         * modules/unictype/category-Pe-tests (Files): Likewise.
20946         * modules/unictype/category-Pf-tests (Files): Likewise.
20947         * modules/unictype/category-Pi-tests (Files): Likewise.
20948         * modules/unictype/category-Po-tests (Files): Likewise.
20949         * modules/unictype/category-Ps-tests (Files): Likewise.
20950         * modules/unictype/category-S-tests (Files): Likewise.
20951         * modules/unictype/category-Sc-tests (Files): Likewise.
20952         * modules/unictype/category-Sk-tests (Files): Likewise.
20953         * modules/unictype/category-Sm-tests (Files): Likewise.
20954         * modules/unictype/category-So-tests (Files): Likewise.
20955         * modules/unictype/category-Z-tests (Files): Likewise.
20956         * modules/unictype/category-Zl-tests (Files): Likewise.
20957         * modules/unictype/category-Zp-tests (Files): Likewise.
20958         * modules/unictype/category-Zs-tests (Files): Likewise.
20959         * modules/unictype/category-and-not-tests (Files): Likewise.
20960         * modules/unictype/category-and-tests (Files): Likewise.
20961         * modules/unictype/category-byname-tests (Files): Likewise.
20962         * modules/unictype/category-name-tests (Files): Likewise.
20963         * modules/unictype/category-none-tests (Files): Likewise.
20964         * modules/unictype/category-of-tests (Files): Likewise.
20965         * modules/unictype/category-or-tests (Files): Likewise.
20966         * modules/unictype/category-test-withtable-tests (Files): Likewise.
20967         * modules/unictype/combining-class-tests (Files): Likewise.
20968         * modules/unictype/ctype-alnum-tests (Files): Likewise.
20969         * modules/unictype/ctype-alpha-tests (Files): Likewise.
20970         * modules/unictype/ctype-blank-tests (Files): Likewise.
20971         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
20972         * modules/unictype/ctype-digit-tests (Files): Likewise.
20973         * modules/unictype/ctype-graph-tests (Files): Likewise.
20974         * modules/unictype/ctype-lower-tests (Files): Likewise.
20975         * modules/unictype/ctype-print-tests (Files): Likewise.
20976         * modules/unictype/ctype-punct-tests (Files): Likewise.
20977         * modules/unictype/ctype-space-tests (Files): Likewise.
20978         * modules/unictype/ctype-upper-tests (Files): Likewise.
20979         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
20980         * modules/unictype/decimal-digit-tests (Files): Likewise.
20981         * modules/unictype/digit-tests (Files): Likewise.
20982         * modules/unictype/mirror-tests (Files): Likewise.
20983         * modules/unictype/numeric-tests (Files): Likewise.
20984         * modules/unictype/property-alphabetic-tests (Files): Likewise.
20985         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
20986         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
20987         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
20988         Likewise.
20989         * modules/unictype/property-bidi-block-separator-tests (Files):
20990         Likewise.
20991         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
20992         Likewise.
20993         * modules/unictype/property-bidi-common-separator-tests (Files):
20994         Likewise.
20995         * modules/unictype/property-bidi-control-tests (Files): Likewise.
20996         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
20997         Likewise.
20998         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
20999         Likewise.
21000         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
21001         Likewise.
21002         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
21003         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
21004         Likewise.
21005         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
21006         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
21007         Likewise.
21008         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
21009         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
21010         * modules/unictype/property-bidi-segment-separator-tests (Files):
21011         Likewise.
21012         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
21013         * modules/unictype/property-byname-tests (Files): Likewise.
21014         * modules/unictype/property-combining-tests (Files): Likewise.
21015         * modules/unictype/property-composite-tests (Files): Likewise.
21016         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
21017         * modules/unictype/property-dash-tests (Files): Likewise.
21018         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
21019         * modules/unictype/property-default-ignorable-code-point-tests (Files):
21020         Likewise.
21021         * modules/unictype/property-deprecated-tests (Files): Likewise.
21022         * modules/unictype/property-diacritic-tests (Files): Likewise.
21023         * modules/unictype/property-extender-tests (Files): Likewise.
21024         * modules/unictype/property-format-control-tests (Files): Likewise.
21025         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
21026         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
21027         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
21028         * modules/unictype/property-hex-digit-tests (Files): Likewise.
21029         * modules/unictype/property-hyphen-tests (Files): Likewise.
21030         * modules/unictype/property-id-continue-tests (Files): Likewise.
21031         * modules/unictype/property-id-start-tests (Files): Likewise.
21032         * modules/unictype/property-ideographic-tests (Files): Likewise.
21033         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
21034         * modules/unictype/property-ids-trinary-operator-tests (Files):
21035         Likewise.
21036         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
21037         * modules/unictype/property-iso-control-tests (Files): Likewise.
21038         * modules/unictype/property-join-control-tests (Files): Likewise.
21039         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
21040         * modules/unictype/property-line-separator-tests (Files): Likewise.
21041         * modules/unictype/property-logical-order-exception-tests (Files):
21042         Likewise.
21043         * modules/unictype/property-lowercase-tests (Files): Likewise.
21044         * modules/unictype/property-math-tests (Files): Likewise.
21045         * modules/unictype/property-non-break-tests (Files): Likewise.
21046         * modules/unictype/property-not-a-character-tests (Files): Likewise.
21047         * modules/unictype/property-numeric-tests (Files): Likewise.
21048         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
21049         * modules/unictype/property-other-default-ignorable-code-point-tests
21050         (Files): Likewise.
21051         * modules/unictype/property-other-grapheme-extend-tests (Files):
21052         Likewise.
21053         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
21054         * modules/unictype/property-other-id-start-tests (Files): Likewise.
21055         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
21056         * modules/unictype/property-other-math-tests (Files): Likewise.
21057         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
21058         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
21059         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
21060         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
21061         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
21062         * modules/unictype/property-private-use-tests (Files): Likewise.
21063         * modules/unictype/property-punctuation-tests (Files): Likewise.
21064         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
21065         * modules/unictype/property-radical-tests (Files): Likewise.
21066         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
21067         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
21068         * modules/unictype/property-space-tests (Files): Likewise.
21069         * modules/unictype/property-terminal-punctuation-tests (Files):
21070         Likewise.
21071         * modules/unictype/property-test-tests (Files): Likewise.
21072         * modules/unictype/property-titlecase-tests (Files): Likewise.
21073         * modules/unictype/property-unassigned-code-value-tests (Files):
21074         Likewise.
21075         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
21076         * modules/unictype/property-uppercase-tests (Files): Likewise.
21077         * modules/unictype/property-variation-selector-tests (Files): Likewise.
21078         * modules/unictype/property-white-space-tests (Files): Likewise.
21079         * modules/unictype/property-xid-continue-tests (Files): Likewise.
21080         * modules/unictype/property-xid-start-tests (Files): Likewise.
21081         * modules/unictype/property-zero-width-tests (Files): Likewise.
21082         * modules/unictype/scripts-tests (Files): Likewise.
21083         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
21084         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
21085         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
21086         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
21087         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
21088         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
21089         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
21090         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
21091         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
21092         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
21093         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
21094         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
21095         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
21096         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
21097         * modules/uninorm/composition-tests (Files): Likewise.
21098         * modules/uninorm/decomposing-form-tests (Files): Likewise.
21099         * modules/uninorm/decomposition-tests (Files): Likewise.
21100         * modules/uninorm/filter-tests (Files): Likewise.
21101         * modules/uninorm/nfc-tests (Files): Likewise.
21102         * modules/uninorm/nfd-tests (Files): Likewise.
21103         * modules/uninorm/nfkc-tests (Files): Likewise.
21104         * modules/uninorm/nfkd-tests (Files): Likewise.
21105         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
21106         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
21107         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
21108         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
21109         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
21110         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
21111         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
21112         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21113         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
21114         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
21115         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
21116         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
21117         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21118         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
21119         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
21120         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
21121         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
21122         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21123         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
21124         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
21125         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
21126         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
21127         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21128         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
21129         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
21130         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
21131         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
21132         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
21133         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
21134         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
21135         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
21136         * modules/uniwidth/u8-width-tests (Files): Likewise.
21137         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
21138         * modules/uniwidth/u16-width-tests (Files): Likewise.
21139         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
21140         * modules/uniwidth/u32-width-tests (Files): Likewise.
21141         * modules/uniwidth/width-tests (Files): Likewise.
21142         * modules/unlink-tests (Files): Likewise.
21143         * modules/unsetenv-tests (Files): Likewise.
21144         * modules/usleep-tests (Files): Likewise.
21145         * modules/utimens-tests (Files): Likewise.
21146         * modules/utimensat-tests (Files): Likewise.
21147         * modules/vasnprintf-posix-tests (Files): Likewise.
21148         * modules/vasnprintf-tests (Files): Likewise.
21149         * modules/vasprintf-posix-tests (Files): Likewise.
21150         * modules/vasprintf-tests (Files): Likewise.
21151         * modules/vdprintf-posix-tests (Files): Likewise.
21152         * modules/vfprintf-posix-tests (Files): Likewise.
21153         * modules/vprintf-posix-tests (Files): Likewise.
21154         * modules/vsnprintf-posix-tests (Files): Likewise.
21155         * modules/vsnprintf-tests (Files): Likewise.
21156         * modules/vsprintf-posix-tests (Files): Likewise.
21157         * modules/wcrtomb-tests (Files): Likewise.
21158         * modules/wcsnrtombs-tests (Files): Likewise.
21159         * modules/wcsrtombs-tests (Files): Likewise.
21160         * modules/wctype-tests (Files): Likewise.
21161         * modules/wcwidth-tests (Files): Likewise.
21162         * modules/xmemdup0-tests (Files): Likewise.
21163         * modules/xprintf-posix-tests (Files): Likewise.
21164         * modules/xvasprintf-tests (Files): Likewise.
21165
21166 2009-12-24  Eric Blake  <ebb9@byu.net>
21167
21168         test-nanosleep: fix typo
21169         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
21170         patch.
21171         Reported by Bruno Haible.
21172
21173 2009-12-24  Bruno Haible  <bruno@clisp.org>
21174
21175         Reduce namespace pollution on glibc systems.
21176         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
21177         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
21178         systems.
21179         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
21180         <getopt.h> on glibc systems.
21181         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
21182         systems.
21183         * lib/fcntl.c: Include <unistd.h> here instead.
21184
21185 2009-12-24  Bruno Haible  <bruno@clisp.org>
21186
21187         * lib/stdlib.in.h (includes): Fix typo in today's commit.
21188
21189 2009-12-24  Eric Blake  <ebb9@byu.net>
21190
21191         tests: add signature checks
21192         * tests/signature.h (SIGNATURE_CHECK): New file.
21193         * modules/atexit-tests (Files): Use it.
21194         * modules/btowc-tests (Files): Likewise.
21195         * modules/canonicalize-lgpl-tests (Files): Likewise.
21196         * modules/ceilf-tests (Files): Likewise.
21197         * modules/ceill-tests (Files): Likewise.
21198         * modules/chown-tests (Files): Likewise.
21199         * modules/dprintf-posix-tests (Files): Likewise.
21200         * modules/dup2-tests (Files): Likewise.
21201         * modules/dup3-tests (Files): Likewise.
21202         * modules/duplocale-tests (Files): Likewise.
21203         * modules/fchdir-tests (Files): Likewise.
21204         * modules/fcntl-tests (Files): Likewise.
21205         * modules/fdopendir-tests (Files): Likewise.
21206         * modules/fflush-tests (Files): Likewise.
21207         * modules/flock-tests (Files): Likewise.
21208         * modules/floorf-tests (Files): Likewise.
21209         * modules/floorl-tests (Files): Likewise.
21210         * modules/fnmatch-tests (Files): Likewise.
21211         * modules/fopen-tests (Files): Likewise.
21212         * modules/fprintf-posix-tests (Files): Likewise.
21213         * modules/freopen-tests (Files): Likewise.
21214         * modules/frexp-nolibm-tests (Files): Likewise.
21215         * modules/frexp-tests (Files): Likewise.
21216         * modules/frexpl-nolibm-tests (Files): Likewise.
21217         * modules/frexpl-tests (Files): Likewise.
21218         * modules/fseek-tests (Files): Likewise.
21219         * modules/fseeko-tests (Files): Likewise.
21220         * modules/fsync-tests (Files): Likewise.
21221         * modules/ftell-tests (Files): Likewise.
21222         * modules/ftello-tests (Files): Likewise.
21223         * modules/futimens-tests (Files): Likewise.
21224         * modules/getaddrinfo-tests (Files): Likewise.
21225         * modules/getcwd-tests (Files): Likewise.
21226         * modules/getdelim-tests (Files): Likewise.
21227         * modules/getdtablesize-tests (Files): Likewise.
21228         * modules/getgroups-tests (Files): Likewise.
21229         * modules/gethostname-tests (Files): Likewise.
21230         * modules/getline-tests (Files): Likewise.
21231         * modules/getopt-posix-tests (Files): Likewise.
21232         * modules/gettimeofday-tests (Files): Likewise.
21233         * modules/glob-tests (Files): Likewise.
21234         * modules/iconv-tests (Files): Likewise.
21235         * modules/inet_ntop-tests (Files): Likewise.
21236         * modules/inet_pton-tests (Files): Likewise.
21237         * modules/isblank-tests (Files): Likewise.
21238         * modules/lchown-tests (Files): Likewise.
21239         * modules/ldexpl-tests (Files): Likewise.
21240         * modules/link-tests (Files): Likewise.
21241         * modules/linkat-tests (Files): Likewise.
21242         * modules/lseek-tests (Files): Likewise.
21243         * modules/lstat-tests (Files): Likewise.
21244         * modules/mbrtowc-tests (Files): Likewise.
21245         * modules/mbsinit-tests (Files): Likewise.
21246         * modules/mbsnrtowcs-tests (Files): Likewise.
21247         * modules/mbsrtowcs-tests (Files): Likewise.
21248         * modules/memchr-tests (Files): Likewise.
21249         * modules/memcmp-tests (Files): Likewise.
21250         * modules/memmem-tests (Files): Likewise.
21251         * modules/memrchr-tests (Files): Likewise.
21252         * modules/mkdir-tests (Files): Likewise.
21253         * modules/mkfifo-tests (Files): Likewise.
21254         * modules/mkfifoat-tests (Files): Likewise.
21255         * modules/mknod-tests (Files): Likewise.
21256         * modules/nanosleep-tests (Files): Likewise.
21257         * modules/nl_langinfo-tests (Files): Likewise.
21258         * modules/obstack-printf-tests (Files): Likewise.
21259         * modules/open-tests (Files): Likewise.
21260         * modules/openat-tests (Files): Likewise.
21261         * modules/perror-tests (Files): Likewise.
21262         * modules/pipe2-tests (Files): Likewise.
21263         * modules/poll-tests (Files): Likewise.
21264         * modules/popen-tests (Files): Likewise.
21265         * modules/posix_spawn-tests (Files): Likewise.
21266         * modules/posix_spawnp-tests (Files): Likewise.
21267         * modules/pread-tests (Files): Likewise.
21268         * modules/printf-posix-tests (Files): Likewise.
21269         * modules/pty-tests (Files): Likewise.
21270         * modules/random_r-tests (Files): Likewise.
21271         * modules/rawmemchr-tests (Files): Likewise.
21272         * modules/readlink-tests (Files): Likewise.
21273         * modules/remove-tests (Files): Likewise.
21274         * modules/rename-tests (Files): Likewise.
21275         * modules/renameat-tests (Files): Likewise.
21276         * modules/rmdir-tests (Files): Likewise.
21277         * modules/round-tests (Files): Likewise.
21278         * modules/roundf-tests (Files): Likewise.
21279         * modules/roundl-tests (Files): Likewise.
21280         * modules/select-tests (Files): Likewise.
21281         * modules/setenv-tests (Files): Likewise.
21282         * modules/sigaction-tests (Files): Likewise.
21283         * modules/sleep-tests (Files): Likewise.
21284         * modules/snprintf-posix-tests (Files): Likewise.
21285         * modules/snprintf-tests (Files): Likewise.
21286         * modules/sprintf-posix-tests (Files): Likewise.
21287         * modules/stat-tests (Files): Likewise.
21288         * modules/strcasestr-tests (Files): Likewise.
21289         * modules/strchrnul-tests (Files): Likewise.
21290         * modules/strerror-tests (Files): Likewise.
21291         * modules/strsignal-tests (Files): Likewise.
21292         * modules/strstr-tests (Files): Likewise.
21293         * modules/strtod-tests (Files): Likewise.
21294         * modules/strverscmp-tests (Files): Likewise.
21295         * modules/symlink-tests (Files): Likewise.
21296         * modules/symlinkat-tests (Files): Likewise.
21297         * modules/times-tests (Files): Likewise.
21298         * modules/trunc-tests (Files): Likewise.
21299         * modules/truncf-tests (Files): Likewise.
21300         * modules/truncl-tests (Files): Likewise.
21301         * modules/tsearch-tests (Files): Likewise.
21302         * modules/uname-tests (Files): Likewise.
21303         * modules/unlink-tests (Files): Likewise.
21304         * modules/unsetenv-tests (Files): Likewise.
21305         * modules/usleep-tests (Files): Likewise.
21306         * modules/utimensat-tests (Files): Likewise.
21307         * modules/vasprintf-tests (Files): Likewise.
21308         * modules/vdprintf-posix-tests (Files): Likewise.
21309         * modules/vfprintf-posix-tests (Files): Likewise.
21310         * modules/vprintf-posix-tests (Files): Likewise.
21311         * modules/vsnprintf-posix-tests (Files): Likewise.
21312         * modules/vsnprintf-tests (Files): Likewise.
21313         * modules/vsprintf-posix-tests (Files): Likewise.
21314         * modules/wcrtomb-tests (Files): Likewise.
21315         * modules/wcsnrtombs-tests (Files): Likewise.
21316         * modules/wcsrtombs-tests (Files): Likewise.
21317         * modules/wcwidth-tests (Files): Likewise.
21318         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
21319         * tests/test-isinf.c (isinf): Likewise.
21320         * tests/test-isnan.c (isnan): Likewise.
21321         * tests/test-signbit.c (signbit): Likewise.
21322         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
21323         declaration, either as macro or with correct signature.
21324         (select): Ensure function under test is declared with correct
21325         signature in correct header.
21326         * tests/test-atexit.c (atexit): Likewise.
21327         * tests/test-btowc.c (btowc): Likewise.
21328         * tests/test-canonicalize-lgpl.c (realpath)
21329         (canonicalize_file_name): Likewise.
21330         * tests/test-ceilf1.c (ceilf): Likewise.
21331         * tests/test-ceill.c (ceill): Likewise.
21332         * tests/test-chown.c (chown): Likewise.
21333         * tests/test-dprintf-posix.c (dprintf): Likewise.
21334         * tests/test-dup2.c (dup2): Likewise.
21335         * tests/test-dup3.c (dup3): Likewise.
21336         * tests/test-duplocale.c (duplocale): Likewise.
21337         * tests/test-fchdir.c (fchdir): Likewise.
21338         * tests/test-fchownat.c (fchownat): Likewise.
21339         * tests/test-fcntl.c (fcntl): Likewise.
21340         * tests/test-fdopendir.c (fdopendir): Likewise.
21341         * tests/test-fflush.c (fflush): Likewise.
21342         * tests/test-flock.c (flock): Likewise.
21343         * tests/test-floorf1.c (floorf): Likewise.
21344         * tests/test-floorl.c (floorl): Likewise.
21345         * tests/test-fnmatch.c (fnmatch): Likewise.
21346         * tests/test-fopen.c (fopen): Likewise.
21347         * tests/test-fprintf-posix.c (fprintf): Likewise.
21348         * tests/test-freopen.c (freopen): Likewise.
21349         * tests/test-frexp.c (frexp): Likewise.
21350         * tests/test-frexpl.c (frexpl): Likewise.
21351         * tests/test-fseek.c (fseek): Likewise.
21352         * tests/test-fseeko.c (fseeko): Likewise.
21353         * tests/test-fstatat.c (fstatat): Likewise.
21354         * tests/test-fsync.c (fsync): Likewise.
21355         * tests/test-ftell.c (ftell): Likewise.
21356         * tests/test-ftello.c (ftello): Likewise.
21357         * tests/test-futimens.c (futimens): Likewise.
21358         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
21359         (gai_strerror): Likewise.
21360         * tests/test-getcwd.c (getcwd): Likewise.
21361         * tests/test-getdelim.c (getdelim): Likewise.
21362         * tests/test-getdtablesize.c (getdtablesize): Likewise.
21363         * tests/test-getgroups.c (getgroups): Likewise.
21364         * tests/test-gethostname.c (gethostname): Likewise.
21365         * tests/test-getline.c (getline): Likewise.
21366         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
21367         Likewise.
21368         * tests/test-gettimeofday.c (gettimeofday): Likewise.
21369         * tests/test-glob.c (glob, globfree): Likewise.
21370         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
21371         * tests/test-inet_ntop.c (inet_ntop): Likewise.
21372         * tests/test-inet_pton.c (inet_pton): Likewise.
21373         * tests/test-isblank.c (isblank): Likewise.
21374         * tests/test-lchown.c (lchown): Likewise.
21375         * tests/test-ldexpl.c (ldexpl): Likewise.
21376         * tests/test-link.c (link): Likewise.
21377         * tests/test-linkat.c (linkat): Likewise.
21378         * tests/test-lseek.c (lseek): Likewise.
21379         * tests/test-lstat.c (lstat): Likewise.
21380         * tests/test-mbrtowc.c (mbrtowc): Likewise.
21381         * tests/test-mbsinit.c (mbsinit): Likewise.
21382         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
21383         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
21384         * tests/test-memchr.c (memchr): Likewise.
21385         * tests/test-memcmp.c (memcmp): Likewise.
21386         * tests/test-memmem.c (memmem): Likewise.
21387         * tests/test-memrchr.c (memrchr): Likewise.
21388         * tests/test-mkdir.c (mkdir): Likewise.
21389         * tests/test-mkdirat.c (mkdirat): Likewise.
21390         * tests/test-mkfifo.c (mkfifo): Likewise.
21391         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
21392         * tests/test-mknod.c (mknod): Likewise.
21393         * tests/test-nanosleep.c (nanosleep): Likewise.
21394         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
21395         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
21396         Likewise.
21397         * tests/test-open.c (open): Likewise.
21398         * tests/test-openat.c (openat): Likewise.
21399         * tests/test-perror.c (perror): Likewise.
21400         * tests/test-pipe2.c (pipe2): Likewise.
21401         * tests/test-poll.c (poll): Likewise.
21402         * tests/test-popen.c (popen, pclose): Likewise.
21403         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
21404         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
21405         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
21406         (posix_spawn_file_actions_destroy)
21407         (posix_spawn_file_actions_addclose)
21408         (posix_spawn_file_actions_addopen)
21409         (posix_spawn_file_actions_adddup2): Likewise.
21410         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
21411         * tests/test-pread.c (pread): Likewise.
21412         * tests/test-printf-posix.c (printf): Likewise.
21413         * tests/test-pty.c (openpty, forkpty): Likewise.
21414         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
21415         (random_r): Likewise.
21416         * tests/test-rawmemchr.c (rawmemchr): Likewise.
21417         * tests/test-readlink.c (readlink): Likewise.
21418         * tests/test-remove.c (remove): Likewise.
21419         * tests/test-rename.c (rename): Likewise.
21420         * tests/test-renameat.c (renameat): Likewise.
21421         * tests/test-rmdir.c (rmdir): Likewise.
21422         * tests/test-round1.c (round): Likewise.
21423         * tests/test-roundf1.c (roundf): Likewise.
21424         * tests/test-roundl.c (roundl): Likewise.
21425         * tests/test-setenv.c (setenv): Likewise.
21426         * tests/test-sigaction.c (sigaction): Likewise.
21427         * tests/test-sleep.c (sleep): Likewise.
21428         * tests/test-snprintf.c (snprintf): Likewise.
21429         * tests/test-sprintf-posix.c (sprintf): Likewise.
21430         * tests/test-stat.c (stat): Likewise.
21431         * tests/test-stpncpy.c (stpncpy): Likewise.
21432         * tests/test-strcasestr.c (strcasestr): Likewise.
21433         * tests/test-strchrnul.c (strchrnul): Likewise.
21434         * tests/test-strerror.c (strerror): Likewise.
21435         * tests/test-strsignal.c (strsignal): Likewise.
21436         * tests/test-strstr.c (strstr): Likewise.
21437         * tests/test-strtod.c (strtod): Likewise.
21438         * tests/test-strverscmp.c (strverscmp): Likewise.
21439         * tests/test-symlink.c (symlink): Likewise.
21440         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
21441         * tests/test-times.c (times): Likewise.
21442         * tests/test-trunc1.c (trunc): Likewise.
21443         * tests/test-truncf1.c (truncf): Likewise.
21444         * tests/test-truncl.c (truncl): Likewise.
21445         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
21446         Likewise.
21447         * tests/test-uname.c (uname): Likewise.
21448         * tests/test-unlink.c (unlink): Likewise.
21449         * tests/test-unlinkat.c (unlinkat): Likewise.
21450         * tests/test-unsetenv.c (unsetenv): Likewise.
21451         * tests/test-usleep.c (usleep): Likewise.
21452         * tests/test-utimensat.c (utimensat): Likewise.
21453         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
21454         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
21455         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
21456         * tests/test-vprintf-posix.c (vprintf): Likewise.
21457         * tests/test-vsnprintf.c (vsnprintf): Likewise.
21458         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
21459         * tests/test-wcrtomb.c (wcrtomb): Likewise.
21460         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
21461         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
21462         * tests/test-wcwidth.c (wcwidth): Likewise.
21463
21464         build: pull in conditional headers during GNULIB_POSIXCHECK
21465         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
21466         definitions from any conditionally-included headers.
21467         * lib/stdlib.in.h (includes): Likewise.
21468         * lib/unistd.in.h (includes): Likewise.
21469
21470 2009-12-24  Bruno Haible  <bruno@clisp.org>
21471
21472         * tests/test-argv-iter.c: Include header file being tested immediately
21473         after config.h.
21474         * tests/test-base64.c: Likewise.
21475         * tests/test-flock.c: Likewise.
21476         * tests/test-fsync.c: Likewise.
21477         * tests/test-getdate.c: Likewise.
21478         * tests/test-getndelim2.c: Likewise.
21479         * tests/test-isfinite.c: Likewise.
21480         * tests/test-isinf.c: Likewise.
21481         * tests/test-strerror.c: Likewise.
21482         * tests/test-strsignal.c: Likewise.
21483
21484 2009-12-23  Eric Blake  <ebb9@byu.net>
21485
21486         unistd: work around cygwin bug
21487         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
21488         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
21489         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21490
21491 2009-12-23  Bruno Haible  <bruno@clisp.org>
21492
21493         localename: More tests.
21494         * tests/test-localename.c (SIZEOF): New macro.
21495         (categories): New variable.
21496         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
21497         test_locale_name_default): Add test w.r.t. thread locale.
21498         (test_locale_name_thread): New function.
21499         (main): Invoke it.
21500
21501         localename: Make aware of thread locale.
21502         * lib/localename.h (gl_locale_name_thread): New declaration.
21503         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
21504         behaviour with respect to thread locale.
21505         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
21506         <langinfo.h>, glthread/lock.h.
21507         (SIZE_BITS): New macro.
21508         (string_hash): New function.
21509         (struct hash_node): New type.
21510         (HASH_TABLE_SIZE): New macro.
21511         (struniq_hash_table, struniq_lock): New variables.
21512         (struniq): New function.
21513         (gl_locale_name_thread): New function.
21514         (gl_locale_name): Invoke it.
21515         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
21516         * modules/localename (Depends-on): Add lock.
21517         Reported by Mike Gran <spk121@yahoo.com>.
21518
21519 2009-12-23  Eric Blake  <ebb9@byu.net>
21520
21521         va-args: new module
21522         * modules/va-args: New file.
21523         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
21524         * MODULES.html.sh (Core language properties): Mention it.
21525
21526         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
21527         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
21528         named alias for __attribute__((__unused__)).
21529         * lib/chown.c: Update client.
21530         * lib/fchmodat.c: Likewise.
21531         * lib/fts.c: Likewise.
21532         * lib/getdate.y: Likewise.
21533         * lib/getgroups.c: Likewise.
21534         * lib/getopt.c: Likewise.
21535         * lib/getugroups.c: Likewise.
21536         * lib/mkdir.c: Likewise.
21537         * lib/mkfifo.c: Likewise.
21538         * lib/mkfifoat.c: Likewise.
21539         * lib/mknod.c: Likewise.
21540         * lib/mknodat.c: Likewise.
21541         * lib/readlink.c: Likewise.
21542         * lib/se-context.in.h: Likewise.
21543         * lib/se-selinux.in.h: Likewise.
21544         * lib/sockets.c: Likewise.
21545         * lib/symlink.c: Likewise.
21546         * lib/symlinkat.c: Likewise.
21547         * lib/unicodeio.c: Likewise.
21548         * lib/unistr.h: Likewise.
21549         * tests/test-areadlink.c: Likewise.
21550         * tests/test-areadlinkat.c: Likewise.
21551         * tests/test-filenamecat.c: Likewise.
21552         * tests/test-fseeko.c: Likewise.
21553         * tests/test-ftello.c: Likewise.
21554         * tests/test-getdate.c: Likewise.
21555         * tests/test-getgroups.c: Likewise.
21556         * tests/test-gethostname.c: Likewise.
21557         * tests/test-quotearg.c: Likewise.
21558         * tests/test-version-etc.c: Likewise.
21559         * tests/test-xalloc-die.c: Likewise.
21560         * tests/test-xfprintf-posix.c: Likewise.
21561         * tests/test-xprintf-posix.c: Likewise.
21562         * tests/test-xvasprintf.c: Likewise.
21563
21564         tests: avoid compiler warnings
21565         * tests/test-fcntl.c (main): Delete unused parameters.
21566         * tests/test-freopen-safer.c (main): Likewise.
21567         * tests/test-xalloc-die.c (main): Mark unused parameters.
21568         * tests/test-fseeko.c (main): Likewise.
21569         * tests/test-ftello.c (main): Likewise.
21570         * tests/test-nanosleep.c (main): Avoid declaration warning.
21571         * tests/test-sleep.c (main): Likewise.
21572         * tests/test-unsetenv.c (main): Silence warning about string
21573         literal.
21574         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21575
21576 2009-12-23  Bruno Haible  <bruno@clisp.org>
21577
21578         * tests/test-localename.c (test_locale_name): New function, extracted
21579         from main. Also test mixed situations.
21580         (test_locale_name_posix, test_locale_name_environ,
21581         test_locale_name_default): New functions.
21582         (main): Invoke them all.
21583         * modules/localename-tests (configure.ac): Test for newlocale.
21584
21585 2009-12-23  Bruno Haible  <bruno@clisp.org>
21586
21587         unistd: Ensure getcwd gets declared before being overridden.
21588         * lib/unistd.in.h: Conditionally include <io.h>.
21589
21590 2009-12-22  Bruno Haible  <bruno@clisp.org>
21591
21592         wchar: Diagnose broken combination of glibc and gcc versions and flags.
21593         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
21594         (gl_WCHAR_H): Invoke it.
21595         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
21596         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
21597         Reported by Karl Berry <karl@freefriends.org>.
21598
21599 2009-12-22  Eric Blake  <ebb9@byu.net>
21600
21601         math, unistd: avoid redundant includes
21602         * lib/math.in.h (isnan): No need to re-include <math.h>.
21603         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
21604
21605         getsubopt: work around cygwin bug
21606         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
21607         avoid conflicting with system getsubopt.
21608         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
21609         bug.
21610
21611         getopt: synchronize from glibc
21612         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
21613         parameter order.  Adjust all callers.
21614         (_getopt_internal_r, main): Adjust quoting in error messages.
21615         Drop considerations for outdated POSIX 1003.2 error message.
21616         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
21617         callers.
21618         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
21619
21620         test-getopt: test stderr behavior
21621         * modules/getopt-posix-tests (Depends-on): Add dup2.
21622         * tests/test-getopt.c (ASSERT): Avoid stderr.
21623         (main): Move stderr to a temporary file.
21624         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
21625         Instead, add parameter to inform caller if output occurred.
21626         (test_getopt): Adjust all existing tests to expect silence, and
21627         add new tests of leading ":".
21628         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21629         glibc shortcomings with leading "-:" or "+:" in optstring.
21630         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21631         Likewise.
21632         * doc/posix-functions/getopt.texi (getopt): Likewise.
21633
21634         test-getopt: enhance test
21635         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
21636         supports optind=0.
21637         * tests/test-getopt.c (OPTIND_MIN): Move...
21638         * tests/test-getopt.h (OPTIND_MIN): ...here.
21639         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
21640         Require that optind=0 works, since modern BSD supports it in
21641         addition to optreset, and since coreutils expects it.
21642         (test_getopt_long_only): New test.
21643         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21644         glibc shortcomings with 'W;', and enforcement of optind=0.
21645         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21646         Likewise.
21647
21648 2009-12-21  Bruno Haible  <bruno@clisp.org>
21649
21650         localename: Improvements for MacOS X and Cygwin.
21651         * lib/localename.h (gl_locale_name_environ): New declaration.
21652         * lib/localename.c (gl_locale_name_environ): New function, extracted from
21653         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
21654         (gl_locale_name_posix): Invoke it.
21655         (gl_locale_name_default): Add comments. Use Windows native API also on
21656         Cygwin.
21657
21658 2009-12-21  Bruno Haible  <bruno@clisp.org>
21659
21660         Update list of Win32 locale ids.
21661         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
21662         (LANG_SAMI): Renamed from LANG_SAAMI.
21663         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
21664         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
21665         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
21666         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
21667         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
21668         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
21669         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
21670         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
21671         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
21672         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
21673         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
21674         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
21675         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
21676         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
21677         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
21678         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
21679         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
21680         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
21681         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
21682         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
21683         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
21684         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
21685         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
21686         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
21687         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
21688         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
21689         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
21690         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
21691         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
21692         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
21693         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
21694         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
21695         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
21696         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
21697         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
21698         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
21699         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
21700         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
21701         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
21702         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
21703         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
21704         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
21705         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
21706         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
21707         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
21708         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
21709         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
21710         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
21711         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
21712         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
21713         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
21714         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
21715         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
21716         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
21717         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
21718         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
21719         Add more languages and countries for Sami, Sorbian. Add more countries
21720         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
21721         for Pashto. Change country for Syriac, Tswana.
21722
21723 2009-12-21  Eric Blake  <ebb9@byu.net>
21724
21725         test-utimens: avoid spurious failure
21726         * tests/test-chown.h (nap): Factor...
21727         * tests/nap.h: ...into new file.
21728         * tests/test-lchown.h (nap): Avoid duplication.
21729         * tests/test-utimens-common.h (nap): Use shared implementation,
21730         necessary on file systems with 1-second resolution.
21731         * modules/chown-tests (Files): Include new file.
21732         * modules/fdutimensat-tests (Files): Likewise.
21733         * modules/futimens-tests (Files): Likewise.
21734         * modules/lchown-tests (Files): Likewise.
21735         * modules/openat-tests (Files): Likewise.
21736         * modules/utimens-tests (Files): Likewise.
21737         * modules/utimensat-tests (Files): Likewise.
21738
21739 2009-12-19  Eric Blake  <ebb9@byu.net>
21740
21741         futimens, utimensat: work around Linux bug
21742         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
21743         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21744         * lib/utimensat.c (rpl_utimensat): Work around it.
21745         * lib/futimens.c (rpl_futimens): Adjust comment.
21746
21747         utimens: work around Linux ctime bug
21748         * lib/utimens.c (detect_ctime_bug): New helper function.
21749         (update_timespec): Differentiate between workaround needed for
21750         this bug vs. what is needed for systems that lack utimensat.
21751         (fdutimens, lutimens): Work around bug.
21752
21753         utimens: check for ctime update
21754         * tests/test-utimens-common.h (check_ctime): Define.
21755         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
21756         * tests/test-futimens.h (test_futimens): Likewise.
21757         * tests/test-lutimens.h (test_lutimens): Likewise.
21758         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21759         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21760
21761 2009-12-19  Bruno Haible  <bruno@clisp.org>
21762
21763         dprintf-posix: Check against memory leak fixed on 2009-12-15.
21764         * tests/test-dprintf-posix2.sh: New file.
21765         * tests/test-dprintf-posix2.c: New file.
21766         * modules/dprintf-posix-tests (Files): Add them.
21767         (configure.ac): Check for getrlimit and setrlimit.
21768         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21769
21770 2009-12-19  Bruno Haible  <bruno@clisp.org>
21771
21772         fprintf-posix: Check against memory leak fixed on 2009-12-15.
21773         * tests/test-fprintf-posix3.sh: New file.
21774         * tests/test-fprintf-posix3.c: New file.
21775         * modules/fprintf-posix-tests (Files): Add them.
21776         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21777
21778 2009-12-19  Eric Blake  <ebb9@byu.net>
21779
21780         dirfd: fix prototype
21781         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
21782         * lib/dirfd.c (dirfd): Likewise.
21783
21784         canonicalize: reduce memory usage
21785         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
21786         allocation to size.
21787         Reported by Solar Designer <solar@openwall.com>.
21788
21789 2009-12-19  Bruno Haible  <bruno@clisp.org>
21790
21791         New module attribute 'Applicability'.
21792         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
21793         * gnulib-tool: New option --extract-applicability.
21794         (func_usage): Document it.
21795         (sed_extract_prog): Recognize it.
21796         (func_get_applicability): New function.
21797         (func_import): Generalize handling of 'link-warning' module.
21798         * modules/link-warning (Applicability): New section.
21799         * modules/arg-nonnull (Applicability): New section.
21800         Repoted by Simon Josefsson <simon@josefsson.org>.
21801
21802 2009-12-19  Bruno Haible  <bruno@clisp.org>
21803
21804         fflush: tweak
21805         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
21806         * lib/fseeko.c (rpl_fseeko): Likewise.
21807
21808 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
21809
21810         * lib/gl_list.h: Fix typo in comment.
21811
21812 2009-12-16  Eric Blake  <ebb9@byu.net>
21813
21814         fcntl: use to simplify other modules
21815         * modules/cloexec (Depends-on): Add fcntl.
21816         * modules/fchdir (Depends-on): Likewise.
21817         * modules/fd-safer-flag (Depends-on): Likewise.
21818         * modules/unistd-safer (Depends-on): Likewise.
21819         * modules/dup3 (configure.ac): Set module indicator.
21820         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
21821         missing.
21822         * lib/fchdir.c (_gl_register_dup): Fix comment.
21823         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
21824         * lib/dup-safer.c (dup_safer): Likewise.
21825         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
21826         * lib/dup3.c (dup3): Likewise.
21827         * tests/test-fchdir.c (main): Enhance test.
21828         Fixes a dup_cloexec bug reported by Ondřej Vašík.
21829
21830         fcntl: port portions of fcntl to mingw
21831         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
21832         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
21833         replacement for mingw.
21834         * modules/fcntl (Description): Update.
21835         (Depends-on): Add dup2.
21836         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
21837         * modules/fcntl-h (Makefile.am): Substitute it.
21838         * lib/fcntl.in.h (fcntl): Update declaration.
21839         (F_DUPFD, F_GETFD): New macros, when needed.
21840         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21841         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
21842         * tests/test-fcntl.c (check_flags, main): Enhance test for items
21843         we now guarantee.
21844
21845         fcntl: work around cygwin bug in F_DUPFD
21846         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
21847         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
21848         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
21849         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
21850         * doc/posix-functions/fcntl.texi (fcntl): Document it.
21851
21852         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
21853         * modules/fcntl (Files): List new files.
21854         (configure.ac): Run a test.
21855         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
21856         * lib/fcntl.c (rpl_fcntl): Likewise.
21857         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
21858         (gl_FCNTL_H): Always replace fcntl.h.
21859         * modules/fcntl-h (Makefile.am): Substitute witnesses.
21860         * lib/fcntl.in.h (fcntl): Declare replacement.
21861         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
21862         needed, plus a witness.
21863         * doc/posix-functions/fcntl.texi (fcntl): Document this.
21864         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21865         * tests/test-fcntl.c: New file.
21866         * modules/fcntl-tests: Likewise.
21867
21868         binary-io: avoid potential compilation warning
21869         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
21870         directives.
21871
21872         fflush: avoid compilation error on NetBSD
21873         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
21874         between off_t and fpos_t, since the latter is sometimes a struct.
21875         * lib/fseeko.c (rpl_fseeko): Likewise.
21876         Reported by Alexander Nasonov <alnsn@yandex.ru>.
21877
21878 2009-12-15  Eric Blake  <ebb9@byu.net>
21879
21880         fcntl-h, stdio, sys_ioctl: fix declarations
21881         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
21882         function must not take arguments.
21883         * lib/sys_ioctl.in.h (ioctl): Likewise.
21884         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
21885         (open): Add a link warning.
21886
21887 2009-12-15  Jim Meyering  <meyering@redhat.com>
21888
21889         areadlink, areadlink-with-size: relax license to LGPLv2+
21890         * modules/areadlink (License): Relax to LGPLv2+.
21891         * modules/areadlink-with-size (License): Likewise.
21892
21893 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
21894             Bruno Haible  <bruno@clisp.org>
21895
21896         *printf: Fix memory leak.
21897         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
21898         * lib/vfprintf.c (vfprintf): Likewise.
21899         * lib/dprintf.c (dprintf): Likewise.
21900         * lib/vdprintf.c (vdprintf): Likewise.
21901
21902 2009-12-14  Eric Blake  <ebb9@byu.net>
21903
21904         accept4: adjust module dependencies
21905         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
21906
21907         utimens: one more try at avoiding compiler warning
21908         * lib/utimens.c (lutimens): Lower scope of result.
21909
21910 2009-12-13  Bruno Haible  <bruno@clisp.org>
21911
21912         Move the malloc checking from module 'list' to new module 'xlist'.
21913         * modules/xlist: New file.
21914         * lib/gl_xlist.h: New file.
21915         * lib/gl_xlist.c: New file.
21916         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
21917         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
21918         gl_list_add_last, gl_list_add_before, gl_list_add_after,
21919         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
21920         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
21921         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
21922         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
21923         gl_sortedlist_nx_add): New declarations.
21924         (struct gl_list_implementation): Rename and change methods accordingly.
21925         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
21926         (gl_list_nx_create): Renamed from gl_list_create.
21927         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21928         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21929         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21930         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21931         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21932         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21933         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21934         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21935         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
21936         gl_list_create_empty.
21937         (gl_list_nx_create): Renamed from gl_list_create.
21938         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21939         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21940         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21941         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21942         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21943         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21944         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21945         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21946         * lib/gl_array_list.c: Don't include xalloc.h.
21947         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
21948         NULL upon out-of-memory.
21949         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
21950         out-of-memory.
21951         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
21952         Change return type to 'int'.
21953         (gl_array_nx_set_at): Renamed from gl_array_set_at.
21954         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21955         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
21956         upon out-of-memory.
21957         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
21958         upon out-of-memory.
21959         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
21960         upon out-of-memory.
21961         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
21962         upon out-of-memory.
21963         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
21964         out-of-memory.
21965         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
21966         Update.
21967         (gl_array_list_implementation): Update.
21968         * lib/gl_carray_list.c: Don't include xalloc.h.
21969         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
21970         Return NULL upon out-of-memory.
21971         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
21972         out-of-memory.
21973         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
21974         Change return type to 'int'.
21975         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
21976         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21977         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
21978         upon out-of-memory.
21979         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
21980         upon out-of-memory.
21981         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
21982         out-of-memory.
21983         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
21984         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
21985         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
21986         Update.
21987         (gl_carray_list_implementation): Update.
21988         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
21989         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
21990         gl_linked_create_empty. Return NULL upon out-of-memory.
21991         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
21992         out-of-memory.
21993         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
21994         Change return type to 'int'. Return -1 upon out-of-memory.
21995         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
21996         out-of-memory.
21997         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
21998         upon out-of-memory.
21999         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
22000         upon out-of-memory.
22001         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
22002         NULL upon out-of-memory.
22003         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
22004         upon out-of-memory.
22005         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
22006         out-of-memory.
22007         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
22008         Update.
22009         * lib/gl_linked_list.c: Don't include xalloc.h.
22010         (gl_linked_list_implementation): Update.
22011         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
22012         (add_to_bucket): Change return type to 'int'.
22013         (gl_linkedhash_list_implementation): Update.
22014         * lib/gl_anytree_list1.h (free_subtree): New function.
22015         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
22016         gl_tree_create_empty. Return NULL upon out-of-memory.
22017         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
22018         Change return type to 'int'. Return -1 upon out-of-memory.
22019         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
22020         out-of-memory.
22021         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
22022         (gl_tree_remove_node): New function, moved here from
22023         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
22024         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
22025         Update.
22026         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
22027         malloc, not xmalloc. Return NULL upon out-of-memory.
22028         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22029         out-of-memory.
22030         (gl_tree_remove_node_from_tree): New function, extracted from
22031         gl_tree_remove_node.
22032         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22033         upon out-of-memory.
22034         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22035         out-of-memory.
22036         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22037         upon out-of-memory.
22038         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22039         upon out-of-memory.
22040         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22041         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
22042         not xmalloc. Return NULL upon out-of-memory.
22043         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22044         out-of-memory.
22045         (gl_tree_remove_node_from_tree): New function, extracted from
22046         gl_tree_remove_node.
22047         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22048         upon out-of-memory.
22049         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22050         out-of-memory.
22051         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22052         upon out-of-memory.
22053         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22054         upon out-of-memory.
22055         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22056         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
22057         gl_anytree_list1.h before gl_anyavltree_list2.h.
22058         (gl_avltree_list_implementation): Update.
22059         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
22060         gl_anytree_list1.h before gl_anyavltree_list2.h.
22061         (gl_rbtree_list_implementation): Update.
22062         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
22063         Change return type to 'int'. Return -1 upon out-of-memory. Use
22064         __builtin_expect.
22065         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
22066         (gl_avltreehash_list_implementation): Update.
22067         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
22068         (gl_rbtreehash_list_implementation): Update.
22069         * modules/array-list (Depends-on): Remove xalloc.
22070         * modules/carray-list (Depends-on): Likewise.
22071         * modules/linked-list (Depends-on): Likewise.
22072         * modules/linkedhash-list (Depends-on): Likewise.
22073         * modules/avltree-list (Depends-on): Likewise.
22074         * modules/rbtree-list (Depends-on): Likewise.
22075         * modules/avltreehash-list (Depends-on): Likewise.
22076         * modules/rbtreehash-list (Depends-on): Likewise.
22077
22078         * modules/xsublist: New file.
22079         * lib/gl_xsublist.h: New file.
22080         * lib/gl_xsublist.c: New file.
22081         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
22082         (gl_sublist_nx_create): New declaration.
22083         * lib/gl_sublist.c: Don't include xalloc.h.
22084         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
22085         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
22086         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
22087         Change return type to 'int'. Return -1 upon out-of-memory.
22088         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
22089         upon out-of-memory.
22090         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
22091         NULL upon out-of-memory.
22092         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
22093         upon out-of-memory.
22094         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
22095         NULL upon out-of-memory.
22096         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
22097         NULL upon out-of-memory.
22098         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
22099         upon out-of-memory.
22100         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
22101         (gl_sublist_list_implementation): Update.
22102         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
22103         upon out-of-memory.
22104         * modules/sublist (Depends-on): Remove xalloc.
22105
22106         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
22107         * tests/test-carray_list.c: Likewise.
22108         * tests/test-linked_list.c: Likewise.
22109         * tests/test-linkedhash_list.c: Likewise.
22110         * tests/test-avltree_list.c: Likewise.
22111         * tests/test-rbtree_list.c: Likewise.
22112         * tests/test-avltreehash_list.c: Likewise.
22113         * tests/test-rbtreehash_list.c: Likewise.
22114         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
22115         * modules/carray-list-tests (Makefile.am): Likewise.
22116         * modules/linked-list-tests (Makefile.am): Likewise.
22117         * modules/linkedhash-list-tests (Makefile.am): Likewise.
22118         * modules/avltree-list-tests (Makefile.am): Likewise.
22119         * modules/rbtree-list-tests (Makefile.am): Likewise.
22120         * modules/avltreehash-list-tests (Makefile.am): Likewise.
22121         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
22122
22123         * NEWS: Mention the changes.
22124
22125         * lib/clean-temp.c: Include gl_xlist.h.
22126         * modules/clean-temp (Depends-on): Add xlist.
22127
22128         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
22129         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
22130
22131         * tests/test-array_oset.c: Include gl_xlist.h.
22132         * modules/array-oset-tests (Depends-on): Add xlist.
22133
22134         Reported by José E. Marchesi <jemarch@gnu.org>.
22135
22136 2009-12-13  Bruno Haible  <bruno@clisp.org>
22137
22138         Move the malloc checking from module 'oset' to new module 'xoset'.
22139         * modules/xoset: New file.
22140         * lib/gl_xoset.h: New file.
22141         * lib/gl_xoset.c: New file.
22142         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
22143         declarations.
22144         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
22145         (struct gl_oset_implementation): Rename and change methods accordingly.
22146         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
22147         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22148         'int'. Mark as __warn_unused_result__.
22149         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
22150         gl_oset_create_empty.
22151         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22152         'int'.
22153         * lib/gl_array_oset.c: Don't include xalloc.h.
22154         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
22155         malloc, not xmalloc.
22156         (grow): Change return type to 'int'. Don't call xalloc_die.
22157         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
22158         to 'int'.
22159         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
22160         'int'.
22161         (gl_array_oset_implementation): Update.
22162         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
22163         gl_tree_create_empty.
22164         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
22165         'int'.
22166         * lib/gl_avltree_oset.c: Don't include xalloc.h.
22167         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22168         xmalloc.
22169         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22170         not xmalloc.
22171         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22172         xmalloc.
22173         (gl_avltree_oset_implementation): Update.
22174         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
22175         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22176         xmalloc.
22177         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22178         not xmalloc.
22179         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22180         xmalloc.
22181         (gl_rbtree_oset_implementation): Update.
22182         * modules/array-oset (Depends-on): Remove xalloc.
22183         * modules/avltree-oset (Depends-on): Likewise.
22184         * modules/rbtree-oset (Depends-on): Likewise.
22185         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
22186         * tests/test-avltree_oset.c: Likewise.
22187         * tests/test-rbtree_oset.c: Likewise.
22188         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
22189         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
22190         * modules/rbtree-oset-tests (Makefile.am): Likewise.
22191         * NEWS: Mention the change.
22192
22193 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
22194
22195         maint.mk: allow a project to override release-prep commands
22196         * top/maint.mk (alpha, beta, stable): Move release-preparatory
22197         commands into a new rule.
22198         (release-prep): New rule.
22199         (release-prep-hook): New overridable variable.
22200
22201 2009-12-13  Bruno Haible  <bruno@clisp.org>
22202
22203         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
22204
22205 2009-12-13  Jim Meyering  <meyering@redhat.com>
22206
22207         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
22208         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
22209
22210 2009-12-12  Bruno Haible  <bruno@clisp.org>
22211
22212         duplocale: Tweak.
22213         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
22214
22215 2009-12-12  Karl Berry  <karl@gnu.org>
22216
22217         * config/srclist.txt (strtoll.c): tab changes, no more sync.
22218
22219 2009-12-12  Bruno Haible  <bruno@clisp.org>
22220
22221         * m4/po.m4: Undo incorrect untabification.
22222
22223 2009-12-12  Bruno Haible  <bruno@clisp.org>
22224
22225         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
22226         * modules/c-strtod (Depends-on): Add locale.
22227         * modules/c-strtold (Depends-on): Likewise.
22228
22229 2009-12-12  Bruno Haible  <bruno@clisp.org>
22230
22231         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
22232
22233 2009-12-11  Eric Blake  <ebb9@byu.net>
22234
22235         setenv: relax requirement in light of POSIX ruling
22236         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
22237         not NULL.
22238         * tests/test-setenv.c (main): Relax test.
22239         * tests/test-unsetenv.c (main): Likewise.
22240         * doc/posix-functions/setenv.texi (setenv): Document this.
22241         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22242
22243 2009-12-11  Bruno Haible  <bruno@clisp.org>
22244
22245         New module 'fd-safer-flag'.
22246         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
22247         * lib/dup-safer.c (dup_safer_flag): Remove function.
22248         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
22249         * lib/fd-safer.c (fd_safer_flag): Remove function.
22250         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
22251         * modules/cloexec (configure.ac): Drop indicator macro.
22252         * modules/fd-safer-flag: New file.
22253         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
22254         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
22255         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
22256
22257 2009-12-11  Bruno Haible  <bruno@clisp.org>
22258
22259         Tests for module 'nl_langinfo'.
22260         * modules/nl_langinfo-tests: New file.
22261         * tests/test-nl_langinfo.sh: New file.
22262         * tests/test-nl_langinfo.c: New file.
22263
22264         New module 'nl_langinfo'.
22265         * lib/nl_langinfo.c: New file.
22266         * m4/nl_langinfo.m4: New file.
22267         * modules/nl_langinfo: New file.
22268         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
22269
22270 2009-12-11  Bruno Haible  <bruno@clisp.org>
22271
22272         Tests for module 'langinfo'.
22273         * modules/langinfo-tests: New file.
22274         * tests/test-langinfo.c: New file.
22275
22276         New module 'langinfo'.
22277         * lib/langinfo.in.h: New file.
22278         * m4/langinfo_h.m4: New file.
22279         * modules/langinfo: New file.
22280         * doc/posix-headers/langinfo.texi: Mention the new module.
22281
22282 2009-12-11  Bruno Haible  <bruno@clisp.org>
22283
22284         * lib/config.charset: Untabify.
22285
22286 2009-12-11  Bruno Haible  <bruno@clisp.org>
22287
22288         * modules/unistd-safer (configure.ac): Drop indicator macro.
22289
22290 2009-12-11  Bruno Haible  <bruno@clisp.org>
22291
22292         Move pipe2-safer code to its own file.
22293         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
22294         * lib/pipe-safer.c (pipe2_safer): Remove function.
22295         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
22296         (Makefile.am): Add it to lib_SOURCES.
22297
22298 2009-12-10  Bruno Haible  <bruno@clisp.org>
22299
22300         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
22301
22302 2009-12-10  Bruno Haible  <bruno@clisp.org>
22303
22304         Declare which arguments expect non-NULL values, for GCC and clang.
22305         * build-aux/arg-nonnull.h: New file.
22306         * modules/arg-nonnull: New file.
22307         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
22308         (inet_ntop, inet_pton): Use it.
22309         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
22310         (closedir, dirfd, opendir, scandir, alphasort): Use it.
22311         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
22312         (open, openat): Use it.
22313         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
22314         (fnmatch): Use it.
22315         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
22316         (getopt, getopt_long, getopt_long_only): Use it.
22317         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
22318         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
22319         Use it.
22320         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
22321         (iconv_open): Use it.
22322         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
22323         (strtoimax, strtoumax): Use it.
22324         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
22325         (duplocale): Use it.
22326         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
22327         (frexp, frexpl): Use it.
22328         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
22329         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
22330         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
22331         (tsearch, tfind, tdelete, twalk): Use it.
22332         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
22333         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22334         sigpending): Use it.
22335         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
22336         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22337         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22338         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22339         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22340         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22341         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22342         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22343         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22344         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22345         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22346         Use it.
22347         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
22348         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
22349         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
22350         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
22351         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
22352         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
22353         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
22354         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
22355         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
22356         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
22357         strtoull, unsetenv): Use it.
22358         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
22359         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22360         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22361         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
22362         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
22363         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
22364         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
22365         (strcasecmp, strncasecmp): Use it.
22366         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
22367         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
22368         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
22369         rpl_setsockopt): Use it.
22370         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
22371         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
22372         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
22373         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
22374         (gettimeofday): Use it.
22375         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
22376         (times): Use it.
22377         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
22378         (uname): Use it.
22379         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
22380         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
22381         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
22382         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
22383         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
22384         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
22385         unlinkat, write): Use it.
22386         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
22387         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
22388         * lib/argv-iter.h: Include arg-nonnull.h.
22389         (_ATTRIBUTE_NONNULL_): Remove macro.
22390         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
22391         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
22392         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
22393         optimization.
22394         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
22395         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
22396         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
22397         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
22398         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
22399         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
22400         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
22401         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
22402         * modules/arpa_inet (Depends-on): Add arg-nonnull.
22403         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
22404         * modules/dirent (Depends-on): Add arg-nonnull.
22405         (Makefile.am): Insert arg-nonnull.h into dirent.h.
22406         * modules/fcntl-h (Depends-on): Add arg-nonnull.
22407         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
22408         * modules/fnmatch (Depends-on): Add arg-nonnull.
22409         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
22410         * modules/getopt-posix (Depends-on): Add arg-nonnull.
22411         (Makefile.am): Insert arg-nonnull.h into getopt.h.
22412         * modules/glob (Depends-on): Add arg-nonnull.
22413         (Makefile.am): Insert arg-nonnull.h into glob.h.
22414         * modules/iconv_open (Depends-on): Add arg-nonnull.
22415         (Makefile.am): Insert arg-nonnull.h into iconv.h.
22416         * modules/inttypes (Depends-on): Add arg-nonnull.
22417         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
22418         * modules/locale (Depends-on): Add arg-nonnull.
22419         (Makefile.am): Insert arg-nonnull.h into locale.h.
22420         * modules/math (Depends-on): Add arg-nonnull.
22421         (Makefile.am): Insert arg-nonnull.h into math.h.
22422         * modules/netdb (Depends-on): Add arg-nonnull.
22423         (Makefile.am): Insert arg-nonnull.h into netdb.h.
22424         * modules/search (Depends-on): Add arg-nonnull.
22425         (Makefile.am): Insert arg-nonnull.h into search.h.
22426         * modules/signal (Depends-on): Add arg-nonnull.
22427         (Makefile.am): Insert arg-nonnull.h into signal.h.
22428         * modules/spawn (Depends-on): Add arg-nonnull.
22429         (Makefile.am): Insert arg-nonnull.h into spawn.h.
22430         * modules/stdio (Depends-on): Add arg-nonnull.
22431         (Makefile.am): Insert arg-nonnull.h into stdio.h.
22432         * modules/stdlib (Depends-on): Add arg-nonnull.
22433         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
22434         * modules/string (Depends-on): Add arg-nonnull.
22435         (Makefile.am): Insert arg-nonnull.h into string.h.
22436         * modules/strings (Depends-on): Add arg-nonnull.
22437         (Makefile.am): Insert arg-nonnull.h into strings.h.
22438         * modules/sys_socket (Depends-on): Add arg-nonnull.
22439         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
22440         * modules/sys_stat (Depends-on): Add arg-nonnull.
22441         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
22442         * modules/sys_time (Depends-on): Add arg-nonnull.
22443         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
22444         * modules/sys_times (Depends-on): Add arg-nonnull.
22445         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
22446         * modules/sys_utsname (Depends-on): Add arg-nonnull.
22447         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
22448         * modules/time (Depends-on): Add arg-nonnull.
22449         (Makefile.am): Insert arg-nonnull.h into time.h.
22450         * modules/unistd (Depends-on): Add arg-nonnull.
22451         (Makefile.am): Insert arg-nonnull.h into unistd.h.
22452         * modules/wchar (Depends-on): Add arg-nonnull.
22453         (Makefile.am): Insert arg-nonnull.h into wchar.h.
22454         * modules/argv-iter (Depends-on): Add arg-nonnull.
22455         * tests/test-canonicalize.c (null_ptr): New function.
22456         (main): Use it.
22457         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
22458         (main): Use it.
22459         * tests/test-memmem.c (null_ptr): New function.
22460         (main): Use it.
22461         Reported by Jim Meyering.
22462
22463 2009-12-10  Bruno Haible  <bruno@clisp.org>
22464
22465         Use spaces for indentation, not tabs.
22466         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22467         * m4/*.m4: Untabify.
22468         * build-aux/*.h: Untabify.
22469         * tests/**/*.[hc]: Untabify.
22470         * README: New section "Indent with spaces, not TABs", based on
22471         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
22472         * NEWS: Mention the change.
22473
22474 2009-12-10  Bruno Haible  <bruno@clisp.org>
22475
22476         pty test: Fix link error.
22477         * modules/pty-tests (Makefile.am): Add the default LDADD value to
22478         test_pty_LDADD.
22479
22480 2009-12-07  Simon Josefsson  <simon@josefsson.org>
22481
22482         * modules/pty: New file.
22483         * modules/pty-tests: New file.
22484         * m4/pty.m4: New file.
22485         * tests/test-pty.c: New file.
22486         * doc/glibc-headers/pty.texi: Modified.
22487         * doc/glibc-functions/forkpty.texi: Modified.
22488         * doc/glibc-functions/openpty.texi: Modified.
22489
22490 2009-12-10  Bruno Haible  <bruno@clisp.org>
22491
22492         Avoid syntax error in C++ mode.
22493         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
22494
22495 2009-12-10  Bruno Haible  <bruno@clisp.org>
22496
22497         Use sed with option -e.
22498         * gnulib-tool (func_version, func_emit_copyright_notice,
22499         func_emit_initmacro_end, func_import, func_create_testdir): Pass
22500         option -e to sed.
22501         * modules/link-warning (Makefile.am): Likewise.
22502
22503 2009-12-10  Jim Meyering  <meyering@redhat.com>
22504
22505         mgetgroups: do not write bytes beyond end of malloc'd buffer
22506         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
22507         username, we call getgroups with a one-element-shorter buffer,
22508         but still told it the length was original, max_n_groups.
22509
22510 2009-12-09  Eric Blake  <ebb9@byu.net>
22511
22512         cloexec: relax license
22513         * modules/cloexec (Maintainer): Add myself.
22514         (License): Use LGPL, not GPL.
22515
22516         link-warning: optimize generation
22517         * modules/link-warning (Makefile.am): Reduce process usage.
22518
22519 2009-12-09  Bruno Haible  <bruno@clisp.org>
22520
22521         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
22522         workaround was added on 2009-11-17.
22523
22524 2009-12-09  Jim Meyering  <meyering@redhat.com>
22525             Bruno Haible  <bruno@clisp.org>
22526
22527         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
22528         * modules/link-warning (Makefile.am): Make the comment-removing sed
22529         command more robust in the face of bootstrap-prepended comment lines.
22530
22531 2009-12-09  Bruno Haible  <bruno@clisp.org>
22532
22533         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
22534         most one group.
22535
22536 2009-12-09  Simon Josefsson <simon@josefsson.org>
22537             Bruno Haible  <bruno@clisp.org>
22538
22539         * build-aux/link-warning.h: Add copyright notice.
22540         * modules/link-warning (Makefile.am): Generate link-warning.h from
22541         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
22542         * NEWS: Mention change in link-warning module.
22543         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
22544         * modules/dirent (Makefile.am): Add dependency to dirent.h.
22545         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
22546         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
22547         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
22548         * modules/math (Makefile.am): Add dependency to math.h.
22549         * modules/search (Makefile.am): Add dependency to search.h.
22550         * modules/signal (Makefile.am): Add dependency to signal.h.
22551         * modules/spawn (Makefile.am): Add dependency to spawn.h.
22552         * modules/stdio (Makefile.am): Add dependency to stdio.h.
22553         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
22554         * modules/string (Makefile.am): Add dependency to string.h.
22555         * modules/strings (Makefile.am): Add dependency to strings.h.
22556         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
22557         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
22558         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
22559         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
22560         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
22561         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
22562         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
22563         * modules/unistd (Makefile.am): Add dependency to unistd.h.
22564         * modules/wchar (Makefile.am): Add dependency to wchar.h.
22565
22566 2009-12-09  Bruno Haible  <bruno@clisp.org>
22567
22568         fchdir: Optimize away rpl_fstat when possible.
22569         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
22570         REPLACE_OPEN_DIRECTORY.
22571         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
22572
22573 2009-12-09  Bruno Haible  <bruno@clisp.org>
22574
22575         * lib/fchdir.c: Update comment.
22576
22577 2009-12-09  Bruno Haible  <bruno@clisp.org>
22578
22579         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
22580
22581 2009-12-08  Eric Blake  <ebb9@byu.net>
22582
22583         fchdir: avoid memory leak on re-registration.
22584         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
22585
22586 2009-12-08  Jim Meyering  <meyering@redhat.com>
22587
22588         init.sh: avoid Solaris 10 /bin/sh portability problem
22589         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
22590         sourced script:
22591           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
22592           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
22593           bar
22594         tests/init.sh relied on that, accepting a --set-path=DIR argument,
22595         and two tests used that idiom.
22596         * tests/init.sh: Update suggested usage comments.
22597         (path_prepend_): New function, to be used in place
22598         of the --src-path=DIR option.
22599         (setup_): Move PATH-prepending code into path_prepend_.
22600         * tests/test-pread.sh: Adapt to new usage.
22601         * tests/test-xalloc-die.sh: Likewise.
22602
22603 2009-12-08  Simon Josefsson  <simon@josefsson.org>
22604
22605         * doc/gnulib.texi (Glibc pty.h): Add.
22606         * doc/glibc-functions/forkpty.texi: Add.
22607         * doc/glibc-functions/openpty.texi: Add.
22608         Suggested by Bruno Haible.
22609
22610 2009-12-08  Eric Blake  <ebb9@byu.net>
22611
22612         fchdir: fix logic bugs
22613         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
22614         * tests/test-fchdir.c (main): Enhance test.
22615         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
22616         is in use.
22617
22618         dup2: fix logic bugs
22619         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
22620         REPLACE_DUP2 to decide when rpl_dup2 is needed.
22621         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
22622         exists.
22623         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
22624
22625 2009-12-07  Eric Blake  <ebb9@byu.net>
22626
22627         unlink: fix m4 detection
22628         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
22629
22630         unistd-safer: add unit test
22631         * modules/unistd-safer-tests: New file.
22632         * tests/test-dup-safer.c: Likewise.
22633         * tests/test-cloexec.c (setmode): Avoid compiler warning.
22634         * tests/test-dup2.c (setmode): Likewise.
22635         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
22636
22637         cloexec: preserve text vs. binary across dup_cloexec
22638         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
22639         mode.
22640         * modules/dup2-tests (Depends-on): Add binary-io.
22641         * modules/cloexec-tests (Depends-on): Likewise.
22642         * tests/test-dup2.c (setmode, is_mode): New helpers.
22643         (main): Add tests that translation mode is preserved.
22644         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
22645         Reported by Bruno Haible.
22646
22647         mgetgroups: reduce duplicate listings
22648         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
22649         resulting array.
22650         * tests/test-chown.h (test_chown): Simplify client.
22651         * tests/test-lchown.h (test_lchown): Likewise.
22652
22653 2009-12-06  Bruno Haible  <bruno@clisp.org>
22654
22655         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
22656         value.
22657
22658 2009-12-06  Bruno Haible  <bruno@clisp.org>
22659
22660         * lib/progname.c: Include stdio.h, stdlib.h.
22661         (set_program_name): Reject a NULL argument.
22662
22663 2009-12-05  Eric Blake  <ebb9@byu.net>
22664
22665         pipe2-safer: new module
22666         * modules/pipe2-safer: New file.
22667         * lib/unistd-safer.h (pipe2_safer): New prototype.
22668         * lib/unistd--.h (pipe2): New wrapper.
22669         * lib/pipe-safer.c (pipe2_safer): New function.
22670         * modules/pipe (Depends-on): Add pipe2-safer.
22671         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
22672
22673         stdlib-safer: preserve cloexec flag for mkostemp[s]
22674         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
22675         fd_safer_flag.
22676
22677         unistd-safer: allow preservation of cloexec status via flag
22678         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
22679         prototypes.
22680         * lib/dup-safer.c (dup_safer_flag): New function.
22681         * lib/fd-safer.c (fd_safer_flag): Likewise.
22682         * modules/cloexec (configure.ac): Set witness.
22683
22684         test-dup2: enhance test
22685         * modules/dup2-tests (Depends-on): Add cloexec.
22686         * tests/test-dup2.c (main): Enhance test.
22687
22688         cloexec: add dup_cloexec
22689         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
22690         header and comments.
22691         * lib/cloexec.c (set_cloexec_flag): Add comments.
22692         (dup_cloexec): New function, with mingw implementation borrowed
22693         from...
22694         * lib/w32spawn.h (dup_noinherit): ...here.
22695         * modules/execute (Depends-on): Add cloexec.
22696         * modules/pipe (Depends-on): Likewise.
22697         * modules/cloexec (Depends-on): Add dup2.
22698         * modules/cloexec-tests (Files): New file.
22699         * tests/test-cloexec.c: Likewise.
22700
22701         test-xalloc-die: fix test for mingw
22702         * modules/xalloc-die-tests (Files): Add tests/init.sh.
22703         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
22704         directory and .exe suffix off argv[0] output.
22705
22706         test-fseeko: fix test for mingw
22707         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
22708         than undefining fseek, so test will pass on mingw.
22709
22710 2009-12-05  Bruno Haible  <bruno@clisp.org>
22711
22712         * lib/progname.h (set_program_name): Clarify specification.
22713         * lib/progname.c (set_program_name): Likewise.
22714         Reported by Jim Meyering.
22715
22716 2009-12-05  Jim Meyering  <meyering@redhat.com>
22717
22718         maint.mk: backslash-escape parens in default regexp
22719         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
22720         backslash-escape the literal parentheses.
22721
22722         maint.mk: news-date-check: use grep -E
22723         * top/maint.mk (today): Define a Make variable, not a...
22724         (news-date-check): ...shell variable.
22725         (news-date-regexp): Use the Make variable.
22726         Use grep's -E option.  Change the failing diagnostic to mention
22727         the variable, $(news-date-regexp).
22728
22729 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
22730
22731         maintainer-makefile: allow customization of NEWS entry format
22732         * top/maint.mk (news-date-regexp): New overridable variable.
22733         (news-date-check): Use it.
22734
22735 2009-12-04  Eric Blake  <ebb9@byu.net>
22736
22737         mgetgroups: add xgetgroups, and avoid ENOSYS failures
22738         * lib/mgetgroups.h (xgetgroups): New prototype.
22739         * lib/mgetgroups.c (xgetgroups): New wrapper.
22740         (mgetgroups): Handle ENOSYS.
22741         * modules/mgetgroups (Depends-on): Add realloc.
22742         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
22743
22744         mgetgroups: avoid argument promotion issues with -1
22745         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
22746         for invalid gid_t.
22747         * tests/test-chown.h (getegid, test_chown): Likewise.
22748         * tests/test-lchown.h (getegid, test_lchown): Likewise.
22749
22750 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
22751
22752         exclude: Fix header file problems.
22753         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
22754
22755 2009-12-01  Jim Meyering  <meyering@redhat.com>
22756
22757         fts: fts_open: do not let an empty string cause immediate failure
22758         This is required in support of GNU rm, for which the command
22759         "rm A '' B" must process and remove both A and B, in spite of
22760         the empty string argument.
22761         * lib/fts.c (fts_open): Do not let the presence of an empty string
22762         cause fts_open to fail immediately.  Most fts-using tools must be
22763         able to process all arguments, in order, and can be expected to
22764         diagnose such arguments themselves.
22765
22766 2009-11-30  Eric Blake  <ebb9@byu.net>
22767
22768         utimens: fix compilation error
22769         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
22770         Declare variable at right scope.
22771
22772 2009-11-29  Jim Meyering  <meyering@redhat.com>
22773
22774         bootstrap: handle perl-5.11's changed --version output
22775         * build-aux/bootstrap (get_version): Handle perl separately,
22776         since perl-5.11's --version output is different.
22777
22778 2009-11-28  Jim Meyering  <meyering@redhat.com>
22779
22780         userspec: depend on the inttostr module, too
22781         * modules/userspec (Depends-on): Add inttostr.
22782
22783         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
22784         * lib/userspec.c (parse_with_separator): Do not accept a user ID
22785         number of MAXUID when it evaluates to (uid_t) -1.
22786         Likewise for group ID.  Reported by Matt McCutchen in
22787         <http://savannah.gnu.org/bugs/?28113>
22788
22789         userspec: reformat to use spaces, not TABs
22790         * lib/userspec.c: Expand TABs to spaces.
22791         Add Emacs' "indent-tabs-mode: nil" hint.
22792
22793 2009-11-27  Eric Blake  <ebb9@byu.net>
22794
22795         getopt-gnu: flush out another BSD bug
22796         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
22797         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
22798         flush out BSD bug.
22799         * tests/test-getopt.h (test_getopt): End lists with NULL.
22800         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22801         (test_getopt_long_posix): Enhance test.
22802         * modules/getopt-posix-tests (Depends-on): Add stdbool.
22803         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
22804         getopt-gnu.
22805         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22806         Likewise.
22807
22808 2009-11-27  Simon Josefsson  <simon@josefsson.org>
22809
22810         * modules/idpriv-droptemp-tests (Notice): Fix text.
22811
22812 2009-11-27  Jim Meyering  <meyering@redhat.com>
22813
22814         test-xalloc-die: avoid spurious failure due to libtool argv difference
22815         In a libtool-enabled project, this test would fail due to a difference
22816         in the emitted program name, e.g.,
22817         -test-xalloc-die: memory exhausted
22818         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
22819         Use program to avoid that.
22820         * modules/xalloc-die-tests (Depends-on): Add progname.
22821         * tests/test-xalloc-die.c: Include progname.h".
22822         (program_name): Remove decl.
22823         (main): Call set_program_name.
22824         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
22825
22826 2009-11-26  Richard Jones  <rjones@redhat.com>
22827
22828         w32sock: leave win32 error in place.
22829         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
22830
22831 2009-11-26  Eric Blake  <ebb9@byu.net>
22832
22833         init.sh: suggest to use skip_ and fail_ functions in comments
22834         * tests/init.sh: Add a sentence.
22835
22836 2009-11-25  Bruno Haible  <bruno@clisp.org>
22837
22838         init.sh: add documentation in comments
22839         * tests/init.sh: Add some developer and user documentation.
22840
22841 2009-11-26  Jim Meyering  <meyering@redhat.com>
22842
22843         init.sh: accommodate even those who specify bogus srcdir manually
22844         * tests/init.sh: Normally, srcdir is guaranteed by automake and
22845         configure-time tests to be sanitized, so that there is no need to
22846         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
22847         (with no double quotes) suffices.  However, since tests may be
22848         invoked manually, and since you may explicitly set srcdir to the
22849         name of a directory containing spaces, do quote its uses here.
22850         * tests/test-pread.sh: Likewise.
22851         Suggested by Bruno Haible.
22852
22853         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
22854         * tests/test-pread.sh: Write no data into the pipe, because
22855         test-pread actually reads none.  This avoids a diagnostic,
22856         "bash: echo: write error: Broken pipe", that arises in the unusual
22857         event something is ignoring SIGPIPE, and might be interpreted
22858         as some sort of failure.  Reported by Bruno Haible.
22859
22860 2009-11-25  Jim Meyering  <meyering@redhat.com>
22861
22862         test-pread: cover failure with ESPIPE and EINVAL
22863         * tests/test-pread.c (main): Test for failure, too.
22864         * tests/test-pread.sh: Invoke with stdin on a pipe.
22865         Suggested by Eric Blake.
22866
22867         pread: improvement and fix
22868         * modules/pread (Depends-on): Depend on lseek, for portability to
22869         e.g., mingw.  Suggested by Eric Blake.
22870         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
22871
22872         unistd.in.h: correct declaration of pread
22873         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
22874         Reported by Richard W.M. Jones.
22875
22876         test-pread.sh: distribute the test script
22877         * modules/pread-tests (Files): Include test-pread.sh.
22878
22879         test-pread.sh: clean up
22880         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
22881         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
22882         That is unnecessary, since it's always ".".
22883         Suggestion from Eric Blake.
22884
22885         test-pread.sh: make executable
22886         * tests/test-pread.sh: Set executable bit.
22887         Reported by Eric Blake.
22888
22889         correct typo in test-pread.sh
22890         * tests/test-pread.sh: Add #! line.
22891
22892         test pread
22893         * tests/test-pread.c: New file.
22894         * tests/test-pread.sh: Likewise.
22895         * modules/pread-tests: Likewise.
22896
22897         pread: new module
22898         * modules/pread: New file.
22899         * lib/unistd.in.h (pread): Define/declare.
22900         * lib/pread.c (pread): New file.
22901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
22902         * modules/unistd (Makefile.am): Substitute witnesses.
22903         * doc/posix-functions/pread.texi (pread): Update.
22904         * MODULES.html.sh: Add pread.
22905
22906 2009-11-25  Jim Meyering  <meyering@redhat.com>
22907
22908         tests/init.sh: new file to be used via most *.sh tests
22909         * tests/init.sh: New file.
22910
22911 2009-11-25  Eric Blake  <ebb9@byu.net>
22912
22913         utimens: work around older Linux failure with symlinks
22914         * lib/utimens.c (lutimensat_works_really): New variable.
22915         (fdutimens, lutimens): Use it to manage kernels that support
22916         nanosecond times on files, but not on symlinks.
22917         Reported by Ondřej Vašík.
22918
22919         utimes: fix configure grammar
22920         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
22921
22922 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
22923
22924         regex: Fix fastmap for multibyte character ranges.
22925         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
22926         characters when a multibyte character range is included.
22927
22928 2009-11-22  Andy Wingo  <wingo@pobox.com>
22929
22930         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
22931         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
22932
22933 2009-11-24  Bruno Haible  <bruno@clisp.org>
22934
22935         doc: Most *_l functions exist in MacOS X 10.5.
22936         * doc/posix-functions/duplocale.texi: Update platforms list.
22937         * doc/posix-functions/freelocale.texi: Likewise.
22938         * doc/posix-functions/newlocale.texi: Likewise.
22939         * doc/posix-functions/uselocale.texi: Likewise.
22940         * doc/posix-functions/isalnum_l.texi: Likewise.
22941         * doc/posix-functions/isalpha_l.texi: Likewise.
22942         * doc/posix-functions/isblank_l.texi: Likewise.
22943         * doc/posix-functions/iscntrl_l.texi: Likewise.
22944         * doc/posix-functions/isdigit_l.texi: Likewise.
22945         * doc/posix-functions/isgraph_l.texi: Likewise.
22946         * doc/posix-functions/islower_l.texi: Likewise.
22947         * doc/posix-functions/isprint_l.texi: Likewise.
22948         * doc/posix-functions/ispunct_l.texi: Likewise.
22949         * doc/posix-functions/isspace_l.texi: Likewise.
22950         * doc/posix-functions/isupper_l.texi: Likewise.
22951         * doc/posix-functions/iswalnum_l.texi: Likewise.
22952         * doc/posix-functions/iswalpha_l.texi: Likewise.
22953         * doc/posix-functions/iswblank_l.texi: Likewise.
22954         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22955         * doc/posix-functions/iswctype_l.texi: Likewise.
22956         * doc/posix-functions/iswdigit_l.texi: Likewise.
22957         * doc/posix-functions/iswgraph_l.texi: Likewise.
22958         * doc/posix-functions/iswlower_l.texi: Likewise.
22959         * doc/posix-functions/iswprint_l.texi: Likewise.
22960         * doc/posix-functions/iswpunct_l.texi: Likewise.
22961         * doc/posix-functions/iswspace_l.texi: Likewise.
22962         * doc/posix-functions/iswupper_l.texi: Likewise.
22963         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22964         * doc/posix-functions/isxdigit_l.texi: Likewise.
22965         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
22966         * doc/posix-functions/strcasecmp_l.texi: Likewise.
22967         * doc/posix-functions/strcoll_l.texi: Likewise.
22968         * doc/posix-functions/strfmon_l.texi: Likewise.
22969         * doc/posix-functions/strftime_l.texi: Likewise.
22970         * doc/posix-functions/strncasecmp_l.texi: Likewise.
22971         * doc/posix-functions/strxfrm_l.texi: Likewise.
22972         * doc/posix-functions/tolower_l.texi: Likewise.
22973         * doc/posix-functions/toupper_l.texi: Likewise.
22974         * doc/posix-functions/towctrans_l.texi: Likewise.
22975         * doc/posix-functions/towlower_l.texi: Likewise.
22976         * doc/posix-functions/towupper_l.texi: Likewise.
22977         * doc/posix-functions/wcscoll_l.texi: Likewise.
22978         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22979         * doc/posix-functions/wctrans_l.texi: Likewise.
22980         * doc/posix-functions/wctype_l.texi: Likewise.
22981         * doc/glibc-functions/strptime_l.texi: Likewise.
22982         * doc/glibc-functions/strtod_l.texi: Likewise.
22983         * doc/glibc-functions/strtof_l.texi: Likewise.
22984         * doc/glibc-functions/strtol_l.texi: Likewise.
22985         * doc/glibc-functions/strtold_l.texi: Likewise.
22986         * doc/glibc-functions/strtoll_l.texi: Likewise.
22987         * doc/glibc-functions/strtoul_l.texi: Likewise.
22988         * doc/glibc-functions/strtoull_l.texi: Likewise.
22989         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22990         * doc/glibc-functions/wcstod_l.texi: Likewise.
22991         * doc/glibc-functions/wcstof_l.texi: Likewise.
22992         * doc/glibc-functions/wcstol_l.texi: Likewise.
22993         * doc/glibc-functions/wcstold_l.texi: Likewise.
22994         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22995         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22996         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22997
22998 2009-11-24  Bruno Haible  <bruno@clisp.org>
22999
23000         duplocale: Fix logic bug.
23001         * lib/duplocale.c: Don't include <langinfo.h>.
23002         (_NL_LOCALE_NAME): Remove macro.
23003         (rpl_duplocale): Use setlocale instead of nl_langinfo.
23004         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
23005
23006 2009-11-23  Jim Meyering  <meyering@redhat.com>
23007
23008         test-update-copyright: don't hard-code /usr/bin/perl
23009         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
23010         perl to print the current year.  Gilles Espinasse reported that
23011         the replaced use of perl was hard-coded as /usr/bin/perl.
23012
23013 2009-11-23  Bruno Haible  <bruno@clisp.org>
23014
23015         duplocale: Add support for glibc 2.3.x.
23016         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
23017
23018 2009-11-22  Bruno Haible  <bruno@clisp.org>
23019
23020         vasnprintf: Tiny optimization.
23021         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
23022         MacOS X.
23023
23024 2009-11-22  Bruno Haible  <bruno@clisp.org>
23025
23026         Tests for module 'duplocale'.
23027         * modules/duplocale-tests: New file.
23028         * tests/test-duplocale.c: New file.
23029
23030         New module 'duplocale'.
23031         * m4/duplocale.m4: New file.
23032         * lib/locale.in.h (duplocale): New declaration.
23033         * lib/duplocale.c: New file.
23034         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
23035         gl_LOCALE_H_DEFAULTS): New macros.
23036         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
23037         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
23038         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
23039         REPLACE_DUPLOCALE.
23040         * modules/duplocale: New file.
23041         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
23042
23043 2009-11-22  Bruno Haible  <bruno@clisp.org>
23044
23045         * modules/locale-tests (configure.ac): Test for newlocale function.
23046         * tests/test-locale.c: When the system has extended locale functions,
23047         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
23048
23049         locale: Make locale_t available when possible.
23050         * lib/locale.in.h: Include <xlocale.h> when it exists.
23051         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
23052         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
23053         * modules/locale (Depends-on): Add extensions.
23054         (Makefile.am): Also substitute HAVE_XLOCALE_H.
23055         * doc/posix-headers/locale.texi: Document the problem with locale_t.
23056
23057 2009-11-22  Bruno Haible  <bruno@clisp.org>
23058
23059         Add comments.
23060         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
23061         invocation.
23062         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23063         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23064         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23065
23066 2009-11-22  Bruno Haible  <bruno@clisp.org>
23067
23068         error: account for the possibility of freopen (stdout).
23069         * lib/error.c: Include <unistd.h>.
23070         (flush_stdout): New function, extracted from error and error_at_line.
23071         Determine stdout's fd dynamically.
23072         (error, error_at_line): Invoke flush_stdout.
23073         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
23074         * modules/error (Depends-on): Add unistd.
23075
23076 2009-11-22  Bruno Haible  <bruno@clisp.org>
23077
23078         diffseq: Add comment.
23079         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
23080
23081 2009-11-22  Jim Meyering  <meyering@redhat.com>
23082
23083         c-stack: avoid defining an unused static function
23084         * lib/c-stack.c (find_stack_direction): Do not define this function
23085         when it will not be used.
23086
23087         diffseq: avoid spurious gcc warnings
23088         * lib/diffseq.h (IF_LINT2): Define.
23089         (compareseq): Use it to initialize two members of "part".
23090         This avoids two used-uninitialized warnings.
23091
23092 2009-11-21  Jim Meyering  <meyering@redhat.com>
23093
23094         c-stack: avoid "ignoring return value of `write'" warning
23095         * lib/c-stack.c: Include "ignore-value.h".
23096         (die): Explicitly ignore each write return value.
23097         * modules/c-stack (Depends-on): Add ignore-value.
23098
23099 2009-11-21  Bruno Haible  <bruno@clisp.org>
23100
23101         diffseq: reduce scope of variable 'best'.
23102         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
23103         variable, earlier used for two different purposes.
23104
23105 2009-11-21  Jim Meyering  <meyering@redhat.com>
23106
23107         diffseq: remove useless assignment to "best"
23108         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
23109         assignment.  At that point "best" is already guaranteed to be zero.
23110
23111 2009-11-20  Eric Blake  <ebb9@byu.net>
23112
23113         build: mention ftp redirector in release announcements
23114         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
23115         values that used to come from cfg.mk; mention FTP redirect URL.
23116         * build-aux/announce-gen: Mention the mirror list.
23117         Suggested by Karl Berry.
23118
23119         nanosleep: improve port to mingw
23120         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
23121         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
23122         LIB_NANOSLEEP, but only when needed.
23123         * modules/select (Link): Document LIBSOCKET.
23124         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
23125         enough.
23126
23127         nanosleep: work around cygwin bug
23128         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
23129         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
23130         bug.
23131         (getnow): Delete, not needed.
23132         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
23133         LIB_CLOCK_GETTIME.
23134         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
23135         clock-time, gettime.
23136         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
23137         bug.
23138         * modules/nanosleep-tests: New test.
23139         * tests/test-nanosleep.c: New file.
23140
23141         sleep: work around cygwin bug
23142         * lib/sleep.c (rpl_sleep): Work around the bug.
23143         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
23144         (gl_PREREQ_SLEEP): Delete unused macro.
23145         * modules/sleep (Depends-on): Add verify.
23146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23147         * modules/unistd (Makefile.am): Substitute witness.
23148         * lib/unistd.in.h (sleep): Update prototype.
23149         * doc/posix-functions/sleep.texi (sleep): Document the bug.
23150         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
23151         * modules/sleep-tests (Depends-on): Check for alarm.
23152
23153 2009-11-20  Jim Meyering  <meyering@redhat.com>
23154
23155         maint.mk: improve sc_prohibit_magic_number_exit
23156         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
23157         so it does not match uses like System.exit(1).
23158         Add comments showing how to correct all offenders.
23159
23160 2009-11-19  Eric Blake  <ebb9@byu.net>
23161
23162         xalloc-die-tests: add missing library
23163         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
23164
23165         test-xvasprintf: silence compiler warnings
23166         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
23167         empty string from gcc.
23168
23169 2009-11-19  Jim Meyering  <meyering@redhat.com>
23170
23171         xfreopen: new module, from coreutils
23172         * modules/xfreopen: New module.
23173         * lib/xfreopen.c: New file.
23174         * lib/xfreopen.h: New file.
23175         * MODULES.html.sh (File stream based Input/Output"): Add it.
23176
23177 2009-11-19  Eric Blake  <ebb9@byu.net>
23178
23179         manywarnings: depend on warnings
23180         * modules/manywarnings (Depends-on): Add warnings.
23181
23182         build: avoid compiler warnings
23183         * lib/select.c (rpl_select): Delete unused variable.
23184         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
23185
23186 2009-11-18  Eric Blake  <ebb9@byu.net>
23187
23188         tests: avoid false negative with --with-packager
23189         * tests/test-version-etc.sh: Discard packager information.
23190         * tests/test-argp-version-etc-1.sh: Likewise.
23191         Reported by Mike Frysinger.
23192
23193         utimens: fix regression on Solaris
23194         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
23195         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
23196         can only change fd timestamps via futimesat.  Instead, use an
23197         additional witness macro to avoid BSD bug.
23198         Reported by Jim Meyering.
23199
23200 2009-11-17  Eric Blake  <ebb9@byu.net>
23201
23202         usleep: use it to simplify tests
23203         * modules/stat-time-tests (Depends-on): Add usleep.
23204         (configure.ac): Drop usleep check.
23205         * modules/chown-tests (Depends-on, configure.ac): Likewise.
23206         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
23207         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
23208         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
23209         * modules/openat-tests (Depends-on, configure.ac): Likewise.
23210         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
23211         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
23212         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
23213         Likewise.
23214         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
23215         * tests/test-lchown.h (nap): Likewise.
23216         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
23217         * tests/test-stat-time.c (nap): Likewise.
23218         * tests/test-utimens-common.h (nap): Update comments.
23219
23220         usleep: new module
23221         * modules/usleep: New file.
23222         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23223         * lib/usleep.c (usleep): Likewise.
23224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23225         * modules/unistd (Makefile.am): Substitute witnesses.
23226         * lib/unistd.in.h (usleep): Add declaration.
23227         * doc/pastposix-functions/usleep.texi (usleep): Document this.
23228         * MODULES.html.sh (Date and time): Likewise.
23229         * modules/usleep-tests (Depends-on): New test.
23230         * tests/test-usleep.c: New file.
23231
23232         chown: work around OpenBSD bug
23233         * lib/chown.c (rpl_chown): Work around the bug.
23234         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
23235         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
23236         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
23237         * modules/chown (Depends-on): Add stdbool.
23238         * modules/lchown (Depends-on): Likewise.
23239         * doc/posix-functions/chown.texi (chown): Document the bug.
23240         * doc/posix-functions/lchown.texi (lchown): Likewise.
23241         * tests/test-lchown.h (test_chown): Relax test.
23242
23243         mkstemp: avoid conflict with C++ keyword template
23244         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
23245         * lib/mkostemp.c (mkostemp): Likewise.
23246         * lib/mkostemps.c (mkostemps): Likewise.
23247         * lib/mkstemp.c (mkstemp): Likewise.
23248         * lib/mkstemps.c (mkstemps): Likewise.
23249
23250         xalloc-die-tests: optimize
23251         * tests/test-xalloc-die.sh: Reduce number of processes.
23252
23253 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23254
23255         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
23256         patch from ludo@gnu.org (Ludovic Courtès).
23257
23258 2009-11-17  Jim Meyering  <meyering@redhat.com>
23259
23260         version-etc: use proper license string
23261         * modules/version-etc (License): Use LGPL, not LGPLv3+.
23262         * modules/version-etc-fsf: Likewise.
23263
23264 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23265
23266         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
23267         printed to stdout.  Deal with EOL differences.
23268
23269 2009-11-17  Eric Blake  <ebb9@byu.net>
23270
23271         unsetenv: work around Solaris bug
23272         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
23273         * lib/unsetenv.c (rpl_unsetenv): Work around it.
23274         Reported by Jim Meyering.
23275
23276         vasnprintf: avoid compiler warnings
23277         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
23278         variables.
23279         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
23280
23281 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23282
23283         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
23284         settings since xalloc-die is no longer the self test,
23285         xalloc-die.sh is.
23286
23287 2009-11-17  Jim Meyering  <meyering@redhat.com>
23288
23289         test-xalloc-die.sh: make the code agree with the commit log
23290         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
23291         at the end, just in case you happen to have a test-xalloc-die
23292         program in some other PATH directory.
23293
23294         test-xalloc-die.sh: fix a portability bug
23295         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
23296         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
23297         Otherwise, argv[0] (as often seen in diagnostics) would be too
23298         system-dependent, sometimes with, and sometimes without the leading "./".
23299
23300         version-etc-fsf: relax license to LGPLv3+
23301         * modules/version-etc-fsf (License): Relax license.
23302
23303 2009-11-16  Eric Blake  <ebb9@byu.net>
23304
23305         xalloc-die-tests: avoid printing null pointer
23306         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
23307         shell script.
23308         * tests/test-xalloc-die.c (program_name): Declare.
23309         * tests/test-xalloc-die.sh (tmpfiles): New file.
23310
23311         setenv, unsetenv: work around various bugs
23312         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
23313         (setenv) [HAVE_SETENV]: Work around bugs.
23314         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
23315         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
23316         for bugs.
23317         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
23318         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
23319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
23320         * modules/stdlib (Makefile.am): Update substitutions.
23321         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
23322         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
23323         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23324         * modules/setenv-tests: New test.
23325         * modules/unsetenv-tests: Likewise.
23326         * tests/test-setenv.c: New file.
23327         * tests/test-unsetenv.c: Likewise.
23328
23329 2009-11-16  Jim Meyering  <meyering@redhat.com>
23330
23331         version-etc: relax license to LGPLv3+
23332         * modules/version-etc (License): Relax license.
23333
23334         better AC_REQUIRE expanded-before-required-warning avoidance
23335         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
23336         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
23337         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
23338         which is no longer needed.
23339
23340 2009-11-16  Eric Blake  <ebb9@byu.net>
23341
23342         test-freading: clean up temporary file
23343         * tests/test-freading.c (main): Remove file on success, and use
23344         ASSERT more liberally.
23345         Reported by Jim Meyering.
23346
23347 2009-11-16  Jim Meyering  <meyering@redhat.com>
23348
23349         avoid new AC_REQUIRE expanded-before-required warnings
23350         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
23351         merely using it.
23352         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
23353         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
23354
23355 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23356
23357         * tests/test-xalloc-die.c: New file.
23358         * modules/xalloc-die-tests: New file.
23359         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
23360         XFAIL_TESTS so it can be appended by modules.
23361
23362 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23363
23364         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
23365         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
23366
23367 2009-11-14  Eric Blake  <ebb9@byu.net>
23368
23369         fnmatch: avoid compiler warning
23370         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
23371         to silence compiler warning about mismatch signedness in ?:.
23372         Reported by Robert Millan.
23373
23374         intprops: add double-inclusion guard
23375         * lib/intprops.h: Allow idempotent includes.
23376         Suggested by Bruce Korb.
23377
23378         openat: detect Solaris fchownat bug
23379         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
23380         penalizing glibc chownat when only lchownat is broken.
23381         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
23382         trailing slash bugs.
23383         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
23384         * modules/openat-tests (Files): Include more files.
23385         (Depends-on): Add mgetgroups, sleep, stat-time.
23386         (configure.ac): Add additional checks.
23387         (Makefile.am): Build new test.
23388         * tests/test-fchownat.c: New file.
23389
23390         lchown: detect Solaris and FreeBSD bug
23391         * lib/lchown.c (rpl_lchown): Work around bug.
23392         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
23393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23394         * modules/unistd (Makefile.am): Populate it.
23395         * lib/unistd.in.h (lchown): Update declaration.
23396         * doc/posix-functions/lchown.texi (lchown): Document the bug.
23397         * modules/lchown-tests: New file.
23398         * tests/test-lchown.h (test_lchown): Likewise.
23399         * tests/test-lchown.c (main): Likewise.
23400
23401         chown: detect Solaris and FreeBSD bug
23402         * lib/chown.c (rpl_chown): Work around bug.
23403         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
23404         (gl_PREREQ_CHOWN): Delete.
23405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23406         * modules/unistd (Makefile.am): Populate it.
23407         * lib/unistd.in.h (chown): Update declaration.
23408         * lib/lchown.c (chown): Update client.
23409         * modules/lchown (Depends-on): Add lstat.
23410         * doc/posix-functions/chown.texi (chown): Document the bug.
23411         * doc/posix-functions/getgroups.texi (getgroups): Document
23412         getgroups pitfall.
23413         * modules/chown-tests: New file.
23414         * tests/test-chown.h (test_chown): Likewise.
23415         * tests/test-chown.c (main): Likewise.
23416
23417 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
23418
23419         gnulib-tool: correctly detect absence of m4 directories
23420         * gnulib-tool: Avoid extra newline on data passed to wc -l.
23421
23422 2009-11-14  Jim Meyering  <meyering@redhat.com>
23423
23424         maint.mk: Prohibit inclusion of "xalloc.h" without use.
23425         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23426
23427 2009-11-14  John W. Eaton  <jwe@gnu.org>
23428
23429         strftime.h: wrap funtion declaration in extern "C" block
23430         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
23431
23432 2009-11-13  Eric Blake  <ebb9@byu.net>
23433
23434         getgroups: avoid compiler warning
23435         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
23436
23437         getgroups: work around FreeBSD bug
23438         * lib/getgroups.c (rpl_getgroups): Work around the bug.
23439         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
23440         * doc/posix-functions/getgroups.texi (getgroups): Document it.
23441         * tests/test-getgroups.c (main): Fix buffer overrun.
23442
23443         getgroups: avoid compilation failure
23444         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
23445         * modules/getgroups (Depends-on): Add stdint.
23446
23447 2009-11-13  Jim Meyering  <meyering@redhat.com>
23448
23449         test-getgroups: avoid compilation failure
23450         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
23451
23452 2009-11-13  Eric Blake  <ebb9@byu.net>
23453
23454         mgetgroups: new module, taken from coreutils
23455         * modules/mgetgroups: New file.
23456         * lib/mgetgroups.h: Likewise.
23457         * lib/mgetgroups.c (mgetgroups): Likewise.
23458         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
23459         * MODULES.html.sh (Users and groups): Mention it.
23460
23461         getgroups: don't expose GETGROUPS_T to user
23462         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
23463         an element at a time if GETGROUPS_T is wrong size.
23464         * lib/getugroups.h (getugroups): Change signature.
23465         * lib/unistd.in.h (getgroups): Likewise.
23466         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
23467         signature needs fixing.
23468         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
23469         AC_TYPE_GETGROUPS.
23470         * modules/group-member (Depends-on): Add getgroups.
23471         * lib/group-member.c (group_info, get_group_info): Use gid_t.
23472         (group_member): Rely on getgroups replacement.
23473         * lib/getugroups.c (getugroups): Use gid_t.
23474         * tests/test-getgroups.c (main): Likewise.
23475         * NEWS: Mention the signature change.
23476         * doc/posix-functions/getgroups.texi (getgroups): Mention the
23477         problem with signature.
23478         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
23479         GETGROUPS_T is still useful for setgroups.
23480
23481         getgroups, getugroups: provide stubs for mingw
23482         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
23483         * lib/getugroups.c (getugroups): Likewise.
23484         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
23485         function.  Modernize replacement scheme.
23486         (gl_PREREQ_GETGROUPS): Delete.
23487         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
23488         * modules/getgroups (configure.ac): Declare witness.
23489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23490         * modules/unistd (Depends-on): Substitute witness.
23491         * lib/unistd.in.h (getgroups): Declare replacement.
23492
23493         getgroups: avoid calling exit
23494         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
23495         drop xalloc.
23496         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
23497         dependencies.
23498         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
23499         exiting, in the rare case of malloc failure.
23500
23501         getgroups: fix logic error
23502         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
23503         has more than 20 groups.
23504         * modules/getgroups-tests: New test.
23505         * tests/test-getgroups.c: New file.
23506
23507 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23508
23509         * tests/test-base64.c: Improve.
23510
23511 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23512
23513         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
23514         Blake <ebb9@byu.net>.
23515
23516 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23517
23518         * tests/test-xvasprintf.c: Add %s%s related checks.
23519
23520 2009-11-12  Eric Blake  <ebb9@byu.net>
23521
23522         version-etc: match standards.texi style
23523         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
23524         and use <> only for URLs.
23525
23526 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
23527
23528         fts: do not fail on a submount during traversal
23529         * lib/fts.c (fts_build): Read the stat info again after opening
23530         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
23531         Original report at http://bugzilla.redhat.com/501848.
23532
23533 2009-11-12  Jim Meyering  <meyering@redhat.com>
23534
23535         bootstrap: sync from coreutils
23536         * build-aux/bootstrap (bootstrap_epilogue): New function.
23537         Use git_modules_config in one more place.  This make bootstrap's
23538         --gnulib-srcdir option more useful for testing.
23539
23540         bootstrap: generalize autoheader check
23541         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
23542         AC_CONFIG_HEADERS.
23543
23544 2009-11-11  Eric Blake  <ebb9@byu.net>
23545
23546         mkfifoat: use new modules for Solaris and BSD bugs
23547         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
23548         * lib/mkfifoat.c (mknodat): Split...
23549         * lib/mknodat.c (mknodat): ...into new file.
23550         * modules/mkfifoat (Files): Ship new file.
23551         (Depends-on): Add mkfifo, mknod.
23552         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
23553         (Depends-on): Add symlink.
23554         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
23555         redundant with test_mkfifo.h.
23556         (do_mkfifoat, do_mknodat): New helpers.
23557
23558         mknod: new module
23559         * modules/mknod: New file.
23560         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
23561         * lib/mknod.c (mknod): Likewise.
23562         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23563         defaults.
23564         * modules/sys_stat (Makefile.am): Substitute them.
23565         * lib/sys_stat.in.h (mknod): Declare replacement.
23566         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23567         Document it.
23568         * doc/posix-functions/mknod.texi (mknod): Likewise.
23569         * modules/mknod-tests: New test.
23570         * tests/test-mknod.c: Likewise.
23571
23572         mkfifo: new module
23573         * modules/mkfifo: New file.
23574         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23575         * lib/mkfifo.c (mkfifo): Likewise.
23576         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23577         defaults.
23578         * modules/sys_stat (Makefile.am): Substitute them.
23579         * lib/sys_stat.in.h (mkfifo): Declare replacement.
23580         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23581         Document it.
23582         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
23583         * modules/mkfifo-tests: New test.
23584         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
23585         from test-mkfifoat.c.
23586         * tests/test-mkfifo.c: New file.
23587
23588         readlink: detect FreeBSD bug
23589         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
23590         slash on symlink.
23591         * doc/posix-functions/readlink.texi (readlink): Document the bug.
23592         * tests/test-readlink.h (test_readlink): Enhance test.
23593
23594         symlink: detect FreeBSD bug
23595         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
23596         slash on symlink.
23597         * doc/posix-functions/symlink.texi (symlink): Document the bug.
23598         * tests/test-symlink.h (test_symlink): Enhance test.
23599
23600 2009-11-10  Eric Blake  <ebb9@byu.net>
23601
23602         link: detect FreeBSD bug
23603         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
23604         symlink.
23605         * doc/posix-functions/link.texi (link): Document the bug.
23606         * tests/test-link.h (test_link): Enhance test.
23607         * tests/test-linkat.c (main): Update caller.
23608
23609         unlink, remove: detect FreeBSD bug
23610         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
23611         slash on symlink.
23612         * doc/posix-functions/unlink.texi (unlink): Document the bug.
23613         * doc/posix-functions/remove.texi (remove): Likewise.
23614         * tests/test-unlink.h (test_unlink): Enhance test.
23615         * tests/test-remove.c (main): Likewise.
23616
23617 2009-11-09  Eric Blake  <ebb9@byu.net>
23618
23619         rename: detect FreeBSD bug
23620         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
23621         slash on symlink.
23622         * modules/renameat-tests (Depends-on): Add filenamecat.
23623         * tests/test-rename.h (test_rename): Allow one more errno.
23624         * tests/test-renameat.c (main): Likewise.
23625         * doc/posix-functions/rename.texi (rename): Document the bug.
23626
23627         open: detect FreeBSD bug
23628         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
23629         symlink.
23630         * doc/posix-functions/open.texi (open): Document the bug.
23631         * doc/posix-functions/utimes.texi (utimes): Likewise.
23632         * tests/test-open.h (test_open): Add parameters, and test symlink
23633         handling.
23634         * tests/test-open.c (main): Adjust caller.
23635         * tests/test-fcntl-safer.c (main): Likewise.
23636         * modules/open-tests (Depends-on): Add stdbool, symlink.
23637         * modules/fcntl-safer-tests (Depends-on): Likewise.
23638         * tests/test-openat.c (main): Add test-open tests.
23639
23640         stat: detect FreeBSD bug
23641         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
23642         symlink.
23643         * doc/posix-functions/stat.texi (stat): Document the bug.
23644         * tests/test-stat.h (test_stat_func): Add argument.
23645         * tests/test-stat.c (main): Adjust caller.
23646         * tests/test-fstatat.c (main): Likewise.
23647         * modules/stat-tests (Depends-on): Add stdbool, symlink.
23648         Reported by Jim Meyering.
23649
23650 2009-11-09  James Youngman  <jay@gnu.org>
23651
23652         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
23653         * lib/strftime.c: Correct placement of #include "ignore-value.h".
23654
23655 2009-11-08  Jim Meyering  <meyering@redhat.com>
23656
23657         utimens: remove invalid futimesat call
23658         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
23659         It used the file descriptor of the target file as the DIR_FD
23660         parameter and NULL as the file name.  That caused failure with
23661         errno == EFAULT on FreeBSD-8.0-rc2
23662
23663 2009-11-07  Eric Blake  <ebb9@byu.net>
23664
23665         fflush, freadseek: use fseeko, not fseek
23666         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
23667         (clear_ungetc_buffer): Avoid potential problems on large files.
23668         * lib/freadseek.c (freadseek): Likewise.
23669         * modules/freadseek (Depends-on): Add fseeko.
23670         * modules/fseek (configure.ac): Set a witness.
23671         * tests/test-fflush.c (main): Use fseeko.
23672         * tests/test-fpurge.c (fseek): Disable link warning.
23673         * tests/test-freadable.c (fseek): Likewise.
23674         * tests/test-freading.c (fseek): Likewise.
23675         * tests/test-fseeko.c (fseek): Likewise.
23676         * tests/test-ftell.c (fseek): Likewise.
23677         * tests/test-ftello.c (fseek): Likewise.
23678         * tests/test-fwritable.c (fseek): Likewise.
23679         * tests/test-fwriting.c (fseek): Likewise.
23680
23681 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23682
23683         * modules/memchr (Depends-on): Drop getpagesize dependency.
23684
23685 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23686
23687         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
23688         Reported by Ludovic Courtès.
23689         * build-aux/pmccabe2html: Improve example usage.
23690         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
23691
23692 2009-11-06  Jim Meyering  <meyering@redhat.com>
23693
23694         do-release-commit-and-tag: New module.
23695         Automate the release-commit and tag process.
23696         * build-aux/do-release-commit-and-tag: New script, from coreutils.
23697         * modules/do-release-commit-and-tag: New file.
23698         * MODULES.html.sh (Support for maintaining and releasing): Add it.
23699
23700 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23701
23702         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
23703         because test-select.c uses inet_pton.
23704
23705 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23706
23707         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
23708         GETADDRINFO_LIB.  Bump serial number.
23709         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
23710         Suggested by Eric Blake <ebb9@byu.net>.
23711
23712 2009-11-05  Eric Blake  <ebb9@byu.net>
23713
23714         strtod: detect darwin bug
23715         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
23716         Reported by Leo Davis.
23717
23718         freopen-safer: new module
23719         * modules/freopen-safer: New module.
23720         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
23721         * lib/freopen-safer.c (freopen_safer): New file.
23722         * lib/stdio-safer.h (freopen_safer): New declaration.
23723         * lib/stdio--.h (freopen): New override.
23724         * MODULES.html.sh (File stream based Input/Output): Mention it.
23725         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
23726         freopen-safer module.
23727         * doc/posix-functions/stderr.texi (stderr): Likewise.
23728         * doc/posix-functions/stdin.texi (stdin): Likewise.
23729         * doc/posix-functions/stdout.texi (stdout): Likewise.
23730         * modules/freopen-safer-tests: New test.
23731         * tests/test-reopen-safer.c: New file.
23732
23733 2009-11-05  Jim Meyering  <meyering@redhat.com>
23734
23735         maint.mk: Prohibit inclusion of "close-stream.h" without use.
23736         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23737
23738 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23739
23740         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
23741
23742 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23743
23744         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
23745
23746 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23747
23748         Fix link error.
23749         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23750         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23751
23752 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23753
23754         * tests/test-func.c: Also test value of __func__.
23755
23756 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23757
23758         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
23759         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
23760
23761 2009-11-05  Bruno Haible  <bruno@clisp.org>
23762
23763         Fix link error.
23764         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23765         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23766         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
23767
23768 2009-11-05  Bruno Haible  <bruno@clisp.org>
23769
23770         Tests for module 'inet_pton'.
23771         * modules/inet_pton-tests: New file.
23772         * tests/test-inet_pton.c: New file.
23773
23774 2009-11-05  Bruno Haible  <bruno@clisp.org>
23775
23776         Tests for module 'inet_ntop'.
23777         * modules/inet_ntop-tests: New file.
23778         * tests/test-inet_ntop.c: New file.
23779
23780 2009-11-04  Eric Blake  <ebb9@byu.net>
23781
23782         stdlib-safer: wrap all mkstemp variants
23783         * modules/mkostemp (configure.ac): Set witness.
23784         * modules/mkostemps (configure.ac): Likewise.
23785         * modules/mkstemps (configure.ac): Likewise.
23786         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
23787         (mkstemps_safer): Wrap more functions.
23788         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
23789         wrapping.
23790         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
23791         (mkstemps_safer): Implement the wrappers.
23792
23793         mkstemps, mkostemps: new modules
23794         * modules/mkostemps: New module.
23795         * modules/mkstemps: Likewise.
23796         * lib/mkostemps.c (mkostemps): New file.
23797         * lib/mkstemps.c (mkstemps): Likewise.
23798         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
23799         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
23800         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
23801         * modules/stdlib (Makefile.am): Substitute them.
23802         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
23803         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
23804         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23805         * doc/gnulib.texi (Glibc stdlib.h): Include them.
23806         * MODULES.html.sh (File system functions): Mention them.
23807
23808         tempname: resync from glibc
23809         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
23810         same values for __GT_FILE as glibc.  Abort even when assertions
23811         are disabled.
23812         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
23813         match its value otherwise.  Allow idempotent inclusion.
23814         * lib/mkdtemp.c (mkdtemp): Adjust caller.
23815         * lib/mkostemp.c (mkostemp): Likewise.
23816         * lib/mkstemp.c (mkstemp): Likewise.
23817         * lib/tmpfile.c (tmpfile): Likewise.
23818         * NEWS: Document this.
23819
23820         utimens: fix use of futimens on older Linux
23821         * lib/utimens.c (fdutimens): Use updated, rather than original,
23822         timespec to avoid bug in older Linux kernel.
23823         Reported by Simon Josefsson.
23824
23825 2009-11-04  Bruno Haible  <bruno@clisp.org>
23826
23827         Make num_processors more flexible and consistent.
23828         * lib/nproc.h (enum nproc_query): New type.
23829         (num_processors): Add a 'query' argument.
23830         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
23831         (num_processors): Add a 'query' argument. Test the value of the
23832         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
23833         mingw, count the number of CPUs available for the current process.
23834         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
23835         Check for sched_getaffinity and sched_getaffinity_np.
23836         * modules/nproc (Depends-on): Add c-ctype, extensions.
23837         * NEWS: Mention the change.
23838
23839 2009-11-03  Bruno Haible  <bruno@clisp.org>
23840
23841         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
23842
23843 2009-11-03  Jim Meyering  <meyering@redhat.com>
23844
23845         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
23846         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
23847         if it is defined.
23848
23849 2009-11-02  Eric Blake  <ebb9@byu.net>
23850
23851         mktime, timegm: share common declaration
23852         * lib/mktime-internal.h: New file.
23853         * lib/mktime.c: Use it rather than open-coding a declaration.
23854         * lib/timegm.c: Likewise.
23855         * modules/mktime (Files): Ship it.
23856         * modules/timegm (Files): Likewise.
23857         Suggested by Bruno Haible.
23858
23859         test-update-copyright: update test to match script changes
23860         * tests/test-update-copyright.sh: Avoid hard-coding perl
23861         location.  Don't update *.bak created by earlier runs.
23862
23863 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23864             Simon Josefsson  <simon@josefsson.org>
23865             Bruno Haible  <bruno@clisp.org>
23866
23867         Fix link error on Solaris 8.
23868         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
23869         also in libnsl. Define also INET_PTON_LIB.
23870         * modules/inet_pton (Link): New section.
23871
23872 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23873             Bruno Haible  <bruno@clisp.org>
23874
23875         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
23876         * modules/inet_ntop (Link): New section.
23877         Reported by Boyan Kasarov <bkasarov@gmail.com>.
23878
23879 2009-11-02  Eric Blake  <ebb9@byu.net>
23880
23881         maint: avoid compiler warnings in m4 macros
23882         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
23883         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
23884
23885 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23886
23887         * m4/pmccabe2html.m4: Remove file.
23888         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
23889         function.  Change maintainer.
23890         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
23891         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
23892         Courtès).
23893
23894 2009-10-31  Eric Blake  <ebb9@byu.net>
23895
23896         fseeko: fix m4 regression
23897         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
23898         regression from 2009-10-27.
23899         Reported by Ralf Wildenhues.
23900
23901 2009-10-31  Jim Meyering  <meyering@redhat.com>
23902
23903         inttostr: aesthetics and improved (compile-time) safety
23904         Define inttype_is_signed rather than inttype_is_unsigned,
23905         since the sole use is via "#if inttype_is_signed".
23906         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
23907         inttype_is_unsigned.
23908         * lib/offtostr.c (inttype_is_signed): Likewise.
23909         * lib/uinttostr.c (inttype_is_signed): Likewise.
23910         * lib/umaxtostr.c (inttype_is_signed): Likewise.
23911         * lib/inttostr.c (inttostr): Use verify to cross-check the
23912         inttype_is_signed value and the signedness of the actual type.
23913         * modules/inttostr (Depends-on): Add verify.
23914
23915 2009-10-30  Eric Blake  <ebb9@byu.net>
23916
23917         build: avoid compiler warnings
23918         * lib/fchmodat.c (lchmod): Mark unused variables.
23919         * lib/getopt.c (_getopt_initialize): Likewise.
23920         * lib/mktime.c (__mktime_internal): Provide prototype.
23921         * lib/inttostr.c (inttostr): Avoid compiler warning even with
23922         older gcc that do not understand #pragma GCC diagnostic.
23923         * lib/uinttostr.c (inttype_is_unsigned): Define.
23924         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
23925
23926 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23927
23928         stat: fix compilation on AIX
23929         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
23930         only see struct stat64.
23931
23932 2009-10-30  Eric Blake  <ebb9@byu.net>
23933
23934         exclude: make more robust
23935         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
23936         rather than masking a coding bug.
23937         Suggested by Bruno Haible.
23938
23939 2009-10-30  Jim Meyering  <meyering@redhat.com>
23940
23941         perl scripts: remove #!/usr/bin/perl in favor of more portable...
23942         Rather than putting #!/usr/bin/perl on the first line,
23943         start with a variant of what's recommended by "man perlrun" that
23944         invokes the first "perl" program from your shell's search path.
23945         * build-aux/gitlog-to-changelog: Replace #!... as above.
23946         Add a "Local Variables" perl mode setting.
23947         Prompted by a patch from Ludovic Courtès.
23948         Improved by Eric Blake.
23949         * build-aux/useless-if-before-free: Likewise.
23950         * build-aux/announce-gen: Likewise.
23951         * build-aux/update-copyright: Likewise.
23952
23953 2009-10-29  Eric Blake  <ebb9@byu.net>
23954
23955         filenamecat-lgpl: adjust clients
23956         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
23957         filenamecat.
23958         * modules/renameat (Depends-on): Likewise.
23959
23960         filenamecat: split into filenamecat-lgpl
23961         * modules/filenamecat-lgpl: New module.
23962         * modules/filenamecat (Files): Move library-safe files into
23963         filenamecat-lgpl.
23964         (Depends-on): Add filenamecat-lgpl.
23965         (configure.ac): Declare witness.
23966         * lib/filenamecat.h (file_name_concat): Only declare when using
23967         GPL module.
23968         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
23969         Move...
23970         * lib/filenamecat-lgpl.c: ...into new file.
23971         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
23972         (gl_FILE_NAME_CONCAT): Use it.
23973         * MODULES.html.sh (File system functions): Mention new module.
23974
23975         argp: avoid memory leak
23976         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
23977         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
23978         base_name, since the latter malloc()s and can call exit().
23979         Leak introduced 2006-07-03.
23980
23981         dirname-lgpl: adjust clients that don't need full dirname
23982         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
23983         * modules/filenamecat (Depends-on): Likewise.
23984         * modules/linkat (Depends-on): Likewise.
23985         * modules/mkancesdirs (Depends-on): Likewise.
23986         * modules/mkdir (Depends-on): Likewise.
23987         * modules/openat (Depends-on): Likewise.
23988         * modules/savewd (Depends-on): Likewise.
23989         * modules/rename (Depends-on): Likewise.
23990         (License): Relax license.
23991         * modules/mkdir-tests (Depends-on): Drop progname.
23992         (Makefile.am): Delete unneeded LDADD.
23993         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
23994
23995         dirname: split into dirname-lgpl
23996         * modules/dirname-lgpl: New module.
23997         * modules/dirname (Files): Move library-safe files into
23998         dirname-lgpl.
23999         (Depends-on): Add dirname-lgpl.
24000         (configure.ac): Declare witness.
24001         * modules/double-slash-root (License): Relax license.
24002         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
24003         module.
24004         * lib/dirname.c (dir_len, mdir_name): Move...
24005         * lib/dirname-lgpl.c: ...into new file.
24006         * lib/basename.c (last_component, base_len): Move...
24007         * lib/basename-lgpl.c: ...into new file.
24008         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
24009         (gl_DIRNAME): Use it.
24010         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
24011         Mention new module.
24012         * modules/dirname-tests (Depends-on): Add progname.
24013         * tests/test-dirname.c (program_name): Delete.
24014
24015         mkdir: make safe for libraries
24016         * modules/mkdir (Depends-on): Drop xalloc.
24017         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
24018         exit.
24019
24020         tests: avoid some compiler warnings
24021         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
24022         literals.
24023         * tests/test-memchr.c (main): Avoid type mismatch.
24024         * tests/test-arpa_inet.c (main): Avoid unused parameters.
24025         * tests/test-base64.c (main): Likewise.
24026         * tests/test-getdelim.c (main): Likewise.
24027         * tests/test-gethostname.c (main): Likewise.
24028         * tests/test-getline.c (main): Likewise.
24029         * tests/test-netinet_in.c (main): Likewise.
24030         * tests/test-select.c (open_server_socket, main): Likewise.
24031         * tests/test-select-stdin.c (main): Likewise.
24032         * tests/test-sockets.c (main): Likewise.
24033         * tests/test-strsignal.c (main): Likewise.
24034         * tests/test-sys_select.c (main): Likewise.
24035         * tests/test-sys_socket.c (main): Likewise.
24036         * tests/test-u64.c (main): Likewise.
24037         * tests/test-xfprintf-posix.c (main): Likewise.
24038         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
24039
24040         sockets: avoid compiler warning
24041         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
24042
24043         maint: detect usage(1) and other suspicious exits
24044         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
24045
24046 2009-10-29  Jim Meyering  <meyering@redhat.com>
24047
24048         timespec: long-to-int truncation could make timespec_cmp malfunction
24049         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
24050         a multiple of 2^32 nanoseconds as no difference.
24051
24052 2009-10-28  Jim Meyering  <meyering@redhat.com>
24053
24054         fprintftime: wrap macro code argument in "do {...} while(0)"
24055         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
24056         cpy macro must be a statement that can be followed by a semicolon.
24057         Now that the else clause contains a comment and is hence longer
24058         than one line, I require curly braces.  That in turn requires
24059         that we wrap this code block in the standard do...while(0).
24060
24061         fprintftime: remove stray semicolon from previous change
24062         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
24063
24064         fprintftime: avoid a warning about ignored fwrite return value
24065         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
24066         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
24067         that is unsafe.
24068         * modules/fprintftime (Depends-on): Add ignore-value.
24069
24070         exclude: avoid an unwarranted warning
24071         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
24072
24073 2009-10-27  Eric Blake  <ebb9@byu.net>
24074
24075         fseek: avoid compilation failure when fflush is replaced
24076         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
24077         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
24078         module is in use.
24079         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
24080         module is not in use; since REPLACE_FSEEK worked otherwise.
24081         (GNULIB_FTELLO): Likewise for ftell.
24082         Reported by Ian Beckwith and others.
24083
24084 2009-10-27  Bruno Haible  <bruno@clisp.org>
24085
24086         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
24087         Reported by Jim Meyering.
24088
24089 2009-10-27  Jim Meyering  <jim@meyering.net>
24090             Bruno Haible  <bruno@clisp.org>
24091
24092         Avoid warning despite dropping the return value of fwrite.
24093         * lib/unicodeio.c: Include ignore-value.h.
24094         (fwrite_success_callback): Explicitly ignore fwrite's return value.
24095         * modules/unicodeio (Depends-on): Add ignore-value.
24096
24097 2009-10-26  Eric Blake  <ebb9@byu.net>
24098
24099         areadlinkat: fix fallback path
24100         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
24101         pointer and zero.
24102
24103 2009-10-22  Pádraig Brady  <P@draigBrady.com>
24104
24105         Use a better IO block size for modern systems
24106         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
24107         * lib/md2.c: Likewise.
24108         * lib/md4.c: Likewise.
24109         * lib/md5.c: Likewise.
24110         * lib/sha1.c: Likewise.
24111         * lib/sha256.c: Likewise.
24112         * lib/sha512.c: Likewise.
24113
24114 2009-10-22  Eric Blake  <ebb9@byu.net>
24115
24116         tests: avoid several compiler warnings
24117         * tests/test-getcwd.c (main): Avoid buffer underflow.
24118         * tests/test-getdate.c (main): String literals are not safe with
24119         putenv, so use setenv.  Declare unused argument.
24120         * modules/getdate-tests (Depends-on): Add setenv.
24121         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
24122         problems with string literals in char *.
24123         * tests/test-hash.c (main): Avoid shadowing declaration.
24124         (insert_new): Treat string literals as char const *.
24125         * tests/test-getopt.h (test_getopt): Likewise.
24126         (getopt_loop): Alter types to minimize casting elsewhere.
24127         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
24128         (test_getopt_long_posix): Likewise.
24129         (do_getopt_long): Add wrapper to minimize casting.
24130         * tests/test-atexit.c (clear_temp_file): Use void.
24131         * tests/test-areadlink-with-size.c (main): Declare unused
24132         arguments.
24133         * tests/test-areadlink.c (main): Likewise.
24134         * tests/test-areadlinkat-with-size.c (main): Likewise.
24135         * tests/test-areadlinkat.c (main): Likewise.
24136         * tests/test-canonicalize-lgpl.c (main): Likewise.
24137         * tests/test-canonicalize.c (main): Likewise.
24138         * tests/test-dirent-safer.c (main): Likewise.
24139         * tests/test-dirname.c (main): Likewise.
24140         * tests/test-dup2.c (main): Likewise.
24141         * tests/test-fchdir.c (main): Likewise.
24142         * tests/test-fcntl-h.c (main): Likewise.
24143         * tests/test-fcntl-safer.c (main): Likewise.
24144         * tests/test-fdopendir.c (main): Likewise.
24145         * tests/test-fdutimensat.c (main): Likewise.
24146         * tests/test-fflush.c (main): Likewise.
24147         * tests/test-filenamecat.c (main): Likewise.
24148         * tests/test-filevercmp.c (main): Likewise.
24149         * tests/test-fopen-safer.c (main): Likewise.
24150         * tests/test-fopen.c (main): Likewise.
24151         * tests/test-fpending.c (main): Likewise.
24152         * tests/test-fpurge.c (main): Likewise.
24153         * tests/test-freading.c (main): Likewise.
24154         * tests/test-fstatat.c (main): Likewise.
24155         * tests/test-fsync.c (main): Likewise.
24156         * tests/test-futimens.c (main): Likewise.
24157         * tests/test-getndelim2.c (main): Likewise.
24158         * tests/test-gettimeofday.c (main): Likewise.
24159         * tests/test-getopt.c (main): Likewise.
24160         * tests/test-i-ring.c (main): Likewise.
24161         * tests/test-inttypes.c (main): Likewise.
24162         * tests/test-link.c (main): Likewise.
24163         * tests/test-lstat.c (main): Likewise.
24164         * tests/test-math.c (main): Likewise.
24165         * tests/test-md5.c (main): Likewise.
24166         * tests/test-memchr2.c (main): Likewise.
24167         * tests/test-memrchr.c (main): Likewise.
24168         * tests/test-mkdir.c (main): Likewise.
24169         * tests/test-mkdirat.c (main): Likewise.
24170         * tests/test-mkfifoat.c (main): Likewise.
24171         * tests/test-open.c (main): Likewise.
24172         * tests/test-openat-safer.c (main): Likewise.
24173         * tests/test-openat.c (main): Likewise.
24174         * tests/test-quotearg.c (main): Likewise.
24175         * tests/test-rawmemchr.c (main): Likewise.
24176         * tests/test-readlink.c (main): Likewise.
24177         * tests/test-remove.c (main): Likewise.
24178         * tests/test-rename.c (main): Likewise.
24179         * tests/test-renameat.c (main): Likewise.
24180         * tests/test-rmdir.c (main): Likewise.
24181         * tests/test-sha1.c (main): Likewise.
24182         * tests/test-signal.c (main): Likewise.
24183         * tests/test-sigaction.c (main): Likewise.
24184         * tests/test-stat.c (main): Likewise.
24185         * tests/test-stat-time.c (main): Likewise.
24186         * tests/test-stddef.c (main): Likewise.
24187         * tests/test-stdint.c (main): Likewise.
24188         * tests/test-stdio.c (main): Likewise.
24189         * tests/test-stdlib.c (main): Likewise.
24190         * tests/test-strchrnul.c (main): Likewise.
24191         * tests/test-strerror.c (main): Likewise.
24192         * tests/test-string.c (main): Likewise.
24193         * tests/test-strtod.c (main): Likewise.
24194         * tests/test-strverscmp.c (main): Likewise.
24195         * tests/test-symlink.c (main): Likewise.
24196         * tests/test-symlinkat.c (main): Likewise.
24197         * tests/test-sys_stat.c (main): Likewise.
24198         * tests/test-sys_time.c (main): Likewise.
24199         * tests/test-time.c (main): Likewise.
24200         * tests/test-unistd.c (main): Likewise.
24201         * tests/test-unlink.c (main): Likewise.
24202         * tests/test-unlinkat.c (main): Likewise.
24203         * tests/test-utimens.c (main): Likewise.
24204         * tests/test-utimensat.c (main): Likewise.
24205         * tests/test-version-etc.c (main): Likewise.
24206         * tests/test-wchar.c (main): Likewise.
24207         * tests/test-wctype.c (main): Likewise.
24208         * tests/test-xprintf-posix.c (main): Likewise.
24209         * tests/test-posixtm.c (main): Likewise.
24210         (STREQ): Delete unused macro.
24211         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
24212         shadowed variables.
24213         * tests/test-memchr.c (main): Likewise.
24214
24215 2009-10-21  Eric Blake  <ebb9@byu.net>
24216
24217         areadlinkat: avoid failure on older glibc
24218         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
24219         rather than mis-comparing 0 against FUNC_RESULT of char*.
24220
24221 2009-10-21  Bruno Haible  <bruno@clisp.org>
24222
24223         * modules/stpncpy (License): Relicense under LGPLv2+.
24224         Reported by David Lutterkort <lutter@redhat.com>.
24225
24226 2009-10-20  Eric Blake  <ebb9@byu.net>
24227
24228         utimensat: work around Solaris 9 bug
24229         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
24230         has trailing slash bugs.
24231         * tests/test-lutimens.h (test_lutimens): Enhance test.
24232         * tests/test-utimens.h (test_utimens): Likewise.
24233         * doc/posix-functions/utime.texi (utime): Enhance documentation.
24234         * doc/posix-functions/utimes.texi (utimes): Likewise.
24235         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24236         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
24237         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
24238         * doc/posix-functions/futimens.texi (futimens): Likewise.
24239
24240         fdutimensat: new module
24241         * modules/fdutimensat: New file.
24242         * lib/fdutimensat.c (fdutimensat): Likewise.
24243         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
24244         * MODULES.html.sh (File system functions): Mention module.
24245         * modules/fdutimensat-tests: New test.
24246         * tests/test-fdutimensat.c: Likewise.
24247
24248         doc: regenerate INSTALL
24249         * doc/INSTALL: Reflect recent autoconf update.
24250         * doc/INSTALL.ISO: Likewise.
24251         * doc/INSTALL.UTF-8: Likewise.
24252
24253 2009-10-20  Pádraig Brady  <P@draigBrady.com>
24254
24255         acl: warn if ACL support is not detected
24256         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
24257
24258 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
24259
24260         * lib/nproc.h: Add extern "C" block for C++.
24261
24262 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
24263             Bruno Haible  <bruno@clisp.org>
24264
24265         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
24266         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
24267         * doc/posix-functions/isalpha.texi: Likewise.
24268         * doc/posix-functions/isblank.texi: Likewise.
24269         * doc/posix-functions/iscntrl.texi: Likewise.
24270         * doc/posix-functions/isdigit.texi: Likewise.
24271         * doc/posix-functions/isgraph.texi: Likewise.
24272         * doc/posix-functions/islower.texi: Likewise.
24273         * doc/posix-functions/isprint.texi: Likewise.
24274         * doc/posix-functions/ispunct.texi: Likewise.
24275         * doc/posix-functions/isspace.texi: Likewise.
24276         * doc/posix-functions/isupper.texi: Likewise.
24277         * doc/posix-functions/isxdigit.texi: Likewise.
24278
24279 2009-10-18  Bruno Haible  <bruno@clisp.org>
24280
24281         Tests for module 'isblank'.
24282         * modules/isblank-tests: New file.
24283         * tests/test-isblank.c: New file.
24284
24285         New module 'isblank'.
24286         * lib/isblank.c: New file.
24287         * m4/isblank.m4: New file.
24288         * modules/isblank: New file.
24289         * doc/posix-functions/isblank.texi: Mention the new module.
24290
24291 2009-10-18  Bruno Haible  <bruno@clisp.org>
24292
24293         New module 'ctype'.
24294         * lib/ctype.in.h: New file.
24295         * m4/ctype.m4: New file.
24296         * modules/ctype: New file.
24297         * doc/posix-headers/ctype.texi: Mention the new module.
24298
24299 2009-10-18  Jim Meyering  <meyering@redhat.com>
24300
24301         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
24302         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
24303         right after its initialization, rather than farther down.
24304         Keeping these in close proximity makes it easier to ensure
24305         that each such variable is initialized.  E.g.,
24306
24307             LIB_CLOCK_GETTIME=
24308             AC_SUBST([LIB_CLOCK_GETTIME])
24309
24310         This change also increments these serial numbers.
24311         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
24312         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24313         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24314
24315 2009-10-18  Bruno Haible  <bruno@clisp.org>
24316
24317         Don't let environment variables perturb build.
24318         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
24319         (gl_PREREQ_GETHRXTIME): ... not here.
24320
24321 2009-10-18  Bruno Haible  <bruno@clisp.org>
24322
24323         Avoid symlink attack in localcharset module.
24324         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
24325         (O_NOFOLLOW): Define fallback.
24326         (get_charset_aliases): Don't open the file if it is a symbolic link.
24327         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
24328         gl_FCNTL_H.
24329         (gl_FCNTL_H): Require it.
24330         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
24331         * modules/localcharset (Files): Add m4/fcntl_h.m4.
24332         Reported by Fergal Glynn <fglynn@veracode.com>.
24333
24334 2009-10-18  Bruno Haible  <bruno@clisp.org>
24335
24336         Implement nproc for mingw.
24337         * lib/nproc.c: Include <windows.h>
24338         (num_processors): On native Windows platforms, try GetSystemInfo.
24339
24340 2009-10-18  Bruno Haible  <bruno@clisp.org>
24341
24342         Implement nproc for IRIX.
24343         * lib/nproc.c: Include <sys/sysmp.h>.
24344         (num_processors): On IRIX systems, try sysmp.
24345         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
24346
24347 2009-10-18  Bruno Haible  <bruno@clisp.org>
24348
24349         Implement nproc for HP-UX.
24350         * lib/nproc.c: Include <sys/pstat.h>
24351         (num_processors): On HP-UX systems, try pstat_getdynamic.
24352         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
24353         pstat_getdynamic.
24354
24355 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
24356             Bruno Haible  <bruno@clisp.org>
24357
24358         Implement nproc for NetBSD, OpenBSD.
24359         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
24360         (ARRAY_SIZE): New macro.
24361         (num_processors): On BSD systems, try sysctl of HW_NCPU.
24362         * m4/nproc.m4: New file.
24363         * modules/nproc (Files): Add m4/nproc.m4.
24364         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
24365         (Makefile.am): Instead, augment lib_SOURCES.
24366
24367 2009-10-18  Bruno Haible  <bruno@clisp.org>
24368
24369         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
24370         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
24371         sys/param.h.
24372
24373 2009-10-16  Eric Blake  <ebb9@byu.net>
24374
24375         utimensat: new module
24376         * modules/utimensat: New file.
24377         * lib/utimensat.c (utimensat): Likewise.
24378         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24379         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
24380         so we can work around Linux bugs.
24381         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24382         * modules/sys_stat (Makefile.am): Substitute them.
24383         * lib/sys_stat.in.h (utimensat): Declare it.
24384         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24385         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24386         * modules/utimensat-tests: New test.
24387         * tests/test-utimensat.c: Likewise.
24388
24389         utimens: let lutimens work on non-symlinks
24390         * lib/utimens.c (lutimens): Fall back to utimens rather than
24391         failing with ENOSYS, when file is not a symlink.
24392         (utimens): Reduce redirection.
24393         * tests/test-lutimens.h (test_lutimens): Update test to cover
24394         non-symlinks.
24395         * tests/test-utimens.h (test_utimens): Update test to cover
24396         symlinks.
24397         * tests/test-utimens.c (main): Update caller.
24398
24399         utimens: cache whether utimensat syscall works
24400         * lib/utimens.c (utimensat_works_really): New cache variable.
24401         (fdutimens, lutimens): Use it to avoid failing syscall.
24402
24403         test-stat-time, test-utimens: improve portability
24404         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
24405         ext4 on alpha, and for cygwin.
24406         * tests/test-utimens-common.h: New file.
24407         (nap): Factor delays into single function.
24408         * tests/test-lutimens.h (test_lutimens): Use new header.
24409         * tests/test-futimens.h (test_futimens): Likewise.
24410         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
24411         timestamps to occur from same machine, as was done previously for
24412         test_utimens.
24413         * modules/utimens-tests (Files): Ship new file.
24414         * modules/futimens-tests (Files): Likewise.
24415         Reported in part by Jim Meyering.
24416
24417         sys_stat: sort replacement declarations
24418         * lib/sys_stat.in.h: Sort declarations.
24419         * lib/futimens.c (futimens): Fix typo.
24420
24421 2009-10-15  Jim Meyering  <meyering@redhat.com>
24422
24423         don't let environment settings perturb build
24424         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
24425         could cause a configure-time and/or build-time malfunction.
24426         Typically, a configure-time function-in-library test is performed
24427         via code like this:
24428
24429           LIB_VAR=
24430           AC_SUBST([LIB_VAR])
24431           prefix_saved_LIBS=$LIBS
24432             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
24433                        [test "$ac_cv_search_FUNC" = "none required" ||
24434                         LIB_VAR=$ac_cv_search_FUNC])
24435           LIBS=$prefix_saved_LIBS
24436
24437         However, in each of the files affected by this change, the LIB_VAR=
24438         initialization was omitted.  Thus, when set in the environment, its
24439         value would propagate into generated Makefiles when FUNC is not found
24440         in LIB_NAME.
24441         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
24442         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24443         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24444
24445 2009-10-14  Eric Blake  <ebb9@byu.net>
24446
24447         fchdir: avoid infinite recursion in mingw
24448         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
24449         recursing.
24450
24451         test-stat-time: port to mingw
24452         * tests/test-stat-time.c (force_unlink): Return a value.
24453         (test_ctime) [W32]: Fix compilation error.
24454         (nap): Don't call usleep with too large an argument.  Use
24455         force_unlink.
24456         * doc/pastposix-functions/usleep.texi (usleep): Document the
24457         portability issue.
24458
24459 2009-10-13  Jim Meyering  <meyering@redhat.com>
24460
24461         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
24462         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
24463         * modules/pipe-filter-ii: Likewise.
24464         * modules/sys_socket-tests: Likewise.
24465         * modules/tsearch-tests: Likewise.
24466         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
24467         (check): Depend on it.
24468
24469 2009-10-12  Eric Blake  <ebb9@byu.net>
24470
24471         utimens-tests: port to NFS file systems
24472         * tests/test-utimens.h (test_utimens): Refactor utimecmp
24473         comparisons to avoid spurious failures from timestamp drift
24474         between NFS machines.
24475
24476 2009-10-12  Eric Blake  <ebb9@byu.net>
24477
24478         stat-time-tests: minor cleanups
24479         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
24480         * tests/test-stat-time.c (nap): Separate assignment from call.
24481         Suggested by Paolo Bonzini and Bruno Haible.
24482
24483         sys_stat: guarantee struct timespec
24484         * lib/sys_stat.in.h (includes): Always include <time.h>
24485         * modules/sys_stat (Depends-on): Add time.
24486         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
24487         mode_t permission values.
24488         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
24489         get at subsecond timestamps.
24490
24491 2009-10-10  Eric Blake  <ebb9@byu.net>
24492
24493         futimens: new module
24494         * modules/futimens: New file.
24495         * lib/futimens.c (futimens): Likewise.
24496         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
24497         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
24498         we can work around Linux bugs.
24499         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24500         * modules/sys_stat (Makefile.am): Substitute them.
24501         * lib/sys_stat.in.h (futimens): Declare it.
24502         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24503         * doc/posix-functions/futimens.texi (futimens): Likewise.
24504         * modules/futimens-tests: New test.
24505         * tests/test-futimens.c: Likewise.
24506
24507         utimens: introduce fdutimens
24508         * lib/utimens.h (fdutimens): New prototype.
24509         * lib/utimens.c (gl_futimens): Move guts...
24510         (fdutimens): ...to new interface.
24511         * tests/test-utimens.c (do_fdutimens): Use it.
24512
24513         utimens: add UTIME_NOW and UTIME_OMIT support
24514         * lib/utimens.c (validate_timespec, update_timespec): New helper
24515         functions.
24516         (gl_futimens, lutimens): Use them.
24517         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
24518         stdbool, sys_stat.
24519         (Link): Mention resulting library dependency.
24520         * modules/utimecmp (Link): Likewise.
24521         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
24522         (Makefile.am): Pick up library dependency.
24523         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
24524         definition.
24525         * tests/test-sys_stat.c: Test the definitions.
24526         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
24527         * NEWS: Document library dependency.
24528
24529         utimecmp: support symlink timestamps
24530         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
24531         hashing when possible.  Use pathconf when available.
24532         (SYSCALL_RESOLUTION): Recognize tighter resolution.
24533         * modules/utimecmp (Depends-on): Add lstat.
24534
24535         utimens: add lutimens interface
24536         * lib/utimens.c (lutimens): New function.
24537         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
24538         * lib/utimens.h (lutimens): Declare new interface.
24539         * tests/test-utimens.c (main): Enhance test.
24540         * tests/test-lutimens.h (test_lutimens): New file.
24541         * modules/utimens-tests (Files): Distribute it.
24542         (Depends-on): Add symlink.
24543         (configure.ac): Check for usleep.
24544
24545         utimens: validate futimens usage
24546         * lib/utimens.c (gl_futimens): Require valid fd up front, using
24547         fewer syscalls on failure later on.  Avoid compiler warning on
24548         mingw.
24549         * modules/utimens (Depends-on): Add dup2.
24550
24551         utimens: add test
24552         * modules/utimens-tests: New test.
24553         * tests/test-utimens.h: New file.
24554         * tests/test-futimens.h: Likewise.
24555         * tests/test-utimens.c: Likewise.
24556
24557         doc: mention timestamp portability issues
24558         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
24559         instead.
24560         * doc/posix-functions/utime.texi (utime): Likewise.
24561         * doc/posix-functions/utimes.texi (utimes): Likewise.
24562         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
24563         instead.
24564         * doc/posix-functions/futimens.texi (futimens): Mention utimens
24565         module.
24566         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24567         Mention weakness with symlink timestamps.
24568         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
24569         to utimensat/futimens instead.
24570         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
24571
24572         test-dup2: enhance test
24573         * tests/test-dup2.c (main): Also check AT_FDCWD.
24574
24575         test-stat-time: avoid more spurious failures
24576         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
24577         xfs; and avoid race if the two timestamps cross quantization edge.
24578
24579         relocatable: prefer 'file system' over 'filesystem'
24580         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
24581         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
24582         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
24583         * doc/relocatable.texi (Enabling Relocatability): Likewise.
24584         * lib/relocatable.c (compute_curr_prefix): Likewise.
24585
24586 2009-10-10  Jim Meyering  <meyering@redhat.com>
24587
24588         stat-time-tests: check for the usleep function
24589         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
24590
24591 2009-10-10  Bruno Haible  <bruno@clisp.org>
24592
24593         * modules/xnanosleep: Put the Link section after the Include section.
24594
24595 2009-10-09  Eric Blake  <ebb9@byu.net>
24596
24597         dup2: work around FreeBSD 6.1 bug
24598         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
24599         * doc/posix-functions/dup2.texi (dup2): Document it.
24600         Reported by Nelson H. F. Beebe and Jim Meyering.
24601
24602         test-stat-time: port to buggy NFS clients
24603         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
24604         (test_ctime): Also skip test if mtime and ctime are skewed.
24605
24606         maint: prefer 'file system' over 'filesystem'
24607         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24608         * doc/posix-functions/lstat.texi (lstat): Likewise.
24609         * lib/file-has-acl.c (file_has_acl): Likewise.
24610         * lib/fwriteerror.c [TEST]: Likewise.
24611         * tests/test-areadlink.h (test_areadlink): Likewise.
24612         * tests/test-areadlinkat-with-size.c (main): Likewise.
24613         * tests/test-areadlinkat.c (main): Likewise.
24614         * tests/test-canonicalize-lgpl.c (main): Likewise.
24615         * tests/test-canonicalize.c (main): Likewise.
24616         * tests/test-fstatat.c (main): Likewise.
24617         * tests/test-linkat.c (main): Likewise.
24618         * tests/test-lstat.h (test_lstat_func): Likewise.
24619         * tests/test-mkdir.h (test_mkdir): Likewise.
24620         * tests/test-readlink.h (test_readlink): Likewise.
24621         * tests/test-remove.c (main): Likewise.
24622         * tests/test-rename.h (test_rename): Likewise.
24623         * tests/test-renameat.c (main): Likewise.
24624         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24625         * tests/test-symlink.h (test_symlink): Likewise.
24626         * tests/test-symlinkat.c (main): Likewise.
24627         * tests/test-unlink.h (test_unlink_func): Likewise.
24628         * tests/test-unlinkat.c (main): Likewise.
24629
24630         maint: make realtime library usage explicit
24631         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
24632         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
24633         * modules/settime (Link): Likewise.
24634         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
24635
24636         test-stat-time: speed up execution
24637         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
24638         warning on mingw.
24639         (nap): New helper function.
24640         (prepare_test): Use it to reduce sleep time.
24641         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
24642         execution.
24643         * modules/stat-time-tests (configure.ac): Check for usleep.
24644
24645 2009-10-09  Jim Meyering  <meyering@redhat.com>
24646
24647         selinux-h: always use getfilecon wrappers
24648         * lib/getfilecon.c: New file.
24649         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
24650         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
24651         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
24652         (fgetfilecon): Provide a stub.
24653         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
24654         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
24655         file unconditionally.
24656         When <selinux/selinux.h> is found, arrange to use wrappers.
24657         * modules/selinux-h (Files): Add getfilecon.c.
24658         (Makefile.am): Substitute include-next-related bits
24659         into the now-always-generated selinux/selinux.h file.
24660         * doc/glibc-functions/lgetfilecon.texi: New file.
24661         * doc/glibc-functions/fgetfilecon.texi: New file.
24662         * doc/glibc-functions/getfilecon.texi: New file.
24663         * doc/glibc-functions/getfilecon-desc.texi: New file.
24664         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
24665         which to pull in the new files.
24666         * MODULES.html.sh (Misc): Add selinux-h.
24667
24668 2009-10-08  Jim Meyering  <meyering@redhat.com>
24669
24670         unistd: fix comment typo
24671         * lib/unistd.in.h (euidaccess): Fix a comment typo.
24672
24673 2009-10-08  Eric Blake  <ebb9@byu.net>
24674
24675         areadlink: use SIZE_MAX consistently
24676         * modules/areadlink (Depends-on): Add stdint.
24677         * modules/areadlink-with-size (Depends-on): Likewise.
24678         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
24679         gives NULL; drop sys/types, since unistd gives size_t; and add
24680         stdint for SIZE_MAX.
24681         (SIZE_MAX): Rely on headers.
24682         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
24683         and add stdint.
24684         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
24685         (SIZE_MAX): Likewise.
24686         (INITIAL_BUF_SIZE): Turn into enum.
24687         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
24688
24689 2009-10-08  Jim Meyering  <meyering@redhat.com>
24690
24691         areadlinkat: avoid compilation failure
24692         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
24693         Fix typo in comment.
24694
24695 2009-10-07  Eric Blake  <ebb9@byu.net>
24696
24697         areadlinkat-with-size: new module
24698         * modules/areadlinkat-with-size: New module.
24699         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
24700         * lib/areadlink.h (areadlinkat): Declare it.
24701         * MODULES.html.sh (File system functions): Mention it.
24702         * modules/areadlinkat-with-size-tests: New test.
24703         * tests/test-areadlinkat-with-size.c: New file.
24704
24705         xreadlinkat: new module
24706         * modules/xreadlinkat: New module.
24707         * lib/xreadlinkat.c (xreadlinkat): New file.
24708         * lib/xreadlink.h (xreadlinkat): Declare it.
24709         * MODULES.html.sh (File system functions): Mention it.
24710
24711         areadlinkat: new module
24712         * lib/at-func.c (FUNC_FAIL): New define.
24713         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
24714         * modules/areadlinkat: New module.
24715         * lib/linkat.c (areadlinkat): Move...
24716         * lib/areadlinkat.c (areadlinkat): ...to new file.
24717         * lib/areadlink.h (areadlinkat): Declare it.
24718         * modules/linkat (Depends-on): Add areadlinkat.
24719         * MODULES.html.sh (File system functions): Mention it.
24720         * modules/areadlinkat-tests: New test.
24721         * tests/test-areadlinkat.c: New file.
24722
24723         areadlink, areadlink-with-size: add tests
24724         * modules/areadlink-tests: New test.
24725         * modules/areadlink-with-size-tests: Likewise.
24726         * tests/test-areadlink.h: New file.
24727         * tests/test-areadlink.c: Likewise.
24728         * tests/test-areadlink-with-size.c: Likewise.
24729
24730         maint: minor cleanups
24731         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
24732         _UNUSED_PARAMETER_ instead.
24733         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
24734         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
24735         * modules/linkat-tests (Files): Distribute test-link.h.
24736
24737         openat, utimens: whitespace cleanup
24738         * lib/openat.c: Prefer space throughout, rather than mix of 8
24739         spaces vs. tabs.
24740         * lib/at-func.c: Likewise.
24741         * lib/utimens.c: Likewise.
24742
24743         openat: avoid using wrong fd
24744         * lib/openat.c (openat_permissive): Reject user's fd if saving the
24745         working directory chooses same fd.
24746         * lib/at-func.c (AT_FUNC_NAME): Likewise.
24747
24748         mkdir, mkdirat: fix cygwin 1.5.x bug
24749         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
24750         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
24751         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
24752         bug.
24753         (gl_PREREQ_MKDIR): Delete unused macro.
24754         * modules/mkdir (Files): Track file rename.
24755         (configure.ac): Update macro name.
24756         * modules/openat (Depends-on): Add mkdir.
24757         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
24758
24759         mkdir, mkdirat: add tests
24760         * modules/mkdir-tests: New test.
24761         * tests/test-mkdir.h: New file.
24762         * tests/test-mkdir.c: Likewise.
24763         * tests/test-mkdirat.c: Likewise.
24764         * modules/openat-tests (Files): Add new files.
24765         (Makefile.am): Run new test.
24766
24767 2009-10-06  Eric Blake  <ebb9@byu.net>
24768
24769         doc: tweak *at function documentation
24770         * doc/posix-functions/faccessat.texi (faccessat): Mention
24771         known issue with replacement.
24772         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
24773         * doc/posix-functions/linkat.texi (linkat): Likewise.
24774         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24775         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24776         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24777         * doc/posix-functions/renameat.texi (renameat): Likewise.
24778         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24779
24780         openat: fix GNU/Hurd bug in unlinkat
24781         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
24782         broken.
24783         * doc/posix-functions/unlink.texi (unlink): Document this.
24784         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
24785
24786         fdopendir: fix GNU/Hurd bug
24787         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
24788         allowing non-directory fds.
24789         * lib/fdopendir.c (rpl_fdopendir): Work around it.
24790         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24791         * modules/dirent (Makefile.am): Substitute it.
24792         * lib/dirent.in.h (fdopendir): Declare replacement.
24793         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
24794         * tests/test-fdopendir.c (main): Test something other than
24795         /dev/null, since on Hurd that behaves like a directory.
24796
24797         test-symlink: port to GNU/Hurd
24798         * tests/test-symlink.h (test_symlink): Relax expected errno.
24799
24800         doc: tweak more cygwin information
24801         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
24802         now compatible with glibc.
24803         * doc/posix-functions/getopt.texi (getopt): Likewise.
24804
24805         getopt-gnu: add another test
24806         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
24807         guarantee behavior relied on by m4.
24808         * tests/test-getopt.c (main): Use it.
24809         * modules/getopt-posix-tests (Depends-on): Add setenv.
24810         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
24811
24812         getopt: fix compilation on darwin
24813         * lib/getopt.in.h (includes): Leave breadcrumbs during system
24814         include.
24815         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
24816         Reported by Ludovic Courtès.
24817
24818 2009-10-06  Bruno Haible  <bruno@clisp.org>
24819
24820         * modules/size_max (Description): Discourage its use.
24821         Reported by Simon Josefsson.
24822
24823 2009-10-06  Jim Meyering  <meyering@redhat.com>
24824
24825         linkat: avoid compilation failure
24826         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
24827
24828 2009-10-05  Eric Blake  <ebb9@byu.net>
24829
24830         linkat: support Linux 2.6.17
24831         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
24832         linkat on Linux, but allow cache variable override.
24833         * lib/linkat.c (rpl_linkat): Define override.
24834         * modules/linkat (Depends-on): Add symlinkat.
24835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
24836         * modules/unistd (Makefile.am): Substitute it.
24837         * lib/unistd.in.h (linkat): Declare replacement.
24838         Reported by Pádraig Brady.
24839
24840         quotearg: port test to systems with C.UTF-8 locale
24841         * tests/test-quotearg.c (struct result_strings): Add another
24842         member, differentiating between C.ASCII and C.UTF-8 handling.
24843         (compare_strings): Add parameter.
24844         (main): Adjust all callers.
24845
24846         getopt: avoid clash with FreeBSD _getopt_internal
24847         * lib/getopt.in.h (_getopt_internal): Override the name.
24848         * lib/getopt_int.h (includes): Pick up any overrides.
24849         Reported by Reuben Thomas.
24850
24851         hash: allow C89 compilation
24852         * lib/hash.c (check_tuning): Move declaration before statement.
24853         Reported by Reuben Thomas.
24854
24855 2009-10-05  Karl Berry  <karl@gnu.org>
24856
24857         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
24858
24859 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
24860             Bruno Haible  <bruno@clisp.org>
24861
24862         * lib/uname.c (uname): Use a table-driven algorithm to compute
24863         Windows NT versions.
24864
24865 2009-10-04  Bruno Haible  <bruno@clisp.org>
24866
24867         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
24868         program_invocation_short_name.
24869         * modules/progname (configure.ac): Test for presence of
24870         program_invocation_short_name.
24871         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24872
24873 2009-10-04  Bruno Haible  <bruno@clisp.org>
24874
24875         * lib/progname.c (set_program_name): Fix comment.
24876         Reported by Jim Meyering.
24877
24878 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24879             Bruno Haible  <bruno@clisp.org>
24880
24881         * lib/uname.c: Include <string.h>.
24882         (uname): Do only one call to GetVersionEx in the common case.
24883
24884 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24885             Bruno Haible  <bruno@clisp.org>
24886
24887         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
24888         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
24889         (uname): Add support for Windows CE and various non-x86 CPU types.
24890
24891 2009-10-03  Bruno Haible  <bruno@clisp.org>
24892
24893         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
24894         invocation to tests/configure.ac.
24895         Reported by Ian Beckwith <ianb@erislabs.net>.
24896
24897 2009-10-02  Eric Blake  <ebb9@byu.net>
24898
24899         fchdir: avoid compiler warning
24900         * lib/fchdir.c (canonicalize_file_name)
24901         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
24902
24903         test-open: support mingw errno values
24904         * tests/test-open.h (test_open): Relax test.
24905         * tests/test-fopen.h (test_fopen): Likewise.
24906         * tests/test-openat-safer.c (main): Likewise.
24907
24908         open: fix opening directory on mingw
24909         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
24910
24911         test-open: on GNU/Hurd, /dev/null is a directory
24912         * tests/test-fopen.h (main): Rename...
24913         (test_fopen): ...to this.  Use a guaranteed non-directory when
24914         confirming open behavior on trailing slash.
24915         * tests/test-openat-safer.c (main): Likewise.
24916         * tests/test-open.h (main): Likewise....
24917         (test_open): ...to this.
24918         * tests/test-fopen.c (main): Adjust caller.
24919         * tests/test-fopen-safer.c (main): Likewise.
24920         * tests/test-open.c (main): Likewise.
24921         * tests/test-fcntl-safer.c (main): Likewise.
24922         Reported by Samuel Thibault.
24923
24924         rename, fchdir: don't ignore chdir failure
24925         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
24926         * lib/rename.c (rpl_rename) [W32]: Likewise.
24927         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
24928         an empty destination directory if source cannot be renamed,
24929         although there is still possibility for failure.
24930         * doc/posix-functions/rename.texi (rename): Document the race.
24931         Reported by Jim Meyering.
24932
24933         maint: cleanup whitespace in recent commits
24934         * lib/rename.c (rpl_rename): Remove tabs.
24935         * tests/test-link.h (test_link): Likewise.
24936         * lib/fchdir.c (get_name): Likewise.
24937         Reported by Jim Meyering.
24938
24939 2009-10-02  Ben Pfaff  <blp@gnu.org>
24940
24941         relocatable-prog-wrapper: Add missing dependency on
24942         double-slash-root.
24943         * modules/relocatable-prog-wrapper: Add dependency.
24944         Reported by Ian Beckwith <ianb@erislabs.net>.
24945
24946 2009-10-02  Eric Blake  <ebb9@byu.net>
24947
24948         renameat: fix Solaris bugs
24949         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
24950         needed fixing.
24951         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
24952         * modules/stdio (Makefile.am): Substitute it.
24953         * lib/stdio.in.h (renameat): Declare replacement.
24954         * lib/renameat.c (rpl_renameat): Implement fix.
24955
24956         renameat: new module
24957         * modules/renameat: New file.
24958         * lib/renameat.c (renameat): Likewise.
24959         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
24960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24961         * modules/stdio (Makefile.am): Substitute them.
24962         * lib/stdio.in.h (renameat): Declare it.
24963         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24964         * doc/posix-functions/renameat.texi (renameat): Likewise.
24965         * modules/renameat-tests: New test.
24966         * tests/test-renameat.c: Likewise.
24967
24968         rename: fix mingw bugs
24969         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
24970         directory overwrite bugs.
24971
24972         rename: fix another cygwin 1.5 bug
24973         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
24974         checks.
24975         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
24976         unnecessary cygwin workarounds.  Also work around bug with moving
24977         full directory onto an empty one.
24978         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
24979
24980         rename-dest-slash: merge into rename module
24981         * modules/rename-dest-slash (Status): Mark obsolete.
24982         (Depends-on): Add rename.
24983         (Files): Let rename do it all.
24984         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
24985         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
24986         * m4/rename-dest-slash.m4: ...so this file can be deleted.
24987         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
24988         * lib/rename.c (rpl_rename): Update comments.
24989
24990         rename: fix cygwin 1.5.x bugs
24991         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
24992         * lib/rename.c (rpl_rename): Work around them.
24993         * modules/rename (Depends-on): Add same-inode.
24994
24995         rename: fix Solaris 10 bug
24996         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24997         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
24998         was the only bug.
24999
25000         rename: fix Solaris 9 bug
25001         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
25002         on non-directory.  Avoid calling exit.
25003         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
25004         strdup.
25005         * modules/rename-tests (Depends-on): Drop lstat.
25006         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25007         (gl_PREREQ_RENAME): Delete unused macro.
25008
25009         rename-dest-slash: fix NetBSD bug
25010         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
25011         links.
25012         * modules/rename-dest-slash (Depends-on): Add same-inode.
25013
25014         rename-tests: new test, exposes several platform bugs
25015         * modules/rename-tests: New file.
25016         * tests/test-rename.h: Likewise.
25017         * tests/test-rename.c: Likewise.
25018         * doc/posix-functions/rename.texi (rename): Improve documentation,
25019         including bugs that will eventually be fixed in gnulib.
25020
25021 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
25022
25023         * lib/uname.c: Include <stdlib.h>
25024         (uname): Assume version info is available.
25025
25026 2009-10-02  Jim Meyering  <meyering@redhat.com>
25027
25028         gnu-web-doc-update: correct --help output
25029         * build-aux/gnu-web-doc-update: Make --help output relevant.
25030
25031         gnu-web-doc-update: add standard options
25032         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
25033
25034         gnu-web-doc-update: New module.
25035         Use this script to automatically update the on-line web documentation
25036         for your GNU project at http://www.gnu.org/software/$pkg/manual/
25037         * modules/gnu-web-doc-update: New file, from coreutils.
25038         * build-aux/gnu-web-doc-update: New script.
25039
25040 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
25041
25042         link: LoadLibrary is not needed.
25043         * lib/link.c: Use GetModuleHandle.
25044
25045 2009-10-01  Eric Blake  <ebb9@byu.net>
25046
25047         getopt: bump serial number
25048         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
25049         change.
25050
25051         tests: tighten link, rmdir, and remove tests
25052         * tests/test-link.h (includes): No need to use <config.h> here.
25053         Clean up if directory hard link was created, otherwise test for
25054         trailing '.'.
25055         * tests/test-linkat.c (main): Simplify.
25056         * tests/test-remove.c (main): Enhance test for trailing '.'.
25057         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25058
25059 2009-10-01  Jim Meyering  <meyering@redhat.com>
25060
25061         maint.mk: requiring "make major" was annoying, for a "minor" release.
25062         What is intended is "stable", to contrast with alpha and beta,
25063         so require "make stable", not "make major".
25064         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
25065         (get_tool_versions): Likewise.
25066         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
25067
25068 2009-09-30  Ben Pfaff  <blp@gnu.org>
25069
25070         Fix broken build of replacement for Windows tmpfile().
25071         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
25072         flags argument added along with the 'mkostemp' module.
25073
25074 2009-09-28  Bruno Haible  <bruno@clisp.org>
25075
25076         Avoid identifier clash with POSIX function 'remove' defined as a macro.
25077         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
25078         to 'remove_elt'.
25079         (gl_list_remove): Update.
25080         * lib/gl_list.c (gl_list_remove): Update.
25081         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
25082         to 'remove_elt'.
25083         (gl_oset_remove): Update.
25084         * lib/gl_list.c (gl_oset_remove): Update.
25085         Reported by Eric Blake.
25086
25087 2009-09-28  Eric Blake  <ebb9@byu.net>
25088
25089         doc: mention yet more cygwin 1.7 status
25090         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
25091         cygwin.
25092         * doc/glibc-functions/execvpe.texi (execvpe): New file.
25093         * doc/gnulib.texi (Glibc unistd.h): Mention it.
25094
25095         argp: fix test failure
25096         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
25097         that are not upper-case.  Pass correct range to tolower.
25098
25099 2009-09-27  Jim Meyering  <meyering@redhat.com>
25100
25101         test-yesno: work around sparc-dash here-document infelicity
25102         Without this change, the literal \177 byte in a here document
25103         would make dash 0.5.5.1-3 access uninitialized memory.
25104         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
25105         Instead, use a marker, "@", and filter through tr to create the desired
25106         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
25107
25108 2009-09-27  Bruno Haible  <bruno@clisp.org>
25109
25110         Disable untested support for new flavours of ACLs on AIX.
25111         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
25112         progress.
25113         * lib/set-mode-acl.c (qset_acl): Likewise.
25114
25115 2008-12-07  Bruno Haible  <bruno@clisp.org>
25116
25117         Add support for new flavours of ACLs on AIX. (Untested.)
25118         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
25119         (file_has_acl): Add support for newer AIX.
25120         * lib/set-mode-acl.c (qset_acl): Likewise.
25121         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
25122         Rainer Tammer <tammer@tammer.net>.
25123
25124 2009-09-26  Eric Blake  <ebb9@byu.net>
25125
25126         argp: fix compilation of getopt
25127         * lib/getopt.in.h (includes): Use different guard than glibc.
25128         Reported by Sergey Poznyakoff.
25129
25130         doc: mention more cygwin 1.7 status
25131         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
25132         bug.
25133         * doc/posix-functions/execl.texi (execl): Likewise.
25134         * doc/posix-functions/execle.texi (execle): Likewise.
25135         * doc/posix-functions/execlp.texi (execlp): Likewise.
25136         * doc/posix-functions/execv.texi (execv): Likewise.
25137         * doc/posix-functions/execve.texi (execve): Likewise.
25138         * doc/posix-functions/execvp.texi (execvp): Likewise.
25139         * doc/glibc-functions/canonicalize_file_name.texi
25140         (canonicalize_file_name): Cygwin 1.7 now provides this.
25141         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
25142         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
25143         on AT_SYMLINK_NOFOLLOW.
25144
25145 2009-09-24  Eric Blake  <ebb9@byu.net>
25146
25147         test-linkat: make test more robust
25148         * tests/test-linkat.c (main): Avoid collision with EEXIST.
25149
25150         getopt: fix inclusion guards for cygwin
25151         * modules/getopt-posix (Depends-on): Add include-next.
25152         (Makefile.am): Substitute more items in replacement header.
25153         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
25154         <getopt.h>.
25155         * lib/getopt.in.h (includes): Use split inclusion guard, and
25156         prefer <getopt.h> over include <unistd.h> when one is present.
25157         (option): Also override name of 'struct option'.
25158
25159         same-inode: revert prior change; it is not yet ready
25160         * NEWS: Undo mention of this change.
25161         * lib/same-inode.h (same-inode.h): Undo tri-state change.
25162         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25163         * lib/cycle-check.c (cycle_check): Likewise.
25164         * lib/same.c (same_name): Likewise.
25165         * lib/at-func2.c (at_func2): Likewise.
25166
25167 2009-09-23  Eric Blake  <ebb9@byu.net>
25168
25169         linkat: new module
25170         * modules/linkat: New file.
25171         * lib/at-func2.c (at_func2): Likewise.
25172         * lib/linkat.c (linkat): Likewise.
25173         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25174         * lib/openat-priv.h (at_func2): Add declaration.
25175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25176         * modules/unistd (Makefile.am): Substitute them.
25177         * lib/unistd.in.h (linkat): Declare it.
25178         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25179         * doc/posix-functions/linkat.texi (linkat): Likewise.
25180         * doc/posix-functions/link.texi (link): Tweak wording.
25181         * tests/test-link.c (main): Move guts...
25182         * tests/test-link.h (test_link): ...into new file.
25183         * modules/linkat-tests: New test.
25184         * tests/test-linkat.c: Likewise.
25185         * modules/link-tests (Files): Ship new file.
25186         (Depends-on): Add stdbool.
25187
25188         dirname: add library-safe mdir_name
25189         * lib/dirname.h (mdir_name): New prototype.
25190         * lib/dirname.c (dir_name): Move guts...
25191         (mdir_name): ...to new function that avoids xalloc_die.
25192
25193         fchdir: another mingw fix
25194         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
25195         * lib/fchdir.c (get_name): New helper method; skips canonicalize
25196         on mingw (where it has not yet been ported), and make it optional
25197         elsewhere.
25198         (_gl_register_fd): Use it.
25199
25200         same-inode: make SAME_INODE tri-state, to port to mingw
25201         * NEWS: Mention this change.
25202         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
25203         st_ino always being 0.
25204         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25205         * lib/cycle-check.c (cycle_check): Likewise.
25206         * lib/same.c (same_name): Likewise.
25207
25208         lstat: avoid mingw compilation error
25209         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
25210         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
25211         lstat ourselves.
25212         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
25213         was adequate.
25214         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
25215         the checks for lstat.
25216         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
25217
25218         link: fix test failure on Solaris 9
25219         * lib/link.c (rpl_link): Don't assume link will catch bogus
25220         trailing slash on source.
25221
25222         test-symlinkat: enhance test
25223         * tests/test-readlink.c (main): Move guts...
25224         * tests/test-readlink.h (test_readlink): ...into new file.
25225         * tests/test-symlink.c (main): Move guts...
25226         * tests/test-symlink.h (test_symlink): ...into new file.
25227         * tests/test-symlinkat.c (main): Use new files for further
25228         coverage.
25229         (do_symlink, do_readlink): New helper functions.
25230         * modules/symlink-tests (Files): Ship new file.
25231         (Depends-on): Add stdbool.
25232         * modules/readlink-tests (Files): Ship new file.
25233         (Depends-on): Add stdbool.
25234         * modules/symlinkat-tests (Files): Use new files.
25235
25236 2009-09-23  Eric Blake  <ebb9@byu.net>
25237
25238         readlink: document portability issue with symlink length
25239         * doc/posix-functions/lstat.texi (lstat): Mention that some file
25240         systems have bogus st_size on symlinks, and mention the
25241         areadlink-with-size module.
25242         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25243         * doc/posix-functions/readlink.texi (readlink): Mention the
25244         areadlink module, and ERANGE failure.
25245         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25246         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
25247
25248         readlink: fix Solaris 9 bug with trailing slash
25249         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
25250         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
25251         * doc/posix-functions/readlink.texi (readlink): Document this.
25252         * modules/readlink-tests: New test.
25253         * tests/test-readlink.c: Likewise.
25254
25255         readlink: fix cygwin 1.5.x bug with return type
25256         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
25257         * lib/unistd.in.h (readlink): Use ssize_t.
25258         * lib/readlink.c (readlink): Likewise.
25259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25260         * modules/unistd (Makefile.am): Substitute it.
25261         * lib/unistd.in.h (readlink): Declare replacement.
25262         * doc/posix-functions/readlink.texi (readlink): Document this.
25263
25264         symlink: use throughout gnulib
25265         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
25266         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
25267         symlink is not used.
25268         * modules/symlinkat (Depends-on): Add symlink.
25269         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25270         * modules/canonicalize-tests (Depends-on): Likewise.
25271         * modules/lstat-tests (Depends-on): Likewise.
25272         * modules/openat-tests (Depends-on): Likewise.
25273         * modules/remove-tests (Depends-on): Likewise.
25274         * modules/rmdir-tests (Depends-on): Likewise.
25275         * modules/unlink-tests (Depends-on): Likewise.
25276         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
25277         * tests/test-canonicalize.c (symlink): Likewise.
25278         * tests/test-fstatat.c (symlink): Likewise.
25279         * tests/test-lstat.c (symlink): Likewise.
25280         * tests/test-remove.c (symlink): Likewise.
25281         * tests/test-rmdir.c (symlink): Likewise.
25282         * tests/test-unlink.c (symlink): Likewise.
25283         * tests/test-unlinkat.c (symlink): Likewise.
25284
25285         symlink: new module, for Solaris 9 bug
25286         * modules/symlink: New file.
25287         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25288         * lib/symlink.c: Likewise.
25289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25290         * modules/unistd (Makefile.am): Substitute them.
25291         * lib/unistd.in.h (symlink): Declare replacement.
25292         * MODULES.html.sh (File system functions): Mention it.
25293         * doc/posix-functions/symlink.texi (symlink): Likewise.
25294         * modules/symlink-tests: New test.
25295         * tests/test-symlink.c: Likewise.
25296
25297 2009-09-23  Bruno Haible  <bruno@clisp.org>
25298
25299         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
25300         when needed.
25301         Test case: gnulib-tool --import --with-tests atexit inttypes.
25302         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
25303
25304 2009-09-23  Bruno Haible  <bruno@clisp.org>
25305
25306         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
25307         subcommand, not in a subshell.
25308
25309 2009-09-22  Eric Blake  <ebb9@byu.net>
25310
25311         unistd: sort replacement declarations
25312         * lib/unistd.in.h: Sort declarations.
25313
25314         open, openat: minor optimization
25315         * lib/open.c (open): If open succeeded, len is non-zero.
25316         * lib/openat.c (rpl_openat): Likewise.
25317
25318         link-follow: ensure correct result
25319         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
25320         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
25321         distinguish between possible failures.
25322
25323 2009-09-21  Eric Blake  <ebb9@byu.net>
25324
25325         fts: avoid compiler warning
25326         * lib/fts.c (dirent_inode_sort_may_be_useful)
25327         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
25328
25329 2009-09-19  Bruno Haible  <bruno@clisp.org>
25330
25331         * lib/progreloc.c (canonicalize_file_name): New declaration.
25332
25333 2009-09-19  Eric Blake  <ebb9@byu.net>
25334
25335         link: fix quoting
25336         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
25337
25338         openat: fix openat bugs on Solaris 9
25339         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
25340         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
25341         * modules/openat (Depends-on): Add open.
25342         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
25343         * modules/fcntl-h (Makefile.am): Substitute it.
25344         * lib/fcntl.in.h (openat): Declare replacement.
25345         * doc/posix-functions/openat.texi (openat): Document this.
25346
25347         openat: move fstatat and unlinkat into correct files
25348         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
25349         compiled.
25350         * lib/openat.c (fstatat, unlinkat): Move...
25351         * lib/fstatat.c (fstatat): ...into correct files.
25352         * lib/unlinkat.c (unlinkat): Likewise.
25353
25354         openat: fix unlinkat bugs on Solaris 9
25355         * lib/unlinkat.c (unlinkat): New file.
25356         * modules/openat (Depends-on): Add unlink.
25357         (Files): Distribute it.
25358         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
25359         trailing slash behavior is broken.
25360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25361         * modules/unistd (Makefile.am): Substitute it.
25362         * lib/unistd.in.h (unlinkat): Declare replacement.
25363         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
25364
25365         openat: fix fstatat bugs on Solaris 9
25366         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
25367         stat.
25368         * doc/posix-functions/fstatat.texi (fstatat): Document this.
25369
25370         test-unlinkat: enhance test, to expose Solaris 9 bug
25371         * tests/test-unlink.c (main): Factor guts...
25372         * tests/test-unlink.h (test_rmdir_func): ...into new file.
25373         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
25374         * tests/test-rmdir.c (main): Adjust caller.
25375         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
25376         (unlinker): New helper function.
25377         (rmdirat): Enhance check.
25378         * modules/rmdir-tests (Depends-on): Add stdbool.
25379         * modules/unlink-tests (Depends-on): Likewise.
25380         (Files): Add test-unlink.h.
25381         * modules/openat-tests (Files): Likewise.
25382         (Depends-on): Add unlinkdir.
25383
25384         test-fstatat: new test, to expose Solaris 9 bugs
25385         * tests/test-stat.c (main): Factor guts...
25386         * tests/test-stat.h (test_stat_func): ...into new file.
25387         * tests/test-lstat.c (main): Factor guts...
25388         * tests/test-lstat.h (test_lstat_func): ...into new file.
25389         * tests/test-fstatat.c: New file.
25390         * modules/stat-tests (Files): Add test-stat.h.
25391         * modules/lstat-tests (Files): Add test-lstat.h.
25392         (Depends-on): Add stdbool.
25393         * modules/openat-tests (Depends-on): Add pathmax.
25394         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
25395         (Makefile.am): Run new test.
25396
25397         remove: new module, for mingw and Solaris 9 bugs
25398         * modules/remove: New file.
25399         * lib/remove.c: Likewise.
25400         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
25401         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25402         * modules/stdio (Makefile.am): Use them.
25403         * lib/stdio.in.h (remove): Declare replacement.
25404         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25405         * doc/posix-functions/remove.texi (remove): Likewise.
25406         * modules/remove-tests: New test.
25407         * tests/test-remove.c: Likewise.
25408
25409         unlink: new module, for Solaris 9 bug
25410         * modules/unlink: New file.
25411         * lib/unlink.c: Likewise.
25412         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25414         * modules/unistd (Makefile.am): Use them.
25415         * lib/unistd.in.h (stat): Declare replacement.
25416         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25417         * doc/posix-functions/unlink.texi (unlink): Likewise.
25418         * modules/unlink-tests: New test.
25419         * tests/test-unlink.c: Likewise.
25420
25421         lstat: fix Solaris 9 bug
25422         * lib/lstat.c (lstat): Also check for trailing slash on
25423         non-symlink, non-directories.  Use stat module to simplify logic.
25424         * doc/posix-functions/lstat.texi (lstat): Document it.
25425         * modules/lstat-tests (Depends-on): Add errno, same-inode.
25426         (configure.ac): Check for symlink.
25427         * tests/test-lstat.c (main): Add more tests.
25428
25429         stat: add as dependency to other modules
25430         * modules/chown (Depends-on): Add stat.
25431         * modules/euidaccess (Depends-on): Likewise.
25432         * modules/fchdir (Depends-on): Likewise.
25433         * modules/isdir (Depends-on): Likewise.
25434         * modules/link (Depends-on): Likewise.
25435         * modules/lstat (Depends-on): Likewise.
25436         * modules/mkdir-p (Depends-on): Likewise.
25437         * modules/modechange (Depends-on): Likewise.
25438         * modules/open (Depends-on): Likewise.
25439         * modules/readlink (Depends-on): Likewise.
25440         * modules/same (Depends-on): Likewise.
25441
25442         stat: fix Solaris 9 bug
25443         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
25444         slash.
25445         * lib/stat.c (rpl_stat): Work around it.
25446         * doc/posix-functions/stat.texi (stat): Update documentation.
25447
25448         stat: new module, for mingw bug
25449         * modules/stat: New file.
25450         * lib/stat.c: Likewise.
25451         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25452         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25453         * modules/sys_stat (Makefile.am): Use them.
25454         * lib/sys_stat.in.h (stat): Declare replacement.
25455         * lib/openat.c (fstatat): Deal with lstat and stat being function
25456         macros.
25457         * modules/openat (Depends-on): Add inline.
25458         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25459         * doc/posix-functions/stat.texi (stat): Likewise.
25460         * modules/stat-tests: New test.
25461         * tests/test-stat.c: Likewise.
25462
25463 2009-09-19  Jim Meyering  <meyering@redhat.com>
25464
25465         syntax-check: detect unnecessary inclusion of canonicalize.h
25466         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
25467
25468 2009-09-19  Eric Blake  <ebb9@byu.net>
25469
25470         canonicalize-lgpl: adjust clients to use correct header
25471         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25472         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
25473         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
25474         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
25475         * lib/progreloc.c (includes): Likewise.
25476
25477 2009-09-19  Jim Meyering  <meyering@redhat.com>
25478
25479         test-posixtm.c: correct a comment
25480         * tests/test-posixtm.c: Correct first-line comment.
25481         Spotted by Eric Blake.
25482
25483 2009-09-16  Jim Meyering  <meyering@redhat.com>
25484
25485         posixtm-tests: make T const-correct; add a test case
25486         * tests/test-posixtm.c (T): Declare const.
25487         Add a test for -(2^31+1).
25488         Remove useless can-succeed-only-in-2002 test.
25489
25490         posixtm-tests: adjust the sole failing test
25491         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
25492         expected output matches what mktime now produces.  Cross-checked via
25493         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
25494
25495         posixtm: move #ifdef'd tests into a new module
25496         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
25497         * tests/test-posixtm.c: ... this new file.
25498         * modules/posixtm-tests: New module.
25499
25500 2009-09-19  Eric Blake  <ebb9@byu.net>
25501
25502         openat: simplify use of at-func.c
25503         * lib/at-func.c (includes): Include prerequisites here, to
25504         simplify requirements on client files.
25505         * lib/openat-priv.h: Add double-inclusion guard.
25506         * lib/faccessat.c (includes): Simplify.
25507         * lib/fchmodat.c (includes): Likewise.
25508         * lib/fchownat.c (includes): Likewise.
25509         * lib/mkdirat.c (includes): Likewise.
25510         * lib/mkfifoat.c (includes): Likewise.
25511         * lib/symlinkat.c (includes): Likewise.
25512
25513         openat: allow return of fd 0
25514         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
25515         * modules/save-cwd (Depends-on): Replace fcntl-safer with
25516         unistd-safer.
25517         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
25518         <fcntl.h>; this module does not leak fds.
25519         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
25520         must be allowed to return 0, leaving openat_safer to add the
25521         safety.
25522         (openat_permissive): Avoid writing to just-opened fd 2 if
25523         restoring the current directory fails.
25524         * lib/openat-die.c (openat_restore_fail): Add comment.
25525         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
25526         (save_cwd): Guarantee safe fd, but without use of open_safer.
25527         * tests/test-openat.c: New test.
25528         * modules/openat-tests (Files, Makefile.am): Distribute and build
25529         new file.
25530
25531         relocatable-prog-wrapper: fix build
25532         * modules/relocatable-prog-wrapper (Files): Update name of
25533         canonicalize m4 file, broken on 2009-09-17.
25534         Reported by emad hajjar <aleppos@hotmail.com>.
25535
25536 2009-09-19  Bruno Haible  <bruno@clisp.org>
25537
25538         * lib/safe-alloc.h: Use the standard header with GPL copyright.
25539         * lib/safe-alloc.c: Likewise.
25540         Reported by Ian Beckwith <ianb@erislabs.net>.
25541
25542 2009-09-18  Bruno Haible  <bruno@clisp.org>
25543
25544         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
25545         Reported by <erobles@sensacd.com.mx>.
25546
25547 2009-09-17  Eric Blake  <ebb9@byu.net>
25548
25549         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
25550         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
25551         slashes when checking if last component is missing.
25552         * tests/test-canonicalize.c (main): Test this.
25553
25554         canonicalize, canonicalize-lgpl: honor // if distinct from /
25555         * modules/canonicalize (Files): Add double-slash-root.m4.
25556         * modules/canonicalize-lgpl (Files): Likewise.
25557         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25558         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
25559         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
25560         fallback definition.
25561         (canonicalize_filename_mode): Use it to protect //.
25562         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
25563         (__realpath): Likewise.
25564         * tests/test-canonicalize.c (main): Test this.
25565         * tests/test-canonicalize-lgpl.c (main): Likewise.
25566         * modules/canonicalize-tests (Depends-on): Add same-inode.
25567         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25568
25569         canonicalize-lgpl: fix glibc bug with trailing slash
25570         * m4/canonicalize-lgpl.m4: Move contents...
25571         * m4/canonicalize.m4: ...here.
25572         (gl_CANONICALIZE_LGPL): Factor realpath check...
25573         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
25574         glibc 2.3.5 bug, fixed 2005-04-27.
25575         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
25576         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
25577         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
25578         * modules/canonicalize-lgpl (Files): Manage file rename.
25579         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25580         * modules/stdlib (Makefile.am): Substitute witness.
25581         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
25582         is needed.
25583         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
25584         replacement is required.
25585         * lib/canonicalize.c (canonicalize_file_name): Likewise.
25586         * doc/glibc-functions/canonicalize_file_name.texi
25587         (canonicalize_file_name): Document this.
25588         * doc/posix-functions/realpath.texi (realpath): Likewise.
25589
25590         canonicalize-lgpl: reject non-directory with trailing slash
25591         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
25592         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
25593         catches failures in glibc 2.3.5.
25594         * tests/test-canonicalize.c (main): Likewise.
25595
25596         canonicalize-lgpl: use native realpath if it works
25597         * lib/canonicalize-lgpl.c (realpath): Guard with
25598         FUNC_REALPATH_WORKS.
25599         * lib/stdlib.in.h (realpath): Make declaration optional based on
25600         HAVE_REALPATH.
25601         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
25602         native realpath works.
25603         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25604         * modules/stdlib (Makefile.am): Substitute witness.
25605
25606         canonicalize, canonicalize-lgpl: use <stdlib.h>
25607         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
25608         (Include): Mention <stdlib.h>.
25609         (configure.ac): Mention functions we provide.
25610         * modules/canonicalize (configure.ac): Likewise.
25611         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
25612         realpath if canonicalize_file_name is missing.
25613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
25614         * modules/stdlib (Makefile.am): Substitute witnesses.
25615         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
25616         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
25617         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
25618         * NEWS: Document this.
25619         * doc/glibc-functions/canonicalize_file_name.texi
25620         (canonicalize_file_name): Likewise.
25621         * doc/posix-functions/realpath.texi (realpath): Likewise.
25622         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
25623
25624         test-canonicalize: consolidate into single C program
25625         * tests/test-canonicalize.sh: Delete; move setup into...
25626         * tests/test-canonicalize.c (main): ...the program, making it
25627         easier to run in debugger.  Add some tests.
25628         * modules/canonicalize-tests (Files): Remove unused file.
25629         (Depends-on): Add progname.
25630         (configure.ac, Makefile.am): Simplify.
25631
25632         test-canonicalize-lgpl: consolidate into single C program
25633         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
25634         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
25635         easier to run in debugger.  Add some tests.
25636         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
25637         (configure.ac, Makefile.am): Simplify.
25638
25639         canonicalize: avoid resolvepath
25640         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
25641         unnecessary checks.
25642         * lib/canonicalize.c (includes): Simplify.
25643         (canonicalize_file_name): Drop resolvepath implementation.
25644         * modules/canonicalize (Depends-on): Drop filenamecat.
25645
25646         canonicalize: don't lose errno
25647         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
25648         over calls to free.
25649
25650         canonicalize: simplify errno handling
25651         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
25652         assignment.
25653
25654         canonicalize, canonicalize-lgpl: update module dependencies
25655         * modules/canonicalize (Depends-on): Add extensions, lstat,
25656         pathmax, stdlib.
25657         (Files): Drop pathmax.h.
25658         (configure.ac): Adjust macro name.
25659         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
25660         lstat, stdlib, sys_stat.
25661         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
25662         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
25663         extensions.
25664         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
25665         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
25666         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
25667         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
25668         declaration, if available.
25669         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
25670         we can rely on the readlink module.
25671         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
25672         (includes): Use <unistd.h> unconditionally.
25673
25674 2009-09-17  Eric Blake  <ebb9@byu.net>
25675
25676         maint: make Include sections of modules consistent
25677         * modules/alloca: Use only header name; no need to list #include.
25678         * modules/alloca-opt: Likewise.
25679         * modules/arpa_inet: Likewise.
25680         * modules/canon-host: Likewise.
25681         * modules/configmake: Likewise.
25682         * modules/dirent: Likewise.
25683         * modules/eealloc: Likewise.
25684         * modules/environ: Likewise.
25685         * modules/fchdir: Likewise.
25686         * modules/fcntl: Likewise.
25687         * modules/fcntl-h: Likewise.
25688         * modules/gethrxtime: Likewise.
25689         * modules/gettime: Likewise.
25690         * modules/ignore-value: Likewise.
25691         * modules/inet_ntop: Likewise.
25692         * modules/inet_pton: Likewise.
25693         * modules/inttypes: Likewise.
25694         * modules/isnand-nolibm: Likewise.
25695         * modules/isnanf-nolibm: Likewise.
25696         * modules/mbchar: Likewise.
25697         * modules/mbfile: Likewise.
25698         * modules/mbiter: Likewise.
25699         * modules/mbuiter: Likewise.
25700         * modules/netdb: Likewise.
25701         * modules/netinet_in: Likewise.
25702         * modules/nproc: Likewise.
25703         * modules/pagealign_alloc: Likewise.
25704         * modules/poll: Likewise.
25705         * modules/printf-frexp: Likewise.
25706         * modules/pthread: Likewise.
25707         * modules/putenv: Likewise.
25708         * modules/random_r: Likewise.
25709         * modules/relocatable-prog: Likewise.
25710         * modules/search: Likewise.
25711         * modules/select: Likewise.
25712         * modules/selinux-h: Likewise.
25713         * modules/settime: Likewise.
25714         * modules/signal: Likewise.
25715         * modules/size_max: Likewise.
25716         * modules/socklen: Likewise.
25717         * modules/ssize_t: Likewise.
25718         * modules/stdarg: Likewise.
25719         * modules/stdbool: Likewise.
25720         * modules/stddef: Likewise.
25721         * modules/stdint: Likewise.
25722         * modules/stdio: Likewise.
25723         * modules/stdlib: Likewise.
25724         * modules/string: Likewise.
25725         * modules/strings: Likewise.
25726         * modules/sys_file: Likewise.
25727         * modules/sys_ioctl: Likewise.
25728         * modules/sys_select: Likewise.
25729         * modules/sys_socket: Likewise.
25730         * modules/sys_stat: Likewise.
25731         * modules/sys_time: Likewise.
25732         * modules/sys_times: Likewise.
25733         * modules/sys_utsname: Likewise.
25734         * modules/sys_wait: Likewise.
25735         * modules/sysexits: Likewise.
25736         * modules/time: Likewise.
25737         * modules/times: Likewise.
25738         * modules/tmpfile: Likewise.
25739         * modules/trim: Likewise.
25740         * modules/unistd: Likewise.
25741         * modules/wchar: Likewise.
25742         * modules/wctype: Likewise.
25743
25744 2009-09-17  Bruno Haible  <bruno@clisp.org>
25745
25746         Make getdate.y compile on QNX and NetBSD 5 / i386.
25747         * m4/getdate.m4 (gl_GETDATE): Conditionally define
25748         TIME_T_FITS_IN_LONG_INT.
25749         * lib/getdate.y (long_time_t): New type.
25750         (relative_time): Change type of 'seconds' field to long_time_t.
25751         (get_date): Update types of local variables. Check against overflow
25752         during conversion from long_time_t to time_t.
25753         Reported by Matt Kraai <kraai@ftbfs.org>
25754         and Hasso Tepper <hasso@netbsd.org>.
25755
25756 2009-09-17  Bruno Haible  <bruno@clisp.org>
25757
25758         * modules/COPYING: Update copyright years.
25759         * modules/README: Likeiwse.
25760         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
25761         Reported by Ian Beckwith <ianb@erislabs.net>.
25762
25763 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25764
25765         * users.txt: Update references for gnuit package.
25766
25767 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25768
25769         * m4/getdelim.m4: Fix typo in copyright line.
25770
25771 2009-09-17  Bruno Haible  <bruno@clisp.org>
25772
25773         * lib/atoll.c: Use the standard header with GPL copyright.
25774         * lib/argz.in.h: Likewise.
25775         * lib/glob.c: Likewise.
25776         * lib/glob-libc.h: Likewise.
25777         * lib/random_r.c: Likewise.
25778         * lib/siglist.h: Likewise.
25779         * lib/strsignal.c: Likewise.
25780         Reported by Ian Beckwith <ianb@erislabs.net>.
25781
25782 2009-09-17  Eric Blake  <ebb9@byu.net>
25783
25784         rmdir: ensure correct dependency order
25785         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
25786
25787 2009-09-17  Bruno Haible  <bruno@clisp.org>
25788
25789         Disable assertion that fails on NetBSD 5 / i386.
25790         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
25791         Reported by Sam Steingold <sds@gnu.org>
25792         and Hasso Tepper <hasso@netbsd.org>.
25793
25794 2009-09-16  Eric Blake  <ebb9@byu.net>
25795
25796         unlinkdir: port to mingw
25797         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
25798         on which no one can unlink a directory.
25799
25800         stdlib: sort witness names
25801         * modules/stdlib (Makefile.am): Sort replacements.
25802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25803         * lib/stdlib.in.h: Likewise.
25804
25805         parse-duration-tests: avoid link failure
25806         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
25807         LIBINTL.
25808         Reported by Tom G. Christensen.
25809
25810         openat-tests: ensure unlinkat behaves like rmdir
25811         * tests/test-rmdir.c (main): Factor guts...
25812         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
25813         * modules/rmdir-tests (Files): Ship new file.
25814         * modules/openat-tests: New test.
25815         * tests/test-unlinkat.c: Likewise.
25816
25817         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
25818         * modules/rmdir-errno (Status, Notice): Now obsolete.
25819
25820         rmdir: work around cygwin 1.5.x and mingw bugs
25821         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
25822         * lib/rmdir.c (rmdir): Work around it.
25823         * modules/rmdir (Status, Notice): No longer obsolete.
25824         (Files): Add dos.m4.
25825         (Depends-on): Add unistd.
25826         (configure.ac): Set witnesses.
25827         (License): Relax to LGPLv2+.
25828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
25829         * modules/unistd (Makefile.am): Substitute witnesses.
25830         * lib/unistd.in.h (rmdir): Declare replacement.
25831         * doc/posix-functions/rmdir.texi (rmdir): Document this.
25832         * modules/rmdir-tests: New tests.
25833         * tests/test-rmdir.c: Likewise.
25834
25835 2009-09-15  Eric Blake  <ebb9@byu.net>
25836
25837         fchdir: improve use of replacement functions
25838         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
25839         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
25840         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
25841         REPLACE_CLOSEDIR.
25842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
25843         * modules/sys_stat (Makefile.am): Substitute correct witness.
25844         * modules/dirent (Makefile.am): Likewise.
25845         * modules/unistd (Makefile.am): Likewise.
25846         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
25847         * lib/unistd.in.h (dup): Likewise.
25848         * lib/sys_stat.in.h (fstat): Likewise.
25849
25850         maint: ignore gnulib-tool temp files
25851         * .gitignore: Ignore files created during gnulib-tool --test.
25852
25853 2009-09-13  Jim Meyering  <meyering@redhat.com>
25854
25855         posixtm: don't reject a time that specify "60" as the number of seconds
25856         * lib/posixtm.c (posixtime): The code to reject invalid dates
25857         would also reject a time specified with the .60 suffix.
25858         But POSIX allows that, in order to accommodate leap seconds.
25859         So don't reject it.
25860         (main): Adjust tests accordingly.
25861         * modules/posixtm (Depends-on): Add stpcpy.
25862
25863 2009-09-11  Jim Meyering  <meyering@redhat.com>
25864
25865         announce-gen: include [$release_type] in emitted Subject:
25866         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
25867         e.g., [stable] in the emitted Subject: line.
25868
25869 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25870
25871         Remove obsolete macros from several modules.
25872         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
25873         obsolete Autoconf macros with their modern counterparts.
25874         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
25875         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
25876         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
25877         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
25878         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
25879         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25880         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25881         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25882         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25883         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
25884         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
25885         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
25886         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
25887         * m4/sockets.m4 (gl_SOCKETS): Likewise.
25888         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
25889         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
25890         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
25891         * m4/time_r.m4 (gl_TIME_R): Likewise.
25892         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25893         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
25894         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25895
25896         Fix copyright header in build-aux scripts.
25897         * build-aux/git-version-gen: Fix copyright header to match GPLv3
25898         recommendation.
25899         * build-aux/ncftpput-ftp: Likewise.
25900         * build-aux/update-copyright: Likewise.
25901
25902 2009-09-09  Eric Blake  <ebb9@byu.net>
25903
25904         test-link: allow Linux choice of errno
25905         * tests/test-link.c (main): Relax test for alternate error.
25906
25907         strndup: fix improper m4 caching
25908         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
25909         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
25910         (gl_PREREQ_STRNDUP): Delete.
25911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
25912         * modules/string (Makefile.am): Substitute it.
25913         * lib/string.in.h (strndup): Modernize prototype.
25914
25915         getcwd: port to mingw
25916         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
25917         different from the POSIX assumptions made throughout the getcwd
25918         module; fortunately, the mingw getcwd does not need replacement.
25919         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
25920         * modules/getcwd-tests: New test.
25921         * tests/test-getcwd.c: Likewise.
25922
25923         link: fix platform bugs
25924         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
25925         * lib/link.c (link): Work around them.  Fix related mingw bug.
25926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
25927         * modules/unistd (Makefile.am): Substitute it.
25928         * lib/unistd.in.h (link): Declare replacement.
25929         * doc/posix-functions/link.texi (link): Document this.
25930         * modules/link (Depends-on): Add strdup-posix, sys_stat.
25931
25932         test-link: consolidate into single C program, test more cases
25933         * tests/test-link.sh: Delete.
25934         * tests/test-link.c: Test more error conditions.  Exposes bugs on
25935         at least Cygwin and Solaris.
25936         * modules/link-tests (Files): Remove unused file.
25937         (Depends-on): Add errno, sys_stat.
25938         (Makefile.am): Simplify.
25939
25940 2009-09-08  Bruno Haible  <bruno@clisp.org>
25941
25942         Work around towlower, towupper bug on mingw.
25943         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
25944         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
25945         * doc/posix-functions/towlower.texi: Mention the mingw bug.
25946         * doc/posix-functions/towupper.texi: Likewise.
25947         Reported by Eric Blake.
25948
25949 2009-09-08  Jim Meyering  <meyering@redhat.com>
25950
25951         build: don't try to run autoheader if we don't use it
25952         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
25953         is not used in configure.ac.
25954
25955 2009-09-08  Eric Blake  <ebb9@byu.net>
25956
25957         euidaccess: fix compilation error
25958         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
25959
25960         rawmemchr: relax license
25961         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
25962         okay.
25963         Reported by Jim Meyering.
25964
25965         mkfifoat: new module
25966         * modules/mkfifoat: New file.
25967         * lib/mkfifoat.c: Likewise.
25968         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
25969         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25970         * modules/sys_stat (Makefile.am): Use them.
25971         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
25972         * MODULES.html.sh (File system functions): Mention module.
25973         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25974         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25975         * modules/mkfifoat-tests: New test.
25976         * tests/test-mkfifoat.c: Likewise.
25977
25978         strchrnul: relax license
25979         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
25980         okay.
25981         Reported by Jim Meyering.
25982
25983 2009-09-08  Eric Blake  <ebb9@byu.net>
25984
25985         fstatat: fix compilation on Solaris
25986         * lib/fstatat.c (includes): Add fcntl.h.
25987         Reported by Pádraig Brady.
25988
25989 2009-09-07  Eric Blake  <ebb9@byu.net>
25990
25991         rename: modernize replacement
25992         * modules/rename (Depends-on): Add stdio.
25993         (configure.ac): Declare witness.
25994         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
25995         stdio take care of replacement.
25996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
25997         * modules/stdio (Makefile.am): Substitute them.
25998         * lib/stdio.in.h (rename): Declare replacement.
25999         * lib/rename.c (includes): Allow cross-compilation to non-windows
26000         machines.
26001         * doc/posix-functions/rename.texi (rename): Improve
26002         documentation.
26003
26004         stdio: sort witness names
26005         * modules/stdio (Makefile.am): Sort replacements.
26006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26007         * lib/stdio.in.h: Likewise.
26008
26009         getcwd: minor cleanups
26010         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
26011         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
26012
26013         openat: provide more convenience names
26014         * modules/faccessat (configure.ac): Add C witness.
26015         * lib/unistd.in.h (readlinkat): Fix typo.
26016         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
26017         convenience wrappers.
26018         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
26019         wrappers in syntax checks.
26020
26021 2009-09-06  Eric Blake  <ebb9@byu.net>
26022
26023         doc: fix comments in recent patches
26024         * lib/faccessat.c: Mention correct function.
26025         * lib/fchmodat.c: Likewise.
26026         * lib/fchownat.c: Likewise.
26027         * lib/symlinkat.c: Likewise.
26028         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
26029         constants.
26030
26031         faccessat, symlinkat: continue cleanup of previous patch
26032         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
26033         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26034         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
26035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
26036         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
26037         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
26038         set.
26039
26040 2009-09-06  Bruno Haible  <bruno@clisp.org>
26041
26042         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
26043         (fstatat): Declare if GNULIB_FSTATAT is set.
26044         (mkdirat): Declare if GNULIB_MKDIRAT is set.
26045         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
26046         (unlinkat): Declare if GNULIB_UNLINKAT is set.
26047         * modules/fcntl-h (Files): Remove m4/openat.m4.
26048         * modules/sys_stat (Files): Remove m4/openat.m4.
26049         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
26050         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
26051         * modules/unistd (Files): Remove m4/openat.m4.
26052         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
26053         GNULIB_OPENAT.
26054         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
26055         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
26056         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
26057         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
26058         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
26059         gl_OPENAT_DEFAULTS.
26060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
26061         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
26062         Don't require gl_OPENAT_DEFAULTS.
26063         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
26064         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
26065         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
26066         (gl_OPENAT_DEFAULTS): Remove macro.
26067
26068 2009-09-06  Bruno Haible  <bruno@clisp.org>
26069
26070         * modules/openat (configure.ac): Remove unneeded witness.
26071
26072 2009-09-06  Bruno Haible  <bruno@clisp.org>
26073
26074         Set errno to ENOSYS when a function is entirely unsupported.
26075         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
26076         EOPNOTSUPP.
26077         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26078         * modules/chown (Depends-on): Remove errno.
26079
26080 2009-09-06  Bruno Haible  <bruno@clisp.org>
26081
26082         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
26083
26084 2009-09-06  Bruno Haible  <bruno@clisp.org>
26085
26086         * lib/sys_stat.in.h: Fix preprocessor command indentation.
26087
26088 2009-09-06  Ben Pfaff  <blp@gnu.org>
26089             Bruno Haible  <bruno@clisp.org>
26090
26091         Work around a glibc bug in strtok_r.
26092         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
26093         Undefine if UNDEFINE_STRTOK_R is set.
26094         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
26095         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26096         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
26097         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
26098         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
26099         UNDEFINE_STRTOK_R.
26100         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
26101
26102 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26103
26104         exclude: minor fix
26105         * lib/exclude.c: Include wctype.h
26106
26107 2009-09-06  Akim Demaille  <demaille@gostai.com>
26108
26109         bootstrap: improve error message
26110         * build-aux/bootstrap (find_tool): Upon failure, report the list
26111         of candidates.
26112         Honor the initial value of the envvar.
26113
26114 2009-09-05  Eric Blake  <ebb9@byu.net>
26115
26116         symlinkat: new module
26117         * modules/symlinkat: New file.
26118         * lib/symlinkat.c: Likewise.
26119         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
26120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26121         * modules/unistd (Makefile.am): Use them.
26122         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
26123         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
26124         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
26125         * MODULES.html.sh (File system functions): Mention module.
26126         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26127         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26128         * modules/symlinkat-tests: New test.
26129         * tests/test-symlinkat.c: Likewise.
26130
26131         test-openat-safer: add more checks
26132         * tests/test-openat-safer.c (main): Check more code paths.
26133
26134 2009-09-05  Jim Meyering  <meyering@redhat.com>
26135
26136         syntax-check: detect unnecessary inclusion of openat.h
26137         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
26138
26139 2009-09-05  Bruno Haible  <bruno@clisp.org>
26140
26141         Support towlower, towupper.
26142         * doc/posix-functions/towlower.texi: Mention module wctype.
26143         * doc/posix-functions/towupper.texi: Likewise.
26144         * lib/wctype.in.h (towlower, towupper): New functions.
26145         * tests/test-wctype.c: Include stdio.h, stdlib.h.
26146         (ASSERT): New macro.
26147         (e): New variable.
26148         (main): Test also towlower, towupper. Test WEOF argument.
26149         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26150
26151 2009-09-05  Bruno Haible  <bruno@clisp.org>
26152
26153         Fix conversion behaviour when the input is invalid.
26154         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
26155         mark occurring in first pass of indirect conversion.
26156         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
26157         input.
26158         Found by clang's static analyzer.
26159
26160 2009-09-05  Bruno Haible  <bruno@clisp.org>
26161
26162         * tests/test-striconveh.c (main): Test indirect conversion on platforms
26163         where direct conversion is possible.
26164
26165 2009-09-04  Eric Blake  <ebb9@byu.net>
26166
26167         openat: fail with ENOENT on empty name
26168         * lib/openat-proc.c (openat_proc_name): Special-case the empty
26169         buffer.
26170
26171         link-follow: fix logic bug in prior patch
26172         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
26173         reversed sense of yes and no in prior patch.  Avoid confusing
26174         compilation failure with desired semantics.
26175
26176         link-follow: accomodate mingw and cross-compilation
26177         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
26178         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
26179         cross-compilation results to -1, to make linkat easier to
26180         implement when cross-compiling.  Trivially support mingw.
26181         * modules/link-follow (configure.ac): Call new name.
26182         * NEWS: Mention this.
26183
26184 2009-09-03  Eric Blake  <ebb9@byu.net>
26185
26186         faccessat: compile replacement
26187         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
26188         needed.
26189
26190         fts: fix compilation error
26191         * lib/fts.c (includes): Re-add "openat.h", for
26192         openat_needs_fchdir.
26193
26194         faccessat: new module
26195         * modules/faccessat: New file.
26196         * lib/faccessat.c: Likewise.
26197         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26199         * modules/unistd (Makefile.am): Use it.
26200         * lib/unistd.in.h (faccessat): Declare it.
26201         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
26202         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
26203         * MODULES.html.sh (File system functions): Mention it.
26204         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
26205         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26206
26207         euidaccess: prefer POSIX over non-standard implementation
26208         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
26209         * lib/euidaccess.c (euidaccess): Use it if available.
26210
26211         openat: make template easier to use
26212         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
26213         AT_FUNC_F2 to be undefined.
26214         (VALIDATE_FLAG): New macro; use it to reject bad flags.
26215         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
26216         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
26217         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
26218         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
26219         Likewise.
26220         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
26221         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
26222         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
26223         Likewise.
26224
26225         openat: declare in POSIX headers
26226         * NEWS: Mention this.
26227         * modules/openat (configure.ac): Declare witnesses.
26228         (Depends-on): Add fcntl-h, sys_stat, unistd.
26229         (Include): Mention correct headers.
26230         * modules/fcntl-h (Depends-on): Add link-warning.
26231         (Files): Add openat.m4.
26232         (Makefile.am): Substitute witnesses.
26233         * modules/sys_stat (Files, Makefile.am): Likewise.
26234         * modules/unistd (Files, Makefile.am): Likewise.
26235         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
26236         (gl_OPENAT_DEFAULTS): New macro.
26237         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
26238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
26239         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
26240         (SYS_STAT_H): Remove unused variable.
26241         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
26242         * lib/fcntl--.h (includes): Remove unneeded header.
26243         * lib/openat-safer.c (includes): Likewise.
26244         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
26245         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
26246         appropriate headers.
26247         (__OPENAT_PREFIX): Delete.
26248         * lib/fcntl.in.h (openat): Provide declaration.
26249         (AT_FDCWD): Fix Solaris bug.
26250         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
26251         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
26252         * lib/fchmodat.c (includes):  Adjust to find declaration.
26253         * lib/fchownat.c (includes): Likewise.
26254         * lib/mkdirat.c (includes): Likewise.
26255         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
26256         still visible.
26257
26258 2009-09-02  Eric Blake  <ebb9@byu.net>
26259
26260         errno: use consistently
26261         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
26262         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
26263         * lib/canonicalize.c (ELOOP): Likewise.
26264         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
26265         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
26266         * lib/lchown.c (EOPNOTSUPP): Likewise.
26267         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
26268         * lib/savewd.c (ESTALE): Likewise.
26269         * lib/settime.c (ENOSYS): Likewise.
26270         * lib/utimens.c (ENOSYS): Likewise.
26271         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
26272         * lib/chdir-safer.c (ELOOP): Likewise.
26273         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
26274         * modules/c-stack (Depends-on): Add errno.
26275         * modules/canonicalize (Depends-on): Likewise.
26276         * modules/chdir-safer (Depends-on): Likewise.
26277         * modules/fdopendir (Depends-on): Likewise.
26278         * modules/inet_ntop (Depends-on): Likewise.
26279         * modules/inet_pton (Depends-on): Likewise.
26280         * modules/lchown (Depends-on): Likewise.
26281         * modules/openat (Depends-on): Likewise.
26282         * modules/savewd (Depends-on): Likewise.
26283         * modules/settime (Depends-on): Likewise.
26284         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
26285
26286         fts: avoid leaking fds
26287         * modules/fts (Depends-on): Add cloexec.
26288         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
26289         flag.
26290
26291         fts: make directory fds more robust
26292         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
26293         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
26294
26295         backupfile, chdir-long, fts, savedir: make safer
26296         * lib/backupfile.c (includes): Use "dirent--.h", since
26297         numbered_backup can write to stderr during readdir.
26298         * lib/savedir.c (includes): Likewise.
26299         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
26300         emulation can write to stderr on failure.
26301         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
26302         * lib/getcwd.c: Document why opendir_safer is unused.
26303         * lib/glob.c: Likewise.
26304         * lib/scandir.c: Likewise.
26305         * lib/openat-proc.c: Likewise, for open_safer.
26306         * modules/backupfile (Depends-on): Add dirent-safer.
26307         * modules/savedir (Depends-on): Likewise.
26308         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
26309         * modules/chdir-long (Depends-on): Add openat-safer.
26310
26311         openat-safer: new module
26312         * modules/openat-safer: New file.
26313         * lib/openat-safer.c: Likewise.
26314         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
26315         * lib/fcntl-safer.h (openat_safer): Declare.
26316         * lib/fcntl--.h (openat): Override.
26317         * MODULES.html.sh (File descriptor based I/O): Mention it.
26318         * lib/openat.h: Add double-inclusion guards.
26319         * lib/openat.c (includes): Only include "fcntl-safer.h", not
26320         "fcntl--.h", so we can implement openat.
26321         * modules/openat-safer-tests: New test.
26322         * tests/test-openat-safer.c: New file.
26323
26324         dirent-safer: new module
26325         * modules/dirent-safer: New file.
26326         * lib/dirent--.h: Likewise.
26327         * lib/dirent-safer.h: Likewise.
26328         * lib/opendir-safer.c: Likewise.
26329         * m4/dirent-safer.m4: Likewise.
26330         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
26331         * modules/dirent-safer-tests: New test.
26332         * tests/test-dirent-safer.c: New file.
26333         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
26334
26335         fdopendir: optimize on mingw
26336         * lib/unistd.in.h (_gl_directory_name): New prototype.
26337         * lib/fchdir.c (_gl_directory_name): Implement it.
26338         (fchdir): Use it to simplify implementation.
26339         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
26340         fchdir, when available, to avoid calling [f]chdir().
26341
26342         fdopendir: split into its own module
26343         * lib/openat.c (fdopendir): Move...
26344         * lib/fdopendir.c: ...into new file.
26345         * modules/fdopendir: New module.
26346         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
26347         * modules/openat (Depends-on): Add fdopendir.
26348         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
26349         fdopendir here.
26350         * modules/savedir (Depends-on): Only need fdopendir, not full
26351         openat.
26352         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
26353         * lib/openat.h (fdopendir): Drop prototype.
26354         * lib/dirent.in.h (fdopendir): Provide prototype.
26355         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
26356         * modules/dirent (Makefile.am): Substitute them.
26357         * MODULES.html.sh (File system functions): Mention it.
26358         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
26359         * modules/fdopendir-tests: New file.
26360         * tests/test-fdopendir.c: Likewise.
26361
26362         fchdir: use more consistent macro convention
26363         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
26364         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
26365         REPLACE_FCHDIR, rather than relying on config.h macros.
26366         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
26367         inside a single make-time REPLACE_FCHDIR block, rather than using
26368         the config.h FCHDIR_REPLACEMENT.
26369         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
26370         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
26371         Manage fstat replacement.
26372         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
26373         REPLACE_FCHDIR.
26374         * modules/sys_stat (Files): Add m4/unistd_h.m4.
26375         (Makefile.am): Substitute REPLACE_FCHDIR.
26376         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
26377         FCHDIR_REPLACEMENT.
26378         * lib/dup-safer.c (dup_safer): Likewise.
26379         * lib/dup2.c (rpl_dup2): Likewise.
26380         * lib/dup3.c (rpl_dup3): Likewise.
26381         * lib/open.c (rpl_open): Likewise.
26382
26383         fchdir: simplify error handling, and support dup3
26384         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
26385         stdbool, malloc-posix, realloc-posix.
26386         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
26387         (ensure_dirs_slot): Return false on allocation failure.
26388         (rpl_dup2): Delete.
26389         (_gl_register_dup): New function.
26390         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
26391         (_gl_register_fd): Close fd on allocation failure.
26392         * lib/fcntl.in.h (_gl_register_fd): Update signature.
26393         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
26394         prototype.
26395         (rpl_dup2_fchdir): Delete prototype.
26396         * lib/open.c (open): Update caller.
26397         * lib/dup2.c (dup2): Track fchdir metadata.
26398         * lib/dup3.c (dup3): Likewise.
26399         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
26400         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
26401
26402 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26403
26404         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
26405         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
26406         don't pass arguments to AC_OUTPUT.
26407
26408 2009-09-02  Bruno Haible  <bruno@clisp.org>
26409
26410         * modules/mkdtemp (License): Relicense under LGPLv2+.
26411         Reported by Paolo Bonzini.
26412
26413 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26414
26415         Replace uses of obsolete autoconf macros in Jim's modules.
26416         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
26417         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
26418         can evoke a warning from autoconf when run with -Wobsolete
26419         enabled.  They were declared obsolete for good reasons (see
26420         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
26421         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
26422         should not continue using the deprecated macros.
26423         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
26424         obsolete Autoconf macros with modern counterparts.
26425         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26426         * m4/dos.m4 (gl_AC_DOS): Likewise.
26427         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
26428         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26429         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
26430         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
26431         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
26432         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
26433         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
26434         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
26435         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
26436         Likewise.
26437         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26438         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26439         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
26440         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
26441         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
26442         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26443
26444 2009-09-01  Eric Blake  <ebb9@byu.net>
26445
26446         fchdir: fix off-by-one bug in previous patch
26447         * lib/fchdir.c (rpl_fstat): Use correct bounds.
26448         (_gl_unregister_fd): Delete useless if.
26449
26450 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
26451
26452         maint.mk: sort the list of syntax-check rules
26453         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
26454         easier to get a sense of progress when the rules are run sequentially
26455         and take a long time.
26456
26457 2009-09-01  Simon Josefsson  <simon@josefsson.org>
26458
26459         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
26460         * modules/netinet_in: Likewise.
26461         * modules/sys_file: Likewise.
26462         * modules/sys_ioctl: Likewise.
26463         * modules/sys_select: Likewise.
26464         * modules/sys_socket: Likewise.
26465         * modules/sys_stat: Likewise.
26466         * modules/sys_time: Likewise.
26467         * modules/sys_times: Likewise.
26468         * modules/sys_utsname: Likewise.
26469         * modules/sys_wait: Likewise.
26470
26471 2009-09-01  Jim Meyering  <meyering@redhat.com>
26472
26473         fts: help ensure that return values are not ignored
26474         * lib/fts_.h (__GNUC_PREREQ): Define.
26475         (__attribute_warn_unused_result__): Define.
26476         (fts_children, fts_close, fts_open, fts_read): Declare with
26477         __attribute_warn_unused_result__.
26478
26479         fts: fts_close now fails also when closing a dir file descriptor fails
26480         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
26481         and propagate to caller, along with errno.
26482
26483         announce-gen: correct formatting in --help output
26484         * build-aux/announce-gen (usage): Move the one-line description in
26485         --help output "up", to where it belongs, just after Usage:.
26486
26487 2009-08-31  Eric Blake  <ebb9@byu.net>
26488
26489         fchdir: port to mingw
26490         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
26491         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
26492         opened, then use a substitute.
26493         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
26494         replacement.
26495         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
26496         (_gl_register_fd): No need to check stat if open already filters
26497         all directories.
26498         (fchdir): Fix error condition to match POSIX.
26499         * modules/fchdir (Depends-on): Add sys_stat.
26500         * doc/posix-functions/open.texi (open): Document the limitation.
26501         * modules/fchdir-tests: New file.
26502         * tests/test-fchdir.c: Likewise.
26503
26504         canonicalize: allow cross-testing from cygwin to mingw
26505         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
26506         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
26507         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
26508         Likewise.
26509         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
26510         target does not support symlinks.
26511         * tests/test-canonicalize-lgpl.sh: Likewise.
26512
26513         chown: avoid compilation warning on mingw
26514         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
26515         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
26516         mingw.
26517         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26518         * modules/chown (Depends-on): Add errno.
26519
26520 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26521
26522         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
26523         command.
26524
26525 2009-08-31  Jim Meyering  <meyering@redhat.com>
26526
26527         canonicalize: remove useless initialization
26528         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
26529         initialization of local, "end".
26530
26531 2009-08-30  Bruno Haible  <bruno@clisp.org>
26532
26533         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
26534         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
26535         ENOSYS.
26536
26537 2009-08-30  Bruno Haible  <bruno@clisp.org>
26538
26539         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
26540         /usr/xpg4/bin/tr when it exists.
26541         * tests/test-pipe-filter-gi1.sh: Likewise.
26542
26543 2009-08-30  Bruno Haible  <bruno@clisp.org>
26544
26545         Work around deficient /usr/bin/id program on Solaris.
26546         * tests/test-file-has-acl.sh (ID): New variable.
26547         * tests/test-set-mode-acl.sh (ID): Likewise.
26548         * tests/test-copy-acl.sh (ID): Likewise.
26549         * tests/test-copy-file.sh (ID): Likewise.
26550
26551 2009-08-30  Bruno Haible  <bruno@clisp.org>
26552
26553         New module 'xstriconveh'.
26554         * lib/xstriconveh.h: New file.
26555         * lib/xstriconveh.c: New file.
26556         * modules/xstriconveh: New file.
26557
26558 2009-08-30  Bruno Haible  <bruno@clisp.org>
26559
26560         Make it easier to use mem_cd_iconveh.
26561         * lib/striconveh.h (iconveh_t): New type.
26562         (iconveh_open, iconveh_close): New declarations.
26563         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26564         with a single 'const iconveh_t *' argument.
26565         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
26566         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26567         with a single 'const iconveh_t *' argument.
26568         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
26569         * tests/test-striconveh.c (main): Update.
26570         * NEWS: Mention the change.
26571
26572 2009-08-30  Bruno Haible  <bruno@clisp.org>
26573
26574         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
26575         problem.
26576
26577 2009-08-30  Bruno Haible  <bruno@clisp.org>
26578
26579         Work around iconv_open problem on Solaris.
26580         * lib/iconv_open-solaris.gperf: New file.
26581         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
26582         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
26583         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
26584         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
26585         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
26586         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
26587
26588 2009-08-29  Jim Meyering  <meyering@redhat.com>
26589
26590         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
26591         * top/maint.mk (cvs-check): Remove target; it was just an alias
26592         to the better-named vc-diff-check.
26593         (maintainer-distcheck): Remove rule.  It was used only from
26594         the (alpha/beta/major) target, and all of its commands but one
26595         were coreutils-specific.
26596         (vc-dist): Remove rule.
26597         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
26598         Run vc-diff-check, not vc-dist.
26599         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
26600
26601 2009-08-27  Bruno Haible  <bruno@clisp.org>
26602
26603         * tests/test-bitrotate.c (main): Remove test that uses a shift count
26604         of 0.
26605
26606 2009-08-27  Bruno Haible  <bruno@clisp.org>
26607
26608         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
26609         compilers.
26610         * doc/func.texi: Document the SunPRO C bug.
26611
26612 2009-08-27  Bruno Haible  <bruno@clisp.org>
26613
26614         Fix link error on Solaris.
26615         * tests/test-parse-duration.c (xstrdup): Remove function.
26616
26617 2009-08-26  Pádraig Brady  <P@draigbrady.com>
26618
26619         ignore-value: handle pointer types, too
26620         * lib/ignore-value.h (__attribute__): Remove definition.
26621         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
26622         of a more concise and more-often effective "(void) i" statement.
26623         (ignore_ptr): New function to suppress warnings from functions that
26624         return pointers, and to make it explicit that one function doesn't
26625         handle all cases.
26626
26627 2009-08-25  Bruno Haible  <bruno@clisp.org>
26628
26629         dup2: work around a Linux bug.
26630         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
26631         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
26632         * doc/posix-functions/dup2.texi: Mention the Linux bug.
26633         Reported by Simon Josefsson.
26634
26635 2009-08-25  Jim Meyering  <meyering@redhat.com>
26636
26637         libguestfs uses gnulib
26638         * users.txt: Add libguestfs.
26639
26640 2009-08-24  Eric Blake  <ebb9@byu.net>
26641
26642         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
26643         * lib/pipe2.c (includes): Add binary-io.h.
26644         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
26645
26646 2009-08-24  Bruno Haible  <bruno@clisp.org>
26647
26648         Tolerate declared but missing accept4 syscall.
26649         * lib/accept4.c (accept4): Invoke original accept4 function first, if
26650         available.
26651         * lib/sys_socket.in.h (accept4): If the function is already present,
26652         override it.
26653         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
26654         * modules/accept4 (Makefile.am): Compile accept4.c always.
26655         Reported by Paolo Bonzini and Eric Blake.
26656
26657 2009-08-23  Bruno Haible  <bruno@clisp.org>
26658
26659         New module 'accept4'.
26660         * lib/sys_socket.in.h (accept4): New declaration.
26661         * lib/accept4.c: New file.
26662         * m4/accept4.m4: New file.
26663         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26664         GNULIB_ACCEPT4, HAVE_ACCEPT4.
26665         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
26666         HAVE_ACCEPT4.
26667         * modules/accept4: New file.
26668         * doc/glibc-functions/accept4.texi: Mention the new module.
26669
26670 2009-08-24  Jim Meyering  <meyering@redhat.com>
26671
26672         progname: also set global program_invocation_name, when possible
26673         Before this change, a libtool-enabled program that calls glibc's
26674         error function would report the program name as
26675         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
26676         * modules/progname (configure.ac): Check for a declaration of
26677         program_invocation_name.
26678         * lib/progname.c:  Include <errno.h>.
26679         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
26680         Set program_invocation_name.
26681
26682 2009-08-23  Bruno Haible  <bruno@clisp.org>
26683
26684         * lib/dup3.c: Include <string.h>.
26685
26686 2009-08-23  Bruno Haible  <bruno@clisp.org>
26687
26688         * lib/dup3.c (dup3): Test only once whether the system actually exists.
26689         * lib/pipe2.c (pipe2): Likewise.
26690         Suggested by Eric Blake.
26691
26692 2009-08-23  Bruno Haible  <bruno@clisp.org>
26693
26694         Tolerate declared but missing dup3 syscall.
26695         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
26696         * lib/unistd.in.h (dup3): If the function is already present,
26697         override it.
26698         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
26699         * modules/dup3 (Makefile.am): Compile dup3.c always.
26700         Reported by Paolo Bonzini.
26701
26702 2009-08-23  Bruno Haible  <bruno@clisp.org>
26703
26704         Tolerate declared but missing pipe2 syscall.
26705         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
26706         available.
26707         * lib/unistd.in.h (pipe2): If the function is already present,
26708         override it.
26709         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
26710         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
26711         Reported by Paolo Bonzini.
26712
26713 2009-08-23  Bruno Haible  <bruno@clisp.org>
26714
26715         * lib/pipe2.c (pipe2): Move #ifs inside function.
26716
26717 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26718
26719         quotearg: document limitations of quote_these_too
26720         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
26721         those limitations are created.
26722         * lib/quotearg.h (set_char_quoting): Document that digits and
26723         letters that are special after backslash are not permitted.
26724         (quotearg_char): Cross-reference set_char_quoting documentation.
26725
26726 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
26727
26728         quotearg: implement custom_quoting_style
26729         * lib/quotearg.c: (struct quoting_options): Add left_quote and
26730         right_quote fields.
26731         (set_custom_quoting): New public function.
26732         (quotearg_buffer_restyled): Add left_quote and right_quote
26733         arguments, handle them very much like locale quoting, and update
26734         all uses.
26735         (quotearg_n_custom): New public function.
26736         (quotearg_n_custom_mem): New public function.
26737         (quotearg_custom): New public function.
26738         (quotearg_custom_mem): New public function.
26739         * lib/quotearg.h: Prototype and document new public functions.
26740         (enum quoting_style): For escape_quoting_style and
26741         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
26742         ignored even though they're otherwise like c_quoting_style.
26743         Add custom_quoting_style member and document with comparison to
26744         clocale_quoting_style.
26745         * tests/test-quotearg.c (custom_quotes): New array.
26746         (custom_results): New array.
26747         (main): Extend to test custom quoting.
26748
26749 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26750
26751         quotearg: fix right quote escaping when it's in quote_these_too
26752         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
26753         quote, be sure to prepend only one backslash.
26754         * tests/test-quotearg.c (use_quote_double_quotes): New function.
26755         (main): Test it.
26756
26757 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26758
26759         quotearg-tests: test escaping of embedded locale quotes
26760         * tests/test-quotearg.c (struct result_strings): Add member for
26761         new input.
26762         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
26763         (inputs): Add new input.
26764         (results_g): Add expected results.
26765         (flag_results): Likewise.
26766         (locale_results): Likewise.
26767         (compare_strings): Check those.
26768
26769 2009-08-23  Bruno Haible  <bruno@clisp.org>
26770
26771         Tests for module 'dup3'.
26772         * modules/dup3-tests: New file.
26773         * tests/test-dup3.c: New file.
26774
26775         New module 'dup3'.
26776         * lib/unistd.in.h (dup3): New declaration.
26777         * lib/dup3.c: New file.
26778         * m4/dup3.m4: New file.
26779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
26780         HAVE_DUP3.
26781         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
26782         * modules/dup3: New file.
26783         * doc/glibc-functions/dup3.texi: Mention the new module.
26784
26785 2009-08-23  Bruno Haible  <bruno@clisp.org>
26786
26787         Tweak the dup2 test.
26788         * tests/test-dup2.c (main): Create the test file empty. Verify that an
26789         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
26790         the test file is still empty. Fix argument order of lseek.
26791
26792 2009-08-23  Bruno Haible  <bruno@clisp.org>
26793
26794         Avoid test link errors when the modules getopt-gnu, gettext are used.
26795         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
26796         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26797
26798 2009-08-23  Bruno Haible  <bruno@clisp.org>
26799
26800         Fix getdtablesize() on mingw.
26801         * lib/getdtablesize.c (getdtablesize): Implement differently.
26802         * lib/unistd.in.h (getdtablesize): Improve comment.
26803
26804 2009-08-23  Bruno Haible  <bruno@clisp.org>
26805
26806         New module 'mkostemp'.
26807         Based on Ulrich Drepper's 2007-08-10 change in glibc.
26808         * lib/stdlib.in.h (mksotemp): New declaration.
26809         * lib/mkostemp.c: New file, from glibc with modifications.
26810         * lib/tempname.h (GT_FILE): Remove outdated comment.
26811         (gen_tempname): Add flags argument.
26812         * lib/tempname.c (__GT_BIGFILE): Remove macro.
26813         (__GT_FILE): Map to 1.
26814         (small_open, large_open): Remove macros.
26815         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
26816         * lib/mkstemp.c (mkstemp): Update.
26817         * lib/mkdtemp.c (mkdtemp): Likewise.
26818         * m4/mkostemp.m4: New file.
26819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
26820         HAVE_MKOSTEMP.
26821         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
26822         HAVE_MKOSTEMP.
26823         * modules/mkostemp: New file, based on modules/mkstemp.
26824         * doc/glibc-functions/mkostemp.texi: Mention the new module.
26825         * NEWS: Mention the change.
26826
26827 2009-08-23  Bruno Haible  <bruno@clisp.org>
26828
26829         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
26830         Reported by Eric Blake.
26831
26832 2009-08-23  Bruno Haible  <bruno@clisp.org>
26833
26834         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
26835         Reported by Eric Blake.
26836
26837 2009-08-23  Bruno Haible  <bruno@clisp.org>
26838
26839         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
26840         * modules/pipe2 (Depends-on): Likewise.
26841
26842 2009-08-23  Eric Blake  <ebb9@byu.net>
26843
26844         fcntl-h: add O_TTY_INIT support
26845         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
26846         * tests/test-fcntl-h.c (o): Test it.
26847         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26848
26849         fcntl-h: rename from fcntl, in preparation for fcntl(2)
26850         * modules/fcntl: Move <fcntl.h> header replacement...
26851         * modules/fcntl-h: ...to new name, so as not to collide with
26852         like-named function.
26853         * tests/test-fcntl.c: Rename...
26854         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
26855         * modules/fcntl-tests: Rename...
26856         * modules/fcntl-h-tests: ...to this.  Update test file name.
26857         * modules/chdir-long (Depends-on): Update clients.
26858         * modules/chdir-safer (Depends-on): Likewise.
26859         * modules/fcntl-safer (Depends-on): Likewise.
26860         * modules/fts (Depends-on): Likewise.
26861         * modules/mkancesdirs (Depends-on): Likewise.
26862         * modules/mkdir-p (Depends-on): Likewise.
26863         * modules/open (Depends-on): Likewise.
26864         * modules/savewd (Depends-on): Likewise.
26865         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
26866         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26867
26868 2009-08-22  Bruno Haible  <bruno@clisp.org>
26869
26870         * modules/binary-io (License): Relicense under LGPL.
26871         * modules/pipe2 (License): Likewise.
26872
26873 2009-08-22  Bruno Haible  <bruno@clisp.org>
26874
26875         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
26876         return value.
26877         * lib/pipe-filter-gi.c (filter_init): Likewise.
26878         Reported by Eric Blake.
26879
26880 2009-08-22  Bruno Haible  <bruno@clisp.org>
26881
26882         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
26883         * modules/pipe (Depends-on): Add pipe2.
26884
26885 2009-08-22  Bruno Haible  <bruno@clisp.org>
26886
26887         Tests for module 'pipe2'.
26888         * modules/pipe2-tests: New file.
26889         * tests/test-pipe2.c: New file.
26890
26891         New module 'pipe2'.
26892         * lib/unistd.in.h (pipe2): New declaration.
26893         * lib/pipe2.c: New file.
26894         * m4/pipe2.m4: New file.
26895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
26896         HAVE_PIPE2.
26897         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
26898         * modules/pipe2: New file.
26899         * doc/glibc-functions/pipe2.texi: Mention the new module.
26900
26901 2009-08-22  Bruno Haible  <bruno@clisp.org>
26902
26903         Reference some new glibc functions.
26904         * doc/glibc-functions/accept4.texi: New file.
26905         * doc/glibc-functions/dup3.texi: New file.
26906         * doc/glibc-functions/mkostemp.texi: New file.
26907         * doc/glibc-functions/pipe2.texi: New file.
26908         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
26909         (Glibc sys/socket.h): Refer to accept4.
26910         (Glibc unistd.h): Refer to dup3, pipe2.
26911         Reported by Eric Blake.
26912
26913 2009-08-22  Jim Meyering  <meyering@redhat.com>
26914             Bruno Haible  <bruno@clisp.org>
26915
26916         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
26917         This makes it so packages using automake-1.11's silent-rules option
26918         can print e.g., a single "GEN    configmake.h" line, rather than
26919         the 30+ statements that perform the job.  If you want to see the
26920         actual commands, you can still run "make V=1".
26921         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
26922         so that make output is abbreviated when those variables are defined
26923         appropriately.
26924         * modules/argz: Likewise.
26925         * modules/arpa_inet: Likewise.
26926         * modules/byteswap: Likewise.
26927         * modules/configmake: Likewise.
26928         * modules/dirent: Likewise.
26929         * modules/errno: Likewise.
26930         * modules/fcntl: Likewise.
26931         * modules/float: Likewise.
26932         * modules/fnmatch: Likewise.
26933         * modules/getopt-posix: Likewise.
26934         * modules/glob: Likewise.
26935         * modules/iconv_open: Likewise.
26936         * modules/inttypes: Likewise.
26937         * modules/localcharset: Likewise.
26938         * modules/locale: Likewise.
26939         * modules/math: Likewise.
26940         * modules/netdb: Likewise.
26941         * modules/netinet_in: Likewise.
26942         * modules/poll: Likewise.
26943         * modules/posix_spawnp-tests: Likewise.
26944         * modules/sched: Likewise.
26945         * modules/search: Likewise.
26946         * modules/selinux-h: Likewise.
26947         * modules/signal: Likewise.
26948         * modules/spawn: Likewise.
26949         * modules/stdarg: Likewise.
26950         * modules/stdbool: Likewise.
26951         * modules/stddef: Likewise.
26952         * modules/stdint: Likewise.
26953         * modules/stdio: Likewise.
26954         * modules/stdlib: Likewise.
26955         * modules/string: Likewise.
26956         * modules/strings: Likewise.
26957         * modules/sys_file: Likewise.
26958         * modules/sys_ioctl: Likewise.
26959         * modules/sys_select: Likewise.
26960         * modules/sys_socket: Likewise.
26961         * modules/sys_stat: Likewise.
26962         * modules/sys_time: Likewise.
26963         * modules/sys_times: Likewise.
26964         * modules/sys_utsname: Likewise.
26965         * modules/sys_wait: Likewise.
26966         * modules/sysexits: Likewise.
26967         * modules/time: Likewise.
26968         * modules/unistd: Likewise.
26969         * modules/wchar: Likewise.
26970         * modules/wctype: Likewise.
26971
26972 2009-08-22  Jim Meyering  <meyering@redhat.com>
26973
26974         announce-gen: detect write failure
26975         * build-aux/announce-gen: Add Coda at end.
26976         Remove equivalent-but-more-verbose block at top.
26977
26978 2009-08-19  Akim Demaille  <demaille@gostai.com>
26979
26980         bootstrap: --help to stdout.
26981         * bootstrap (usage): Don't send --help to stderr.
26982         Use a here doc instead of a long string.
26983
26984 2009-08-21  Eric Blake  <ebb9@byu.net>
26985
26986         test-popen-safer: split from test-popen
26987         * tests/test-popen.c (main): Move...
26988         * tests/test-popen.h: ...into new file.
26989         * tests/test-popen-safer2.c: New file.
26990         * modules/popen-tests (Files): Add test-popen.h.
26991         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
26992         Suggested by Bruno Haible.
26993
26994         test-fcntl-safer: split from test-open
26995         * tests/test-open.c (main): Move...
26996         * tests/test-open.h: ...into new file.
26997         * tests/test-fcntl-safer.c: New file.
26998         * modules/open-tests (Files): Add test-open.h.
26999         * modules/fcntl-safer-tests: New file.
27000         Suggested by Bruno Haible.
27001
27002         test-fopen-safer: split from test-fopen
27003         * tests/test-fopen.c (main): Move...
27004         * tests/test-fopen.h: ...into new file.
27005         * tests/test-fopen-safer.c: New file.
27006         * modules/fopen-tests (Files): Add test-fopen.h.
27007         * modules/fopen-safer-tests: New file.
27008         Suggested by Bruno Haible.
27009
27010 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27011
27012         popen-safer: test O_CLOEXEC at run-time.
27013         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
27014
27015 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27016
27017         fcntl: move more flags to the header
27018         * lib/cloexec.c: Do not define FD_CLOEXEC here.
27019         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
27020         * lib/fcntl.in.h: Do both things here.
27021
27022 2009-08-21  Jim Meyering  <meyering@redhat.com>
27023
27024         consistently remove $@-t before redirecting to it
27025         * modules/argz: Remove $@-t and $@ before redirecting to the former.
27026         * modules/alloca-opt: Likewise.
27027         * modules/byteswap: Likewise.
27028         * modules/fnmatch: Likewise.
27029         * modules/getopt-posix: Likewise.
27030         * modules/glob: Likewise.
27031         * modules/poll: Likewise.
27032         * modules/posix_spawnp-tests: Likewise.
27033         * modules/sys_socket: Likewise.
27034         * modules/sysexits: Likewise.
27035
27036 2009-08-21  Eric Blake  <ebb9@byu.net>
27037
27038         popen: simplify access to original popen
27039         * lib/popen.c (rpl_popen): No need to worry about popen being a
27040         macro.
27041         Reported by Bruno Haible.
27042
27043 2009-08-20  Eric Blake  <ebb9@byu.net>
27044
27045         build: avoid some compiler warnings
27046         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
27047         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
27048         type.
27049         (new_exclude_segment, excluded_file_pattern_p)
27050         (excluded_file_name_p): Reduce scope.
27051         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
27052         old-style declaration.
27053
27054 2009-08-20  Simon Josefsson  <simon@josefsson.org>
27055
27056         * tests/test-exclude1.sh: Handle Windows EOL.
27057         * tests/test-exclude2.sh: Likewise.
27058         * tests/test-exclude3.sh: Likewise.
27059         * tests/test-exclude4.sh: Likewise.
27060         * tests/test-exclude5.sh: Likewise.
27061         * tests/test-exclude6.sh: Likewise.
27062         * tests/test-exclude7.sh: Likewise.
27063
27064 2009-08-19  Akim Demaille  <demaille@gostai.com>
27065
27066         bootstrap: find sha1sum when named gsha1sum.
27067         * bootstrap (find_tool): New.
27068         ($SHA1SUM): New.
27069         Use it.
27070
27071 2009-08-20  Jim Meyering  <meyering@redhat.com>
27072
27073         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
27074         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
27075         expression that converts "." in a file name to "\." in the resulting
27076         regexp.  Start with a dummy statement, so that prior shell variable
27077         definitions are expanded portably.  Reported by Simon Josefsson.
27078
27079 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
27080
27081         Fix polling for writeability of a screen buffer.
27082         * lib/poll.c: Distinguish input and screen buffers for the
27083         Win32 implementation.
27084         * lib/select.c: Likewise.
27085
27086 2009-08-19  Eric Blake  <ebb9@byu.net>
27087
27088         popen-safer: prevent popen from clobbering std descriptors
27089         * modules/popen-safer: New file.
27090         * lib/popen-safer.c: Likewise.
27091         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
27092         * lib/stdio--.h (popen): Provide override.
27093         * lib/stdio-safer.h (popen_safer): Provide declaration.
27094         * tests/test-popen.c (includes): Partially test this.
27095         * modules/popen-safer-tests: New file, for more tests.
27096         * tests/test-popen-safer.c: Likewise.
27097         * MODULES.html.sh (file stream based Input/Output): Mention it.
27098
27099         tests: test some of the *-safer modules
27100         * modules/fopen-safer (Depends-on): Add fopen.
27101         * modules/fcntl-safer (Depends-on): Add fcntl.
27102         * modules/stdlib-safer (Depends-on): Add stdlib.
27103         (configure.ac): Set indicator.
27104         * modules/unistd-safer (configure.ac): Likewise.
27105         * modules/tmpfile-safer (configure.ac): Likewise.
27106         (Depends-on): Add tmpfile.
27107         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
27108         active.
27109         * tests/test-fopen.c (includes): Test safer versions when they are
27110         in use.
27111         * tests/test-open.c (includes): Likewise.
27112
27113         popen: fix cygwin 1.5 bug when stdin closed
27114         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
27115         * modules/popen: New file.
27116         * modules/popen-tests: Likewise.
27117         * tests/test-popen.c: Likewise.
27118         * m4/popen.m4: Likewise.
27119         * lib/popen.c: Likewise.
27120         * lib/stdio.in.h (popen): New declaration.
27121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
27122         * modules/stdio (Makefile.am): Likewise.
27123         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
27124
27125 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
27126
27127         maint.mk: give full control over update-copyright exclusions
27128         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
27129         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
27130         (update-copyright): Don't force inclusion of top-level
27131         ChangeLog.  Don't force exclusion of all COPYING files, but make
27132         them the default exclusion instead.
27133
27134 2009-08-16  Bruno Haible  <bruno@clisp.org>
27135
27136         Fix test failures on Solaris 10.
27137         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
27138         tests when Solaris iconv() is used.
27139         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
27140         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
27141         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
27142         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
27143         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
27144
27145 2009-08-16  Bruno Haible  <bruno@clisp.org>
27146
27147         Fix test failures on Solaris 10.
27148         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
27149         'tr' program and pass it as first argument.
27150         * tests/test-pipe-filter-gi1.sh: Likewise.
27151         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
27152         program as first argument.
27153         * tests/test-pipe-filter-gi1.c (main): Likewise.
27154
27155 2009-08-16  Eric Blake  <ebb9@byu.net>
27156
27157         fpurge: fix previous commits
27158         * modules/fpurge (Makefile.am): Make replacement conditional,
27159         partially reverting 2007-04-29 change; missed in previous
27160         attempt.
27161         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
27162         is missing.
27163
27164 2009-08-16  Bruno Haible  <bruno@clisp.org>
27165
27166         Clarify fpurge's effect on the file position.
27167         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
27168         * tests/test-fpurge.c (main): Make a second pass for checking the file
27169         position.
27170
27171 2009-08-16  Bruno Haible  <bruno@clisp.org>
27172
27173         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
27174         declaration of fpurge is missing.
27175         * tests/test-fpurge.c (main): Check that the file has not more contents
27176         than expected. Close the file before removing it.
27177
27178 2009-08-15  Eric Blake  <ebb9@byu.net>
27179
27180         fpurge: don't wrap working cygwin implementation
27181         * lib/fpurge.c (fpurge): Fix comment typo.
27182         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
27183         1.7 to avoid replacement.
27184         * tests/test-fpurge.c (main): Enhance test.
27185
27186 2009-08-15  Eric Blake  <ebb9@byu.net>
27187         and Jim Meyering  <meyering@redhat.com>
27188
27189         test-update-copyright: skip if perl is insufficient
27190         * tests/test-update-copyright.sh: Failure to run maintainer tool
27191         should not cause testsuite failure on cygwin 1.5.
27192
27193 2009-08-14  Eric Blake  <ebb9@byu.net>
27194
27195         doc: mention more functions added in cygwin 1.7.0
27196         * doc/posix-headers/limits.texi (limits.h): Update for recent
27197         cygwin additions.
27198         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
27199         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
27200         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
27201         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
27202         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
27203
27204 2009-08-14  Eric Blake  <ebb9@byu.net>
27205
27206         maint.mk: simplify update-copyright rule
27207         * top/maint.mk (update-copyright-local): Delete, and document how
27208         to do it in cfg.mk instead.
27209         (update-copyright-exclude-regexp): Delete, and document how to do
27210         it in .x-update-copyright instead.
27211         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
27212         exclude ChangeLog.
27213
27214 2009-08-14  Bruno Haible  <bruno@clisp.org>
27215
27216         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
27217
27218 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27219
27220         maint.mk: support update-copyright-env
27221         * top/maint.mk (update-copyright-env): Define place-holder.
27222         (update-copyright): Expand $(update-copyright-env) before
27223         invoking update-copyright.
27224
27225 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27226
27227         update-copyright: implement forced reformatting
27228         * build-aux/update-copyright: Implement and document
27229         UPDATE_COPYRIGHT_FORCE.
27230         * tests/test-update-copyright.sh: Test it.
27231
27232 2009-08-14  Eric Blake  <ebb9@byu.net>
27233         and Bruno Haible  <bruno@clisp.org>
27234
27235         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
27236         * tests/test-locale.c: Revert previous patch related to NULL.
27237         * tests/test-stdio.c: Likewise.
27238         * tests/test-stdlib.c: Likewise.
27239         * tests/test-string.c: Likewise.
27240         * tests/test-unistd.c: Likewise.
27241         * modules/time-tests (Depends-on): Add verify.
27242         * modules/wchar-tests (Depends-on): Likewise.
27243         * tests/test-time.c: Test for NULL compliance.
27244         * tests/test-wchar.c: Likewise.
27245         * modules/locale (Depends-on): Add stddef.
27246         * modules/stdio (Depends-on): Likewise.
27247         * modules/stdlib (Depends-on): Likewise.
27248         * modules/string (Depends-on): Likewise.
27249         * modules/time (Depends-on): Likewise.
27250         * modules/unistd (Depends-on): Likewise.
27251         * modules/wchar (Depends-on): Likewise.
27252         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
27253         * lib/stdlib.in.h (includes): Likewise.
27254         * lib/string.in.h (includes): Likewise.
27255         * lib/time.in.h (includes): Likewise.
27256         * lib/unistd.in.h (includes): Likewise.
27257         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
27258         replaced.
27259         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27260         * m4/stddef_h.m4: New file.
27261         * modules/stddef: Likewise.
27262         * lib/stddef.in.h: Likewise.
27263         * modules/stddef-tests: Likewise.
27264         * tests/test-stddef.c: Likewise.
27265         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
27266         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
27267         * doc/posix-headers/locale.texi (locale.h): Likewise.
27268         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
27269         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27270         * doc/posix-headers/string.texi (string.h): Likewise.
27271         * doc/posix-headers/time.texi (time.h): Likewise.
27272         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
27273         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
27274
27275 2009-08-14  Eric Blake  <ebb9@byu.net>
27276
27277         doc: improve git diff of texinfo files
27278         * .gitattributes: Add rule for *.texi files, with hint on how to
27279         use it.
27280         Copied from m4, and based on a report by Bruno Haible.
27281
27282 2009-08-14  Bruno Haible  <bruno@clisp.org>
27283
27284         Disable multithread support by default on Cygwin 1.5.x for real.
27285         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
27286
27287 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27288
27289         update-copyright: much ado about intervals
27290         * build-aux/update-copyright: Implement and document
27291         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
27292         of copyright year intervals.
27293         Also, document UPDATE_COPYRIGHT_YEAR.
27294         * tests/test-update-copyright.sh: Test it.
27295
27296         update-copyright: convert 2-digit to 4-digit years
27297         * build-aux/update-copyright: Implement and document.
27298         * tests/test-update-copyright.sh: Update.
27299
27300 2009-08-14  Jim Meyering  <meyering@redhat.com>
27301
27302         test-exclude: avoid coreutils "make check" failure
27303         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
27304         just as in test-argmatch.c.
27305
27306 2009-08-13  Eric Blake  <ebb9@byu.net>
27307
27308         test-dup2: fix bad assumption
27309         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
27310         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
27311
27312         test-version-etc: fix CRLF portability issue
27313         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
27314         recognize \r.
27315         * tests/test-argp-version-etc-1.sh: Likewise.
27316
27317         getopt: update client modules
27318         * modules/argp (Depends-on): Use getopt-gnu.
27319         * modules/git-merge-changelog (Depends-on): Likewise.
27320         * modules/long-options (Depends-on): Likewise.
27321         * modules/xstrtol (Depends-on): Likewise.
27322
27323 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27324
27325         * tests/test-version-etc.sh: Don't fail on different
27326         project/version.  Don't fail on CRLF differences.  Rewrite to use
27327         multiple -e instead of multiple sed forks, suggested by Eric Blake
27328         <ebb9@byu.net>.
27329         * tests/test-argp-version-etc-1.sh: Likewise.
27330
27331 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27332
27333         * tests/test-version-etc.sh: Don't fail on different
27334         project/version.
27335
27336 2009-08-12  Bruno Haible  <bruno@clisp.org>
27337
27338         Tests for modules 'getopt-posix', 'getopt-gnu'.
27339         * modules/getopt-posix-tests: New file.
27340         * tests/test-getopt.c: New file.
27341         * tests/test-getopt.h: New file.
27342         * tests/test-getopt_long.h: New file.
27343
27344         New modules 'getopt-posix', 'getopt-gnu'.
27345         * modules/getopt-gnu: New file, renamed from modules/getopt.
27346         * modules/getopt-posix: New file.
27347         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
27348         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
27349         (gl_GETOPT): Remove macro.
27350         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
27351         Disable the test against BSD systems that declare optreset. Test
27352         against mingw bug. Test against lack of support of optional arguments
27353         on many platforms.
27354         * doc/glibc-headers/getopt.texi: Update module name and list of
27355         relevant platforms.
27356         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
27357         'getopt-gnu' and more portability problems.
27358         * NEWS: Mention the changes.
27359
27360 2009-08-12  Bruno Haible  <bruno@clisp.org>
27361
27362         Ensure that optarg etc. get declared by <unistd.h>.
27363         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
27364         AC_USE_SYSTEM_EXTENSIONS.
27365         * modules/getopt (Depends-on): Add 'extensions'.
27366
27367 2009-08-12  Bruno Haible  <bruno@clisp.org>
27368
27369         Avoid test link errors.
27370         * modules/pipe-filter-ii-tests (Makefile.am): Define
27371         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
27372         * modules/pipe-filter-gi-tests (Makefile.am): Define
27373         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
27374         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27375
27376 2009-08-12  Bruno Haible  <bruno@clisp.org>
27377
27378         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
27379         gl_GETOPT_SUBSTITUTE before.
27380         (gl_GETOPT): Use it.
27381         * m4/argp.m4 (gl_ARGP): Update.
27382         Reported by Sergey Poznyakoff.
27383
27384         * m4/getopt.m4: Reorder macros.
27385         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
27386         (gl_GETOPT_SUBSTITUTE): Remove macro.
27387
27388 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27389
27390         Minor improvement in gitlog-to-changelog
27391
27392         * build-aux/gitlog-to-changelog: New option `--format' makes
27393         output format string configurable.
27394
27395 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27396
27397         Optimize exclude: use hash tables for non-wildcard patterns.
27398
27399         * lib/exclude.c: Include hash.h and mbuiter.h
27400         (struct exclude_pattern, exclude_segment): New data types.
27401         (struct exclude): Rewrite.
27402         (fnmatch_pattern_has_wildcards): New function.
27403         (new_exclude_segment, free_exclude_segment): New functions.
27404         (excluded_file_pattern_p, excluded_file_name_p): New functions.
27405         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
27406         * lib/exclude.h (is_fnmatch_pattern): New prototype.
27407         * modules/exclude: Depend on hash and mbuiter.
27408
27409         * modules/exclude-tests: New file.
27410         * tests/test-exclude.c: New file.
27411         * tests/test-exclude1.sh: New file.
27412         * tests/test-exclude2.sh: New file.
27413         * tests/test-exclude3.sh: New file.
27414         * tests/test-exclude4.sh: New file.
27415         * tests/test-exclude5.sh: New file.
27416         * tests/test-exclude6.sh: New file.
27417         * tests/test-exclude7.sh: New file.
27418
27419 2009-08-12  Bruno Haible  <bruno@clisp.org>
27420
27421         Ensure that getopt() gets declared by <unistd.h>.
27422         * lib/unistd.in.h: Conditionally include getopt.h.
27423         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
27424         Set GNULIB_UNISTD_H_GETOPT.
27425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27426         GNULIB_UNISTD_H_GETOPT.
27427         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
27428
27429 2009-08-12  Bruno Haible  <bruno@clisp.org>
27430
27431         Clarify logic.
27432         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
27433         gl_replace_getopt instead of GETOPT_H.
27434
27435 2009-08-12  Bruno Haible  <bruno@clisp.org>
27436
27437         * m4/getopt.m4: Add comments.
27438
27439 2009-08-12  Bruno Haible  <bruno@clisp.org>
27440
27441         Disable multithread support by default on Cygwin 1.5.x.
27442         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
27443         set gl_use_threads=no if not specified otherwise.
27444
27445 2009-08-11  Bruno Haible  <bruno@clisp.org>
27446
27447         Avoid compilation error on NetBSD 5.0.
27448         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
27449         * tests/test-stdio.c: Likewise.
27450         * tests/test-stdlib.c: Likewise.
27451         * tests/test-string.c: Likewise.
27452         * tests/test-unistd.c: Likewise.
27453         Reported by Greg Troxel <gdt@ir.bbn.com>
27454         at <https://savannah.gnu.org/support/?106973>.
27455
27456 2009-08-11  Bruno Haible  <bruno@clisp.org>
27457
27458         * modules/dup2-tests (Depends-on): Remove close.
27459
27460         Undo 2009-07-19 commit.
27461         * modules/acl-tests (Depends-on): Remove close.
27462         * modules/binary-io-tests (Depends-on): Likewise.
27463         * modules/closein-tests (Depends-on): Likewise.
27464         * modules/flock-tests (Depends-on): Likewise.
27465         * modules/fsync-tests (Depends-on): Likewise.
27466         * modules/lseek-tests (Depends-on): Likewise.
27467         * modules/pipe-tests (Depends-on): Likewise.
27468         * modules/posix_spawn-tests (Depends-on): Likewise.
27469         * modules/posix_spawnp-tests (Depends-on): Likewise.
27470         * modules/stat-time-tests (Depends-on): Likewise.
27471         * modules/yesno-tests (Depends-on): Likewise.
27472
27473 2009-08-10  Bruno Haible  <bruno@clisp.org>
27474
27475         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
27476
27477 2009-08-10  Bruno Haible  <bruno@clisp.org>
27478
27479         Fix a gcc warning.
27480         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
27481
27482 2009-08-10  Bruno Haible  <bruno@clisp.org>
27483
27484         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
27485         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
27486         not only the first time.
27487         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
27488         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
27489         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
27490         is 1, not only the the first time.
27491
27492 2009-08-10  Bruno Haible  <bruno@clisp.org>
27493
27494         Make it possible to use module 'gethostname' without module 'close'.
27495         * lib/unistd.in.h (close): Evoke a link error only if
27496         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27498         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27499         * modules/unistd (Makefile.am): Substitute
27500         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27501         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
27502         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27503         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27504         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27505         * modules/sys_ioctl (Makefile.am): Substitute
27506         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27507         * modules/socket (configure.ac): On native Windows, set
27508         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
27509         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27510         Reported by Sam Steingold <sds@gnu.org>.
27511
27512 2009-08-10  Bruno Haible  <bruno@clisp.org>
27513
27514         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
27515         * modules/ioctl (configure.ac): Likewise.
27516
27517 2009-08-10  Bruno Haible  <bruno@clisp.org>
27518
27519         Avoid collision between gnulib wrapper and libintl wrapper.
27520         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
27521         already defined in intl/printf.c.
27522         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
27523         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
27524
27525 2009-08-09  Bruno Haible  <bruno@clisp.org>
27526
27527         Make <sys/select.h> really self-contained, also on Solaris 10.
27528         * lib/sys_select.in.h: Include <string.h>.
27529         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
27530         Solaris 10 problem.
27531         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
27532         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
27533         Reported by Jim Meyering.
27534
27535 2009-08-09  Bruno Haible  <bruno@clisp.org>
27536
27537         Avoid warnings from 'aclocal' that are due to a use of macro name
27538         AM_XGETTEXT_OPTION that is not defined in automake.
27539         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
27540         automake.
27541         * modules/error (configure.ac): Likewise.
27542         * modules/propername (configure.ac): Likewise.
27543         * modules/vasprintf (configure.ac): Likewise.
27544         * modules/verror (configure.ac): Likewise.
27545         * modules/xprintf (configure.ac): Likewise.
27546         * modules/xvasprintf (configure.ac): Likewise.
27547
27548 2009-08-08  Bruno Haible  <bruno@clisp.org>
27549
27550         Avoid compilation error in C++ mode.
27551         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
27552         Reported by Sam Steingold <sds@gnu.org>.
27553
27554 2009-08-08  Bruno Haible  <bruno@clisp.org>
27555
27556         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
27557         for the various Unix platforms.
27558         * doc/posix-headers/limits.texi: Update platforms list regarding
27559         HOST_NAME_MAX.
27560         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27561
27562 2009-08-07  Jim Meyering  <meyering@redhat.com>
27563
27564         selinux-at: fix typo in a comment
27565         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
27566         Spotted by Paolo Bonzini.
27567
27568         selinux-at: remove redundant m4 code, add documentation
27569         * modules/selinux-at (configure.ac): Remove redundant code.
27570         LIB_SELINUX is already set via the dependent module, selinux-h.
27571         (Include): Add quotes around selinux-at.h.
27572         * lib/selinux-at.h: Add documentation.
27573         Reported by Bruno Haible in
27574         http://marc.info/?l=gnulib-bug&m=124958988300749
27575
27576 2009-08-07  Bruno Haible  <bruno@clisp.org>
27577
27578         Avoid link error on MacOS X 10.3 and 10.4.
27579         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
27580         on non-ELF systems.
27581         * lib/argp-pv.c (argp_program_version): Likewise.
27582         Reported by Simon Josefsson.
27583
27584 2009-08-07  Simon Josefsson  <simon@josefsson.org>
27585
27586         * tests/test-version-etc.sh: Use $EXEEXT.
27587
27588 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
27589
27590         update-copyright: update documentation to point to maint.mk
27591         * build-aux/update-copyright: Here.
27592
27593 2009-08-06  Jim Meyering  <meyering@redhat.com>
27594
27595         maint.mk: support update-copyright-local
27596         * top/maint.mk (update-copyright-local): Define place-holder.
27597         (update-copyright): Depend on $(update-copyright-local).
27598
27599 2009-08-06  Jim Meyering  <meyering@redhat.com>
27600
27601         selinux-at: new module
27602         Initially written for coreutils, this module will soon be
27603         used by findutils, too.
27604         * MODULES.html.sh [Misc]: Add selinux-at.
27605         * lib/selinux-at.h: New file, from coreutils.
27606         * lib/selinux-at.c: Likewise.
27607         * modules/selinux-at: Likewise.
27608         (License): Change from LGPL to GPL, since it depends
27609         on the GPL'd openat module.
27610
27611         doc: update README
27612         * README: Remove references to cogito.
27613         Remove cvs-repo-updating instructions from 2007.
27614         Don't imply that CVS is better if you have limited disk space.
27615
27616 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27617
27618         update-copyright: support C-style comments
27619         * build-aux/update-copyright: Implement and document.
27620         * tests/test-update-copyright.sh: Test.
27621
27622 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27623
27624         update-copyright: support omitted "(C)"
27625         * build-aux/update-copyright: Implement and document.  Also,
27626         allow variable whitespace before "(C)".
27627         * tests/test-update-copyright.sh: Test.
27628
27629 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27630
27631         update-copyright: don't trip on non-FSF copyright statements
27632         * build-aux/update-copyright: Fix so that the first correctly
27633         formatted FSF copyright statement is recognized no matter what
27634         appears before it.  Update documentation.
27635         * tests/test-update-copyright.sh: Test that.
27636
27637 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27638
27639         update-copyright: clean up code a little
27640         * build-aux/update-copyright: Append "_re" to the name of any
27641         variable holding a regular expression.
27642         Replace "old" and "new" with "stmt" in variable names.
27643         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
27644         handled correctly.
27645         Format code more consistently.
27646
27647 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27648
27649         update-copyright-tests: improve portability
27650         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
27651         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
27652
27653 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27654
27655         update-copyright: support @copyright{} and &copy;
27656         * build-aux/update-copyright: Implement and document.
27657         * tests/test-update-copyright.sh: Test.
27658
27659 2009-08-04  Jim Meyering  <meyering@redhat.com>
27660
27661         update-copyright-tests: correctly test EOL=\r\n handling
27662         * tests/test-update-copyright.sh: Put \r at the end of some lines
27663         for the dos-eol tests.  Based on a patch by Joel E. Denny.
27664
27665         maint.mk: make update-copyright exclusion list more configurable
27666         * top/maint.mk (update-copyright): Default to excluding COPYING,
27667         but allow an override, in case someone does want to update that file.
27668
27669         maint.mk: don't update copyright date in COPYING
27670         * top/maint.mk (update-copyright): Exclude COPYING.
27671
27672         maint.mk: add a copyright-updating rule
27673         * top/maint.mk (update-copyright): New rule.
27674         Derived from coreutils/Makefile.am.
27675
27676         update-copyright: rename some variables
27677         * build-aux/update-copyright: Rename a few variables for clarity.
27678         Tweak syntax.  List Joel E. Denny as coauthor.
27679
27680 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27681
27682         update-copyright: fix bug for 2-digit last year and add tests
27683         * build-aux/update-copyright: Fix bug.
27684         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
27685         specified.
27686         * modules/update-copyright-tests: New
27687         * tests/test-update-copyright.sh: New.
27688
27689 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27690
27691         update-copyright: handle leading tabs in line prefix
27692         * build-aux/update-copyright: Count leading tabs as 8 spaces
27693         when computing margin.  This helps with the formatting of
27694         ChangeLogs, for example.
27695         Fix documentation a little.
27696
27697 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27698
27699         update-copyright: support EOL=\r\n
27700         * build-aux/update-copyright: Implement that.
27701
27702 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27703
27704         update-copyright: automatically format copyright statements
27705         * build-aux/update-copyright: Implement that.
27706         Also, be a little more predictable and safer by always failing
27707         when the full copyright format is not perfectly recognized as an
27708         unbroken whole.  Discussed at
27709         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
27710         Rewrite documentation.
27711
27712 2009-08-03  Bruno Haible  <bruno@clisp.org>
27713
27714         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
27715
27716 2009-08-02  Bruno Haible  <bruno@clisp.org>
27717
27718         Tests for module 'uname'.
27719         * modules/uname-tests: New file.
27720         * tests/test-uname.c: New file.
27721
27722         New module 'uname'.
27723         * lib/uname.c: New file.
27724         * m4/uname.m4: New file.
27725         * modules/uname: New file.
27726         * doc/posix-functions/uname.texi: Mention the new module.
27727
27728 2009-08-02  Bruno Haible  <bruno@clisp.org>
27729
27730         Tests for module 'sys_utsname'.
27731         * modules/sys_utsname-tests: New file.
27732         * tests/test-sys_utsname.c: New file.
27733
27734         New module 'sys_utsname'.
27735         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
27736         * m4/sys_utsname_h.m4: New file.
27737         * modules/sys_utsname: New file.
27738         * doc/posix-headers/sys_utsname.texi: Mention the new module.
27739
27740 2009-08-02  Bruno Haible  <bruno@clisp.org>
27741
27742         Implicitly initialize the sockets library.
27743         * lib/gethostname.c: Include sockets.h.
27744         (rpl_gethostname): Invoke gl_sockets_startup.
27745         * lib/socket.c: Include sockets.h.
27746         (rpl_socket): Invoke gl_sockets_startup.
27747         * modules/gethostname (Depends-on): Add sockets.
27748         * modules/socket (Depends-on): Likewise.
27749         * tests/test-poll.c: Don't include sockets.h.
27750         (main): Don't invoke gl_sockets_startup.
27751         * tests/test-select.c: Don't include sockets.h.
27752         (main): Don't invoke gl_sockets_startup.
27753
27754 2009-08-02  Bruno Haible  <bruno@clisp.org>
27755
27756         Allow multiple calls to gl_sockets_startup.
27757         * lib/sockets.c (initialized_sockets_version): New variable.
27758         (gl_sockets_startup): Do nothing if already called for this or a higher
27759         version.
27760         (gl_sockets_cleanup): Reset initialized_sockets_version.
27761
27762 2009-08-03  Simon Josefsson  <simon@josefsson.org>
27763
27764         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
27765         different project/version.
27766
27767 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
27768             Bruno Haible  <bruno@clisp.org>
27769
27770         Tests for module 'pipe-filter-gi'.
27771         * modules/pipe-filter-gi-tests: New file.
27772         * tests/test-pipe-filter-gi1.sh: New file.
27773         * tests/test-pipe-filter-gi1.c: New file.
27774         * tests/test-pipe-filter-gi2.sh: New file.
27775         * tests/test-pipe-filter-gi2-main.c: New file.
27776         * tests/test-pipe-filter-gi2-child.c: New file.
27777
27778         New module 'pipe-filter-gi'.
27779         * lib/pipe-filter-gi.c: New file.
27780         * modules/pipe-filter-gi: New file.
27781
27782 2009-08-02  Bruno Haible  <bruno@clisp.org>
27783             Paolo Bonzini  <bonzini@gnu.org>
27784
27785         Tests for module 'pipe-filter-ii'.
27786         * modules/pipe-filter-ii-tests: New file.
27787         * tests/test-pipe-filter-ii1.sh: New file.
27788         * tests/test-pipe-filter-ii1.c: New file.
27789         * tests/test-pipe-filter-ii2.sh: New file.
27790         * tests/test-pipe-filter-ii2-main.c: New file.
27791         * tests/test-pipe-filter-ii2-child.c: New file.
27792
27793         New module 'pipe-filter-ii'.
27794         * lib/pipe-filter.h: New file.
27795         * lib/pipe-filter-ii.c: New file.
27796         * lib/pipe-filter-aux.h: New file.
27797         * modules/pipe-filter-ii: New file.
27798
27799 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27800
27801         * lib/gc-libgcrypt.c: Change copyright to FSF.
27802         * lib/gc-gnulib.c: Likewise.
27803
27804 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
27805
27806         * lib/gethostname.c: Include limits.h.
27807
27808 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27809             Bruno Haible  <bruno@clisp.org>
27810
27811         Ensure HOST_NAME_MAX as part of the gethostname module.
27812         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
27813         define also HOST_NAME_MAX.
27814         * tests/test-gethostname.c: Include <limits.h>.
27815         (main): Check also HOST_NAME_MAX.
27816         * doc/posix-headers/limits.texi: Document the mingw problem.
27817
27818 2009-08-02  Bruno Haible  <bruno@clisp.org>
27819
27820         * lib/gethostname.c (gethostname): Fix handling of large len argument.
27821         Add comments.
27822
27823 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27824
27825         * lib/gethostname.c: Add Windows wrapper.
27826         * m4/gethostname.m4: Look for gethostname in -lws2_32.
27827         * modules/gethostname: Depend on sys_socket & errno, for also
27828         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
27829         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
27830
27831 2009-07-31  Jim Meyering  <meyering@redhat.com>
27832
27833         getloadavg: fix symbol name in comment
27834         * lib/getloadavg.c: Correct a typo I introduced when adding
27835         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
27836         Matt Kraai spotted the problem.
27837
27838 2009-07-29  Matt Kraai  <mkraai@beckman.com>
27839
27840         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
27841         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
27842         code also if ! defined N_NAME_POINTER.
27843         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
27844         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
27845         but the n_name member is a 12-byte array.
27846
27847 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
27848
27849         update-copyright: generalize comment handling
27850         * build-aux/update-copyright: Handle copyright statements
27851         within more comment styles.
27852         Document usage.
27853         Report any file with an external copyright holder or parse failure.
27854
27855 2009-07-29  Jim Meyering  <meyering@redhat.com>
27856
27857         mktime: correct setting of REPLACE_MKTIME
27858         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
27859
27860         update-copyright: new module
27861         * modules/update-copyright: New file.
27862         * build-aux/update-copyright: New file.
27863         * MODULES.html.sh (maint+release support): Add update-copyright.
27864
27865 2009-07-27  Bruno Haible  <bruno@clisp.org>
27866
27867         Fix compilation error when <ctime> is used and mktime is replaced.
27868         * lib/time.in.h (mktime): New declaration.
27869         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
27870         REPLACE_MKTIME instead of defining mktime in config.h.
27871         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
27872         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
27873         Reported by Ross McFarland <rwmcfa1@neces.com>.
27874
27875 2009-07-27  Bruno Haible  <bruno@clisp.org>
27876
27877         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
27878         Reported by Matt Kraai <mkraai@beckman.com>.
27879
27880 2009-07-25  Jim Meyering  <meyering@redhat.com>
27881
27882         maint.mk: avoid warnings about missing files
27883         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
27884         diagnostic when .prev-version does not exist.
27885         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
27886         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
27887         nonexistent cfg.mk.
27888         Suggestions from Simon Josefsson.
27889
27890 2009-07-25  Bruno Haible  <bruno@clisp.org>
27891
27892         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
27893         defined as macros. Needed on QNX 6.4.1.
27894         Reported by Matt Kraai <mkraai@beckman.com>.
27895
27896 2009-07-23  Jim Meyering  <meyering@redhat.com>
27897
27898         maint.mk: invoke "make dist" with a working value of XZ_OPT
27899         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
27900
27901 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
27902
27903         Make fseeko.c compile on QNX.
27904         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
27905
27906 2009-07-22  Peter Simons  <simons@cryp.to>
27907
27908         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
27909         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
27910         * lib/md4.h: Likewise.
27911         * lib/md5.h: Likewise.
27912         * lib/sha1.h: Likewise.
27913         * lib/sha256.h: Likewise.
27914         * lib/sha512.h: Likewise.
27915
27916         tests-sha1: don't assign literal string to 'char *' variable
27917         * tests/test-sha1.c (main): Declare locals with "const" to match
27918         attributes of the right hand side.
27919
27920 2009-07-21  Eric Blake  <ebb9@byu.net>
27921
27922         dup2: fix more mingw problems
27923         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
27924         fd to itself.
27925         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27926         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
27927         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
27928         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
27929         care of mingw bugs.
27930
27931 2009-07-21  Jim Meyering  <meyering@redhat.com>
27932
27933         vc-list-files: avoid failure when /bin/sh is dash
27934         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
27935         On some Debian based systems, /bin/sh is a symlink to dash, and running
27936         this command would omit the "/" following each 'tests' prefix:
27937           dash -x build-aux/vc-list-files -C . tests
27938         That is because bash and dash work differently:
27939           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
27940           bash ok
27941           dash odd
27942
27943 2009-07-21  Eric Blake  <ebb9@byu.net>
27944
27945         dup2-tests: test previous patch
27946         * modules/dup2-tests: New file.
27947         * tests/test-dup2.c: Likewise.
27948         * tests/test-open.c (main): Avoid unspecified behavior.
27949         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
27950         test.
27951
27952         dup2: work around mingw and cygwin 1.5 bug
27953         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
27954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27955         * modules/unistd (Makefile.am): Substitute it.
27956         * lib/unistd.in.h (dup2): Declare the replacement.
27957         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
27958         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
27959         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
27960         * modules/execute (Depends-on): Add dup2.
27961         * modules/fseterr (Depends-on): Likewise.
27962         * modules/pipe (Depends-on): Likewise.
27963         * modules/posix_spawn-internal (Depends-on): Likewise.
27964
27965 2009-07-21  Bruno Haible  <bruno@clisp.org>
27966
27967         * modules/.gitattributes: New file.
27968
27969 2009-07-20  Bruno Haible  <bruno@clisp.org>
27970
27971         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
27972         (main): Use it.
27973
27974 2009-07-20  Eric Blake  <ebb9@byu.net>
27975
27976         test-pipe: make a bit more robust.
27977         * tests/test-pipe.c (myerr): Allow error messages regardless of
27978         what we do to stderr.
27979         (test_pipe): Rearrange to avoid deadlock.
27980         (child_main): Try a larger read, to ensure we avoided deadlock.
27981         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
27982         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
27983         if misused.
27984
27985 2009-07-19  Jim Meyering  <meyering@redhat.com>
27986
27987         fts: avoid false-positive cycle-detection
27988         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
27989         for each new command line argument.
27990
27991 2009-07-19  Bruno Haible  <bruno@clisp.org>
27992
27993         Fix build error on mingw with the modules sys_select and unistd.
27994         * modules/acl-tests (Depends-on): Add close.
27995         * modules/binary-io-tests (Depends-on): Likewise.
27996         * modules/closein-tests (Depends-on): Likewise.
27997         * modules/flock-tests (Depends-on): Likewise.
27998         * modules/fsync-tests (Depends-on): Likewise.
27999         * modules/lseek-tests (Depends-on): Likewise.
28000         * modules/pipe-tests (Depends-on): Likewise.
28001         * modules/posix_spawn-tests (Depends-on): Likewise.
28002         * modules/posix_spawnp-tests (Depends-on): Likewise.
28003         * modules/stat-time-tests (Depends-on): Likewise.
28004         * modules/yesno-tests (Depends-on): Likewise.
28005
28006 2009-07-19  Bruno Haible  <bruno@clisp.org>
28007
28008         Unify conditionals.
28009         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
28010         macros, not at the compiler macros.
28011         * lib/pipe.c: Likewise.
28012         * lib/execute.c: Likewise.
28013         * lib/spawni.c: Likewise.
28014
28015 2009-07-19  Bruno Haible  <bruno@clisp.org>
28016
28017         Fix handling of closed stdin/stdout/stderr on mingw.
28018         * lib/w32spawn.h: Include unistd.h.
28019         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
28020         file descriptor with O_NOINHERIT flag.
28021         (fd_safer_noinherit): New function, based on fd-safer.c.
28022         (dup_safer_noinherit): New function, based on dup-safer.c.
28023         (undup_safer_noinherit): New function.
28024         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
28025         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
28026         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
28027         instead of fd_safer.
28028         * tests/test-pipe.c: Include <windows.h>.
28029         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
28030         result.
28031
28032         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
28033         from main.
28034         (test_pipe): Pass an extra argument for disambiguation.
28035         (main): Invoke parent_main or child_main.
28036
28037         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
28038         consistently.
28039
28040 2009-07-18  Eric Blake  <ebb9@byu.net>
28041
28042         test-pipe: fix mingw build
28043         * tests/test-pipe.c (main): Avoid fcntl on mingw.
28044
28045 2009-07-18  Bruno Haible  <bruno@clisp.org>
28046
28047         * modules/pipe-tests (Makefile.am): Fix typo.
28048
28049 2009-07-18  Eric Blake  <ebb9@byu.net>
28050
28051         error: fix mingw build
28052         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
28053         Reported by Bruno Haible.
28054
28055         error: avoid undefined use of stdout
28056         * lib/error.c (error, error_at_line): Check that fd 1 is open
28057         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
28058         is handling faults and the close_stdout module wants to report the
28059         detection of closed stdout as an error.
28060
28061 2009-07-17  Eric Blake  <ebb9@byu.net>
28062
28063         pipe: be robust in face of closed fds
28064         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
28065         should cause child to misbehave.
28066         * modules/pipe-tests: New module.
28067         * tests/test-pipe.c: New file.
28068         * tests/test-pipe.sh: New file.
28069         Reported by Akim Demaille.
28070
28071 2009-07-14  Bruno Haible  <bruno@clisp.org>
28072
28073         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
28074         Reported by anonymous kc.
28075
28076 2009-07-07  Jim Meyering  <meyering@redhat.com>
28077
28078         maint.mk: don't look for translatable strings in *.m4 or *.mk
28079         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
28080         when searching for translatable strings.
28081
28082 2009-07-05  Jim Meyering  <meyering@redhat.com>
28083
28084         remove superfluous parentheses in STREQ definition
28085         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
28086         * lib/getugroups.c (STREQ): Likewise.
28087         * lib/fnmatch.c (STREQ): Likewise.
28088         Spotted by Bruno Haible.
28089
28090 2009-07-04  Jim Meyering  <meyering@redhat.com>
28091
28092         argv-iter: new module
28093         * MODULES.html.sh: Add argv-iter.
28094         * lib/argv-iter.c, lib/argv-iter.h: New files.
28095         * modules/argv-iter: New file.
28096         * modules/argv-iter-tests: New file.
28097         * tests/test-argv-iter.c: Test it.
28098
28099 2009-07-04  Bruno Haible  <bruno@clisp.org>
28100
28101         Fix assertion.
28102         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
28103         contains more exact copies of a given entry than file2, leave the extra
28104         copies unpaired rather than aborting.
28105         Reported by Eric Blake.
28106
28107 2009-07-02  Bruno Haible  <bruno@clisp.org>
28108
28109         Speedup git-merge-changelog for git cherry-pick.
28110         * lib/git-merge-changelog.c (struct entries_mapping): New type.
28111         (entries_mapping_get): New function, extracted from compute_mapping.
28112         (entries_mapping_reverse_get): New function.
28113         (compute_mapping): Add a 'full' argument. Return the result in a
28114         'struct entries_mapping'.
28115         (main): Update. Access the mappings through entries_mapping_get.
28116         Reported by Eric Blake.
28117
28118 2009-07-02  Bruno Haible  <bruno@clisp.org>
28119
28120         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
28121         best_i.
28122
28123 2009-07-02  Bruno Haible  <bruno@clisp.org>
28124
28125         Speed up approximate search for matching ChangeLog entries.
28126         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
28127         argument. Call fstrcmp_bounded instead of fstrcmp.
28128         (compute_mapping, try_split_merged_entry, main): Update callers.
28129
28130 2009-07-02  Bruno Haible  <bruno@clisp.org>
28131
28132         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
28133
28134 2009-06-30  Bruno Haible  <bruno@clisp.org>
28135
28136         Reduce the number of uc_is_cased calls.
28137         * lib/unicase.h (casing_suffix_context_t): Add
28138         'first_char_except_ignorable' field.
28139         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
28140         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
28141         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
28142         Update initializer.
28143         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
28144         case-ignorable characters.
28145         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
28146         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
28147         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
28148         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
28149         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
28150
28151 2009-06-30  Bruno Haible  <bruno@clisp.org>
28152
28153         Tests for module 'unicase/ignorable'.
28154         * modules/unicase/ignorable-tests: New file.
28155         * tests/unicase/test-ignorable.c: New file, generated by
28156         gen-uni-tables.
28157
28158         Tests for module 'unicase/cased'.
28159         * modules/unicase/cased-tests: New file.
28160         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
28161         * tests/unicase/test-predicate-part1.h: New file, derived from
28162         tests/unictype/test-predicate-part1.h.
28163         * tests/unicase/test-predicate-part2.h: New file, same as
28164         tests/unictype/test-predicate-part2.h.
28165
28166         Fix evaluation of "Before C" condition of FINAL_SIGMA.
28167         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
28168         (output_casing_properties): New function.
28169         (main): Call it.
28170         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
28171         * lib/unicase/cased.c: Include unictype/bitmap.h.
28172         (uc_is_cased): Define through a bitmap lookup.
28173         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
28174         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
28175         (uc_is_case_ignorable): Define through a bitmap lookup.
28176         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
28177         lib/unictype/bitmap.h.
28178         (Depends-on): Add inline. Clean up.
28179         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
28180         lib/unictype/bitmap.h.
28181         (Depends-on): Add inline. Clean up.
28182         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
28183         recognition.
28184         * tests/unicase/test-u16-tolower.c (main): Likewise.
28185         * tests/unicase/test-u32-tolower.c (main): Likewise.
28186
28187 2009-06-30  Bruno Haible  <bruno@clisp.org>
28188
28189         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
28190         * lib/unicase/u16-casemap.c: Likewise.
28191         * lib/unicase/u32-casemap.c: Likewise.
28192
28193 2009-06-29  Bruno Haible  <bruno@clisp.org>
28194
28195         Define u32_casefold as a wrapper around u32_ct_casefold.
28196         * lib/unicase/u32-casefold.c: Update.
28197         * modules/unicase/u32-casefold (Depends-on): Add
28198         unicase/u32-ct-casefold, unicase/empty-prefix-context,
28199         unicase/empty-suffix-context. Clean up.
28200
28201         Define u16_casefold as a wrapper around u16_ct_casefold.
28202         * lib/unicase/u16-casefold.c: Update.
28203         * modules/unicase/u16-casefold (Depends-on): Add
28204         unicase/u16-ct-casefold, unicase/empty-prefix-context,
28205         unicase/empty-suffix-context. Clean up.
28206
28207         Define u8_casefold as a wrapper around u8_ct_casefold.
28208         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
28209         * lib/unicase/u8-casefold.c: Update.
28210         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
28211         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28212
28213         Define u32_totitle as a wrapper around u32_ct_totitle.
28214         * lib/unicase/u32-totitle.c: Update.
28215         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
28216         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28217
28218         Define u16_totitle as a wrapper around u16_ct_totitle.
28219         * lib/unicase/u16-totitle.c: Update.
28220         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
28221         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28222
28223         Define u8_totitle as a wrapper around u8_ct_totitle.
28224         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
28225         functions.
28226         (FUNC): Delegate to U_CT_TOTITLE.
28227         * lib/unicase/u8-totitle.c: Update.
28228         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
28229         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28230
28231         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
28232         invocation.
28233         * modules/unicase/u32-tolower (Depends-on): Add
28234         unicase/empty-prefix-context, unicase/empty-suffix-context.
28235
28236         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
28237         invocation.
28238         * modules/unicase/u16-tolower (Depends-on): Add
28239         unicase/empty-prefix-context, unicase/empty-suffix-context.
28240
28241         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
28242         * modules/unicase/u8-tolower (Depends-on): Add
28243         unicase/empty-prefix-context, unicase/empty-suffix-context.
28244
28245         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
28246         invocation.
28247         * modules/unicase/u32-toupper (Depends-on): Add
28248         unicase/empty-prefix-context, unicase/empty-suffix-context.
28249
28250         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
28251         invocation.
28252         * modules/unicase/u16-toupper (Depends-on): Add
28253         unicase/empty-prefix-context, unicase/empty-suffix-context.
28254
28255         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
28256         * modules/unicase/u8-toupper (Depends-on): Add
28257         unicase/empty-prefix-context, unicase/empty-suffix-context.
28258
28259         New module 'unicase/u32-ct-casefold'.
28260         * lib/unicase/u32-ct-casefold.c: New file.
28261         * modules/unicase/u32-ct-casefold: New file.
28262
28263         New module 'unicase/u16-ct-casefold'.
28264         * lib/unicase/u16-ct-casefold.c: New file.
28265         * modules/unicase/u16-ct-casefold: New file.
28266
28267         New module 'unicase/u8-ct-casefold'.
28268         * lib/unicase/u8-ct-casefold.c: New file.
28269         * lib/unicase/u-ct-casefold.h: New file, derived from
28270         lib/unicase/u-casefold.h.
28271         * modules/unicase/u8-ct-casefold: New file.
28272
28273         New module 'unicase/u32-ct-totitle'.
28274         * lib/unicase/u32-ct-totitle.c: New file.
28275         * modules/unicase/u32-ct-totitle: New file.
28276
28277         New module 'unicase/u16-ct-totitle'.
28278         * lib/unicase/u16-ct-totitle.c: New file.
28279         * modules/unicase/u16-ct-totitle: New file.
28280
28281         New module 'unicase/u8-ct-totitle'.
28282         * lib/unicase/u8-ct-totitle.c: New file.
28283         * lib/unicase/u-ct-totitle.h: New file, derived from
28284         lib/unicase/u-totitle.h.
28285         * modules/unicase/u8-ct-totitle: New file.
28286
28287         New module 'unicase/u32-ct-tolower'.
28288         * lib/unicase/u32-ct-tolower.c: New file.
28289         * modules/unicase/u32-ct-tolower: New file.
28290
28291         New module 'unicase/u16-ct-tolower'.
28292         * lib/unicase/u16-ct-tolower.c: New file.
28293         * modules/unicase/u16-ct-tolower: New file.
28294
28295         New module 'unicase/u8-ct-tolower'.
28296         * lib/unicase/u8-ct-tolower.c: New file.
28297         * modules/unicase/u8-ct-tolower: New file.
28298
28299         New module 'unicase/u32-ct-toupper'.
28300         * lib/unicase/u32-ct-toupper.c: New file.
28301         * modules/unicase/u32-ct-toupper: New file.
28302
28303         New module 'unicase/u16-ct-toupper'.
28304         * lib/unicase/u16-ct-toupper.c: New file.
28305         * modules/unicase/u16-ct-toupper: New file.
28306
28307         New module 'unicase/u8-ct-toupper'.
28308         * lib/unicase/u8-ct-toupper.c: New file.
28309         * modules/unicase/u8-ct-toupper: New file.
28310
28311         Add context arguments to u*_casemap functions.
28312         * lib/unicase/unicasemap.h: Include unicase.h.
28313         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
28314         suffix_context arguments.
28315         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
28316         functions.
28317         (FUNC): Add prefix_context and suffix_context arguments. Use
28318         uc_is_cased and uc_is_case_ignorable.
28319         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
28320         * lib/unicase/u16-casemap.c: Likewise.
28321         * lib/unicase/u32-casemap.c: Likewise.
28322         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
28323         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28324         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
28325         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28326         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
28327         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28328
28329         New module 'unicase/u32-suffix-context'.
28330         * lib/unicase/u32-suffix-context.c: New file.
28331         * modules/unicase/u32-suffix-context: New file.
28332
28333         New module 'unicase/u16-suffix-context'.
28334         * lib/unicase/u16-suffix-context.c: New file.
28335         * modules/unicase/u16-suffix-context: New file.
28336
28337         New module 'unicase/u8-suffix-context'.
28338         * lib/unicase/u8-suffix-context.c: New file.
28339         * lib/unicase/u-suffix-context.h: New file.
28340         * modules/unicase/u8-suffix-context: New file.
28341
28342         New module 'unicase/empty-suffix-context'.
28343         * lib/unicase/empty-suffix-context.c: New file.
28344         * modules/unicase/empty-suffix-context: New file.
28345
28346         New module 'unicase/u32-prefix-context'.
28347         * lib/unicase/u32-prefix-context.c: New file.
28348         * modules/unicase/u32-prefix-context: New file.
28349
28350         New module 'unicase/u16-prefix-context'.
28351         * lib/unicase/u16-prefix-context.c: New file.
28352         * modules/unicase/u16-prefix-context: New file.
28353
28354         New module 'unicase/u8-prefix-context'.
28355         * lib/unicase/u8-prefix-context.c: New file.
28356         * lib/unicase/u-prefix-context.h: New file.
28357         * lib/unicase/context.h: New file.
28358         * modules/unicase/u8-prefix-context: New file.
28359
28360         New module 'unicase/empty-prefix-context'.
28361         * lib/unicase/empty-prefix-context.c: New file.
28362         * modules/unicase/empty-prefix-context: New file.
28363
28364         New module 'unicase/ignorable'.
28365         * lib/unicase/ignorable.c: New file.
28366         * modules/unicase/ignorable: New file.
28367
28368         New module 'unicase/cased'.
28369         * lib/unicase/caseprop.h: New file.
28370         * lib/unicase/cased.c: New file.
28371         * modules/unicase/cased: New file.
28372
28373         New functions for case mapping of substrings.
28374         * lib/unicase.h (casing_prefix_context_t): New type.
28375         (unicase_empty_prefix_context): New variable.
28376         (u8_casing_prefix_context, u16_casing_prefix_context,
28377         u32_casing_prefix_context, u8_casing_prefixes_context,
28378         u16_casing_prefixes_context, u32_casing_prefixes_context): New
28379         declarations.
28380         (casing_suffix_context_t): New type.
28381         (unicase_empty_suffix_context): New variable.
28382         (u8_casing_suffix_context, u16_casing_suffix_context,
28383         u32_casing_suffix_context, u8_casing_suffixes_context,
28384         u16_casing_suffixes_context, u32_casing_suffixes_context,
28385         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
28386         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
28387         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
28388         declarations.
28389
28390 2009-06-28  Jim Meyering  <meyering@redhat.com>
28391
28392         boostrap: indent only with spaces
28393         * build-aux/bootstrap: Indent only with spaces, never TABs.
28394
28395         bootstrap: split long lines
28396         * build-aux/bootstrap: Keep line length < 80.
28397
28398         bootstrap: sync from coreutils
28399         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
28400         just as autoreconf does.  Verify a list of prerequisite
28401         package-name,version-number pairs if defined in bootstrap.conf.
28402         Refer to README-prereq, if prerequisites are not satisfied.
28403
28404 2009-06-27  Eric Blake  <ebb9@byu.net>
28405
28406         tests: add test for bogus NULL definition
28407         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
28408         * tests/test-stdlib.c: Likewise.
28409         * tests/test-string.c: Likewise.
28410         * tests/test-locale.c: Likewise.
28411         * tests/test-unistd.c: Likewise.
28412         * modules/stdio-tests (Depends-on): Add verify.
28413         * modules/stdlib-tests (Depends-on): Likewise.
28414         * modules/string-tests (Depends-on): Likewise.
28415         * modules/locale-tests (Depends-on): Likewise.
28416         * modules/unistd-tests (Depends-on): Likewise.
28417
28418 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
28419
28420         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
28421         self-explaining comment.
28422         * m4/selinux-selinux-h: Update serial.
28423         (gl_LIBSELINUX): New macro, adding a warning for missing development
28424         packages to code extracted from...
28425         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
28426         Add warning for missing development packages here, too.
28427
28428 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
28429
28430         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
28431
28432 2009-06-25  Eric Blake  <ebb9@byu.net>
28433
28434         version-etc: fix regression
28435         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
28436         gcc.
28437         (version_etc): Use it, to catch bugs with trailing NULL.
28438         * lib/version-etc.c (version_etc_arn): Delete unused argument.
28439         (version_etc_va): Fix logic bug.
28440         * modules/version-etc-tests: Add test.
28441         * tests/test-version-etc.c: New file.
28442         * tests/test-version-etc.sh: Likewise.
28443
28444 2009-06-25  Sam Steingold  <sds@gnu.org>
28445
28446         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
28447         mbtowc declaration.
28448
28449 2009-06-25  Eric Blake  <ebb9@byu.net>
28450
28451         fpurge: migrate into <stdio.h>
28452         * lib/fpurge.h: Delete...
28453         * lib/stdio.in.h (fpurge): ...and declare here, instead.
28454         * lib/fpurge.c (fpurge): Change declaring header.
28455         * modules/fpurge (Files): Drop deleted file.
28456         (Depends-on): Add stdio.
28457         (configure.ac): Set witness.
28458         * modules/stdio (Makefile.am): Support fpurge macros.
28459         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28460         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
28461         * lib/fflush.c: Update client.
28462         * tests/test-fpurge.c: Likewise.
28463         * NEWS: Mention the change.
28464
28465 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28466
28467         * lib/argp-version-etc.c (program_authors): Add const
28468         qualifier.
28469         * lib/version-etc.c: Fix typos in the comments.
28470         * modules/argp-version-etc: Depends on version-etc.
28471
28472 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28473
28474         argp-version-etc: new module.
28475
28476         * lib/argp-version-etc.c: New file.
28477         * lib/argp-version-etc.h: New file.
28478         * modules/argp-version-etc: New file.
28479         * modules/argp-version-etc-tests: New file.
28480         * tests/test-argp-version-etc.c: New test.
28481         * tests/test-argp-version-etc-1.sh: New test.
28482
28483 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28484
28485         Provide additional interfaces and documentation for version-etc
28486         module.
28487
28488         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
28489         interfaces.
28490         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
28491         prototypes.
28492
28493 2009-06-24  Bruno Haible  <bruno@clisp.org>
28494
28495         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
28496         HAVE_LIB${NAME} macro.
28497         Reported by Sam Steingold <sds@gnu.org>.
28498
28499 2009-06-23  Simon Josefsson  <simon@josefsson.org>
28500
28501         * modules/hash-tests (test_hash_LDADD): Link to libintl when
28502         needed.
28503
28504 2009-06-21  Bruno Haible  <bruno@clisp.org>
28505
28506         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
28507         work.
28508         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
28509         together with LIB${NAME}, LTLIB${NAME}.
28510         Reported by Sam Steingold <sds@gnu.org>.
28511
28512 2009-06-20  Jim Meyering  <meyering@redhat.com>
28513
28514         tests: make sc_require_test_exit_idiom more generic
28515         * top/maint.mk (Exit_witness_file): New overridable variable.
28516         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
28517         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
28518
28519 2009-06-19  Jim Meyering  <meyering@redhat.com>
28520
28521         hash: reverse order of src/dst parameters in an internal interface
28522         * lib/hash.c (transfer_entries): Reverse order of parameters to
28523         put DST before SRC.  Adjust callers.
28524
28525         tests: test-hash: avoid wholesale duplication
28526         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
28527         Instead, use a loop and add a single conditional.
28528
28529         tests: test-hash: allow seed selection via a command line argument
28530         * tests/test-hash.c (get_seed): New function.
28531         (main): Use it.
28532
28533 2009-06-19  Eric Blake  <ebb9@byu.net>
28534
28535         hash: avoid memory leak on allocation failure
28536         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
28537         failure.  Factor repeated algorithm...
28538         (transfer_entries): ...into new helper routine.
28539         (hash_delete): React to hash_rehash return value.
28540
28541         hash: reduce memory pressure in hash_rehash no-op case
28542         * lib/hash.c (next_prime): Avoid overflow.
28543         (hash_initialize): Factor bucket size computation...
28544         (compute_bucket_size): ...into new helper function.
28545         (hash_rehash): Use new function and open coding to reduce memory
28546         pressure, and avoid a memory leak in USE_OBSTACK code.
28547         Reported by Jim Meyering.
28548
28549 2009-06-18  Eric Blake  <ebb9@byu.net>
28550
28551         hash: make rotation more obvious
28552         * modules/hash (Depends-on): Add bitrotate and stdint.
28553         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
28554         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
28555         (SIZE_MAX): Rely on headers for definition.
28556         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
28557         (raw_hasher): Use rotr_sz.
28558         Suggested by Jim Meyering.
28559
28560         hash: fix memory leak in last patch
28561         * lib/hash.c (hash_rehash): Avoid memory leak.
28562
28563         hash: avoid no-op rehashing
28564         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
28565
28566         hash: provide default callback functions
28567         * lib/hash.c (raw_hasher, raw_comparator): New functions.
28568         (hash_initialize): Use them as defaults.
28569         * tests/test-hash.c (main): Test this.
28570
28571         hash: minor optimization
28572         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
28573         when possible.
28574         (hash_initialize): Document this promise.
28575         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
28576         * tests/test-hash.c (hash_compare_strings): Test this.
28577
28578 2009-06-18  Bruno Haible  <bruno@clisp.org>
28579
28580         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
28581         going to be replaced anyway.
28582
28583 2009-06-18  Bruno Haible  <bruno@clisp.org>
28584
28585         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
28586         in one place.
28587         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
28588         be replaced anyway.
28589
28590 2009-06-18  Eric Blake  <ebb9@byu.net>
28591
28592         hash: check for resize before insertion
28593         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
28594         threshold before insertion, so that a pathological hash_rehash
28595         that fills every bucket can still trigger another rehash.
28596
28597 2009-06-18  Jim Meyering  <meyering@redhat.com>
28598
28599         hash-tests: add a loop around the small tests
28600         * tests/test-hash.c (main): Repeat small tests with selected
28601         small initial table sizes.
28602
28603 2009-06-17  Eric Blake  <ebb9@byu.net>
28604
28605         hash: minor cleanups
28606         * lib/hash.h (hash_entry): Make opaque, by moving...
28607         * lib/hash.c (hash_entry): ...here.
28608         (hash_insert): Clarify restrictions on what can be inserted.
28609         (hash_get_next): Clarify when it is safe to remove an element
28610         during traversal.
28611         (check_tuning): Skip verification when tuning is known safe.
28612         (hash_initialize): Clarify restrictions on tuning.
28613
28614 2009-06-17  Jim Meyering  <jim@meyering.net>
28615         and Eric Blake  <ebb9@byu.net>
28616
28617         hash-tests: new module
28618         * modules/hash-tests: New file.
28619         * tests/test-hash.c: New file.
28620
28621 2009-06-17  Eric Blake  <ebb9@byu.net>
28622
28623         strstr-simple: document new module
28624         * MODULES.html.sh: Document new module.
28625
28626         strstr, strcasestr: replace on platforms with broken memchr
28627         * modules/strstr: Split into...
28628         * modules/strstr-simple: ...new module that does not care about
28629         performance, but does care about glibc bug.
28630         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
28631         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
28632         if platform memchr is broken, per Debian bug 521737.
28633         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
28634         memchr.
28635         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
28636         * doc/posix-functions/strstr.texi (strstr): Document the fix.
28637         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28638         * modules/mountlist (Depends-on): Add strstr-simple.
28639         * modules/gen-uni-tables (Depends-on): Likewise.
28640         * modules/argz (Depends-on): Add strstr.
28641
28642 2009-06-17  Bruno Haible  <bruno@clisp.org>
28643
28644         * modules/posix_spawn-internal (Depends-on): Add errno.
28645
28646 2009-06-17  Bruno Haible  <bruno@clisp.org>
28647
28648         Define missing ESTALE on Interix 3.5.
28649         * lib/errno.in.h (ESTALE): Assign a value if missing.
28650         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
28651         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
28652         missing.
28653         * doc/posix-headers/errno.texi: Mention the Interix bug.
28654         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
28655
28656 2009-06-15  Eric Blake  <ebb9@byu.net>
28657
28658         memchr, memchr2: add valgrind exception
28659         * lib/memchr.valgrind: New file.
28660         * lib/memchr2.valgrind: New file.
28661         * modules/memchr (Files): Distribute valgrind file.
28662         * modules/memchr2 (Files): Likewise.
28663
28664         docs: memchr is no longer obsolete
28665         * MODULES.html.sh: Move memchr from obsolete to string.h section.
28666         * lib/string.in.h (memchr): Simplify logic.
28667
28668 2009-06-14  Jim Meyering  <meyering@redhat.com>
28669
28670         link-follow: fix the "checking..." message to not mention trailing slash
28671         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
28672         never considered trailing slashes.
28673
28674 2009-06-14  Bruno Haible  <bruno@clisp.org>
28675
28676         * m4/memchr.m4: Mention also the bug on IA-64.
28677         * doc/posix-functions/memchr.texi: Likewise.
28678
28679 2009-06-12  Eric Blake  <ebb9@byu.net>
28680
28681         memchr: detect broken x86_64 and alpha implementations
28682         * modules/memchr-tests (Depends-on): Move mmap detection...
28683         * modules/memchr (Depends-on): ...here.
28684         (configure.ac): Set indicator.
28685         * lib/string.in.h (memchr): Declare replacement.
28686         * modules/string (Makefile.am): Trigger replacement.
28687         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28688         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
28689         bugs.
28690         * doc/posix-functions/memchr.texi (memchr): Document the bug.
28691         * modules/getpagesize (License): Relax license.
28692
28693 2009-06-11  Bruno Haible  <bruno@clisp.org>
28694
28695         * lib/idpriv.h: Add more references.
28696
28697 2009-06-08  Bruno Haible  <bruno@clisp.org>
28698
28699         Tests for module 'idpriv-droptemp'.
28700         * modules/idpriv-droptemp-tests: New file.
28701         * tests/test-idpriv-droptemp.sh: New file.
28702         * tests/test-idpriv-droptemp.su.sh: New file.
28703         * tests/test-idpriv-droptemp.c: New file.
28704
28705         New module 'idpriv-droptemp'.
28706         * lib/idpriv-droptemp.c: New file.
28707         * modules/idpriv-droptemp: New file.
28708
28709 2009-06-08  Bruno Haible  <bruno@clisp.org>
28710
28711         Tests for module 'idpriv-drop'.
28712         * modules/idpriv-drop-tests: New file.
28713         * tests/test-idpriv-drop.sh: New file.
28714         * tests/test-idpriv-drop.su.sh: New file.
28715         * tests/test-idpriv-drop.c: New file.
28716
28717         New module 'idpriv-drop'.
28718         * lib/idpriv.h: New file.
28719         * lib-idpriv-drop.c: New file.
28720         * m4/idpriv.m4: New file.
28721         * modules/idpriv-drop: New file.
28722
28723 2009-06-08  Bruno Haible  <bruno@clisp.org>
28724
28725         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
28726         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28727         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28728         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28729         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28730         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28731         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28732
28733 2009-06-08  Eric Blake  <ebb9@byu.net>
28734
28735         test-strstr: use memory fence, when possible
28736         * tests/test-strstr.c (main): Use memory fence, in order to be
28737         more likely to trigger Debian bug 521737.
28738         * modules/strstr-tests (Files): Pull in additional files.
28739
28740         memchr: no longer obsolete, for wider field testing
28741         * modules/memchr (Status, Notice): Delete, this module is no
28742         longer obsolete.
28743         * modules/vasnprintf (Depends-on): Add memchr.
28744
28745 2009-06-07  Jim Meyering  <meyering@redhat.com>
28746
28747         hash: declare some functions with the warn_unused_result attribute
28748         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
28749
28750 2009-06-07  Bruno Haible  <bruno@clisp.org>
28751
28752         * tests/test-alignof.c: Don't test int64_t if it does not exist.
28753         Reported by Eric Blake.
28754
28755 2009-06-06  Eric Blake  <ebb9@byu.net>
28756
28757         test-alignof: fix typo with long double
28758         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
28759         compiler error.
28760
28761 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
28762
28763         Escape non-texinfo { and }s.
28764         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
28765         markup error.
28766
28767 2009-06-04  Jim Meyering  <meyering@redhat.com>
28768
28769         gitlog-to-changelog: don't infloop on an empty commit log
28770         * build-aux/gitlog-to-changelog: Warn about an empty log message.
28771         Reported by Boris Petersen <transacid@centerim.org>.
28772
28773 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
28774
28775         version-etc: extend for packagers
28776         Add three new configure options, intended for packagers:
28777           --with-packager="packager name"
28778           --with-packager-version="packager-specific version"
28779           --with-packager-bug-reports="packager bug reporting"
28780         An example with coreutils:
28781           $ ./configure \
28782             --with-packager=Gentoo \
28783             --with-packager-bug-report=http://bugs.gentoo.org/ \
28784             --with-packager-version="patchset 1.6"
28785           $ ./src/ls --version | head -n2
28786           ls (GNU coreutils) 7.1-dirty
28787           Packaged by Gentoo (patchset 1.6)
28788         Note that the bug reporting info via --help doesn't show up because
28789         coreutils uses its own custom emit_bug_reporting_address() implementation
28790         in src/system.h.  If it didn't, it'd look like:
28791           $ ./src/ls --help | tail -n4
28792           Report bugs to <bug-coreutils@gnu.org>.
28793           Report Gentoo bugs to <http://bugs.gentoo.org/>.
28794           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
28795           General help using GNU software: <http://www.gnu.org/gethelp/>.
28796         * lib/version-etc.c: Print new information, if provided.
28797         * m4/version-etc.m4: New file.
28798         * modules/version-etc (Files): Add m4/version-etc.m4.
28799         (configure.ac): Add gl_VERSION_ETC.
28800
28801 2009-05-31  Bruno Haible  <bruno@clisp.org>
28802
28803         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
28804         and 'int64_t'.
28805         * modules/alignof-tests (Dependencies): Add stdint.
28806         Reported by Eric Blake.
28807
28808 2009-05-31  Bruno Haible  <bruno@clisp.org>
28809
28810         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
28811         restriction due to compiler bugs.
28812         Reported by Eric Blake.
28813
28814 2009-05-31  Simon Josefsson  <simon@josefsson.org>
28815             Bruno Haible  <bruno@clisp.org>
28816
28817         Fix test-alignof failure.
28818         * lib/alignof.h (alignof_slot): New macro.
28819         (alignof_type): New macro, with the same semantics as the previous
28820         'alignof'.
28821         (alignof): Alias to alignof_slot.
28822         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
28823         check that the results are usable as constant expressions.
28824
28825 2009-05-31  Bruno Haible  <bruno@clisp.org>
28826
28827         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
28828         * tests/test-memchr.c (main): Check that memchr does not read past the
28829         first occurrence of the byte.
28830         * tests/test-strstr.c (main): Update comment.
28831         Suggested by Eric Blake.
28832
28833 2009-05-30  Bruno Haible  <bruno@clisp.org>
28834
28835         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
28836         detail how to use dumpbin.
28837         Reported by David Byron <dbyron@dbyron.com>.
28838
28839 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28840
28841         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
28842
28843 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28844
28845         * m4/manywarnings.m4: Add GCC 4.4 warnings.
28846
28847 2009-05-28  Bruno Haible  <bruno@clisp.org>
28848
28849         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
28850         build-aux/ files.
28851
28852 2009-05-28  Simon Josefsson  <simon@josefsson.org>
28853
28854         * gnulib-tool (func_import): Transform license on build-aux/ files too.
28855
28856 2009-05-27  Simon Josefsson  <simon@josefsson.org>
28857
28858         * gnulib-tool (sed_transform_main_lib_file)
28859         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
28860         regexps.
28861
28862 2009-05-26  Simon Josefsson  <simon@josefsson.org>
28863
28864         * tests/test-strstr.c: Add another self-test.
28865         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
28866         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
28867
28868 2009-05-23  Bruno Haible  <bruno@clisp.org>
28869
28870         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
28871         change.
28872
28873 2009-05-21  Bruno Haible  <bruno@clisp.org>
28874
28875         Simplify use of mode_t varargs.
28876         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
28877         uses 'mode_t' or 'int'.
28878         * lib/openat.c (openat): Likewise.
28879         * lib/open-safer.c (open_safer): Likewise.
28880         * m4/mode_t.m4: New file.
28881         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
28882         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
28883         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
28884         * modules/open (Files): Add m4/mode_t.m4.
28885         * modules/openat (Files): Likewise.
28886         * modules/fcntl-safer (Files): Likewise.
28887         Suggested by Eric Blake.
28888
28889 2009-05-21  Pádraig Brady  <P@draigbrady.com>
28890
28891         * doc/glibc-functions/fallocate.texi: New file.
28892         * doc/gnulib.texi: Include it.
28893
28894 2009-05-21  Eric Blake  <ebb9@byu.net>
28895             Bruno Haible  <bruno@clisp.org>
28896
28897         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
28898         invocations.
28899         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28900
28901 2009-05-21  Eric Blake  <ebb9@byu.net>
28902             Bruno Haible  <bruno@clisp.org>
28903
28904         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
28905         include_next. Fix of 2008-11-20 commit.
28906         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
28907         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
28908         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
28909         NEXT_MATH_H.
28910         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
28911         instead of NEXT_MATH_H.
28912
28913 2009-05-21  Bruno Haible  <bruno@clisp.org>
28914
28915         Avoid redefinition warnings for SIZE_MAX.
28916         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
28917         Reported by Simon Josefsson.
28918
28919 2009-05-21  Bruno Haible  <bruno@clisp.org>
28920
28921         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
28922         AC_CACHE_VAL.
28923
28924 2009-05-20  Bruno Haible  <bruno@clisp.org>
28925
28926         Make zeroptr.h work on mingw.
28927         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
28928         mprotect.
28929         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
28930         * modules/memchr2-tests (configure.ac): Likewise.
28931         * modules/memcmp-tests (configure.ac): Likewise.
28932         * modules/memmem-tests (configure.ac): Likewise.
28933         * modules/memrchr-tests (configure.ac): Likewise.
28934         Reported by Simon Josefsson.
28935
28936 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28937
28938         * tests/test-glob.c: Include string.h for strcmp prototype.
28939
28940 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28941
28942         * modules/getdelim (Depends-on): Add explicit stdint, although it
28943         was implicitly already pulled in via realloc-posix.
28944         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
28945
28946 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28947
28948         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
28949         G. Christensen" <tgc@jupiterrise.com>.
28950         * m4/sys_socket_h.m4: Check for sa_family_t.
28951         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
28952         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
28953         * tests/test-sys_socket.c: Check that sa_family_t works.
28954
28955 2009-05-18  Eric Blake  <ebb9@byu.net>
28956
28957         maint.mk: allow gnulib_dir in VPATH build
28958         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
28959
28960 2009-05-15  Jim Meyering  <meyering@redhat.com>
28961
28962         maint.mk: Give gnulib_dir a default definition.
28963         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
28964         Thus, most packages no longer need to specify this variable in cfg.mk
28965
28966 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
28967
28968         rename.m4: fix typos that would make non-mingw cross-configure fail
28969         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
28970
28971 2009-05-13  Eric Blake  <ebb9@byu.net>
28972
28973         mmap-anon: avoid out-of-order autoconf expansion
28974         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
28975         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
28976         * modules/memchr-tests (Depends-on): Add extensions.
28977         * modules/memchr2-tests (Depends-on): Add extensions.
28978         * modules/memcmp-tests (Depends-on): Add extensions.
28979         * modules/memmem-tests (Depends-on): Add extensions.
28980         * modules/memrchr-tests (Depends-on): Add extensions.
28981
28982 2009-05-13  Bruno Haible  <bruno@clisp.org>
28983
28984         Make some tests ISO C 99 compliant.
28985         * tests/zerosize-ptr.h: New file.
28986         * tests/test-memchr.c: Include zerosize-ptr.h.
28987         (main): Use a zero-size object pointer instead of NULL.
28988         * tests/test-memchr2.c: Include zerosize-ptr.h.
28989         (main): Use a zero-size object pointer instead of NULL.
28990         * tests/test-memcmp.c: Include zerosize-ptr.h.
28991         (main): Use a zero-size object pointer instead of NULL.
28992         * tests/test-memmem.c: Include zerosize-ptr.h.
28993         (main): Use a zero-size object pointer instead of NULL.
28994         * tests/test-memrchr.c: Include zerosize-ptr.h.
28995         (main): Use a zero-size object pointer instead of NULL.
28996         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
28997         m4/mmap-anon.m4.
28998         (Depends-on): Add getpagesize.
28999         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29000         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
29001         m4/mmap-anon.m4.
29002         (Depends-on): Add getpagesize.
29003         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29004         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
29005         m4/mmap-anon.m4.
29006         (Depends-on): Add getpagesize.
29007         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29008         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
29009         m4/mmap-anon.m4.
29010         (Depends-on): Add getpagesize.
29011         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29012         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
29013         m4/mmap-anon.m4.
29014         (Depends-on): Add getpagesize.
29015         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29016
29017 2009-05-12  Bruno Haible  <bruno@clisp.org>
29018
29019         Tests for module 'alignof'.
29020         * modules/alignof-tests: New file.
29021         * tests/test-alignof.c: New file.
29022
29023 2009-05-12  Bruno Haible  <bruno@clisp.org>
29024
29025         Fix alignof macro.
29026         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
29027         vendor compilers that are always correct.
29028
29029 2009-05-12  Bruno Haible  <bruno@clisp.org>
29030
29031         Make the MAP_ANONYMOUS detection work on HP-UX 11.
29032         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
29033         not whether its fully works.
29034
29035 2009-05-12  Bruno Haible  <bruno@clisp.org>
29036
29037         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
29038
29039 2009-05-12  Jim Meyering  <meyering@redhat.com>
29040
29041         * top/maint.mk: Adjust backslash alignment.
29042
29043 2009-05-11  Simon Josefsson  <simon@josefsson.org>
29044
29045         * top/maint.mk: Make $(srcdir)/build-aux configurable.
29046
29047 2009-05-11  Eric Blake  <ebb9@byu.net>
29048
29049         argp: avoid undefined behavior
29050         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
29051         macros.
29052
29053 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29054
29055         * tests/test-vc-list-files-git.sh: Do git config of user.email and
29056         user.name to prevent git commit from complaining.
29057
29058 2009-05-10  Bruno Haible  <bruno@clisp.org>
29059
29060         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
29061         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
29062         it rewrites every file name only once.
29063         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
29064
29065 2009-05-08  Bruno Haible  <bruno@clisp.org>
29066
29067         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
29068         instead of 'max'.
29069
29070 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29071
29072         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
29073         sockaddr_storage test.
29074
29075 2009-05-07  Simon Josefsson  <simon@josefsson.org>
29076
29077         * modules/sys_socket (Makefile.am): Substitute
29078         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
29079         * m4/sys_socket_h.m4: Check for sockaddr_storage.
29080         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
29081         * tests/test-sys_socket.c: Check sockaddr_storage.
29082
29083 2009-05-08  Bruno Haible  <bruno@clisp.org>
29084
29085         New module 'alignof'.
29086         * lib/alignof.h: New file.
29087         * modules/alignof: New file.
29088
29089 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29090             Bruno Haible  <bruno@clisp.org>
29091
29092         Fix test-file-has-acl on FreeBSD.
29093         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
29094         mask is implicitly added.
29095         * tests/test-file-has-acl.c: Include <signal.h>.
29096         (main): Terminate the test after 5 seconds.
29097         * modules/acl-tests (configure.ac): Check for alarm function.
29098
29099 2009-05-04  Bruno Haible  <bruno@clisp.org>
29100
29101         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
29102         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
29103         * modules/errno (configure.ac): Drop AC_REQUIRE.
29104         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
29105         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
29106
29107 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29108
29109         * modules/glob-tests: New module.
29110         * tests/test-glob.c: Add.
29111
29112 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29113
29114         * modules/fnmatch-tests: New module.
29115         * tests/test-fnmatch.c: Add.
29116
29117 2009-05-04  Eric Blake  <ebb9@byu.net>
29118
29119         maint: make the new no-submodule-changes rule VPATH-safe
29120         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
29121
29122 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29123             Bruno Haible  <bruno@clisp.org>
29124
29125         acl: Fix infinite loop on FreeBSD.
29126         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
29127         of return value from acl_get_entry.
29128         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
29129         Likewise.
29130
29131 2009-05-03  Bruno Haible  <bruno@clisp.org>
29132
29133         * lib/acl-internal.h (acl_entries): Clarify return value.
29134         * lib/acl_entries.c (acl_entries): Likewise.
29135
29136 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29137
29138         Bug fix in acl module.
29139         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
29140
29141 2009-05-03  Bruno Haible  <bruno@clisp.org>
29142
29143         Create gperf-generated file in the source dir, not in the build dir.
29144         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
29145         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
29146         * modules/unicase/locale-language (unicase/locale-languages.h):
29147         Likewise.
29148         * modules/unicase/special-casing (unicase/special-casing-table.h):
29149         Likewise.
29150         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
29151         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
29152         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
29153         Reported by Ralf Wildenhues.
29154
29155 2009-05-03  Bruno Haible  <bruno@clisp.org>
29156
29157         * modules/fnmatch (Description, configure.ac): Taken from
29158         fnmatch-posix.
29159         * modules/fnmatch-posix: Turn into a symbolic reference to the
29160         'fnmatch' module, and deprecate.
29161         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
29162
29163 2009-05-03  Bruno Haible  <bruno@clisp.org>
29164
29165         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
29166         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
29167         Reported by Ralf Wildenhues.
29168
29169 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29170
29171         * m4/fnmatch.m4: Fix fnmatch re-define.
29172
29173 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29174
29175         priv-set: new module and tests; adapt write-any-file
29176         * lib/priv-set.c: New file.
29177         * lib/priv-set.h: New file.
29178         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
29179         * lib/write-any-file.c: Simplify by using priv-set module.
29180         * m4/priv-set.m4: New file.
29181         * modules/priv-set: New file.
29182         * modules/unlinkdir: Add dependency on priv-set module.
29183         * modules/write-any-file: Likewise.
29184
29185         Tests for module 'priv-set'.
29186         * modules/priv-set-tests: New file.
29187         * tests/test-priv-set.c: New file.
29188
29189 2009-05-03  Jim Meyering  <meyering@redhat.com>
29190             Bruno Haible  <bruno@clisp.org>
29191
29192         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
29193         use the converted UTF-8 variant of the name instead.
29194
29195 2009-05-03  Jim Meyering  <meyering@redhat.com>
29196
29197         tests: tighten some getdate tests
29198         * tests/test-getdate.c (main): Tighten tests: require equality,
29199         not just greater than.  Set TZ envvar to UTC0.
29200
29201 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29202
29203         getdate: correctly interpret "next monday" when run on a Monday
29204         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
29205         that e.g., "next tues" (when run on a tuesday) results in a date
29206         that is one week in the future, and not today's date.
29207         I.e., add a week when the wday is the same as the current one.
29208         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
29209         and earlier by Martin Bernreuther and Jan Minář.
29210         * tests/test-getdate.c (main): Check that "next DAY" is always in
29211         the future and that "last DAY" is always in the past.
29212
29213 2009-05-02  Jim Meyering  <meyering@redhat.com>
29214
29215         build: ensure that a release build fails when a submodule is unclean
29216         * top/maint.mk (no-submodule-changes): New rule.
29217         (alpha beta major): Depend on it.
29218
29219 2009-05-02  Bruno Haible  <bruno@clisp.org>
29220
29221         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
29222         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
29223         shell variable gl_fnmatch_required to detect which variant is
29224         requested.
29225         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
29226         gl_FUNC_FNMATCH_POSIX.
29227         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
29228         exclude fnmatch-posix.
29229
29230 2009-05-02  Bruno Haible  <bruno@clisp.org>
29231
29232         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
29233         * modules/mbsrtowcs (License): Change to LGPLv2+.
29234         * modules/strnlen1 (License): Likewise.
29235         Reported by Simon Josefsson.
29236
29237 2009-05-02  Bruno Haible  <bruno@clisp.org>
29238
29239         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
29240         "cross".
29241         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
29242         gnulib-tool was called with option --source-base=lib.
29243
29244 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29245
29246         Use automake *-local hooks without commands, for extensibility.
29247         * modules/localcharset (Makefile.am): Rename install-exec-local
29248         rule to install-exec-localcharset, and make it a prerequisite of
29249         install-exec-local.  Likewise, rename the uninstall-local rule to
29250         uninstall-localcharset, and make it a prerequisite of the former.
29251
29252 2009-05-01  Bruno Haible  <bruno@clisp.org>
29253
29254         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
29255         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29256         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
29257         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
29258         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
29259         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29260         m4/locale-zh.m4, m4/codeset.m4.
29261
29262         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29263         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
29264         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29265         m4/locale-zh.m4.
29266
29267         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
29268         REPLACE_WCRTOMB if mbstate_t must be replaced.
29269         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
29270         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
29271
29272 2009-05-01  Bruno Haible  <bruno@clisp.org>
29273
29274         Avoid compiler warnings when redefining macros defined by <libintl.h>.
29275         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
29276         dngettext, dcngettext, textdomain, bindtextdomain,
29277         bind_textdomain_codeset): Undefine before redefining.
29278
29279 2009-04-30  Bruno Haible  <bruno@clisp.org>
29280
29281         Fix bug introduced on 2009-04-25.
29282         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
29283         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
29284         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
29285         is defined.
29286         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
29287         is defined.
29288         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
29289         is defined.
29290         Reported by Elbert_Pol <elbert.pol@gmail.com>.
29291
29292 2009-04-28  Bruno Haible  <bruno@clisp.org>
29293
29294         Comment tweaks.
29295         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
29296         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
29297         * lib/unicase.h (u*_casexfrm): Likewise.
29298         Reported by Paolo Bonzini.
29299
29300 2009-04-28  Bruno Haible  <bruno@clisp.org>
29301
29302         Fix a compilation error.
29303         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
29304         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29305         Reported by Jim Meyering.
29306
29307 2009-04-27  Bruno Haible  <bruno@clisp.org>
29308
29309         New module 'libunistring'.
29310         * modules/libunistring: New file.
29311         * m4/libunistring.m4: New file.
29312         * MODULES.html.sh (Unicode string functions): Add it.
29313
29314 2009-04-27  Eric Blake  <ebb9@byu.net>
29315
29316         maint.mk: allow package-specific header to provide <config.h>
29317         * top/maint.mk (sc_require_config_h): New variable.
29318         (sc_require_config_h, sc_require_config_h_first): Use it.
29319
29320 2009-04-27  Simon Josefsson  <simon@josefsson.org>
29321
29322         * top/maint.mk (sc_avoid_if_before_free): Except
29323         useless-if-before-free script.
29324
29325 2009-04-27  Eric Blake  <ebb9@byu.net>
29326
29327         maintainer-makefile: depend on all required helper scripts
29328         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
29329         useless-if-before-free.
29330         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
29331         version, rather than assuming gnulib checkout is available.
29332         Reported by Simen Josefsson.
29333
29334 2009-04-26  Bruno Haible  <bruno@clisp.org>
29335
29336         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
29337         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
29338         "../" or "..".
29339
29340 2009-04-26  Bruno Haible  <bruno@clisp.org>
29341
29342         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
29343         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
29344         AC_LIB_HAVE_LINKFLAGS.
29345
29346 2009-04-26  Bruno Haible  <bruno@clisp.org>
29347
29348         Simplify calling convention of u*_conv_from_encoding.
29349         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
29350         u32_conv_from_encoding): Expect a resultbuf argument and return the
29351         result directly as a pointer.
29352         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
29353         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
29354         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
29355         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
29356         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
29357         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29358         Update.
29359         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
29360         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
29361         * lib/vasnprintf.c (VASNPRINTF): Update.
29362         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
29363         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
29364         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
29365         * NEWS: Mention the change.
29366
29367 2009-04-26  Bruno Haible  <bruno@clisp.org>
29368
29369         Simplify calling convention of u*_conv_to_encoding.
29370         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
29371         u32_conv_to_encoding): Expect a resultbuf argument and return the
29372         result directly as a pointer.
29373         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29374         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
29375         freeing scaled_offsets if mem_iconveha failed.
29376         * lib/unicase/u-casexfrm.h (FUNC): Update.
29377         * lib/uninorm/u-normxfrm.h (FUNC): Update.
29378         * lib/vasnprintf.c (VASNPRINTF): Update.
29379         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
29380         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
29381         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
29382         * NEWS: Mention the change.
29383
29384 2009-04-26  Bruno Haible  <bruno@clisp.org>
29385
29386         Avoid test failures on AIX and OSF/1.
29387         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
29388         malloc(0).
29389         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29390         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29391         Likewise.
29392         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
29393         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
29394         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
29395         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
29396         * doc/posix-functions/malloc.texi: Document the portability problem
29397         related to malloc(0).
29398
29399 2009-04-26  Bruno Haible  <bruno@clisp.org>
29400
29401         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
29402         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
29403         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
29404
29405 2009-04-25  Bruno Haible  <bruno@clisp.org>
29406
29407         Avoid link error when creating a namespace clean library.
29408         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
29409         as macro with arguments if already defined as an alias.
29410         * lib/signbitf.c (gl_signbitf): Don't undefine.
29411         * lib/signbitd.c (gl_signbitd): Don't undefine.
29412         * lib/signbitl.c (gl_signbitl): Don't undefine.
29413
29414 2009-04-25  Jim Meyering  <meyering@redhat.com>
29415
29416         vc-list-files: fix another quoting bug
29417         * build-aux/vc-list-files: Avoid sed backslash expansion
29418         of pathological directory names.
29419
29420 2009-04-25  Eric Blake  <ebb9@byu.net>
29421
29422         vc-list-files: fix shell quoting error
29423         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
29424         timestamp.
29425
29426 2009-04-25  Jim Meyering  <meyering@redhat.com>
29427
29428         vc-list-files: restore lost functionality with subdir argument
29429         * build-aux/vc-list-files: When given a non-"." sub-directory
29430         argument, substitute the $dir/ prefix back onto each resulting name.
29431         Otherwise, coreutils' root_tests check would fail.
29432
29433 2009-04-24  Eric Blake  <ebb9@byu.net>
29434
29435         vc-list-files: ignore git symlinks
29436         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
29437         than ls-files, to ignore git symlinks.
29438
29439         maint.mk: import improvements from m4
29440         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
29441         (move_if_change): Delete unused macro.
29442         (news-date-check, vc-diff-check): Support VPATH builds.
29443         (announcement): Likewise.  Split --bootstrap-tools list...
29444         (boostrap-tools): ...into separate list, which can be overridden
29445         in cfg.mk.
29446         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
29447         requiring dependency on useless-if-before-free module.
29448         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
29449         Support VPATH builds.
29450
29451 2009-04-24  Jim Meyering  <meyering@redhat.com>
29452
29453         maint.mk: remove coreutils-specific rules and variables
29454         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
29455         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
29456         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
29457
29458         maint.mk: remove obsolete rule
29459         * top/maint.mk (rel-check): Remove rule.
29460         (WGET, WGETFLAGS): Remove now-unused variables.
29461
29462 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29463
29464         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
29465         consistency.
29466
29467         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
29468         '$(PATH_SEPARATOR)' instead of ':'.
29469
29470 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29471
29472         * lib/getopt1.c (main): Use 'const' for static array.
29473
29474 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29475
29476         * top/maint.mk: Sync with coreutils.
29477         * NEWS: Explain incompatibilities.
29478
29479 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29480             Bruno Haible  <bruno@clisp.org>
29481
29482         Fix cross-compilation results.
29483         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
29484         statement, as third argument of AC_TRY_RUN.
29485         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29486         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29487         Likewise.
29488         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29489         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
29490         Likewise.
29491         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29492         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
29493         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
29494
29495 2009-04-20  Bruno Haible  <bruno@clisp.org>
29496
29497         Avoid test failure on mingw.
29498         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
29499
29500 2009-04-20  Bruno Haible  <bruno@clisp.org>
29501
29502         Avoid compilation error on mingw.
29503         * modules/localename-tests (Depends-on): Add locale.
29504
29505 2009-04-19  Bruno Haible  <bruno@clisp.org>
29506
29507         Support for building a shared library on Windows platforms.
29508         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
29509         (main): Test the presence of UNINORM_NFC here.
29510         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
29511         (main): Test the presence of UNINORM_NFD here.
29512         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
29513         (main): Test the presence of UNINORM_NFKC here.
29514         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
29515         (main): Test the presence of UNINORM_NFKD here.
29516
29517 2009-04-19  Bruno Haible  <bruno@clisp.org>
29518
29519         Avoid a compiler warning.
29520         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
29521         Change type of variable 'sequence'.
29522
29523 2009-04-19  Bruno Haible  <bruno@clisp.org>
29524
29525         * modules/configmake (Makefile.am): When the contents of configmake.h
29526         does not change, arrange to preserve its modification time.
29527
29528 2009-04-17  Simon Josefsson  <simon@josefsson.org>
29529
29530         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
29531         gettext domain.
29532
29533 2009-04-16  Jim Meyering  <meyering@redhat.com>
29534
29535         useless-if-before-free: improve conversion code
29536         * build-aux/useless-if-before-free: Adjust code-in-comment to match
29537         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
29538
29539 2009-04-14  Bruno Haible  <bruno@clisp.org>
29540
29541         * modules/fcntl (Depends-on): Add extensions.
29542         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
29543
29544 2009-04-12  Ben Pfaff  <blp@gnu.org>
29545
29546         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
29547         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
29548
29549 2009-03-20  Ben Pfaff  <blp@gnu.org>
29550
29551         Make rename replace existing destinations on Windows.
29552         * m4/rename.m4: Add test for Mingw.
29553         * lib/rename.c: Add rename replacement that uses MoveFileEx with
29554         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
29555         * doc/posix-functions/rename.texi: Document.
29556
29557 2009-04-10  Bruno Haible  <bruno@clisp.org>
29558
29559         New include file "iconveh.h".
29560         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
29561         * lib/striconveh.h: Include it.
29562         (enum iconv_ilseq_handler): Remove definition.
29563         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
29564         striconveh.h.
29565         * lib/striconveha.c: Include striconveh.h.
29566         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
29567         * modules/striconveh (Files): Add lib/iconveh.h.
29568         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
29569         lib/striconveh.h.
29570
29571 2009-04-10  Bruno Haible  <bruno@clisp.org>
29572
29573         * lib/uniconv.h: Update comment.
29574
29575 2009-04-10  Bruno Haible  <bruno@clisp.org>
29576
29577         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
29578         always.
29579         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29580         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29581         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29582         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
29583         "unistring-notinline.h", so that the function gets defined always.
29584         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29585         * lib/unistr/u8-uctomb.c: Likewise.
29586         * lib/unistr/u16-mbtouc.c: Likewise.
29587         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29588         * lib/unistr/u16-uctomb.c: Likewise.
29589         * lib/unistr/u32-mbtouc.c: Likewise.
29590         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29591         * lib/unistr/u32-uctomb.c: Likewise.
29592
29593 2009-04-10  Bruno Haible  <bruno@clisp.org>
29594
29595         Mark 'utime' obsolete.
29596         * modules/utime (Status, Notice): New sections.
29597         Suggested by Jim Meyering.
29598
29599         Fix cross-compile guess for utime test.
29600         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
29601         autoconf.
29602         * doc/posix-functions/utime.texi: Give more precisions.
29603         Reported by Jan <ipif@ymail.com>.
29604
29605 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
29606
29607         filevercmp: correct today's change
29608         * lib/filevercmp.c: Also handle coreutils' test inputs.
29609         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
29610
29611         Fix regression in 'filevercmp' module. Thanks Sven Joachim
29612         for reporting it.
29613         * lib/filevercmp.c: Special handle for "", "." and "..".
29614         * tests/test-filevercmp.c: Enlarge the set suite.
29615
29616 2009-04-07  Jim Meyering  <meyering@redhat.com>
29617
29618         useless-if-before-free: show how to remove braced useless free, too
29619         * build-aux/useless-if-before-free: still only in a comment, though.
29620
29621 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
29622
29623         maint.mk: import changes to syntax-check macros from coreutils
29624         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
29625         Use them in the relevant macros.
29626
29627 2009-04-06  Bruno Haible  <bruno@clisp.org>
29628
29629         Fix unportable use of bit-fields.
29630         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
29631         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
29632         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
29633
29634 2009-04-06  Bruno Haible  <bruno@clisp.org>
29635
29636         Avoid test failures on AIX and OSF/1.
29637         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
29638         that malloc(0) = NULL.
29639         * tests/unicase/test-u8-tolower.c (check): Likewise.
29640         * tests/unicase/test-u8-totitle.c (check): Likewise.
29641         * tests/unicase/test-u8-toupper.c (check): Likewise.
29642         * tests/unicase/test-u16-casefold.c (check): Likewise.
29643         * tests/unicase/test-u16-tolower.c (check): Likewise.
29644         * tests/unicase/test-u16-totitle.c (check): Likewise.
29645         * tests/unicase/test-u16-toupper.c (check): Likewise.
29646         * tests/unicase/test-u32-casefold.c (check): Likewise.
29647         * tests/unicase/test-u32-tolower.c (check): Likewise.
29648         * tests/unicase/test-u32-totitle.c (check): Likewise.
29649         * tests/unicase/test-u32-toupper.c (check): Likewise.
29650         * tests/uninorm/test-u8-nfc.c (check): Likewise.
29651         * tests/uninorm/test-u8-nfd.c (check): Likewise.
29652         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
29653         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
29654         * tests/uninorm/test-u16-nfc.c (check): Likewise.
29655         * tests/uninorm/test-u16-nfd.c (check): Likewise.
29656         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
29657         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
29658         * tests/uninorm/test-u32-nfc.c (check): Likewise.
29659         * tests/uninorm/test-u32-nfd.c (check): Likewise.
29660         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
29661         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
29662
29663 2009-04-05  Bruno Haible  <bruno@clisp.org>
29664
29665         Work around an autoconf limitation.
29666         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
29667         comment line if it would be longer than 3 KB.
29668
29669 2009-04-05  Bruno Haible  <bruno@clisp.org>
29670
29671         Avoid test failure with libiconv-1.13.
29672         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
29673         of the expected test results.
29674
29675 2009-04-05  Bruno Haible  <bruno@clisp.org>
29676
29677         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
29678         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
29679         that it should be installed.
29680
29681 2009-04-05  Bruno Haible  <bruno@clisp.org>
29682
29683         * gnulib-tool: New option --copy-file.
29684         (func_usage): Document it.
29685         (func_dest_tmpfilename): Moved out of func_import.
29686         (func_add_file, func_update_file): New functions, extracted from
29687         func_import.
29688         (func_import): Update.
29689
29690 2009-04-05  Karl Berry  <karl@gnu.org>
29691
29692         * README: prominently mention gnulib-tool.
29693         Rearrange sections so getting the code is near the top.
29694
29695 2009-04-05  Bruno Haible  <bruno@clisp.org>
29696
29697         * lib/unicase.h: Mention u*_cmp2.
29698         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29699         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
29700         * lib/unicase/ulc-casecmp.c: Likewise.
29701         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
29702         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
29703         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
29704         unistr/u8-cmp.
29705         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
29706         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
29707         unistr/u16-cmp.
29708         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
29709         unistr/u32-cmp.
29710
29711         * lib/uninorm.h: Mention u*_cmp2.
29712         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29713         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
29714         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
29715         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
29716         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
29717         unistr/u8-cmp.
29718         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
29719         unistr/u16-cmp.
29720         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
29721         unistr/u32-cmp.
29722
29723         New module 'unistr/u32-cmp2'.
29724         * lib/unistr/u32-cmp2.c: New file.
29725         * modules/unistr/u32-cmp2: New file.
29726
29727         New module 'unistr/u16-cmp2'.
29728         * lib/unistr/u16-cmp2.c: New file.
29729         * modules/unistr/u16-cmp2: New file.
29730
29731         New module 'unistr/u8-cmp2'.
29732         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
29733         * lib/unistr/u8-cmp2.c: New file.
29734         * lib/unistr/u-cmp2.h: New file.
29735         * modules/unistr/u8-cmp2: New file.
29736
29737 2009-04-05  Bruno Haible  <bruno@clisp.org>
29738
29739         * lib/unictype.h (uc_property_is_valid): New macro.
29740         * tests/unictype/test-pr_byname.c (main): Use it.
29741
29742         * lib/unistr.h: Doc fixes.
29743         * lib/uniconv.h: Doc fixes.
29744         * lib/unictype.h: Doc fixes.
29745
29746 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29747
29748         Port coreutils 7.2 to Solaris 8.
29749
29750         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
29751         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
29752         for Solaris 8.  This is a bit of a hack, as it means it's the
29753         caller's responsibility to add -lnsl if needed, but most likely it
29754         won't be needed since only getaddrinfo uses this and getaddrinfo
29755         isn't needed on Solaris 8.
29756
29757         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
29758         problem to Solaris 8 encountered with coreutils 7.2, which
29759         resulted in a message "fnmatch.c:292: warning: passing argument 4
29760         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
29761         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
29762
29763 2009-04-03  Simon Josefsson  <simon@josefsson.org>
29764
29765         * m4/ld-version-script.m4: Add FIXME comment.
29766
29767 2009-04-02  Simon Josefsson  <simon@josefsson.org>
29768
29769         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
29770         SOVERSION variable.
29771
29772 2009-04-02  Bruno Haible  <bruno@clisp.org>
29773
29774         * Makefile (info, html, dvi, pdf): Combine the rules.
29775         Suggested by Jim Meyering.
29776
29777 2009-04-01  Bruno Haible  <bruno@clisp.org>
29778
29779         * Makefile (info, html, dvi, pdf): New targets.
29780         Reported by Reuben Thomas <rrt@sc3d.org>.
29781
29782 2009-04-01  Bruno Haible  <bruno@clisp.org>
29783
29784         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
29785         can be put into PATH.
29786         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
29787
29788 2009-04-01  Bruno Haible  <bruno@clisp.org>
29789
29790         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
29791
29792 2009-04-01  Bruno Haible  <bruno@clisp.org>
29793
29794         Rename module 'visibility'.
29795         * modules/lib-symbol-visibility: Renamed from modules/visibility.
29796         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
29797         * doc/gnulib.texi: Update.
29798         * MODULES.html.sh (Misc): Update.
29799         * NEWS: Mention the change.
29800
29801 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29802
29803         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
29804         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
29805         Eric Blake <ebb9@byu.net> for review.
29806         * MODULES.html.sh: Add lib-msvc-compat.
29807         * doc/gnulib.texi: Link to new section.
29808         * m4/ld-output-def.m4: New file.
29809         * doc/ld-output-def.texi: New file.
29810
29811 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29812
29813         Rename ld-version-script to lib-symbol-versions.  Suggested by
29814         Bruno Haible <bruno@clisp.org>.
29815         * modules/ld-version-script: Renamed to lib-symbol-versions.
29816         * doc/ld-version-script.texi: Fix module name.
29817         * MODULES.html.sh: Add lib-symbol-versions.
29818
29819 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29820
29821         * modules/u64-tests: New file.
29822         * tests/test-u64.c: New file.
29823
29824 2009-03-04  Simon Josefsson  <simon@josefsson.org>
29825
29826         * MODULES.html.sh: Mention u64.
29827         * modules/u64: New module.
29828         * modules/crypto/sha512: Depend on u64 module instead of providing
29829         u64.h.
29830
29831 2009-03-27  Eric Blake  <ebb9@byu.net>
29832
29833         test-strerror: make debugging EAI_SYSTEM easier
29834         * modules/getaddrinfo-tests (Depends-on): Add strerror.
29835         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
29836         failure was EAI_SYSTEM.
29837
29838 2009-03-25  Bruno Haible  <bruno@clisp.org>
29839
29840         Fix a problem with --enable-relocatable on Solaris 7.
29841         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
29842         since 2008-02-24.
29843
29844 2009-03-25  Eric Blake  <ebb9@byu.net>
29845
29846         test-sockets: avoid gcc warning
29847         * tests/test-sockets.c (main): Silence compiler warning.
29848
29849 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29850
29851         New modules nproc, pthread, contributed by Glen Lenker.
29852
29853         * MODULES.html.sh: Add pthread, nproc.
29854         * lib/nproc.c: New file.
29855         * lib/nproc.h: New file.
29856         * lib/pthread.in.h: New file.
29857         * m4/pthread.m4: New file.
29858         * modules/nproc: New file.
29859         * modules/pthread: New file.
29860
29861 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29862
29863         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
29864         New variable.
29865
29866 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
29867
29868         filevercmp: handle simple~ and numbered.~3~ backup suffixes
29869         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
29870         * tests/test-filevercmp.c: Add tests for backup suffixes.
29871
29872 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29873
29874         * modules/stdlib (Depends-on): Add stdint, needed when defining
29875         struct random_data on, for example, HP-UX 10.20.  Reported by
29876         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29877
29878 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29879
29880         * lib/readline.c (readline): Call fflush on stdout after printing
29881         prompt.
29882
29883 2009-03-20  Bruno Haible  <bruno@clisp.org>
29884
29885         Remove dependency from 'close' module to -lws2_32 on native Windows.
29886         * lib/close-hook.h: New file.
29887         * lib/close-hook.c: New file.
29888         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
29889         w32sock.h.
29890         (_gl_close_fd_maybe_socket): Remove function.
29891         (rpl_close): Invoke execute_all_close_hooks instead of
29892         _gl_close_fd_maybe_socket.
29893         * lib/sockets.c: Include close-hook.h, w32sock.h.
29894         (close_fd_maybe_socket): New function, essentially from lib/close.c.
29895         (close_sockets_hook): New variable.
29896         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
29897         (gl_sockets_cleanup): Unregister it.
29898         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
29899         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
29900         * modules/close-hook: New file.
29901         * modules/close (Files): Remove lib/w32sock.h.
29902         (Depends-on): Add close-hook.
29903         (Link): Remove section.
29904         * modules/sockets (Files): Add lib/w32sock.h.
29905         (Depends-on): Add close-hook.
29906         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
29907         invocation.
29908         * NEWS: Mention that LIB_CLOSE is gone.
29909
29910 2009-03-23  Eric Blake  <ebb9@byu.net>
29911
29912         signal-tests: test previous patch
29913         * tests/test-signal.c: New file.
29914         * modules/signal-tests: Likewise.
29915
29916         signal.h: always support 'volatile sig_atomic_t'
29917         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
29918         (gl_SIGNAL_H_DEFAULTS): Add a default.
29919         * modules/signal (Makefile.am): Substitute if needed.
29920         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
29921         users can blindly add volatile.
29922         * doc/posix-headers/signal.texi (signal.h): Document it.
29923         Reported by Matthew Woehlke.
29924
29925 2009-03-23  Jim Meyering  <meyering@redhat.com>
29926
29927         pathmax: PATH_MAX: use pathconf only when available
29928         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
29929         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
29930         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
29931         This avoids a link failure in a PSP cross-compilation environment
29932         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
29933
29934         * lib/vasnprintf.c (divide): Fix typo in comment.
29935
29936 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29937
29938         * gnulib-tool (func_filter_filelist): Fix comment.
29939
29940 2009-03-20  Bruno Haible  <bruno@clisp.org>
29941
29942         Make sockets.h self-contained.
29943         * lib/sockets.c: Include sockets.h first.
29944         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
29945
29946 2009-03-19  Eric Blake  <ebb9@byu.net>
29947
29948         doc: mention more functions added in cygwin 1.7.0
29949         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
29950         addition.
29951         * doc/posix-functions/log2f.texi: Likewise.
29952
29953 2009-03-19  Jim Meyering  <meyering@redhat.com>
29954
29955         fsusage: avoid syntax error due to statement-before-declaration
29956         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
29957         after all declarations.  Reported by Matthew Woehlke in
29958         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
29959
29960 2009-03-18  Eric Blake  <ebb9@byu.net>
29961
29962         build-aux/compile: sync from automake
29963         * build-aux/compile: New file, from automake.
29964         * config/srclist.txt: Mention build-aux/compile.
29965
29966 2009-03-17  Bruno Haible  <bruno@clisp.org>
29967
29968         * lib/git-merge-changelog.c: Fix typo in comment.
29969         Reported by Reuben Thomas <rrt@sc3d.org>.
29970
29971 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
29972
29973         * m4/regex.m4: update and improve help for
29974         --without-included-regex.
29975
29976 2009-03-17  Simon Josefsson  <simon@josefsson.org>
29977
29978         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
29979         failure on missing include files.
29980
29981 2009-03-17  Eric Blake  <ebb9@byu.net>
29982
29983         doc: mention more functions added in cygwin 1.7.0
29984         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
29985         addition.
29986         * doc/posix-functions/fwscanf.texi: Likewise.
29987         * doc/posix-functions/swprintf.texi: Likewise.
29988         * doc/posix-functions/swscanf.texi: Likewise.
29989         * doc/posix-functions/vfwprintf.texi: Likewise.
29990         * doc/posix-functions/vfwscanf.texi: Likewise.
29991         * doc/posix-functions/vswprintf.texi: Likewise.
29992         * doc/posix-functions/vswscanf.texi: Likewise.
29993         * doc/posix-functions/vwprintf.texi: Likewise.
29994         * doc/posix-functions/vwscanf.texi: Likewise.
29995         * doc/posix-functions/wcscasecmp.texi: Likewise.
29996         * doc/posix-functions/wcsdup.texi: Likewise.
29997         * doc/posix-functions/wcsftime.texi: Likewise.
29998         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29999         * doc/posix-functions/wprintf.texi: Likewise.
30000         * doc/posix-functions/wscanf.texi: Likewise.
30001         * doc/glibc-functions/gethostbyname2.texi: Likewise.
30002
30003 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30004
30005         maint.mk: really add $(AM_MAKEFLAGS)
30006         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
30007         was inadvertently omitted in the last commit.
30008         Spotted by Bruno Haible.
30009
30010         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
30011         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
30012         $(AM_MAKEFLAGS)' rather than plain `make'.
30013
30014         gnulib-tool: execute $MAKE not make
30015         * gnulib-tool: Default $MAKE to 'make'.
30016         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
30017         than make.  Initialize $MAKE in the do-autobuild script.
30018
30019         gnulib-tool: use $MAKE not make in generated files
30020         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
30021         make, in generated files.  Initialize $MAKE in the do-autobuild
30022         script.
30023
30024         * top/GNUmakefile (_have-git-version-gen): Fix typo.
30025
30026         GNUmakefile: disable parallelism only for multiple, recursive targets
30027         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
30028         additions in the Makefile.
30029         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
30030         by Automake.
30031         (.NOTPARALLEL): Only disable parallel builds if multiple targets
30032         are listed on the command line and at least one of them is
30033         listed in $(ALL_RECURSIVE_TARGETS).
30034
30035 2009-03-14  Bruno Haible  <bruno@clisp.org>
30036
30037         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
30038         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
30039         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
30040         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
30041         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
30042         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
30043         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
30044         unistr/u8-uctomb.
30045         * modules/unistr/u8-strchr (Depends-on): Likewise.
30046         * modules/unistr/u8-strrchr (Depends-on): Likewise.
30047         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
30048         unistr/u16-uctomb.
30049         * modules/unistr/u16-strchr (Depends-on): Likewise.
30050         * modules/unistr/u16-strrchr (Depends-on): Likewise.
30051
30052 2009-03-12  Bruno Haible  <bruno@clisp.org>
30053
30054         Work around select() bug on Interix 3.5.
30055         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
30056         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
30057         * m4/select.m4: New file.
30058         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
30059         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
30060         * modules/select (Files): Add m4/select.m4.
30061         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
30062         * modules/nanosleep (Depends-on): Add select.
30063         * modules/poll (Depends-on): Likewise.
30064         * doc/posix-functions/select.texi: Mention the Interix bug.
30065         Reported by Markus Duft <mduft@gentoo.org>.
30066
30067         * lib/select.c: Renamed from lib/winsock-select.c.
30068         * modules/select (Files): Add lib/select.c, remove
30069         lib/winsock-select.c.
30070         (configure.ac): Update.
30071
30072 2009-03-12  Jim Meyering  <meyering@redhat.com>
30073
30074         avoid gcc warnings about unused macro definitions
30075         * lib/readtokens.c (STREQ): Remove unused definition.
30076         * lib/xmalloc.c (SIZE_MAX): Likewise.
30077         * lib/openat-die.c (N_): Likewise.
30078         * lib/mountlist.c (SIZE_MAX): Remove definition.
30079         Instead, include <stdint.h>.
30080         * lib/readutmp.c: Likewise.
30081         * modules/readutmp (Depends-on): Add stdint.
30082         * modules/mountlist (Depends-on): Add stdint.
30083         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
30084
30085 2009-03-10  Bruno Haible  <bruno@clisp.org>
30086
30087         Tests for module 'mbmemcasecoll'.
30088         * modules/mbmemcasecoll-tests: New file.
30089         * tests/test-mbmemcasecoll1.sh: New file.
30090         * tests/test-mbmemcasecoll2.sh: New file.
30091         * tests/test-mbmemcasecoll3.sh: New file.
30092         * tests/test-mbmemcasecoll.c: New file.
30093
30094         New module 'mbmemcasecoll'.
30095         * lib/mbmemcasecoll.h: New file.
30096         * lib/mbmemcasecoll.c: New file.
30097         * modules/mbmemcasecoll: New file.
30098
30099         * tests/test-mbmemcasecmp.h: New file, extracted from
30100         tests/test-mbmemcasecmp.c.
30101         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
30102         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
30103         (main): Update.
30104         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
30105
30106 2009-03-09  Bruno Haible  <bruno@clisp.org>
30107
30108         Tests for module 'mbmemcasecmp'.
30109         * modules/mbmemcasecmp-tests: New file.
30110         * tests/test-mbmemcasecmp1.sh: New file.
30111         * tests/test-mbmemcasecmp2.sh: New file.
30112         * tests/test-mbmemcasecmp3.sh: New file.
30113         * tests/test-mbmemcasecmp.c: New file.
30114
30115         New module 'mbmemcasecmp'.
30116         * lib/mbmemcasecmp.h: New file.
30117         * lib/mbmemcasecmp.c: New file.
30118         * modules/mbmemcasecmp: New file.
30119
30120 2009-03-09  Bruno Haible  <bruno@clisp.org>
30121
30122         Tests for module 'unicase/ulc-casecoll'.
30123         * modules/unicase/ulc-casecoll-tests: New file.
30124         * tests/unicase/test-ulc-casecoll1.sh: New file.
30125         * tests/unicase/test-ulc-casecoll2.sh: New file.
30126         * tests/unicase/test-ulc-casecoll.c: New file.
30127
30128         New module 'unicase/ulc-casecoll'.
30129         * lib/unicase.h (ulc_casecoll): New declaration.
30130         * lib/unicase/ulc-casecoll.c: New file.
30131         * modules/unicase/ulc-casecoll: New file.
30132
30133         New module 'unicase/ulc-casexfrm'.
30134         * lib/unicase.h (ulc_casexfrm): New declaration.
30135         * lib/unicase/ulc-casexfrm.c: New file.
30136         * modules/unicase/ulc-casexfrm: New file.
30137
30138 2009-03-09  Bruno Haible  <bruno@clisp.org>
30139
30140         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
30141         invocations.
30142
30143         * m4/mbscasecmp.m4: Remove file.
30144         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
30145         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
30146
30147         * m4/mbscasestr.m4: Remove file.
30148         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
30149         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
30150
30151         * m4/mbschr.m4: Remove file.
30152         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
30153         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
30154
30155         * m4/mbscspn.m4: Remove file.
30156         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
30157         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
30158
30159         * m4/mbslen.m4: Remove file.
30160         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
30161         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
30162
30163         * m4/mbsncasecmp.m4: Remove file.
30164         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
30165         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
30166
30167         * m4/mbsnlen.m4: Remove file.
30168         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
30169         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
30170
30171         * m4/mbspbrk.m4: Remove file.
30172         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
30173         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
30174
30175         * m4/mbspcasecmp.m4: Remove file.
30176         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
30177         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
30178
30179         * m4/mbsrchr.m4: Remove file.
30180         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
30181         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
30182
30183         * m4/mbssep.m4: Remove file.
30184         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
30185         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
30186
30187         * m4/mbsspn.m4: Remove file.
30188         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
30189         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
30190
30191         * m4/mbsstr.m4: Remove file.
30192         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
30193         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
30194
30195         * m4/mbstok_r.m4: Remove file.
30196         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
30197         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
30198
30199         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
30200
30201         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
30202         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
30203
30204         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
30205
30206 2009-03-08  Bruno Haible  <bruno@clisp.org>
30207
30208         Tests for module 'unicase/ulc-casecmp'.
30209         * modules/unicase/ulc-casecmp-tests: New file.
30210         * tests/unicase/test-ulc-casecmp1.sh: New file.
30211         * tests/unicase/test-ulc-casecmp2.sh: New file.
30212         * tests/unicase/test-ulc-casecmp.c: New file.
30213
30214         New module 'unicase/ulc-casecmp'.
30215         * lib/unicase.h (ulc_casecmp): New declaration.
30216         * lib/unicase/ulc-casecmp.c: New file.
30217         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
30218         'const SRC_UNIT *'.
30219         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
30220         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
30221         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
30222         * modules/unicase/ulc-casecmp: New file.
30223
30224         Tests for module 'unicase/u32-is-cased'.
30225         * modules/unicase/u32-is-cased-tests: New file.
30226         * tests/unicase/test-u32-is-cased.c: New file.
30227
30228         Tests for module 'unicase/u16-is-cased'.
30229         * modules/unicase/u16-is-cased-tests: New file.
30230         * tests/unicase/test-u16-is-cased.c: New file.
30231
30232         Tests for module 'unicase/u8-is-cased'.
30233         * modules/unicase/u8-is-cased-tests: New file.
30234         * tests/unicase/test-u8-is-cased.c: New file.
30235         * tests/unicase/test-is-cased.h: New file.
30236
30237         New module 'unicase/u32-is-cased'.
30238         * lib/unicase/u32-is-cased.c: New file.
30239         * modules/unicase/u32-is-cased: New file.
30240
30241         New module 'unicase/u16-is-cased'.
30242         * lib/unicase/u16-is-cased.c: New file.
30243         * modules/unicase/u16-is-cased: New file.
30244
30245         New module 'unicase/u8-is-cased'.
30246         * lib/unicase/u8-is-cased.c: New file.
30247         * lib/unicase/u-is-cased.h: New file.
30248         * modules/unicase/u8-is-cased: New file.
30249
30250         Tests for module 'unicase/u32-is-casefolded'.
30251         * modules/unicase/u32-is-casefolded-tests: New file.
30252         * tests/unicase/test-u32-is-casefolded.c: New file.
30253
30254         Tests for module 'unicase/u16-is-casefolded'.
30255         * modules/unicase/u16-is-casefolded-tests: New file.
30256         * tests/unicase/test-u16-is-casefolded.c: New file.
30257
30258         Tests for module 'unicase/u8-is-casefolded'.
30259         * modules/unicase/u8-is-casefolded-tests: New file.
30260         * tests/unicase/test-u8-is-casefolded.c: New file.
30261         * tests/unicase/test-is-casefolded.h: New file.
30262
30263         New module 'unicase/u32-is-casefolded'.
30264         * lib/unicase/u32-is-casefolded.c: New file.
30265         * modules/unicase/u32-is-casefolded: New file.
30266
30267         New module 'unicase/u16-is-casefolded'.
30268         * lib/unicase/u16-is-casefolded.c: New file.
30269         * modules/unicase/u16-is-casefolded: New file.
30270
30271         New module 'unicase/u8-is-casefolded'.
30272         * lib/unicase/u8-is-casefolded.c: New file.
30273         * modules/unicase/u8-is-casefolded: New file.
30274
30275         Tests for module 'unicase/u32-is-titlecase'.
30276         * modules/unicase/u32-is-titlecase-tests: New file.
30277         * tests/unicase/test-u32-is-titlecase.c: New file.
30278
30279         Tests for module 'unicase/u16-is-titlecase'.
30280         * modules/unicase/u16-is-titlecase-tests: New file.
30281         * tests/unicase/test-u16-is-titlecase.c: New file.
30282
30283         Tests for module 'unicase/u8-is-titlecase'.
30284         * modules/unicase/u8-is-titlecase-tests: New file.
30285         * tests/unicase/test-u8-is-titlecase.c: New file.
30286         * tests/unicase/test-is-titlecase.h: New file.
30287
30288         New module 'unicase/u32-is-titlecase'.
30289         * lib/unicase/u32-is-titlecase.c: New file.
30290         * modules/unicase/u32-is-titlecase: New file.
30291
30292         New module 'unicase/u16-is-titlecase'.
30293         * lib/unicase/u16-is-titlecase.c: New file.
30294         * modules/unicase/u16-is-titlecase: New file.
30295
30296         New module 'unicase/u8-is-titlecase'.
30297         * lib/unicase/u8-is-titlecase.c: New file.
30298         * modules/unicase/u8-is-titlecase: New file.
30299
30300         Tests for module 'unicase/u32-is-lowercase'.
30301         * modules/unicase/u32-is-lowercase-tests: New file.
30302         * tests/unicase/test-u32-is-lowercase.c: New file.
30303
30304         Tests for module 'unicase/u16-is-lowercase'.
30305         * modules/unicase/u16-is-lowercase-tests: New file.
30306         * tests/unicase/test-u16-is-lowercase.c: New file.
30307
30308         Tests for module 'unicase/u8-is-lowercase'.
30309         * modules/unicase/u8-is-lowercase-tests: New file.
30310         * tests/unicase/test-u8-is-lowercase.c: New file.
30311         * tests/unicase/test-is-lowercase.h: New file.
30312
30313         New module 'unicase/u32-is-lowercase'.
30314         * lib/unicase/u32-is-lowercase.c: New file.
30315         * modules/unicase/u32-is-lowercase: New file.
30316
30317         New module 'unicase/u16-is-lowercase'.
30318         * lib/unicase/u16-is-lowercase.c: New file.
30319         * modules/unicase/u16-is-lowercase: New file.
30320
30321         New module 'unicase/u8-is-lowercase'.
30322         * lib/unicase/u8-is-lowercase.c: New file.
30323         * modules/unicase/u8-is-lowercase: New file.
30324
30325         Tests for module 'unicase/u32-is-uppercase'.
30326         * modules/unicase/u32-is-uppercase-tests: New file.
30327         * tests/unicase/test-u32-is-uppercase.c: New file.
30328
30329         Tests for module 'unicase/u16-is-uppercase'.
30330         * modules/unicase/u16-is-uppercase-tests: New file.
30331         * tests/unicase/test-u16-is-uppercase.c: New file.
30332
30333         Tests for module 'unicase/u8-is-uppercase'.
30334         * modules/unicase/u8-is-uppercase-tests: New file.
30335         * tests/unicase/test-u8-is-uppercase.c: New file.
30336         * tests/unicase/test-is-uppercase.h: New file.
30337
30338         New module 'unicase/u32-is-uppercase'.
30339         * lib/unicase/u32-is-uppercase.c: New file.
30340         * modules/unicase/u32-is-uppercase: New file.
30341
30342         New module 'unicase/u16-is-uppercase'.
30343         * lib/unicase/u16-is-uppercase.c: New file.
30344         * modules/unicase/u16-is-uppercase: New file.
30345
30346         New module 'unicase/u8-is-uppercase'.
30347         * lib/unicase/u8-is-uppercase.c: New file.
30348         * modules/unicase/u8-is-uppercase: New file.
30349
30350         New module 'unicase/u32-is-invariant'.
30351         * lib/unicase/u32-is-invariant.c: New file.
30352         * modules/unicase/u32-is-invariant: New file.
30353
30354         New module 'unicase/u16-is-invariant'.
30355         * lib/unicase/u16-is-invariant.c: New file.
30356         * modules/unicase/u16-is-invariant: New file.
30357
30358         New module 'unicase/u8-is-invariant'.
30359         * lib/unicase/u8-is-invariant.c: New file.
30360         * lib/unicase/invariant.h: New file.
30361         * lib/unicase/u-is-invariant.h: New file.
30362         * modules/unicase/u8-is-invariant: New file.
30363
30364         Tests for module 'unicase/u32-casecoll'.
30365         * modules/unicase/u32-casecoll-tests: New file.
30366         * tests/unicase/test-u32-casecoll.c: New file.
30367
30368         Tests for module 'unicase/u16-casecoll'.
30369         * modules/unicase/u16-casecoll-tests: New file.
30370         * tests/unicase/test-u16-casecoll.c: New file.
30371
30372         Tests for module 'unicase/u8-casecoll'.
30373         * modules/unicase/u8-casecoll-tests: New file.
30374         * tests/unicase/test-u8-casecoll.c: New file.
30375
30376         New module 'unicase/u32-casecoll'.
30377         * lib/unicase/u32-casecoll.c: New file.
30378         * modules/unicase/u32-casecoll: New file.
30379
30380         New module 'unicase/u16-casecoll'.
30381         * lib/unicase/u16-casecoll.c: New file.
30382         * modules/unicase/u16-casecoll: New file.
30383
30384         New module 'unicase/u8-casecoll'.
30385         * lib/unicase/u8-casecoll.c: New file.
30386         * lib/unicase/u-casecoll.h: New file.
30387         * modules/unicase/u8-casecoll: New file.
30388
30389         New module 'unicase/u32-casexfrm'.
30390         * lib/unicase/u32-casexfrm.c: New file.
30391         * modules/unicase/u32-casexfrm: New file.
30392
30393         New module 'unicase/u16-casexfrm'.
30394         * lib/unicase/u16-casexfrm.c: New file.
30395         * modules/unicase/u16-casexfrm: New file.
30396
30397         New module 'unicase/u8-casexfrm'.
30398         * lib/unicase/u8-casexfrm.c: New file.
30399         * lib/unicase/u-casexfrm.h: New file.
30400         * modules/unicase/u8-casexfrm: New file.
30401
30402         Tests for module 'unicase/u32-casecmp'.
30403         * modules/unicase/u32-casecmp-tests: New file.
30404         * tests/unicase/test-u32-casecmp.c: New file.
30405
30406         Tests for module 'unicase/u16-casecmp'.
30407         * modules/unicase/u16-casecmp-tests: New file.
30408         * tests/unicase/test-u16-casecmp.c: New file.
30409
30410         Tests for module 'unicase/u8-casecmp'.
30411         * modules/unicase/u8-casecmp-tests: New file.
30412         * tests/unicase/test-u8-casecmp.c: New file.
30413         * tests/unicase/test-casecmp.h: New file.
30414
30415         New module 'unicase/u32-casecmp'.
30416         * lib/unicase/u32-casecmp.c: New file.
30417         * modules/unicase/u32-casecmp: New file.
30418
30419         New module 'unicase/u16-casecmp'.
30420         * lib/unicase/u16-casecmp.c: New file.
30421         * modules/unicase/u16-casecmp: New file.
30422
30423         New module 'unicase/u8-casecmp'.
30424         * lib/unicase/u8-casecmp.c: New file.
30425         * lib/unicase/u-casecmp.h: New file.
30426         * modules/unicase/u8-casecmp: New file.
30427
30428         Tests for module 'unicase/u32-casefold'.
30429         * modules/unicase/u32-casefold-tests: New file.
30430         * tests/unicase/test-u32-casefold.c: New file.
30431
30432         Tests for module 'unicase/u16-casefold'.
30433         * modules/unicase/u16-casefold-tests: New file.
30434         * tests/unicase/test-u16-casefold.c: New file.
30435
30436         Tests for module 'unicase/u8-casefold'.
30437         * modules/unicase/u8-casefold-tests: New file.
30438         * tests/unicase/test-u8-casefold.c: New file.
30439
30440         New module 'unicase/u32-casefold'.
30441         * lib/unicase/u32-casefold.c: New file.
30442         * modules/unicase/u32-casefold: New file.
30443
30444         New module 'unicase/u16-casefold'.
30445         * lib/unicase/u16-casefold.c: New file.
30446         * modules/unicase/u16-casefold: New file.
30447
30448         New module 'unicase/u8-casefold'.
30449         * lib/unicase/u8-casefold.c: New file.
30450         * lib/unicase/u-casefold.h: New file.
30451         * modules/unicase/u8-casefold: New file.
30452
30453         New module 'unicase/tocasefold'.
30454         * lib/unicase/casefold.h: New file.
30455         * lib/unicase/tocasefold.c: New file.
30456         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
30457         * modules/unicase/tocasefold: New file.
30458
30459         Tests for module 'unicase/u32-totitle'.
30460         * modules/unicase/u32-totitle-tests: New file.
30461         * tests/unicase/test-u32-totitle.c: New file.
30462
30463         Tests for module 'unicase/u16-totitle'.
30464         * modules/unicase/u16-totitle-tests: New file.
30465         * tests/unicase/test-u16-totitle.c: New file.
30466
30467         Tests for module 'unicase/u8-totitle'.
30468         * modules/unicase/u8-totitle-tests: New file.
30469         * tests/unicase/test-u8-totitle.c: New file.
30470
30471         New module 'unicase/u32-totitle'.
30472         * lib/unicase/u32-totitle.c: New file.
30473         * modules/unicase/u32-totitle: New file.
30474
30475         New module 'unicase/u16-totitle'.
30476         * lib/unicase/u16-totitle.c: New file.
30477         * modules/unicase/u16-totitle: New file.
30478
30479         New module 'unicase/u8-totitle'.
30480         * lib/unicase/u8-totitle.c: New file.
30481         * lib/unicase/u-totitle.h: New file.
30482         * modules/unicase/u8-totitle: New file.
30483
30484         Tests for module 'unicase/u32-tolower'.
30485         * modules/unicase/u32-tolower-tests: New file.
30486         * tests/unicase/test-u32-tolower.c: New file.
30487
30488         Tests for module 'unicase/u16-tolower'.
30489         * modules/unicase/u16-tolower-tests: New file.
30490         * tests/unicase/test-u16-tolower.c: New file.
30491
30492         Tests for module 'unicase/u8-tolower'.
30493         * modules/unicase/u8-tolower-tests: New file.
30494         * tests/unicase/test-u8-tolower.c: New file.
30495
30496         New module 'unicase/u32-tolower'.
30497         * lib/unicase/u32-tolower.c: New file.
30498         * modules/unicase/u32-tolower: New file.
30499
30500         New module 'unicase/u16-tolower'.
30501         * lib/unicase/u16-tolower.c: New file.
30502         * modules/unicase/u16-tolower: New file.
30503
30504         New module 'unicase/u8-tolower'.
30505         * lib/unicase/u8-tolower.c: New file.
30506         * modules/unicase/u8-tolower: New file.
30507
30508         Tests for module 'unicase/u32-toupper'.
30509         * modules/unicase/u32-toupper-tests: New file.
30510         * tests/unicase/test-u32-toupper.c: New file.
30511
30512         Tests for module 'unicase/u16-toupper'.
30513         * modules/unicase/u16-toupper-tests: New file.
30514         * tests/unicase/test-u16-toupper.c: New file.
30515
30516         Tests for module 'unicase/u8-toupper'.
30517         * modules/unicase/u8-toupper-tests: New file.
30518         * tests/unicase/test-u8-toupper.c: New file.
30519
30520         New module 'unicase/u32-toupper'.
30521         * lib/unicase/u32-toupper.c: New file.
30522         * modules/unicase/u32-toupper: New file.
30523
30524         New module 'unicase/u16-toupper'.
30525         * lib/unicase/u16-toupper.c: New file.
30526         * modules/unicase/u16-toupper: New file.
30527
30528         New module 'unicase/u8-toupper'.
30529         * lib/unicase/u8-toupper.c: New file.
30530         * modules/unicase/u8-toupper: New file.
30531
30532         New module 'unicase/u32-casemap'.
30533         * lib/unicase/u32-casemap.c: New file.
30534         * modules/unicase/u32-casemap: New file.
30535
30536         New module 'unicase/u16-casemap'.
30537         * lib/unicase/u16-casemap.c: New file.
30538         * modules/unicase/u16-casemap: New file.
30539
30540         New module 'unicase/u8-casemap'.
30541         * lib/unicase/unicasemap.h: New file.
30542         * lib/unicase/u8-casemap.c: New file.
30543         * lib/unicase/u-casemap.h: New file.
30544         * modules/unicase/u8-casemap: New file.
30545
30546         New module 'unicase/special-casing'.
30547         * lib/unicase/special-casing.h: New file.
30548         * lib/unicase/special-casing.c: New file.
30549         * lib/unicase/special-casing-table.gperf: New file, generated by
30550         gen-uni-tables.c.
30551         * modules/unicase/special-casing: New file.
30552
30553         Tests for module 'unicase/locale-language'.
30554         * modules/unicase/locale-language-tests: New file.
30555         * tests/unicase/test-locale-language.sh: New file.
30556         * tests/unicase/test-locale-language.c: New file.
30557
30558         New module 'unicase/locale-language'.
30559         * lib/unicase/locale-language.c: New file.
30560         * lib/unicase/locale-languages.gperf: New file.
30561         * modules/unicase/locale-language: New file.
30562
30563         Generate more tables for case conversion and case folding.
30564         * lib/gen-uni-tables.c (SCC_*): New enum items.
30565         (struct special_casing_rule): New type.
30566         (casing_rules, num_casing_rules, allocated_casing_rules): New
30567         variables.
30568         (add_casing_rule, fill_casing_rules): New functions.
30569         (struct casefold_rule): New type.
30570         (casefolding_rules, num_casefolding_rules,
30571         allocated_casefolding_rules): New variables.
30572         (fill_casefolding_rules): New function.
30573         (unicode_casefold): New variable.
30574         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
30575         sort_casing_rules, output_casing_rules): New functions.
30576         (main): Accept to more arguments: SpecialCasing.txt and
30577         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
30578         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
30579         Output mapping for casefolding.
30580
30581         * lib/unicase.h: Include stdbool.h, uninorm.h.
30582         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
30583         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
30584         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
30585         arguments.
30586         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
30587         resultp arguments.
30588         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
30589         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
30590         resultp arguments.
30591         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
30592         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
30593         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
30594         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
30595         declarations.
30596         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
30597
30598 2009-03-08  Bruno Haible  <bruno@clisp.org>
30599
30600         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30601         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
30602         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
30603         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30604
30605 2009-03-07  Bruno Haible  <bruno@clisp.org>
30606
30607         Adjust u*_normcmp, u*_normcoll API.
30608         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30609         u16_normcoll, u32_normcoll): Change failure conventions.
30610         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
30611         errno and return -1.
30612         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30613
30614 2009-03-07  Bruno Haible  <bruno@clisp.org>
30615
30616         Tests for module 'uninorm/u32-normcoll'.
30617         * modules/uninorm/u32-normcoll-tests: New file.
30618         * tests/uninorm/test-u32-normcoll.c: New file.
30619
30620         Tests for module 'uninorm/u16-normcoll'.
30621         * modules/uninorm/u16-normcoll-tests: New file.
30622         * tests/uninorm/test-u16-normcoll.c: New file.
30623
30624         Tests for module 'uninorm/u8-normcoll'.
30625         * modules/uninorm/u8-normcoll-tests: New file.
30626         * tests/uninorm/test-u8-normcoll.c: New file.
30627
30628 2009-03-07  Bruno Haible  <bruno@clisp.org>
30629
30630         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
30631         tests/uninorm/test-u32-normcmp.c.
30632         * tests/uninorm/test-u32-normcmp.c: Include it.
30633         (test_nonascii): New function, extracted from main. Add some more
30634         tests.
30635         (main): Invoke test_ascii and test_nonascii.
30636         * modules/uninorm/u32-normcmp-tests (Files): Add
30637         tests/uninorm/test-u32-normcmp.h.
30638         (Depends-on): Remove uninorm/u32-normcmp.
30639
30640         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
30641         tests/uninorm/test-u16-normcmp.c.
30642         * tests/uninorm/test-u16-normcmp.c: Include it.
30643         (test_nonascii): New function, extracted from main. Add some more
30644         tests.
30645         (main): Invoke test_ascii and test_nonascii.
30646         * modules/uninorm/u16-normcmp-tests (Files): Add
30647         tests/uninorm/test-u16-normcmp.h.
30648         (Depends-on): Remove uninorm/u16-normcmp.
30649
30650         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
30651         tests/uninorm/test-u8-normcmp.c.
30652         * tests/uninorm/test-u8-normcmp.c: Include it.
30653         (test_nonascii): New function, extracted from main. Add some more
30654         tests.
30655         (main): Invoke test_ascii and test_nonascii.
30656         * modules/uninorm/u8-normcmp-tests (Files): Add
30657         tests/uninorm/test-u8-normcmp.h.
30658         (Depends-on): Remove uninorm/u8-normcmp.
30659
30660 2009-03-07  Bruno Haible  <bruno@clisp.org>
30661
30662         New module 'uninorm/u32-normcoll'.
30663         * lib/uninorm/u32-normcoll.c: New file.
30664         * modules/uninorm/u32-normcoll: New file.
30665
30666         New module 'uninorm/u16-normcoll'.
30667         * lib/uninorm/u16-normcoll.c: New file.
30668         * modules/uninorm/u16-normcoll: New file.
30669
30670         New module 'uninorm/u8-normcoll'.
30671         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
30672         declarations.
30673         * lib/uninorm/u8-normcoll.c: New file.
30674         * lib/uninorm/u-normcoll.h: New file.
30675         * modules/uninorm/u8-normcoll: New file.
30676
30677         New module 'uninorm/u32-normxfrm'.
30678         * lib/uninorm/u32-normxfrm.c: New file.
30679         * modules/uninorm/u32-normxfrm: New file.
30680
30681         New module 'uninorm/u16-normxfrm'.
30682         * lib/uninorm/u16-normxfrm.c: New file.
30683         * modules/uninorm/u16-normxfrm: New file.
30684
30685         New module 'uninorm/u8-normxfrm'.
30686         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
30687         declarations.
30688         * lib/uninorm/u8-normxfrm.c: New file.
30689         * lib/uninorm/u-normxfrm.h: New file.
30690         * modules/uninorm/u8-normxfrm: New file.
30691
30692 2009-03-07  Bruno Haible  <bruno@clisp.org>
30693
30694         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
30695         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
30696         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
30697
30698 2009-03-07  Bruno Haible  <bruno@clisp.org>
30699
30700         New module 'memxfrm'.
30701         * lib/memxfrm.h: New file.
30702         * lib/memxfrm.c: New file.
30703         * modules/memxfrm: New file.
30704
30705 2009-03-07  Bruno Haible  <bruno@clisp.org>
30706
30707         New module 'memcmp2'.
30708         * lib/memcmp2.h: New file.
30709         * lib/memcmp2.c: New file.
30710         * modules/memcmp2: New file.
30711
30712 2009-03-07  Bruno Haible  <bruno@clisp.org>
30713
30714         Tests for module 'uninorm/decomposing-form'.
30715         * modules/uninorm/decomposing-form-tests: New file.
30716         * tests/uninorm/test-decomposing-form.c: New file.
30717
30718         New module 'uninorm/decomposing-form'.
30719         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
30720         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
30721         Add 'decomposing_variant' field.
30722         * lib/uninorm/decomposing-form.c: New file.
30723         * lib/uninorm/nfc.c (uninorm_nfc): Update.
30724         * lib/uninorm/nfd.c (uninorm_nfd): Update.
30725         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
30726         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
30727         * modules/uninorm/decomposing-form: New file.
30728         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
30729         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
30730
30731 2009-03-07  Bruno Haible  <bruno@clisp.org>
30732
30733         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
30734         strings.
30735
30736 2009-03-06  Bruno Haible  <bruno@clisp.org>
30737
30738         Tests for module 'uninorm/u32-normcmp'.
30739         * tests/uninorm/test-u32-normcmp.c: New file.
30740         * modules/uninorm/u32-normcmp-tests: New file.
30741
30742         Tests for module 'uninorm/u16-normcmp'.
30743         * tests/uninorm/test-u16-normcmp.c: New file.
30744         * modules/uninorm/u16-normcmp-tests: New file.
30745
30746         Tests for module 'uninorm/u8-normcmp'.
30747         * tests/uninorm/test-u8-normcmp.c: New file.
30748         * modules/uninorm/u8-normcmp-tests: New file.
30749
30750         New module 'uninorm/u32-normcmp'.
30751         * lib/uninorm/u32-normcmp.c: New file.
30752         * modules/uninorm/u32-normcmp: New file.
30753
30754         New module 'uninorm/u16-normcmp'.
30755         * lib/uninorm/u16-normcmp.c: New file.
30756         * modules/uninorm/u16-normcmp: New file.
30757
30758         New module 'uninorm/u8-normcmp'.
30759         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
30760         declarations.
30761         * lib/uninorm/u8-normcmp.c: New file.
30762         * lib/uninorm/u-normcmp.h: New file.
30763         * modules/uninorm/u8-normcmp: New file.
30764
30765 2009-03-06  Bruno Haible  <bruno@clisp.org>
30766
30767         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
30768         Reported by Eric Blake.
30769
30770 2009-03-06  Eric Blake  <ebb9@byu.net>
30771             Bruno Haible  <bruno@clisp.org>
30772
30773         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
30774         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
30775         condition.
30776         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30777         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
30778         condition.
30779         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30780
30781 2009-03-06  Eric Blake  <ebb9@byu.net>
30782
30783         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
30784         to avoid compiler warnings.
30785         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
30786
30787 2009-03-05  Bruno Haible  <bruno@clisp.org>
30788
30789         * tests/test-ftell.c (main): Disable test beyond end of file on
30790         FreeMiNT.
30791         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30792
30793 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
30794
30795         * lib/filevercmp.c: Move hidden files up in ordering.
30796         * tests/test-filevercmp.c: Add tests for hidden files.
30797
30798 2009-03-04  Bruno Haible  <bruno@clisp.org>
30799
30800         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
30801         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
30802         AM_CFLAGS.
30803         Reported by Simon Josefsson.
30804
30805 2009-03-03  Bruno Haible  <bruno@clisp.org>
30806
30807         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
30808         Reported by Simon Josefsson.
30809
30810         * doc/ld-version-script.texi: Update node reference.
30811
30812 2009-03-03  Bruno Haible  <bruno@clisp.org>
30813
30814         * modules/visibility (License): Change to 'unlimited'.
30815         Suggested by Simon Josefsson.
30816
30817 2009-03-03  Jim Meyering  <meyering@redhat.com>
30818
30819         unlinkdir: cannot_unlink_dir may modify process state
30820         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
30821         it's neither thread-safe nor appropriate for use in a library.
30822
30823 2009-03-03  Eric Blake  <ebb9@byu.net>
30824
30825         test-closein: silence test under Darwin
30826         * tests/test-closein.sh: Ignore stderr from cat, since we don't
30827         care if it dies from EPIPE or EBADF.
30828
30829 2009-03-03  Bruno Haible  <bruno@clisp.org>
30830
30831         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
30832         earlier.
30833         * doc/visibility.texi: Fix @node and @section.
30834
30835 2009-03-03  Simon Josefsson  <simon@josefsson.org>
30836
30837         * doc/gnulib.texi: Link to sections for ld version script and
30838         visibility.
30839         * doc/visibility.texi: Add @node and @section.
30840         * modules/ld-version-script: New module.
30841         * m4/ld-version-script.m4: New file.
30842         * doc/ld-version-script.texi: New file.
30843
30844 2009-03-02  David Lutterkort  <lutter@redhat.com>
30845
30846         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
30847         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30848
30849 2009-03-02  Bruno Haible  <bruno@clisp.org>
30850
30851         * doc/visibility.texi: Mention libtool's -export-symbols option.
30852
30853 2009-03-02  Jim Meyering  <meyering@redhat.com>
30854
30855         announce-gen: new option: --no-print-checksums
30856         * build-aux/announce-gen (usage): Describe it.
30857         (print_checksums): Print a newline here, not in the [*] footnote.
30858         (main): Honor it.
30859
30860 2009-03-01  Bruno Haible  <bruno@clisp.org>
30861
30862         Use socklen_t in the native Windows replacements prototypes.
30863         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
30864         instead of 'int'.
30865         * lib/getsockopt.c (rpl_getsockopt): Likewise.
30866         * lib/setsockopt.c (rpl_setsockopt): Likewise.
30867         * modules/getsockopt (Depends-on): Add socklen.
30868         * modules/setsockopt (Depends-on): Add socklen.
30869
30870 2009-03-01  Bruno Haible  <bruno@clisp.org>
30871
30872         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
30873         least 4.2.
30874
30875 2009-03-01  Eric Blake  <ebb9@byu.net>
30876             Bruno Haible  <bruno@clisp.org>
30877
30878         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
30879         error messages.
30880         * lib/wait-process.c (wait_subprocess): Omit error message about
30881         deadly signal sent to the child of termsigp != NULL.
30882
30883 2009-03-01  Eric Blake  <ebb9@byu.net>
30884
30885         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
30886
30887 2009-03-01  Bruno Haible  <bruno@clisp.org>
30888
30889         Avoid a gcc warning.
30890         * tests/test-sched.c (b): Make global.
30891         Reported by Eric Blake.
30892
30893 2009-01-19  Martin Lambers  <marlam@marlam.de>
30894
30895         Provide POSIX semantics for socket timeout options on W32.
30896         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
30897         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
30898         * modules/setsockopt: Depend on sys_time module for struct timeval.
30899         * modules/getsockopt: Depend on sys_time module for struct timeval.
30900
30901 2009-03-01  Simon Josefsson  <simon@josefsson.org>
30902
30903         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
30904         __USE_GNU, for consistency with netdb.in.h.
30905         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30906
30907 2009-03-01  Bruno Haible  <bruno@clisp.org>
30908
30909         More support for FreeMiNT.
30910         * lib/fseeko.c (rpl_fseeko): Complete last commit.
30911         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30912
30913 2009-03-01  Bruno Haible  <bruno@clisp.org>
30914
30915         More support for FreeMiNT.
30916         * lib/fpurge.c (fpurge): Correct last commit.
30917         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30918
30919 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30920
30921         Fix unportable awk script in vc-list-files.
30922         * build-aux/vc-list-files: In the replacement awk script, use
30923         substr with a second argument of 1, not zero.
30924         Report by Simon Josefsson.
30925
30926 2009-02-28  Bruno Haible  <bruno@clisp.org>
30927
30928         More support for FreeMiNT.
30929         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
30930         to FreeMiNT today.
30931         * lib/fwriting.c (fwriting): Likewise.
30932         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
30933
30934 2009-02-28  Bruno Haible  <bruno@clisp.org>
30935
30936         * tests/test-freadseek.c (main): Disable test beyond end of file on
30937         FreeMiNT.
30938         * tests/test-ftello.c (main): Likewise.
30939         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30940
30941 2009-02-28  Bruno Haible  <bruno@clisp.org>
30942
30943         Add tentative support for FreeMiNT.
30944         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
30945         * lib/fpurge.c (fpurge): Likewise.
30946         * lib/freadable.c (freadable): Likewise.
30947         * lib/freading.c (freading): Likewise.
30948         * lib/freadptr.c (freadptr): Likewise.
30949         * lib/freadseek.c (freadptrinc): Likewise.
30950         * lib/fseeko.c (rpl_fseeko): Likewise.
30951         * lib/fseterr.c (fseterr): Likewise.
30952         * lib/fwritable.c (fwritable): Likewise.
30953         * lib/fwriting.c (fwriting): Likewise.
30954         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
30955         Hourihane.
30956         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30957
30958 2009-02-28  Bruno Haible  <bruno@clisp.org>
30959
30960         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
30961         SIGCHLD.
30962         Reported by Jim Meyering.
30963
30964 2009-02-28  Bruno Haible  <bruno@clisp.org>
30965
30966         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
30967         Mention the results of these tests on various platforms.
30968         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
30969         order.
30970         * doc/posix-functions/printf.texi: Likewise.
30971         * doc/posix-functions/snprintf.texi: Likewise.
30972         * doc/posix-functions/sprintf.texi: Likewise.
30973         * doc/posix-functions/vfprintf.texi: Likewise.
30974         * doc/posix-functions/vprintf.texi: Likewise.
30975         * doc/posix-functions/vsnprintf.texi: Likewise.
30976         * doc/posix-functions/vsprintf.texi: Likewise.
30977         * doc/glibc-functions/obstack_printf.texi: Likewise.
30978         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
30979
30980 2009-02-28  Bruno Haible  <bruno@clisp.org>
30981
30982         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
30983         Reported by Loïc Minier <lool@dooz.org>.
30984
30985 2009-02-27  Bruno Haible  <bruno@clisp.org>
30986
30987         * gnulib-tool (func_import): Make the sed expression used to create the
30988         sed script for updating the .gitignore file POSIX compliant.
30989         Reported by Eric Blake.
30990
30991 2009-02-27  Bruno Haible  <bruno@clisp.org>
30992
30993         * gnulib-tool (sed): Don't alias as "sed --posix".
30994         Reported by Eric Blake.
30995
30996 2009-02-27  Bruno Haible  <bruno@clisp.org>
30997
30998         Avoid test link errors.
30999         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
31000         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
31001         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
31002         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
31003         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31004
31005 2009-02-27  Bruno Haible  <bruno@clisp.org>
31006
31007         Avoid spurious "(cached)" in configure output.
31008         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
31009         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
31010         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31011         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31012         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31013         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31014         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31015         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31016         Reported by Eric Blake.
31017
31018 2009-02-27  Eric Blake  <ebb9@byu.net>
31019
31020         printf: fix regression in previous patch
31021         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
31022
31023 2009-02-27  Bruno Haible  <bruno@clisp.org>
31024
31025         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
31026         value.
31027         * lib/stdint.in.h: Likewise.
31028         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
31029
31030 2009-02-27  Eric Blake  <ebb9@byu.net>
31031
31032         doc: mention more functions added in cygwin 1.7.0
31033         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
31034         addition.
31035         * doc/posix-functions/open_wmemstream.texi: Likewise.
31036         * doc/posix-functions/wcsnlen.texi: Likewise.
31037         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31038         * doc/posix-functions/wcstod.texi: Likewise.
31039         * doc/posix-functions/wcstof.texi: Likewise.
31040         * doc/posix-functions/wcstoimax.texi: Likewise.
31041         * doc/posix-functions/wcstok.texi: Likewise.
31042         * doc/posix-functions/wcstoumax.texi: Likewise.
31043
31044         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
31045         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
31046         * doc/posix-functions/fprintf.texi: Update.
31047         * doc/posix-functions/printf.texi: Update.
31048         * doc/posix-functions/snprintf.texi: Update.
31049         * doc/posix-functions/sprintf.texi: Update.
31050         * doc/posix-functions/vfprintf.texi: Update.
31051         * doc/posix-functions/vprintf.texi: Update.
31052         * doc/posix-functions/vsnprintf.texi: Update.
31053         * doc/posix-functions/vsprintf.texi: Update.
31054         * doc/glibc-functions/obstack_printf.texi: Update.
31055         * doc/glibc-functions/obstack_vprintf.texi: Update.
31056
31057 2009-02-26  Eric Blake  <ebb9@byu.net>
31058
31059         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
31060         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
31061         compilation bug by using runtime conversion.
31062         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31063         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
31064         * modules/ceill-tests (Files): Use nan.h.
31065         * modules/floorl-tests (Files): Likewise.
31066         * modules/frexpl-tests (Files): Likewise.
31067         * modules/isnanl-tests (Files): Likewise.
31068         * modules/ldexpl-tests (Files): Likewise.
31069         * modules/roundl-tests (Files): Likewise.
31070         * modules/truncl-tests (Files): Likewise.
31071         * tests/test-ceill.c (main): Use a working NaN.
31072         * tests/test-floorl.c (main): Likewise.
31073         * tests/test-frexpl.c (main): Likewise.
31074         * tests/test-isnan.c (test_long_double): Likewise.
31075         * tests/test-isnanl.h (main): Likewise.
31076         * tests/test-ldexpl.h (main): Likewise.
31077         * tests/test-roundl.h (main): Likewise.
31078         * tests/test-truncl.h (main): Likewise.
31079         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
31080
31081 2009-02-26  Eric Blake  <ebb9@byu.net>
31082             Bruno Haible  <bruno@clisp.org>
31083
31084         Work around a *printf bug with %ls on Solaris.
31085         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
31086         precision is specified, sprintf stops converting the wide string
31087         argument when the number of bytes that have been produced by this
31088         conversion equals or exceeds the precision.
31089         * doc/posix-functions/fprintf.texi: Update.
31090         * doc/posix-functions/printf.texi: Update.
31091         * doc/posix-functions/snprintf.texi: Update.
31092         * doc/posix-functions/sprintf.texi: Update.
31093         * doc/posix-functions/vfprintf.texi: Update.
31094         * doc/posix-functions/vprintf.texi: Update.
31095         * doc/posix-functions/vsnprintf.texi: Update.
31096         * doc/posix-functions/vsprintf.texi: Update.
31097         * doc/glibc-functions/obstack_printf.texi: Update.
31098         * doc/glibc-functions/obstack_vprintf.texi: Update.
31099
31100 2009-02-26  Eric Blake  <ebb9@byu.net>
31101
31102         stdlib: favor compiler check of random.h
31103         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
31104         to avoid an ObjC random.h installed by Swarm.
31105
31106 2009-02-26  Bruno Haible  <bruno@clisp.org>
31107
31108         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
31109         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
31110         Reported by Gary V. Vaughan <gary@gnu.org>.
31111
31112 2009-02-26  Bruno Haible  <bruno@clisp.org>
31113
31114         Fix *printf behaviour regarding the %ls directive.
31115         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
31116         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
31117         NEED_PRINTF_DIRECTIVE_LS.
31118         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
31119         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31120         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31121         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
31122         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
31123         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
31124         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31125         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31126         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31127         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31128         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31129         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
31130         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31131         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31132         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31133         * doc/posix-functions/fprintf.texi: Update.
31134         * doc/posix-functions/printf.texi: Update.
31135         * doc/posix-functions/snprintf.texi: Update.
31136         * doc/posix-functions/sprintf.texi: Update.
31137         * doc/posix-functions/vfprintf.texi: Update.
31138         * doc/posix-functions/vprintf.texi: Update.
31139         * doc/posix-functions/vsnprintf.texi: Update.
31140         * doc/posix-functions/vsprintf.texi: Update.
31141         * doc/glibc-functions/obstack_printf.texi: Update.
31142         * doc/glibc-functions/obstack_vprintf.texi: Update.
31143         Reported by Eric Blake.
31144
31145 2009-02-25  Bruno Haible  <bruno@clisp.org>
31146
31147         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
31148         with known value.
31149         Reported by Gary V. Vaughan <gary@gnu.org>.
31150
31151 2009-02-25  Bruno Haible  <bruno@clisp.org>
31152
31153         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
31154         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
31155         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
31156         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
31157         Reported by Gary V. Vaughan <gary@gnu.org>.
31158
31159 2009-02-25  Bruno Haible  <bruno@clisp.org>
31160
31161         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
31162         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
31163         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
31164         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
31165         Reported by Gary V. Vaughan <gary@gnu.org>.
31166
31167 2009-02-25  Eric Blake  <ebb9@byu.net>
31168
31169         tests: skip fseek/ftell tests if ungetc is broken
31170         * m4/ungetc.m4: New file.
31171         * modules/fseek-tests: Split test, so ungetc dependency is
31172         separate from rest of test.
31173         * modules/fseeko-tests: Likewise.
31174         * modules/ftell-tests: Likewise.
31175         * modules/ftello-tests: Likewise.
31176         * tests/test-fseek.c (main): Isolate ungetc dependency.
31177         * tests/test-fseeko.c (main): Likewise.
31178         * tests/test-ftell.c (main): Likewise.
31179         * tests/test-ftello.c (main): Likewise.
31180         * tests/test-fseek2.sh: New file.
31181         * tests/test-fseeko2.sh: Likewise.
31182         * tests/test-ftell2.sh: Likewise.
31183         * tests/test-ftello2.sh: Likewise.
31184
31185 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
31186
31187         test-getaddrinfo: fix usage of skip return code 77
31188         * tests/test-gettaddrinfo.c: Return skip code 77 only
31189         for first occurance of skip (4x77 is not 77)
31190
31191 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
31192
31193         strtod: avoid C99 decl-after-statement
31194         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
31195
31196 2009-02-24  Eric Blake  <ebb9@byu.net>
31197
31198         strtod: detect HP-UX 11.31 bug
31199         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
31200         Reported by Gary V. Vaughan.
31201
31202 2009-02-23  Bruno Haible  <bruno@clisp.org>
31203
31204         Fix invalid read past end of memory block.
31205         * lib/vasnprintf.c (DCHAR_SET): Define.
31206         (local_wcslen): Define only when needed.
31207         (local_strnlen, local_wcsnlen): New functions.
31208         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
31209         directives that involve a conversion ourselves.
31210         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
31211         wcsnlen, mbrtowc, wcrtomb.
31212         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
31213         * tests/test-vasprintf-posix.c (test_function): Likewise.
31214         * tests/test-snprintf-posix.h (test_function): Likewise.
31215         * tests/test-sprintf-posix.h (test_function): Likewise.
31216         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31217
31218 2009-02-22  Bruno Haible  <bruno@clisp.org>
31219
31220         Implement new clarified decomposition of Hangul syllables.
31221         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
31222         of type LTV, return only a pairwise decomposition.
31223         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
31224         Likewise.
31225         * tests/uninorm/test-decomposition.c (main): Updated expected result.
31226         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
31227         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
31228
31229 2009-02-22  Bruno Haible  <bruno@clisp.org>
31230
31231         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
31232         zero-length results and shrink excess allocated memory.
31233         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
31234         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
31235         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
31236         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
31237         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
31238         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
31239         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
31240         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
31241         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
31242         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
31243         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
31244         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
31245
31246 2009-02-21  Bruno Haible  <bruno@clisp.org>
31247
31248         * doc/gnulib.texi: Include safe-alloc.texi earlier.
31249         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
31250         spaces after a period. Put a space between a macro name and its
31251         argument list. Trivial rewordings.
31252         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
31253         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
31254         (main): Return 0 explicitly.
31255
31256 2009-02-21  Bruno Haible  <bruno@clisp.org>
31257
31258         Tests for module 'uninorm/filter'.
31259         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
31260         * modules/uninorm/filter-tests: New file.
31261
31262         New module 'uninorm/filter'.
31263         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
31264         uninorm_filter_flush, uninorm_filter_free): New declarations.
31265         * lib/uninorm/uninorm-filter.c: New file.
31266         * modules/uninorm/filter: New file.
31267
31268 2009-02-21  Bruno Haible  <bruno@clisp.org>
31269
31270         Tests for module 'uninorm/nfkc'.
31271         * tests/uninorm/test-nfkc.c: New file.
31272         * tests/uninorm/test-u8-nfkc.c: New file.
31273         * tests/uninorm/test-u16-nfkc.c: New file.
31274         * tests/uninorm/test-u32-nfkc.c: New file.
31275         * tests/uninorm/test-u32-nfkc-big.sh: New file.
31276         * tests/uninorm/test-u32-nfkc-big.c: New file.
31277         * modules/uninorm/nfkc-tests: New file.
31278
31279         New module 'uninorm/nfkc'.
31280         * lib/uninorm/nfkc.c: New file.
31281         * modules/uninorm/nfkc: New file.
31282
31283         Tests for module 'uninorm/nfkd'.
31284         * tests/uninorm/test-nfkd.c: New file.
31285         * tests/uninorm/test-u8-nfkd.c: New file.
31286         * tests/uninorm/test-u16-nfkd.c: New file.
31287         * tests/uninorm/test-u32-nfkd.c: New file.
31288         * tests/uninorm/test-u32-nfkd-big.sh: New file.
31289         * tests/uninorm/test-u32-nfkd-big.c: New file.
31290         * modules/uninorm/nfkd-tests: New file.
31291
31292         New module 'uninorm/nfkd'.
31293         * lib/uninorm/nfkd.c: New file.
31294         * modules/uninorm/nfkd: New file.
31295
31296         Tests for module 'uninorm/nfc'.
31297         * tests/uninorm/test-nfc.c: New file.
31298         * tests/uninorm/test-u8-nfc.c: New file.
31299         * tests/uninorm/test-u16-nfc.c: New file.
31300         * tests/uninorm/test-u32-nfc.c: New file.
31301         * tests/uninorm/test-u32-nfc-big.sh: New file.
31302         * tests/uninorm/test-u32-nfc-big.c: New file.
31303         * modules/uninorm/nfc-tests: New file.
31304
31305         New module 'uninorm/nfc'.
31306         * lib/uninorm/nfc.c: New file.
31307         * modules/uninorm/nfc: New file.
31308
31309         Tests for module 'uninorm/nfd'.
31310         * tests/uninorm/test-nfd.c: New file.
31311         * tests/uninorm/test-u8-nfd.c: New file.
31312         * tests/uninorm/test-u16-nfd.c: New file.
31313         * tests/uninorm/test-u32-nfd.c: New file.
31314         * tests/uninorm/test-u32-nfd-big.sh: New file.
31315         * tests/uninorm/test-u32-nfd-big.c: New file.
31316         * tests/uninorm/test-u32-normalize-big.h: New file.
31317         * tests/uninorm/test-u32-normalize-big.c: New file.
31318         * tests/uninorm/NormalizationTest.txt: New file, created from
31319         Unicode 5.1.0 NormalizationTest.txt.
31320         * modules/uninorm/nfd-tests: New file.
31321
31322         New module 'uninorm/nfd'.
31323         * lib/uninorm/nfd.c: New file.
31324         * modules/uninorm/nfd: New file.
31325
31326         New module 'uninorm/u32-normalize'.
31327         * lib/uninorm/u32-normalize.c: New file.
31328         * modules/uninorm/u32-normalize: New file.
31329
31330         New module 'uninorm/u16-normalize'.
31331         * lib/uninorm/u16-normalize.c: New file.
31332         * modules/uninorm/u16-normalize: New file.
31333
31334         New module 'uninorm/u8-normalize'.
31335         * lib/uninorm/u8-normalize.c: New file.
31336         * lib/uninorm/normalize-internal.h: New file.
31337         * lib/uninorm/u-normalize-internal.h: New file.
31338         * modules/uninorm/u8-normalize: New file.
31339
31340         New module 'uninorm/decompose-internal'.
31341         * lib/uninorm/decompose-internal.c: New file.
31342         * modules/uninorm/decompose-internal: New file.
31343
31344         Tests for module 'uninorm/composition'.
31345         * tests/uninorm/test-composition.c: New file.
31346         * modules/uninorm/composition-tests: New file.
31347
31348         New module 'uninorm/composition'.
31349         * lib/uninorm/composition.c: New file.
31350         * lib/uninorm/composition-table.gperf: New file, generated by
31351         gen-uni-tables.
31352         * modules/uninorm/composition: New file.
31353
31354         Tests for module 'uninorm/compat-decomposition'.
31355         * tests/uninorm/test-compat-decomposition.c: New file.
31356         * modules/uninorm/compat-decomposition-tests: New file.
31357
31358         New module 'uninorm/compat-decomposition'.
31359         * lib/uninorm/decompose-internal.h: New file.
31360         * lib/uninorm/compat-decomposition.c: New file.
31361         * modules/uninorm/compat-decomposition: New file.
31362
31363         Tests for module 'uninorm/canonical-decomposition'.
31364         * tests/uninorm/test-canonical-decomposition.c: New file.
31365         * modules/uninorm/canonical-decomposition-tests: New file.
31366
31367         New module 'uninorm/canonical-decomposition'.
31368         * lib/uninorm/canonical-decomposition.c: New file.
31369         * modules/uninorm/canonical-decomposition: New file.
31370
31371         Tests for module 'uninorm/decomposition'.
31372         * tests/uninorm/test-decomposition.c: New file.
31373         * modules/uninorm/decomposition-tests: New file.
31374
31375         New module 'uninorm/decomposition'.
31376         * lib/uninorm/decomposition.c: New file.
31377         * modules/uninorm/decomposition: New file.
31378
31379         New module 'uninorm/decomposition-table'.
31380         * lib/uninorm/decomposition-table.h: New file.
31381         * lib/uninorm/decomposition-table.c: New file.
31382         * lib/uninorm/decomposition-table1.h: New file, generated by
31383         gen-uni-tables.
31384         * lib/uninorm/decomposition-table2.h: New file, generated by
31385         gen-uni-tables.
31386         * modules/uninorm/decomposition-table: New file.
31387
31388         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
31389         (UC_DECOMP_*): New enumeration items.
31390         (get_decomposition): New function.
31391         (struct decomp_table): New type.
31392         (output_decomposition, output_decomposition_tables): New functions.
31393         (unicode_composition_exclusions): New variable.
31394         (fill_composition_exclusions, debug_output_composition_tables): New
31395         functions.
31396         (main): Accept one more argument. Invoke fill_composition_exclusions.
31397         Output decomposition and composition tables.
31398
31399         New module 'uninorm/base'.
31400         * lib/uninorm.h: New file.
31401         * lib/unictype.h: Update comment.
31402         * modules/uninorm/base: New file.
31403
31404 2009-02-21  David Lutterkort  <lutter@redhat.com>
31405
31406         Tests for module 'safe-alloc'.
31407         * tests/test-safe-alloc.c: New file.
31408         * modules/safe-alloc-tests: New file.
31409
31410         New module 'safe-alloc'.
31411         * lib/safe-alloc.h: New file.
31412         * lib/safe-alloc.c: New file.
31413         * m4/safe-alloc.m4: New file.
31414         * modules/safe-alloc: New file.
31415         * doc/safe-alloc.texi: New file.
31416         * doc/gnulib.texi: Include it.
31417         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31418         safe-alloc.
31419
31420 2009-02-18  Bruno Haible  <bruno@clisp.org>
31421
31422         Fix link error on non-glibc systems.
31423         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
31424         variable.
31425         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31426
31427 2009-02-18  Jim Meyering  <meyering@redhat.com>
31428
31429         fts: avoid used-uninitialized error due to recent change
31430         * lib/fts.c (fts_read): Guard uses of the new member,
31431         parent->fts_n_dirs_remaining, since it's not relevant for
31432         the parent of a directory specified on the command-line.
31433
31434 2009-02-17  James Youngman  <jay@gnu.org>
31435             Bruno Haible  <bruno@clisp.org>
31436
31437         * m4/include_next.m4: Reformulate comment.
31438
31439 2009-02-16  Jim Meyering  <meyering@redhat.com>
31440
31441         fts: add #if guards so that the fts_lgpl module still builds
31442         * lib/fts.c: Guard just-added hash-table-using parts with
31443         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
31444         Reported by Simon Josefsson.
31445
31446 2009-02-15  Bruno Haible  <bruno@clisp.org>
31447
31448         * modules/array-mergesort-tests: New file.
31449         * tests/test-array-mergesort.c: New file.
31450
31451         New module 'array-mergesort'.
31452         * modules/array-mergesort: New file.
31453         * lib/array-mergesort.h: New file.
31454
31455 2009-02-15  Bruno Haible  <bruno@clisp.org>
31456
31457         Fix 2009-02-07 commit.
31458         * lib/gen-uni-tables.c (output_predicate, output_category,
31459         output_combclass, output_bidi_category, output_decimal_digit,
31460         output_digit, output_numeric, output_mirror, output_scripts,
31461         output_ident_category, output_simple_mapping): Fix format directives.
31462         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
31463
31464 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
31465
31466         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
31467         fixes are available from IBM.
31468
31469 2009-02-13  Jim Meyering  <meyering@redhat.com>
31470
31471         fts: arrange not to stat non-directories in more cases
31472         This makes GNU find (when it doesn't need to stat each file)
31473         *much* more efficient at traversing reiserfs file systems.
31474         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
31475         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
31476         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
31477         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
31478         (leaf_optimization_applies): New function.
31479         (LCO_hash, LCO_compare): New helper functions.
31480         (link_count_optimize_ok): New function.
31481         (fts_stat): Initialize new member (if dir).
31482         (fts_read): Decrement parent's fts_n_dirs_remaining count if
31483         we've just stat'ed a directory.  Skip the stat call when possible.
31484         ---
31485         Note this AFS-related exchange:
31486         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
31487         and note find's pioctl call in find/fstype.c.
31488         But that is necessary only if you want to enable the
31489         optimization for AFS, and for now, I don't.
31490
31491         fts: move a function definition "up" (no semantic change)
31492         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
31493         "up" to precede upcoming use of a related function.
31494
31495 2009-02-11  Jim Meyering  <meyering@redhat.com>
31496
31497         fts: correct internal computation of nlinks (optimization-related)
31498         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
31499         whether the current entry is a directory, so don't test it.
31500
31501 2009-02-10  Bruno Haible  <bruno@clisp.org>
31502
31503         Tests for module 'uniwbrk/ulc-wordbreaks'.
31504         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
31505         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
31506         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
31507
31508         Tests for module 'uniwbrk/u32-wordbreaks'.
31509         * modules/uniwbrk/u32-wordbreaks-tests: New file.
31510         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
31511
31512         Tests for module 'uniwbrk/u16-wordbreaks'.
31513         * modules/uniwbrk/u16-wordbreaks-tests: New file.
31514         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
31515
31516         Tests for module 'uniwbrk/u8-wordbreaks'.
31517         * modules/uniwbrk/u8-wordbreaks-tests: New file.
31518         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
31519
31520 2009-02-10  Bruno Haible  <bruno@clisp.org>
31521
31522         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
31523         property.
31524         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
31525         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
31526         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
31527
31528 2009-02-10  Simon Josefsson  <simon@josefsson.org>
31529
31530         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
31531         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
31532
31533 2009-02-10  Bruno Haible  <bruno@clisp.org>
31534
31535         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
31536         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
31537         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
31538         * lib/unilbrk/u8-possible-linebreaks.c: Update.
31539         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
31540         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
31541
31542 2009-02-09  Simon Josefsson  <simon@josefsson.org>
31543
31544         * lib/sockets.h (gl_fd_to_handle): New function.
31545
31546         * tests/test-sockets.c: Call gl_fd_to_handle.
31547
31548 2009-02-09  Bruno Haible  <bruno@clisp.org>
31549
31550         * doc/havelib.texi: Document the conventions on bi-arch systems.
31551
31552 2009-02-08  Bruno Haible  <bruno@clisp.org>
31553
31554         Document the AC_LIB_LINKFLAGS macro.
31555         * doc/havelib.texi: New file, mostly written on 2005-05-24.
31556         * doc/gnulib.texi: Include it.
31557
31558 2009-02-08  Bruno Haible  <bruno@clisp.org>
31559
31560         Fix wrong order of sections, compared to TOC.
31561         * doc/gnulib.texi: Include relocatable-maint.texi after the
31562         "Regular expressions" node, not before.
31563
31564 2009-02-08  Bruno Haible  <bruno@clisp.org>
31565
31566         Tests for module 'unicase/totitle'.
31567         * modules/unicase/totitle-tests: New file.
31568
31569         Tests for module 'unicase/tolower'.
31570         * modules/unicase/tolower-tests: New file.
31571
31572         Tests for module 'unicase/toupper'.
31573         * modules/unicase/toupper-tests: New file.
31574         * tests/unicase/test-mapping-part1.h: New file.
31575         * tests/unicase/test-mapping-part2.h: New file.
31576
31577         New module 'unicase/totitle'.
31578         * modules/unicase/totitle: New file.
31579         * lib/unicase/totitle.c: New file.
31580
31581         New module 'unicase/tolower'.
31582         * modules/unicase/tolower: New file.
31583         * lib/unicase/tolower.c: New file.
31584
31585         New module 'unicase/toupper'.
31586         * modules/unicase/toupper: New file.
31587         * lib/unicase/toupper.c: New file.
31588         * lib/unicase/simple-mapping.h: New file.
31589
31590         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
31591         (mapping_table): New structure.
31592         (output_simple_mapping): New function.
31593         (main): Invoke output_simple_mapping_test and output_simple_mapping.
31594         * modules/gen-uni-tables (Description): Update.
31595         * lib/unicase/toupper.h: New file, automatically generated by
31596         gen-uni-tables.
31597         * lib/unicase/tolower.h: New file, automatically generated by
31598         gen-uni-tables.
31599         * lib/unicase/totitle.h: New file, automatically generated by
31600         gen-uni-tables.
31601         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
31602         gen-uni-tables.
31603         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
31604         gen-uni-tables.
31605         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
31606         gen-uni-tables.
31607
31608         New module 'unicase/base'.
31609         * modules/unicase/base: New file.
31610         * lib/unicase.h: New file.
31611
31612 2009-02-08  Bruno Haible  <bruno@clisp.org>
31613
31614         New module 'uniwbrk/ulc-wordbreaks'.
31615         * modules/uniwbrk/ulc-wordbreaks: New file.
31616         * lib/uniwbrk/ulc-wordbreaks.c: New file.
31617
31618         New module 'uniwbrk/u32-wordbreaks'.
31619         * modules/uniwbrk/u32-wordbreaks: New file.
31620         * lib/uniwbrk/u32-wordbreaks.c: New file.
31621
31622         New module 'uniwbrk/u16-wordbreaks'.
31623         * modules/uniwbrk/u16-wordbreaks: New file.
31624         * lib/uniwbrk/u16-wordbreaks.c: New file.
31625
31626         New module 'uniwbrk/u8-wordbreaks'.
31627         * modules/uniwbrk/u8-wordbreaks: New file.
31628         * lib/uniwbrk/u8-wordbreaks.c: New file.
31629         * lib/uniwbrk/u-wordbreaks.h: New file.
31630
31631         New module 'uniwbrk/table'.
31632         * modules/uniwbrk/table: New file.
31633         * lib/uniwbrk/wbrktable.h: New file.
31634         * lib/uniwbrk/wbrktable.c: New file.
31635
31636         New module 'uniwbrk/wordbreak-property'.
31637         * modules/uniwbrk/wordbreak-property: New file.
31638         * lib/uniwbrk/wordbreak-property.c: New file.
31639
31640         * lib/gen-uni-tables.c (WBP_*): New enum items.
31641         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
31642         (unicode_org_wbp): New variable.
31643         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
31644         New functions.
31645         (wbp_table): New structure.
31646         (output_wbp, output_wbrk_tables): New functions.
31647         (main): Accept additional argument. Invoke fill_org_wbp,
31648         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
31649         output_wbrk_tables.
31650         * modules/gen-uni-tables (Description): Update.
31651         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
31652         gen-uni-tables.
31653
31654         New module 'uniwbrk/base'.
31655         * modules/uniwbrk/base: New file.
31656         * lib/uniwbrk.h: New file.
31657
31658 2009-02-08  Bruno Haible  <bruno@clisp.org>
31659
31660         Update to Unicode 5.1.0.
31661         * lib/gen-uni-tables.c (is_property_alphabetic): Include
31662         U+2185..U+2188.
31663         (is_property_default_ignorable_code_point): Don't include characters
31664         of category Cc or Cs and not-a-characters.
31665         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
31666         U+0D79, U+109E, U+109F, U+A60C.
31667         * lib/unictype/bidi_of.h: Regenerated.
31668         * lib/unictype/blocks.h: Regenerated.
31669         * lib/unictype/categ_C.h: Regenerated.
31670         * lib/unictype/categ_Cf.h: Regenerated.
31671         * lib/unictype/categ_Cn.h: Regenerated.
31672         * lib/unictype/categ_L.h: Regenerated.
31673         * lib/unictype/categ_Ll.h: Regenerated.
31674         * lib/unictype/categ_Lm.h: Regenerated.
31675         * lib/unictype/categ_Lo.h: Regenerated.
31676         * lib/unictype/categ_Lu.h: Regenerated.
31677         * lib/unictype/categ_M.h: Regenerated.
31678         * lib/unictype/categ_Mc.h: Regenerated.
31679         * lib/unictype/categ_Me.h: Regenerated.
31680         * lib/unictype/categ_Mn.h: Regenerated.
31681         * lib/unictype/categ_N.h: Regenerated.
31682         * lib/unictype/categ_Nd.h: Regenerated.
31683         * lib/unictype/categ_Nl.h: Regenerated.
31684         * lib/unictype/categ_No.h: Regenerated.
31685         * lib/unictype/categ_P.h: Regenerated.
31686         * lib/unictype/categ_Pd.h: Regenerated.
31687         * lib/unictype/categ_Pe.h: Regenerated.
31688         * lib/unictype/categ_Pf.h: Regenerated.
31689         * lib/unictype/categ_Pi.h: Regenerated.
31690         * lib/unictype/categ_Po.h: Regenerated.
31691         * lib/unictype/categ_Ps.h: Regenerated.
31692         * lib/unictype/categ_S.h: Regenerated.
31693         * lib/unictype/categ_Sk.h: Regenerated.
31694         * lib/unictype/categ_Sm.h: Regenerated.
31695         * lib/unictype/categ_So.h: Regenerated.
31696         * lib/unictype/categ_of.h: Regenerated.
31697         * lib/unictype/combining.h: Regenerated.
31698         * lib/unictype/ctype_alnum.h: Regenerated.
31699         * lib/unictype/ctype_alpha.h: Regenerated.
31700         * lib/unictype/ctype_graph.h: Regenerated.
31701         * lib/unictype/ctype_lower.h: Regenerated.
31702         * lib/unictype/ctype_print.h: Regenerated.
31703         * lib/unictype/ctype_punct.h: Regenerated.
31704         * lib/unictype/ctype_upper.h: Regenerated.
31705         * lib/unictype/decdigit.h: Regenerated.
31706         * lib/unictype/digit.h: Regenerated.
31707         * lib/unictype/mirror.h: Regenerated.
31708         * lib/unictype/numeric.h: Regenerated.
31709         * lib/unictype/pr_alphabetic.h: Regenerated.
31710         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
31711         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
31712         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
31713         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
31714         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
31715         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
31716         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
31717         * lib/unictype/pr_combining.h: Regenerated.
31718         * lib/unictype/pr_dash.h: Regenerated.
31719         * lib/unictype/pr_decimal_digit.h: Regenerated.
31720         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
31721         * lib/unictype/pr_deprecated.h: Regenerated.
31722         * lib/unictype/pr_diacritic.h: Regenerated.
31723         * lib/unictype/pr_extender.h: Regenerated.
31724         * lib/unictype/pr_format_control.h: Regenerated.
31725         * lib/unictype/pr_grapheme_base.h: Regenerated.
31726         * lib/unictype/pr_grapheme_extend.h: Regenerated.
31727         * lib/unictype/pr_grapheme_link.h: Regenerated.
31728         * lib/unictype/pr_id_continue.h: Regenerated.
31729         * lib/unictype/pr_id_start.h: Regenerated.
31730         * lib/unictype/pr_ideographic.h: Regenerated.
31731         * lib/unictype/pr_ignorable_control.h: Regenerated.
31732         * lib/unictype/pr_lowercase.h: Regenerated.
31733         * lib/unictype/pr_math.h: Regenerated.
31734         * lib/unictype/pr_numeric.h: Regenerated.
31735         * lib/unictype/pr_other_alphabetic.h: Regenerated.
31736         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
31737         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
31738         * lib/unictype/pr_other_id_continue.h: Regenerated.
31739         * lib/unictype/pr_other_lowercase.h: Regenerated.
31740         * lib/unictype/pr_other_math.h: Regenerated.
31741         * lib/unictype/pr_punctuation.h: Regenerated.
31742         * lib/unictype/pr_sentence_terminal.h: Regenerated.
31743         * lib/unictype/pr_soft_dotted.h: Regenerated.
31744         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
31745         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
31746         * lib/unictype/pr_unified_ideograph.h: Regenerated.
31747         * lib/unictype/pr_uppercase.h: Regenerated.
31748         * lib/unictype/pr_xid_continue.h: Regenerated.
31749         * lib/unictype/pr_xid_start.h: Regenerated.
31750         * lib/unictype/pr_zero_width.h: Regenerated.
31751         * lib/unictype/scripts.h: Regenerated.
31752         * lib/unictype/scripts_byname.gperf: Regenerated.
31753         * lib/unictype/sy_java_ident.h: Regenerated.
31754         * lib/unilbrk/lbrkprop1.h: Regenerated.
31755         * lib/unilbrk/lbrkprop2.h: Regenerated.
31756         * tests/unictype/test-categ_C.c: Regenerated.
31757         * tests/unictype/test-categ_Cf.c: Regenerated.
31758         * tests/unictype/test-categ_Cn.c: Regenerated.
31759         * tests/unictype/test-categ_L.c: Regenerated.
31760         * tests/unictype/test-categ_Ll.c: Regenerated.
31761         * tests/unictype/test-categ_Lm.c: Regenerated.
31762         * tests/unictype/test-categ_Lo.c: Regenerated.
31763         * tests/unictype/test-categ_Lu.c: Regenerated.
31764         * tests/unictype/test-categ_M.c: Regenerated.
31765         * tests/unictype/test-categ_Mc.c: Regenerated.
31766         * tests/unictype/test-categ_Me.c: Regenerated.
31767         * tests/unictype/test-categ_Mn.c: Regenerated.
31768         * tests/unictype/test-categ_N.c: Regenerated.
31769         * tests/unictype/test-categ_Nd.c: Regenerated.
31770         * tests/unictype/test-categ_Nl.c: Regenerated.
31771         * tests/unictype/test-categ_No.c: Regenerated.
31772         * tests/unictype/test-categ_P.c: Regenerated.
31773         * tests/unictype/test-categ_Pd.c: Regenerated.
31774         * tests/unictype/test-categ_Pe.c: Regenerated.
31775         * tests/unictype/test-categ_Pf.c: Regenerated.
31776         * tests/unictype/test-categ_Pi.c: Regenerated.
31777         * tests/unictype/test-categ_Po.c: Regenerated.
31778         * tests/unictype/test-categ_Ps.c: Regenerated.
31779         * tests/unictype/test-categ_S.c: Regenerated.
31780         * tests/unictype/test-categ_Sk.c: Regenerated.
31781         * tests/unictype/test-categ_Sm.c: Regenerated.
31782         * tests/unictype/test-categ_So.c: Regenerated.
31783         * tests/unictype/test-ctype_alnum.c: Regenerated.
31784         * tests/unictype/test-ctype_alpha.c: Regenerated.
31785         * tests/unictype/test-ctype_graph.c: Regenerated.
31786         * tests/unictype/test-ctype_lower.c: Regenerated.
31787         * tests/unictype/test-ctype_print.c: Regenerated.
31788         * tests/unictype/test-ctype_punct.c: Regenerated.
31789         * tests/unictype/test-ctype_upper.c: Regenerated.
31790         * tests/unictype/test-decdigit.h: Regenerated.
31791         * tests/unictype/test-digit.h: Regenerated.
31792         * tests/unictype/test-numeric.h: Regenerated.
31793         * tests/unictype/test-pr_alphabetic.c: Regenerated.
31794         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
31795         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
31796         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
31797         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
31798         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
31799         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
31800         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
31801         * tests/unictype/test-pr_combining.c: Regenerated.
31802         * tests/unictype/test-pr_dash.c: Regenerated.
31803         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
31804         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
31805         * tests/unictype/test-pr_deprecated.c: Regenerated.
31806         * tests/unictype/test-pr_diacritic.c: Regenerated.
31807         * tests/unictype/test-pr_extender.c: Regenerated.
31808         * tests/unictype/test-pr_format_control.c: Regenerated.
31809         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
31810         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
31811         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
31812         * tests/unictype/test-pr_id_continue.c: Regenerated.
31813         * tests/unictype/test-pr_id_start.c: Regenerated.
31814         * tests/unictype/test-pr_ideographic.c: Regenerated.
31815         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
31816         * tests/unictype/test-pr_lowercase.c: Regenerated.
31817         * tests/unictype/test-pr_math.c: Regenerated.
31818         * tests/unictype/test-pr_numeric.c: Regenerated.
31819         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
31820         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
31821         Regenerated.
31822         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
31823         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
31824         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
31825         * tests/unictype/test-pr_other_math.c: Regenerated.
31826         * tests/unictype/test-pr_punctuation.c: Regenerated.
31827         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
31828         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
31829         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
31830         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
31831         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
31832         * tests/unictype/test-pr_uppercase.c: Regenerated.
31833         * tests/unictype/test-pr_xid_continue.c: Regenerated.
31834         * tests/unictype/test-pr_xid_start.c: Regenerated.
31835         * tests/unictype/test-pr_zero_width.c: Regenerated.
31836
31837         Update to Unicode 5.1.0.
31838         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
31839         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
31840         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
31841         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
31842         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
31843         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
31844         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
31845         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
31846         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
31847         (nonspacing_table_ind): Update.
31848         * tests/uniwidth/test-uc_width2.sh: Update expected result.
31849
31850         Update to Unicode 5.1.0.
31851         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
31852         code transform.
31853         * lib/uniname/uniname.c (unicode_character_name,
31854         unicode_name_character): Add the range 0x1Fxxx to the code transform.
31855         * lib/uniname/uninames.h: Regenerated.
31856         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
31857
31858 2009-02-07  Bruno Haible  <bruno@clisp.org>
31859
31860         Merge gen-ctype and gen-lbrk into a single program.
31861         * lib/gen-uni-tables.c: New file, incorporating
31862         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
31863         Add directory prefixes to the names of the generated files.
31864         * lib/unictype/gen-ctype.c: Remove file.
31865         * lib/unilbrk/gen-lbrk.c: Remove file.
31866         * modules/gen-uni-tables: New file.
31867         * modules/unictype/gen-ctype: Remove file.
31868         * modules/unilbrk/gen-lbrk: Remove file.
31869
31870 2009-02-07  Bruno Haible  <bruno@clisp.org>
31871
31872         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
31873
31874         New module 'unistr/u32-strcoll'.
31875         * modules/unistr/u32-strcoll: New file.
31876         * lib/unistr/u32-strcoll.c: New file.
31877
31878         New module 'unistr/u16-strcoll'.
31879         * modules/unistr/u16-strcoll: New file.
31880         * lib/unistr/u16-strcoll.c: New file.
31881
31882         New module 'unistr/u8-strcoll'.
31883         * modules/unistr/u8-strcoll: New file.
31884         * lib/unistr/u8-strcoll.c: New file.
31885         * lib/unistr/u-strcoll.h: New file.
31886
31887 2009-02-07  Bruno Haible  <bruno@clisp.org>
31888
31889         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
31890         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31891         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31892         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
31893         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
31894         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
31895
31896 2009-02-07  Bruno Haible  <bruno@clisp.org>
31897
31898         Make 64-bit clean.
31899         * lib/unictype/gen-ctype.c (output_predicate, output_category,
31900         output_combclass, output_bidi_category, output_decimal_digit,
31901         output_digit, output_numeric, output_mirror, output_scripts,
31902         output_ident_category): Use proper width specifier in format strings.
31903
31904 2009-02-07  Bruno Haible  <bruno@clisp.org>
31905
31906         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
31907         failure behaviour.
31908
31909 2009-02-07  Jim Meyering  <meyering@redhat.com>
31910
31911         regex: avoid compilation failure with upcoming gcc-4.4
31912         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
31913         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
31914         "... error: integer overflow in preprocessor expression".
31915
31916 2009-02-05  Ben Pfaff  <blp@gnu.org>
31917
31918         Fix link errors on Windows when close module is used.
31919         * modules/close: Add $(LIB_CLOSE) to Link section.
31920         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
31921         $(LIB_CLOSE) on Windows.
31922
31923 2009-02-05  Jim Meyering  <meyering@redhat.com>
31924
31925         still avoid unused-parameter warnings, but do it cleanly
31926         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
31927         (get_fs_usage): Cast to void instead.
31928         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
31929         (dev_from_mount_options, read_file_system_list): Cast to void.
31930         Prompted by Bruno Haible.
31931
31932 2009-02-04  Jim Meyering  <meyering@redhat.com>
31933
31934         fsusage.c: correct copyright year
31935         * lib/fsusage.c: Reflect year in which the change is pushed into
31936
31937         avoid misc. warnings
31938         * lib/fsusage.c (UNUSED_PARAM): Define.
31939         (get_fs_usage): Mark parameter "disk" as unused.
31940         * lib/getugroups.c (getgrent): Use "void" in prototype.
31941         * lib/mountlist.c: Mark unused parameters.
31942         (read_file_system_list): Declare a local with "const".
31943         * lib/nanosleep.c (getnow): Declare static.
31944         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
31945
31946         dirfd: set errno upon failure
31947         * lib/dirfd.c: Include <errno.h>.
31948         Set errno to ENOTSUP when returning -1.
31949         * modules/dirfd (Depends-on): Add errno.
31950         Suggested by John Kodis <kodis@comcast.net>.
31951
31952 2009-02-01  Bruno Haible  <bruno@clisp.org>
31953
31954         Don't assume sizeof (long) >= sizeof (void *).
31955         * lib/memcmp.c: Include stdint.h.
31956         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
31957         srcp2 to 'const byte *'.
31958         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
31959         types to uintptr_t.
31960         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
31961         * modules/memcmp (Depends-on): Add stdint.
31962         Reported by Ozkan Sezer <sezeroz@gmail.com>.
31963
31964 2009-01-30  Eric Blake  <ebb9@byu.net>
31965
31966         fix more require-before-expand issues
31967         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
31968         expand, AC_PROG_AWK.
31969         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
31970
31971 2009-01-28  Eric Blake  <ebb9@byu.net>
31972
31973         version-etc: use consistent URL formatting
31974         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
31975         Improve formatting.  Use fputs for string without %.
31976
31977 2009-01-28  Jim Meyering  <meyering@redhat.com>
31978
31979         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
31980         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
31981         "underquoted definition of NAME" from autoconf-2.59.
31982
31983 2009-01-28  Bruno Haible  <bruno@clisp.org>
31984
31985         * doc/gnulib.texi: Add "Obsolete modules" to index.
31986
31987 2009-01-28  Jim Meyering  <meyering@redhat.com>
31988
31989         useless-if-before-free: recognize more variants
31990         * build-aux/useless-if-before-free: Also recognize e.g.,
31991         if (NULL != p) free (p);
31992
31993 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
31994
31995         test-getaddrinfo: skip (don't fail) this test when there's no network
31996         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
31997         on the presumption that it means you lack network access.
31998
31999 2009-01-26  Jim Meyering  <meyering@redhat.com>
32000
32001         fflush: avoid warnings on modern systems
32002         * lib/fflush.c (rpl_fflush): Move declarations of locals,
32003         pos and result, into scopes where they're used.
32004
32005 2009-01-26  Eric Blake  <ebb9@byu.net>
32006
32007         Silence warning reintroduced by recent extensions patch.
32008         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
32009         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
32010         autoconf.
32011
32012         Backport improved autoconf semantics of AC_DEFUN_ONCE.
32013         * m4/00gnulib.m4: New file.
32014         * gnulib-tool (func_get_filelist): Always use it.
32015         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
32016         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
32017
32018 2009-01-25  Bruno Haible  <bruno@clisp.org>
32019
32020         Make test-quotearg work on MacOS X and AIX.
32021         * tests/test-quotearg.sh: New file.
32022         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
32023         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
32024         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
32025         include <libintl.h>.
32026         (fake_locale): Remove variable.
32027         (gettext, dgettext, dcgettext): Remove functions.
32028         (main): Instead of setting a fake locale, set a real locale. Call
32029         textdomain and bindtextdomain.
32030         * modules/quotearg-tests (Files): Add the new files.
32031         (Depends-on): Add gettext, setenv, unsetenv.
32032         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32033         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
32034         Augment TESTS_ENVIRONMENT.
32035
32036 2009-01-25  Bruno Haible  <bruno@clisp.org>
32037
32038         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
32039         fr_FR.ISO8859-1 locale on MacOS X.
32040         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
32041         ja_JP.eucJP locale on MacOS X.
32042         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
32043         zh_CN.GB18030 locale on MacOS X.
32044
32045 2009-01-25  Bruno Haible  <bruno@clisp.org>
32046
32047         Avoid link errors on MacOS X 10.3.
32048         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
32049         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32050
32051 2009-01-25  Bruno Haible  <bruno@clisp.org>
32052
32053         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32054         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
32055         * modules/pipe (Files): Remove m4/posix_spawn.m4.
32056         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32057         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
32058         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32059         posix_spawnattr_init, posix_spawnattr_setsigmask,
32060         posix_spawnattr_setflags, posix_spawnattr_destroy.
32061
32062         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32063         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
32064         * modules/execute (Files): Remove m4/posix_spawn.m4.
32065         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32066         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32067         posix_spawnattr_init, posix_spawnattr_setsigmask,
32068         posix_spawnattr_setflags, posix_spawnattr_destroy.
32069
32070 2009-01-25  Bruno Haible  <bruno@clisp.org>
32071
32072         * lib/glthread/threadlib.c: Include <stdlib.h>.
32073
32074 2009-01-25  Bruno Haible  <bruno@clisp.org>
32075
32076         * lib/glthread/threadlib.c (dummy): New declaration.
32077
32078 2009-01-25  Bruno Haible  <bruno@clisp.org>
32079
32080         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
32081         multibyte characters also for the GB18030 encoding. Don't crash when
32082         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
32083
32084 2009-01-25  Bruno Haible  <bruno@clisp.org>
32085
32086         Avoid redefining 'struct random_data' on OSF/1 5.1.
32087         * lib/stdlib.in.h: Include <random.h> if it exists.
32088         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
32089         HAVE_RANDOM_H. Include <random.h> when testing whether
32090         'struct random_data' exists.
32091         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
32092
32093 2009-01-25  Bruno Haible  <bruno@clisp.org>
32094
32095         Don't install charset.alias on MacOS X >= 10.3.
32096         * lib/localcharset.c (DARWIN7): New macro.
32097         (get_charset_aliases): Hardcode the result for Darwin7.
32098         * modules/localcharset (install-exec-local): Don't install
32099         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
32100
32101 2009-01-25  Bruno Haible  <bruno@clisp.org>
32102
32103         Don't install charset.alias on mingw and Cygwin.
32104         * modules/localcharset (install-exec-local): Don't install
32105         charset.alias on mingw and Cygwin, if the file does not yet exist.
32106         The result for these platforms is hardcoded in localcharset.c.
32107
32108 2009-01-25  Bruno Haible  <bruno@clisp.org>
32109
32110         Make it possible again to use AC_GNU_SOURCE together with gnulib.
32111         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
32112         before requiring AC_USE_SYSTEM_EXTENSIONS.
32113
32114 2009-01-25  Jim Meyering  <meyering@redhat.com>
32115
32116         c-strtod: avoid warnings
32117         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
32118         "assignment discards qualifiers from pointer target type" warnings.
32119
32120 2009-01-24  Bruno Haible  <bruno@clisp.org>
32121
32122         Add support for non-UTF-8 locales on MacOS X.
32123         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
32124         canonical encodings. For Darwin 7 and newer, don't map traditional
32125         encodings to UTF-8.
32126         Reported by Vincent Lefevre <vincent@vinc17.org>
32127         at <http://savannah.gnu.org/bugs/?25235>.
32128
32129 2009-01-24  Bruno Haible  <bruno@clisp.org>
32130
32131         * doc/gnulib.texi (Obsolete modules): New section.
32132         Reported by Mike Frysinger <vapier@gentoo.org>.
32133
32134 2009-01-24  Bruno Haible  <bruno@clisp.org>
32135
32136         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
32137         (%.dvi): New rule.
32138
32139 2009-01-24  Bruno Haible  <bruno@clisp.org>
32140
32141         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
32142         Reported by Eric Blake.
32143
32144 2009-01-24  Bruno Haible  <bruno@clisp.org>
32145
32146         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
32147         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
32148         Reported by Gary V. Vaughan <gary@gnu.org>.
32149
32150 2009-01-24  Bruno Haible  <bruno@clisp.org>
32151
32152         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
32153
32154 2009-01-23  Bruno Haible  <bruno@clisp.org>
32155
32156         Make c-strtod, c-strtold usable in libraries.
32157         * lib/c-strtod.c: Include string.h instead of xalloc.h.
32158         (C_STRTOD): Call strdup instead of xstrdup.
32159         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
32160         * modules/c-strtold (Depends-on): Likewise.
32161         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
32162         * NEWS: Mention the change.
32163         Reported by Michael Gold <mgold@ncf.ca>.
32164
32165 2009-01-23  Jim Meyering  <meyering@redhat.com>
32166
32167         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
32168         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
32169         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
32170
32171 2009-01-23  Simon Josefsson  <simon@josefsson.org>
32172
32173         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
32174         GNU CoreUtils.
32175         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
32176         * modules/version-etc (Description): Update.
32177
32178 2009-01-22  Bruno Haible  <bruno@clisp.org>
32179
32180         Cache the C locale object.
32181         * lib/c-strtod.c (c_locale_cache): New variable.
32182         (c_locale): New function.
32183         (C_STRTOD): Use it, and don't call freelocale.
32184         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
32185         Suggested by Paolo Bonzini.
32186
32187 2009-01-21  Bruno Haible  <bruno@clisp.org>
32188
32189         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
32190         conditions other than overflow.
32191
32192 2009-01-21  Bruno Haible  <bruno@clisp.org>
32193
32194         * lib/c-strtod.c: Include errno.h.
32195         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
32196         value from STRTOD_L and STRTOD.
32197
32198 2009-01-21  Bruno Haible  <bruno@clisp.org>
32199         and Jim Meyering  <meyering@redhat.com>
32200
32201         nanosleep: skip configure test (fail it) for apple universal builds
32202         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
32203         universal builds, assume that nanosleep does not work.
32204         * modules/nanosleep (Depends-on): Add multiarch.
32205
32206         mktime: skip configure test (fail it) for apple universal builds
32207         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
32208         universal builds, assume that mktime does not work.
32209         * modules/mktime (Depends-on): Add multiarch.
32210
32211 2009-01-21  Eric Blake  <ebb9@byu.net>
32212
32213         multiarch: avoid expand-before-require warning
32214         * modules/multiarch (configure.ac): Require, rather than expand,
32215         gl_MULTIARCH.
32216         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
32217         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
32218         enforce that all clients require it.  Partial reversion of
32219         2008-12-29 patch.
32220
32221         error: avoid expand-before-require warning
32222         * modules/errno (configure.ac): Require, rather than expand,
32223         gl_HEADER_ERRNO_H.
32224         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
32225         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
32226         enforce that all clients require it.
32227
32228         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
32229         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
32230         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
32231         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
32232
32233 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
32234
32235         Revert:
32236         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32237
32238         regex: do not depend on obsolete modules.
32239         * modules/regex: Remove memcmp and memmove.
32240
32241 2009-01-20  Bruno Haible  <bruno@clisp.org>
32242
32243         Make the 'link' module link on Windows NT 4.
32244         * lib/link.c (_WIN32_WINNT): Don't define.
32245         (CreateHardLinkFuncType): New type.
32246         (CreateHardLinkFunc, initialized): New variables.
32247         (initialize): New function.
32248         (link): Invoke CreateHardLink indirectly through the function pointer.
32249
32250 2009-01-20  Bruno Haible  <bruno@clisp.org>
32251
32252         Fix compilation failure on mingw.
32253         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
32254
32255 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
32256
32257         * doc/c-strtod.texi: Mention a couple of restrictions.
32258
32259 2009-01-20  Jim Meyering  <meyering@redhat.com>
32260
32261         gettimeofday: move more declarations out of functions
32262         * lib/gettimeofday.c: Move extern declarations of tzset and
32263         gmtime out of containing functions.  Prompted by Bruno Haible.
32264
32265 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32266
32267         regex: do not depend on obsolete modules.
32268         * modules/regex: Remove memcmp and memmove.
32269
32270 2009-01-19  Bruno Haible  <bruno@clisp.org>
32271
32272         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32273         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
32274         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32275         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
32276         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
32277
32278 2009-01-19  Bruno Haible  <bruno@clisp.org>
32279
32280         * tests/test-link.c: Include <errno.h>.
32281         (main): Exit with code 77 when a hard link cannot be created due to
32282         the file system.
32283         * tests/test-link.sh: Skip test when a hard link cannot be created due
32284         to the file system.
32285         Suggested by Eric Blake.
32286
32287 2009-01-19  Martin Lambers  <marlam@marlam.de>
32288
32289         * modules/link-tests: New file.
32290         * tests/test-link.sh: New file.
32291         * tests/test-link.c: New file.
32292
32293 2009-01-19  Eric Blake  <ebb9@byu.net>
32294
32295         doc: mention another function added in cygwin 1.7.0
32296         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
32297         Another new function in cygwin 1.7.
32298
32299 2009-01-19  Bruno Haible  <bruno@clisp.org>
32300
32301         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32302         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
32303         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
32304         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32305         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32306         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32307         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32308         * m4/md4.m4 (gl_MD4): Likewise.
32309         * m4/md5.m4 (gl_MD5): Likewise.
32310         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
32311         * m4/sha1.m4 (gl_SHA1): Likewise.
32312         * m4/sha256.m4 (gl_SHA256): Likewise.
32313         * m4/sha512.m4 (gl_SHA512): Likewise.
32314
32315 2009-01-19  Bruno Haible  <bruno@clisp.org>
32316
32317         * modules/uniname/uniname-tests (Depends-on): Add progname.
32318         * tests/uniname/test-uninames.c: Include progname.h.
32319         (main): Call set_program_name.
32320
32321         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
32322         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
32323         (main): Call set_program_name.
32324
32325         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
32326         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
32327         (main): Call set_program_name.
32328
32329         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
32330         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
32331         (main): Call set_program_name.
32332
32333         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
32334         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
32335         (main): Call set_program_name.
32336
32337         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
32338         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
32339         (main): Call set_program_name.
32340
32341         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
32342         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
32343         (main): Call set_program_name.
32344
32345         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
32346         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
32347         (main): Call set_program_name.
32348
32349         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
32350         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
32351         (main): Call set_program_name.
32352
32353 2009-01-19  Eric Blake  <ebb9@byu.net>
32354
32355         test-unistd: test previous patch
32356         * tests/test-unistd.c: Test *_FILENO macros.
32357
32358         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
32359         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32360         Guarantee a definition.
32361         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
32362         * modules/unistd-safer (Depends-on): Add dependency on unistd.
32363         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
32364         * lib/dup-safer.c (STDERR_FILENO): Likewise.
32365         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32366         Likewise.
32367         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
32368         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
32369         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32370         Likewise.
32371         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
32372         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
32373         (STDERR_FILENO): Likewise.
32374         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
32375         (STDERR_FILENO): Likewise.
32376         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
32377         (STDERR_FILENO): Likewise.
32378         Reported by Elbert Pol.
32379
32380 2009-01-19  Eric Blake  <ebb9@byu.net>
32381
32382         doc: mention more functions added in cygwin 1.7.0
32383         * doc/posix-functions/abort.texi (abort): Update wording related
32384         to cygwin.
32385         * doc/posix-functions/daylight.texi (daylight): Likewise.
32386         * doc/posix-functions/optarg.texi (optarg): Likewise.
32387         * doc/posix-functions/optarg.texi (opterr): Likewise.
32388         * doc/posix-functions/optarg.texi (optind): Likewise.
32389         * doc/posix-functions/optarg.texi (optopt): Likewise.
32390         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
32391         worked in 1.5.x, and was withdrawn in 1.7.
32392         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
32393         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
32394         cygwin versions.
32395         * doc/posix-functions/perror.texi (perror): Likewise.
32396         * doc/posix-functions/printf.texi (printf): Likewise.
32397         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
32398         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
32399         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32400         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32401         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
32402         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
32403         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
32404         Likewise.
32405         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
32406         Likewise.
32407         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
32408         this function.
32409         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
32410         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
32411         Likewise.
32412         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
32413         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
32414         * doc/posix-functions/confstr.texi (confstr): Likewise.
32415         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
32416         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
32417         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
32418         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
32419         * doc/posix-functions/fputws.texi (fputws): Likewise.
32420         * doc/posix-functions/fwide.texi (fwide): Likewise.
32421         * doc/posix-functions/getwc.texi (getwc): Likewise.
32422         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
32423         * doc/posix-functions/putwc.texi (putwc): Likewise.
32424         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
32425         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
32426         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
32427         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
32428         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
32429         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
32430         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
32431         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
32432         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
32433         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
32434         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
32435
32436 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32437
32438         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
32439         * lib/ioctl.c: Include <sys/ioctl.h>.
32440
32441 2009-01-19  Simon Josefsson  <simon@josefsson.org>
32442
32443         * modules/getdate-tests (Depends-on): Add progname.
32444         * tests/test-getdate.c: Use progname module, to avoid link errors
32445         on non-glibc systems.
32446
32447 2009-01-18  Simon Josefsson  <simon@josefsson.org>
32448
32449         * modules/filenamecat-tests (Depends-on): Add progname.
32450         * modules/fstrcmp-tests (Depends-on): Likewise.
32451
32452         * tests/test-filenamecat.c: Use progname module, to avoid link
32453         errors on non-glibc systems.
32454         * tests/test-fstrcmp.c: Likewise.
32455
32456 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32457
32458         gettimeofday: avoid warning: nested extern declaration of 'localtime'
32459         * lib/gettimeofday.c: Move extern declaration out of function.
32460
32461 2009-01-18  Bruno Haible  <bruno@clisp.org>
32462
32463         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
32464         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
32465         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
32466
32467 2009-01-18  Bruno Haible  <bruno@clisp.org>
32468
32469         * lib/strftime.c (MEMPCPY): Remove unused macro.
32470         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
32471
32472 2009-01-18  Martin Lambers  <marlam@marlam.de>
32473
32474         New module 'link'.
32475         * lib/unistd.in.h (link): New declaration.
32476         * lib/link.c: New file.
32477         * m4/link.m4: New file.
32478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
32479         HAVE_LINK.
32480         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
32481         * modules/link: New file.
32482         * doc/posix-functions/link.texi: Mention the new module.
32483
32484 2009-01-18  Bruno Haible  <bruno@clisp.org>
32485
32486         * tests/test-avltree_list.c (main): Call set_program_name.
32487         * tests/test-avltree_oset.c (main): Likewise.
32488         * tests/test-obstack-printf.c: Include progname.h.
32489         (main): Call set_program_name.
32490         * tests/test-quotearg.c: Include progname.h.
32491         (main): Call set_program_name.
32492         * tests/test-xmemdup0.c: Include progname.h.
32493         (main): Call set_program_name.
32494
32495 2009-01-18  Bruno Haible  <bruno@clisp.org>
32496
32497         New module 'alphasort'.
32498         * lib/dirent.in.h (alphasort): New declaration.
32499         * lib/alphasort.c: New file, from glibc with modifications.
32500         * m4/alphasort.m4: New file.
32501         * modules/alphasort: New file.
32502         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
32503         HAVE_ALPHASORT.
32504         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
32505         HAVE_ALPHASORT.
32506         * doc/posix-functions/alphasort.texi: Mention the new module and the
32507         portability problems.
32508
32509 2009-01-18  Bruno Haible  <bruno@clisp.org>
32510
32511         New module 'scandir'.
32512         * lib/dirent.in.h (scandir): New declaration.
32513         * lib/scandir.c: New file, from glibc with modifications.
32514         * m4/scandir.m4: New file.
32515         * modules/scandir: New file.
32516         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
32517         HAVE_SCANDIR.
32518         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
32519         HAVE_SCANDIR.
32520         * doc/posix-functions/scandir.texi: Mention the new module and the
32521         portability problems.
32522
32523 2009-01-17  Bruno Haible  <bruno@clisp.org>
32524
32525         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
32526         Update documentation.
32527         (func_remove_suffix): Escape all dots in the suffix. Update
32528         documentation.
32529         (func_filter_filelist): Update documentation.
32530         Reported by Ralf Wildenhues.
32531
32532 2009-01-17  Bruno Haible  <bruno@clisp.org>
32533
32534         * modules/dprintf-posix-tests: New file.
32535         * tests/test-dprintf-posix.sh: New file.
32536         * tests/test-dprintf-posix.c: New file.
32537
32538         New modules 'dprintf', 'dprintf-posix'.
32539         * lib/stdio.in.h (dprintf): New declaration.
32540         * lib/dprintf.c: New file.
32541         * m4/dprintf.m4: New file.
32542         * m4/dprintf-posix.m4: New file.
32543         * modules/dprintf: New file.
32544         * modules/dprintf-posix: New file.
32545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
32546         HAVE_DPRINTF, REPLACE_DPRINTF.
32547         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
32548         HAVE_DPRINTF, REPLACE_DPRINTF.
32549         * doc/posix-functions/dprintf.texi: Mention the new modules.
32550
32551 2009-01-17  Bruno Haible  <bruno@clisp.org>
32552
32553         * modules/vdprintf-posix-tests: New file.
32554         * tests/test-vdprintf-posix.sh: New file.
32555         * tests/test-vdprintf-posix.c: New file.
32556
32557         New modules 'vdprintf', 'vdprintf-posix'.
32558         * lib/stdio.in.h (vdprintf): New declaration.
32559         * lib/vdprintf.c: New file.
32560         * m4/vdprintf.m4: New file.
32561         * m4/vdprintf-posix.m4: New file.
32562         * modules/vdprintf: New file.
32563         * modules/vdprintf-posix: New file.
32564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
32565         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32566         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
32567         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32568         * doc/posix-functions/vdprintf.texi: Mention the new modules.
32569
32570 2009-01-17  Bruno Haible  <bruno@clisp.org>
32571
32572         Fix replacement of fopen on mingw.
32573         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
32574         mingw.
32575
32576 2009-01-17  Bruno Haible  <bruno@clisp.org>
32577
32578         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
32579         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
32580
32581 2009-01-17  Bruno Haible  <bruno@clisp.org>
32582
32583         Avoid test-fflush2.sh failure on mingw.
32584         * tests/test-fflush2.c: Include binary-io.h.
32585         (main): Put standard input into binary mode.
32586         * modules/fflush-tests (Depends-on): Add binary-io.
32587
32588 2009-01-17  Bruno Haible  <bruno@clisp.org>
32589
32590         * lib/wchar.in.h: In another particular situation, include only the
32591         system's <wchar.h> file.
32592         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
32593         Reported by Albert Chin-A-Young <china@thewrittenword.com>
32594         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
32595
32596 2009-01-17  Bruno Haible  <bruno@clisp.org>
32597
32598         Support for stripping executables in --enable-relocatable.
32599         * build-aux/install-reloc: Expect one more argument, or an environment
32600         variable RELOC_STRIP_PROG. If set, strip the destination program and
32601         its wrapper.
32602         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
32603         RELOC_STRIP_PROG.
32604         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
32605         to set RELOCATABLE_STRIP.
32606         * NEWS: Mention the new Makefile requirement.
32607
32608 2009-01-17  Bruno Haible  <bruno@clisp.org>
32609
32610         * build-aux/install-reloc: Remove debugging information left over by
32611         C compiler on MacOS X.
32612
32613 2009-01-17  Bruno Haible  <bruno@clisp.org>
32614
32615         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
32616         * lib/progreloc.c (find_executable): Fix type of pointer passed to
32617         _NSGetExecutablePath.
32618
32619 2009-01-16  Jim Meyering  <meyering@redhat.com>
32620
32621         strerror: avoid warnings about discarding "const"
32622         * lib/strerror.c (rpl_strerror): Instead of returning a const
32623         string from each and every "case", use a variable, and add a single
32624         cast after the switch.
32625
32626 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
32627
32628         * lib/arpa_inet.in.h: Add extern "C" block for C++.
32629
32630 2009-01-16  Bruno Haible  <bruno@clisp.org>
32631
32632         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
32633         array initializer syntax that also works in C++ mode.
32634         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32635
32636 2009-01-16  Jim Meyering  <meyering@redhat.com>
32637
32638         poll: suppress a warning
32639         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
32640         to ignore "...unsigned expression < 0 is always false" warnings.
32641
32642 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
32643
32644         poll: remove declarations of unused variables
32645         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
32646         sockbuf and optlen.
32647
32648 2009-01-15  Bruno Haible  <bruno@clisp.org>
32649
32650         Make fflush-after-ungetc POSIX compliant on BSD systems.
32651         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
32652         (clear_ungetc_buffer): Implement also for other systems.
32653         (rpl_fflush): On glibc systems, invoke
32654         clear_ungetc_buffer_preserving_position. Otherwise, invoke
32655         clear_ungetc_buffer after fetching the stream's position, not before.
32656
32657 2009-01-15  Bruno Haible  <bruno@clisp.org>
32658
32659         Make fflush-after-ungetc POSIX compliant on glibc systems.
32660         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
32661         after ungetc.
32662         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
32663         (rpl_fflush): On glibc systems, simply call the system's fflush
32664         function after clearing the ungetc buffer.
32665         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
32666         Instead, lseek only to the end of file, then use the system's fseeko
32667         for the rest. On glibc systems, reset the EOF indicator bit.
32668
32669 2009-01-15  Jim Meyering  <meyering@redhat.com>
32670
32671         openmp.m4: revert quote-adding change, for portability to older autoconf
32672         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
32673         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
32674         Simon Josefsson noticed the problem when using autoconf-2.61.
32675
32676 2009-01-15  Bruno Haible  <bruno@clisp.org>
32677
32678         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
32679         * tests/test-fflush2.c (ASSERT): Always fail.
32680         (main): Add two tests for fflush() after ungetc(), taking into account
32681         the Austin Group's clarification.
32682         Suggested by Eric Blake.
32683
32684 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
32685
32686         mktime.m4: remove K&R-style function prototypes
32687         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
32688         for the Sun C++ compiler.
32689
32690 2009-01-14  Bruno Haible  <bruno@clisp.org>
32691
32692         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
32693         while including <wchar.h>.
32694         * lib/wchar.in.h: In two particular situations on HP-UX, include only
32695         the system's <wchar.h> file.
32696         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32697
32698 2009-01-14  Bruno Haible  <bruno@clisp.org>
32699
32700         * m4/csharp.m4: Don't mention gettext on the serial number line.
32701         * m4/csharpexec.m4: Likewise.
32702         * m4/eaccess.m4: Likewise.
32703         * m4/javaexec.m4: Likewise.
32704         * m4/sig_atomic_t.m4: Likewise.
32705         * m4/tmpdir.m4: Likewise.
32706         * m4/intldir.m4: Bump gettext version.
32707         * m4/lib-ld.m4: Likewise.
32708
32709 2009-01-14  Bruno Haible  <bruno@clisp.org>
32710
32711         * lib/progname.c (set_program_name): Add more comments.
32712         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32713
32714 2009-01-14  Simon Josefsson  <simon@josefsson.org>
32715
32716         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
32717         were sys/stat.h does not define it.
32718
32719 2009-01-14  Jim Meyering  <meyering@redhat.com>
32720
32721         many *.m4 files: improve m4 quoting
32722         99% of this change was performed by running the following commands:
32723         git ls-files | grep '\.m4$' | xargs perl -pi \
32724           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
32725           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32726           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32727           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
32728         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
32729         The remainder were to add Copyright dates, increment serial numbers,
32730         undo some changes in comments, exclude m4/intl.m4, and add quotes
32731         around the "1" in ",1" where the unusual spacing prohibited the
32732         above regexps from doing the job.  For more details, see
32733         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
32734         * m4/acl.m4: Modified.
32735         * m4/afs.m4: Likewise.
32736         * m4/alloca.m4: Likewise.
32737         * m4/argp.m4: Likewise.
32738         * m4/argz.m4: Likewise.
32739         * m4/atexit.m4: Likewise.
32740         * m4/bison-i18n.m4: Likewise.
32741         * m4/bison.m4: Likewise.
32742         * m4/byteswap.m4: Likewise.
32743         * m4/c-stack.m4: Likewise.
32744         * m4/c-strtod.m4: Likewise.
32745         * m4/calloc.m4: Likewise.
32746         * m4/canonicalize-lgpl.m4: Likewise.
32747         * m4/chown.m4: Likewise.
32748         * m4/clock_time.m4: Likewise.
32749         * m4/codeset.m4: Likewise.
32750         * m4/copy-file.m4: Likewise.
32751         * m4/csharp.m4: Likewise.
32752         * m4/csharpcomp.m4: Likewise.
32753         * m4/csharpexec.m4: Likewise.
32754         * m4/d-ino.m4: Likewise.
32755         * m4/d-type.m4: Likewise.
32756         * m4/dirfd.m4: Likewise.
32757         * m4/double-slash-root.m4: Likewise.
32758         * m4/eaccess.m4: Likewise.
32759         * m4/eealloc.m4: Likewise.
32760         * m4/environ.m4: Likewise.
32761         * m4/errno_h.m4: Likewise.
32762         * m4/euidaccess.m4: Likewise.
32763         * m4/execute.m4: Likewise.
32764         * m4/fatal-signal.m4: Likewise.
32765         * m4/fchdir.m4: Likewise.
32766         * m4/fcntl_h.m4: Likewise.
32767         * m4/fileblocks.m4: Likewise.
32768         * m4/filenamecat.m4: Likewise.
32769         * m4/findprog.m4: Likewise.
32770         * m4/flexmember.m4: Likewise.
32771         * m4/fnmatch.m4: Likewise.
32772         * m4/fopen.m4: Likewise.
32773         * m4/fpending.m4: Likewise.
32774         * m4/fprintf-posix.m4: Likewise.
32775         * m4/free.m4: Likewise.
32776         * m4/frexp.m4: Likewise.
32777         * m4/frexpl.m4: Likewise.
32778         * m4/fsusage.m4: Likewise.
32779         * m4/ftruncate.m4: Likewise.
32780         * m4/gc-camellia.m4: Likewise.
32781         * m4/gc-random.m4: Likewise.
32782         * m4/gc.m4: Likewise.
32783         * m4/getaddrinfo.m4: Likewise.
32784         * m4/getcwd-abort-bug.m4: Likewise.
32785         * m4/getcwd-path-max.m4: Likewise.
32786         * m4/getdate.m4: Likewise.
32787         * m4/getdomainname.m4: Likewise.
32788         * m4/getgroups.m4: Likewise.
32789         * m4/gethostname.m4: Likewise.
32790         * m4/gethrxtime.m4: Likewise.
32791         * m4/getline.m4: Likewise.
32792         * m4/getloadavg.m4: Likewise.
32793         * m4/getndelim2.m4: Likewise.
32794         * m4/getpass.m4: Likewise.
32795         * m4/gettext.m4: Likewise.
32796         * m4/gettime.m4: Likewise.
32797         * m4/gettimeofday.m4: Likewise.
32798         * m4/gnulib-common.m4: Likewise.
32799         * m4/group-member.m4: Likewise.
32800         * m4/host-os.m4: Likewise.
32801         * m4/iconv.m4: Likewise.
32802         * m4/iconv_open.m4: Likewise.
32803         * m4/inet_ntop.m4: Likewise.
32804         * m4/inet_pton.m4: Likewise.
32805         * m4/inline.m4: Likewise.
32806         * m4/intldir.m4: Likewise.
32807         * m4/intlmacosx.m4: Likewise.
32808         * m4/intmax.m4: Likewise.
32809         * m4/intmax_t.m4: Likewise.
32810         * m4/inttypes.m4: Likewise.
32811         * m4/inttypes_h.m4: Likewise.
32812         * m4/inttypes-pri.m4: Likewise.
32813         * m4/isapipe.m4: Likewise.
32814         * m4/isnand.m4: Likewise.
32815         * m4/isnanf.m4: Likewise.
32816         * m4/isnanl.m4: Likewise.
32817         * m4/javacomp.m4: Likewise.
32818         * m4/javaexec.m4: Likewise.
32819         * m4/jm-winsz1.m4: Likewise.
32820         * m4/jm-winsz2.m4: Likewise.
32821         * m4/lchown.m4: Likewise.
32822         * m4/lcmessage.m4: Likewise.
32823         * m4/ldexpl.m4: Likewise.
32824         * m4/lib-ld.m4: Likewise.
32825         * m4/lib-link.m4: Likewise.
32826         * m4/libsigsegv.m4: Likewise.
32827         * m4/link-follow.m4: Likewise.
32828         * m4/localcharset.m4: Likewise.
32829         * m4/locale-fr.m4: Likewise.
32830         * m4/locale-ja.m4: Likewise.
32831         * m4/locale-tr.m4: Likewise.
32832         * m4/locale-zh.m4: Likewise.
32833         * m4/lock.m4: Likewise.
32834         * m4/longlong.m4: Likewise.
32835         * m4/ls-mntd-fs.m4: Likewise.
32836         * m4/lstat.m4: Likewise.
32837         * m4/malloc.m4: Likewise.
32838         * m4/mathl.m4: Likewise.
32839         * m4/mbrtowc.m4: Likewise.
32840         * m4/mbstate_t.m4: Likewise.
32841         * m4/mbswidth.m4: Likewise.
32842         * m4/memchr.m4: Likewise.
32843         * m4/memcmp.m4: Likewise.
32844         * m4/memcpy.m4: Likewise.
32845         * m4/memmem.m4: Likewise.
32846         * m4/memmove.m4: Likewise.
32847         * m4/mempcpy.m4: Likewise.
32848         * m4/memrchr.m4: Likewise.
32849         * m4/memset.m4: Likewise.
32850         * m4/minmax.m4: Likewise.
32851         * m4/mkdir-slash.m4: Likewise.
32852         * m4/mkdtemp.m4: Likewise.
32853         * m4/mktime.m4: Likewise.
32854         * m4/mmap-anon.m4: Likewise.
32855         * m4/mountlist.m4: Likewise.
32856         * m4/nanosleep.m4: Likewise.
32857         * m4/nls.m4: Likewise.
32858         * m4/nocrash.m4: Likewise.
32859         * m4/open.m4: Likewise.
32860         * m4/openat.m4: Likewise.
32861         * m4/openmp.m4: Likewise.
32862         * m4/pathmax.m4: Likewise.
32863         * m4/perl.m4: Likewise.
32864         * m4/physmem.m4: Likewise.
32865         * m4/pipe.m4: Likewise.
32866         * m4/po.m4: Likewise.
32867         * m4/poll.m4: Likewise.
32868         * m4/posixtm.m4: Likewise.
32869         * m4/posixver.m4: Likewise.
32870         * m4/printf-frexp.m4: Likewise.
32871         * m4/printf-frexpl.m4: Likewise.
32872         * m4/printf-posix.m4: Likewise.
32873         * m4/printf-posix-rpl.m4: Likewise.
32874         * m4/printf.m4: Likewise.
32875         * m4/progtest.m4: Likewise.
32876         * m4/putenv.m4: Likewise.
32877         * m4/readline.m4: Likewise.
32878         * m4/readlink.m4: Likewise.
32879         * m4/readutmp.m4: Likewise.
32880         * m4/realloc.m4: Likewise.
32881         * m4/regex.m4: Likewise.
32882         * m4/relocatable.m4: Likewise.
32883         * m4/relocatable-lib.m4: Likewise.
32884         * m4/rename-dest-slash.m4: Likewise.
32885         * m4/rename.m4: Likewise.
32886         * m4/rmdir-errno.m4: Likewise.
32887         * m4/rmdir.m4: Likewise.
32888         * m4/roundf.m4: Likewise.
32889         * m4/roundl.m4: Likewise.
32890         * m4/rpmatch.m4: Likewise.
32891         * m4/save-cwd.m4: Likewise.
32892         * m4/selinux-selinux-h.m4: Likewise.
32893         * m4/setenv.m4: Likewise.
32894         * m4/settime.m4: Likewise.
32895         * m4/sig2str.m4: Likewise.
32896         * m4/sig_atomic_t.m4: Likewise.
32897         * m4/signalblocking.m4: Likewise.
32898         * m4/signbit.m4: Likewise.
32899         * m4/sigpipe.m4: Likewise.
32900         * m4/sockets.m4: Likewise.
32901         * m4/sockpfaf.m4: Likewise.
32902         * m4/st_dm_mode.m4: Likewise.
32903         * m4/stat-time.m4: Likewise.
32904         * m4/stdbool.m4: Likewise.
32905         * m4/stdint.m4: Likewise.
32906         * m4/stdint_h.m4: Likewise.
32907         * m4/stpcpy.m4: Likewise.
32908         * m4/stpncpy.m4: Likewise.
32909         * m4/strcase.m4: Likewise.
32910         * m4/strchrnul.m4: Likewise.
32911         * m4/strcspn.m4: Likewise.
32912         * m4/strdup.m4: Likewise.
32913         * m4/strftime.m4: Likewise.
32914         * m4/strndup.m4: Likewise.
32915         * m4/strnlen.m4: Likewise.
32916         * m4/strpbrk.m4: Likewise.
32917         * m4/strptime.m4: Likewise.
32918         * m4/strsep.m4: Likewise.
32919         * m4/strtod.m4: Likewise.
32920         * m4/strtoimax.m4: Likewise.
32921         * m4/strtok_r.m4: Likewise.
32922         * m4/strtol.m4: Likewise.
32923         * m4/strtoll.m4: Likewise.
32924         * m4/strtoul.m4: Likewise.
32925         * m4/strtoull.m4: Likewise.
32926         * m4/strtoumax.m4: Likewise.
32927         * m4/strverscmp.m4: Likewise.
32928         * m4/threadlib.m4: Likewise.
32929         * m4/timegm.m4: Likewise.
32930         * m4/tm_gmtoff.m4: Likewise.
32931         * m4/tmpdir.m4: Likewise.
32932         * m4/tmpfile.m4: Likewise.
32933         * m4/tzset.m4: Likewise.
32934         * m4/uintmax_t.m4: Likewise.
32935         * m4/unlinkdir.m4: Likewise.
32936         * m4/unlocked-io.m4: Likewise.
32937         * m4/uptime.m4: Likewise.
32938         * m4/userspec.m4: Likewise.
32939         * m4/utimbuf.m4: Likewise.
32940         * m4/utime.m4: Likewise.
32941         * m4/utimes-null.m4: Likewise.
32942         * m4/utimes.m4: Likewise.
32943         * m4/vararrays.m4: Likewise.
32944         * m4/vasnprintf.m4: Likewise.
32945         * m4/vfprintf-posix.m4: Likewise.
32946         * m4/vprintf-posix.m4: Likewise.
32947         * m4/wait-process.m4: Likewise.
32948         * m4/wchar_t.m4: Likewise.
32949         * m4/wint_t.m4: Likewise.
32950         * m4/write-any-file.m4: Likewise.
32951         * m4/yield.m4: Likewise.
32952
32953 2009-01-13  Bruno Haible  <bruno@clisp.org>
32954
32955         Avoid test-copy-file.sh failures when ACL support insufficient.
32956         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
32957         TESTS_ENVIRONMENT.
32958         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
32959         Reported by Jim Meyering.
32960
32961 2009-01-13  Bruno Haible  <bruno@clisp.org>
32962
32963         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
32964         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
32965         * modules/unistdio/u8-printf-parse (Files): Likewise.
32966         * modules/unistdio/u32-printf-parse (Files): Likewise.
32967         * modules/unistdio/ulc-printf-parse (Files): Likewise.
32968
32969 2009-01-13  Simon Josefsson  <simon@josefsson.org>
32970
32971         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
32972         and m4/inttypes_h.m4 too.
32973
32974 2009-01-12  Eric Blake  <ebb9@byu.net>
32975
32976         tests: IRIX 6.2 cc can't compile -0.0 into .data
32977         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
32978         rather than at compile-time.
32979         * tests/test-floorl.c (minus_zero): Likewise.
32980         * tests/test-frexpl.c (minus_zero): Likewise.
32981         * tests/test-isnan.c (minus_zerol): Likewise.
32982         * tests/test-isnanl.h (minus_zero): Likewise.
32983         * tests/test-ldexpl.c (minus_zero): Likewise.
32984         * tests/test-roundl.c (minus_zero): Likewise.
32985         * tests/test-signbit.c (minus_zerol): Likewise.
32986         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32987         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32988         * tests/test-truncl.c (minus_zero): Likewise.
32989         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32990         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32991         Reported by Tom G. Christensen and Nelson H. F. Beebe.
32992
32993 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32994
32995         regex: fix glibc bug 9697
32996         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
32997         handling.
32998
32999 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33000
33001         regex: fix glibc bug 697
33002         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
33003         being NULL also if there are no backreferences.
33004
33005 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33006
33007         regex: merge glibc changes
33008         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
33009         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
33010         re_string_skip_chars, re_string_reconstruct): Likewise.
33011         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
33012
33013 2009-01-07  Jim Meyering  <meyering@redhat.com>
33014
33015         poll: filter through cppi
33016         * lib/poll.c: Indent cpp directives to reflect nesting.
33017
33018 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
33019
33020         poll: don't return uninitialized
33021         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
33022
33023 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
33024
33025         avoid compile failure on AIX 6.1
33026         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
33027         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
33028
33029 2009-01-04  Jim Meyering  <meyering@redhat.com>
33030
33031         remove duplicate inclusion of <stdio.h>
33032         * tests/test-fprintf-posix.c: Likewise.
33033         * tests/test-printf-posix.c: Likewise.
33034         * tests/test-snprintf-posix.c: Likewise.
33035         * tests/test-sprintf-posix.c: Likewise.
33036         * tests/test-vasprintf-posix.c: Likewise.
33037         * tests/test-vfprintf-posix.c: Likewise.
33038         * tests/test-vprintf-posix.c: Likewise.
33039         * tests/test-vsnprintf-posix.c: Likewise.
33040         * tests/test-vsprintf-posix.c: Likewise.
33041
33042 2009-01-03  Jim Meyering  <meyering@redhat.com>
33043
33044         gnulib-tool: fix sed-based filtering
33045         * gnulib-tool (func_filter_filelist): Remove extra backslash
33046         in sed_fff_filter definition.
33047
33048 2009-01-02  Jim Meyering  <meyering@redhat.com>
33049
33050         strftime: avoid compilation failure on Solaris 2.6
33051         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
33052         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
33053         Don't #define mbrlen or mbsinit, since now they're guaranteed to
33054         be available.  Reported by Tom G. Christensen.  Details in
33055         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
33056
33057 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33058             Bruno Haible  <bruno@clisp.org>
33059
33060         Speed up gnulib-tool by doing more string processing through shell
33061         built-ins.
33062         * gnulib-tool (fast_func_append): New variable.
33063         (func_remove_prefix, func_remove_suffix): New functions.
33064         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
33065         (func_filter_filelist): New function.
33066         (func_get_dependencies): Use func_remove_suffix instead of sed.
33067         (func_get_automake_snippet): Use func_filter_filelist instead of a
33068         subshell and sed invocation.
33069
33070 2009-01-01  Bruno Haible  <bruno@clisp.org>
33071
33072         Fix a security bug.
33073         * gnulib-tool (func_import, import, update): Don't allow the characters
33074         '"', '$', '`', '\' in macro arguments that become part of commands that
33075         are evaluated.
33076
33077 2009-01-01  Bruno Haible  <bruno@clisp.org>
33078
33079         * gnulib-tool (func_reset_sigpipe): Add more comments.
33080
33081 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33082
33083         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
33084         func_emit_tests_Makefile_am, func_import): Abort loops early if we
33085         already know the answer.
33086
33087 2009-01-01  Jim Meyering  <meyering@redhat.com>
33088
33089         * lib/version-etc.c (version_etc_va): Update copyright year.
33090
33091 2008-12-30  Bruno Haible  <bruno@clisp.org>
33092
33093         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
33094         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
33095         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
33096
33097 2008-12-29  Eric Blake  <ebb9@byu.net>
33098
33099         multiarch: avoid autoconf AC_REQUIRE bug
33100         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
33101         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
33102         2.63 and older.
33103         Reported by Bruno Haible, and analyzed in
33104         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
33105
33106 2008-12-29  Bruno Haible  <bruno@clisp.org>
33107
33108         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
33109         files in subdirectories correctly.
33110         Reported by Ralf Wildenhues.
33111
33112 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33113
33114         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
33115         rather than 'join FILE -', for Solaris join.
33116
33117 2008-12-29  Bruno Haible  <bruno@clisp.org>
33118
33119         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
33120         quoting.
33121         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
33122         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
33123         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
33124         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
33125         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
33126         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
33127         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
33128         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
33129         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33130         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
33131         * m4/nls.m4 (AM_NLS): Likewise.
33132         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
33133         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
33134         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
33135         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
33136         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
33137         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
33138         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
33139         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
33140         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
33141         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
33142         * m4/xsize.m4 (gl_XSIZE): Likewise.
33143         Suggested by Jim Meyering.
33144
33145 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33146
33147         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
33148         * lib/parse-duration.c: use a switch instead of cascading if's.
33149
33150 2008-12-29  Eric Blake  <ebb9@byu.net>
33151
33152         wchar.h: supply WEOF on Irix 5.3
33153         * lib/wchar.in.h (wint_t): Also supply WEOF.
33154         * lib/wctype.in.h (wint_t): Likewise.
33155         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
33156         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
33157         Reported by Tom G. Christensen.
33158
33159 2008-12-26  Bruno Haible  <bruno@clisp.org>
33160
33161         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
33162         i486, i586, i686.
33163
33164 2008-12-26  Bruno Haible  <bruno@clisp.org>
33165
33166         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
33167
33168 2008-12-26  Bruno Haible  <bruno@clisp.org>
33169
33170         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
33171         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
33172         not __STDC_CONSTANT_MACROS.
33173         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33174
33175 2008-12-25  Bruno Haible  <bruno@clisp.org>
33176
33177         Add support for universal builds to vasnprintf.
33178         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
33179         universal builds, guess no.
33180         * modules/vasnprintf-posix (Depends-on): Add multiarch.
33181         * modules/vasprintf-posix (Depends-on): Likewise.
33182         * modules/fprintf-posix (Depends-on): Likewise.
33183         * modules/vfprintf-posix (Depends-on): Likewise.
33184         * modules/snprintf-posix (Depends-on): Likewise.
33185         * modules/vsnprintf-posix (Depends-on): Likewise.
33186         * modules/sprintf-posix (Depends-on): Likewise.
33187         * modules/vsprintf-posix (Depends-on): Likewise.
33188         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33189         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33190         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33191         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33192         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33193         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33194         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33195
33196         Add support for universal builds to <inttypes.h>.
33197         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
33198         _SCNu64_PREFIX): In Apple
33199         universal builds, define directly, using _LP64.
33200         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
33201         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
33202         * modules/inttypes (Depends-on): Add multiarch.
33203         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33204
33205         Add support for universal builds to <stdint.h>.
33206         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
33207         universal builds, define directly, using _LP64.
33208         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
33209         Apple universal builds, don't test for the size and suffix of ptrdiff_t
33210         and size_t.
33211         * modules/stdint (Depends-on): Add multiarch.
33212         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33213
33214         New module 'multiarch'.
33215         * modules/multiarch: New file.
33216         * m4/multiarch.m4: New file.
33217
33218 2008-12-25  Bruno Haible  <bruno@clisp.org>
33219
33220         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
33221
33222 2008-12-25  Bruno Haible  <bruno@clisp.org>
33223
33224         * modules/btowc (License): Relicense under LGPLv2+.
33225         * modules/mbsinit (License): Likewise.
33226         * modules/mbrtowc (License): Likewise.
33227         * modules/wcrtomb (License): Likewise.
33228         * modules/streq (License): Likewise.
33229         Reported by David Lutterkort <lutter@redhat.com>.
33230
33231 2008-12-23  Bruno Haible  <bruno@clisp.org>
33232
33233         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
33234
33235 2008-12-23  Bruno Haible  <bruno@clisp.org>
33236
33237         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
33238         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
33239         GETADDRINFO_LIB, not in LIBS.
33240         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
33241         * modules/canon-host (Link): Likewise.
33242         * NEWS: Mention the change.
33243         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
33244         GETADDRINFO_LIB.
33245
33246 2008-12-22  Bruno Haible  <bruno@clisp.org>
33247
33248         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
33249         * doc/posix-functions/iswalpha_l.texi: Likewise.
33250         * doc/posix-functions/iswblank_l.texi: Likewise.
33251         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33252         * doc/posix-functions/iswctype_l.texi: Likewise.
33253         * doc/posix-functions/iswdigit_l.texi: Likewise.
33254         * doc/posix-functions/iswgraph_l.texi: Likewise.
33255         * doc/posix-functions/iswlower_l.texi: Likewise.
33256         * doc/posix-functions/iswprint_l.texi: Likewise.
33257         * doc/posix-functions/iswpunct_l.texi: Likewise.
33258         * doc/posix-functions/iswspace_l.texi: Likewise.
33259         * doc/posix-functions/iswupper_l.texi: Likewise.
33260         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33261         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
33262         * doc/posix-functions/open_wmemstream.texi: Likewise.
33263         * doc/posix-functions/swscanf.texi: Likewise.
33264         * doc/posix-functions/towctrans_l.texi: Likewise.
33265         * doc/posix-functions/towlower.texi: Likewise.
33266         * doc/posix-functions/towlower_l.texi: Likewise.
33267         * doc/posix-functions/towupper.texi: Likewise.
33268         * doc/posix-functions/towupper_l.texi: Likewise.
33269         * doc/posix-functions/vfwprintf.texi: Likewise.
33270         * doc/posix-functions/vfwscanf.texi: Likewise.
33271         * doc/posix-functions/vswscanf.texi: Likewise.
33272         * doc/posix-functions/vwprintf.texi: Likewise.
33273         * doc/posix-functions/vwscanf.texi: Likewise.
33274         * doc/posix-functions/wcpcpy.texi: Likewise.
33275         * doc/posix-functions/wcpncpy.texi: Likewise.
33276         * doc/posix-functions/wcscasecmp.texi: Likewise.
33277         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
33278         * doc/posix-functions/wcscoll_l.texi: Likewise.
33279         * doc/posix-functions/wcsdup.texi: Likewise.
33280         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33281         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
33282         * doc/posix-functions/wcsnlen.texi: Likewise.
33283         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33284         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33285         * doc/posix-functions/wctrans_l.texi: Likewise.
33286         * doc/posix-functions/wctype_l.texi: Likewise.
33287         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
33288         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
33289         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
33290         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
33291         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
33292         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
33293         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
33294         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
33295         * doc/glibc-functions/wcschrnul.texi: Likewise.
33296         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33297         * doc/glibc-functions/wcstod_l.texi: Likewise.
33298         * doc/glibc-functions/wcstof_l.texi: Likewise.
33299         * doc/glibc-functions/wcstol_l.texi: Likewise.
33300         * doc/glibc-functions/wcstold_l.texi: Likewise.
33301         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33302         * doc/glibc-functions/wcstoq.texi: Likewise.
33303         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33304         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33305         * doc/glibc-functions/wcstouq.texi: Likewise.
33306         * doc/glibc-functions/wmempcpy.texi: Likewise.
33307
33308 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
33309             Eric Blake  <ebb9@byu.net>
33310             Paolo Bonzini  <bonzini@gnu.org>
33311             Bruno Haible  <bruno@clisp.org>
33312
33313         Make c-stack work on Haiku.
33314         * lib/c-stack.c (SA_ONSTACK): Define fallback.
33315         (c_stack_action): Use SA_ONSTACK flag.
33316
33317 2008-12-22  Bruno Haible  <bruno@clisp.org>
33318
33319         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
33320
33321 2008-12-22  Bruno Haible  <bruno@clisp.org>
33322
33323         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
33324         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
33325         being overridden.
33326         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
33327         New macros.
33328         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
33329         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
33330         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
33331         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
33332
33333 2008-12-22  Bruno Haible  <bruno@clisp.org>
33334
33335         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
33336         from test code.
33337
33338 2008-12-22  Eric Blake  <ebb9@byu.net>
33339
33340         Avoid gcc warnings on cygwin.
33341         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
33342         Avoid unused variable.
33343         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
33344         Likewise.
33345
33346 2008-12-22  Bruno Haible  <bruno@clisp.org>
33347
33348         Remove HAVE_MBRTOWC conditionals.
33349         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
33350         (mbscasecmp): Assume mbrtowc function.
33351         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
33352         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
33353         * lib/mbschr.c: Include mbuiter.h unconditionally.
33354         (mbschr): Assume mbrtowc function.
33355         * lib/mbscspn.c: Include mbuiter.h unconditionally.
33356         (mbscspn): Assume mbrtowc function.
33357         * lib/mbslen.c: Include mbuiter.h unconditionally.
33358         (mbslen): Assume mbrtowc function.
33359         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
33360         (mbsncasecmp): Assume mbrtowc function.
33361         * lib/mbsnlen.c: Include mbiter.h unconditionally.
33362         (mbsnlen): Assume mbrtowc function.
33363         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
33364         (mbspbrk): Assume mbrtowc function.
33365         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
33366         (mbspcasecmp): Assume mbrtowc function.
33367         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
33368         (mbsrchr): Assume mbrtowc function.
33369         * lib/mbssep.c: Include mbuiter.h unconditionally.
33370         (mbssep): Assume mbrtowc function.
33371         * lib/mbsspn.c: Include mbuiter.h unconditionally.
33372         (mbsspn): Assume mbrtowc function.
33373         * lib/mbsstr.c: Include mbuiter.h unconditionally.
33374         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
33375         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
33376         (mbstok_r): Assume mbrtowc function.
33377         * lib/propername.c: Include mbuiter.h unconditionally.
33378         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
33379         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
33380         (trim2): Assume mbrtowc function.
33381         * lib/mbswidth.c (mbsinit): Remove fallback definition.
33382         (mbsnwidth): Assume mbrtowc function.
33383         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
33384         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
33385         fallback definitions.
33386         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
33387
33388 2008-12-22  Bruno Haible  <bruno@clisp.org>
33389
33390         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
33391
33392 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
33393
33394         * modules/regex: Request emulations for the mb*/wc* functions we need.
33395         * m4/regex.m4: Don't look for those functions here.
33396         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
33397
33398 2008-12-22  Bruno Haible  <bruno@clisp.org>
33399
33400         * modules/fnmatch (Depends-on): Remove duplicated dependency.
33401
33402 2008-12-21  Bruno Haible  <bruno@clisp.org>
33403
33404         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
33405         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
33406         (Include): Remove conditionalization.
33407         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
33408         (Include): Remove conditionalization.
33409         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
33410         (Include): Remove conditionalization.
33411         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
33412         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33413         * NEWS: Mention the change.
33414         Reported by Alan Hourihane <alanh@fairlite.co.uk>
33415         via Sergey Poznyakoff <gray@gnu.org.ua>.
33416
33417 2008-12-21  Bruno Haible  <bruno@clisp.org>
33418
33419         * MODULES.html.sh (Extended multibyte and wide character utilities
33420         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
33421         wcrtomb, wcsrtombs.
33422         (Support for systems lacking POSIX:2008): Add accept, bind, close,
33423         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
33424         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
33425         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
33426
33427 2008-12-21  Bruno Haible  <bruno@clisp.org>
33428
33429         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
33430
33431 2008-12-21  Bruno Haible  <bruno@clisp.org>
33432
33433         * modules/wcsnrtombs-tests: New file.
33434         * tests/test-wcsnrtombs1.sh: New file.
33435         * tests/test-wcsnrtombs2.sh: New file.
33436         * tests/test-wcsnrtombs3.sh: New file.
33437         * tests/test-wcsnrtombs4.sh: New file.
33438         * tests/test-wcsnrtombs.c: New file.
33439
33440         New module 'wcsnrtombs'.
33441         * lib/wchar.in.h (wcsnrtombs): New declaration.
33442         * lib/wcsnrtombs.c: New file.
33443         * lib/wcsrtombs-state.c: New file.
33444         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
33445         (internal_state): Remove variable.
33446         * m4/wcsnrtombs.m4: New file.
33447         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
33448         compilation units.
33449         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
33450         HAVE_WCSNRTOMBS.
33451         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
33452         HAVE_WCSNRTOMBS.
33453         * modules/wcsnrtombs: New file.
33454         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
33455         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
33456
33457 2008-12-21  Bruno Haible  <bruno@clisp.org>
33458
33459         * modules/wcsrtombs-tests: New file.
33460         * tests/test-wcsrtombs1.sh: New file.
33461         * tests/test-wcsrtombs2.sh: New file.
33462         * tests/test-wcsrtombs3.sh: New file.
33463         * tests/test-wcsrtombs4.sh: New file.
33464         * tests/test-wcsrtombs.c: New file.
33465
33466         New module 'wcsrtombs'.
33467         * lib/wchar.in.h (wcsrtombs): New declaration.
33468         * lib/wcsrtombs.c: New file.
33469         * m4/wcsrtombs.m4: New file.
33470         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
33471         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33472         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
33473         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33474         * modules/wcsrtombs: New file.
33475         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
33476         bugs.
33477
33478 2008-12-21  Bruno Haible  <bruno@clisp.org>
33479
33480         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
33481         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
33482         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
33483         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
33484         if not correct.
33485         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
33486         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
33487         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33488         m4/locale-zh.m4, m4/codeset.m4.
33489         * doc/posix-functions/wcrtomb.texi: Document the bug.
33490
33491 2008-12-21  Bruno Haible  <bruno@clisp.org>
33492
33493         Work around a btowc() bug on IRIX 6.5.
33494         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
33495         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
33496         REPLACE_WTOBC if not.
33497         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
33498         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
33499         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
33500
33501 2008-12-21  Bruno Haible  <bruno@clisp.org>
33502
33503         * modules/wcrtomb-tests: New file.
33504         * tests/test-wcrtomb.sh: New file.
33505         * tests/test-wcrtomb.c: New file.
33506
33507         New module 'wcrtomb'.
33508         * lib/wchar.in.h (wcrtomb): New declaration.
33509         * lib/wcrtomb.c: New file.
33510         * m4/wcrtomb.m4: New file.
33511         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
33512         HAVE_WCRTOMB.
33513         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
33514         HAVE_WCRTOMB.
33515         * modules/wcrtomb: New file.
33516         * doc/posix-functions/wcrtomb.texi: Mention the new module.
33517
33518 2008-12-21  Bruno Haible  <bruno@clisp.org>
33519
33520         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
33521         * modules/mbsrtowcs (Files): Likewise.
33522         * modules/wctob (Files): Likewise.
33523         * modules/c-strcase-tests (Files): Likewise.
33524         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33525         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33526         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33527         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33528         * modules/vasnprintf-posix-tests (Files): Likewise.
33529
33530 2008-12-21  William Pursell  <bill.pursell@gmail.com>
33531
33532         gitlog-to-changelog: pass all command-line arguments to git-log
33533         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
33534         it is sometimes convenient to filter the commits in various ways.
33535         gitlog-to-changelog only allows --since to specify a start date,
33536         but git-log itself supports many other filtering mechanisms.
33537         At the moment, I want to filter by branch name.  Rather than
33538         adding a --branch option to gitlog-to-changelog, it seems more
33539         flexible to simply pass all options directly to git-log and let
33540         git do the work.  Notice that this effectively makes --since a
33541         redundant option for gitlog-to-changelog, but removing it would
33542         require current usage to change since calls would then require
33543         an additional '--'.
33544
33545 2008-12-21  Bruno Haible  <bruno@clisp.org>
33546
33547         * modules/mbsnrtowcs-tests: New file.
33548         * tests/test-mbsnrtowcs1.sh: New file.
33549         * tests/test-mbsnrtowcs2.sh: New file.
33550         * tests/test-mbsnrtowcs3.sh: New file.
33551         * tests/test-mbsnrtowcs4.sh: New file.
33552         * tests/test-mbsnrtowcs.c: New file.
33553
33554         New module 'mbsnrtowcs'.
33555         * lib/wchar.in.h (mbsnrtowcs): New declaration.
33556         * lib/mbsnrtowcs.c: New file.
33557         * lib/mbsrtowcs-state.c: New file.
33558         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
33559         (internal_state): Remove variable.
33560         * m4/mbsnrtowcs.m4: New file.
33561         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
33562         compilation units.
33563         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
33564         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33565         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
33566         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33567         * modules/mbsnrtowcs: New file.
33568         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
33569         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
33570         portability problem.
33571
33572 2008-12-21  Bruno Haible  <bruno@clisp.org>
33573
33574         Work around mbsrtowcs bug.
33575         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
33576         (gl_FUNC_MBSRTOWCS): Invoke it.
33577         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33578         m4/locale-zh.m4.
33579         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
33580
33581 2008-12-21  Bruno Haible  <bruno@clisp.org>
33582
33583         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
33584
33585 2008-12-21  Bruno Haible  <bruno@clisp.org>
33586
33587         Update doc for AIX.
33588         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
33589         16-bit wchar_t type.
33590         * doc/posix-functions/btowc.texi: Likewise.
33591         * doc/posix-functions/fgetwc.texi: Likewise.
33592         * doc/posix-functions/fgetws.texi: Likewise.
33593         * doc/posix-functions/fputwc.texi: Likewise.
33594         * doc/posix-functions/fputws.texi: Likewise.
33595         * doc/posix-functions/fwide.texi: Likewise.
33596         * doc/posix-functions/fwprintf.texi: Likewise.
33597         * doc/posix-functions/fwscanf.texi: Likewise.
33598         * doc/posix-functions/getwchar.texi: Likewise.
33599         * doc/posix-functions/getwc.texi: Likewise.
33600         * doc/posix-functions/iswalnum.texi: Likewise.
33601         * doc/posix-functions/iswalpha.texi: Likewise.
33602         * doc/posix-functions/iswblank.texi: Likewise.
33603         * doc/posix-functions/iswcntrl.texi: Likewise.
33604         * doc/posix-functions/iswctype.texi: Likewise.
33605         * doc/posix-functions/iswdigit.texi: Likewise.
33606         * doc/posix-functions/iswgraph.texi: Likewise.
33607         * doc/posix-functions/iswlower.texi: Likewise.
33608         * doc/posix-functions/iswprint.texi: Likewise.
33609         * doc/posix-functions/iswpunct.texi: Likewise.
33610         * doc/posix-functions/iswspace.texi: Likewise.
33611         * doc/posix-functions/iswupper.texi: Likewise.
33612         * doc/posix-functions/iswxdigit.texi: Likewise.
33613         * doc/posix-functions/mbrtowc.texi: Likewise.
33614         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33615         * doc/posix-functions/mbstowcs.texi: Likewise.
33616         * doc/posix-functions/mbtowc.texi: Likewise.
33617         * doc/posix-functions/putwchar.texi: Likewise.
33618         * doc/posix-functions/putwc.texi: Likewise.
33619         * doc/posix-functions/swprintf.texi: Likewise.
33620         * doc/posix-functions/tolower.texi: Likewise.
33621         * doc/posix-functions/toupper.texi: Likewise.
33622         * doc/posix-functions/towctrans.texi: Likewise.
33623         * doc/posix-functions/ungetwc.texi: Likewise.
33624         * doc/posix-functions/vswprintf.texi: Likewise.
33625         * doc/posix-functions/wcrtomb.texi: Likewise.
33626         * doc/posix-functions/wcscat.texi: Likewise.
33627         * doc/posix-functions/wcschr.texi: Likewise.
33628         * doc/posix-functions/wcscmp.texi: Likewise.
33629         * doc/posix-functions/wcscoll.texi: Likewise.
33630         * doc/posix-functions/wcscpy.texi: Likewise.
33631         * doc/posix-functions/wcscspn.texi: Likewise.
33632         * doc/posix-functions/wcsftime.texi: Likewise.
33633         * doc/posix-functions/wcslen.texi: Likewise.
33634         * doc/posix-functions/wcsncat.texi: Likewise.
33635         * doc/posix-functions/wcsncmp.texi: Likewise.
33636         * doc/posix-functions/wcsncpy.texi: Likewise.
33637         * doc/posix-functions/wcspbrk.texi: Likewise.
33638         * doc/posix-functions/wcsrchr.texi: Likewise.
33639         * doc/posix-functions/wcsrtombs.texi: Likewise.
33640         * doc/posix-functions/wcsspn.texi: Likewise.
33641         * doc/posix-functions/wcsstr.texi: Likewise.
33642         * doc/posix-functions/wcstod.texi: Likewise.
33643         * doc/posix-functions/wcstof.texi: Likewise.
33644         * doc/posix-functions/wcstoimax.texi: Likewise.
33645         * doc/posix-functions/wcstok.texi: Likewise.
33646         * doc/posix-functions/wcstold.texi: Likewise.
33647         * doc/posix-functions/wcstoll.texi: Likewise.
33648         * doc/posix-functions/wcstol.texi: Likewise.
33649         * doc/posix-functions/wcstombs.texi: Likewise.
33650         * doc/posix-functions/wcstoull.texi: Likewise.
33651         * doc/posix-functions/wcstoul.texi: Likewise.
33652         * doc/posix-functions/wcstoumax.texi: Likewise.
33653         * doc/posix-functions/wcswidth.texi: Likewise.
33654         * doc/posix-functions/wcsxfrm.texi: Likewise.
33655         * doc/posix-functions/wctob.texi: Likewise.
33656         * doc/posix-functions/wctomb.texi: Likewise.
33657         * doc/posix-functions/wctrans.texi: Likewise.
33658         * doc/posix-functions/wctype.texi: Likewise.
33659         * doc/posix-functions/wcwidth.texi: Likewise.
33660         * doc/posix-functions/wmemchr.texi: Likewise.
33661         * doc/posix-functions/wmemcmp.texi: Likewise.
33662         * doc/posix-functions/wmemcpy.texi: Likewise.
33663         * doc/posix-functions/wmemmove.texi: Likewise.
33664         * doc/posix-functions/wmemset.texi: Likewise.
33665         * doc/posix-functions/wprintf.texi: Likewise.
33666         * doc/posix-functions/wscanf.texi: Likewise.
33667
33668 2008-12-21  Bruno Haible  <bruno@clisp.org>
33669
33670         Update doc for HP-UX 11.11.
33671         * doc/posix-functions/btowc.texi: Clarify that the function is missing
33672         in HP-UX version 11.00, not in all versions of HP-UX 11.
33673         * doc/posix-functions/fwide.texi: Likewise.
33674         * doc/posix-functions/fwprintf.texi: Likewise.
33675         * doc/posix-functions/fwscanf.texi: Likewise.
33676         * doc/posix-functions/inet_ntop.texi: Likewise.
33677         * doc/posix-functions/inet_pton.texi: Likewise.
33678         * doc/posix-functions/mbrlen.texi: Likewise.
33679         * doc/posix-functions/mbrtowc.texi: Likewise.
33680         * doc/posix-functions/mbsinit.texi: Likewise.
33681         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33682         * doc/posix-functions/swprintf.texi: Likewise.
33683         * doc/posix-functions/swscanf.texi: Likewise.
33684         * doc/posix-functions/towctrans.texi: Likewise.
33685         * doc/posix-functions/vfwprintf.texi: Likewise.
33686         * doc/posix-functions/vswprintf.texi: Likewise.
33687         * doc/posix-functions/vwprintf.texi: Likewise.
33688         * doc/posix-functions/wcrtomb.texi: Likewise.
33689         * doc/posix-functions/wcsrtombs.texi: Likewise.
33690         * doc/posix-functions/wcsstr.texi: Likewise.
33691         * doc/posix-functions/wctob.texi: Likewise.
33692         * doc/posix-functions/wctrans.texi: Likewise.
33693         * doc/posix-functions/wmemchr.texi: Likewise.
33694         * doc/posix-functions/wmemcmp.texi: Likewise.
33695         * doc/posix-functions/wmemcpy.texi: Likewise.
33696         * doc/posix-functions/wmemmove.texi: Likewise.
33697         * doc/posix-functions/wmemset.texi: Likewise.
33698         * doc/posix-functions/wprintf.texi: Likewise.
33699         * doc/posix-functions/wscanf.texi: Likewise.
33700
33701 2008-12-21  Bruno Haible  <bruno@clisp.org>
33702
33703         Work around a portability problem.
33704         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
33705         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
33706
33707 2008-12-20  Bruno Haible  <bruno@clisp.org>
33708
33709         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
33710         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
33711         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
33712         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
33713         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
33714
33715         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
33716         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
33717         set.
33718         (GNULIB_defined_mbstate_t): New macro.
33719         (mbsinit): Redefine if REPLACE_MBSINIT is set.
33720         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
33721         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
33722         reuses the system's mbrtowc function but works around the bugs.
33723         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
33724         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
33725         macros.
33726         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
33727         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
33728         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
33729         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
33730         REPLACE_MBSINIT if mbsinit needs to be overridden.
33731         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
33732         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33733         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
33734         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33735         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33736         m4/locale-zh.m4.
33737         (Depends): Add mbsinit.
33738         * modules/mbsinit (Depends): Add mbrtowc.
33739         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
33740
33741 2008-12-20  Bruno Haible  <bruno@clisp.org>
33742
33743         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
33744         so that there are no conversion errors on AIX.
33745         * tests/test-mbsrtowcs.c (main): LIkewise.
33746
33747 2008-12-20  Bruno Haible  <bruno@clisp.org>
33748
33749         Work around wctob bug on Solaris <= 9.
33750         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
33751         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
33752         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
33753         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
33754         * modules/wctob (Files): Add m4/locale-fr.m4.
33755         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
33756
33757 2008-12-20  Bruno Haible  <bruno@clisp.org>
33758
33759         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
33760         /dev/null.
33761         * tests/test-select-in.sh: Likewise.
33762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33763
33764 2008-12-20  Bruno Haible  <bruno@clisp.org>
33765
33766         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
33767         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
33768         Cygwin 1.5.x.
33769
33770 2008-12-20  Bruno Haible  <bruno@clisp.org>
33771
33772         Ensure mbstate_t is defined on HP-UX 11.11.
33773         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
33774         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
33775         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
33776         AC_USE_SYSTEM_EXTENSIONS.
33777         * modules/fnmatch (Depends-on): Add extensions.
33778         * modules/mbrlen (Depends-on): Likewise.
33779         * modules/mbrtowc (Depends-on): Likewise.
33780         * modules/mbsinit (Depends-on): Likewise.
33781         * modules/mbsrtowcs (Depends-on): Likewise.
33782         * modules/mbswidth (Depends-on): Likewise.
33783         * modules/quotearg (Depends-on): Likewise.
33784         * modules/strftime (Depends-on): Likewise.
33785
33786 2008-12-20  Bruno Haible  <bruno@clisp.org>
33787
33788         Ensure wctob is declared on IRIX 6.5.
33789         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
33790         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
33791         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
33792         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
33793         of HAVE_WCTOB.
33794         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
33795         HAVE_WCTOB.
33796         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
33797
33798 2008-12-19  Bruno Haible  <bruno@clisp.org>
33799
33800         * modules/mbsrtowcs-tests: New file.
33801         * tests/test-mbsrtowcs1.sh: New file.
33802         * tests/test-mbsrtowcs2.sh: New file.
33803         * tests/test-mbsrtowcs3.sh: New file.
33804         * tests/test-mbsrtowcs4.sh: New file.
33805         * tests/test-mbsrtowcs.c: New file.
33806
33807         New module 'mbsrtowcs'.
33808         * lib/wchar.in.h (mbsrtowcs): New declaration.
33809         * lib/mbsrtowcs.c: New file.
33810         * m4/mbsrtowcs.m4: New file.
33811         * modules/mbsrtowcs: New file.
33812         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
33813         HAVE_MBSRTOWCS.
33814         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
33815         HAVE_MBSRTOWCS.
33816         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
33817
33818 2008-12-19  Bruno Haible  <bruno@clisp.org>
33819
33820         New module 'mbrlen'.
33821         * lib/wchar.in.h (mbrlen): New declaration.
33822         * lib/mbrlen.c: New file.
33823         * m4/mbrlen.m4: New file.
33824         * modules/mbrlen: New file.
33825         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
33826         HAVE_MBRLEN.
33827         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
33828         HAVE_MBRLEN.
33829         * doc/posix-functions/mbrlen.texi: Document the new module.
33830
33831 2008-12-19  Bruno Haible  <bruno@clisp.org>
33832
33833         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
33834         * modules/mbrtowc (Depends-on): Add verify.
33835         Suggested by Paul Eggert.
33836
33837 2008-12-18  Bruno Haible  <bruno@clisp.org>
33838
33839         * modules/mbsinit-tests: New file.
33840         * tests/test-mbsinit.sh: New file.
33841         * tests/test-mbsinit.c: New file.
33842
33843 2008-12-18  Bruno Haible  <bruno@clisp.org>
33844
33845         * modules/mbrtowc-tests: New file.
33846         * tests/test-mbrtowc1.sh: New file.
33847         * tests/test-mbrtowc2.sh: New file.
33848         * tests/test-mbrtowc3.sh: New file.
33849         * tests/test-mbrtowc4.sh: New file.
33850         * tests/test-mbrtowc.c: New file.
33851
33852         New module 'mbrtowc'.
33853         * lib/wchar.in.h (mbstate_t): Override when the system does not have
33854         mbsinit and mbrtowc.
33855         (mbrtowc): New declaration.
33856         * lib/mbrtowc.c: New file.
33857         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
33858         * modules/mbrtowc: New file.
33859         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
33860         HAVE_MBRTOWC.
33861         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
33862         HAVE_MBRTOWC.
33863         * doc/posix-functions/mbrtowc.texi: Document the new module.
33864
33865 2008-12-18  Bruno Haible  <bruno@clisp.org>
33866
33867         New module 'wctob'.
33868         * lib/wchar.in.h (wctob): New declaration.
33869         * lib/wctob.c: New file.
33870         * m4/wctob.m4: New file.
33871         * modules/wctob: New file.
33872         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
33873         HAVE_WCTOB.
33874         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
33875         * doc/posix-functions/wctob.texi: Document the new module.
33876
33877 2008-12-18  Bruno Haible  <bruno@clisp.org>
33878
33879         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
33880         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
33881
33882 2008-12-18  Simon Josefsson  <simon@josefsson.org>
33883
33884         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
33885         G. Christensen" <tgc@jupiterrise.com>.
33886
33887         * lib/flock.c: Need to include errno.h.  Reported by "Tom
33888         G. Christensen" <tgc@jupiterrise.com>.
33889
33890         * lib/flock.c: Need to include string.h.  Reported by "Tom
33891         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
33892         <ebb9@byu.net>.
33893
33894 2008-12-18  Bruno Haible  <bruno@clisp.org>
33895
33896         * m4/locale-ja.m4: New file, from GNU gettext.
33897
33898 2008-12-17  Bruno Haible  <bruno@clisp.org>
33899
33900         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
33901         Suggested by Eric Blake.
33902
33903 2008-12-17  Bruno Haible  <bruno@clisp.org>
33904
33905         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
33906
33907 2008-12-17  Bruno Haible  <bruno@clisp.org>
33908
33909         * lib/mbsinit.c: Include verify.h. Verify an assumption.
33910         * modules/mbsinit (Depends-on): Add verify.
33911         Suggested by Paul Eggert.
33912
33913 2008-12-17  Bruno Haible  <bruno@clisp.org>
33914
33915         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
33916         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
33917         gl_FUNC_MBRTOWC.
33918         * m4/mbiter.m4 (gl_MBITER): LIkewise.
33919         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
33920         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
33921         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
33922         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
33923         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
33924         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
33925         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
33926         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
33927         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
33928         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
33929         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
33930         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
33931         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
33932         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
33933         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33934         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
33935         * modules/trim (configure.ac): Likewise.
33936
33937 2008-12-17  Bruno Haible  <bruno@clisp.org>
33938
33939         * modules/btowc-tests: New file.
33940         * tests/test-btowc1.sh: New file.
33941         * tests/test-btowc2.sh: New file.
33942         * tests/test-btowc.c: New file.
33943
33944         New module 'btowc'.
33945         * lib/wchar.in.h (btowc): New declaration.
33946         * lib/btowc.c: New file.
33947         * m4/btowc.m4: New file.
33948         * modules/btowc: New file.
33949         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
33950         HAVE_BTOWC.
33951         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
33952         * doc/posix-functions/btowc.texi: Document the new module.
33953
33954 2008-12-17  Bruno Haible  <bruno@clisp.org>
33955
33956         New module 'mbsinit'.
33957         * lib/wchar.in.h (mbsinit): New declaration.
33958         * lib/mbsinit.c: New file.
33959         * m4/mbsinit.m4: New file.
33960         * modules/mbsinit: New file.
33961         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
33962         HAVE_MBSINIT.
33963         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
33964         HAVE_MBSINIT.
33965         * doc/posix-functions/mbsinit.texi: Document the new module.
33966
33967 2008-12-16  Bruno Haible  <bruno@clisp.org>
33968
33969         * lib/unistd.in.h: Add comment.
33970         * tests/test-environ.c: Don't include <stdlib.h>.
33971
33972 2008-12-16  Bruno Haible  <bruno@clisp.org>
33973
33974         * lib/parse-duration.h (parse_duration): Document return value
33975         convention.
33976         * lib/parse-duration.c: Include specification header first. Add
33977         comments.
33978         (_): Remove macro.
33979         (parse_year_month_day, parse_hour_minute_second): Move side effects
33980         outside of strchr call.
33981         (parse_non_iso8601): Move side effects outside of isspace call.
33982         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
33983         call.
33984
33985 2008-12-16  Bruno Haible  <bruno@clisp.org>
33986
33987         * tests/test-parse-duration.sh: Produce no output when the test
33988         succeeds.
33989
33990 2008-12-16  Bruno Haible  <bruno@clisp.org>
33991
33992         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
33993         expressions.
33994
33995 2008-12-15  Bruno Haible  <bruno@clisp.org>
33996
33997         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
33998         * doc/glibc-functions/flistxattr.texi: Likewise.
33999         * doc/glibc-functions/fopencookie.texi: Likewise.
34000         * doc/glibc-functions/fremovexattr.texi: Likewise.
34001         * doc/glibc-functions/fsetxattr.texi: Likewise.
34002         * doc/glibc-functions/getxattr.texi: Likewise.
34003         * doc/glibc-functions/lgetxattr.texi: Likewise.
34004         * doc/glibc-functions/listxattr.texi: Likewise.
34005         * doc/glibc-functions/llistxattr.texi: Likewise.
34006         * doc/glibc-functions/lremovexattr.texi: Likewise.
34007         * doc/glibc-functions/lsetxattr.texi: Likewise.
34008         * doc/glibc-functions/removexattr.texi: Likewise.
34009         * doc/glibc-functions/setxattr.texi: Likewise.
34010         * doc/posix-functions/open_memstream.texi: Likewise.
34011
34012 2008-12-15  Eric Blake  <ebb9@byu.net>
34013
34014         Update doc for cygwin 1.7.
34015         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
34016         functions.
34017         * doc/posix-functions/fchmodat.texi: Likewise.
34018         * doc/posix-functions/fchownat.texi: Likewise.
34019         * doc/posix-functions/fdopendir.texi: Likewise.
34020         * doc/posix-functions/fmemopen.texi: Likewise.
34021         * doc/posix-functions/freeaddrinfo.texi: Likewise.
34022         * doc/posix-functions/fstatat.texi: Likewise.
34023         * doc/posix-functions/futimens.texi: Likewise.
34024         * doc/posix-functions/gai_strerror.texi: Likewise.
34025         * doc/posix-functions/getaddrinfo.texi: Likewise.
34026         * doc/posix-functions/getnameinfo.texi: Likewise.
34027         * doc/posix-functions/if_freenameindex.texi: Likewise.
34028         * doc/posix-functions/if_indextoname.texi: Likewise.
34029         * doc/posix-functions/if_nameindex.texi: Likewise.
34030         * doc/posix-functions/if_nametoindex.texi: Likewise.
34031         * doc/posix-functions/insque.texi: Likewise.
34032         * doc/posix-functions/linkat.texi: Likewise.
34033         * doc/posix-functions/llrint.texi: Likewise.
34034         * doc/posix-functions/llrintf.texi: Likewise.
34035         * doc/posix-functions/llrintl.texi: Likewise.
34036         * doc/posix-functions/lockf.texi: Likewise.
34037         * doc/posix-functions/lrintl.texi: Likewise.
34038         * doc/posix-functions/mkdirat.texi: Likewise.
34039         * doc/posix-functions/mkfifoat.texi: Likewise.
34040         * doc/posix-functions/mknodat.texi: Likewise.
34041         * doc/posix-functions/mq_close.texi: Likewise.
34042         * doc/posix-functions/mq_getattr.texi: Likewise.
34043         * doc/posix-functions/mq_notify.texi: Likewise.
34044         * doc/posix-functions/mq_open.texi: Likewise.
34045         * doc/posix-functions/mq_receive.texi: Likewise.
34046         * doc/posix-functions/mq_send.texi: Likewise.
34047         * doc/posix-functions/mq_setattr.texi: Likewise.
34048         * doc/posix-functions/mq_timedreceive.texi: Likewise.
34049         * doc/posix-functions/mq_timedsend.texi: Likewise.
34050         * doc/posix-functions/mq_unlink.texi: Likewise.
34051         * doc/posix-functions/open_memstream.texi: Likewise.
34052         * doc/posix-functions/openat.texi: Likewise.
34053         * doc/posix-functions/posix_fadvise.texi: Likewise.
34054         * doc/posix-functions/posix_fallocate.texi: Likewise.
34055         * doc/posix-functions/posix_madvise.texi: Likewise.
34056         * doc/posix-functions/posix_memalign.texi: Likewise.
34057         * doc/posix-functions/posix_openpt.texi: Likewise.
34058         * doc/posix-functions/readlinkat.texi: Likewise.
34059         * doc/posix-functions/remque.texi: Likewise.
34060         * doc/posix-functions/renameat.texi: Likewise.
34061         * doc/posix-functions/rintl.texi: Likewise.
34062         * doc/posix-functions/sem_unlink.texi: Likewise.
34063         * doc/posix-functions/shm_open.texi: Likewise.
34064         * doc/posix-functions/shm_unlink.texi: Likewise.
34065         * doc/posix-functions/signgam.texi: Likewise.
34066         * doc/posix-functions/sigset.texi: Likewise.
34067         * doc/posix-functions/stpcpy.texi: Likewise.
34068         * doc/posix-functions/stpncpy.texi: Likewise.
34069         * doc/posix-functions/strerror.texi: Likewise.
34070         * doc/posix-functions/strtod.texi: Likewise.
34071         * doc/posix-functions/symlinkat.texi: Likewise.
34072         * doc/posix-functions/unlinkat.texi: Likewise.
34073         * doc/posix-functions/utimensat.texi: Likewise.
34074         * doc/glibc-functions/bindresvport.texi: Likewise.
34075         * doc/glibc-functions/dn_expand.texi: Likewise.
34076         * doc/glibc-functions/exp10.texi: Likewise.
34077         * doc/glibc-functions/exp10f.texi: Likewise.
34078         * doc/glibc-functions/fgetxattr.texi: Likewise.
34079         * doc/glibc-functions/flistxattr.texi: Likewise.
34080         * doc/glibc-functions/fopencookie.texi: Likewise.
34081         * doc/glibc-functions/freeifaddrs.texi: Likewise.
34082         * doc/glibc-functions/fremovexattr.texi: Likewise.
34083         * doc/glibc-functions/fsetxattr.texi: Likewise.
34084         * doc/glibc-functions/getifaddrs.texi: Likewise.
34085         * doc/glibc-functions/getxattr.texi: Likewise.
34086         * doc/glibc-functions/lgetxattr.texi: Likewise.
34087         * doc/glibc-functions/listxattr.texi: Likewise.
34088         * doc/glibc-functions/llistxattr.texi: Likewise.
34089         * doc/glibc-functions/lremovexattr.texi: Likewise.
34090         * doc/glibc-functions/lsetxattr.texi: Likewise.
34091         * doc/glibc-functions/pow10.texi: Likewise.
34092         * doc/glibc-functions/pow10f.texi: Likewise.
34093         * doc/glibc-functions/rcmd_af.texi: Likewise.
34094         * doc/glibc-functions/removexattr.texi: Likewise.
34095         * doc/glibc-functions/res_init.texi: Likewise.
34096         * doc/glibc-functions/res_mkquery.texi: Likewise.
34097         * doc/glibc-functions/res_query.texi: Likewise.
34098         * doc/glibc-functions/res_querydomain.texi: Likewise.
34099         * doc/glibc-functions/res_send.texi: Likewise.
34100         * doc/glibc-functions/rresvport_af.texi: Likewise.
34101         * doc/glibc-functions/setxattr.texi: Likewise.
34102         * doc/glibc-functions/strcasestr.texi: Likewise.
34103
34104 2008-12-15  Bruno Haible  <bruno@clisp.org>
34105
34106         Fix compilation error on OSF/1 4.0.
34107         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
34108         <sys/time.h>, simply delegate to the system header.
34109         Reported by Daniel Richard G. <oss@teragram.com>.
34110
34111 2008-12-15  Bruno Haible  <bruno@clisp.org>
34112
34113         * doc/posix-functions/openat.texi: Mention the 'openat' module.
34114         * doc/posix-functions/fchmodat.texi: Likewise.
34115         * doc/posix-functions/fchownat.texi: Likewise.
34116         * doc/posix-functions/fdopendir.texi: Likewise.
34117         * doc/posix-functions/fstatat.texi: Likewise.
34118         * doc/posix-functions/mkdirat.texi: Likewise.
34119         * doc/posix-functions/unlinkat.texi: Likewise.
34120
34121 2008-12-14  Bruno Haible  <bruno@clisp.org>
34122
34123         Update doc for POSIX:2008.
34124         * doc/posix-functions/faccessat.texi: New file.
34125         * doc/posix-functions/fchmodat.texi: New file.
34126         * doc/posix-functions/fchownat.texi: New file.
34127         * doc/posix-functions/fdopendir.texi: New file.
34128         * doc/posix-functions/fstatat.texi: New file.
34129         * doc/posix-functions/futimens.texi: New file.
34130         * doc/posix-functions/linkat.texi: New file.
34131         * doc/posix-functions/mkdirat.texi: New file.
34132         * doc/posix-functions/mkfifoat.texi: New file.
34133         * doc/posix-functions/mknodat.texi: New file.
34134         * doc/posix-functions/open_wmemstream.texi: New file.
34135         * doc/posix-functions/openat.texi: New file.
34136         * doc/posix-functions/psiginfo.texi: New file.
34137         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
34138         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
34139         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
34140         * doc/posix-functions/readlinkat.texi: New file.
34141         * doc/posix-functions/renameat.texi: New file.
34142         * doc/posix-functions/strerror_l.texi: New file.
34143         * doc/posix-functions/symlinkat.texi: New file.
34144         * doc/posix-functions/unlinkat.texi: New file.
34145         * doc/posix-functions/utimensat.texi: New file.
34146         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34147
34148 2008-12-14  Bruno Haible  <bruno@clisp.org>
34149
34150         Update doc for POSIX:2008.
34151         * doc/posix-functions/alphasort.texi: Renamed from
34152         doc/glibc-functions/alphasort.texi.
34153         * doc/posix-functions/dirfd.texi: Renamed from
34154         doc/glibc-functions/dirfd.texi.
34155         * doc/posix-functions/dprintf.texi: Renamed from
34156         doc/glibc-functions/dprintf.texi.
34157         * doc/posix-functions/duplocale.texi: Renamed from
34158         doc/glibc-functions/duplocale.texi.
34159         * doc/posix-functions/fexecve.texi: Renamed from
34160         doc/glibc-functions/fexecve.texi.
34161         * doc/posix-functions/fmemopen.texi: Renamed from
34162         doc/glibc-functions/fmemopen.texi.
34163         * doc/posix-functions/freelocale.texi: Renamed from
34164         doc/glibc-functions/freelocale.texi.
34165         * doc/posix-functions/getdate_err.texi: Renamed from
34166         doc/glibc-functions/getdate_err.texi.
34167         * doc/posix-functions/isalnum_l.texi: Renamed from
34168         doc/glibc-functions/isalnum_l.texi.
34169         * doc/posix-functions/isalpha_l.texi: Renamed from
34170         doc/glibc-functions/isalpha_l.texi.
34171         * doc/posix-functions/isblank_l.texi: Renamed from
34172         doc/glibc-functions/isblank_l.texi.
34173         * doc/posix-functions/iscntrl_l.texi: Renamed from
34174         doc/glibc-functions/iscntrl_l.texi.
34175         * doc/posix-functions/isdigit_l.texi: Renamed from
34176         doc/glibc-functions/isdigit_l.texi.
34177         * doc/posix-functions/isgraph_l.texi: Renamed from
34178         doc/glibc-functions/isgraph_l.texi.
34179         * doc/posix-functions/islower_l.texi: Renamed from
34180         doc/glibc-functions/islower_l.texi.
34181         * doc/posix-functions/isprint_l.texi: Renamed from
34182         doc/glibc-functions/isprint_l.texi.
34183         * doc/posix-functions/ispunct_l.texi: Renamed from
34184         doc/glibc-functions/ispunct_l.texi.
34185         * doc/posix-functions/isspace_l.texi: Renamed from
34186         doc/glibc-functions/isspace_l.texi.
34187         * doc/posix-functions/isupper_l.texi: Renamed from
34188         doc/glibc-functions/isupper_l.texi.
34189         * doc/posix-functions/iswalnum_l.texi: Renamed from
34190         doc/glibc-functions/iswalnum_l.texi.
34191         * doc/posix-functions/iswalpha_l.texi: Renamed from
34192         doc/glibc-functions/iswalpha_l.texi.
34193         * doc/posix-functions/iswblank_l.texi: Renamed from
34194         doc/glibc-functions/iswblank_l.texi.
34195         * doc/posix-functions/iswcntrl_l.texi: Renamed from
34196         doc/glibc-functions/iswcntrl_l.texi.
34197         * doc/posix-functions/iswctype_l.texi: Renamed from
34198         doc/glibc-functions/iswctype_l.texi.
34199         * doc/posix-functions/iswdigit_l.texi: Renamed from
34200         doc/glibc-functions/iswdigit_l.texi.
34201         * doc/posix-functions/iswgraph_l.texi: Renamed from
34202         doc/glibc-functions/iswgraph_l.texi.
34203         * doc/posix-functions/iswlower_l.texi: Renamed from
34204         doc/glibc-functions/iswlower_l.texi.
34205         * doc/posix-functions/iswprint_l.texi: Renamed from
34206         doc/glibc-functions/iswprint_l.texi.
34207         * doc/posix-functions/iswpunct_l.texi: Renamed from
34208         doc/glibc-functions/iswpunct_l.texi.
34209         * doc/posix-functions/iswspace_l.texi: Renamed from
34210         doc/glibc-functions/iswspace_l.texi.
34211         * doc/posix-functions/iswupper_l.texi: Renamed from
34212         doc/glibc-functions/iswupper_l.texi.
34213         * doc/posix-functions/iswxdigit_l.texi: Renamed from
34214         doc/glibc-functions/iswxdigit_l.texi.
34215         * doc/posix-functions/isxdigit_l.texi: Renamed from
34216         doc/glibc-functions/isxdigit_l.texi.
34217         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
34218         doc/glibc-functions/mbsnrtowcs.texi.
34219         * doc/posix-functions/mkdtemp.texi: Renamed from
34220         doc/glibc-functions/mkdtemp.texi.
34221         * doc/posix-functions/newlocale.texi: Renamed from
34222         doc/glibc-functions/newlocale.texi.
34223         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
34224         doc/glibc-functions/nl_langinfo_l.texi.
34225         * doc/posix-functions/open_memstream.texi: Renamed from
34226         doc/glibc-functions/open_memstream.texi.
34227         * doc/posix-functions/opterr.texi: Renamed from
34228         doc/glibc-functions/opterr.texi.
34229         * doc/posix-functions/optind.texi: Renamed from
34230         doc/glibc-functions/optind.texi.
34231         * doc/posix-functions/optopt.texi: Renamed from
34232         doc/glibc-functions/optopt.texi.
34233         * doc/posix-functions/psignal.texi: Renamed from
34234         doc/glibc-functions/psignal.texi.
34235         * doc/posix-functions/scandir.texi: Renamed from
34236         doc/glibc-functions/scandir.texi.
34237         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
34238         doc/glibc-functions/sched_get_priority_min.texi.
34239         * doc/posix-functions/signgam.texi: Renamed from
34240         doc/glibc-functions/signgam.texi.
34241         * doc/posix-functions/stpcpy.texi: Renamed from
34242         doc/glibc-functions/stpcpy.texi.
34243         * doc/posix-functions/stpncpy.texi: Renamed from
34244         doc/glibc-functions/stpncpy.texi.
34245         * doc/posix-functions/strcasecmp_l.texi: Renamed from
34246         doc/glibc-functions/strcasecmp_l.texi.
34247         * doc/posix-functions/strcoll_l.texi: Renamed from
34248         doc/glibc-functions/strcoll_l.texi.
34249         * doc/posix-functions/strfmon_l.texi: Renamed from
34250         doc/glibc-functions/strfmon_l.texi.
34251         * doc/posix-functions/strftime_l.texi: Renamed from
34252         doc/glibc-functions/strftime_l.texi.
34253         * doc/posix-functions/strncasecmp_l.texi: Renamed from
34254         doc/glibc-functions/strncasecmp_l.texi.
34255         * doc/posix-functions/strndup.texi: Renamed from
34256         doc/glibc-functions/strndup.texi.
34257         * doc/posix-functions/strnlen.texi: Renamed from
34258         doc/glibc-functions/strnlen.texi.
34259         * doc/posix-functions/strsignal.texi: Renamed from
34260         doc/glibc-functions/strsignal.texi.
34261         * doc/posix-functions/strxfrm_l.texi: Renamed from
34262         doc/glibc-functions/strxfrm_l.texi.
34263         * doc/posix-functions/timer_gettime.texi: Renamed from
34264         doc/glibc-functions/timer_gettime.texi.
34265         * doc/posix-functions/tolower_l.texi: Renamed from
34266         doc/glibc-functions/tolower_l.texi.
34267         * doc/posix-functions/toupper_l.texi: Renamed from
34268         doc/glibc-functions/toupper_l.texi.
34269         * doc/posix-functions/towctrans_l.texi: Renamed from
34270         doc/glibc-functions/towctrans_l.texi.
34271         * doc/posix-functions/towlower_l.texi: Renamed from
34272         doc/glibc-functions/towlower_l.texi.
34273         * doc/posix-functions/towupper_l.texi: Renamed from
34274         doc/glibc-functions/towupper_l.texi.
34275         * doc/posix-functions/uselocale.texi: Renamed from
34276         doc/glibc-functions/uselocale.texi.
34277         * doc/posix-functions/vdprintf.texi: Renamed from
34278         doc/glibc-functions/vdprintf.texi.
34279         * doc/posix-functions/wcpcpy.texi:
34280         Renamed from doc/glibc-functions/wcpcpy.texi.
34281         * doc/posix-functions/wcpncpy.texi: Renamed from
34282         doc/glibc-functions/wcpncpy.texi.
34283         * doc/posix-functions/wcscasecmp.texi: Renamed from
34284         doc/glibc-functions/wcscasecmp.texi.
34285         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
34286         doc/glibc-functions/wcscasecmp_l.texi.
34287         * doc/posix-functions/wcscoll_l.texi: Renamed from
34288         doc/glibc-functions/wcscoll_l.texi.
34289         * doc/posix-functions/wcsdup.texi: Renamed from
34290         doc/glibc-functions/wcsdup.texi.
34291         * doc/posix-functions/wcsncasecmp.texi: Renamed from
34292         doc/glibc-functions/wcsncasecmp.texi.
34293         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
34294         doc/glibc-functions/wcsncasecmp_l.texi.
34295         * doc/posix-functions/wcsnlen.texi: Renamed from
34296         doc/glibc-functions/wcsnlen.texi.
34297         * doc/posix-functions/wcsnrtombs.texi: Renamed from
34298         doc/glibc-functions/wcsnrtombs.texi.
34299         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
34300         doc/glibc-functions/wcsxfrm_l.texi.
34301         * doc/posix-functions/wctrans_l.texi: Renamed from
34302         doc/glibc-functions/wctrans_l.texi.
34303         * doc/posix-functions/wctype_l.texi: Renamed from
34304         doc/glibc-functions/wctype_l.texi.
34305         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34306         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
34307         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
34308         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
34309         these subsections.
34310         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
34311         Remove sections.
34312
34313 2008-12-14  Bruno Haible  <bruno@clisp.org>
34314
34315         Update doc for POSIX:2008.
34316         * doc/posix-functions/*.texi: Update URL of POSIX specification.
34317
34318 2008-12-14  Bruno Haible  <bruno@clisp.org>
34319
34320         Update doc for POSIX:2008.
34321         * doc/pastposix-functions/bcmp.texi: Renamed from
34322         doc/posix-functions/bcmp.texi.
34323         * doc/pastposix-functions/bcopy.texi: Renamed from
34324         doc/posix-functions/bcopy.texi.
34325         * doc/pastposix-functions/bsd_signal.texi: Renamed from
34326         doc/posix-functions/bsd_signal.texi.
34327         * doc/pastposix-functions/bzero.texi: Renamed from
34328         doc/posix-functions/bzero.texi.
34329         * doc/pastposix-functions/ecvt.texi: Renamed from
34330         doc/posix-functions/ecvt.texi.
34331         * doc/pastposix-functions/fcvt.texi: Renamed from
34332         doc/posix-functions/fcvt.texi.
34333         * doc/pastposix-functions/ftime.texi: Renamed from
34334         doc/posix-functions/ftime.texi.
34335         * doc/pastposix-functions/gcvt.texi: Renamed from
34336         doc/posix-functions/gcvt.texi.
34337         * doc/pastposix-functions/getcontext.texi: Renamed from
34338         doc/posix-functions/getcontext.texi.
34339         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
34340         doc/posix-functions/gethostbyaddr.texi.
34341         * doc/pastposix-functions/gethostbyname.texi: Renamed from
34342         doc/posix-functions/gethostbyname.texi.
34343         * doc/pastposix-functions/getwd.texi: Renamed from
34344         doc/posix-functions/getwd.texi.
34345         * doc/pastposix-functions/h_errno.texi: Renamed from
34346         doc/posix-functions/h_errno.texi.
34347         * doc/pastposix-functions/index.texi: Renamed from
34348         doc/posix-functions/index.texi.
34349         * doc/pastposix-functions/makecontext.texi: Renamed from
34350         doc/posix-functions/makecontext.texi.
34351         * doc/pastposix-functions/mktemp.texi: Renamed from
34352         doc/posix-functions/mktemp.texi.
34353         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
34354         doc/posix-functions/pthread_attr_getstackaddr.texi.
34355         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
34356         doc/posix-functions/pthread_attr_setstackaddr.texi.
34357         * doc/pastposix-functions/rindex.texi: Renamed from
34358         doc/posix-functions/rindex.texi.
34359         * doc/pastposix-functions/scalb.texi: Renamed from
34360         doc/posix-functions/scalb.texi.
34361         * doc/pastposix-functions/setcontext.texi: Renamed from
34362         doc/posix-functions/setcontext.texi.
34363         * doc/pastposix-functions/swapcontext.texi: Renamed from
34364         doc/posix-functions/swapcontext.texi.
34365         * doc/pastposix-functions/ualarm.texi: Renamed from
34366         doc/posix-functions/ualarm.texi.
34367         * doc/pastposix-functions/usleep.texi: Renamed from
34368         doc/posix-functions/usleep.texi.
34369         * doc/pastposix-functions/vfork.texi: Renamed from
34370         doc/posix-functions/vfork.texi.
34371         * doc/pastposix-functions/wcswcs.texi: Renamed from
34372         doc/posix-functions/wcswcs.texi.
34373         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
34374         (Function Substitutes): Update.
34375
34376 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34377
34378         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
34379         m4/strerror.m4.
34380
34381 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34382             Bruno Haible  <bruno@clisp.org>
34383
34384         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
34385
34386 2008-12-13  Bruno Haible  <bruno@clisp.org>
34387
34388         * modules/strtoull (Depends-on): Remove unistd.
34389
34390 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34391
34392         * modules/strtoull (Depends-on): Add stdlib.
34393
34394 2008-12-11  Simon Josefsson  <simon@josefsson.org>
34395
34396         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
34397
34398 2008-12-10  Jim Meyering  <meyering@redhat.com>
34399
34400         gl_ASSERT: don't say assertions are disabled when they're not
34401         * m4/assert.m4 (gl_ASSERT): Do not make configure report
34402         "checking whether to enable assertions... no", when they are in
34403         fact enabled.  This is solely a bug in the output of configure.
34404         In spite of saying "no", NDEBUG was not defined in that case.
34405         Also, as noted by Eric Blake, leave assertions enabled upon
34406         --enable-assert=INVALID.
34407
34408 2008-12-10  Bruno Haible  <bruno@clisp.org>
34409
34410         Change MODULES.html to refer to POSIX:2008 where possible.
34411         * MODULES.html.sh (POSIX2008_URL): New variable.
34412         (posix_headers): Remove sys/timeb, ucontext.
34413         (posix2001_headers): New variable.
34414         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
34415         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
34416         index, makecontext, mktemp, pthread_attr_getstackaddr,
34417         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
34418         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
34419         (posix2001_functions): New variable.
34420         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
34421         otherwise.
34422
34423 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34424
34425         add missing include to parse-duration.c
34426         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
34427         * modules/parse-duration (Depends-on): Add xalloc.
34428
34429         fix sed script reading maint.mk
34430         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
34431         (syntax-check-rules): Use it.
34432
34433 2008-12-09  Bruno Haible  <bruno@clisp.org>
34434
34435         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
34436         MacOS X 10.4/PowerPC.
34437         Reported by Simon Josefsson.
34438
34439 2008-12-08  Jim Meyering  <meyering@redhat.com>
34440
34441         work around mingw's lack of some S_IF definitions
34442         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
34443         Reported by Simon Josefsson.
34444
34445 2008-12-08  Bruno Haible  <bruno@clisp.org>
34446
34447         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
34448         applied to variables. Needed on MacOS X 10.4/PowerPC.
34449         Reported by Simon Josefsson.
34450
34451 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
34452         and Eric Blake  <ebb9@byu.net>
34453
34454         assert: honor --enable-assert
34455         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
34456         order to honor --enable-assert, rather than treating it as a
34457         synonym for --disable-assert.
34458
34459 2008-12-08  Jim Meyering  <meyering@redhat.com>
34460
34461         * lib/posixtm.c: Remove now-useless declaration of mktime.
34462
34463         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
34464
34465 2008-12-07  Bruno Haible  <bruno@clisp.org>
34466
34467         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
34468         test_once): Mark functions as static.
34469         * tests/test-tls.c (test_tls): Likewise.
34470
34471 2008-12-07  Bruno Haible  <bruno@clisp.org>
34472
34473         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
34474         iconv_register_autodetect.
34475
34476 2008-12-07  Jim Meyering  <meyering@redhat.com>
34477
34478         posixtm.c: avoid a warning
34479         * lib/posixtm.c (posixtime): Don't initialize tm0.
34480         It's no longer needed to placate gcc4's -Wuninitialized,
34481         and the attempt to placate would elicit a new warning.
34482
34483         unicodeio.c: mark unused parameters
34484         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34485         (fallback_failure_callback): Likewise.
34486
34487 2008-12-07  Bruno Haible  <bruno@clisp.org>
34488
34489         * gnulib-tool (func_create_testdir): When building the tests
34490         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
34491         Reported by Simon Josefsson.
34492
34493 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34494
34495         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
34496
34497 2008-12-06  Bruno Haible  <bruno@clisp.org>
34498
34499         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
34500         Suggested by Eric Blake.
34501
34502 2008-12-06  Bruno Haible  <bruno@clisp.org>
34503
34504         Fix a c-stack test failure on MacOS X.
34505         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
34506         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
34507         handler for SIGBUS as well.
34508         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
34509         install a signal handler for SIGBUS as well.
34510         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
34511
34512 2008-12-06  Bruno Haible  <bruno@clisp.org>
34513
34514         Advocacy documentation.
34515         * doc/gnulib-intro.texi (Benefits): New section.
34516         * doc/gnulib.texi: Update.
34517
34518 2008-12-06  Bruno Haible  <bruno@clisp.org>
34519
34520         Document the 'manywarnings' module.
34521         * doc/manywarnings.texi: New file.
34522         * doc/gnulib.texi: Include it.
34523
34524 2008-12-05  Eric Blake  <ebb9@byu.net>
34525
34526         tests: silence some gcc warnings
34527         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
34528         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
34529         type mismatches.
34530
34531 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34532             Bruno Haible  <bruno@clisp.org>
34533
34534         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
34535
34536 2008-11-29  Jim Meyering  <meyering@redhat.com>
34537
34538         unicodeio.c: mark unused parameters
34539         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34540         (fallback_failure_callback): Likewise.
34541
34542         fts: fix a thinko
34543         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
34544         (set_stat_type): Return S_IF*-valued "type" directly.
34545         Prompted by James Youngman's spotting a related bug.
34546         Confirmed by further testing through find.
34547
34548         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
34549         * lib/fts.c (D_TYPE): Define.
34550         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
34551         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
34552         (s_ifmt_shift_bits): New function.
34553         (set_stat_type): New function.
34554         (fts_build): When not calling fts_stat, call set_stat_type
34555         to propagate dirent.d_type info to fts_read caller.
34556         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
34557         fts_statp->st_mode type information may be valid.
34558
34559 2008-11-28  Simon Josefsson  <simon@josefsson.org>
34560
34561         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
34562         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
34563         <sds@gnu.org>.
34564
34565 2008-11-20  Bruno Haible  <bruno@clisp.org>
34566
34567         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
34568         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
34569         INCLUDE_NEXT.
34570         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
34571         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
34572         * modules/math (Makefile.am): Substitute
34573         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
34574         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34575
34576 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34577             Bruno Haible  <bruno@clisp.org>
34578
34579         * lib/stdint.in.h: Define all type macros so that their expansion is
34580         a single typedef'ed token. Fixes a compilation failure in Boost which
34581         does "using ::int8_t;".
34582
34583 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34584
34585         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
34586         gl_MANYWARN_ALL_GCC.
34587         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
34588         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
34589         * modules/manywarnings: New file.
34590         * MODULES.html.sh: Mention manywarnings module.
34591
34592 2008-11-18  Bruno Haible  <bruno@clisp.org>
34593
34594         * doc/gnulib-tool.texi (Unit tests): New section.
34595
34596 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34597
34598         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
34599         paths like 'lib/po/foo.po'.
34600
34601 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34602
34603         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
34604         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
34605
34606 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34607
34608         * m4/warnings.m4: Use CPPFLAGS to really check whether the
34609         parameter works.
34610
34611 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34612
34613         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
34614
34615 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34616
34617         * modules/parse-duration-tests: New file.
34618         * tests/test-parse-duration.sh: New file.
34619         * tests/test-parse-duration.c: New file.
34620
34621         New module 'parse-duration'.
34622         * lib/parse-duration.h: New file.
34623         * lib/parse-duration.c: New file.
34624         * modules/parse-duration: New file.
34625
34626 2008-11-17  Bruno Haible  <bruno@clisp.org>
34627
34628         * tests/test-select-out.sh: Comment out the first pipe test.
34629         Reported by Simon Josefsson.
34630
34631 2008-11-17  Bruno Haible  <bruno@clisp.org>
34632
34633         * modules/getaddrinfo (Depends-on): Add servent, hostent.
34634         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
34635         gl_HOSTENT.
34636
34637 2008-11-17  Bruno Haible  <bruno@clisp.org>
34638
34639         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
34640         -lnetwork and -lnet. Needed for Haiku and BeOS.
34641
34642 2008-11-16  Bruno Haible  <bruno@clisp.org>
34643
34644         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
34645
34646 2008-11-16  Bruno Haible  <bruno@clisp.org>
34647
34648         Avoid test failure on Haiku.
34649         * tests/test-fsync.c: Include <errno.h>.
34650         (main): Don't require that fsync (0) fails.
34651
34652 2008-11-15  Bruno Haible  <bruno@clisp.org>
34653
34654         New module 'hostent'.
34655         * modules/hostent: New file.
34656         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
34657
34658 2008-11-15  Bruno Haible  <bruno@clisp.org>
34659
34660         New module 'servent'.
34661         * modules/servent: New file.
34662         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
34663
34664 2008-11-15  Bruno Haible  <bruno@clisp.org>
34665
34666         Avoid generating same test program with two different rules.
34667         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
34668         test-frexp to test-frexp-nolibm.
34669         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
34670         test-frexpl to test-frexpl-nolibm.
34671
34672 2008-11-15  Bruno Haible  <bruno@clisp.org>
34673
34674         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
34675         $(FREXPL_LIBM).
34676
34677 2008-11-15  Bruno Haible  <bruno@clisp.org>
34678
34679         * lib/netdb.in.h: Activate the definitions also when the system's
34680         <netdb.h> has 'struct addrinfo'.
34681         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
34682         EAI_OVERFLOW or AI_NUMERICSERV.
34683         * doc/posix-headers/netdb.texi: Document the problem.
34684
34685 2008-11-15  Bruno Haible  <bruno@clisp.org>
34686
34687         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
34688
34689         Make the 'sched' module work on platforms where <sched.h> exists but
34690         is incomplete (such as Haiku).
34691         * lib/sched.in.h; Include the system's <sched.h> if it exists.
34692         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
34693         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
34694         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
34695         HAVE_STRUCT_SCHED_PARAM.
34696         * modules/sched (Depends-on): Add include_next.
34697         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
34698         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
34699         * doc/posix-headers/sched.texi: Document the issue.
34700
34701 2008-11-13  Jim Meyering  <meyering@redhat.com>
34702
34703         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
34704         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
34705         test would fail due to the difference in the Report bugs to ...
34706         line.  The expected address is empty, "<>", while the actual
34707         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
34708
34709 2008-11-12  Bruno Haible  <bruno@clisp.org>
34710
34711         lstat: don't compile lstat.c on systems lacking lstat
34712         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
34713         which don't have lstat; this is handled by lib/sys_stat.in.h already.
34714         Reported by Daniel P. Berrange via Jim Meyering.
34715
34716 2008-11-12  Jim Meyering  <meyering@redhat.com>
34717
34718         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
34719
34720 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34721
34722         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
34723         instead.
34724
34725 2008-11-12  Bruno Haible  <bruno@clisp.org>
34726
34727         * lib/unicodeio.c: Include unistr.h.
34728         (utf8_wctomb): Remove function.
34729         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
34730
34731 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34732
34733         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
34734         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
34735         <bruno@clisp.org>.
34736         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
34737
34738 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34739
34740         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
34741         * doc/gnulib.texi: Add section for warnings.
34742
34743 2008-11-11  Bruno Haible  <bruno@clisp.org>
34744
34745         * lib/sockets.h: Add a comment.
34746
34747 2008-11-11  Karl Berry  <karl@gnu.org>
34748
34749         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
34750
34751 2008-11-11  Eric Blake  <ebb9@byu.net>
34752
34753         fdl.texi: avoid git symlinks
34754         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
34755
34756 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34757
34758         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
34759
34760 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34761
34762         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
34763         (gl_WARN_ADD): Substitute $2 if literal.
34764
34765 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34766
34767         * m4/warning.m4: Remove.
34768
34769 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34770
34771         * m4/warnings.m4: Almost complete rewrite. :-)
34772
34773 2008-11-10  Simon Josefsson  <simon@josefsson.org>
34774
34775         * modules/warnings: New module.
34776         * m4/warnings.m4: New file.
34777         * MODULES.html.sh: Mention warnings module.
34778         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
34779         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34780
34781 2008-11-10  Eric Blake  <ebb9@byu.net>
34782
34783         fdl.texi: make a symlink to the latest version
34784         * doc/standards.texi: Revert today's earlier change.
34785         * doc/fdl-1.2.texi: Rename from old fdl.texi...
34786         * doc/fdl.texi: ...and replace this with a symlink to the newer
34787         fdl-1.3.texi.
34788
34789 2008-11-10  Bruno Haible  <bruno@clisp.org>
34790
34791         * tests/test-select-fd.c (main): Accept the result file name as fourth
34792         argument.
34793         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
34794         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
34795
34796 2008-11-10  Bruno Haible  <bruno@clisp.org>
34797
34798         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
34799         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
34800         as autoconf-substituted macros.
34801         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
34802         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
34803         gl_NETDB_H_DEFAULTS. Set these variables.
34804         * modules/netdb (Makefile.am): Substitute these variables.
34805
34806 2008-11-10  Eric Blake  <ebb9@byu.net>
34807
34808         standards.texi: include correct file for FDL 1.3
34809         * doc/standards.texi (GNU Free Documentation License): Change
34810         include file to pull in FDL 1.3, not 1.2.
34811
34812         fdl.texi: revert accidental change to license
34813         * doc/fdl.texi: This is FDL 1.2, not 1.3.
34814
34815 2008-11-10  Bruno Haible  <bruno@clisp.org>
34816
34817         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
34818         cross-compiling guesses also when the native compile gives no result.
34819
34820 2008-11-10  Bruno Haible  <bruno@clisp.org>
34821
34822         * lib/spawni.c (__spawni): Force variable into the stack.
34823
34824 2008-11-10  Bruno Haible  <bruno@clisp.org>
34825
34826         Add support for Haiku.
34827         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
34828         glibc and BeOS, but also on Haiku.
34829         * lib/fpurge.c (fpurge): Likewise.
34830         * lib/freadable.c (freadable): Likewise.
34831         * lib/freadahead.c (freadahead): Likewise.
34832         * lib/freading.c (freading): Likewise.
34833         * lib/freadptr.c (freadptr): Likewise.
34834         * lib/freadseek.c (freadptrinc): Likewise.
34835         * lib/fseeko.c (rpl_fseeko): Likewise.
34836         * lib/fseterr.c (fseterr): Likewise.
34837         * lib/fwritable.c (fwritable): Likewise.
34838         * lib/fwriting.c (fwriting): Likewise.
34839         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
34840
34841 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34842
34843         * lib/config.charset: Treat Haiku like BeOS.
34844
34845 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34846
34847         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
34848         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
34849
34850 2008-11-08  Bruno Haible  <bruno@clisp.org>
34851
34852         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
34853         AC_CACHE_CHECK.
34854
34855 2008-11-08  Bruno Haible  <bruno@clisp.org>
34856
34857         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
34858
34859 2008-11-08  Bruno Haible  <bruno@clisp.org>
34860
34861         * tests/test-select-fd.c: New file.
34862         * tests/test-select-in.sh: New file.
34863         * tests/test-select-out.sh: New file.
34864         * tests/test-select-stdin.c: New file.
34865         * modules/select-tests (Files): Add the new files.
34866         (Depends-on): Add gettimeofday.
34867         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
34868         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
34869         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
34870
34871 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
34872             Bruno Haible  <bruno@clisp.org>
34873
34874         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
34875
34876 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
34877
34878         * build-aux/pmccabe2html: Added support for C++ source files.
34879
34880 2008-11-05  Ben Pfaff  <blp@gnu.org>
34881
34882         Fix lib/close.c build on Windows.
34883         * modules/close (Files): Add lib/w32sock.h.
34884
34885 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
34886
34887         Accept Bison's NEWS format.
34888         * build-aux/announce-gen (print_news_deltas): Tweak
34889         $re_prefix.
34890
34891 2008-11-04  Bruno Haible  <bruno@clisp.org>
34892
34893         * modules/random_r (Maintainer): Add glibc.
34894
34895 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34896
34897         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
34898         by karl@freefriends.org (Karl Berry).
34899         * doc/alloca.texi: Likewise.
34900         * doc/c-ctype.texi: Likewise.
34901         * doc/c-strcase.texi: Likewise.
34902         * doc/c-strcaseeq.texi: Likewise.
34903         * doc/c-strcasestr.texi: Likewise.
34904         * doc/c-strstr.texi: Likewise.
34905         * doc/c-strtod.texi: Likewise.
34906         * doc/c-strtold.texi: Likewise.
34907         * doc/ctime.texi: Likewise.
34908         * doc/error.texi: Likewise.
34909         * doc/fdl.texi: Likewise.
34910         * doc/gcd.texi: Likewise.
34911         * doc/getdate.texi: Likewise.
34912         * doc/gnulib-intro.texi: Likewise.
34913         * doc/gnulib-tool.texi: Likewise.
34914         * doc/gnulib.texi: Likewise.
34915         * doc/inet_ntoa.texi: Likewise.
34916         * doc/maintain.texi: Likewise.
34917         * doc/make-stds.texi: Likewise.
34918         * doc/quote.texi: Likewise.
34919         * doc/regexprops-generic.texi: Likewise.
34920         * doc/standards.texi: Likewise.
34921         * doc/verify.texi: Likewise.
34922         * doc/visibility.texi: Likewise.
34923         * doc/gnulib.texi (GNU Free Documentation License): Include
34924         fdl-1.3.texi instead of fdl.texi.
34925
34926 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34927
34928         * doc/fdl-1.3.texi: New file, from
34929         <http://www.gnu.org/licenses/fdl-1.3.texi>.
34930         * modules/fdl-1.3: Add.
34931         * MODULES.html.sh: Add fdl-1.3.
34932
34933 2008-11-03  Bruno Haible  <bruno@clisp.org>
34934
34935         Make determination of absolute name of header file work with AIX xlc.
34936         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
34937         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
34938         preprocessing.
34939         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34940         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
34941
34942 2008-11-03  Simon Josefsson  <simon@josefsson.org>
34943
34944         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
34945         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
34946         <ludo@gnu.org>.
34947
34948 2008-11-02  Bruno Haible  <bruno@clisp.org>
34949
34950         Mark 'strpbrk' obsolete.
34951         * modules/strpbrk (Status, Notice): New sections.
34952         * modules/strtok_r (Depends-on): Add strpbrk.
34953
34954 2008-11-02  Bruno Haible  <bruno@clisp.org>
34955
34956         Mark 'strdup' obsolete.
34957         * modules/strdup (Status, Notice): New sections.
34958         * modules/findprog (Depends-on): Add strdup.
34959         * modules/getaddrinfo (Depends-on): Likewise.
34960         * modules/localename (Depends-on): Likewise.
34961         * modules/relocatable-lib (Depends-on): Likewise.
34962         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
34963         * modules/relocatable-prog (Depends-on): Likewise.
34964         * modules/trim (Depends-on): Likewise.
34965         * modules/unictype/gen-ctype (Depends-on): Likewise.
34966         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34967
34968 2008-11-02  Bruno Haible  <bruno@clisp.org>
34969
34970         Mark 'strcspn' obsolete.
34971         * modules/strcspn (Status, Notice): New sections.
34972
34973 2008-11-02  Bruno Haible  <bruno@clisp.org>
34974
34975         Mark 'rmdir' obsolete.
34976         * modules/rmdir (Status, Notice): New sections.
34977         * modules/clean-temp (Depends-on): Add rmdir.
34978         * modules/openat (Depends-on): Likewise.
34979
34980 2008-11-02  Bruno Haible  <bruno@clisp.org>
34981
34982         Mark 'raise' obsolete.
34983         * modules/raise (Status, Notice): New sections.
34984         (Include): Specify <signal.h>.
34985         * modules/stdio (Depends-on): Add raise.
34986         * modules/write (Depends-on): Likewise.
34987
34988 2008-11-02  Bruno Haible  <bruno@clisp.org>
34989
34990         Mark 'memset' obsolete.
34991         * modules/memset (Status, Notice): New sections.
34992
34993 2008-11-02  Bruno Haible  <bruno@clisp.org>
34994
34995         Mark 'memmove' obsolete.
34996         * modules/memmove (Status, Notice): New sections.
34997         * modules/argp (Depends-on): Add memmove.
34998         * modules/argz (Depends-on): Likewise.
34999         * modules/canonicalize (Depends-on): Likewise.
35000         * modules/canonicalize-lgpl (Depends-on): Likewise.
35001         * modules/fts (Depends-on): Likewise.
35002         * modules/getcwd (Depends-on): Likewise.
35003         * modules/human (Depends-on): Likewise.
35004         * modules/regex (Depends-on): Likewise.
35005         * modules/striconveh (Depends-on): Likewise.
35006         * modules/trim (Depends-on): Likewise.
35007         * modules/unistr/u8-move (Depends-on): Likewise.
35008         * modules/unistr/u16-move (Depends-on): Likewise.
35009         * modules/unistr/u32-move (Depends-on): Likewise.
35010
35011 2008-11-02  Bruno Haible  <bruno@clisp.org>
35012
35013         Mark 'memcpy' obsolete.
35014         * modules/memcpy (Status, Notice): New sections.
35015
35016 2008-11-02  Bruno Haible  <bruno@clisp.org>
35017
35018         Mark 'memcmp' obsolete.
35019         * modules/memcmp (Status, Notice): New sections.
35020         * modules/argmatch (Depends-on): Add memchr.
35021         * modules/backupfile (Depends-on): Likewise.
35022         * modules/c-strcasestr (Depends-on): Likewise.
35023         * modules/crypto/des (Depends-on): Likewise.
35024         * modules/csharpcomp (Depends-on): Likewise.
35025         * modules/fnmatch (Depends-on): Likewise.
35026         * modules/git-merge-changelog (Depends-on): Likewise.
35027         * modules/isnand (Depends-on): Likewise.
35028         * modules/isnand-nolibm (Depends-on): Likewise.
35029         * modules/isnanf (Depends-on): Likewise.
35030         * modules/isnanf-nolibm (Depends-on): Likewise.
35031         * modules/isnanl (Depends-on): Likewise.
35032         * modules/isnanl-nolibm (Depends-on): Likewise.
35033         * modules/mbchar (Depends-on): Likewise.
35034         * modules/memcoll (Depends-on): Likewise.
35035         * modules/quotearg (Depends-on): Likewise.
35036         * modules/regex (Depends-on): Likewise.
35037         * modules/relocatable-prog (Depends-on): Likewise.
35038         * modules/same (Depends-on): Likewise.
35039         * modules/signbit (Depends-on): Likewise.
35040         * modules/strcasestr-simple (Depends-on): Likewise.
35041         * modules/unictype/gen-ctype (Depends-on): Likewise.
35042         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35043         * modules/uniname/uniname (Depends-on): Likewise.
35044         * modules/unistr/u8-cmp (Depends-on): Likewise.
35045
35046 2008-11-02  Bruno Haible  <bruno@clisp.org>
35047
35048         Mark 'memchr' obsolete.
35049         * modules/memchr (Status, Notice): New sections.
35050         * modules/argp (Depends-on): Add memchr.
35051         * modules/base64 (Depends-on): Likewise.
35052         * modules/c-strcasestr (Depends-on): Likewise.
35053         * modules/chdir-long (Depends-on): Likewise.
35054         * modules/fnmatch (Depends-on): Likewise.
35055         * modules/getsubopt (Depends-on): Likewise.
35056         * modules/git-merge-changelog (Depends-on): Likewise.
35057         * modules/glob (Depends-on): Likewise.
35058         * modules/strcasestr-simple (Depends-on): Likewise.
35059         * modules/strnlen (Depends-on): Likewise.
35060
35061 2008-11-02  Bruno Haible  <bruno@clisp.org>
35062
35063         Mark 'atexit' obsolete.
35064         * modules/atexit (Status, Notice): New sections.
35065         * modules/chdir-long (Depends-on): Add atexit.
35066         * modules/wait-process (Depends-on): Likewise.
35067
35068 2008-11-02  Bruno Haible  <bruno@clisp.org>
35069
35070         * gnulib-tool: New option --with-obsolete.
35071         (func_usage): Document it.
35072         (func_modules_transitive_closure): Drop obsolete dependencies if
35073         incobsolete is not true.
35074         (func_import): Read and save the incobsolete variable to the cache.
35075
35076 2008-11-02  Bruno Haible  <bruno@clisp.org>
35077
35078         * modules/TEMPLATE-EXTENDED: New field 'Status'.
35079         * gnulib-tool: New option --extract-status.
35080         (func_usage): Document it.
35081         (sed_extract_prog): Recognize it.
35082         (func_get_status): New function.
35083
35084 2008-10-30  Simon Josefsson  <simon@josefsson.org>
35085
35086         * modules/sockets (License): Change from LGPL to LGPLv2+.
35087
35088 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35089
35090         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
35091
35092 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35093
35094         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35095         Mention times and sys_times.
35096         * modules/sys_times, modules/sys_times-tests: New modules.
35097         * modules/times, modules/times-tests: Likewise
35098         * m4/sys_times_h.m4: New file.
35099         * lib/sys_times.in.h: Likewise
35100         * lib/times.c: Likewise.
35101         * tests/test-sys_times.c: Likewise.
35102         * tests/test-times.c: Likewise.
35103         * doc/posix-headers/sys_times.texi: Update.
35104         * doc/posix-functions/times.texi: Update.
35105
35106 2008-10-28  Jim Meyering  <meyering@redhat.com>
35107
35108         * modules/tempname (Depends-on): Add lstat.
35109
35110         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
35111
35112 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35113
35114         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
35115         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
35116         using idiom used elsewhere in gnulib.
35117
35118 2008-10-27  Jim Meyering  <meyering@redhat.com>
35119
35120         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
35121
35122 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35123
35124         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
35125         TESTS_ENVIRONMENT, for shell scripts that needs to call built
35126         programs.
35127         * tests/test-argp-2.sh: Use $EXEEXT when needed.
35128
35129 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35130
35131         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
35132
35133 2008-10-27  Bruno Haible  <bruno@clisp.org>
35134
35135         * tests/test-lstat.c: Include <stdio.h>.
35136
35137 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35138
35139         * modules/lstat-tests: New module.
35140         * tests/test-lstat.c: New file.
35141
35142 2008-10-26  Jim Meyering  <meyering@redhat.com>
35143
35144         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
35145
35146 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35147             Bruno Haible  <bruno@clisp.org>
35148
35149         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
35150         * modules/configmake (Include): Add a note that the include must come
35151         after all system headers.
35152         * lib/javaversion.c: Include configmake.h after all other includes.
35153
35154 2008-10-26  Bruno Haible  <bruno@clisp.org>
35155
35156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
35157         HAVE_STRUCT_RANDOM_DATA to 1.
35158         (gl_STDLIB_H): Simplify.
35159
35160 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35161
35162         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
35163         substitute HAVE_STRUCT_RANDOM_DATA.
35164         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
35165         random_data.
35166         * modules/stdlib (Makefile.am): Substitute
35167         HAVE_STRUCT_RANDOM_DATA.
35168
35169 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35170
35171         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
35172         * doc/gnulib-intro.texi (Copyright): Likewise.
35173
35174 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35175
35176         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
35177         findings.
35178
35179 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
35180             Bruno Haible  <bruno@clisp.org>
35181
35182         * lib/unistd.in.h: Include <winsock2.h>.
35183         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
35184         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
35185         Provide dummy declarations.
35186         (gethostname): Override.
35187         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
35188         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
35189         gl_PREREQ_SYS_H_WINSOCK2.
35190         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
35191         * doc/posix-functions/gethostname.texi: More details.
35192
35193 2008-10-25  Bruno Haible  <bruno@clisp.org>
35194
35195         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35196         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
35197         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
35198
35199         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
35200         here ...
35201         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
35202         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
35203         gl_UNISTD_H_DEFAULTS.
35204
35205 2008-10-25  Eric Blake  <ebb9@byu.net>
35206
35207         signbit: avoid spurious compiler failure
35208         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
35209         declarations inside function.
35210
35211 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35212             Bruno Haible  <bruno@clisp.org>
35213
35214         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
35215         * modules/random_r (Depends-on): Add stdint.
35216
35217 2008-10-24  Bruno Haible  <bruno@clisp.org>
35218
35219         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
35220         Eggert.
35221         * modules/strerror (License): Likewise.
35222
35223 2008-10-24  Jim Meyering  <meyering@redhat.com>
35224
35225         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
35226         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
35227
35228 2008-10-24  Eric Blake  <ebb9@byu.net>
35229
35230         getgroups: fix compilation when getgroups is available
35231         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
35232         but with <config.h> override of getgroups disabled.
35233
35234 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35235
35236         * doc/gnulib.texi (Header files): Add note about C++ problems.
35237         Explained by Bruno Haible <bruno@clisp.org>.
35238
35239 2008-10-23  Bruno Haible  <bruno@clisp.org>
35240
35241         Define a dummy SA_NODEFER macro on Interix.
35242         * lib/signal.in.h (SA_NODEFER): Define fallback.
35243         Reported by Aleksey Cheusov <cheusov@tut.by> via
35244         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
35245
35246 2008-10-23  Bruno Haible  <bruno@clisp.org>
35247
35248         * modules/freadahead (License): Change to LGPLv2+.
35249         Suggested by Simon Josefsson.
35250
35251 2008-10-23  Jim Meyering  <meyering@redhat.com>
35252
35253         random_r: new module
35254         * modules/random_r: New file.
35255         * m4/random_r.m4: New file.
35256         * lib/random_r.c: New file, from glibc.
35257         * modules/random_r-tests: New file.
35258         * tests/test-random_r.c: New file.
35259         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
35260          Declare.
35261         (RAND_MAX): Define.
35262         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
35263         * modules/stdlib: Substitute them, too.
35264         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
35265         * doc/glibc-functions/initstate_r.texi: Mention the new module.
35266         * doc/glibc-functions/random_r.texi: Likewise.
35267         * doc/glibc-functions/setstate_r.texi: Likewise.
35268         * doc/glibc-functions/srandom_r.texi: Likewise.
35269         * config/srclist.txt: Mention it.
35270
35271 2008-10-23  David Lutterkort  <lutter@redhat.com>
35272
35273         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
35274         link requirement
35275
35276 2008-10-23  Jim Meyering  <meyering@redhat.com>
35277
35278         selinux-h: mark parameters of stub functions as intentionally unused
35279         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
35280         * lib/se-context.in.h: Likewise.
35281
35282 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35283
35284         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
35285
35286 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35287
35288         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
35289
35290 2008-10-22  Eric Blake  <ebb9@byu.net>
35291
35292         glthread/thread: avoid compiler warning
35293         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
35294         Add unreachable abort to silence compiler.
35295
35296 2008-10-22  Eric Blake  <ebb9@byu.net>
35297
35298         netdb: also supply struct addrinfo for cygwin 1.5.x
35299         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
35300         older cygwin.
35301         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
35302         cygwin.
35303         * doc/posix-headers/netdb.texi (netdb.h): Document this.
35304
35305 2008-10-22  Bruno Haible  <bruno@clisp.org>
35306
35307         * users.txt: Update entry about pspp.
35308
35309 2008-10-21  Bruno Haible  <bruno@clisp.org>
35310
35311         Simplification.
35312         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
35313         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
35314
35315         Simplification.
35316         * lib/ioctl.c (ioctl): Don't undefine.
35317         * lib/socket.c (socket): Don't undefine.
35318
35319         Remove unused module indicator macros.
35320         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
35321         GNULIB_$1 as a C macro.
35322
35323         * doc/posix-functions/close.texi: Undo last change.
35324         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
35325         Windows platforms.
35326
35327 2008-10-21  Bruno Haible  <bruno@clisp.org>
35328
35329         Add gethostname() declaration to <unistd.h>.
35330         * lib/unistd.in.h (gethostname): New declaration.
35331         * lib/gethostname.c: Include <unistd.h>.
35332         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
35333         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
35334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
35335         and HAVE_GETHOSTNAME.
35336         * modules/gethostname (Depends-on): Add unistd.
35337         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35338         (Include): Specify <unistd.h>.
35339         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
35340         HAVE_GETHOSTNAME.
35341         * tests/test-gethostname.c: Include <unistd.h> first.
35342
35343 2008-10-21  Bruno Haible  <bruno@clisp.org>
35344
35345         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
35346         * modules/select-tests (Depends-on): Likewise.
35347         Reported by Simon Josefsson.
35348
35349 2008-10-21  Simon Josefsson  <simon@josefsson.org>
35350
35351         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
35352         * lib/accept.c: New file, based on winsock.c.
35353         * lib/bind.c: New file, based on winsock.c.
35354         * lib/connect.c: New file, based on winsock.c.
35355         * lib/getpeername.c: New file, based on winsock.c.
35356         * lib/getsockname.c: New file, based on winsock.c.
35357         * lib/getsockopt.c: New file, based on winsock.c.
35358         * lib/ioctl.c: New file, based on winsock.c.
35359         * lib/listen.c: New file, based on winsock.c.
35360         * lib/recv.c: New file, based on winsock.c.
35361         * lib/recvfrom.c: New file, based on winsock.c.
35362         * lib/send.c: New file, based on winsock.c.
35363         * lib/sendto.c: New file, based on winsock.c.
35364         * lib/setsockopt.c: New file, based on winsock.c.
35365         * lib/shutdown.c: New file, based on winsock.c.
35366         * lib/socket.c: New file, based on winsock.c.
35367         * lib/w32sock.h: New file, based on winsock.c.
35368         * lib/winsock.c: Remove file.
35369         * modules/accept: Likewise.
35370         * modules/bind: Likewise.
35371         * modules/connect: Likewise.
35372         * modules/getpeername: Likewise.
35373         * modules/getsockname: Likewise.
35374         * modules/getsockopt: Likewise.
35375         * modules/ioctl: Likewise.
35376         * modules/listen: Likewise.
35377         * modules/recv: Likewise.
35378         * modules/recvfrom: Likewise.
35379         * modules/send: Likewise.
35380         * modules/sendto: Likewise.
35381         * modules/setsockopt: Likewise.
35382         * modules/shutdown: Likewise.
35383         * modules/socket: Use socket.c instead of winsock.c.
35384         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
35385         * doc/posix-functions/accept.texi: Doc fix.
35386         * doc/posix-functions/bind.texi: Doc fix.
35387         * doc/posix-functions/close.texi: Doc fix.
35388         * doc/posix-functions/connect.texi: Doc fix.
35389         * doc/posix-functions/getpeername.texi: Doc fix.
35390         * doc/posix-functions/getsockname.texi: Doc fix.
35391         * doc/posix-functions/getsockopt.texi: Doc fix.
35392         * doc/posix-functions/ioctl.texi: Doc fix.
35393         * doc/posix-functions/listen.texi: Doc fix.
35394         * doc/posix-functions/recv.texi: Doc fix.
35395         * doc/posix-functions/recvfrom.texi: Doc fix.
35396         * doc/posix-functions/send.texi: Doc fix.
35397         * doc/posix-functions/sendto.texi: Doc fix.
35398         * doc/posix-functions/setsockopt.texi: Doc fix.
35399         * doc/posix-functions/shutdown.texi: Doc fix.
35400         * doc/posix-functions/socket.texi: Doc fix.
35401
35402 2008-10-20  Bruno Haible  <bruno@clisp.org>
35403
35404         Take into account the role of SIGABRT_COMPAT on Windows 2008.
35405         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
35406         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
35407         as an alias for SIGABRT.
35408         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
35409         (sigaction): Map it to SIGABRT.
35410         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
35411
35412 2008-10-20  Bruno Haible  <bruno@clisp.org>
35413
35414         * lib/fts.c: Don't include lstat.h.
35415         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
35416
35417         Move the lstat() declaration to <sys/stat.h>.
35418         * lib/lstat.h: Remove file.
35419         * lib/sys_stat.in.h: Add special invocation convention.
35420         (lstat): New declaration.
35421         * lib/lstat.c (orig_lstat): New function.
35422         (rpl_lstat): Use orig_lstat instead of lstat.
35423         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
35424         AC_C_INLINE. Set REPLACE_LSTAT.
35425         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
35426         and REPLACE_LSTAT.
35427         * modules/lstat (Files): Remove lib/lstat.h.
35428         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35429         (Include): Specify <sys/stat.h> instead of lstat.h.
35430         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
35431         REPLACE_LSTAT.
35432         * NEWS: Mention the change.
35433
35434 2008-10-20  Bruno Haible  <bruno@clisp.org>
35435
35436         * modules/posix_spawn-tests: New file.
35437         * tests/test-posix_spawn3.c: New file.
35438
35439 2008-10-20  Bruno Haible  <bruno@clisp.org>
35440
35441         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
35442         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35443         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
35444         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35445         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
35446
35447 2008-10-20  Bruno Haible  <bruno@clisp.org>
35448
35449         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
35450         of posix_spawn on AIX 5.3.
35451
35452 2008-10-20  Bruno Haible  <bruno@clisp.org>
35453
35454         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
35455
35456 2008-10-20  Bruno Haible  <bruno@clisp.org>
35457
35458         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
35459         of AC_LANG_PROGRAM.
35460
35461 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35462
35463         * lib/netdb.in.h: Don't define GNU specific constants until they
35464         are supported or needed.  Reported by Bruno Haible
35465         <bruno@clisp.org>.
35466
35467 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35468
35469         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
35470
35471 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35472
35473         * lib/getaddrinfo.h: Remove file.
35474         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
35475         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
35476         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
35477         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
35478         * modules/netdb: Substitute GNULIB_GETADDRINFO.
35479         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
35480         * tests/test-getaddrinfo.c: Likewise.
35481         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
35482         * NEWS: Mention change.
35483
35484 2008-10-19  Bruno Haible  <bruno@clisp.org>
35485
35486         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
35487
35488 2008-10-19  Bruno Haible  <bruno@clisp.org>
35489
35490         * lib/wait-process.c: Include simply <sys/wait.h>.
35491         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
35492         WIFSTOPPED): Remove fallback definitions.
35493         * modules/wait-process (Depends-on): Add sys_wait.
35494
35495         New module 'sys_wait'.
35496         * modules/sys_wait: New file.
35497         * lib/sys_wait.in.h: New file, partially copied from
35498         lib/wait-process.c.
35499         * m4/sys_wait_h.m4: New file.
35500         * doc/posix-headers/sys_wait.texi: Mention the new module.
35501
35502 2008-10-19  Bruno Haible  <bruno@clisp.org>
35503
35504         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
35505
35506 2008-10-19  Bruno Haible  <bruno@clisp.org>
35507
35508         Assume that waitpid() fills an 'int' status, not a 'union wait'.
35509         * lib/wait-process.c (WAIT_T): Remove type.
35510         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
35511         (wait_subprocess): Update.
35512
35513 2008-10-19  Bruno Haible  <bruno@clisp.org>
35514
35515         New module 'atoll'.
35516         * modules/atoll: New file.
35517         * lib/stdlib.in.h (atoll): New declaration.
35518         * lib/atoll.c: New file, from glibc with modifications.
35519         * m4/atoll.m4: New file.
35520         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
35521         HAVE_ATOLL.
35522         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
35523         * doc/posix-functions/atoll.texi: Mention the new module.
35524
35525 2008-10-19  Bruno Haible  <bruno@clisp.org>
35526
35527         Add strtoull() declaration to <stdlib.h>.
35528         * lib/stdlib.in.h (strtoull): New declaration.
35529         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35530         Set HAVE_STRTOULL.
35531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
35532         HAVE_STRTOULL.
35533         * modules/strtoull (Depends-on): Add stdlib.
35534         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35535         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
35536         HAVE_STRTOULL.
35537
35538 2008-10-19  Bruno Haible  <bruno@clisp.org>
35539
35540         Add strtoll() declaration to <stdlib.h>.
35541         * lib/stdlib.in.h (strtoll): New declaration.
35542         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35543         Set HAVE_STRTOLL.
35544         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
35545         HAVE_STRTOLL.
35546         * modules/strtoll (Depends-on): Add stdlib.
35547         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35548         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
35549
35550 2008-10-19  Bruno Haible  <bruno@clisp.org>
35551
35552         * modules/bcopy (Depends-on): Add strings.
35553         (Include): Specify <strings.h>.
35554
35555 2008-10-19  Bruno Haible  <bruno@clisp.org>
35556
35557         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
35558
35559 2008-10-19  Bruno Haible  <bruno@clisp.org>
35560
35561         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
35562         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
35563         mingw.
35564
35565 2008-10-19  Bruno Haible  <bruno@clisp.org>
35566
35567         * lib/atanl.c: Don't include isnanl.h.
35568         * lib/cosl.c: Likewise.
35569         * lib/ldexpl.c: Likewise.
35570         * lib/logl.c: Likewise.
35571         * lib/sinl.c: Likewise.
35572         * lib/sqrtl.c: Likewise.
35573         * lib/tanl.c: Likewise.
35574
35575         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
35576         * lib/isnanf.h: Remove file.
35577         * lib/isnand.h: Remove file.
35578         * lib/isnanl.h: Remove file.
35579         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
35580         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
35581         macros.
35582         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
35583         HAVE_ISNANF, don't define it as a C macro.
35584         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
35585         HAVE_ISNAND, don't define it as a C macro.
35586         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
35587         HAVE_ISNANL, don't define it as a C macro.
35588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
35589         HAVE_ISNAN[FDL].
35590         * modules/isnanf (Files): Remove lib/isnanf.h.
35591         (Depends-on): Add math.
35592         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35593         (Include): Specify <math.h> instead of isnanf.h.
35594         * modules/isnand (Files): Remove lib/isnand.h.
35595         (Depends-on): Add math.
35596         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35597         (Include): Specify <math.h> instead of isnand.h.
35598         * modules/isnanl (Files): Remove lib/isnanl.h.
35599         (Depends-on): Add math.
35600         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35601         (Include): Specify <math.h> instead of isnanl.h.
35602         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
35603         HAVE_ISNAN[FDL].
35604         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
35605         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
35606         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
35607         * NEWS: Mention the change.
35608
35609 2008-10-18  Bruno Haible  <bruno@clisp.org>
35610
35611         Add getusershell(), setusershell(), endusershell() declarations to
35612         <unistd.h>.
35613         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
35614         declarations.
35615         * lib/getusershell.c: Include unistd.h.
35616         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
35617         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35618         HAVE_GETUSERSHELL.
35619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
35620         and HAVE_GETUSERSHELL.
35621         * modules/getusershell (Depends-on): Add unistd, extensions.
35622         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35623         (Include): Specify <unistd.h>.
35624         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
35625         HAVE_GETUSERSHELL.
35626
35627 2008-10-18  Bruno Haible  <bruno@clisp.org>
35628
35629         Add a getloadavg() declaration to <stdlib.h>.
35630         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
35631         getloadavg declaration.
35632         (getloadavg): New declaration.
35633         * lib/getloadavg.c: Include <stdlib.h> first.
35634         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
35635         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
35636         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
35637         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
35638         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35639         * modules/getloadavg (Depends-on): Add stdlib, extensions.
35640         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35641         (Include): Specify <stdlib.h>.
35642         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
35643         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35644
35645 2008-10-18  Bruno Haible  <bruno@clisp.org>
35646
35647         * lib/dirchownmod.c: Don't include lchmod.h.
35648
35649         Move the lchmod() declaration to <sys/stat.h>.
35650         * lib/lchmod.h: Remove file.
35651         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
35652         (lchmod): New declaration, moved here from lib/lchown.h.
35653         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
35654         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
35655         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
35656         and HAVE_LCHMOD.
35657         * modules/lchmod (Files): Remove lib/lchmod.h.
35658         (Depends-on): Add sys_stat, extensions.
35659         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35660         (Include): Specify <sys/stat.h> instead of lchmod.h.
35661         * modules/sys_stat (Depends-on): Add link-warning.
35662         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
35663         definition of GL_LINK_WARNING.
35664         * NEWS: Mention the change.
35665
35666 2008-10-18  Bruno Haible  <bruno@clisp.org>
35667
35668         * lib/fchdir.c: Don't include dirfd.h.
35669         * lib/fts.c: Likewise.
35670         * lib/getcwd.c: Likewise.
35671         * lib/glob.c: Likewise.
35672
35673         Move the dirfd() declaration to <dirent.h>.
35674         * lib/dirfd.h: Remove file.
35675         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
35676         (dirfd): New declaration.
35677         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
35678         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
35679         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
35680         HAVE_DECL_DIRFD.
35681         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
35682         HAVE_DECL_DIRFD.
35683         * modules/dirfd (Files): Remove lib/dirfd.h.
35684         (Depends-on): Add dirent, extensions.
35685         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
35686         (Include): Specify <dirent.h> instead of dirfd.h.
35687         * modules/dirent (Depends-on): Add link-warning.
35688         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
35689         definition of GL_LINK_WARNING.
35690         * NEWS: Mention the change.
35691
35692 2008-10-18  Bruno Haible  <bruno@clisp.org>
35693
35694         Move the euidaccess() declaration to <unistd.h>.
35695         * lib/euidaccess.h: Remove file.
35696         * lib/unistd.in.h (euidaccess): New declaration.
35697         * lib/euidaccess.c: Don't include euidaccess.h.
35698         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
35699         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
35700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
35701         and HAVE_EUIDACCESS.
35702         * modules/euidaccess (Files): Remove lib/euidaccess.h.
35703         (Depends-on): Add unistd.
35704         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35705         (Include): Specify <unistd.h> instead of euidaccess.h.
35706         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
35707         HAVE_EUIDACCESS.
35708         * NEWS: Mention the change.
35709
35710 2008-10-18  Bruno Haible  <bruno@clisp.org>
35711
35712         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
35713
35714         Move the getdomainname() declaration to <unistd.h>.
35715         * lib/getdomainname.h: Remove file.
35716         * lib/unistd.in.h (getdomainname): New declaration.
35717         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
35718         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
35719         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35720         HAVE_GETDOMAINNAME.
35721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35722         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
35723         * modules/getdomainname (Files): Remove lib/getdomainname.h.
35724         (Depends-on): Add unistd, extensions.
35725         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35726         (Includes): Specify <unistd.h> instead of getdomainname.h.
35727         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
35728         HAVE_GETDOMAINNAME.
35729         * NEWS: Mention the change.
35730
35731 2008-10-18  Bruno Haible  <bruno@clisp.org>
35732
35733         * modules/dirent: New file.
35734         * m4/dirent_h.m4: New file.
35735         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
35736         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
35737         * modules/fchdir (Files): Remove lib/dirent.in.h.
35738         (Depends-on): Add dirent.
35739         (Makefile.am): Move rules to modules/dirent.
35740         * doc/posix-headers/dirent.texi: Mention the new module.
35741
35742 2008-10-18  Bruno Haible  <bruno@clisp.org>
35743
35744         Avoid -Wunused-parameter warnings in public gnulib header files.
35745         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
35746         macro.
35747         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
35748
35749 2008-10-18  Bruno Haible  <bruno@clisp.org>
35750
35751         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
35752         * doc/glibc-functions/error.texi: Mention the module 'error'.
35753         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
35754         * doc/glibc-functions/getdomainname.texi: Mention the module
35755         'getdomainname'.
35756         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
35757         * doc/glibc-functions/getpagesize.texi: Mention the module
35758         'getpagesize'.
35759         * doc/glibc-functions/getusershell.texi: Mention the module
35760         'getusershell'.
35761         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
35762         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
35763         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
35764         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
35765         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
35766         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
35767         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
35768         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
35769         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
35770         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
35771         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
35772         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
35773         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
35774         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
35775
35776 2008-10-17  Bruno Haible  <bruno@clisp.org>
35777
35778         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
35779         HP-UX and IRIX, use -0.0L.
35780         * tests/test-ceill.c (minus_zero): Likewise.
35781         * tests/test-floorl.c (minus_zero): Likewise.
35782         * tests/test-frexpl.c (minus_zero): Likewise.
35783         * tests/test-isnan.c (minus_zerol): Likewise.
35784         * tests/test-isnanl.h (minus_zero): Likewise.
35785         * tests/test-ldexpl.c (minus_zero): Likewise.
35786         * tests/test-roundl.c (minus_zero): Likewise.
35787         * tests/test-signbit.c (minus_zerol): Likewise.
35788         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35789         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35790         * tests/test-truncl.c (minus_zero): Likewise.
35791         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35792         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35793         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
35794         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35795
35796 2008-10-17  Bruno Haible  <bruno@clisp.org>
35797
35798         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
35799         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
35800         that it gets activated only for gcc >= 3.0.
35801         * lib/dirent.in.h: Likewise.
35802         * lib/errno.in.h: Likewise.
35803         * lib/fcntl.in.h: Likewise.
35804         * lib/float.in.h: Likewise.
35805         * lib/iconv.in.h: Likewise.
35806         * lib/inttypes.in.h: Likewise.
35807         * lib/locale.in.h: Likewise.
35808         * lib/math.in.h: Likewise.
35809         * lib/netdb.in.h: Likewise.
35810         * lib/netinet_in.in.h: Likewise.
35811         * lib/search.in.h: Likewise.
35812         * lib/signal.in.h: Likewise.
35813         * lib/spawn.in.h: Likewise.
35814         * lib/stdarg.in.h: Likewise.
35815         * lib/stdint.in.h: Likewise.
35816         * lib/stdio.in.h: Likewise.
35817         * lib/stdlib.in.h: Likewise.
35818         * lib/string.in.h: Likewise.
35819         * lib/strings.in.h: Likewise.
35820         * lib/sys_file.in.h: Likewise.
35821         * lib/sys_ioctl.in.h: Likewise.
35822         * lib/sys_select.in.h: Likewise.
35823         * lib/sys_socket.in.h: Likewise.
35824         * lib/sys_stat.in.h: Likewise.
35825         * lib/sys_time.in.h: Likewise.
35826         * lib/sysexits.in.h: Likewise.
35827         * lib/time.in.h: Likewise.
35828         * lib/unistd.in.h: Likewise.
35829         * lib/wchar.in.h: Likewise.
35830         * lib/wctype.in.h: Likewise.
35831         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35832
35833 2008-10-17  Jim Meyering  <meyering@redhat.com>
35834
35835         ignore-value: don't depend on inline module
35836         * modules/ignore-value (Depends-on): Remove 'inline'.
35837         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
35838         Suggestion from Bruno Haible.
35839
35840 2008-10-17  Bruno Haible  <bruno@clisp.org>
35841
35842         New implementation of condition variables for Win32.
35843         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
35844         (gl_linked_waitqueue_t): New type.
35845         (gl_cond_t): Use it.
35846         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
35847         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
35848         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
35849         (glthread_cond_init_func, glthread_cond_wait_func,
35850         glthread_cond_timedwait_func, glthread_cond_signal_func,
35851         glthread_cond_broadcast_func, glthread_cond_destroy_func):
35852         Reimplemented on the basis of gl_linked_waitqueue_t.
35853         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
35854         gl_waitqueue_t.
35855         (gl_rwlock_t): Update.
35856         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
35857
35858 2008-10-17  Simon Josefsson  <simon@josefsson.org>
35859
35860         * modules/recvfrom (Depends-on): Add dependency on getpeername.
35861         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35862
35863 2008-10-17  Jim Meyering  <meyering@redhat.com>
35864
35865         ignore-value: new module
35866         * modules/ignore-value: New file.
35867         * lib/ignore-value.h: New file.
35868         * MODULES.html.sh (Compiler warning management): New section,
35869         just for this module.  More to come.
35870
35871 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35872
35873         open-safer.c: avoid 'signed and unsigned in conditional...' warning
35874         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
35875         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
35876
35877 2008-10-16  Jim Meyering  <meyering@redhat.com>
35878
35879         openat-die.c: avoid 'no previous prototype' warning
35880         * lib/openat-die.c: Include "openat.h".
35881         Reported by Reuben Thomas <rrt@sc3d.org>.
35882
35883 2008-10-16  Simon Josefsson  <simon@josefsson.org>
35884
35885         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
35886         * lib/netdb.in.h: Fix typo.
35887         Reported by Bruno Haible  <bruno@clisp.org>
35888
35889         * lib/netdb.in.h: Include sys/socket.h for platforms without
35890         netdb.h, to get structures like hostent on MinGW.
35891         * modules/netdb (Depends-on): Add sys_socket.
35892
35893 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35894
35895         * modules/netdb, modules/netdb-tests: New file.
35896         * m4/netdb_h.m4: New file.
35897         * lib/netdb.in.h: Add, currently just an empty file pending
35898         definitions.
35899         * tests/test-netdb.c: New file.
35900         * doc/posix-headers/netdb.texi: Mention that we replace it if
35901         needed.
35902         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35903         netdb.
35904
35905 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35906
35907         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
35908         with code.
35909
35910 2008-10-13  Bruno Haible  <bruno@clisp.org>
35911
35912         * lib/glthread/cond.c (glthread_cond_wait_func,
35913         glthread_cond_timedwait_func): Add a comment.
35914
35915 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35916
35917         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
35918         * tests/test-select.c: Likewise,
35919
35920 2008-10-13  Bruno Haible  <bruno@clisp.org>
35921
35922         * lib/glthread/cond.c (glthread_cond_wait_func,
35923         glthread_cond_timedwait_func): Fix variable name.
35924         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35925
35926 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
35927
35928         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
35929         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
35930         struct sockaddr.sa_len.
35931         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
35932
35933 2008-10-13  Simon Josefsson  <simon@josefsson.org>
35934
35935         * build-aux/pmccabe2html: Add css and css_url parameters.
35936
35937 2008-10-12  Bruno Haible  <bruno@clisp.org>
35938
35939         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
35940         calling aclx_get.
35941         Reported by Rainer Tammer <tammer@tammer.net>.
35942
35943 2008-10-12  Bruno Haible  <bruno@clisp.org>
35944
35945         Use msvcrt aware primitives for creation/termination of Win32 threads.
35946         * lib/glthread/thread.c: Include <process.h>.
35947         (glthread_create_func): Use _beginthreadex instead of CreateThread.
35948         (wrapper_func): Update signature.
35949         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
35950
35951 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35952             Bruno Haible  <bruno@clisp.org>
35953
35954         Provide a Win32 implementation of the 'cond' module.
35955         * lib/glthread/cond.h [USE_WIN32]: New implementation.
35956         * lib/glthread/cond.c (glthread_cond_init_func,
35957         glthread_cond_wait_func, glthread_cond_timedwait_func,
35958         glthread_cond_signal_func, glthread_cond_broadcast_func,
35959         glthread_cond_destroy_func) [USE_WIN32]: New functions.
35960         * modules/cond (Dependencies): Add gettimeofday.
35961
35962 2008-10-11  Bruno Haible  <bruno@clisp.org>
35963
35964         Make sleep work on older versions of mingw.
35965         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
35966         only whether it exists.
35967         * doc/posix-functions/sleep.texi: Mention the problem with older
35968         versions of mingw.
35969
35970 2008-10-11  Bruno Haible  <bruno@clisp.org>
35971
35972         New module 'shutdown'.
35973         * modules/shutdown: New file.
35974         * lib/sys_socket.in.h (shutdown): New declaration.
35975         * lib/winsock.c (shutdown): New function.
35976         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35977         GNULIB_SHUTDOWN.
35978         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
35979         * doc/posix-functions/shutdown.texi: Document the new module.
35980
35981 2008-10-11  Jim Meyering  <meyering@redhat.com>
35982
35983         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
35984
35985 2008-10-11  Bruno Haible  <bruno@clisp.org>
35986
35987         New module 'fclose'.
35988         * modules/fclose: New file.
35989         * lib/stdio.in.h (fclose): New declaration.
35990         * lib/fclose.c: New file.
35991         * m4/fclose.m4: New file.
35992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
35993         REPLACE_FCLOSE.
35994         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
35995         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
35996         REPLACE_FCLOSE.
35997         * modules/close (Depends-on): fclose.
35998         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
35999
36000 2008-10-11  Bruno Haible  <bruno@clisp.org>
36001
36002         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
36003         set errno and don't call _close.
36004
36005 2008-10-10  Bruno Haible  <bruno@clisp.org>
36006
36007         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
36008         ACL, not afterwards. Fixes test failure on Cygwin.
36009
36010 2008-10-09  Ben Pfaff  <blp@gnu.org>
36011
36012         * build-aux/announce-gen: Fix gnulib version related part of usage
36013         message.  Die with a useful error message if no tarballs are
36014         found.
36015
36016 2008-10-10  Jim Meyering  <meyering@redhat.com>
36017
36018         bootstrap: use git's --depth=N option only if it's supported
36019         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
36020         recognize the --depth option.  Reported by Pádraig Brady.
36021
36022 2008-10-09  Bruno Haible  <bruno@clisp.org>
36023
36024         New module 'ioctl'.
36025         * modules/ioctl: New file.
36026         * lib/sys_socket.in.h (ioctl): Remove declaration.
36027         * lib/winsock.c: Include <sys/ioctl.h>.
36028         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
36029         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36030         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
36031         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
36032         * doc/posix-functions/ioctl.texi: Mention the new module.
36033
36034 2008-10-09  Bruno Haible  <bruno@clisp.org>
36035
36036         New module 'sys_ioctl'.
36037         * lib/sys_ioctl.in.h: New file.
36038         * m4/sys_ioctl_h.m4: New file.
36039         * modules/sys_ioctl: New file.
36040         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
36041
36042 2008-10-09  Bruno Haible  <bruno@clisp.org>
36043
36044         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
36045         * lib/winsock.c: Include <stdarg.h>.
36046         (rpl_ioctl): Change to second argument 'int' and then varargs.
36047
36048 2008-10-09  Bruno Haible  <bruno@clisp.org>
36049
36050         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
36051         when the sys_socket module is present and the system has <winsock2.h>.
36052
36053 2008-10-09  Bruno Haible  <bruno@clisp.org>
36054
36055         * doc/posix-functions/close.texi: Mention module 'close' instead of
36056         module 'sys_socket'.
36057
36058 2008-10-09  Bruno Haible  <bruno@clisp.org>
36059
36060         * doc/glibc-headers/sys_ioctl.texi: New file.
36061         * doc/gnulib.texi: Include it.
36062
36063 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36064             Bruno Haible  <bruno@clisp.org>
36065
36066         Combine the two replacements of 'close'.
36067         * lib/sys_socket.in.h (close): Define to a reminder to include
36068         <unistd.h>.
36069         (_gl_close_fd_maybe_socket): New declaration.
36070         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
36071         * lib/winsock.c (close): Remove undefinition.
36072         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
36073         needed for the gnulib module 'close'.
36074         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
36075         define to an error symbol or to a warning, if suitable.
36076         * lib/close.c: Include <sys/socket.h>.
36077         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
36078         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
36079         UNISTD_H_HAVE_WINSOCK2_H.
36080         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
36081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36082         UNISTD_H_HAVE_WINSOCK2_H.
36083         * modules/sys_socket (Files): Add m4/unistd_h.m4.
36084         (configure.ac): Set a module indicator.
36085         (Makefile.am): Substitute GNULIB_CLOSE.
36086         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
36087         * modules/poll-tests (Depends-on): Add close.
36088         * modules/select-tests (Depends-on): Likewise.
36089
36090 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36091             Bruno Haible  <bruno@clisp.org>
36092
36093         New module 'close'.
36094         * modules/close: New file.
36095         * lib/unistd.in.h (close): Move declaration out of the
36096         FCHDIR_REPLACEMENT scope.
36097         (_gl_unregister_fd): New declaration.
36098         * lib/close.c: New file.
36099         * lib/fchdir.c (rpl_close): Remove function.
36100         * m4/close.m4: New file.
36101         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36102         close.
36103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
36104         REPLACE_CLOSE.
36105         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
36106         REPLACE_CLOSE.
36107         * modules/fchdir (Depends-on): Add close.
36108
36109 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36110             Bruno Haible  <bruno@clisp.org>
36111
36112         * lib/fcntl.in.h (open): Simplify conditionals.
36113         (_gl_register_fd): New declaration.
36114         * lib/fchdir.c (rpl_open): Remove function.
36115         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
36116         also.
36117         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
36118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36119         open.
36120
36121 2008-10-09  Jim Meyering  <meyering@redhat.com>
36122
36123         GNUmakefile: use the more name-space-friendly "_version"
36124         * top/GNUmakefile (_dummy): Update.
36125         (_version): Rename from "version".
36126
36127 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36128             Bruno Haible  <bruno@clisp.org>
36129
36130         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
36131         rpl_close.
36132         (_gl_register_fd): New function, extracted from rpl_open.
36133         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
36134         (rpl_open, rpl_opendir): Use _gl_register_fd.
36135
36136 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36137
36138         Fix organization of 'open' replacement.
36139         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
36140         (gl_FUNC_OPEN): Use it.
36141         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
36142
36143 2008-10-08  Bruno Haible  <bruno@clisp.org>
36144
36145         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
36146
36147 2008-10-08  Simon Josefsson  <simon@josefsson.org>
36148
36149         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
36150         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
36151         listen).
36152
36153 2008-10-08  Eric Blake  <ebb9@byu.net>
36154
36155         GNUmakefile: add 'make version' target
36156         * top/GNUmakefile (_curr-ver): Split version update rules...
36157         (version): ...into a target.
36158
36159 2008-10-07  Bruno Haible  <bruno@clisp.org>
36160
36161         Use a more portable replacement expression for -0.0L.
36162         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
36163         instead of -0.0L. Fix m4 quotation.
36164
36165         * tests/test-signbit.c: Include <float.h>.
36166         (minus_zero): New variable.
36167         (test_signbitl): Use minus_zero instead of -zero.
36168         * modules/signbit-tests (Depends-on): Add float.
36169
36170         * tests/test-ceill.c: Include <float.h>.
36171         (zero): Remove variable.
36172         (minus_zero): New variable.
36173         (main): Use minus_zero instead of -zero.
36174         * modules/ceill-tests (Depends-on): Add float.
36175
36176         * tests/test-floorl.c: Include <float.h>.
36177         (zero): Remove variable.
36178         (minus_zero): New variable.
36179         (main): Use minus_zero instead of -zero.
36180         * modules/floorl-tests (Depends-on): Add float.
36181
36182         * tests/test-roundl.c: Include <float.h>.
36183         (zero): Remove variable.
36184         (minus_zero): New variable.
36185         (main): Use minus_zero instead of -zero.
36186         * modules/roundl-tests (Depends-on): Add float.
36187
36188         * tests/test-truncl.c: Include <float.h>.
36189         (zero): Remove variable.
36190         (minus_zero): New variable.
36191         (main): Use minus_zero instead of -zero.
36192         * modules/truncl-tests (Depends-on): Add float.
36193
36194         * tests/test-frexpl.c (zero): Remove variable.
36195         (minus_zero): New variable.
36196         (main): Use minus_zero instead of -zero.
36197         * modules/frexpl-tests (Depends-on): Add float.
36198
36199         * tests/test-isnan.c (zerol): Remove variable.
36200         (minus_zerol): New variable.
36201         (test_long_double): Use minus_zerol instead of -zerol.
36202         * modules/isnan-tests (Depends-on): Add float.
36203
36204         * tests/test-isnanl.h (zero): Remove variable.
36205         (minus_zero): New variable.
36206         (main): Use minus_zero instead of -zero.
36207         * modules/isnanl-nolibm-tests (Depends-on): Add float.
36208         * modules/isnanl-tests (Depends-on): Add float.
36209
36210         * tests/test-ldexpl.c (zero): Remove variable.
36211         (minus_zero): New variable.
36212         (main): Use minus_zero instead of -zero.
36213         * modules/ldexpl-tests (Depends-on): Add float.
36214
36215         * tests/test-snprintf-posix.h (zerol): Remove variable.
36216         (minus_zerol): New variable.
36217         (test_function): Use minus_zerol instead of -zerol.
36218         * modules/snprintf-posix-tests (Depends-on): Add float.
36219         * modules/vsnprintf-posix-tests (Depends-on): Add float.
36220
36221         * tests/test-sprintf-posix.h (zerol): Remove variable.
36222         (minus_zerol): New variable.
36223         (test_function): Use minus_zerol instead of -zerol.
36224         * modules/sprintf-posix-tests (Depends-on): Add float.
36225         * modules/vsprintf-posix-tests (Depends-on): Add float.
36226
36227         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
36228         (minus_zerol): New variable.
36229         (test_function): Use minus_zerol instead of -zerol.
36230         * modules/vasnprintf-posix-tests (Depends-on): Add float.
36231
36232         * tests/test-vasprintf-posix.c (zerol): Remove variable.
36233         (minus_zerol): New variable.
36234         (test_function): Use minus_zerol instead of -zerol.
36235         * modules/vasprintf-posix-tests (Depends-on): Add float.
36236
36237 2008-10-07  Simon Josefsson  <simon@josefsson.org>
36238
36239         * MODULES.html.sh (Support for building documentation): Mention
36240         pmccabe2html.  Sort entries.
36241
36242         Add pmccabe2html module, from gnupdf.
36243         * build-aux/pmccabe.css: New file.
36244         * build-aux/pmccabe2html: New file.
36245         * m4/pmccabe2html.m4: New file.
36246         * modules/pmccabe2html: New file.
36247
36248 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
36249
36250         flock: new module
36251         * MODULES.html.sh: Add to list of modules.
36252         * lib/flock.c: flock implementation for Windows and Unix systems
36253         which have fcntl.
36254         * doc/glibc-functions/flock.texi: Update documentation.
36255         * lib/sys_file.in.h: <sys/file.h> header file.
36256         * m4/flock.m4: M4 macros.
36257         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
36258         * modules/flock: flock module.
36259         * modules/flock-tests: flock tests module.
36260         * modules/sys_file: sys/file.h module.
36261         * tests/test-flock.c: test suite for flock.
36262
36263 2008-10-06  Jim Meyering  <meyering@redhat.com>
36264
36265         bootstrap: check for LT_INIT more portably still ;-)
36266         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
36267         Spotted by Bruno Haible.
36268
36269 2008-10-06  Eric Blake  <ebb9@byu.net>
36270
36271         test-signbit: avoid tripping Irix cc bug on -0.0L
36272         * tests/test-signbit.c (minus_zerol): Delete, and replace with
36273         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
36274         entire testsuite consistent and avoids an Irix 6.2 bug.
36275
36276 2008-10-05  Bruno Haible  <bruno@clisp.org>
36277             Jim Meyering  <jim@meyering.net>
36278
36279         Add an option for ignoring EPIPE during close_stdout.
36280         * lib/closeout.h: Include <stdbool.h>.
36281         (close_stdout_set_ignore_EPIPE): New declaration.
36282         * lib/closeout.c: Include <stdbool.h>.
36283         (ignore_EPIPE): New variable.
36284         (close_stdout_set_ignore_EPIPE): New function.
36285         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
36286         * lib/close-stream.c (close_stream): Mention the possible EPIPE
36287         failure.
36288         * modules/closeout (Depends-on): Add stdbool.
36289
36290 2008-10-05  Bruno Haible  <bruno@clisp.org>
36291
36292         * modules/accept: New file.
36293         * modules/bind: New file.
36294         * modules/connect: New file.
36295         * modules/getpeername: New file.
36296         * modules/getsockname: New file.
36297         * modules/getsockopt: New file.
36298         * modules/listen: New file.
36299         * modules/recv: New file.
36300         * modules/recvfrom: New file.
36301         * modules/send: New file.
36302         * modules/sendto: New file.
36303         * modules/setsockopt: New file.
36304         * modules/socket: New file.
36305         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
36306         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36307         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
36308         the particular module is requested. Add a link warning when the
36309         particular module is not requested.
36310         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
36311         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
36312         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
36313         the particular module is requested.
36314         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
36315         gl_SYS_SOCKET_H_DEFAULTS): New macros.
36316         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
36317         * modules/sys_socket (Depends-on): Add link-warning.
36318         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
36319         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
36320         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
36321         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
36322         GL_LINK_WARNING.
36323         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
36324         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
36325         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
36326         * doc/posix-functions/getpeername.texi: Mention the new module
36327         'getpeername'.
36328         * doc/posix-functions/getsockname.texi: Mention the new module
36329         'getsockname'.
36330         * doc/posix-functions/getsockopt.texi: Mention the new module
36331         'getsockopt'.
36332         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
36333         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
36334         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
36335         * doc/posix-functions/send.texi: Mention the new module 'send'.
36336         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
36337         * doc/posix-functions/setsockopt.texi: Mention the new module
36338         'setsockopt'.
36339         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
36340         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
36341         listen, connect, accept.
36342         * modules/select-tests (Depends-on): Likewise.
36343
36344 2008-10-05  Bruno Haible  <bruno@clisp.org>
36345
36346         * lib/winsock.c (strerror): Remove unused #undef.
36347         (rpl_close): Remove unused local variable.
36348
36349         * modules/sys_socket (Depends-on); Add errno.
36350
36351 2008-10-05  Bruno Haible  <bruno@clisp.org>
36352
36353         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
36354         (select): Add a link warning when the 'select' module is not used.
36355         * modules/sys_select (Depends-on): Add link-warning.
36356         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
36357         Suggested by Paolo Bonzini.
36358
36359 2008-10-05  Jim Meyering  <meyering@redhat.com>
36360
36361         bootstrap: check for LT_INIT more portably
36362         * build-aux/bootstrap: Avoid using grep -E, since it's not
36363         portable enough.  Suggestion from Bruno Haible.
36364
36365 2008-10-05  Bruno Haible  <bruno@clisp.org>
36366
36367         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
36368         as being fixed by gnulib.
36369
36370 2008-10-05  Bruno Haible  <bruno@clisp.org>
36371
36372         * modules/select-tests: New file, mostly copied from
36373         modules/sys_select-tests.
36374         * tests/test-select.c: New file, mostly copied from
36375         tests/test-sys_select.c.
36376         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
36377         * modules/sys_select-tests (Depends-on): Remove all dependencies.
36378         (Makefile.am): Remove test_sys_select_LDADD.
36379
36380         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
36381         to an undefined symbol, for an error message.
36382         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
36383         (gl_SYS_SELECT_H_DEFAULTS): New macro.
36384         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
36385         winsock-select.c here.
36386         * modules/sys_select (Files): Remove lib/winsock-select.c.
36387         (Depends-on): Remove alloca.
36388         (Makefile.am): Substitute GNULIB_SELECT.
36389         * modules/select: New file.
36390         * doc/posix-functions/select.texi: Update.
36391
36392 2008-10-05  Bruno Haible  <bruno@clisp.org>
36393
36394         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
36395         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
36396         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
36397         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
36398         getdtablesize.
36399         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
36400         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
36401
36402 2008-10-05  Bruno Haible  <bruno@clisp.org>
36403
36404         * modules/getdtablesize-tests: New file.
36405         * tests/test-getdtablesize.c: New file.
36406
36407         New module 'getdtablesize'.
36408         * lib/unistd.in.h (getdtablesize): New declaration.
36409         * lib/getdtablesize.c: New file.
36410         * m4/getdtablesize.m4: New file.
36411         * modules/getdtablesize: New file.
36412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36413         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
36414         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
36415         HAVE_GETDTABLESIZE.
36416         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
36417
36418 2008-10-05  Bruno Haible  <bruno@clisp.org>
36419
36420         * modules/sched (Makefile.am): Fix typo.
36421         Reported by Simon Josefsson.
36422
36423 2008-10-05  Jim Meyering  <meyering@redhat.com>
36424
36425         bootstrap: check for LT_INIT, too
36426         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
36427         are deprecated.  Suggestion from Ralf Wildenhues.
36428
36429 2008-10-05  Bruno Haible  <bruno@clisp.org>
36430
36431         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
36432         overriding them by ours.
36433         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
36434
36435 2008-10-05  Jim Meyering  <meyering@redhat.com>
36436
36437         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
36438         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
36439         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
36440
36441 2008-10-04  Bruno Haible  <bruno@clisp.org>
36442
36443         * modules/dup2 (License): Change to LGPLv2+.
36444         * modules/sleep (License): Likewise.
36445         * modules/perror (License): Likewise.
36446         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
36447         Blake.
36448         * modules/signal (License): Likewise.
36449         * modules/sigprocmask (License): Likewise.
36450         * modules/raise (License): Change to LGPLv2+, with approval by Jim
36451         Meyering.
36452
36453 2008-10-04  Bruno Haible  <bruno@clisp.org>
36454
36455         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
36456         Reported by Rainer Tammer <tammer@tammer.net>.
36457
36458 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
36459             Bruno Haible  <bruno@clisp.org>
36460
36461         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
36462         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
36463         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
36464
36465 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
36466
36467         filevercmp: new module
36468         * lib/filevercmp.h: New function filevercmp comparing version strings.
36469         * lib/filevercmp.c: Implementation of filevercmp function.
36470         * modules/filevercmp: Module metadata.
36471         * tests/test-filevercmp.c: Unit test for new module.
36472         * modules/filevercmp-tests: Unit test metadata.
36473         * MODULES.html.sh: Add filevercmp module.
36474
36475 2008-10-03  Bruno Haible  <bruno@clisp.org>
36476
36477         * lib/c-ctype.h: Add comment.
36478         Reported by Jim Meyering.
36479
36480 2008-10-02  Bruno Haible  <bruno@clisp.org>
36481
36482         * modules/posix_spawn-internal (Depends-on): Add 'open'.
36483
36484 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36485
36486         * build-aux/bootstrap: Allow renaming bootstrap, and change the
36487         name of bootstrap.conf accordingly.
36488
36489 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36490
36491         * build-aux/bootstrap: Install git-merge-changelog configuration
36492         items into .gitconfig if needed.
36493
36494 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36495
36496         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
36497         git repository, and initialize/update it accordingly.
36498
36499 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
36500
36501         * modules/fsync-tests: New file.
36502         * tests/test-fsync.c: New file.
36503
36504         New module 'fsync'.
36505         * lib/fsync.c: New file.
36506         * m4/fsync.m4: New file.
36507         * modules/fsync: New file.
36508         * lib/unistd.in.h (fsync): New declaration.
36509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
36510         GNULIB_FSYNC and HAVE_FSYNC.
36511         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
36512         * MODULES.html.sh (posix_functions): Add fsync.
36513         * doc/posix-functions/fsync.texi: Mention the new module.
36514
36515 2008-10-02  Jim Meyering  <meyering@redhat.com>
36516
36517         fts.c: sync with similar code from coreutils' remove.c
36518         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
36519         Guard also with "#if defined __linux__", since for now at least,
36520         this code is Linux-kernel-specific.
36521
36522 2008-10-02  Jim Meyering  <meyering@redhat.com>
36523
36524         fts: bug fixes
36525         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
36526         Include <sys/vfs.h>, not <sys/statfs.h>.
36527
36528         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
36529         Include <sys/vfs.h>, not <sys/statfs.h>.
36530
36531 2008-10-01  Bruno Haible  <bruno@clisp.org>
36532
36533         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
36534         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
36535         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
36536         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
36537         * doc/posix-functions/posix_spawnp.texi: Likewise.
36538         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
36539         whether posix_spawn actually works.
36540         * m4/pipe.m4 (gl_PIPE): Likewise.
36541         * modules/execute (Files): Add m4/posix_spawn.m4.
36542         * modules/pipe (Files): Add m4/posix_spawn.m4.
36543         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
36544
36545 2008-10-01  Jim Meyering  <meyering@redhat.com>
36546
36547         remove trailing spaces
36548         * NEWS: Likewise.
36549         * lib/poll.c (poll): Likewise.
36550         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
36551         * lib/winsock.c (rpl_close): Likewise.
36552         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
36553         * modules/yield: Likewise.
36554         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
36555         * tests/test-sys_select.c (connect_to_socket): Likewise.
36556
36557         fts.c: adjust a new interface to be more generally useful
36558         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
36559         (fts_build): Adjust caller.
36560
36561 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36562
36563         * modules/cond-tests: New file.
36564         * tests/test-cond.c: New file.
36565
36566 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36567             Bruno Haible  <bruno@clisp.org>
36568
36569         * modules/cond (Dependencies): Add errno, time.
36570         * lib/glthread/cond.h: Include <time.h>.
36571         (gl_cond_define, gl_cond_define_initialized): Use the same definition
36572         across platforms.
36573
36574 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36575             Bruno Haible  <bruno@clisp.org>
36576
36577         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
36578
36579 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36580             Bruno Haible  <bruno@clisp.org>
36581
36582         * modules/tls-tests (Depends-on): Add thread, yield.
36583         (configure.ac): Remove all checks.
36584         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
36585         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36586         gl_thread_self): Remove definitions. Include glthread/thread.h and
36587         glthread/yield.h instead.
36588         (test_tls): Pass an additional NULL argument to gl_thread_join.
36589
36590 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36591             Bruno Haible  <bruno@clisp.org>
36592
36593         * modules/lock-tests (Depends-on): Add thread, yield.
36594         (configure.ac): Remove all checks.
36595         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
36596         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36597         gl_thread_self): Remove definitions. Include glthread/thread.h and
36598         glthread/yield.h instead.
36599         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
36600         additional NULL argument to gl_thread_join.
36601
36602 2008-09-30  Bruno Haible  <bruno@clisp.org>
36603
36604         Fix the Win32 implementation of the 'thread' module.
36605         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
36606         pointer type.
36607         (gl_thread_self): Invoke gl_thread_self_func.
36608         (gl_thread_self_func): New declaration.
36609         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
36610         (do_init_self_key, init_self_key): New functions.
36611         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
36612         Remove some fields.
36613         (running_threads, running_lock): Remove variables.
36614         (get_current_thread_handle): New function.
36615         (gl_thread_self_func, wrapper_func, glthread_create_func,
36616         glthread_join_func, gl_thread_exit_func): Largely rewritten and
36617         simplified.
36618
36619 2008-09-30  Bruno Haible  <bruno@clisp.org>
36620
36621         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
36622         files.
36623
36624 2008-09-30  Jim Meyering  <meyering@redhat.com>
36625
36626         fts.m4: correct the test for statfs.f_type
36627         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
36628         when checking for statfs.f_type.
36629
36630 2008-09-15  Simon Josefsson  <simon@josefsson.org>
36631
36632         tests: avoid some compiler warnings
36633         * tests/test-memchr.c (main): Pass NULL indirectly.
36634         * tests/test-getdate.c (main): Remove unused variable 'ret'.
36635
36636 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
36637
36638         getdate.y: disallow countable dayshifts like "4 yesterday ago"
36639         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
36640         exactly specified dayshifts.
36641         (dayshift): New rule.
36642         (rel): Add dayshift.
36643         (relative_time_table) [tomorrow, yesterday, today, now]:
36644         Use tDAY_SHIFT in place of tDAY_UNIT.
36645         * tests/test-getdate.c: Add tests for now-disallowed countable
36646         dayshifts, e.g., "4 yesterday ago".
36647
36648 2008-09-29  Bruno Haible  <bruno@clisp.org>
36649
36650         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
36651         * tests/test-posix_spawn1.in.sh: Renamed from
36652         tests/test-posix_spawn.in.sh.
36653         * tests/test-posix_spawn2.c: New file.
36654         * tests/test-posix_spawn2.in.sh: New file.
36655         * modules/posix_spawnp-tests (Files): Update.
36656         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
36657
36658 2008-09-29  Bruno Haible  <bruno@clisp.org>
36659
36660         Propagate effects of putenv/setenv/unsetenv to child processes.
36661         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
36662         * lib/pipe.c (create_pipe): Likewise.
36663
36664 2008-09-29  Bruno Haible  <bruno@clisp.org>
36665
36666         Enable use of shell scripts as executables in mingw.
36667         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
36668         run the program as a shell script.
36669         * lib/pipe.c (create_pipe): Likewise.
36670         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
36671         resulting array.
36672
36673 2008-09-29  Eric Blake  <ebb9@byu.net>
36674
36675         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
36676
36677 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
36678
36679         * doc/posix-functions/accept.texi: Update mingw problems.
36680         * doc/posix-functions/bind.texi: Update mingw problems.
36681         * doc/posix-functions/close.texi: Update mingw problems.
36682         * doc/posix-functions/connect.texi: Update mingw problems.
36683         * doc/posix-functions/getpeername.texi: Update mingw problems.
36684         * doc/posix-functions/getsockname.texi: Update mingw problems.
36685         * doc/posix-functions/getsockopt.texi: Update mingw problems.
36686         * doc/posix-functions/ioctl.texi: Update mingw problems.
36687         * doc/posix-functions/listen.texi: Update mingw problems.
36688         * doc/posix-functions/recv.texi: Update mingw problems.
36689         * doc/posix-functions/recvfrom.texi: Update mingw problems.
36690         * doc/posix-functions/select.texi: Update mingw problems.
36691         * doc/posix-functions/send.texi: Update mingw problems.
36692         * doc/posix-functions/sendto.texi: Update mingw problems.
36693         * doc/posix-functions/setsockopt.texi: Update mingw problems.
36694         * doc/posix-functions/socket.texi: Update mingw problems.
36695
36696 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
36697             Bruno Haible  <bruno@clisp.org>
36698
36699         * lib/sys_select.in.h: Include sys/time.h.
36700         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
36701         * modules/sys_select: Depend on sys_time.
36702         * tests/test-sys_select.c: Test that sys/select.h defines struct
36703         timeval fully.
36704
36705 2008-09-29  Bruno Haible  <bruno@clisp.org>
36706
36707         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
36708         * lib/sys_select.in.h: Likewise.
36709
36710 2008-09-29  Bruno Haible  <bruno@clisp.org>
36711
36712         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
36713
36714 2008-09-29  Bruno Haible  <bruno@clisp.org>
36715
36716         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
36717         Set LIBSOCKET instead of augmenting LIBS.
36718         * modules/sockets (Link): New section.
36719         * modules/sockets-tests (test_sockets_LDADD): New variable.
36720         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
36721         * modules/poll-tests (test_poll_LDADD): New variable.
36722         * NEWS: Document the change.
36723
36724 2008-09-29  Bruno Haible  <bruno@clisp.org>
36725
36726         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
36727         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
36728         ARPA_INET_H directly.
36729         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36730
36731 2008-09-28  Bruno Haible  <bruno@clisp.org>
36732
36733         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
36734         from gl_HEADER_SYS_SOCKET.
36735         (gl_HEADER_SYS_SOCKET): Invoke it.
36736         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36737
36738 2008-09-28  Bruno Haible  <bruno@clisp.org>
36739
36740         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
36741         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
36742         Needed on OSF/1 4.0.
36743
36744 2008-09-28  Bruno Haible  <bruno@clisp.org>
36745
36746         Override open more carefully.
36747         * lib/open.c (orig_open): New function.
36748         (rpl_open): Use orig_open instead of open.
36749         * lib/fcntl.in.h: Add special invocation convention.
36750         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
36751         (gl_FUNC_OPEN): Invoke it.
36752
36753         Override freopen more carefully.
36754         * lib/freopen.c (orig_freopen): New function.
36755         (rpl_freopen): Use orig_freopen instead of freopen.
36756         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
36757         (gl_FUNC_FREOPEN): Invoke it.
36758
36759         Override fopen more carefully.
36760         * lib/fopen.c (orig_fopen): New function.
36761         (rpl_fopen): Use orig_fopen instead of fopen.
36762         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
36763         (gl_FUNC_FOPEN): Invoke it.
36764         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
36765
36766 2008-09-28  Bruno Haible  <bruno@clisp.org>
36767
36768         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
36769         SIGPIPE.
36770
36771 2008-09-28  Bruno Haible  <bruno@clisp.org>
36772
36773         * tests/test-sigaction.c (handler, main): Disable the check whether
36774         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
36775         glibc systems with LinuxThreads.
36776
36777 2008-09-28  Bruno Haible  <bruno@clisp.org>
36778
36779         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
36780
36781         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
36782         with AIX xlc.
36783         * lib/fcntl.in.h (open): Likewise.
36784         Reported by Rainer Tammer <tammer@tammer.net>.
36785
36786 2008-09-28  Bruno Haible  <bruno@clisp.org>
36787
36788         * modules/posix_spawnp-tests: New file.
36789         * tests/test-posix_spawn.c: New file.
36790         * tests/test-posix_spawn.in.sh: New file.
36791
36792         New module 'posix_spawnp'.
36793         * modules/posix_spawnp: New file.
36794         * lib/spawnp.c: New file, from GNU libc with modifications.
36795         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
36796
36797         New module 'posix_spawn'.
36798         * modules/posix_spawn: New file.
36799         * lib/spawn.c: New file, from GNU libc with modifications.
36800         * doc/posix-functions/posix_spawn.texi: Mention the new module.
36801
36802         New module 'posix_spawnattr_destroy'.
36803         * modules/posix_spawnattr_destroy: New file.
36804         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
36805         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
36806         module.
36807
36808         New module 'posix_spawnattr_setsigmask'.
36809         * modules/posix_spawnattr_setsigmask: New file.
36810         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
36811         modifications.
36812         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
36813         new module.
36814
36815         New module 'posix_spawnattr_getsigmask'.
36816         * modules/posix_spawnattr_getsigmask: New file.
36817         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
36818         modifications.
36819         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
36820         new module.
36821
36822         New module 'posix_spawnattr_setsigdefault'.
36823         * modules/posix_spawnattr_setsigdefault: New file.
36824         * lib/spawnattr_setdefault.c: New file, from GNU libc with
36825         modifications.
36826         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
36827         new module.
36828
36829         New module 'posix_spawnattr_getsigdefault'.
36830         * modules/posix_spawnattr_getsigdefault: New file.
36831         * lib/spawnattr_getdefault.c: New file, from GNU libc with
36832         modifications.
36833         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
36834         new module.
36835
36836         New module 'posix_spawnattr_setschedpolicy'.
36837         * modules/posix_spawnattr_setschedpolicy: New file.
36838         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
36839         modifications.
36840         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
36841         new module.
36842
36843         New module 'posix_spawnattr_getschedpolicy'.
36844         * modules/posix_spawnattr_getschedpolicy: New file.
36845         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
36846         modifications.
36847         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
36848         new module.
36849
36850         New module 'posix_spawnattr_setschedparam'.
36851         * modules/posix_spawnattr_setschedparam: New file.
36852         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
36853         modifications.
36854         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
36855         new module.
36856
36857         New module 'posix_spawnattr_getschedparam'.
36858         * modules/posix_spawnattr_getschedparam: New file.
36859         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
36860         modifications.
36861         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
36862         new module.
36863
36864         New module 'posix_spawnattr_setpgroup'.
36865         * modules/posix_spawnattr_setpgroup: New file.
36866         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
36867         modifications.
36868         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
36869         module.
36870
36871         New module 'posix_spawnattr_getpgroup'.
36872         * modules/posix_spawnattr_getpgroup: New file.
36873         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
36874         modifications.
36875         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
36876         module.
36877
36878         New module 'posix_spawnattr_setflags'.
36879         * modules/posix_spawnattr_setflags: New file.
36880         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
36881         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
36882         module.
36883
36884         New module 'posix_spawnattr_getflags'.
36885         * modules/posix_spawnattr_getflags: New file.
36886         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
36887         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
36888         module.
36889
36890         New module 'posix_spawnattr_init'.
36891         * modules/posix_spawnattr_init: New file.
36892         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
36893         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
36894         module.
36895
36896         New module 'posix_spawn_file_actions_destroy'.
36897         * modules/posix_spawn_file_actions_destroy: New file.
36898         * lib/spawn_faction_destroy.c: New file, from GNU libc with
36899         modifications.
36900         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
36901         the new module.
36902
36903         New module 'posix_spawn_file_actions_addopen'.
36904         * modules/posix_spawn_file_actions_addopen: New file.
36905         * lib/spawn_faction_addopen.c: New file, from GNU libc with
36906         modifications.
36907         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
36908         the new module.
36909
36910         New module 'posix_spawn_file_actions_adddup2'.
36911         * modules/posix_spawn_file_actions_adddup2: New file.
36912         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
36913         modifications.
36914         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
36915         the new module.
36916
36917         New module 'posix_spawn_file_actions_addclose'.
36918         * modules/posix_spawn_file_actions_addclose: New file.
36919         * lib/spawn_faction_addclose.c: New file, from GNU libc with
36920         modifications.
36921         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
36922         the new module.
36923
36924         New module 'posix_spawn_file_actions_init'.
36925         * modules/posix_spawn_file_actions_init: New file.
36926         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
36927         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
36928         new module.
36929
36930         New module 'posix_spawn-internal'.
36931         * modules/posix_spawn-internal: New file.
36932         * lib/spawn_int.h: New file, from GNU libc with modifications.
36933         * lib/spawni.c: New file, from GNU libc with modifications.
36934         * m4/posix_spawn.m4: New file.
36935
36936         New module 'spawn'.
36937         * modules/spawn: New file.
36938         * lib/spawn.in.h: New file, from GNU libc with modifications.
36939         * m4/spawn_h.m4: New file.
36940         * doc/posix-headers/spawn.texi: Mention the new module.
36941
36942 2008-09-28  Bruno Haible  <bruno@clisp.org>
36943
36944         * modules/sched-tests: New file.
36945         * tests/test-sched.c: New file.
36946
36947         New module 'sched'.
36948         * modules/sched: New file.
36949         * lib/sched.in.h: New file.
36950         * m4/sched_h.m4: New file.
36951         * doc/posix-headers/sched.texi: Mention the new module.
36952
36953 2008-09-27  Eric Blake  <ebb9@byu.net>
36954
36955         Fix previous patch, and tweak references to $0.
36956         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
36957         (func_version, func_gnulib_dir): Don't call this program
36958         gnulib-tool.
36959         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
36960         with using $0 in function.
36961         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
36962         (func_fatal_error): Reuse the name the user invoked us with.
36963
36964 2008-09-27  Bruno Haible  <bruno@clisp.org>
36965
36966         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
36967         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
36968         (gl_ICONV_H): Not here.
36969         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36970         instead of assigning ICONV_H directly.
36971
36972         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
36973         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
36974         WCHAR_H directly.
36975
36976 2008-09-27  Bruno Haible  <bruno@clisp.org>
36977
36978         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
36979         * modules/arpa_inet (Depends-on): Add link-warning.
36980         (Makefile.am): Insert the definition of GL_LINK-WARNING.
36981         * modules/unistd (Makefile.am): Likewise.
36982
36983 2008-09-26  Bruno Haible  <bruno@clisp.org>
36984
36985         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
36986         variables.
36987         (func_version): Essentially copied from gnulib-tool.
36988         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
36989         func_readlink): Copied from gnulib-tool.
36990
36991 2008-09-26  Bruno Haible  <bruno@clisp.org>
36992
36993         * gnulib-tool (func_version): Change directory to $gnulib_dir before
36994         invoking git-version-gen.
36995
36996 2008-09-26  Bruno Haible  <bruno@clisp.org>
36997
36998         * posix-modules: Update to directory names changed on 2008-01-19.
36999         Remove commas in output before splitting into words. No more need to
37000         avoid 'ftruncate' since 2007-02-19.
37001
37002 2008-09-26  Bruno Haible  <bruno@clisp.org>
37003
37004         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
37005
37006 2008-09-26  Bruno Haible  <bruno@clisp.org>
37007
37008         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
37009         * modules/fwriteerror (Depends-on): Add errno.
37010
37011 2008-09-26  Bruno Haible  <bruno@clisp.org>
37012
37013         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
37014         * tests/test-vc-list-files-cvs.sh: Likewise.
37015
37016 2008-09-26  Bruno Haible  <bruno@clisp.org>
37017
37018         * doc/posix-headers/sys_resource.texi: Reorder items.
37019
37020 2008-09-26  Jim Meyering  <meyering@redhat.com>
37021
37022         fts: tweak inode comparison function
37023         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
37024         inode numbers, as documented.
37025
37026         fts: sort dirent entries on inode number before traversing
37027         This avoids a quadratic, seek-related performance penalty when
37028         operating on a directory containing many entries (measurable at 10k;
37029         3.5 hours at 2 million entries with a cold cache) on certain types
37030         of file systems, including ext3 and ext4, but not tmpfs.
37031         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
37032         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
37033         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
37034         (fs_handles_readdir_ordered_dirents_efficiently): New function.
37035         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
37036         (fts_build): Set the stat.st_ino member from D_INO.
37037         If it is likely to be useful, sort dirent entries on inode number.
37038
37039         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
37040         and the struct statfs.f_type member.
37041         * modules/fts (Depends-on): Add d-ino.
37042
37043 2008-09-26  Bruno Haible  <bruno@clisp.org>
37044
37045         * modules/sigpipe-die (Depends-on): Add sigpipe.
37046
37047         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
37048         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
37049         and GNULIB_STDIO_H_SIGPIPE are set.
37050         * lib/stdio-write.c: New file.
37051         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
37052         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37053         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37054         REPLACE_STDIO_WRITE_FUNCS.
37055         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
37056         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37057         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37058         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37059         * modules/stdio (Files): Add lib/stdio-write.c.
37060         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
37061         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37062         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37063         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37064         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
37065         REPLACE_FPRINTF_POSIX.
37066         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
37067         REPLACE_PRINTF_POSIX.
37068         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
37069         REPLACE_VFPRINTF_POSIX.
37070         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
37071         REPLACE_VPRINTF_POSIX.
37072         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
37073         SIGPIPE issue.
37074         * doc/posix-functions/fputc.texi: Likewise.
37075         * doc/posix-functions/fputs.texi: Likewise.
37076         * doc/posix-functions/fwrite.texi: Likewise.
37077         * doc/posix-functions/printf.texi: Likewise.
37078         * doc/posix-functions/putc.texi: Likewise.
37079         * doc/posix-functions/putchar.texi: Likewise.
37080         * doc/posix-functions/puts.texi: Likewise.
37081         * doc/posix-functions/vfprintf.texi: Likewise.
37082         * doc/posix-functions/vprintf.texi: Likewise.
37083
37084         * modules/safe-write (Depends-on): Add write.
37085
37086         * modules/sigpipe-tests: New file.
37087         * tests/test-sigpipe.c: New file.
37088         * tests/test-sigpipe.sh: New file.
37089
37090         * modules/write: New file.
37091         * lib/unistd.in.h: Include <sys/types.h>.
37092         (write): New declaration.
37093         * lib/write.c: New file.
37094         * m4/write.m4: New file.
37095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37096         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
37097         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
37098         GNULIB_WRITE, REPLACE_WRITE.
37099         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
37100         and the SIGPIPE issue.
37101
37102         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
37103         (raise): New declaration.
37104         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
37105         (ext_signal): New function.
37106         (rpl_raise): New function.
37107         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
37108         GNULIB_SIGNAL_H_SIGPIPE.
37109         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
37110         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
37111
37112         * modules/sigpipe: New file.
37113         * m4/sigpipe.m4: New file.
37114
37115 2008-09-25  Derek Price  <derek@ximbiot.com>
37116             Bruno Haible  <bruno@clisp.org>
37117
37118         * gnulib-tool (func_import): Report all license incompatibilities, not
37119         just the first one.
37120
37121 2008-09-25  Bruno Haible  <bruno@clisp.org>
37122
37123         * gnulib-tool (func_import): When computing the edits, consider not
37124         only the Makefile.ams that exist but also those that will be generated.
37125
37126 2008-09-25  Simon Josefsson  <simon@josefsson.org>
37127
37128         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
37129         fixes gnulib-tool --test warning about duplicate dependency.
37130
37131 2008-09-25  Bruno Haible  <bruno@clisp.org>
37132
37133         * gnulib-tool: Don't ask the user to perform edits in the generated
37134         Makefile.ams.
37135         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
37136         apply to the Makefile.am being generated.
37137         (func_emit_tests_Makefile_am): Execute edits that apply to the
37138         Makefile.am being generated.
37139         (func_import): Setup list of Makefile.am edits before emitting the
37140         Makefile.ams, not at the end.
37141         (func_create_testdir): Update.
37142         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37143
37144 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37145
37146         * gnulib-tool (func_import): Store the --tests-base option in the
37147         comment in gnulib-cache.m4.
37148
37149 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
37150
37151         * NEWS: Document increased portability that sys_select now provides.
37152
37153         * lib/sys_select.in.h: Install select wrapper.
37154         * lib/sys_socket.in.h: Use more descriptive name when there is no
37155         select wrapper.
37156         * lib/winsock-select.c: New.
37157         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
37158         Require gl_HEADER_SYS_SOCKET.
37159         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
37160         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
37161         * tests/test-sys_select.c: Add functional tests.
37162
37163 2008-09-24  Eric Blake  <ebb9@byu.net>
37164
37165         open, fopen: close fd leak in last patch
37166         * lib/open.c (rpl_open): Close fd before returning error.
37167         * lib/fopen.c (rpl_fopen): Close fd before returning error.
37168         * doc/posix-functions/open.texi (open): Document that Irix also
37169         has the bug.
37170         * doc/posix-functions/fopen.texi (fopen): Likewise.
37171         Reported by Paolo Bonzini.
37172
37173 2008-09-24  Bruno Haible  <bruno@clisp.org>
37174
37175         Ensure that a filename ending in a slash cannot be used to access a
37176         non-directory.
37177         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
37178         to check whether it's really a directory.
37179         * lib/fopen.c: Include fcntl.h, unistd.h.
37180         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
37181         and fdopen().
37182         * modules/fopen (Depends-on): Add unistd.
37183         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
37184         * tests/test-fopen.c (main): Likewise.
37185         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
37186         * doc/posix-functions/fopen.texi: Likewise.
37187         Reported by Eric Blake.
37188
37189 2008-09-23  Eric Blake  <ebb9@byu.net>
37190
37191         c-stack: avoid compiler optimizations when provoking overflow
37192         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
37193         recursion harder to optimize, to ensure a stack overflow occurs.
37194         * tests/test-c-stack.c (recurse): Likewise.
37195         Borrowed from libsigsegv.
37196
37197         c-stack: work around Irix sigaltstack bug
37198         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
37199         whether sigaltstack uses wrong end of stack_t (copied in part from
37200         libsigsegv).
37201         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
37202         Irix bug, without requiring an over-allocation.
37203         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
37204         bug.
37205
37206         fopen: document mingw bug on directories
37207         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
37208         not allowing a stream visiting a directory, even though reading
37209         from such a stream is not portable.
37210
37211 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37212
37213         * lib/poll.c: Rewrite.
37214         * modules/poll: Depend on alloca.
37215
37216 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37217
37218         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
37219         instead define prototypes for a full set of wrappers.  Ensure
37220         that Cygwin does not use the compatibility code, which is only
37221         for MinGW.
37222         * lib/winsock.c: New.
37223         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
37224         * modules/sys_socket: Add lib/winsock.c.
37225
37226         * modules/poll-tests: Add errno and perror.
37227         * tests/test-poll.c: Use ioctl, not ioctlsocket.
37228
37229 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37230
37231         * tests/test-poll.c: Downgrade minimum needed Winsock version.
37232
37233 2008-09-23  Bruno Haible  <bruno@clisp.org>
37234
37235         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
37236         * doc/glibc-functions/*: Likewise.
37237
37238 2008-09-23  Simon Josefsson  <simon@josefsson.org>
37239
37240         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
37241         success.
37242
37243 2008-09-22  Eric Blake  <ebb9@byu.net>
37244             Bruno Haible  <bruno@clisp.org>
37245
37246         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
37247         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
37248         supply %A but mishandle pseudo-NaN.
37249         Reported by Simon Josefsson.
37250
37251 2008-09-21  Bruno Haible  <bruno@clisp.org>
37252
37253         * tests/test-lock.c (main): Tweak skip message.
37254         * tests/test-tls.c (main): Likewise.
37255
37256 2008-09-21  Bruno Haible  <bruno@clisp.org>
37257
37258         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
37259         whether 'struct sigaction' has sa_sigaction here...
37260         (gl_PREREQ_SIG_HANDLER_H): ... not here.
37261         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
37262
37263 2008-09-21  Bruno Haible  <bruno@clisp.org>
37264
37265         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
37266         section.
37267         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
37268         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
37269         the new section.
37270         (Support for obsolete systems lacking POSIX:2001): New section.
37271         (String handling <string.h>): Move strdup to the new section.
37272         Suggested by Simon Josefsson and Paolo Bonzini.
37273
37274 2008-09-21  Bruno Haible  <bruno@clisp.org>
37275
37276         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
37277         exponents in %e and %g results on 'long double'. Needed for mingw's
37278         improved *printf functions.
37279         * tests/test-vasprintf-posix.c (test_function): Likewise.
37280         * tests/test-snprintf-posix.h (test_function): Likewise.
37281         * tests/test-sprintf-posix.h (test_function): Likewise.
37282         Reported by Eric Blake.
37283
37284 2008-09-21  Bruno Haible  <bruno@clisp.org>
37285
37286         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
37287         * tests/test-sprintf-posix.h (test_function): Likewise.
37288
37289 2008-09-21  Bruno Haible  <bruno@clisp.org>
37290
37291         * modules/getpass (Depends-on): Add strdup-posix.
37292
37293         New module 'strdup-posix'.
37294         * modules/strdup-posix: New file.
37295         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
37296         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
37297         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37298         REPLACE_STRDUP.
37299         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
37300         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
37301         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37302         strdup-posix.
37303
37304         * modules/strdup (Depends-on): Remove malloc-posix.
37305
37306 2008-09-20  Bruno Haible  <bruno@clisp.org>
37307
37308         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
37309         Wildenhues.
37310
37311 2008-09-20  Bruno Haible  <bruno@clisp.org>
37312
37313         Ensure that wint_t gets defined on IRIX 5.3.
37314         * lib/wchar.in.h (wint_t): Define if not defined by the system.
37315         * lib/wctype.in.h (wint_t): Likewise.
37316         (__wctype_wint_t): Remove type.
37317         (isw*): Use wint_t instead of __wctype_wint_t.
37318         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
37319         * modules/wchar (Files): Add m4/wint_t.m4.
37320         (Makefile.am): Substitute HAVE_WINT_T.
37321         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
37322         * tests/test-wctype.c: Check that wint_t is defined.
37323         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
37324         * doc/posix-headers/wctype.texi: Likewise.
37325         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37326
37327 2008-09-18  Bruno Haible  <bruno@clisp.org>
37328
37329         * gnulib-tool (func_exit): Update comment.
37330
37331 2008-09-18  Simon Josefsson  <simon@josefsson.org>
37332
37333         * modules/getaddrinfo (Depends-on): Remove strdup, this module
37334         assumes strdup exists and does not depend on strdup to return
37335         ENOMEM on out of memory conditions.
37336
37337 2008-09-18  Bruno Haible  <bruno@clisp.org>
37338
37339         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
37340         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
37341         digits for the exponent.
37342
37343 2008-09-18  Jim Meyering  <meyering@redhat.com>
37344             Bruno Haible  <bruno@clisp.org>
37345
37346         * lib/vasnprintf.c (decimal_point_char): Define also if
37347         NEED_PRINTF_INFINITE_LONG_DOUBLE.
37348
37349 2008-09-16  Bruno Haible  <bruno@clisp.org>
37350         and Eric Blake  <ebb9@byu.net>
37351
37352         vasnprintf: support Irix 5.3
37353         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
37354         that mishandle long double infinity.
37355         Reported by Tom G. Christensen.
37356
37357 2008-09-16  Bruno Haible  <bruno@clisp.org>
37358
37359         * doc/glibc-functions/scandir.texi: Mention the function is missing on
37360         Solaris 9.
37361         * doc/glibc-functions/alphasort.texi: Likewise.
37362         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
37363
37364 2008-09-16  Jim Meyering  <meyering@redhat.com>
37365
37366         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
37367         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
37368         a umask modification leak out of a subshell.  Otherwise, the
37369         opensolaris /bin/sh would be accepted and thus cause unwarranted
37370         failures in the coreutils test suite.
37371
37372 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
37373
37374         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
37375         to succeed.
37376
37377 2008-09-16  Jim Meyering  <meyering@redhat.com>
37378
37379         avoid spurious test failure when library is built without ACL support
37380         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
37381         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
37382         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
37383         * tests/test-copy-acl.sh: Likewise.
37384
37385 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37386
37387         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
37388         based on character occurrence counts.
37389
37390 2008-09-15  Eric Blake  <ebb9@byu.net>
37391
37392         tests: avoid some compiler warnings
37393         * tests/test-memchr.c (main): Pass NULL indirectly.
37394         * tests/test-closein.c (main): Avoid unused variable.
37395
37396 2008-09-15  Bruno Haible  <bruno@clisp.org>
37397
37398         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
37399         are missing on OpenBSD 4.0 individually.
37400         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37401
37402 2008-09-15  Bruno Haible  <bruno@clisp.org>
37403
37404         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
37405         * doc/posix-functions/strerror.texi: Mention also Cygwin.
37406         * doc/posix-functions/perror.texi: Likewise.
37407         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
37408         is missing.
37409         Reported by Eric Blake.
37410
37411         * lib/errno.in.h: Use replacement values >= 2000.
37412         Reported by Eric Blake.
37413
37414 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37415
37416         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
37417         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
37418         limit.
37419         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
37420         compareseq was aborted.
37421
37422 2008-09-14  Bruno Haible  <bruno@clisp.org>
37423
37424         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
37425         yvec_edit_count.
37426         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
37427         (fstrcmp_bounded): Simplify result computation accordingly.
37428
37429 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37430
37431         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
37432         (fstrcmp): Define in terms of fstrcmp_bounded.
37433         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
37434         lower_bound argument.
37435         Return quickly if the result is certainly < lower_bound.
37436         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
37437
37438 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37439
37440         * lib/diffseq.h (EARLY_ABORT): New macro.
37441         (compareseq): Change return type to bool. Return true when EARLY_ABORT
37442         evaluates to true.
37443
37444 2008-09-14  Bruno Haible  <bruno@clisp.org>
37445
37446         * modules/perror-tests: New file.
37447         * tests/test-perror.sh: New file.
37448         * tests/test-perror.c: New file.
37449
37450         New module 'perror'.
37451         * lib/stdio.in.h (perror): New declaration.
37452         * lib/perror.c: New file.
37453         * m4/perror.m4: New file.
37454         * modules/perror: New file.
37455         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
37456         * doc/posix-functions/perror.texi: Mention the perror module.
37457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
37458         REPLACE_PERROR.
37459         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
37460         REPLACE_PERROR.
37461
37462 2008-09-14  Bruno Haible  <bruno@clisp.org>
37463
37464         * modules/stdio (Makefile.am): Reorder to match the order in
37465         lib/stdio.in.h.
37466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37467
37468 2008-09-13  Bruno Haible  <bruno@clisp.org>
37469
37470         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
37471
37472 2008-09-13  Bruno Haible  <bruno@clisp.org>
37473
37474         Extend strerror to cover the added errno values.
37475         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
37476         (rpl_strerror): Provide error messages for the added errno values and
37477         for the WSA* values.
37478         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
37479         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
37480         strerror.
37481         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
37482         * modules/strerror (Depends-on): Add errno.
37483         * doc/posix-functions/strerror.texi: Document the change.
37484         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
37485         and EOVERFLOW.
37486
37487 2008-09-13  Bruno Haible  <bruno@clisp.org>
37488
37489         * modules/EOVERFLOW: Remove file.
37490         * m4/eoverflow.m4: Remove file.
37491         * modules/EOVERFLOW-tests: Remove file.
37492         * tests/test-EOVERFLOW.c: Remove file.
37493         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
37494         * modules/ftell (Depends-on): Likewise.
37495         * modules/getdelim (Depends-on): Likewise.
37496         * modules/getugroups (Depends-on): Likewise.
37497         * modules/poll (Depends-on): Likewise.
37498         * modules/snprintf (Depends-on): Likewise.
37499         * modules/sprintf-posix (Depends-on): Likewise.
37500         * modules/vasnprintf (Depends-on): Likewise.
37501         * modules/vasprintf (Depends-on): Likewise.
37502         * modules/vfprintf-posix (Depends-on): Likewise.
37503         * modules/vsnprintf (Depends-on): Likewise.
37504         * modules/vsprintf-posix (Depends-on): Likewise.
37505         * modules/xvasprintf (Depends-on): Likewise.
37506         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37507         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
37508         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
37509         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
37510         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37511         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
37512         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
37513         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
37514         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37515         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
37516         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
37517         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
37518         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37519         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
37520         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
37521         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
37522         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37523         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
37524         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
37525         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
37526         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37527         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
37528         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
37529         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
37530         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
37531         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37532         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
37533         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
37534         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
37535         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
37536         * MODULES.html.sh: Remove EOVERFLOW.
37537         * NEWS: Mention the change.
37538
37539 2008-09-13  Bruno Haible  <bruno@clisp.org>
37540
37541         * modules/errno-tests: New file.
37542         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
37543
37544         * lib/errno.in.h: New file.
37545         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
37546         * modules/errno: New file.
37547         * doc/posix-headers/errno.texi: Update documentation.
37548         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
37549
37550 2008-09-13  Bruno Haible  <bruno@clisp.org>
37551
37552         * tests/test-poll.c: Use #if for native Windows, rather than testing
37553         __MSVCRT__.
37554
37555 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37556             Bruno Haible  <bruno@clisp.org>
37557
37558         * lib/glob.c: Don't include <pwd.h> on native Windows.
37559         (WINDOWS32): New macro.
37560         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
37561
37562 2008-09-13  Bruno Haible  <bruno@clisp.org>
37563
37564         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
37565         (ETIMEDOUT): Remove macro.
37566         (glthread_cond_timedwait_multithreaded): New declaration.
37567         (glthread_cond_timedwait): Use it.
37568         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
37569         (glthread_cond_timedwait_multithreaded): New function.
37570
37571 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37572
37573         * modules/poll-tests: Do not check for io.h.
37574         * tests/test-poll.c: Check for __MSVCRT__ instead.
37575
37576 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37577
37578         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
37579         * modules/poll-tests: Add inet_pton, stdbool, sockets.
37580         * tests/test-poll.c: Use them.  Use _pipe on Windows.
37581
37582 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37583
37584         * modules/poll-tests: New.
37585         * tests/test-poll.c: New.
37586
37587 2008-09-12  Eric Blake  <ebb9@byu.net>
37588
37589         frexp: test for NetBSD failure on -0.0
37590         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
37591         not all, bugs from NetBSD 3.0 have been fixed.
37592         * doc/posix-functions/frexp.texi (frexp): Document bug.
37593         Reported by Thomas Klausner.
37594
37595         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
37596         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
37597         literal -0.0.
37598         Reported by Jonathan C. Patschke <jp@centtech.com>.
37599
37600 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37601
37602         * lib/glthread/cond.h: Use dummy implementation also if
37603         USE_WIN32_THREADS.
37604
37605 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37606
37607         * modules/fnmatch-posix (License): Change to LGPLv2+.
37608         * modules/fnmatch-gnu (License): Likewise.
37609
37610 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37611
37612         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
37613
37614 2008-09-11  Jim Meyering  <meyering@redhat.com>
37615
37616         * users.txt: Add gtk-vnc.
37617
37618 2008-09-08  Simon Josefsson  <simon@josefsson.org>
37619
37620         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
37621         rotate amounts.
37622
37623         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
37624         required for 16-bit and 8-bit rotates.
37625         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
37626         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
37627         UINT8_MAX instead of hard-coded constants.
37628         Suggested by Paul Eggert.
37629
37630 2008-09-07  Bruno Haible  <bruno@clisp.org>
37631
37632         * tests/test-striconveh.c (main): Check behaviour when converting from
37633         UTF-7.
37634
37635         Make striconveh work better with stateful encodings.
37636         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
37637         that iconv does not increment the inptr when returning -1/EINVAL.
37638
37639 2008-09-07  Bruno Haible  <bruno@clisp.org>
37640
37641         * build-aux/config.rpath: Update according to libtool-2.2.6.
37642         * build-aux/config.libpath: Likewise.
37643
37644 2008-09-06  Bruno Haible  <bruno@clisp.org>
37645
37646         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
37647         * lib/freadptr.c (freadptr): Likewise.
37648         * lib/freadseek.c (freadptrinc): Likewise.
37649         Reported by Simon Josefsson.
37650
37651 2008-09-06  Bruno Haible  <bruno@clisp.org>
37652
37653         * modules/freadptr (License): Change to LGPLv2+.
37654         * modules/freadseek (License): Likewise.
37655         Suggested by Eric Blake.
37656
37657         * modules/memchr2 (License): Change to LGPLv2+.
37658         Approved by Eric Blake.
37659
37660 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37661             Bruno Haible  <bruno@clisp.org>
37662
37663         Make gnulib-tool work with native 'sed' on AIX.
37664         * gnulib-tool (sed_noop): New variable.
37665         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
37666         func_add_or_update, func_create_testdir): Use it to initialize sed
37667         script variables.
37668         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37669
37670 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
37671             Bruno Haible  <bruno@clisp.org>
37672
37673         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
37674         also works after #include directives.
37675
37676 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
37677
37678         getdate.y: reject an out-of-range timezone value
37679         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
37680         the range [-24...+24].  When specified with only one or two digits,
37681         * tests/test-getdate.c: Tests for the fix.
37682         * doc/getdate.texi: Document this change.
37683
37684 2008-09-03  Bruno Haible  <bruno@clisp.org>
37685
37686         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
37687
37688 2008-09-02  Simon Josefsson  <simon@josefsson.org>
37689
37690         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
37691         <bruce.korb@gmail.com> with ideas from Ben Pfaff
37692         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
37693         Blake <ebb9@byu.net>.
37694
37695         * tests/test-bitrotate.c: Add more test vectors.
37696
37697 2008-09-02  Eric Blake  <ebb9@byu.net>
37698
37699         vasnprintf-posix: handle large precision via %.*d
37700         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
37701         when handling it ourselves.
37702         * tests/test-vasnprintf-posix.c (test_function): Add test.
37703         * tests/test-snprintf-posix.h (test_function): Likewise.
37704         * tests/test-sprintf-posix.h (test_function): Likewise.
37705         * tests/test-vasprintf-posix.c (test_function): Likewise.
37706         Reported by Alain Guibert.
37707
37708 2008-09-01  Eric Blake  <ebb9@byu.net>
37709
37710         c-stack: make configure-time check more robust
37711         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
37712         successful sigaction call.
37713         Reported by Tom G. Christensen.
37714
37715 2008-09-01  Bruno Haible  <bruno@clisp.org>
37716
37717         New module 'findprog-lgpl'.
37718         * modules/findprog-lgpl: New file.
37719         * lib/findprog-lgpl.c: New file.
37720         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
37721         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
37722         to decide whether to use strdup or xstrdup, concatenated_filename or
37723         xconcatenated_filename.
37724
37725 2008-09-01  Bruno Haible  <bruno@clisp.org>
37726
37727         Split module 'concat-filename' into 'concat-filename' (LGPL) and
37728         'xconcat-filename' (GPL).
37729         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
37730         (License): Change to LGPLv2+.
37731         * modules/xconcat-filename: New file.
37732         * lib/concat-filename.h (concatenated_filename): Change specification.
37733         (xconcatenated_filename): New declaration.
37734         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
37735         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
37736         memory situations.
37737         * lib/xconcat-filename.c: New file.
37738         * NEWS: Mention the change.
37739         * lib/findprog.c: Include concat-filename.h, not filename.h.
37740         (find_in_path): Use xconcatenated_filename instead of
37741         concatenated_filename.
37742         * lib/javacomp.c: Include concat-filename.h, not filename.h.
37743         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37744         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37745         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37746         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
37747         instead of concatenated_filename.
37748         * lib/javaexec.c: Include concat-filename.h, not filename.h.
37749         (execute_java_class): Use xconcatenated_filename instead of
37750         concatenated_filename.
37751         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
37752         * modules/javacomp (Depends-on): Likewise.
37753         * modules/javaexec (Depends-on): Likewise.
37754
37755 2008-09-01  Bruno Haible  <bruno@clisp.org>
37756
37757         Split module 'filename' into 'filename' and 'concat-filename'.
37758         * modules/filename: Keep only lib/filename.h.
37759         (License): Change to LGPLv2+.
37760         * modules/concat-filename: New file, extracted from modules/filename.
37761         * lib/filename.h (concatenated_filename): Remove declaration.
37762         * lib/concat-filename.h: New file, extracted from lib/filename.h.
37763         * lib/concat-filename.c: Include concat-filename.h.
37764         * NEWS: Mention the change.
37765
37766 2008-09-01  Simon Josefsson  <simon@josefsson.org>
37767
37768         * lib/bitrotate.h (rotl8, rotr8): Add.
37769
37770         * modules/bitrotate (configure.ac): Need
37771         AC_REQUIRE([AC_C_INLINE]).
37772         (Description): Mention stdint.h.  Reported by Bruno Haible
37773         <bruno@clisp.org>.
37774
37775         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
37776         Paolo Bonzini <bonzini@gnu.org>.
37777
37778 2008-08-31  Bruno Haible  <bruno@clisp.org>
37779
37780         Assume Solaris specific bi-arch conventions on Solaris systems.
37781         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
37782         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
37783         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
37784         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
37785         like acl_libdirstem.
37786         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
37787         acl_libdirstem.
37788         * NEWS: Mention the change.
37789         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
37790
37791 2008-08-31  Jim Meyering  <meyering@redhat.com>
37792
37793         * lib/strftime.h: Add comments describing the two added arguments.
37794
37795         remove duplicate #include directives
37796         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
37797         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
37798
37799 2008-08-31  Bruno Haible  <bruno@clisp.org>
37800
37801         New module 'sigpipe-die'.
37802         * modules/sigpipe-die: New file.
37803         * lib/sigpipe-die.h: New file.
37804         * lib/sigpipe-die.c: New file.
37805         * MODULES.html.sh (Signal handling): Add sigpipe-die.
37806
37807 2008-08-31  Bruno Haible  <bruno@clisp.org>
37808
37809         Don't override previously installed signal handlers.
37810         * lib/fatal-signal.c (saved_sigactions): New variable.
37811         (uninstall_handlers): Reset the signal to the saved handler, not
37812         to SIG_DFL (except when ignored).
37813         (install_handlers): Save the previous handlers.
37814
37815 2008-08-30  Bruno Haible  <bruno@clisp.org>
37816
37817         * gnulib-tool (func_reset_sigpipe): New function.
37818         (func_get_automake_snippet, func_modules_transitive_closure,
37819         func_import): Invoke it before a join command that reads from stdin,
37820         to avoid "echo: write error: Broken pipe" error messages on stderr.
37821         Reported by Sam Steingold <sds@gnu.org>.
37822
37823 2008-08-30  Bruno Haible  <bruno@clisp.org>
37824
37825         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
37826         Code copied from m4/open.m4.
37827         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
37828         access and the filename ends in a slash. Code copied from lib/open.c.
37829         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
37830         * tests/test-fopen.c (main): Check against bug with trailing slash.
37831
37832 2008-08-29  Bruno Haible  <bruno@clisp.org>
37833
37834         Avoid some "gcc -pedantic" warnings.
37835         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
37836         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
37837         * lib/dirent.in.h: Likewise.
37838         * lib/fcntl.in.h: Likewise.
37839         * lib/float.in.h: Likewise.
37840         * lib/iconv.in.h: Likewise.
37841         * lib/inttypes.in.h: Likewise.
37842         * lib/locale.in.h: Likewise.
37843         * lib/math.in.h: Likewise.
37844         * lib/netinet_in.in.h: Likewise.
37845         * lib/search.in.h: Likewise.
37846         * lib/signal.in.h: Likewise.
37847         * lib/stdarg.in.h: Likewise.
37848         * lib/stdint.in.h: Likewise.
37849         * lib/stdio.in.h: Likewise.
37850         * lib/stdlib.in.h: Likewise.
37851         * lib/string.in.h: Likewise.
37852         * lib/strings.in.h: Likewise.
37853         * lib/sys_select.in.h: Likewise.
37854         * lib/sys_socket.in.h: Likewise.
37855         * lib/sys_stat.in.h: Likewise.
37856         * lib/sys_time.in.h: Likewise.
37857         * lib/sysexits.in.h: Likewise.
37858         * lib/time.in.h: Likewise.
37859         * lib/unistd.in.h: Likewise.
37860         * lib/wchar.in.h: Likewise.
37861         * lib/wctype.in.h: Likewise.
37862         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
37863         * modules/fchdir (Makefile.am): Likewise.
37864         * modules/fcntl (Makefile.am): Likewise.
37865         * modules/float (Makefile.am): Likewise.
37866         * modules/iconv_open (Makefile.am): Likewise.
37867         * modules/inttypes (Makefile.am): Likewise.
37868         * modules/locale (Makefile.am): Likewise.
37869         * modules/math (Makefile.am): Likewise.
37870         * modules/netinet_in (Makefile.am): Likewise.
37871         * modules/search (Makefile.am): Likewise.
37872         * modules/signal (Makefile.am): Likewise.
37873         * modules/stdarg (Makefile.am): Likewise.
37874         * modules/stdint (Makefile.am): Likewise.
37875         * modules/stdio (Makefile.am): Likewise.
37876         * modules/stdlib (Makefile.am): Likewise.
37877         * modules/string (Makefile.am): Likewise.
37878         * modules/strings (Makefile.am): Likewise.
37879         * modules/sys_select (Makefile.am): Likewise.
37880         * modules/sys_socket (Makefile.am): Likewise.
37881         * modules/sys_stat (Makefile.am): Likewise.
37882         * modules/sys_time (Makefile.am): Likewise.
37883         * modules/sysexits (Makefile.am): Likewise.
37884         * modules/time (Makefile.am): Likewise.
37885         * modules/unistd (Makefile.am): Likewise.
37886         * modules/wchar (Makefile.am): Likewise.
37887         * modules/wctype (Makefile.am): Likewise.
37888         Reported by Reuben Thomas <rrt@sc3d.org>.
37889
37890 2008-08-29  Bruno Haible  <bruno@clisp.org>
37891
37892         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
37893         any more.
37894
37895 2008-08-29  Simon Josefsson  <simon@josefsson.org>
37896
37897         * MODULES.html.sh (Misc): Add bitrotate.
37898
37899         * modules/bitrotate: New file.
37900
37901         * lib/bitrotate.h: New file.
37902
37903         * modules/bitrotate-tests: New file.
37904
37905         * tests/test-bitrotate.c: New file.
37906
37907         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
37908         on the bitrotate module.
37909
37910         * lib/arctwo.c: Use new bitrotate module.
37911
37912 2008-08-29  Jim Meyering  <meyering@redhat.com>
37913
37914         bootstrap: merge changes from coreutils
37915         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
37916         of copied files.  Remove a kludge, now that this is fixed.
37917         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
37918         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
37919         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
37920
37921 2008-08-29  Bruno Haible  <bruno@clisp.org>
37922
37923         * MODULES.html.sh: Remove --cvs-urls option.
37924
37925 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
37926
37927         maint.mk: adjust to file name change
37928         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
37929
37930 2008-08-28  Jim Meyering  <meyering@redhat.com>
37931
37932         * modules/getndelim2 (License): Relicense to LGPLv2+.
37933         Approved by Richard Stallman for the version of 1995, and by
37934         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
37935
37936 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
37937
37938         * lib/getdelim.c (flockfile, funlockfile): Make all of them
37939         dummy if one is not available.  Do not touch them if
37940         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
37941         (getc_maybe_unlocked): New.
37942         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
37943
37944 2008-08-26  Eric Blake  <ebb9@byu.net>
37945
37946         doc/INSTALL: resync from autoconf
37947         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
37948         (INSTALL_PRELUDE): Delete; this is done more efficiently by
37949         moving...
37950         * install.texi [!autoconf]: ...here.  Resync from autoconf.
37951         * INSTALL: Regenerate.
37952         * INSTALL.ISO: New file.
37953         * INSTALL.UTF-8: Likewise.
37954
37955 2008-08-26  Jim Meyering  <meyering@redhat.com>
37956
37957         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
37958         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
37959         these definitions conditional, so that they may be overridden, too.
37960
37961 2008-08-26  Bruno Haible  <bruno@clisp.org>
37962
37963         Generate INSTALL file variants with prettier quotes.
37964         * doc/Makefile (INSTALL_PRELUDE): New macro.
37965         (INSTALL): Use it.
37966         (INSTALL.ISO, INSTALL.UTF-8): New rules.
37967
37968 2008-08-26  Bruno Haible  <bruno@clisp.org>
37969
37970         Run makeinfo in an English locale.
37971         * doc/Makefile (MAKEINFO): New variable.
37972
37973 2008-08-26  Bruno Haible  <bruno@clisp.org>
37974
37975         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
37976         Suggested by Eric Blake.
37977
37978 2008-08-25  Bruno Haible  <bruno@clisp.org>
37979
37980         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
37981
37982 2008-08-25  Eric Blake  <ebb9@byu.net>
37983
37984         c-stack: test that stack overflow can be caught
37985         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
37986         that platform allows handling stack overflow; at least OS/2 EMX
37987         has sigaltstack, but crashes before transferring control to
37988         handler on stack overflow.
37989         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
37990         check for HAVE_STACK_OVERFLOW_HANDLING.
37991         Reported by Elbert Pol.
37992
37993 2008-08-25  Bruno Haible  <bruno@clisp.org>
37994
37995         * doc/posix-functions/strftime.texi: Fix description of strftime
37996         module.
37997
37998 2008-08-24  Bruno Haible  <bruno@clisp.org>
37999
38000         * tests/uniwidth/test-uc_width2.c: New file.
38001         * tests/uniwidth/test-uc_width2.sh: New file.
38002         * modules/uniwidth/width-tests (Files): Add the new files.
38003         (TESTS): Add uniwidth/test-uc_width2.sh.
38004         (TESTS_ENVIRONMENT): New variable.
38005         (check_PROGRAMS): Add test-uc_width2.
38006         (test_uc_width2_SOURCES): New variable.
38007
38008         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
38009         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
38010         not 0x00AB.
38011         Reported by Alexander V. Lukyanov <lav@netis.ru>.
38012
38013 2008-08-22  Eric Blake  <ebb9@byu.net>
38014
38015         test-lock, test-tls: mention why a test is skipped
38016         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
38017         skipped.
38018         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
38019
38020         count-one-bits: relax license
38021         * modules/count-one-bits (License): Relicense to LGPLv2+.
38022         Suggested by Ludovic Courtès, approved by Ben Pfaff.
38023
38024 2008-08-22  Andreas Schwab  <schwab@suse.de>
38025
38026         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38027         Remove spurious space in assignment.
38028
38029 2008-08-21  Simon Josefsson  <simon@josefsson.org>
38030
38031         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
38032         Paul Eggert <eggert@CS.UCLA.EDU>.
38033
38034 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
38035
38036         * modules/gettext: Add m4/threadlib.m4.
38037
38038 2008-08-19  Eric Blake  <ebb9@byu.net>
38039
38040         test-c-stack: fix compilation failure on FreeBSD 5.0
38041         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
38042         headers before <sys/resource.h>.
38043         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
38044         the bug.
38045         Reported by Nelson H. F. Beebe.
38046
38047         strverscmp: migrate from "strverscmp.h" to <string.h>
38048         * modules/string (Makefile.am): Add new hooks.
38049         * modules/strverscmp (Files): Remove strverscmp.h.
38050         (Depends-on): Add string.
38051         (configure.ac): Add indicator.
38052         (Include): Mention new header.
38053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
38054         defaults.
38055         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
38056         results.
38057         * lib/strverscmp.h: Delete.
38058         * lib/string.in.h (strverscmp): Provide declaration, when needed.
38059         * tests/test-strverscmp.c (includes): Adjust client.
38060         * lib/check-version.c (includes): Likewise.
38061         * NEWS: Document the change.
38062
38063         strverscmp: add unit test
38064         * modules/strverscmp-tests: New file.
38065         * tests/test-strverscmp.c: Likewise.
38066
38067 2008-08-19  Simon Josefsson  <simon@josefsson.org>
38068
38069         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
38070         regarding Windows crypto stuff, from Mono.
38071
38072 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
38073
38074         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
38075         if present, for intel RND.  Return error on failures.
38076
38077 2008-08-18  Ben Pfaff  <blp@gnu.org>
38078
38079         gitlog-to-changelog: give better diagnostic for failed pipe-open
38080         * build-aux/gitlog-to-changelog: Improve error message: suggest
38081         that the version of Git may be too old.
38082
38083 2008-08-18  Simon Josefsson  <simon@josefsson.org>
38084
38085         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
38086         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
38087
38088 2008-08-18  Bruno Haible  <bruno@clisp.org>
38089
38090         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
38091         pthread_in_use().
38092
38093 2008-08-18  Bruno Haible  <bruno@clisp.org>
38094
38095         * lib/glthread/threadlib.c: Include <pthread.h>.
38096
38097 2008-08-18  Bruno Haible  <bruno@clisp.org>
38098
38099         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
38100         glthread_recursive_lock_* macros.
38101         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
38102         Fix syntax error.
38103
38104 2008-08-18  Bruno Haible  <bruno@clisp.org>
38105
38106         * lib/glthread/thread.c: Avoid forcing a context switch right after
38107         thread creation.
38108
38109 2008-08-17  Bruno Haible  <bruno@clisp.org>
38110
38111         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
38112         * lib/glthread/thread.h: Provide Win32 specific implementation.
38113         * modules/thread (Files): Add lib/glthread/thread.c.
38114         (Depends-on): Add lock.
38115         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
38116
38117 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38118
38119         New module 'yield'.
38120         * modules/yield: New file.
38121         * lib/glthread/yield.h: New file.
38122         * m4/yield.m4: New file.
38123         * MODULES.html.sh (Multithreading): Add yield.
38124
38125 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38126
38127         New module 'thread'.
38128         * modules/thread: New file.
38129         * lib/glthread/thread.h: New file.
38130         * m4/thread.m4: New file.
38131         * MODULES.html.sh (Multithreading): Add thread.
38132
38133 2008-08-17  Bruno Haible  <bruno@clisp.org>
38134
38135         * lib/glthread/lock.h: Include <stdlib.h> always.
38136         * lib/glthread/tls.h: Likewise.
38137         * lib/glthread/cond.h: Likewise.
38138
38139 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38140
38141         New module 'cond'.
38142         * modules/cond: New file.
38143         * lib/glthread/cond.h: New file.
38144         * lib/glthread/cond.c: New file.
38145         * m4/cond.m4: New file.
38146         * MODULES.html.sh (Multithreading): Add cond.
38147
38148 2008-08-16  Eric Blake  <ebb9@byu.net>
38149
38150         c-stack: fix regression on Irix 5.3 from 2008-06-21
38151         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
38152         sa_sigaction...
38153         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
38154         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
38155         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
38156         * modules/signal (Makefile.am): Use the value.
38157         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
38158         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
38159         * doc/posix-headers/signal.texi (signal.h): Document this
38160         portability issue.
38161         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
38162         Reported by Tom G. Christensen.
38163
38164 2008-08-17  Bruno Haible  <bruno@clisp.org>
38165
38166         New module 'threadlib'.
38167         * modules/threadlib: New file.
38168         * lib/glthread/threadlib.c: New file, extracted from
38169         lib/glthread/lock.c.
38170         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
38171         functions.
38172         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
38173         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
38174         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
38175         macros.
38176         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
38177         (gl_DISABLE_THREADS): Remove macro.
38178         * modules/lock (Files): Remove build-aux/config.rpath.
38179         (Depends-on): Remove havelib. Add threadlib.
38180         (configure.ac-early): Remove section.
38181         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
38182         * modules/tls (Depends-on): Remove lock. Add threadlib.
38183         (Link): New section, copied from threadlib.
38184         * MODULES.html.sh (Multithreading): Add threadlib.
38185
38186 2008-08-14  Bruno Haible  <bruno@clisp.org>
38187
38188         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
38189         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
38190         glthread_rwlock_unlock, glthread_rwlock_destroy,
38191         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
38192         glthread_recursive_lock_destroy): Define as macros always.
38193         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
38194         glthread_lock_lock.
38195         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
38196         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
38197         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
38198         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
38199         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
38200         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
38201         (glthread_recursive_lock_lock_func): Renamed from
38202         glthread_recursive_lock_lock.
38203         (glthread_recursive_lock_unlock_func): Renamed from
38204         glthread_recursive_lock_unlock.
38205         (glthread_recursive_lock_destroy_func): Renamed from
38206         glthread_recursive_lock_destroy.
38207
38208 2008-08-14  Bruno Haible  <bruno@clisp.org>
38209
38210         * lib/glthread/lock.h: Renamed from lib/lock.h.
38211         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
38212         * lib/glthread/tls.h: Renamed from lib/tls.h.
38213         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
38214         * lib/fstrcmp.c: Update includes.
38215         * lib/strsignal.c: Update includes.
38216         * modules/lock (Files, Makefile.am): Update.
38217         (Include): Change to "glthread/lock.h".
38218         * modules/tls (Files, Makefile.am): Update.
38219         (Include): Change to "glthread/tls.h".
38220         * tests/test-lock.c: Update includes.
38221         * tests/test-tls.c: Update includes.
38222         * NEWS: Mention the renamed header files.
38223
38224 2008-08-11  Jim Meyering  <meyering@redhat.com>
38225
38226         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
38227
38228 2008-08-11  Eric Blake  <ebb9@byu.net>
38229
38230         test-c-stack: avoid C99-ism
38231         * tests/test-c-stack.c (main): Fix whitespace, move declaration
38232         before statement.
38233         Reported by Alain Guibert.
38234
38235 2008-08-10  Jim Meyering  <meyering@redhat.com>
38236
38237         ensure that return value of uinttostr et al are not ignored
38238         * lib/inttostr.h (__GNUC_PREREQ): Define.
38239         (__attribute_warn_unused_result__): Define.
38240         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
38241
38242 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
38243
38244         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
38245         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
38246
38247 2008-08-07  Jim Meyering  <meyering@redhat.com>
38248
38249         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
38250
38251         * modules/mkstemp (License): Relicense under LGPLv2+.
38252         * modules/tempname (License): Likewise.
38253
38254 2008-08-06  Bruno Haible  <bruno@clisp.org>
38255
38256         * lib/poll.c (poll): Further micro-optimization.
38257
38258 2008-08-06  Jim Meyering  <meyering@redhat.com>
38259
38260         inet_pton.c: use locale-independent tolower
38261         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
38262         (inet_pton6): Use c_tolower rather than tolower.
38263         * modules/inet_pton (Depends-on): Add c-ctype.
38264
38265 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
38266
38267         * lib/poll.c (poll): Avoid division when timeout is 0, cache
38268         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
38269
38270 2008-08-06  Jim Meyering  <meyering@redhat.com>
38271
38272         * modules/inet_pton (License): Relicense under LGPLv2+.
38273
38274 2008-08-03  Bruno Haible  <bruno@clisp.org>
38275
38276         Additional non-aborting API for lock and tls.
38277         * lib/lock.h: Include <errno.h>.
38278         (glthread_lock_init): New macro/function.
38279         (gl_lock_init): Define as wrapper around glthread_lock_init.
38280         (glthread_lock_lock): New macro/function.
38281         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
38282         (glthread_lock_unlock): New macro/function.
38283         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
38284         (glthread_lock_destroy): New macro/function.
38285         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
38286         (glthread_rwlock_init): New macro/function.
38287         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
38288         (glthread_rwlock_rdlock): New macro/function.
38289         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
38290         (glthread_rwlock_wrlock): New macro/function.
38291         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
38292         (glthread_rwlock_unlock): New macro/function.
38293         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
38294         (glthread_rwlock_destroy): New macro/function.
38295         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
38296         (glthread_recursive_lock_init): New macro/function.
38297         (gl_recursive_lock_init): Define as wrapper around
38298         glthread_recursive_lock_init.
38299         (glthread_recursive_lock_lock): New macro/function.
38300         (gl_recursive_lock_lock): Define as wrapper around
38301         glthread_recursive_lock_lock.
38302         (glthread_recursive_lock_unlock): New macro/function.
38303         (gl_recursive_lock_unlock): Define as wrapper around
38304         glthread_recursive_lock_unlock.
38305         (glthread_recursive_lock_destroy): New macro/function.
38306         (gl_recursive_lock_destroy): Define as wrapper around
38307         glthread_recursive_lock_destroy.
38308         (glthread_once): New macro/function.
38309         (gl_once): Define as wrapper around glthread_once.
38310         Update function declarations.
38311         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
38312         glthread_rwlock_init. Return error code.
38313         (glthread_rwlock_rdlock_multithreaded): Renamed from
38314         glthread_rwlock_rdlock. Return error code.
38315         (glthread_rwlock_wrlock_multithreaded): Renamed from
38316         glthread_rwlock_wrlock. Return error code.
38317         (glthread_rwlock_unlock_multithreaded): Renamed from
38318         glthread_rwlock_unlock. Return error code.
38319         (glthread_rwlock_destroy_multithreaded): Renamed from
38320         glthread_rwlock_destroy. Return error code.
38321         (glthread_recursive_lock_init_multithreaded): Renamed from
38322         glthread_recursive_lock_init. Return error code.
38323         (glthread_recursive_lock_lock_multithreaded): Renamed from
38324         glthread_recursive_lock_lock. Return error code.
38325         (glthread_recursive_lock_unlock_multithreaded): Renamed from
38326         glthread_recursive_lock_unlock. Return error code.
38327         (glthread_recursive_lock_destroy_multithreaded): Renamed from
38328         glthread_recursive_lock_destroy. Return error code.
38329         (glthread_once_call): Make static.
38330         (glthread_once_multithreaded): Renamed from glthread_once.
38331         * lib/tls.h: Include <errno.h>.
38332         (glthread_tls_key_init): New macro/function.
38333         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
38334         (glthread_tls_set): New macro/function.
38335         (gl_tls_set): Define as wrapper around glthread_tls_set.
38336         (glthread_tls_key_destroy): New macro/function.
38337         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
38338         Update function declarations.
38339         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
38340         glthread_tls_get.
38341         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38342
38343 2008-08-04  Eric Blake  <ebb9@byu.net>
38344
38345         gnumakefile: use space, not TAB, outside of targets
38346         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
38347
38348 2008-08-02  Jim Meyering  <meyering@redhat.com>
38349
38350         getdate.y: avoid locale-dependent date parsing failure
38351         In Turkish locales, getdate would fail to recognize keywords
38352         containing a lowercase "i".  The solution is not to rely on
38353         locale-sensitive case-conversion.
38354         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
38355         (lookup_word): Use c_toupper in place of toupper.
38356         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
38357         Reported by Vefa Bicakci <bicave@superonline.com> in
38358         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
38359         * modules/getdate (Depends-on): Add c-ctype.
38360
38361 2008-08-02  Bruno Haible  <bruno@clisp.org>
38362
38363         * gnulib-tool (func_import): When updating or creating a .gitignore
38364         file, prepend each added line with a slash, and ignore leading slashes
38365         from the existing lines.
38366         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38367
38368 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38369
38370         Portability fix for GNU make 3.79.1.
38371         * top/GNUmakefile: Avoid 'else COND', which older GNU make
38372         versions do not understand.
38373
38374 2008-08-01  Bruno Haible  <bruno@clisp.org>
38375
38376         Work around bug of HP-UX 10.20 cc with -0.0 literal.
38377         * tests/test-isnanf.h (zero): New variable.
38378         (main): Avoid literal -0.0f.
38379         * tests/test-isnand.h (zero): New variable.
38380         (main): Avoid literal -0.0.
38381         * tests/test-isnanl.h (zero): New variable.
38382         (main): Avoid literal -0.0L.
38383         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
38384         (test_float, test_double, test_long_double): Avoid literals -0.0f,
38385         -0.0, -0.0L.
38386         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
38387         (test_signbitd): Avoid literal -0.0.
38388         (test_signbitl): Avoid literal -0.0L.
38389         * tests/test-ceilf1.c (zero): New variable.
38390         (main): Avoid literal -0.0f.
38391         * tests/test-ceill.c (zero): New variable.
38392         (main): Avoid literal -0.0L.
38393         * tests/test-floorf1.c (zero): New variable.
38394         (main): Avoid literal -0.0f.
38395         * tests/test-floorl.c (zero): New variable.
38396         (main): Avoid literal -0.0L.
38397         * tests/test-roundf1.c (zero): New variable.
38398         (main): Avoid literal -0.0f.
38399         * tests/test-round1.c (zero): New variable.
38400         (main): Avoid literal -0.0.
38401         * tests/test-roundl.c (zero): New variable.
38402         (main): Avoid literal -0.0L.
38403         * tests/test-truncf1.c (zero): New variable.
38404         (main): Avoid literal -0.0f.
38405         * tests/test-trunc1.c (zero): New variable.
38406         (main): Avoid literal -0.0.
38407         * tests/test-truncl.c (zero): New variable.
38408         (main): Avoid literal -0.0L.
38409         * tests/test-frexp.c (zero): New variable.
38410         (main): Avoid literal -0.0.
38411         * tests/test-frexpl.c (zero): New variable.
38412         (main): Avoid literal -0.0L.
38413         * tests/test-ldexpl.c (zero): New variable.
38414         (main): Avoid literal -0.0L.
38415         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38416         (zerod, zerol): New variables.
38417         (test_function): Avoid literals -0.0, -0.0L.
38418         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38419         (zerod, zerol): New variables.
38420         (test_function): Avoid literals -0.0, -0.0L.
38421         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38422         (zerod, zerol): New variables.
38423         (test_function): Avoid literals -0.0, -0.0L.
38424         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38425         (zerod, zerol): New variables.
38426         (test_function): Avoid literals -0.0, -0.0L.
38427         * tests/test-strtod.c (zero): New variable.
38428         (main): Avoid literal -0.0.
38429         Reported by Jonathan C. Patschke <jp@centtech.com>.
38430
38431 2008-07-31  Jim Meyering  <meyering@redhat.com>
38432
38433         sha256.h: correct definition of SHA224_DIGEST_SIZE
38434         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
38435         Reported by Paulie Pena IV <paulie4@gmail.com>.
38436         Define as 224 / 8, rather than as a literal.
38437         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
38438         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
38439         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
38440
38441 2008-07-31  Bruno Haible  <bruno@clisp.org>
38442
38443         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
38444         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
38445         Reported by Jonathan Patschke <jp@centtech.com>.
38446
38447 2008-07-31  Bruno Haible  <bruno@clisp.org>
38448
38449         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
38450         Reported by Paolo Bonzini <bonzini@gnu.org>.
38451
38452 2008-07-30  Eric Blake  <ebb9@byu.net>
38453
38454         test-strtod: allow compilation without -lm
38455         * tests/test-strtod.c (main): Avoid link dependence on fabs.
38456         Reported by Dennis Clarke <blastwave@gmail.com>.
38457
38458 2008-07-28  Jim Meyering  <meyering@redhat.com>
38459
38460         bootstrap: work also when there are no .po files in po/
38461         * build-aux/bootstrap (update_po_files): Complete the change
38462         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
38463
38464 2008-07-27  Jim Meyering  <meyering@redhat.com>
38465
38466         * users.txt: Add zile.
38467
38468 2008-07-26  Ben Pfaff  <blp@gnu.org>
38469
38470         Add missing dependencies on new m4/exponent[fdl].m4 files.
38471         * modules/isnanf-nolibm: Add m4/exponentf.m4.
38472         * modules/isnand-nolibm: Add m4/exponentd.m4.
38473         * modules/isnanl-nolibm: Add m4/exponentl.m4.
38474         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
38475         m4/isnan[fdl].m4, because the macros actually used moved.
38476         Reported by Jim Meyering.
38477
38478 2008-07-14  Ben Pfaff  <blp@gnu.org>
38479
38480         Add isinf module.
38481         * lib/isinf.c: New file.
38482         * lib/math.in.h: Define isinf macro if we have decided to replace
38483         it.
38484         * m4/isinf.m4: New file.
38485         * m4/math_h.m4: Initialize and substitute variables for isinf
38486         module.
38487         * modules/isinf: New file.
38488         * modules/isinf-tests: New file.
38489         * modules/math: Add substitutions for new module.
38490         * tests/test-isinf.c: New file.
38491         * doc/posix-functions/isinf.texi: Mention new module.
38492         * MODULES.html.sh: Mention new module.
38493
38494 2008-07-14  Ben Pfaff  <blp@gnu.org>
38495
38496         Factor out some macros for use by additional modules.
38497         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
38498         exponentf.m4.
38499         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
38500         exponentd.m4.
38501         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
38502         file exponentl.m4.
38503         * m4/exponentf.m4: New file.
38504         * m4/exponentd.m4: New file.
38505         * m4/exponentl.m4: New file.
38506         * modules/isnanf: Use new file m4/exponentf.m4.
38507         * modules/isnand: Use new file m4/exponentd.m4.
38508         * modules/isnanl: Use new file m4/exponentl.m4.
38509
38510 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
38511
38512         mktime.c: normalize tp->tm_isdst value to -1/0/1.
38513         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
38514         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
38515         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
38516
38517         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
38518         readlink on platforms without PATH_MAX.
38519
38520 2008-07-21  Eric Blake  <ebb9@byu.net>
38521
38522         Warn, not fail, on stale version.
38523         * top/GNUmakefile (_curr-ver): Tone down previous patch.
38524
38525         Don't allow installation with stale devel version number.
38526         * top/GNUmakefile (_is-install-target): New macro.
38527         (_curr-ver): Forbid installation with stale version number.
38528
38529 2008-07-20  Bruno Haible  <bruno@clisp.org>
38530
38531         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
38532         TESTS_ENVIRONMENT.
38533         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
38534
38535 2008-07-20  Bruno Haible  <bruno@clisp.org>
38536
38537         * lib/c-stack.h (c_stack_action): Add documentation.
38538         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
38539
38540 2008-07-20  Bruno Haible  <bruno@clisp.org>
38541
38542         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
38543         * modules/readlink (License): Likewise.
38544
38545 2008-07-17  Eric Blake  <ebb9@byu.net>
38546
38547         * modules/c-stack (Link): Fix typo.
38548
38549         Make c-stack use libsigsegv, when available.
38550         * modules/c-stack (Depends-on): Add libsigsegv.
38551         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
38552         needed.
38553         * lib/c-stack.c (SIGSTKSZ): Define fallback.
38554         (segv_handler, overflow_handler, c_stack_action)
38555         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
38556         implementation when libsigsegv is available, but only when using
38557         the library is necessary.
38558         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
38559         comment, explaining why XSI check fails on Linux.
38560         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
38561         * tests/test-c-stack2.sh: Tweak skip message.
38562         * NEWS: Document new link-time requirements.
38563
38564 2008-07-16  Eric Blake  <ebb9@byu.net>
38565
38566         c-stack: Expose false positives when not using libsigsegv.
38567         * modules/c-stack-tests (Files): Expand test.
38568         * tests/test-c-stack.c (main): Add means to conditionally trigger
38569         non-overflow SIGSEGV.
38570         * tests/test-c-stack2.sh: New file.
38571
38572 2008-07-14  Bruno Haible  <bruno@clisp.org>
38573
38574         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
38575         Reported by Eric Blake.
38576
38577 2008-07-14  Sam Steingold  <sds@gnu.org>
38578             Bruno Haible  <bruno@clisp.org>
38579
38580         New module libsigsegv.
38581         * modules/libsigsegv: New file.
38582         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
38583         modifications.
38584         * MODULES.html.sh (Signal handling): New section.
38585
38586 2008-07-14  Bruno Haible  <bruno@clisp.org>
38587
38588         * modules/unictype/ctype-* (Description): Add the word "function".
38589         Improves the resulting doc in MODULES.html.
38590
38591 2008-07-12  Ben Pfaff  <blp@gnu.org>
38592
38593         Add longlong module.
38594         * modules/longlong: New file.
38595
38596 2008-07-12  Bruno Haible  <bruno@clisp.org>
38597
38598         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
38599         to empty.
38600
38601 2008-07-10  Ben Pfaff  <blp@gnu.org>
38602
38603         Add isnan module.
38604         * doc/posix-functions/isnan.texi: Mention new module.
38605         * lib/math.in.h: Define isnan macro if we have decided to replace
38606         it.
38607         * m4/isnan.m4: New file.
38608         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
38609         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
38610         also.
38611         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
38612         redundancy.
38613         * m4/math_h.m4: Initialize and substitute variables for isnan
38614         module.
38615         * modules/isnan: New file.
38616         * modules/isnan-tests: New file.
38617         * modules/math: Add substitutions for new module.
38618         * tests/test-isnan.c: New file.
38619         * MODULES.html.sh: Mention new module.
38620
38621 2008-07-10  Ben Pfaff  <blp@gnu.org>
38622
38623         Add isnanf module.
38624         * lib/isnanf.m4: New file.
38625         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
38626         (gl_HAVE_ISNANF_IN_LIBM): New macro.
38627         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
38628         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
38629         * modules/isnanf: New file.
38630         * modules/isnanf-tests: New file.
38631         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
38632         files.
38633         * tests/test-isnanf-nolibm.c: factored most of its contents into
38634         new file tests/test-isnanf.h.
38635         * tests/test-isnanf.h: New file.
38636         * tests/test-isnanf.c: New file.
38637         * MODULES.html.sh: Mention new module.
38638         * doc/glibc-functions/isnanf.texi: Mention new module.
38639
38640 2008-07-10  Ben Pfaff  <blp@gnu.org>
38641
38642         Add isnand module.
38643         * lib/isnand.h: New file.
38644         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
38645         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
38646         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
38647         functionality also.
38648         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
38649         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
38650         (gl_HAVE_ISNAND_IN_LIBM): New macro.
38651         * modules/isnand: New file.
38652         * modules/isnand-tests: New file.
38653         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
38654         files.
38655         * tests/test-isnand-nolibm.c: factored most of its contents into
38656         new file tests/test-isnand.h.
38657         * tests/test-isnand.h: New file.
38658         * tests/test-isnand.c: New file.
38659         * MODULES.html.sh: Mention new module.
38660
38661 2008-07-10  Ben Pfaff  <blp@gnu.org>
38662
38663         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
38664         * lib/isnand.h: Rename lib/isnand-nolibm.h.
38665         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
38666         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
38667         * modules/isnanf-nolibm: Update references to renamed files.
38668         * modules/isnand-nolibm: Likewise.
38669         * modules/isnanf-nolibm-tests: Likewise.
38670         * modules/isnand-nolibm-tests: Likewise.
38671         * lib/frexp.c: Likewise.
38672         * lib/isfinite.c: Likewise.
38673         * lib/signbitd.c: Likewise.
38674         * lib/signbitf.c: Likewise.
38675         * lib/vasnprintf.c: Likewise.
38676         * tests/test-ceilf1.c: Likewise.
38677         * tests/test-ceilf2.c: Likewise.
38678         * tests/test-floorf1.c: Likewise.
38679         * tests/test-floorf2.c: Likewise.
38680         * tests/test-frexp.c: Likewise.
38681         * tests/test-round1.c: Likewise.
38682         * tests/test-round2.c: Likewise.
38683         * tests/test-roundf1.c: Likewise.
38684         * tests/test-strtod.c: Likewise.
38685         * tests/test-trunc1.c: Likewise.
38686         * tests/test-trunc2.c: Likewise.
38687         * tests/test-truncf1.c: Likewise.
38688         * tests/test-truncf2.c: Likewise.
38689         * NEWS: Mention the renamed header files.
38690
38691 2008-07-11  Jim Meyering  <meyering@redhat.com>
38692
38693         vc-list-files: make the last-resort awk code more portable
38694         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
38695         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
38696         does not support it.
38697
38698 2008-07-10  Eric Blake  <ebb9@byu.net>
38699
38700         Work with tar's bootstrap.
38701         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
38702         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
38703         an m4 comment.
38704
38705 2008-07-09  Jim Meyering  <meyering@redhat.com>
38706
38707         posix-shell.m4: fix typo that made this test malfunction
38708         * m4/posix-shell.m4: Remove capitalization in variable name.
38709
38710 2008-07-08  Bruno Haible  <bruno@clisp.org>
38711
38712         * m4/onceonly.m4: Update comments.
38713         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38714
38715 2008-07-04  Jim Meyering  <meyering@redhat.com>
38716
38717         * users.txt: Add vc-dwim.
38718         (bison, coreutils): Use the gitweb URL.
38719
38720 2008-07-03  Jim Meyering  <meyering@redhat.com>
38721
38722         * users.txt: Add libffcall.  From Sam Steingold.
38723
38724 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
38725
38726         getdate.y: do not ignore TZ with relative day, month or year offset
38727         * lib/getdate.y (get_date): Move the tz-handling block to follow the
38728         relative-date-handling, since otherwise, the latter would clobber the
38729         sole output (an updated Start value) of the tz-handling block.
38730         * tests/test-getdate.c: Tests for the fix
38731
38732 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38733
38734         Recognize 'foo_LIBRARIES += libgnu.a'.
38735         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
38736         makefile snippet has already specified an installation location,
38737         also using '+='.
38738
38739 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
38740
38741         getdate.y: factor out common actions
38742         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
38743         Use them in place of open-coded actions.
38744
38745 2008-07-01  Simon Josefsson  <simon@josefsson.org>
38746
38747         Add self-test for getdate module.
38748         * modules/getdate-tests: New file.
38749         * tests/test-getdate.c: New file.
38750
38751 2008-06-29  Bruno Haible  <bruno@clisp.org>
38752
38753         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
38754         .gitignore.
38755         Reported by Sylvain Beucler <beuc@beuc.net>.
38756
38757 2008-06-29  Bruno Haible  <bruno@clisp.org>
38758
38759         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
38760         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
38761
38762 2008-06-29  Bruno Haible  <bruno@clisp.org>
38763
38764         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
38765         EXTRA_DIST.
38766         Reported by Sylvain Beucler <beuc@beuc.net>.
38767
38768 2008-06-26  Jim Meyering  <meyering@redhat.com>
38769
38770         make several modules depend on the "open" module
38771         This provides slightly increased consistency when opening-for-write
38772         the name of a non-directory spelled with a trailing slash.
38773         * modules/chdir-safer: Likewise.
38774         * modules/chown: Likewise.
38775         * modules/clean-temp: Likewise.
38776         * modules/copy-file: Likewise.
38777         * modules/fchdir: Likewise.
38778         * modules/fcntl-safer: Likewise.
38779         * modules/pipe: Likewise.
38780         * modules/utime: Likewise.
38781         Prompted by Eric Blake and Bruno Haible.
38782
38783 2008-06-24  Andreas Schwab  <schwab@suse.de>
38784
38785         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
38786         literals can be used as initializers for global variables.
38787
38788 2008-06-23  Eric Blake  <ebb9@byu.net>
38789
38790         Make gnulib-cache.m4 easier to diff.
38791         * gnulib-tool (func_import): Allow newlines when reading cached
38792         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
38793
38794 2008-06-23  Bruno Haible  <bruno@clisp.org>
38795
38796         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
38797         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
38798         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
38799         m4/signalblocking.m4.
38800         (gl_PREREQ_SIGACTION): Don't invoke it.
38801         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
38802         gl_PREREQ_SIG_HANDLER_H.
38803         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38804         Don't check for sigaction here.
38805
38806 2008-06-23  Bruno Haible  <bruno@clisp.org>
38807
38808         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
38809         (install_handlers): Don't set the SA_RESETHAND flag.
38810
38811 2008-06-23  Bruno Haible  <bruno@clisp.org>
38812
38813         * m4/sigaction.m4: Comment fixes.
38814         * lib/signal.in.h: Likewise.
38815
38816 2008-06-23  Eric Blake  <ebb9@byu.net>
38817
38818         Fix typo.
38819         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
38820
38821         Avoid SA_ namespace.
38822         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
38823         Reported by Ralf Wildenhues.
38824
38825         Avoid test failure due to SA_RESTORER.
38826         * tests/test-sigaction.c (SA_MASK): New macro.
38827         (main): Avoid failing due to extension flags being set.
38828         Reported by Jim Meyering.
38829
38830         Revert use of sig-handler.h in sigprocmask.c.
38831         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
38832         it requires the existence of struct sigaction.
38833         * lib/sigprocmask.c (handler_t): Restore typedef.
38834         (rpl_signal, old_handlers): Use local type.
38835
38836 2008-06-22  Bruno Haible  <bruno@clisp.org>
38837
38838         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
38839         conditionally.
38840         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38841
38842 2008-06-22  Bruno Haible  <bruno@clisp.org>
38843
38844         * doc/posix-functions/siginterrupt.texi: Move note.
38845
38846         * lib/signal.in.h (SA_RESTART): New macro.
38847         * lib/sigaction.c: Update comment.
38848
38849         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
38850
38851         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
38852         (gl_PREREQ_SIGPROCMASK): Invoke it.
38853         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
38854
38855         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
38856
38857         * lib/sigprocmask.c: Update a comment.
38858
38859 2008-06-21  Eric Blake  <ebb9@byu.net>
38860
38861         Use sigaction module rather than signal().
38862         * modules/c-stack (Depends-on): Add sigaction.
38863         * modules/fatal-signal (Depends-on): Likewise.
38864         * modules/nanosleep (Depends-on): Likewise.
38865         * modules/sigprocmask (Files): Add sig-handler.h.
38866         * modules/sigaction (Files): Likewise.
38867         * lib/sig-handler.h (get_handler): New file, suggested by Paul
38868         Eggert.
38869         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
38870         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
38871         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38872         (init_fatal_signals): Likewise.
38873         * lib/nanosleep.c (rpl_nanosleep): Likewise.
38874         (siginterrupt): Delete fallback.
38875         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
38876         instead.
38877         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
38878         siginterrupt.
38879
38880         New module sigaction, for mingw.
38881         * modules/sigaction: New module...
38882         * modules/sigaction-tests: ...and its test.
38883         * m4/sigaction.m4: New file.
38884         * lib/sigaction.c: Likewise.
38885         * tests/test-sigaction.c: Likewise.
38886         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
38887         * modules/signal (Makefile.am): Likewise.
38888         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
38889         needed.
38890         * doc/posix-headers/signal.texi (signal.h): Mention provided
38891         types.
38892         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
38893         that sigaction is preferable.
38894         * doc/posix-functions/sigaction.texi (sigaction): Mention new
38895         module.
38896         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38897         sigaction.
38898
38899         Improve robustness of sigprocmask by overriding signal.
38900         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
38901         is in use.
38902         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
38903         (SIGKILL, SIGSTOP): Provide fallbacks.
38904         (rpl_signal): Implement.
38905         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
38906         signal can be called inside handlers.
38907
38908         Fix nanosleep module on mingw.
38909         * modules/nanosleep (Depends-on): Add sys_select.
38910         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
38911
38912         Fix licensing of sigprocmask.
38913         * modules/raise (License): Relicense as LGPL.
38914
38915 2008-06-21  Bruno Haible  <bruno@clisp.org>
38916
38917         * lib/propername.c (proper_name_utf8): Don't use the transliterated
38918         result if it contains question marks.
38919         Reported by Michael Geng <linux@michaelgeng.de>.
38920
38921 2008-06-19  Bruno Haible  <bruno@clisp.org>
38922
38923         Fix CVS-ism.
38924         * doc/gnulib.texi: Include updated-stamp.texi.
38925         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
38926         (updated-stamp.texi): New rule.
38927         (gnulib.info): Depend on it.
38928         * doc/.gitignore: Add updated-stamp.texi.
38929         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
38930
38931 2008-06-19  Bruno Haible  <bruno@clisp.org>
38932
38933         * doc/Makefile (gnulib.info): Update and simplify dependencies.
38934         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38935
38936 2008-06-19  Eric Blake  <ebb9@byu.net>
38937
38938         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
38939         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
38940         Reported by Stepan Kasal.
38941
38942 2008-06-18  Bruno Haible  <bruno@clisp.org>
38943
38944         * lib/fatal-signal.c (init_fatal_signals): Add comment.
38945         Reported by Eric Blake.
38946
38947 2008-06-18  Eric Blake  <ebb9@byu.net>
38948
38949         Work around cygwin 1.5.25 strsignal bug.
38950         * tests/test-strsignal.c: Allow for const char *.
38951         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
38952
38953 2008-06-18  Simon Josefsson  <simon@josefsson.org>
38954
38955         * users.txt: Update URL to article and add author/date
38956         information.
38957
38958 2008-06-17  Bruno Haible  <bruno@clisp.org>
38959
38960         New macro gl_DISABLE_THREADS.
38961         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
38962         if the user did not pass --enable-threads or --disable-threads option.
38963         (gl_DISABLE_THREADS): New macro.
38964         Reported by Eric Blake <ebb9@byu.net>.
38965
38966 2008-06-17  Bruno Haible  <bruno@clisp.org>
38967
38968         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
38969         when the macro ignores it.
38970         Based on a patch by Eric Blake <ebb9@byu.net>.
38971
38972 2008-06-17  Bruno Haible  <bruno@clisp.org>
38973
38974         * modules/tls (License): Change to LGPLv2+.
38975         Reported by Eric Blake.
38976
38977 2008-06-17  Eric Blake  <ebb9@byu.net>
38978
38979         Simplify c-stack prerequisites.
38980         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
38981         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
38982         no longer requires <ucontext.h> to exist.  Optimize setrlimit
38983         check.
38984         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
38985         <sys/resource.h>.
38986
38987         Move c-stack test into testsuite.
38988         * modules/c-stack-tests: New file.
38989         * lib/c-stack.c [DEBUG]: Move test program...
38990         * tests/test-c-stack.c: ...into this new file.  Skip rather than
38991         fail test if sigaltstack is lacking.
38992         * tests/test-c-stack.sh: New driver file.
38993
38994 2008-06-16  Eric Blake  <ebb9@byu.net>
38995
38996         Use raise module consistently.
38997         * modules/fatal-signal (Depends-on): Add raise.
38998         * modules/sigprocmask (Depends-on): Likewise.
38999         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
39000         * lib/sigprocmask.c (sigprocmask): Likewise.
39001         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39002         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
39003
39004         Fix compliance bug in sigpending.
39005         * lib/sigprocmask.c (sigpending): Return pending array via
39006         parameter, not return value.
39007
39008 2008-06-14  Eric Blake  <ebb9@byu.net>
39009
39010         Improve obstack-printf test code.
39011         * tests/test-obstack-printf.c (test_function): Fix comment, and
39012         simplify usage of obstack_* in macros.  Add a test for coverage.
39013         Reported by Bruno Haible.
39014
39015 2008-06-14  Bruno Haible  <bruno@clisp.org>
39016
39017         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
39018         array size as a constant, not as a const variable.
39019         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
39020         AC_USE_SYSTEM_EXTENSIONS.
39021         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39022         Test whether the obstack_printf function actually exists.
39023         * modules/obstack-printf (Depends-on): Add extensions.
39024         (Include): Remove obstack.h.
39025         * modules/obstack-printf-posix (Depends-on): Add extensions.
39026         (Include): Remove obstack.h.
39027
39028 2008-06-13  Eric Blake  <ebb9@byu.net>
39029
39030         Add obstack-printf and obstack-printf-posix modules.
39031         * modules/obstack-printf: New file.
39032         * modules/obstack-printf-posix: Likewise.
39033         * MODULES.html.sh (Misc): Mention them.
39034         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39035         Likewise.
39036         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39037         Likewise.
39038         * modules/stdio (Makefile.am): Accomodate new modules.
39039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39040         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
39041         Declare.
39042         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
39043         functions.
39044         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
39045         (gl_REPLACE_OBSTACK_PRINTF): New macros
39046         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
39047         * tests/test-obstack-printf.c: New file.
39048         * modules/obstack-printf-tests: Likewise.
39049         * modules/obstack-printf-posix-tests: Likewise.
39050
39051 2008-06-11  Bruno Haible  <bruno@clisp.org>
39052
39053         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
39054         * lib/open.c: Include errno.h.
39055         (open): Fail when attempting to write to a file that has a trailing
39056         slash.
39057         * tests/test-open.c (main): Test against trailing slash bug.
39058         * doc/posix-functions/open.texi: Mention the trailing slash bug.
39059
39060 2008-06-10  Bruno Haible  <bruno@clisp.org>
39061
39062         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
39063         for $? to work inside the trap command, with various /bin/sh-s.
39064         * tests/test-vc-list-files-cvs.sh: Likewise.
39065
39066 2008-06-10  Bruno Haible  <bruno@clisp.org>
39067
39068         * lib/acl-internal.h: Don't include gettext.h here.
39069         * lib/set-mode-acl.c: Include gettext.h here.
39070         * lib/copy-acl.c: Likewise.
39071
39072 2008-06-10  Bruno Haible  <bruno@clisp.org>
39073
39074         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
39075         * lib/wait-process.c (wait_subprocess): Likewise.
39076         * lib/execute.h (execute): Add termsigp argument.
39077         * lib/execute.c (execute): Likewise.
39078         * lib/csharpcomp.c (compile_csharp_using_pnet,
39079         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
39080         * lib/csharpexec.c (execute_csharp_using_pnet,
39081         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
39082         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
39083         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
39084         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
39085         is_jikes_present): Update.
39086         * lib/javaexec.c (execute_java_class): Update.
39087         * lib/javaversion.c (execute_and_read_line): Update.
39088         * NEWS: Document the changes.
39089         Reported by Eric Blake.
39090
39091 2008-06-10  Eric Blake  <ebb9@byu.net>
39092
39093         Add missing include.
39094         * tests/test-strstr.c (includes): Add <signal.h>.
39095         * tests/test-strcasestr.c (includes): Likewise.
39096         * tests/test-memmem.c (includes): Likewise.
39097
39098 2008-06-10  Bruno Haible  <bruno@clisp.org>
39099
39100         * lib/wait-process.c (wait_subprocess): Add an assertion.
39101
39102 2008-06-10  Bruno Haible  <bruno@clisp.org>
39103
39104         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
39105
39106 2008-06-10  Bruno Haible  <bruno@clisp.org>
39107
39108         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
39109         using alarm().
39110         * tests/test-strcasestr.c (main): Likewise.
39111         * tests/test-strstr.c (main): Likewise.
39112
39113 2008-06-09  Bruno Haible  <bruno@clisp.org>
39114
39115         Work around the Solaris 10 ACE ACLs ABI change.
39116         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
39117         declare if ACL_NO_TRIVIAL is present.
39118         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
39119         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
39120         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
39121         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
39122         define if ACL_NO_TRIVIAL is present.
39123         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
39124         and use the current ABI.
39125         (file_has_acl): Use same #if condition as elsewhere.
39126         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
39127         in use, and use the current ABI.
39128         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
39129         Reported by Jim Meyering.
39130
39131 2008-06-09  Eric Blake  <ebb9@byu.net>
39132
39133         Work around environments that (stupidly) ignore SIGALRM.
39134         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
39135         before using alarm().
39136         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39137         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39138         Reported by Ian Beckwith <ianb@erislabs.net>.
39139
39140         Produce autobuild blurb earlier in log.
39141         * modules/autobuild (configure.ac-early): Move AB_INIT here.
39142
39143 2008-06-09  Jim Meyering  <meyering@redhat.com>
39144         and Ondřej Vašík  <ovasik@redhat.com>
39145
39146         utimens.c: correct kernel bug work-around
39147         Ondřej Vašík found that the invalid return value of 280 indicates
39148         failure, not success, and the kernel bug we're trying to work
39149         around affects not just the utimensat call, but also the fallback
39150         futimens call.
39151         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
39152         not success.
39153         [HAVE_FUTIMENS]: Use the same work-around, here.
39154
39155 2008-06-09  Jim Meyering  <meyering@redhat.com>
39156
39157         add more guards around definition of ACE_-related code
39158         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
39159         ALLOW and ACE_OWNER are also defined.
39160
39161 2008-06-08  Bruno Haible  <bruno@clisp.org>
39162
39163         * lib/acl-internal.h: Add me as co-author.
39164         * lib/file-has-acl.c: Likewise.
39165         * lib/set-mode-acl.c: Likewise.
39166         * lib/copy-acl.c: Likewise.
39167
39168 2008-06-08  Bruno Haible  <bruno@clisp.org>
39169
39170         Add support for AIX ACLs.
39171         * lib/acl-internal.h (acl_nontrivial): New declaration.
39172         * lib/file-has-acl.c (acl_nontrivial): New function.
39173         (file_has_acl): Add implementation using AIX 4 ACL API.
39174         * lib/set-mode-acl.c (qset_acl): Likewise.
39175         * lib/copy-acl.c (qcopy_acl): Likewise.
39176
39177 2008-06-08  Bruno Haible  <bruno@clisp.org>
39178
39179         Add support for HP-UX ACLs.
39180         * lib/acl-internal.h (acl_nontrivial): New declaration.
39181         * lib/file-has-acl.c (acl_nontrivial): New function.
39182         (file_has_acl): Add implementation using HP-UX 11 ACL API.
39183         * lib/set-mode-acl.c (qset_acl): Likewise.
39184         * lib/copy-acl.c (qcopy_acl): Likewise.
39185
39186 2008-06-08  Bruno Haible  <bruno@clisp.org>
39187
39188         Add support for Cygwin ACLs.
39189         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
39190         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
39191         the chmod_or_fchmod call.
39192         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
39193
39194 2008-06-08  Bruno Haible  <bruno@clisp.org>
39195
39196         Fix bug with setuid modes in Solaris 10+ code.
39197         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
39198         succeeded, when the mode contains some special bits.
39199
39200 2008-06-08  Bruno Haible  <bruno@clisp.org>
39201
39202         Add support for Solaris 7..10 ACLs.
39203         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
39204         declarations.
39205         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
39206         functions.
39207         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
39208         * lib/set-mode-acl.c (qset_acl): Likewise.
39209         * lib/copy-acl.c (qcopy_acl): Likewise.
39210
39211 2008-06-08  Bruno Haible  <bruno@clisp.org>
39212
39213         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
39214         declaration.
39215         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
39216         (acl_access_nontrivial): Remove MacOS X case.
39217         (file_has_acl): Use acl_extended_nontrivial.
39218         * lib/copy-acl.c (qcopy_acl): Likewise.
39219
39220 2008-06-08  Bruno Haible  <bruno@clisp.org>
39221
39222         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
39223
39224 2008-06-08  Jim Meyering  <meyering@redhat.com>
39225
39226         * modules/acl (Maintainer): Add Bruno Haible.
39227
39228 2008-06-07  Bruno Haible  <bruno@clisp.org>
39229
39230         Improve support for Tru64 ACLs.
39231         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
39232         ACL on OSF/1.
39233
39234 2008-06-07  Bruno Haible  <bruno@clisp.org>
39235
39236         Add support for MacOS X ACLs.
39237         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
39238         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
39239         * lib/set-mode-acl.c (qset_acl): Likewise.
39240         * lib/copy-acl.c (qcopy_acl): Likewise.
39241
39242 2008-06-07  Bruno Haible  <bruno@clisp.org>
39243
39244         Fix memory leak introduced on 2008-05-22.
39245         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
39246         use.
39247
39248 2008-06-07  Bruno Haible  <bruno@clisp.org>
39249
39250         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
39251         to construct an empty ACL.
39252
39253 2008-06-07  Bruno Haible  <bruno@clisp.org>
39254
39255         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
39256         precisely.
39257         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
39258
39259 2008-06-07  Bruno Haible  <bruno@clisp.org>
39260
39261         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
39262         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
39263
39264 2008-06-07  Bruno Haible  <bruno@clisp.org>
39265
39266         * doc/posix-functions/_setjmp.texi: Explain the use of this function
39267         regardless of POSIX.
39268         * doc/posix-functions/_longjmp.texi: Likewise.
39269         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
39270         SystemV platform in this case.
39271
39272 2008-06-06  Eric Blake  <ebb9@byu.net>
39273
39274         Document abort() bugs.
39275         * doc/posix-functions/abort.texi (abort): Mention anomalies.
39276
39277         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
39278         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
39279         sigsetjmp.
39280         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
39281         siglongjmp, but only as a macro.
39282         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
39283         is obsolete.
39284         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
39285
39286         Tweak documentation to cover cygwin argz bugs.
39287         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
39288         argz bug fix; no code change needed since no cygwin releases
39289         occurred between the last fix and the bug being tested.
39290         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
39291         module and recently fixed cygwin bugs.
39292         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
39293         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
39294         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
39295         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
39296         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
39297         Likewise.
39298         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
39299         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
39300         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
39301         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
39302         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
39303         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
39304         Likewise.
39305
39306         Avoid gcc warning on cygwin.
39307         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
39308         !ACL_NO_TRIVIAL]: Avoid unused variable.
39309
39310 2008-06-05  Eric Blake  <ebb9@byu.net>
39311
39312         Be tolerant of UNKNOWN version in gnulib-tool test dir.
39313         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
39314         git-version-gen fails to come up with a version.
39315         Reported by Simon Josefsson.
39316
39317 2008-06-05  Jim Meyering  <meyering@redhat.com>
39318             Paul Eggert  <eggert@cs.ucla.edu>
39319
39320         utimens.c: work around a probable Linux kernel bug
39321         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
39322         appears to be a kernel bug that causes utimensat to return 280
39323         instead of 0, indicating success.
39324
39325 2008-06-04  Bruno Haible  <bruno@clisp.org>
39326
39327         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
39328         2008-06-01 commit.
39329
39330 2008-06-04  Bruno Haible  <bruno@clisp.org>
39331
39332         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
39333         * lib/file-has-acl.c (acl_access_nontrivial): New function.
39334         (file_has_acl): Use it. Save errno afterwards.
39335         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
39336
39337 2008-06-03  Bruno Haible  <bruno@clisp.org>
39338
39339         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
39340         draft code. Simplify #ifs.
39341         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
39342         Put Solaris code after POSIX-draft code. Fix comments regarding
39343         Solaris 10, HP-UX. Mention Cygwin.
39344         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
39345
39346 2008-06-03  Eric Blake  <ebb9@byu.net>
39347
39348         Provide fallback for older kernels.
39349         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
39350         Provide runtime fallback if kernel lacks support.
39351         Reported by Mike Frysinger.
39352
39353 2008-06-02  Bruno Haible  <bruno@clisp.org>
39354
39355         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
39356         it exists.
39357
39358 2008-06-02  Bruno Haible  <bruno@clisp.org>
39359
39360         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
39361         * lib/copy-acl.c (qcopy_acl): Update comment.
39362
39363 2008-06-02  Bruno Haible  <bruno@clisp.org>
39364
39365         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
39366         like ACL APIs.
39367
39368 2008-06-02  Bruno Haible  <bruno@clisp.org>
39369
39370         * tests/test-file-has-acl.sh: Use different code for Cygwin.
39371         * tests/test-set-mode-acl.sh: Likewise.
39372         * tests/test-copy-acl.sh: Likewise.
39373         * tests/test-copy-file.sh: Likewise.
39374
39375 2008-06-02  Bruno Haible  <bruno@clisp.org>
39376
39377         * tests/test-file-has-acl.sh: Remove unused code.
39378
39379 2008-06-01  Bruno Haible  <bruno@clisp.org>
39380
39381         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
39382         (copy_acl): Just a wrapper around qcopy_acl that emits the error
39383         messages.
39384         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
39385
39386 2008-06-01  Bruno Haible  <bruno@clisp.org>
39387
39388         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
39389         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
39390         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
39391         APIs.
39392         * modules/acl-tests (configure.ac): Remove tests now contained in
39393         m4/acl.m4.
39394
39395 2008-06-02  Jim Meyering  <meyering@redhat.com>
39396
39397         announce-gen: use a better key-server host name
39398         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
39399         it may be more consistently reliable.  Suggested by Werner Koch
39400         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
39401
39402 2008-06-01  Bruno Haible  <bruno@clisp.org>
39403
39404         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
39405         Reported by Voroskoi Andras <voroskoi@gmail.com>.
39406
39407 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
39408
39409         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
39410
39411 2008-06-01  Bruno Haible  <bruno@clisp.org>
39412
39413         New ACL tests.
39414         * tests/test-file-has-acl.sh: New file.
39415         * tests/test-file-has-acl.c: New file.
39416         * tests/test-set-mode-acl.sh: New file.
39417         * tests/test-set-mode-acl.c: New file.
39418         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
39419         * tests/test-copy-acl.c: New file.
39420         * modules/acl-tests: New file, based on modules/copy-file-tests.
39421         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
39422         (Depends-on): Add acl-tests.
39423         (configure.ac): Remove checks.
39424         (Makefile.am): Don't create test-sameacls program here any more.
39425
39426 2008-06-01  Bruno Haible  <bruno@clisp.org>
39427
39428         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
39429         * tests/test-sameacls.c: Include progname.h.
39430         (main): Invoke set_program_name. Portability fixes for MacOS X,
39431         Solaris, HP-UX.
39432
39433 2008-06-01  Bruno Haible  <bruno@clisp.org>
39434
39435         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
39436         function.
39437         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
39438
39439 2008-06-01  Bruno Haible  <bruno@clisp.org>
39440
39441         * modules/rpmatch (Depends-on): Add strdup.
39442
39443 2008-06-01  Bruno Haible  <bruno@clisp.org>
39444
39445         * lib/pipe.c: Include unistd-safer.h.
39446         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
39447         * modules/pipe (Depends-on): Add unistd-safer.
39448
39449 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39450
39451         * modules/autobuild (configure.ac): Call AB_INIT.
39452
39453 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39454
39455         * tests/test-getaddrinfo.c: Don't print debug messages by default.
39456         Suggested by Bruno Haible <bruno@clisp.org>.
39457
39458 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39459
39460         * tests/test-base64.c: Cast size_t to unsigned long when invoking
39461         printf.  Use %lu instead of %d.  Reported by Bruno Haible
39462         <bruno@clisp.org>.
39463
39464 2008-05-29  Eric Blake  <ebb9@byu.net>
39465
39466         Prefer new POSIX 200x interfaces over futimesat.
39467         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
39468         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
39469         when available.
39470         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
39471
39472 2008-05-28  Bruno Haible  <bruno@clisp.org>
39473
39474         * modules/stpcpy (License): Change to LGPLv2+.
39475         Requested by David Lutterkort <dlutter@redhat.com>.
39476
39477 2008-05-27  Bruno Haible  <bruno@clisp.org>
39478
39479         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
39480         current mingw.
39481         Reported by Jose E. Marchesi <jemarch@gnu.org>.
39482
39483 2008-05-27  Bruno Haible  <bruno@clisp.org>
39484
39485         * modules/iconv_open (Link): New section, from module 'iconv'.
39486         * modules/striconv (Link): Likewise.
39487         * modules/striconveh (Link): Likewise.
39488         * modules/xstriconv (Link): Likewise.
39489         * modules/unicodeio (Link): Likewise.
39490         * modules/propername (Link): Likewise.
39491         Reported by Jim Meyering.
39492
39493 2008-05-26  Jim Meyering  <meyering@redhat.com>
39494
39495         sha256: do not artificially restrict buffer length to be < 2^32
39496         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
39497         uint32_t to size_t.
39498         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
39499         to match.
39500
39501         avoid unaligned access errors, e.g., on sparc
39502         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
39503         direct access through a possibly-unaligned uint64* pointer.
39504         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
39505         direct access through a possibly-unaligned uint32* pointer.
39506         Prompted by this patch from Tom "spot" Callaway:
39507         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
39508
39509         sha512.c: fix typo in comment
39510         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
39511
39512 2008-05-25  Bruno Haible  <bruno@clisp.org>
39513
39514         * lib/set-mode-acl.c: Renamed from lib/acl.c.
39515         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
39516         (Makefile.am): Update lib_SOURCES.
39517
39518 2008-05-25  Bruno Haible  <bruno@clisp.org>
39519
39520         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
39521
39522 2008-05-25  Jim Meyering  <meyering@redhat.com>
39523
39524         useless-if-before-free: freed expr may have white-space differences
39525         * build-aux/useless-if-before-free: Recognize cases in which the
39526         freed expression differs from the tested one in embedded white
39527         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
39528         $1 was used, so we can't make any regexp shy.  Improved tests now
39529         detect this.
39530
39531         useless-if-before-free: accept white space in the expression.
39532         * build-aux/useless-if-before-free: For now, any white space
39533         in the expression must be identical in the free argument.
39534
39535         useless-if-before-free: efficiency tweak
39536         * build-aux/useless-if-before-free: Make the expression-matching
39537         regexp "shy".
39538         Make the *outer* regexp shy, not the expr-matching one.
39539
39540         update code-in-comment to accept cast of free arg
39541         * build-aux/useless-if-before-free: Update regexp.
39542
39543 2008-05-25  Bruno Haible  <bruno@clisp.org>
39544
39545         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
39546         * modules/copy-file-tests (Files, Makefile.am): Update.
39547         * tests/test-copy-file.c (func_test_copy): Update.
39548
39549 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
39550
39551         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
39552
39553 2008-05-23  Bruno Haible  <bruno@clisp.org>
39554
39555         Improve support for ACLs on OSF/1.
39556         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
39557         Remove fallback for unknown flavors of ACLs.
39558
39559 2008-05-22  Bruno Haible  <bruno@clisp.org>
39560
39561         Add support for ACLs on OSF/1.
39562         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
39563         replacements.
39564         (acl_free_text): New macro fallback.
39565         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
39566         acl_free.
39567         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
39568         acl_free_text function. Require AC_C_INLINE.
39569
39570 2008-05-22  Bruno Haible  <bruno@clisp.org>
39571
39572         Make copy_acl work on MacOS X 10.5.
39573         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
39574         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
39575         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
39576         If MODE_INSIDE_ACL, don't assume that every system has the same text
39577         representation for ACLs as FreeBSD.
39578         * lib/copy-acl.c (copy_acl): Add support for platforms with
39579         !MODE_INSIDE_ACL.
39580         * lib/file-has-acl.c (file_has_acl): Likewise.
39581         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
39582         FreeBSD, MacOS X, or IRIX, respectively.
39583
39584 2008-05-22  Bruno Haible  <bruno@clisp.org>
39585
39586         * lib/acl.h: Don't include <sys/acl.h>.
39587         (GETACLCNT): Move fallback to lib/acl-internal.h.
39588         * lib/acl-internal.h: Include <sys/acl.h> here.
39589         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
39590
39591 2008-05-22  Bruno Haible  <bruno@clisp.org>
39592
39593         Split off copy_acl function to separate file.
39594         * lib/copy-acl.c: New file, extracted from lib/acl.c.
39595         * lib/acl.c (copy_acl): Moved function to separate file.
39596         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
39597         * modules/acl (Files): Add lib/copy-acl.c.
39598         (Makefiles.am): Augment lib_SOURCES.
39599
39600 2008-05-22  Bruno Haible  <bruno@clisp.org>
39601
39602         * modules/copy-file-tests: New file.
39603         * tests/test-copy-file.sh: New file.
39604         * tests/test-copy-file.c: New file.
39605         * tests/test-copy-file-sameacls.c: New file.
39606
39607 2008-05-22  Eric Blake  <ebb9@byu.net>
39608
39609         Avoid gcc warning.
39610         * tests/test-memcmp.c (main): Pass NULL indirectly.
39611
39612 2008-05-21  Bruno Haible  <bruno@clisp.org>
39613
39614         Add reference doc about ACLs.
39615         * doc/acl-resources.txt: New file.
39616         * doc/acl-cygwin.txt: New file.
39617
39618 2008-05-21  Bruno Haible  <bruno@clisp.org>
39619
39620         Avoid one more warning from gcc.
39621         * lib/vasnprintf.c (IF_LINT): Update comments.
39622         (VASNPRINTF): Use it also for the 'prefix' array initializer.
39623
39624 2008-05-21  Jim Meyering  <meyering@redhat.com>
39625
39626         avoid a warning from gcc
39627         * lib/vasnprintf.c (IF_LINT): Define.
39628         (scale10_round_decimal_long_double):
39629         Use it to avoid a "may be used uninitialized" warning.
39630         (scale10_round_decimal_double): Likewise.
39631
39632 2008-05-21  Simon Josefsson  <simon@josefsson.org>
39633
39634         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
39635         declared.
39636
39637 2008-05-20  Bruno Haible  <bruno@clisp.org>
39638
39639         * tests/test-memcmp.c (main): Test also the sign of the result. Test
39640         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
39641
39642 2008-05-20  Simon Josefsson  <simon@josefsson.org>
39643
39644         * modules/memcmp-tests: New file.
39645         * tests/test-memcmp.c: New file.
39646
39647 2008-05-19  Bruno Haible  <bruno@clisp.org>
39648
39649         * modules/propername (Notice, configure.ac): Put quoted "..." into
39650         --keyword option.
39651         * lib/propername.h: Update comments accordingly.
39652         Reported by Eric Blake.
39653
39654 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
39655
39656         * modules/getpass-gnu (Depends-on): Add fseeko.
39657
39658 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39659
39660         * modules/base64-tests: New file.
39661
39662 2008-05-19  Bo Borgerson <gigabo@gmail.com>
39663
39664         * lib/base64.c (base64_decode_ctx): If a decode context structure
39665         was passed in use it to ignore newlines.  If a context structure
39666         was _not_ passed in, continue to treat newlines as garbage (this
39667         is the historical behavior).  Formerly base64_decode.
39668         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39669         takes a decode context structure.
39670         * lib/base64.h (base64_decode): Macro for four-argument calls.
39671         (base64_decode_alloc): Likewise.
39672         * lib/base64.c (base64_decode_ctx): If a decode context structure
39673         was passed in use it to ignore newlines.  If a context structure
39674         was _not_ passed in, continue to treat newlines as garbage (this
39675         is the historical behavior).  Formerly base64_decode.
39676         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39677         takes a decode context structure.
39678         * lib/base64.h (base64_decode): Macro for four-argument calls.
39679         (base64_decode_alloc): Likewise.
39680
39681 2008-05-19  Jim Meyering  <meyering@redhat.com>
39682
39683         avoid a warning from gcc
39684         * lib/trim.c (IF_LINT): Define.
39685         (trim2): Use it to avoid a "may be used uninitialized" warning.
39686
39687         Fix doc typo.
39688         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
39689
39690 2008-05-19  Bruno Haible  <bruno@clisp.org>
39691
39692         * doc/glibc-functions/getpass.texi: Document limits of other
39693         implementations.
39694
39695 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39696             Bruno Haible <bruno@clisp.org>
39697
39698         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
39699
39700 2008-05-18  Bruno Haible  <bruno@clisp.org>
39701
39702         * modules/propername: New file, from GNU gettext.
39703         * lib/propername.h: New file, from GNU gettext.
39704         * lib/propername.c: New file, from GNU gettext.
39705         * MODULES.html.sh (Internationalization functions): Add propername.
39706
39707 2008-05-16  Jim Meyering  <meyering@redhat.com>
39708             Bruno Haible  <bruno@clisp.org>
39709
39710         Avoid some warnings from "gcc -Wshadow".
39711         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
39712
39713 2008-05-15  Eric Blake  <ebb9@byu.net>
39714
39715         Extend previous patch to cygwin 1.7.0.
39716         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
39717         fast implementation in cygwin >= 1.7.0.
39718         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39719         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39720
39721 2008-05-15  Bruno Haible  <bruno@clisp.org>
39722
39723         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
39724         implementation in glibc >= 2.9.
39725         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39726         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39727
39728 2008-05-15  Bruno Haible  <bruno@clisp.org>
39729
39730         * MODULES.html.sh (Internationalization functions): Remove linebreak.
39731         (Unicode string functions): Add unilbrk/*.
39732         Reported by Karl Berry.
39733
39734 2008-05-15  Eric Blake  <ebb9@byu.net>
39735
39736         Fix violation of <stdbool.h> replacement in regex.
39737         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
39738         * lib/regexec.c (re_search_internal): Likewise.
39739         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
39740
39741 2008-05-15  Jim Meyering  <meyering@redhat.com>
39742
39743         avoid distracting test output when git or cvs is not found
39744         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
39745         * tests/test-vc-list-files-git.sh: Likewise.
39746
39747 2008-05-15  Eric Blake  <ebb9@byu.net>
39748
39749         Glibc finally accepted the memmem speedup code, bugzilla #5514.
39750         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
39751         glibc version.
39752         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39753         * doc/posix-functions/strstr.texi (strstr): Likewise.
39754         * lib/str-two-way.h (MAX): Sychronize with glibc.
39755
39756 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
39757
39758         * lib/regcomp.c (optimize_utf8): Add a note on why we test
39759         opr.ctx_type.
39760         (calc_first): Initialize constraint field.
39761         (duplicate_node_closure): Use it instead of special casing ANCHORS.
39762         Fix grammar.
39763         (duplicate_node): Merge constraint field for all node types.
39764         (calc_eclosure_iter): Look at constraint field for all node types.
39765         * lib/regex_internal.c (create_cd_newstate): Don't look at
39766         opr.ctx_type.
39767
39768 2008-05-14  Bruno Haible  <bruno@clisp.org>
39769
39770         Help GCC to do better code generation.
39771         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
39772         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
39773         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
39774         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
39775         Declare with attribute 'malloc' if supported.
39776
39777 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
39778
39779         use "echo STR|wc -c" rather than unportable "expr length STR"
39780         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
39781         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
39782
39783 2008-05-14  Jim Meyering  <meyering@redhat.com>
39784
39785         use dd ibs=$n count=1 ... rather than less-portable head -c$n
39786         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
39787         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
39788         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
39789         via Collin Lasse.
39790
39791 2008-05-14  Eric Blake  <ebb9@byu.net>
39792
39793         Avoid quadratic growth in gl_LIBSOURCES.
39794         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
39795         Suggested by Bruno Haible.
39796
39797         Test xmemdup0.
39798         * modules/xmemdup0-tests: New file.
39799         * tests/test-xmemdup0.c: Likewise.
39800
39801 2008-05-13  Eric Blake  <ebb9@byu.net>
39802
39803         Split xmemdup0 into its own module.
39804         * modules/xmemdup0: New file.
39805         * lib/xmemdup0.h: Likewise.
39806         * lib/xmemdup0.c: Likewise.
39807         * MODULES.html.sh (Memory management functions): Add xmemdup0.
39808         * lib/xalloc.h (xmemdup0): Remove.
39809         * lib/xmalloc.c (xmemdup0): Likewise.
39810
39811 2008-05-13  Eric Blake  <ebb9@byu.net>
39812             Bruno Haible  <bruno@clisp.org>
39813
39814         Reduce number of forks required during autoconf.
39815         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
39816         and gl_LIBSOURCES_DIR.
39817         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
39818         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
39819         m4_syscmd per file.
39820         <m4_foreach_w>: Move...
39821         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
39822
39823 2008-05-13  Eric Blake  <ebb9@byu.net>
39824
39825         * gnulib-tool: Fix various comment typos.
39826
39827 2008-05-12  Bruno Haible  <bruno@clisp.org>
39828
39829         Tailor the linebreaking algorithm.
39830         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
39831
39832 2008-05-12  Bruno Haible  <bruno@clisp.org>
39833
39834         Update to Unicode 5.0.0.
39835         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39836         LBP_JV, LBP_JT. Redistribute values.
39837         (unilbrk_table): Change size.
39838         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
39839         Unicode TR#14 rev. 22.
39840         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39841         LBP_JV, LBP_JT. Redistribute values.
39842         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
39843         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
39844         Update.
39845         * lib/unilbrk/lbrkprop1.h: Regenerated.
39846         * lib/unilbrk/lbrkprop2.h: Regenerated.
39847         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
39848         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
39849         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
39850         Likewise.
39851         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
39852         Likewise.
39853         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
39854         result.
39855         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39856         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39857         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
39858         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
39859         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
39860         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
39861
39862 2008-05-11  Bruno Haible  <bruno@clisp.org>
39863
39864         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
39865
39866 2008-05-11  Bruno Haible  <bruno@clisp.org>
39867
39868         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
39869         * modules/unilbrk/gen-lbrk: New file.
39870
39871 2008-05-11  Bruno Haible  <bruno@clisp.org>
39872
39873         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
39874         * m4/sha512.m4 (gl_SHA512): Likewise.
39875
39876 2008-05-11  Jim Meyering  <meyering@redhat.com>
39877
39878         New modules: crypto/sha256, crypto/sha512 (from coreutils)
39879         * modules/crypto/sha256: New file.
39880         * modules/crypto/sha512: Likewise.
39881         * lib/sha256.c: Likewise.
39882         * lib/sha256.h: Likewise.
39883         * lib/sha512.c: Likewise.
39884         * lib/sha512.h: Likewise.
39885         * lib/u64.h: Likewise.
39886         * m4/sha256.m4: Likewise.
39887         * m4/sha512.m4: Likewise.
39888         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
39889
39890 2008-05-10  Bruno Haible  <bruno@clisp.org>
39891
39892         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
39893         (Input/Output <stdio.h>): Add xprintf.
39894         (Signal handling <signal.h>): Add strsignal.
39895         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
39896         (Core language properties): Add func.
39897         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
39898         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
39899         strings.
39900         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
39901         (Input/output): New section.
39902         (File system functions): Add openat-die, stat-macros.
39903         (Networking functions): Add sockets.
39904         (Unicode string functions): Add unictype/*.
39905         (Support for building libraries and executables): Add gperf.
39906         (Support for building documentation): Add agpl-3.0.
39907         (Misc): Add nocrash.
39908
39909 2008-05-10  Bruno Haible  <bruno@clisp.org>
39910
39911         * modules/unictype/gen-ctype: New file.
39912
39913 2008-05-10  Jim Meyering  <meyering@redhat.com>
39914
39915         Make chdir-safer.c more efficient on a system with no symlinks.
39916         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
39917         also if ELOOP is zero.  Suggested by Bruno Haible.
39918
39919         Make chdir-safer.c slightly safer.
39920         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
39921         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
39922
39923         Avoid compile failure on systems without ELOOP (like mingw).
39924         * lib/chdir-safer.c (ELOOP): Define if not already defined.
39925         Reported by Bruno Haible.
39926
39927 2008-05-10  Bruno Haible  <bruno@clisp.org>
39928
39929         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
39930         (is_utf8_encoding): Use a case-insensitive comparison.
39931         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
39932         streq.
39933
39934 2008-05-10  Bruno Haible  <bruno@clisp.org>
39935
39936         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
39937         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
39938         * lib/unilbrk/ulc-common.h (iconv_string_length,
39939         iconv_string_keeping_offsets): Remove declarations.
39940         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
39941         Don't include <iconv.h>, streq.h, xsize.h.
39942         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
39943         conversion.
39944         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
39945         <iconv.h>, streq.h, xsize.h.
39946         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
39947         conversion.
39948         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
39949         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
39950         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
39951         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
39952
39953 2008-05-10  Bruno Haible  <bruno@clisp.org>
39954
39955         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
39956         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
39957
39958         * modules/unilbrk/u32-width-linebreaks-tests: New file.
39959         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
39960
39961         * modules/unilbrk/u16-width-linebreaks-tests: New file.
39962         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
39963
39964         * modules/unilbrk/u8-width-linebreaks-tests: New file.
39965         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
39966
39967         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
39968         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
39969
39970         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
39971         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
39972
39973         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
39974         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
39975
39976         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
39977         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
39978
39979 2008-05-10  Bruno Haible  <bruno@clisp.org>
39980
39981         Split up 'linebreak' module.
39982         * lib/unilbrk.h: New file, based on lib/linebreak.h.
39983         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
39984         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
39985         modifications.
39986         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
39987         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
39988         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
39989         lib/linebreak.c.
39990         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
39991         lib/linebreak.c.
39992         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
39993         lib/linebreak.c.
39994         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
39995         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
39996         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
39997         lib/linebreak.c.
39998         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
39999         lib/linebreak.c.
40000         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
40001         lib/linebreak.c.
40002         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
40003         lib/linebreak.c.
40004         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
40005         lib/linebreak.c.
40006         * modules/unilbrk/base: New file.
40007         * modules/unilbrk/tables: New file.
40008         * modules/unilbrk/u8-possible-linebreaks: New file.
40009         * modules/unilbrk/u16-possible-linebreaks: New file.
40010         * modules/unilbrk/u32-possible-linebreaks: New file.
40011         * modules/unilbrk/ulc-common: New file.
40012         * modules/unilbrk/ulc-possible-linebreaks: New file.
40013         * modules/unilbrk/u8-width-linebreaks: New file.
40014         * modules/unilbrk/u16-width-linebreaks: New file.
40015         * modules/unilbrk/u32-width-linebreaks: New file.
40016         * modules/unilbrk/ulc-width-linebreaks: New file.
40017         * lib/linebreak.h: Remove file.
40018         * lib/linebreak.c: Remove file.
40019         * m4/linebreak.m4: Remove file.
40020         * modules/linebreak: Remove file.
40021         * NEWS: Mention the changes.
40022
40023 2008-05-09  Eric Blake  <ebb9@byu.net>
40024
40025         Add xmemdup0.
40026         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
40027         implementation.
40028         * lib/xmalloc.c (xmemdup0): New C implementation.
40029
40030 2008-05-08  Bruno Haible  <bruno@clisp.org>
40031
40032         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
40033
40034 2008-05-07  Eric Blake  <ebb9@byu.net>
40035
40036         Support cross-compilation of <wctype.h>.
40037         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
40038         AC_CACHE_CHECK.
40039
40040 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
40041
40042         * build-aux/vc-list-files: Add support for bzr.
40043
40044 2008-05-03  Jim Meyering  <meyering@redhat.com>
40045
40046         avoid failed assertion with tight malloc
40047         * tests/test-getndelim2.c: Correct an off-by-one assertion.
40048
40049 2008-05-03  Simon Josefsson  <simon@josefsson.org>
40050
40051         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
40052         are needed from arpa/inet.h.
40053         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
40054         Reported by Bruno Haible.
40055
40056 2008-05-02  Jim Meyering  <meyering@redhat.com>
40057
40058         avoid compilation error on FreeBSD 6
40059         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
40060
40061 2008-05-01  Jim Meyering  <meyering@redhat.com>
40062
40063         useless-if-before-free: correct --help's exit status description
40064         * build-aux/useless-if-before-free (usage): Like grep, exit 0
40065         for one or more matches, etc.  Reported by Bruno Haible.
40066
40067         vc-list-files: make the stand-alone gnulib test work
40068         * modules/vc-list-files-tests (configure.ac):
40069         Define and AC_SUBST abs_aux_dir.
40070         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
40071         $(abs_top_srcdir) to each script and having each of them
40072         duplicate the work of setting PATH, set PATH here, using
40073         the new variable, abs_aux_dir instead.
40074         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
40075         * tests/test-vc-list-files-git.sh: Likewise.
40076         Reported by Bruno Haible.
40077
40078 2008-05-01  Bruno Haible  <bruno@clisp.org>
40079
40080         * lib/getndelim2.c (getndelim2): Fix newsize computation during
40081         reallocation. Rename 'done' to 'found_delimiter'.
40082
40083 2008-05-01  Jim Meyering  <meyering@redhat.com>
40084
40085         vc-list-files: accommodate /bin/sh like the one from Solaris 10
40086         * build-aux/vc-list-files: Use `...`, not $(...).
40087
40088 2008-04-30  Jim Meyering  <meyering@redhat.com>
40089
40090         add tests for vc-list-files
40091         * modules/vc-list-files-tests: New module.
40092         * tests/test-vc-list-files-cvs.sh: New file.
40093         * tests/test-vc-list-files-git.sh: New file.
40094
40095         avoid a warning from gcc
40096         * lib/getndelim2.c (IF_LINT): Define.
40097         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
40098
40099         vc-list-files: work properly with build-aux/cvsu, too
40100         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
40101         to all cvs-based clauses.
40102
40103         vc-list-files: work properly in the CVS+awk case, too
40104         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
40105
40106         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
40107         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
40108         take more than one file argument, so .  Add quotes, just in case $dir
40109         ever contains a shell meta-character.  Prompted by Soren Hansen in
40110         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
40111
40112 2008-04-29  Eric Blake  <ebb9@byu.net>
40113
40114         Optimize getndelim2 to use block operations when possible.
40115         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
40116         freadseek, and memchr2.
40117         * lib/getndelim2.c (getndelim2): Use them for block reads.
40118
40119 2008-04-29  Bruno Haible  <bruno@clisp.org>
40120
40121         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
40122         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40123         * modules/inet_ntop (Depends-on): Add extensions.
40124         * modules/inet_pton (Depends-on): Likewise.
40125         Reported by Simon Josefsson.
40126
40127 2008-04-29  Jim Meyering  <meyering@redhat.com>
40128
40129         When the is more than one match in a block, match all of them.
40130         * build-aux/useless-if-before-free: Iterate through each block
40131         until there are no more matches.
40132
40133         Fix broken useless-if-before-free script.
40134         * build-aux/useless-if-before-free: Fix typo: missing "?" after
40135         the expression to match cast of argument to free-like function.
40136
40137 2008-04-29  Eric Blake  <ebb9@byu.net>
40138
40139         Use new header.
40140         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
40141
40142 2008-04-29  Jim Meyering  <meyering@redhat.com>
40143
40144         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
40145         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
40146         by gnulib to exist and to declare e.g., inet_ntop.
40147         Don't include "inet_ntop.h", now removed.
40148
40149         * m4/arpa_inet_h.m4: Remove trailing blanks.
40150
40151 2008-04-29  Eric Blake  <ebb9@byu.net>
40152
40153         Silence valgrind on safe reads beyond potential array bounds.
40154         * lib/rawmemchr.valgrind: New file.
40155         * lib/strchrnul.valgrind: Likewise.
40156         * modules/rawmemchr (Files): Distribute new file.
40157         * modules/strchrnul (Files): Likewise.
40158         Suggested by Bruno Haible.
40159
40160 2008-04-29  Bruno Haible  <bruno@clisp.org>
40161
40162         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
40163         (inet_ntop, inet_pton): Change portability warning's wording.
40164         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
40165         Invoke gl_CHECK_NEXT_HEADERS.
40166         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
40167         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
40168         set ARPA_INET_H.
40169         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40170         * modules/arpa_inet (Description): No longer only for systems that
40171         lack it.
40172         (Depends-on): Add include_next.
40173         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
40174         HAVE_ARPA_INET_H.
40175
40176 2008-04-29  Jim Meyering  <meyering@redhat.com>
40177
40178         * modules/mkdir (License): Re-license as LGPLv2+.
40179
40180 2008-04-29  Bruno Haible  <bruno@clisp.org>
40181
40182         * modules/rawmemchr (Maintainer): Set to Eric.
40183         * modules/strchrnul (Maintainer): Likewise.
40184
40185 2008-04-29  Simon Josefsson  <simon@josefsson.org>
40186
40187         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
40188         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
40189
40190         * modules/arpa_inet (arpa/inet.h): Use them.
40191
40192 2008-04-28  Eric Blake  <ebb9@byu.net>
40193
40194         Test getndelim2.
40195         * modules/getndelim2-tests: New file.
40196         * tests/test-getndelim2.c: Likewise.
40197         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
40198         stream.
40199         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
40200
40201         * MODULES.html.sh: Document new module.
40202
40203 2008-04-20  Bruno Haible  <bruno@clisp.org>
40204
40205         * lib/c-stack.c (die): Use raise.
40206         * modules/c-stack (Depends-on): Add raise.
40207
40208 2008-04-28  Bruno Haible  <bruno@clisp.org>
40209
40210         Expect rpmatch to be declared.
40211         * lib/yesno.c (rpmatch): Remove declaration.
40212
40213         Declare rpmatch.
40214         * lib/stdlib.in.h (rpmatch): New declaration.
40215         * lib/rpmatch.c: Include <stdlib.h> first.
40216         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
40217         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
40218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
40219         HAVE_RPMATCH.
40220         * modules/rpmatch (Depends-on): Add stdlib, extensions.
40221         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40222         (Include): Set to <stdlib.h>.
40223         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
40224         HAVE_RPMATCH.
40225         * NEWS: Document the change.
40226
40227 2008-04-28  Bruno Haible  <bruno@clisp.org>
40228
40229         Change rpmatch to use nl_langinfo when appropriate.
40230         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
40231         (N_): New macro.
40232         (localized_pattern): New function/macro.
40233         (try): Remove match, nomatch arguments. Copy the pattern into safe
40234         memory before caching it.
40235         (rpmatch): Use localized_pattern. Add translator comments.
40236         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
40237         Suggested by Eric Blake.
40238         * modules/rpmatch (Depends-on): Add stdbool.
40239
40240 2008-04-28  Eric Blake  <ebb9@byu.net>
40241
40242         Add rawmemchr module, matching glibc.
40243         * modules/string (Makefile.am): New indicator.
40244         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
40245         * lib/string.in.h (rawmemchr): Declare when appropriate.
40246         * modules/rawmemchr: New file.
40247         * m4/rawmemchr.m4: Likewise.
40248         * lib/rawmemchr.c: Likewise.
40249         * modules/rawmemchr-tests: Likewise.
40250         * tests/test-rawmemchr.c: Likewise.
40251         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
40252         module.
40253         * modules/strchrnul (Depends-on): Add rawmemchr.
40254         * lib/strchrnul.c (strchrnul): Optimize a corner case.
40255
40256         Whitespace cleanup.
40257         * tests/test-strchrnul.c: Reindent.
40258         * lib/strchrnul.c: Likewise.
40259
40260         Optimize and test strchrnul.
40261         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
40262         * modules/strchrnul-tests: New file.
40263         * tests/test-strchrnul.c: Likewise.
40264
40265         Remove intprops dependency.
40266         * modules/memchr (Depends-on): Remove intprops.
40267         * modules/memrchr (Depends-on): Likewise.
40268         * modules/memchr2 (Depends-on): Likewise.
40269         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
40270         * lib/memrchr.c (__memrchr): Likewise.
40271         * lib/memrchr2.c (memchr2): Likewise.
40272         Reported by Simon Josefsson.
40273
40274 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40275
40276         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
40277         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40278
40279 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40280
40281         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
40282
40283         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
40284
40285         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
40286
40287         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
40288         declarations.
40289         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
40290
40291         * m4/inet_pton.m4: Don't check for header files.
40292
40293         * m4/inet_ntop.m4: Don't check for header files.
40294
40295 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40296
40297         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
40298         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
40299         trigger for cygwin).
40300         Reported by Bruno Haible  <bruno@clisp.org>.
40301
40302 2008-04-28  Bruno Haible  <bruno@clisp.org>
40303
40304         * doc/posix-functions/strdup.texi: Mention mingw problem.
40305
40306 2008-04-27  Bruno Haible  <bruno@clisp.org>
40307
40308         * modules/stat-time-tests (Depends-on): Add sleep.
40309         * tests/test-stat-time.c (force_unlink): New function.
40310         (cleanup): Use it.
40311         (test_mtime): Remove the ctime related tests.
40312         (test_ctime): New function, containing the ctime related tests.
40313         (main): Call test_ctime, except on native Windows platforms.
40314
40315 2008-04-27  Bruno Haible  <bruno@clisp.org>
40316
40317         * lib/rpmatch.c (rpmatch): Add some comments.
40318         Reported by James Youngman <jay@gnu.org>.
40319
40320 2008-04-27  Bruno Haible  <bruno@clisp.org>
40321
40322         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
40323         quiet NaNs.
40324
40325 2008-04-27  Bruno Haible  <bruno@clisp.org>
40326
40327         Make test-yesno.sh work on mingw.
40328         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
40329         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
40330         (main): Set stdin to binary mode.
40331         * modules/yesno-tests (Depends-on): Add binary-io.
40332
40333 2008-04-27  Bruno Haible  <bruno@clisp.org>
40334
40335         Fix 'isfinite' on x86, x86_64, ia64 platforms.
40336         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
40337         argument that lie outside the IEEE 854 domain.
40338         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
40339         (gl_ISFINITE): Use it.
40340         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
40341
40342 2008-04-27  Bruno Haible  <bruno@clisp.org>
40343
40344         Allow local renaming in config.h.
40345         * lib/memrchr.c (memrchr): Don't undefine outside libc.
40346
40347 2008-04-27  Bruno Haible  <bruno@clisp.org>
40348
40349         * lib/memchr.c (__memchr): Change type of 'i'.
40350         * lib/memchr2.c (memchr2): Likewise.
40351
40352 2008-04-26  Eric Blake  <ebb9@byu.net>
40353         and Bruno Haible  <bruno@clisp.org>
40354
40355         Optimize and test memrchr.
40356         * modules/memrchr (Depends-on): Add intprops.
40357         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
40358         * modules/memrchr-tests: New file.
40359         * tests/test-memrchr.c: New file.
40360
40361 2008-04-26  Bruno Haible  <bruno@clisp.org>
40362
40363         Add tentative support for DragonFly BSD.
40364         * lib/stdio-impl.h: Add macros for DragonFly BSD.
40365         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
40366         fp.
40367         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40368         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
40369         * lib/fpurge.c (fpurge): Likewise.
40370         * lib/freadable.c (freaadable): Likewise.
40371         * lib/freadahead.c (freadahead): Likewise.
40372         * lib/freading.c (freading): Likewise.
40373         * lib/freadptr.c (freadptr): Likewise.
40374         * lib/freadseek.c (freadptrinc): Likewise.
40375         * lib/fseeko.c (fseeko): Likewise.
40376         * lib/fseterr.c (fseterr): Likewise.
40377         * lib/fwritable.c (fwritable): Likewise.
40378         * lib/fwriting.c (fwriting): Likewise.
40379
40380 2008-04-26  Bruno Haible  <bruno@clisp.org>
40381
40382         * lib/stdio-impl.h: New file.
40383         * lib/fbufmode.c: Include stdio-impl.h.
40384         (fbufmode): Use fp_, remove redundant #defines.
40385         * lib/fflush.c: Include stdio-impl.h.
40386         (clear_ungetc_buffer): Remove redundant #defines.
40387         * lib/fpurge.c: Include stdio-impl.h.
40388         (fpurge): Remove redundant #defines.
40389         * lib/freadable.c: Include stdio-impl.h.
40390         (freadable): Remove redundant #defines.
40391         * lib/freadahead.c: Include stdio-impl.h.
40392         (freadahead): Remove redundant #defines.
40393         * lib/freading.c: Include stdio-impl.h.
40394         (freading): Remove redundant #defines.
40395         * lib/freadptr.c: Include stdio-impl.h.
40396         (freadptr): Remove redundant #defines.
40397         * lib/freadseek.c: Include stdio-impl.h.
40398         (freadptrinc): Remove redundant #defines.
40399         * lib/fseeko.c: Include stdio-impl.h.
40400         (rpl_fseeko): Remove redundant #defines.
40401         * lib/fseterr.c: Include stdio-impl.h.
40402         (fseterr): Remove redundant #defines.
40403         * lib/fwritable.c: Include stdio-impl.h.
40404         (fwritable: Remove redundant #defines.
40405         * lib/fwriting.c: Include stdio-impl.h.
40406         (fwriting): Remove redundant #defines.
40407         * modules/fbufmode (Files): Add lib/stdio-impl.h.
40408         * modules/fflush (Files): Likewise.
40409         * modules/fpurge (Files): Likewise.
40410         * modules/freadable (Files): Likewise.
40411         * modules/freadahead (Files): Likewise.
40412         * modules/freading (Files): Likewise.
40413         * modules/freadptr (Files): Likewise.
40414         * modules/freadseek (Files): Likewise.
40415         * modules/fseeko (Files): Likewise.
40416         * modules/fseterr (Files): Likewise.
40417         * modules/fwritable (Files): Likewise.
40418         * modules/fwriting (Files): Likewise.
40419
40420 2008-04-26  Bruno Haible  <bruno@clisp.org>
40421
40422         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40423         restore_seek_optimization, update_fpos_cache): New functions, extracted
40424         from rpl_fflush.
40425         (rpl_fflush): Use them.
40426         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
40427         (gl_REPLACE_FFLUSH): Use it.
40428
40429 2008-04-26  Bruno Haible  <bruno@clisp.org>
40430
40431         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
40432         on Solaris.
40433         * tests/test-xstrtoimax.sh: Likewise.
40434         * tests/test-xstrtoumax.sh: Likewise.
40435         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40436
40437 2008-04-26  Bruno Haible  <bruno@clisp.org>
40438
40439         * modules/memchr-tests: New file.
40440         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
40441
40442 2008-04-26  Eric Blake  <ebb9@byu.net>
40443             Bruno Haible  <bruno@clisp.org>
40444
40445         * lib/memchr.c: Include intprops.h.
40446         (__memchr): Optimize parallel detection of matching bytes. Rename local
40447         variables. Add explanatory comments.
40448
40449 2008-04-26  Bruno Haible  <bruno@clisp.org>
40450
40451         Fix module 'memchr', broken since 2000-10-28.
40452         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
40453
40454 2008-04-26  Bruno Haible  <bruno@clisp.org>
40455
40456         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
40457         comments.
40458
40459 2008-04-25  Eric Blake  <ebb9@byu.net>
40460
40461         Use native fstatat on cygwin 1.7.0.
40462         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
40463         first.
40464
40465 2008-04-23  Eric Blake  <ebb9@byu.net>
40466
40467         Improve memchr2 performance.
40468         * lib/memchr2.c (memchr2): Further optimize parallel detection of
40469         NUL bytes.
40470         * modules/memchr2 (Depends-on): Use intprops.h.
40471
40472 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40473
40474         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
40475         an inline function instead of a CPP macro.  Patch by Ben Pfaff
40476         <blp@cs.stanford.edu>.
40477
40478 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40479
40480         * lib/arpa_inet.in.h: New file.
40481
40482         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
40483         (Makefile.am): Sed in substitute header file.
40484
40485         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
40486         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
40487
40488         * modules/inet_ntop (configure.ac): Use
40489         gl_ARPA_INET_MODULE_INDICATOR.
40490
40491         * modules/inet_pton (configure.ac): Use
40492         gl_ARPA_INET_MODULE_INDICATOR.
40493
40494 2008-04-22  Jim Meyering  <meyering@redhat.com>
40495
40496         * modules/verify (License): Re-license as LGPLv2+.
40497
40498 2008-04-22  Simon Josefsson  <simon@josefsson.org>
40499
40500         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
40501         parameter to void* as per POSIX standard (MinGW uses char*).
40502
40503 2008-04-21  Bruno Haible  <bruno@clisp.org>
40504
40505         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
40506         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
40507         Define to replacements if REPLACE_ISWCNTRL is 1.
40508         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
40509         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
40510         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
40511         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
40512         what it fixes.
40513         * doc/posix-functions/iswalpha.texi: Likewise.
40514         * doc/posix-functions/iswblank.texi: Likewise.
40515         * doc/posix-functions/iswcntrl.texi: Likewise.
40516         * doc/posix-functions/iswdigit.texi: Likewise.
40517         * doc/posix-functions/iswgraph.texi: Likewise.
40518         * doc/posix-functions/iswlower.texi: Likewise.
40519         * doc/posix-functions/iswprint.texi: Likewise.
40520         * doc/posix-functions/iswpunct.texi: Likewise.
40521         * doc/posix-functions/iswspace.texi: Likewise.
40522         * doc/posix-functions/iswupper.texi: Likewise.
40523         * doc/posix-functions/iswxdigit.texi: Likewise.
40524         Reported by Alain Guibert.
40525
40526 2008-04-21  Bruno Haible  <bruno@clisp.org>
40527
40528         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
40529         Patch by Alain Guibert.
40530
40531 2008-04-21  Bruno Haible  <bruno@clisp.org>
40532
40533         Fix test failures on mingw.
40534         * tests/test-xstrtol.c (print_no_progname): New function.
40535         (main): Install it in error_print_progname hook.
40536         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
40537         * tests/test-xstrtoimax.sh: Likewise.
40538         * tests/test-xstrtoumax.sh: Likewise.
40539
40540 2008-04-21  Bruno Haible  <bruno@clisp.org>
40541
40542         Fix test failure on mingw.
40543         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
40544
40545 2008-04-21  Bruno Haible  <bruno@clisp.org>
40546
40547         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
40548         Actually assign a value.
40549
40550 2008-04-20  Bruno Haible  <bruno@clisp.org>
40551
40552         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
40553         take 2.
40554         * lib/canonicalize.c (canonicalize_file_name): Elide if the
40555         'canonicalize-lgpl' module is also used.
40556         * lib/canonicalize-lgpl.c: Undo last change.
40557         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
40558
40559 2008-04-20  Bruno Haible  <bruno@clisp.org>
40560
40561         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
40562         config.h. Provide _mkdir based fallback for mingw.
40563         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
40564         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
40565         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
40566         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
40567         rather than defining mkdir in config.h.
40568         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
40569         (gl_SYS_STAT_H_DEFAULTS): New macro.
40570         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
40571         HAVE_IO_H any more.
40572         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
40573         HAVE_DECL_MKDIR and HAVE_IO_H.
40574
40575 2008-04-20  Bruno Haible  <bruno@clisp.org>
40576
40577         * lib/isapipe.c: Port to native Windows platforms.
40578
40579 2008-04-20  Bruno Haible  <bruno@clisp.org>
40580
40581         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
40582
40583 2008-04-21  Eric Blake  <ebb9@byu.net>
40584
40585         Work around preprocessors that don't handle UINTMAX_MAX.
40586         * lib/memchr2.c (memchr2): Avoid embedded #if.
40587         Reported by Alain Guibert, fix suggested by Bruno Haible.
40588
40589 2008-04-21  Simon Josefsson  <simon@josefsson.org>
40590
40591         * doc/posix-functions/strftime.texi (strftime): Explain better
40592         Windows incompatibility.  Suggested by Micah Cowan
40593         <micah@cowan.name>.
40594
40595 2008-04-20  Bruno Haible  <bruno@clisp.org>
40596
40597         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
40598         unistr/u8-mblen.
40599
40600 2008-04-20  Bruno Haible  <bruno@clisp.org>
40601
40602         Fix test failure on platforms with non-GNU iconv.
40603         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
40604         (U_TO_U8): Use it, rather than u16_to_u8.
40605         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
40606         units at the end of the input string.
40607         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
40608
40609 2008-04-20  Bruno Haible  <bruno@clisp.org>
40610
40611         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
40612         when the resulting length is 0.
40613         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
40614
40615 2008-04-20  Bruno Haible  <bruno@clisp.org>
40616
40617         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
40618         works.
40619         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
40620
40621 2008-04-20  Bruno Haible  <bruno@clisp.org>
40622
40623         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
40624         * modules/tsearch-tests (configure.ac): Test for initstate function.
40625
40626 2008-04-20  Bruno Haible  <bruno@clisp.org>
40627
40628         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
40629         for nlink_t if missing.
40630         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
40631
40632 2008-04-19  Bruno Haible  <bruno@clisp.org>
40633
40634         Work around snprintf bug on Linux libc5.
40635         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
40636         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40637         gl_SNPRINTF_SIZE1.
40638         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40639         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
40640         that test failed.
40641         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40642         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
40643         * modules/snprintf (Files): Add m4/printf.m4.
40644         * modules/vsnprintf (Files): Likewise.
40645         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
40646         * doc/posix-functions/vsnprintf.texi: Likewise.
40647
40648 2008-04-19  Bruno Haible  <bruno@clisp.org>
40649
40650         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
40651         from 0.0058 to less than 10^-7.
40652
40653 2008-04-19  Bruno Haible  <bruno@clisp.org>
40654
40655         Fix rounding when a precision is given.
40656         * lib/vasnprintf.c (is_borderline): New function.
40657         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
40658         9...9x.
40659         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
40660         %e, %g.
40661         * tests/test-vasprintf-posix.c (test_function): Likewise.
40662         * tests/test-snprintf-posix.h (test_function): Likewise.
40663         * tests/test-sprintf-posix.h (test_function): Likewise.
40664         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
40665         * tests/test-printf-posix.h (test_function): Likewise.
40666         * tests/test-printf-posix.output: Update.
40667         Reported by John Darrington <john@darrington.wattle.id.au> via
40668         Ben Pfaff <blp@cs.stanford.edu>.
40669
40670 2008-04-18  Simon Josefsson  <simon@josefsson.org>
40671
40672         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
40673         Suggested by Bruno Haible <bruno@clisp.org>.
40674
40675 2008-04-17  Bruno Haible  <bruno@clisp.org>
40676
40677         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
40678         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
40679         implementation.
40680         Patch by Bruce Merry <bmerry@gmail.com>.
40681
40682 2008-04-17  Simon Josefsson  <simon@josefsson.org>
40683
40684         * doc/posix-functions/strftime.texi (strftime): Mention that %e
40685         doesn't work under Windows.
40686
40687 2008-04-16  Bruno Haible  <bruno@clisp.org>
40688
40689         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
40690         New macros.
40691         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
40692         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
40693         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
40694         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
40695         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
40696         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
40697         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
40698         macros.
40699         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
40700         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
40701         Northern Sotho, Uighur.
40702
40703 2008-04-16  Bruno Haible  <bruno@clisp.org>
40704
40705         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
40706         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
40707         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
40708         Reported by Daniel Bergström <daniel@octocode.com>.
40709
40710 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
40711             Bruno Haible  <bruno@clisp.org>
40712
40713         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
40714         function.
40715         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
40716         New functions, mostly extracted from gl_locale_name_default.
40717         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
40718
40719 2008-04-16  Eric Blake  <ebb9@byu.net>
40720
40721         Adjust strtod detection to catch glibc 2.7 bug.
40722         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
40723         Reported by John Gatewood Ham.
40724
40725 2008-04-16  Bruno Haible  <bruno@clisp.org>
40726
40727         Add tentative support for Linux libc5.
40728         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
40729         * lib/fpurge.c (fpurge): Likewise.
40730         * lib/freadable.c (freadable): Likewise.
40731         * lib/freadahead.c (freadahead): Likewise.
40732         * lib/freading.c (freading): Likewise.
40733         * lib/freadptr.c (freadptr): Likewise.
40734         * lib/freadseek.c (freadptrinc): Likewise.
40735         * lib/fseeko.c (rpl_fseeko): Likewise.
40736         * lib/fseterr.c (fseterr): Likewise.
40737         * lib/fwritable.c (fwritable): Likewise.
40738         * lib/fwriting.c (fwriting): Likewise.
40739         Reported by Alain Guibert <alguibert+bts@free.fr>.
40740
40741 2008-04-15  Bruno Haible  <bruno@clisp.org>
40742
40743         * modules/mathl (configure.ac): Define module indicator.
40744
40745 2008-04-15  Bruno Haible  <bruno@clisp.org>
40746
40747         * lib/logl.c (logl): Remove unused variables.
40748
40749 2008-04-15  Bruno Haible  <bruno@clisp.org>
40750
40751         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
40752         fails.
40753
40754 2008-04-15  Bruno Haible  <bruno@clisp.org>
40755
40756         * lib/trim.c (trim2): Fix argument of isspace() macro.
40757
40758 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
40759
40760         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
40761         to 0.
40762         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
40763
40764 2008-04-14  Bruno Haible  <bruno@clisp.org>
40765
40766         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
40767         AC_LANG_PROGRAM argument.
40768         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
40769         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
40770         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40771         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40772         * m4/math_h.m4 (gl_MATH_H): Likewise.
40773         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40774         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40775         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40776         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
40777         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40778         * m4/regex.m4 (gl_REGEX): Likewise.
40779         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
40780         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
40781         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40782         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
40783         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40784         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40785         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40786         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40787
40788 2008-04-14  Jim Meyering  <meyering@redhat.com>
40789
40790         test-strtod: fix typos: s/abs/fabs/
40791         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
40792
40793 2008-04-13  Bruno Haible  <bruno@clisp.org>
40794
40795         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
40796         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
40797         module is also used and while not building the reloc-wrapper.
40798
40799 2008-04-13  Bruno Haible  <bruno@clisp.org>
40800
40801         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
40802
40803 2008-04-13  Bruno Haible  <bruno@clisp.org>
40804
40805         Fix AIX compilation failure introduced on 2008-04-02.
40806         * tests/test-frexp.c (exp): Undefine before redefining.
40807         * tests/test-frexpl.c (exp): Likewise.
40808
40809 2008-04-13  Bruno Haible  <bruno@clisp.org>
40810
40811         Work around a HP-UX stdio bug.
40812         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
40813         * tests/test-ftello.c (main): Likewise.
40814         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
40815         * doc/posix-functions/ftello.texi: Likewise.
40816
40817 2008-04-13  Bruno Haible  <bruno@clisp.org>
40818
40819         Make test-signbit pass on HP-UX/hppa.
40820         * tests/test-signbit.c (minus_zerol): New variable.
40821         (test_signbitl): Use it.
40822
40823 2008-04-13  Bruno Haible  <bruno@clisp.org>
40824
40825         Make truncl work on OSF/1 4.0.
40826         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
40827         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40828         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
40830         HAVE_DECL_TRUNCL.
40831         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
40832         HAVE_DECL_TRUNCL.
40833         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
40834
40835 2008-04-13  Bruno Haible  <bruno@clisp.org>
40836
40837         * lib/unictype.h: Remove trailing comma from enumeration definitions.
40838
40839 2008-04-13  Bruno Haible  <bruno@clisp.org>
40840
40841         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
40842         expression, so as to avoid HP-UX 11 cc compiler bug.
40843
40844 2008-04-13  Bruno Haible  <bruno@clisp.org>
40845
40846         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
40847
40848 2008-04-13  Bruno Haible  <bruno@clisp.org>
40849
40850         * lib/git-merge-changelog.c: Remove empty declaration outside of
40851         functions.
40852
40853 2008-04-13  Bruno Haible  <bruno@clisp.org>
40854
40855         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
40856
40857 2008-04-13  Bruno Haible  <bruno@clisp.org>
40858
40859         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
40860         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
40861         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
40862         also if it exists but lacks definitions of the SHUT_* macros.
40863         * modules/sys_socket (Description): Update.
40864         Reported by Elbert Pol <e.pol@chello.nl>.
40865
40866 2008-04-13  Bruno Haible  <bruno@clisp.org>
40867
40868         * lib/localcharset.c (OS2): Don't redefine if already defined.
40869         Reported by Elbert Pol <e.pol@chello.nl>.
40870
40871 2008-04-13  Bruno Haible  <bruno@clisp.org>
40872
40873         * lib/binary-io.h [__EMX__]: Include <io.h>.
40874         Reported by Elbert Pol <e.pol@chello.nl>.
40875
40876 2008-04-12  Bruno Haible  <bruno@clisp.org>
40877
40878         * lib/fpucw.h: Enable the definitions also for x86_64.
40879         Needed for NetBSD/x86_64.
40880         Reported by Thomas Klausner <tk@giga.or.at>.
40881
40882 2008-04-12  Bruno Haible  <bruno@clisp.org>
40883
40884         * tests/test-strtod.c: Include isnand.h.
40885         (main): Use isnand instead of isnan.
40886         Reported by Jim Meyering.
40887
40888 2008-04-12  Bruno Haible  <bruno@clisp.org>
40889
40890         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
40891         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40892
40893 2008-04-12  Jim Meyering  <meyering@redhat.com>
40894
40895         * m4/math_h.m4 (gl_MATH_H): Fix typos.
40896
40897 2008-04-12  Bruno Haible  <bruno@clisp.org>
40898
40899         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
40900         Reported by Elbert Pol <e.pol@chello.nl>.
40901
40902 2008-04-12  Eric Blake  <ebb9@byu.net>
40903
40904         Work around Solaris 10 math.h bug.
40905         * m4/math_h.m4 (gl_MATH_H): Check for bug.
40906         (gl_MATH_H_DEFAULTS): Set up default.
40907         * modules/math (Makefile.am): Replace new indicators.
40908         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
40909         * tests/test-math.c (main): Test this.
40910         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
40911         * doc/posix-headers/math.texi (math.h): Mention bug.
40912         Reported by Nelson H. F. Beebe and Jim Meyering.
40913
40914 2008-04-11  Bruno Haible  <bruno@clisp.org>
40915
40916         Adapt to future versions of Apple GCC.
40917         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
40918         Reported by Peter O'Gorman <peter@pogma.com>.
40919
40920 2008-04-11  Bruno Haible  <bruno@clisp.org>
40921
40922         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
40923
40924 2008-04-11  Bruno Haible  <bruno@clisp.org>
40925
40926         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
40927
40928         * modules/getaddrinfo-tests (Makefile.am): Define
40929         test_getaddrinfo_LDADD.
40930
40931 2008-04-11  Bruno Haible  <bruno@clisp.org>
40932
40933         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
40934         (init): Fix syntax error.
40935         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
40936         is declared.
40937
40938 2008-04-11  Bruno Haible  <bruno@clisp.org>
40939
40940         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
40941         * modules/glob (Depends-on): Add stdbool.
40942
40943 2008-04-11  Bruno Haible  <bruno@clisp.org>
40944
40945         * lib/trim.c: Include <string.h>.
40946
40947 2008-04-11  Eric Blake  <ebb9@byu.net>
40948
40949         Avoid compile failure on OS/2.
40950         * lib/regex_internal.h (internal_function): Disable optimization
40951         on OS/2 (__EMX__), where it caused compiler error.
40952         Reported by Elbert Pol.
40953
40954 2008-04-11  Bruno Haible  <bruno@clisp.org>
40955
40956         Flush the standard error stream before aborting. Needed on mingw.
40957         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
40958         * tests/test-array_list.c (ASSERT): Likewise.
40959         * tests/test-array_oset.c (ASSERT): Likewise.
40960         * tests/test-avltree_list.c (ASSERT): Likewise.
40961         * tests/test-avltree_oset.c (ASSERT): Likewise.
40962         * tests/test-avltreehash_list.c (ASSERT): Likewise.
40963         * tests/test-binary-io.c (ASSERT): Likewise.
40964         * tests/test-byteswap.c (ASSERT): Likewise.
40965         * tests/test-c-ctype.c (ASSERT): Likewise.
40966         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
40967         * tests/test-c-strcasestr.c (ASSERT): Likewise.
40968         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
40969         * tests/test-c-strstr.c (ASSERT): Likewise.
40970         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
40971         * tests/test-canonicalize.c (ASSERT): Likewise.
40972         * tests/test-carray_list.c (ASSERT): Likewise.
40973         * tests/test-ceilf1.c (ASSERT): Likewise.
40974         * tests/test-ceilf2.c (ASSERT): Likewise.
40975         * tests/test-ceill.c (ASSERT): Likewise.
40976         * tests/test-count-one-bits.c (ASSERT): Likewise.
40977         * tests/test-fbufmode.c (ASSERT): Likewise.
40978         * tests/test-fflush2.c (ASSERT): Likewise.
40979         * tests/test-floorf1.c (ASSERT): Likewise.
40980         * tests/test-floorf2.c (ASSERT): Likewise.
40981         * tests/test-floorl.c (ASSERT): Likewise.
40982         * tests/test-fopen.c (ASSERT): Likewise.
40983         * tests/test-fpending.c (ASSERT): Likewise.
40984         * tests/test-fprintf-posix.c (ASSERT): Likewise.
40985         * tests/test-fpurge.c (ASSERT): Likewise.
40986         * tests/test-freadable.c (ASSERT): Likewise.
40987         * tests/test-freadahead.c (ASSERT): Likewise.
40988         * tests/test-freading.c (ASSERT): Likewise.
40989         * tests/test-freadptr.c (ASSERT): Likewise.
40990         * tests/test-freadptr2.c (ASSERT): Likewise.
40991         * tests/test-freadseek.c (ASSERT): Likewise.
40992         * tests/test-freopen.c (ASSERT): Likewise.
40993         * tests/test-frexp.c (ASSERT): Likewise.
40994         * tests/test-frexpl.c (ASSERT): Likewise.
40995         * tests/test-fseek.c (ASSERT): Likewise.
40996         * tests/test-fseeko.c (ASSERT): Likewise.
40997         * tests/test-fstrcmp.c (ASSERT): Likewise.
40998         * tests/test-ftell.c (ASSERT): Likewise.
40999         * tests/test-ftello.c (ASSERT): Likewise.
41000         * tests/test-func.c (ASSERT): Likewise.
41001         * tests/test-fwritable.c (ASSERT): Likewise.
41002         * tests/test-fwriting.c (ASSERT): Likewise.
41003         * tests/test-getdelim.c (ASSERT): Likewise.
41004         * tests/test-getline.c (ASSERT): Likewise.
41005         * tests/test-i-ring.c (ASSERT): Likewise.
41006         * tests/test-iconv-utf.c (ASSERT): Likewise.
41007         * tests/test-iconv.c (ASSERT): Likewise.
41008         * tests/test-isfinite.c (ASSERT): Likewise.
41009         * tests/test-isnand.c (ASSERT): Likewise.
41010         * tests/test-isnanf.c (ASSERT): Likewise.
41011         * tests/test-isnanl.h (ASSERT): Likewise.
41012         * tests/test-ldexpl.c (ASSERT): Likewise.
41013         * tests/test-linked_list.c (ASSERT): Likewise.
41014         * tests/test-linkedhash_list.c (ASSERT): Likewise.
41015         * tests/test-localename.c (ASSERT): Likewise.
41016         * tests/test-lseek.c (ASSERT): Likewise.
41017         * tests/test-mbscasecmp.c (ASSERT): Likewise.
41018         * tests/test-mbscasestr1.c (ASSERT): Likewise.
41019         * tests/test-mbscasestr2.c (ASSERT): Likewise.
41020         * tests/test-mbscasestr3.c (ASSERT): Likewise.
41021         * tests/test-mbscasestr4.c (ASSERT): Likewise.
41022         * tests/test-mbschr.c (ASSERT): Likewise.
41023         * tests/test-mbscspn.c (ASSERT): Likewise.
41024         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
41025         * tests/test-mbspbrk.c (ASSERT): Likewise.
41026         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
41027         * tests/test-mbsrchr.c (ASSERT): Likewise.
41028         * tests/test-mbsspn.c (ASSERT): Likewise.
41029         * tests/test-mbsstr1.c (ASSERT): Likewise.
41030         * tests/test-mbsstr2.c (ASSERT): Likewise.
41031         * tests/test-mbsstr3.c (ASSERT): Likewise.
41032         * tests/test-memchr2.c (ASSERT): Likewise.
41033         * tests/test-memmem.c (ASSERT): Likewise.
41034         * tests/test-open.c (ASSERT): Likewise.
41035         * tests/test-printf-frexp.c (ASSERT): Likewise.
41036         * tests/test-printf-frexpl.c (ASSERT): Likewise.
41037         * tests/test-printf-posix.c (ASSERT): Likewise.
41038         * tests/test-quotearg.c (ASSERT): Likewise.
41039         * tests/test-rbtree_list.c (ASSERT): Likewise.
41040         * tests/test-rbtree_oset.c (ASSERT): Likewise.
41041         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
41042         * tests/test-round1.c (ASSERT): Likewise.
41043         * tests/test-roundf1.c (ASSERT): Likewise.
41044         * tests/test-roundl.c (ASSERT): Likewise.
41045         * tests/test-signbit.c (ASSERT): Likewise.
41046         * tests/test-sleep.c (ASSERT): Likewise.
41047         * tests/test-snprintf-posix.c (ASSERT): Likewise.
41048         * tests/test-snprintf.c (ASSERT): Likewise.
41049         * tests/test-sprintf-posix.c (ASSERT): Likewise.
41050         * tests/test-stat-time.c (ASSERT): Likewise.
41051         * tests/test-strcasestr.c (ASSERT): Likewise.
41052         * tests/test-strerror.c (ASSERT): Likewise.
41053         * tests/test-striconv.c (ASSERT): Likewise.
41054         * tests/test-striconveh.c (ASSERT): Likewise.
41055         * tests/test-striconveha.c (ASSERT): Likewise.
41056         * tests/test-strsignal.c (ASSERT): Likewise.
41057         * tests/test-strstr.c (ASSERT): Likewise.
41058         * tests/test-strtod.c (ASSERT): Likewise.
41059         * tests/test-trunc1.c (ASSERT): Likewise.
41060         * tests/test-trunc2.c (ASSERT): Likewise.
41061         * tests/test-truncf1.c (ASSERT): Likewise.
41062         * tests/test-truncf2.c (ASSERT): Likewise.
41063         * tests/test-truncl.c (ASSERT): Likewise.
41064         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
41065         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
41066         * tests/test-vasnprintf.c (ASSERT): Likewise.
41067         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
41068         * tests/test-vasprintf.c (ASSERT): Likewise.
41069         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
41070         * tests/test-vprintf-posix.c (ASSERT): Likewise.
41071         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
41072         * tests/test-vsnprintf.c (ASSERT): Likewise.
41073         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
41074         * tests/test-wcwidth.c (ASSERT): Likewise.
41075         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
41076         * tests/test-xprintf-posix.c (ASSERT): Likewise.
41077         * tests/test-xvasprintf.c (ASSERT): Likewise.
41078         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
41079         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
41080         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
41081         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
41082         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
41083         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
41084         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
41085         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
41086         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
41087         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
41088         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
41089         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
41090         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
41091         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
41092         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
41093         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
41094         * tests/unictype/test-block_list.c (ASSERT): Likewise.
41095         * tests/unictype/test-block_of.c (ASSERT): Likewise.
41096         * tests/unictype/test-block_test.c (ASSERT): Likewise.
41097         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
41098         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
41099         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
41100         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
41101         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
41102         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
41103         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
41104         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
41105         * tests/unictype/test-combining.c (ASSERT): Likewise.
41106         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
41107         * tests/unictype/test-digit.c (ASSERT): Likewise.
41108         * tests/unictype/test-mirror.c (ASSERT): Likewise.
41109         * tests/unictype/test-numeric.c (ASSERT): Likewise.
41110         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
41111         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
41112         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
41113         * tests/unictype/test-scripts.c (ASSERT): Likewise.
41114         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
41115         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
41116         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
41117         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
41118         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
41119         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
41120         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
41121         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
41122         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
41123         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
41124         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
41125         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
41126         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
41127         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
41128         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
41129         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
41130         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
41131         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
41132         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
41133         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
41134         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
41135         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
41136         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
41137         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
41138         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
41139         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
41140         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
41141         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
41142         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
41143         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
41144         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
41145         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
41146         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
41147         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
41148         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
41149         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
41150         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
41151         Reported by Eric Blake.
41152
41153 2008-04-11  Bruno Haible  <bruno@clisp.org>
41154
41155         * lib/wchar.in.h: Tweak comment.
41156
41157 2008-04-11  Bruno Haible  <bruno@clisp.org>
41158
41159         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
41160         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
41161         gl_COMMON.
41162         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
41163
41164 2008-04-11  Bruno Haible  <bruno@clisp.org>
41165
41166         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
41167
41168 2008-04-11  Simon Josefsson  <simon@josefsson.org>
41169
41170         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
41171         of attempting to use non-existing /dev/*random.  Based on patch
41172         from Adam Strzelecki <ono@java.pl> in
41173         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
41174
41175 2008-04-08  Bruno Haible  <bruno@clisp.org>
41176
41177         Add tentative support for emx+gcc.
41178         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
41179         * lib/fpurge.c (fpurge): Likewise.
41180         * lib/freadable.c (freadable): Likewise.
41181         * lib/freadahead.c (freadahead): Likewise.
41182         * lib/freading.c (freading): Likewise.
41183         * lib/freadptr.c (freadptr): Likewise.
41184         * lib/freadseek.c (freadptrinc): Likewise.
41185         * lib/fseeko.c (rpl_fseeko): Likewise.
41186         * lib/fseterr.c (fseterr): Likewise.
41187         * lib/fwritable.c (fwritable): Likewise.
41188         * lib/fwriting.c (fwriting): Likewise.
41189         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
41190
41191 2008-04-09  Eric Blake  <ebb9@byu.net>
41192
41193         Avoid some autoconf warnings.
41194         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
41195         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
41196         * m4/afs.m4 (gl_AFS): Likewise.
41197         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
41198         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
41199         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41200         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
41201         (gl_INTEGER_TYPE_SUFFIX): Likewise.
41202         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
41203         (AC_CHECK_DECLS_ONCE): Likewise.
41204         Rename file...
41205         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
41206         gnulib-tool requires autoconf 2.59 or better.
41207         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
41208
41209 2008-04-08  Eric Blake  <ebb9@byu.net>
41210
41211         Use 'git describe --match' if present (added in git 1.5.5).
41212         * build-aux/git-version-gen: Limit result to tags that match 'v*'
41213         if possible.
41214
41215 2008-04-08  Bruno Haible  <bruno@clisp.org>
41216
41217         Add tentative support for OpenServer.
41218         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
41219         _ptr, _cnt.
41220         * lib/fpurge.c (fpurge): Likewise.
41221         * lib/freadable.c (freadable): Likewise.
41222         * lib/freadahead.c (freadahead): Likewise.
41223         * lib/freading.c (freading): Likewise.
41224         * lib/freadptr.c (freadptr): Likewise.
41225         * lib/freadseek.c (freadptrinc): Likewise.
41226         * lib/fseeko.c (rpl_fseeko): Likewise.
41227         * lib/fseterr.c (fseterr): Likewise.
41228         * lib/fwritable.c (fwritable): Likewise.
41229         * lib/fwriting.c (fwriting): Likewise.
41230         Reported by Roger Cornelius <rac@tenzing.org> and
41231         Brian K. White <brian@aljex.com>.
41232
41233 2008-04-06  Jim Meyering  <meyering@redhat.com>
41234
41235         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
41236
41237 2008-04-06  Bruno Haible  <bruno@clisp.org>
41238
41239         Avoid possible error with non-ASCII bytes in UTF-8 locales.
41240         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
41241         * tests/test-printf-posix.sh: Likewise.
41242         * tests/test-vfprintf-posix.sh: Likewise.
41243         * tests/test-vprintf-posix.sh: Likewise.
41244         * tests/test-xprintf-posix.sh: Likewise.
41245
41246 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41247
41248         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
41249         hide error from 'ls', needed on OS/2.
41250         Report by Elbert Pol <elbert.pol@gmail.com>.
41251
41252 2008-04-04  Eric Blake  <ebb9@byu.net>
41253
41254         Make test-fseeko.c failures meaningful.
41255         * tests/test-fseeko.c: Print line number on failure.
41256         * tests/test-fseek.c: Likewise.
41257         Reported by Nelson H. F. Beebe.
41258
41259         Improve strtod bug detection check.
41260         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
41261         required for Solaris 10.
41262         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
41263
41264 2008-04-04  Bruno Haible  <bruno@clisp.org>
41265
41266         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
41267         by m4/setenv.m4.
41268
41269 2008-04-03  Eric Blake  <ebb9@byu.net>
41270
41271         Ensure sane .version contents.
41272         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
41273         version string.
41274         * build-aux/git-version-gen: Improve documentation.
41275
41276         Make GNU make output nicer.
41277         * top/GNUmakefile [!_have-Makefile]: Add dependency on
41278         MAKECMDGOALS to enforce message for all command line targets.  Set
41279         srcdir for use in maint.mk.
41280
41281         Another maintainer tweak.
41282         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
41283         a target that regenerates version.
41284
41285 2008-04-03  Jim Meyering  <meyering@redhat.com>
41286
41287         vc-list-files: don't cause coreutils "make po-check" failure
41288         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
41289
41290 2008-04-03  Eric Blake  <ebb9@byu.net>
41291
41292         Allow VPATH usage of vc-list-files.
41293         * build-aux/vc-list-files (scriptversion): Add timestamp.
41294         (options): Add --help, --version, -C.
41295         (CVS): Support installed cvsu.
41296
41297 2008-04-02  Bruno Haible  <bruno@clisp.org>
41298
41299         Avoid some "statement with no effect" warnings from gcc.
41300         * tests/test-wctype.c (main): Explicitly ignore unused values.
41301         Reported by Jim Meyering.
41302
41303 2008-04-02  Jim Meyering  <meyering@redhat.com>
41304
41305         Avoid some warnings from "gcc -Wshadow".
41306         * tests/test-frexp.c (exp): Define to a different identifier.
41307         * tests/test-frexpl.c (exp): Likewise.
41308
41309 2008-04-03  Jim Meyering  <meyering@redhat.com>
41310
41311         bootstrap: remove dangling *.[ch] symlinks from lib
41312         * build-aux/bootstrap [dangling symlink removal]: Move find's
41313         -depth option to precede all others, to avoid a warning.
41314         Remove *.[ch] files too, and from "$source_base" (usually lib/).
41315
41316 2008-04-02  Bruno Haible  <bruno@clisp.org>
41317
41318         Avoid some warnings from "gcc -Wshadow".
41319         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
41320         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
41321         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
41322         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
41323         Reported by Jim Meyering.
41324
41325 2008-04-01  Bruno Haible  <bruno@clisp.org>
41326
41327         Fix test to work on IRIX 6.5 with cc.
41328         * tests/test-math.c (numeric_equal): New function.
41329         (main): Use it.
41330
41331 2008-04-01  Bruno Haible  <bruno@clisp.org>
41332
41333         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
41334
41335 2008-04-01  Bruno Haible  <bruno@clisp.org>
41336
41337         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
41338         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41339         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
41340         (Depends-on): Remove math.
41341
41342         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
41343         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41344         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
41345         (Depends-on): Remove math.
41346
41347         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
41348         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41349         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
41350         (Depends-on): Remove math.
41351         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
41352         (Depends-on): Remove math.
41353
41354         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
41355         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41356         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
41357         (Depends-on): Remove math.
41358         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
41359         (Depends-on): Remove math.
41360
41361         * tests/test-round1.c: Include nan.h.
41362         (main): Use NaNd instead of NAN.
41363         * modules/round-tests (Files): Add tests/nan.h.
41364
41365         * tests/test-trunc1.c: Include nan.h.
41366         (main): Use NaNd instead of NAN.
41367         * modules/trunc-tests (Files): Add tests/nan.h.
41368
41369         * tests/test-roundf1.c: Include nan.h.
41370         (main): Use NaNf instead of NAN.
41371         * modules/roundf-tests (Files): Add tests/nan.h.
41372
41373         * tests/test-truncf1.c: Include nan.h.
41374         (main): Use NaNf instead of NAN.
41375         * modules/truncf-tests (Files): Add tests/nan.h.
41376
41377         * tests/test-ceilf1.c: Include nan.h.
41378         (main): Use NaNf instead of NAN.
41379         * modules/ceilf-tests (Files): Add tests/nan.h.
41380
41381         * tests/test-floorf1.c: Include nan.h.
41382         (main): Use NaNf instead of NAN.
41383         * modules/floorf-tests (Files): Add tests/nan.h.
41384
41385         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
41386         (main): Use NaNf instead of NAN.
41387         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
41388
41389         * tests/test-isnand.c: Include nan.h instead of <math.h>.
41390         (main): Use NaNd instead of NAN.
41391         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
41392
41393         * tests/test-frexp.c: Include nan.h.
41394         (main): Use NaNd instead of NAN.
41395         * modules/frexp-tests (Files): Add tests/nan.h.
41396
41397         * lib/isnan.c: Don't include <math.h>.
41398         (FUNC): Don't use NAN macro.
41399         * modules/isnand-nolibm (Depends-on): Remove math.
41400         * modules/isnanf-nolibm (Depends-on): Remove math.
41401         * modules/isnanl (Depends-on): Remove math.
41402         * modules/isnanl-nolibm (Depends-on): Remove math.
41403
41404         * tests/nan.h: New file.
41405
41406 2008-04-01  Eric Blake  <ebb9@byu.net>
41407
41408         Fix typos.
41409         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
41410         values to be the right type.
41411
41412         For now, cater to gnulib strtod inaccuracies.
41413         * tests/test-strtod.c (main): Allow 1-ulp error on expected
41414         fractional results.  While not as nice from a QoI perspective, it
41415         is a quicker patch than correctly implementing decimal to binary
41416         rounding.
41417
41418 2008-03-31  Eric Blake  <ebb9@byu.net>
41419
41420         Guarantee a definition of NAN.
41421         * lib/math.in.h (NAN): Define if missing.
41422         * tests/test-math.c (main): Test it.
41423         * doc/posix-headers/math.texi (math.h): Document this.
41424         * lib/isnan.c (rpl_isnand): Use it.
41425         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
41426         * tests/test-floorf1.c (NaN): Likewise.
41427         * tests/test-frexp.c (NaN): Likewise.
41428         * tests/test-isnand.c (NaN): Likewise.
41429         * tests/test-isnanf.c (NaN): Likewise.
41430         * tests/test-round1.c (NaN): Likewise.
41431         * tests/test-roundf1.c (NaN): Likewise.
41432         * tests/test-snprintf-posix.h (NaN): Likewise.
41433         * tests/test-sprintf-posix.h (NaN): Likewise.
41434         * tests/test-trunc1.c (NaN): Likewise.
41435         * tests/test-truncf1.c (NaN): Likewise.
41436         * tests/test-vasnprintf-posix.c (NaN): Likewise.
41437         * tests/test-vasprintf-posix.c (NaN): Likewise.
41438         * modules/isnand-nolibm (Depends-on): Add math.
41439         * modules/isnanf-nolibm (Depends-on): Likewise.
41440         * modules/isnanl (Depends-on): Likewise.
41441         * modules/isnanl-nolibm (Depends-on): Likewise.
41442         * modules/snprintf-posix-tests (Depends-on): Likewise.
41443         * modules/sprintf-posix-tests (Depends-on): Likewise.
41444         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
41445         * modules/vsprintf-posix-tests (Depends-on): Likewise.
41446         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
41447         * modules/vasprintf-posix-tests (Depends-on): Likewise.
41448
41449 2008-03-31  Bruno Haible  <bruno@clisp.org>
41450
41451         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
41452         * doc/posix-functions/strtod.texi: Likewise.
41453
41454 2008-03-31  Bruno Haible  <bruno@clisp.org>
41455
41456         * tests/test-strtod.c (main): Don't use C99 syntax.
41457
41458 2008-03-31  Bruno Haible  <bruno@clisp.org>
41459
41460         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
41461         Reported by Eric Blake.
41462
41463 2008-03-31  Jim Meyering  <meyering@redhat.com>
41464
41465         Don't compare actual signbit return values.
41466         * tests/test-strtod.c (main): Rather, compare only their
41467         zero/non-zero nature.
41468
41469 2008-03-31  Eric Blake  <ebb9@byu.net>
41470
41471         More strtod documentation.
41472         * doc/posix-functions/strtod.texi (strtod): Interpret more test
41473         failures as distinct bugs.
41474
41475 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41476
41477         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
41478         Problem reported by Erik Benada in
41479         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
41480
41481 2008-03-30  Bruno Haible  <bruno@clisp.org>
41482
41483         * tests/test-strtod.c: Add comments about which assertion fails on which
41484         platform.
41485         * doc/posix-functions/strtod.texi: Add info about many more platforms.
41486
41487 2008-03-30  Eric Blake  <ebb9@byu.net>
41488
41489         Test signbit behavior on zeros.
41490         * tests/test-signbit.c (test_signbitf): Add tests for zero.
41491         (test_signbitd, test_signbitl): Likewise.
41492
41493         More strtod touchups.
41494         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
41495         sign of negative underflow, for now.  Use .5, not .1.
41496         * doc/posix-functions/strtod.texi (strtod): Mention these
41497         limitations.
41498         Reported by Jim Meyering.
41499
41500 2008-03-30  Bruno Haible  <bruno@clisp.org>
41501
41502         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
41503         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
41504
41505 2008-03-30  Bruno Haible  <bruno@clisp.org>
41506
41507         Avoid failure when attempting to return empty iconv results on some
41508         platforms.
41509         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
41510         allocation, don't report ENOMEM when the resulting string is empty.
41511
41512 2008-03-30  Bruno Haible  <bruno@clisp.org>
41513
41514         Fix buffer overrun.
41515         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
41516         Don't consider the width for tmp_length. Check count against tmp_length
41517         before doing the padding. Ensure enough allocation during padding.
41518
41519 2008-03-30  Eric Blake  <ebb9@byu.net>
41520
41521         strtod touchups.
41522         * lib/strtod.c (strtod): Avoid compiler warnings.
41523         Reported by Jim Meyering.
41524
41525 2008-03-30  Bruno Haible  <bruno@clisp.org>
41526
41527         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
41528         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
41529         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
41530         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
41531         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
41532         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
41533         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
41534         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
41535
41536         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
41537         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
41538         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
41539         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
41540         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
41541         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
41542         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
41543         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
41544
41545         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
41546         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
41547         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
41548         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
41549         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
41550         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
41551         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
41552         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
41553
41554         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
41555         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
41556
41557         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
41558         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
41559
41560         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
41561         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
41562
41563         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
41564         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
41565         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
41566
41567         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
41568         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
41569         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
41570
41571         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
41572         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
41573         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
41574
41575         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
41576         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
41577         * modules/vasprintf (Depends-on): Add EOVERFLOW.
41578
41579         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
41580         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
41581         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
41582         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
41583         (Depends-on): Add EOVERFLOW.
41584         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
41585         (Depends-on): Add EOVERFLOW.
41586         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41587         (Depends-on): Add EOVERFLOW.
41588         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41589         (Depends-on): Add EOVERFLOW.
41590         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41591         (Depends-on): Add EOVERFLOW.
41592         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41593         (Depends-on): Add EOVERFLOW.
41594         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41595         (Depends-on): Add EOVERFLOW.
41596         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41597         (Depends-on): Add EOVERFLOW.
41598
41599         * lib/sprintf.c (EOVERFLOW): Remove fallback.
41600         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
41601         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
41602
41603         * lib/snprintf.c (EOVERFLOW): Remove fallback.
41604         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
41605         * modules/snprintf (Depends-on): Add EOVERFLOW.
41606
41607         * lib/poll.c (EOVERFLOW): Remove fallback.
41608         * modules/poll (Depends-on): Add EOVERFLOW.
41609
41610         * lib/getugroups.c (EOVERFLOW): Remove fallback.
41611         * modules/getugroups (Depends-on): Add EOVERFLOW.
41612
41613         * lib/getdelim.c (EOVERFLOW): Remove fallback.
41614         * modules/getdelim (Depends-on): Add EOVERFLOW.
41615
41616         * lib/ftell.c (EOVERFLOW): Remove fallback.
41617         * modules/ftell (Depends-on): Add EOVERFLOW.
41618
41619         * lib/fprintf.c (EOVERFLOW): Remove fallback.
41620         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
41621         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
41622
41623         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
41624
41625         * modules/EOVERFLOW-tests: New file.
41626         * tests/test-EOVERFLOW.c: New file.
41627
41628         * modules/EOVERFLOW: New file.
41629         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
41630
41631 2008-03-30  Bruno Haible  <bruno@clisp.org>
41632
41633         Fix bug introduced on 2007-06-10.
41634         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
41635         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
41636
41637 2008-03-30  Bruno Haible  <bruno@clisp.org>
41638
41639         Improve freadseek's efficiency after ungetc.
41640         * lib/freadseek.c: Include freadahead.h.
41641         (freadptrinc): New function, extracted from freadseek.
41642         (freadseek): Use it in a loop. Use freadahead to determine the number
41643         of loop iterations.
41644         * modules/freadseek (Depends-on): Add freadahead.
41645         (configure.ac): Require AC_C_INLINE.
41646
41647 2008-03-30  Bruno Haible  <bruno@clisp.org>
41648
41649         * lib/freadseek.c (freadseek): Don't ignore the return value of
41650         freadptr.
41651
41652 2008-03-29  Eric Blake  <ebb9@byu.net>
41653
41654         Add hex float support.
41655         * modules/strtod (Depends-on): Add c-ctype.
41656         (Link): Mention POW_LIB.
41657         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
41658         whitespace between 'e' and exponent.
41659         * tests/test-strtod.c (main): Enable hex float tests.
41660         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
41661         now provides.
41662
41663         Document various strtod bugs, with some fixes.
41664         * doc/posix-functions/strtod.texi (strtod): Document bugs with
41665         "-0x", "inf", "nan", and hex constants.
41666         * doc/posix-functions/atof.texi (atof): Likewise.
41667         * modules/stdlib (Makefile.am): Support strtod.
41668         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41669         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
41670         detect additional strtod bugs.
41671         * lib/stdlib.in.h (rpl_strtod): Add declarations.
41672         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
41673         bool where appropriate.  Parse 'inf' and 'nan'.
41674         * tests/test-strtod.c: New file.
41675         * modules/strtod (Depends-on): Add stdbool, stdlib.
41676         (configure.ac): Turn on module indicator.
41677         * modules/strtod-tests: New module.
41678
41679 2008-03-29  Eric Blake  <ebb9@byu.net>
41680
41681         Fix ftell on mingw.
41682         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
41683         * modules/ftell-tests (Depends-on): Add binary-io.
41684         * modules/ftello-tests (Depends-on): Likewise.
41685         * tests/test-ftell.c (main): Enhance test to cover behavior after
41686         ungetc.  Enforce binary mode.
41687         * tests/test-ftello.c (main): Likewise.
41688
41689         Pass test-freadseek on cygwin.
41690         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
41691         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
41692         ungetc buffer.
41693
41694         * tests/test-fflush2.c (main): Fix typo.
41695
41696 2008-03-29  Bruno Haible  <bruno@clisp.org>
41697
41698         * tests/test-fflush2.c (main): Temporarily disable the contents of
41699         this test.
41700         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
41701         Reported by Eric Blake.
41702
41703 2008-03-28  Simon Josefsson  <simon@josefsson.org>
41704
41705         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
41706         (GC_SHA224_DIGEST_SIZE): Add.
41707
41708         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
41709         (gc_hash_digest_length): Likewise.
41710         (gc_hash_buffer): Likewise.
41711
41712 2008-03-25  Bruno Haible  <bruno@clisp.org>
41713
41714         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
41715         detail which gettext release to use.
41716         Reported by Simon Josefsson.
41717
41718 2008-03-26  Jim Meyering  <meyering@redhat.com>
41719
41720         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
41721         * modules/gnumakefile (clean-GNUmakefile): Also, use
41722         test ... && ... || : syntax rather than if-then ... fi.
41723
41724         gnumakefile: Don't double-quote-expand $(VPATH) value.
41725         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
41726
41727 2008-03-24  Eric Blake  <ebb9@byu.net>
41728
41729         Alter GNUmakefile to install into top directory.
41730         * modules/maintainer-makefile: Split, and add dependency...
41731         * modules/gnumakefile: to this new module.
41732         * build-aux/GNUmakefile: Move...
41733         * top/GNUmakefile: ...here.
41734         * build-aux/maint.mk: Move...
41735         * top/maint.mk: ...here.
41736         * MODULES.html.sh (Support for maintaining...): Document new
41737         module.
41738
41739 2008-03-23  Bruno Haible  <bruno@clisp.org>
41740
41741         * gnulib-tool: New options --vc-files, --no-vc-files.
41742         (func_usage): Document them.
41743         (vc_files): New variable.
41744         (func_import): Consider vc_files.
41745         (func_create_testdir): Set vc_files to empty.
41746         Suggested by Jim Meyering and Karl Berry.
41747
41748 2008-03-23  Bruno Haible  <bruno@clisp.org>
41749
41750         Fix regex compilation error on HP-UX 11.
41751         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
41752         * modules/regex (Files): Add m4/mbstate_t.m4.
41753         Reported by Ton Voon <ton.voon@altinity.com>.
41754
41755 2008-03-23  Bruno Haible  <bruno@clisp.org>
41756
41757         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
41758
41759 2008-03-23  Eric Blake  <ebb9@byu.net>
41760             Bruno Haible  <bruno@clisp.org>
41761
41762         Install files from top/ in the destination directory.
41763         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41764         augmentation also for the files from top/.
41765         (func_import, func_create_testdir): Rewrite file names:
41766         top/filename -> filename.
41767
41768 2008-03-23  Bruno Haible  <bruno@clisp.org>
41769
41770         Tweak "gnulib --version" output.
41771         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
41772
41773 2008-03-23  Bruno Haible  <bruno@clisp.org>
41774
41775         Tweak "gnulib --version" output.
41776         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
41777         rather than contents of ChangeLog, when possible.
41778
41779 2008-03-21  Eric Blake  <ebb9@byu.net>
41780
41781         More --version tweaks.
41782         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
41783         date of last ChangeLog entry.
41784
41785 2008-03-21  Jim Meyering  <meyering@redhat.com>
41786
41787         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
41788
41789 2008-03-20  Eric Blake  <ebb9@byu.net>
41790
41791         VPATH fix.
41792         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
41793
41794 2008-03-20  Simon Josefsson  <simon@josefsson.org>
41795
41796         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
41797         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
41798
41799 2008-03-20  Eric Blake  <ebb9@byu.net>
41800
41801         Sync GNUmakefile with coreutils.
41802         * build-aux/GNUmakefile (have-Makefile): Rename...
41803         (_have-Makefile): ...to this, for namespace consideration.
41804         (GNUmakefile.cfg): Include, if present.
41805         (_autoreconf): Define a default.
41806         (_is-dist-target): New rule for rebuilds to pick up intra-release
41807         version.
41808         (maint-cfg.mk): Rename...
41809         (cfg.mk): ...to this.
41810
41811 2008-03-18  Jim Meyering  <meyering@redhat.com>
41812
41813         New script and module: mktempd
41814         * MODULES.html.sh (maint+release support): Add mktempd.
41815         * build-aux/mktempd: New file.
41816         * modules/mktempd: New file.
41817
41818 2008-03-15  Jim Meyering  <meyering@redhat.com>
41819
41820         Undo last change.
41821         * lib/sha1.c, lib/md5.c: 63 != ~63.
41822         Reported by Andreas Schwab.
41823
41824         sha1.c, md5.c: Hoist a redundant expression.
41825         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
41826         "ctx->buflen" only once, before calling *_process_block.
41827         * lib/md5.c (md5_process_bytes): Likewise.
41828
41829 2008-03-14  Eric Blake  <ebb9@byu.net>
41830
41831         Bump copyright year in files generated by gnulib-tool.
41832         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
41833         gnulib-tool, rather than hard-coding it.
41834
41835         Fix 'gnulib-tool --version' output to work with git.
41836         * gnulib-tool (func_gnulib_dir): New function, extracted from...
41837         (startup): ...here.
41838         (func_version): Use it to invoke git-version-gen, rather than
41839         relying on CVS keyword expansion.  Modernize wording.
41840         (cvsdatestamp, last_checkin_date, version): Kill unused
41841         variables.
41842
41843 2008-03-12  Jim Meyering  <meyering@redhat.com>
41844
41845         Recognize optional cast of the argument to free.
41846         * build-aux/useless-if-before-free: Update regexps.
41847
41848         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
41849
41850 2008-03-11  Bruno Haible  <bruno@clisp.org>
41851
41852         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
41853         by a single package.
41854         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
41855         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
41856         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
41857         Reported by Sam Steingold <sds@gnu.org>.
41858
41859 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41860
41861         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
41862         repositories.
41863
41864 2008-03-11  Bruno Haible  <bruno@clisp.org>
41865
41866         Avoid conflicts between local macro definitions.
41867         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41868         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
41869
41870 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
41871             Bruno Haible  <bruno@clisp.org>
41872
41873         Make va_copy work with some version of xlc on AIX 5.1.
41874         * lib/stdarg.in.h: New file.
41875         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
41876         On AIX, use a <stdarg.h> file substitute.
41877         * modules/stdarg (Files): Add lib/stdarg.in.h.
41878         (Depends-on): Add include_next.
41879         (Makefile.am): Build a stdarg.h substitute if requested.
41880         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
41881
41882 2008-03-10  Bruno Haible  <bruno@clisp.org>
41883
41884         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
41885         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41886         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41887
41888 2008-03-10  Bruno Haible  <bruno@clisp.org>
41889
41890         * modules/stdlib (Depends-on): Add include_next, remove
41891         absolute-header.
41892
41893 2008-03-09  Bruno Haible  <bruno@clisp.org>
41894
41895         * lib/freadahead.h (freadahead): Document more precisely.
41896         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
41897         the sum of both buffer sizes.
41898         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
41899         * NEWS: Document the change.
41900
41901 2008-03-09  Bruno Haible  <bruno@clisp.org>
41902
41903         Extend freadptr to return also the buffer size.
41904         * lib/freadptr.h (freadptr): Add sizep argument.
41905         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
41906         (freadptr): Add sizep argument. Determine buffer size like freadahead
41907         does.
41908         * tests/test-freadptr.c: Don't include freadahead.h.
41909         (main): Adapt for new calling convention of freadptr.
41910         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
41911         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
41912         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
41913         tests/test-freadptr2.sh.
41914         (Depends): Remove freadahead.
41915         (TESTS): Add test-freadptr2.sh.
41916         (check_PROGRAMS): Add test-freadptr2.
41917
41918 2008-03-09  Bruno Haible  <bruno@clisp.org>
41919
41920         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
41921         Report and solution by Simon Josefsson.
41922
41923 2008-03-06  Bruno Haible  <bruno@clisp.org>
41924
41925         Make fflush after ungetc work on BSD platforms.
41926         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
41927         * tests/test-fflush2.c: New file.
41928         * tests/test-fflush2.sh: New file.
41929         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
41930         tests/test-fflush2.c.
41931         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
41932         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
41933
41934 2008-03-06  Eric Blake  <ebb9@byu.net>
41935
41936         Likewise for ftello.
41937         * modules/ftello (Dependencies): Add extensions.
41938         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
41939
41940 2008-03-06  Bruno Haible  <bruno@clisp.org>
41941
41942         * modules/fseeko (Dependencies): Add extensions.
41943         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
41944         Needed on glibc systems.
41945
41946 2008-03-06  Bruno Haible  <bruno@clisp.org>
41947
41948         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
41949         email address.
41950         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41951
41952 2008-03-06  Bruno Haible  <bruno@clisp.org>
41953
41954         * users.txt: Add libgnupdf.
41955
41956 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41957
41958         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
41959         (Header File Substitutes, Function Substitutes,
41960         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
41961         (Build robot for gnulib): Fix typo.
41962
41963 2008-03-06  Bruno Haible  <bruno@clisp.org>
41964
41965         * doc/gnulib-tool.texi (VCS Issues): Small updates.
41966         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41967
41968 2008-03-06  Bruno Haible  <bruno@clisp.org>
41969
41970         * doc/func.texi: New file, extracted from doc/gnulib.texi.
41971         * doc/gnulib.texi: Include it.
41972
41973 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41974
41975         * modules/func (License): Change license to unlimited; there was
41976         no LGPL parts in the module anyway.
41977
41978 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41979
41980         * modules/__func__: Renamed to modules/func.
41981         * modules/__func__-tests: Renamed to modules/func-tests.
41982         * tests/test-__func__.c: Renamed to tests/test-func.c.
41983         * m4/__func__.m4: Renamed to m4/func.m4.
41984         * doc/gnulib.texi (__func__): Section renamed to func.
41985         Suggested by Eric Blake <ebb9@byu.net>.
41986
41987 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41988
41989         * doc/gnulib.texi (__func__): Use C99 terminology when talking
41990         about __func__.  Make example self-contained.  Suggested by Eric
41991         Blake <ebb9@byu.net>.
41992
41993         * tests/test-__func__.c (main): Avoid extraneous () around __func.
41994         Suggested by Eric Blake <ebb9@byu.net>.
41995
41996 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41997
41998         * modules/__func__: New file.
41999         * modules/__func__-tests: New file.
42000         * tests/test-__func__.c: New file.
42001         * m4/__func__.m4: New file.
42002         * doc/gnulib.texi (__func__): Document __func__ module.
42003
42004 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42005
42006         * modules/byteswap (License): Re-license as LGPLv2+.
42007
42008 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42009
42010         * doc/Makefile: Add pdf target.
42011
42012 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42013
42014         * modules/inline (License): Use 'unlimited', since there are only
42015         *.m4 files in this module.
42016
42017 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42018             Bruno Haible  <bruno@clisp.org>
42019
42020         Add support for HP C 7.1 on OpenVMS 8.3.
42021         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
42022
42023 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42024
42025         Update VMS specifics.
42026         * lib/getopt.c [VMS]: Remove include of unixlib.h.
42027
42028 2008-03-02  Jim Meyering  <meyering@redhat.com>
42029
42030         Remove the last dependency on the "free" module.
42031         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
42032         Reported by Bob Proulx.
42033
42034         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
42035
42036         Remove useless "if" tests before free.  Deprecate "free" module.
42037         * doc/posix-functions/free.texi: Mention that this
42038         module is no longer useful.
42039         * modules/free (Notice): Say this module is obsolete.
42040         * modules/readutmp (Depends-on): Remove free.
42041         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
42042         * lib/putenv.c (putenv): Likewise.
42043         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
42044         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
42045         * tests/test-c-strcasestr.c (main): Likewise.
42046         * tests/test-c-strstr.c (main): Likewise.
42047         * tests/test-mbscasestr1.c (main): Likewise.
42048         * tests/test-mbscasestr2.c (main): Likewise.
42049         * tests/test-mbsstr1.c (main): Likewise.
42050         * tests/test-mbsstr2.c (main): Likewise.
42051         * tests/test-memmem.c (main): Likewise.
42052         * tests/test-strcasestr.c (main): Likewise.
42053         * tests/test-striconv.c (main): Likewise.
42054         * tests/test-striconveh.c (main): Likewise.
42055         * tests/test-striconveha.c (main): Likewise.
42056         * tests/test-strstr.c (main): Likewise.
42057
42058         * build-aux/git-version-gen: Adjust a comment and the Usage string.
42059
42060         bootstrap: sync from coreutils again
42061         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
42062
42063 2008-03-01  Jim Meyering  <meyering@redhat.com>
42064
42065         bootstrap: sync from coreutils
42066         * build-aux/bootstrap (update_po_files): Copy a .po file into place
42067         also when the target doesn't exist.
42068
42069 2008-03-01  Eric Blake  <ebb9@byu.net>
42070
42071         Fix bugs in last patch.
42072         * lib/memchr2.c (memchr2): Fix typo.
42073         * tests/test-memchr2.c: Test previous bug, and don't use GNU
42074         extension.
42075         Reported by Bruce Korb.
42076
42077         New module 'memchr2'.
42078         * modules/memchr2: New file.
42079         * modules/memchr2-tests: Likewise.
42080         * lib/memchr2.h: Likewise.
42081         * lib/memchr2.c: Likewise, based on memchr.c.
42082         * tests/test-memchr2.c: New test.
42083         * MODULES.html.sh (String handling): Add memchr2.
42084
42085 2008-02-29  Bruno Haible  <bruno@clisp.org>
42086
42087         * modules/freadseek-tests: New file.
42088         * tests/test-freadseek.sh: New file.
42089         * tests/test-freadseek.c: New file.
42090
42091         New module 'freadseek'.
42092         * modules/freadseek: New file.
42093         * lib/freadseek.h: New file.
42094         * lib/freadseek.c: New file.
42095         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
42096
42097 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42098
42099         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
42100         wydawca.
42101
42102         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
42103         program_invocation_name and program_invocation_short_name are
42104         present.
42105
42106 2008-02-28  Bruno Haible  <bruno@clisp.org>
42107
42108         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
42109         * tests/test-freadptr.sh: Also test non-seekable stdin.
42110
42111 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
42112
42113         * build-aux/bootstrap (source_base, m4_base)
42114         (doc_base, tests_base): New variables.
42115         (gnulib_tool_options): Do not hardcode base directories, use
42116         the above variables instead.
42117
42118 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
42119
42120         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
42121
42122 2008-02-28  Bruno Haible  <bruno@clisp.org>
42123
42124         * modules/freadptr-tests: New file.
42125         * tests/test-freadptr.sh: New file.
42126         * tests/test-freadptr.c: New file.
42127
42128         New module 'freadptr'.
42129         * modules/freadptr: New file.
42130         * lib/freadptr.h: New file.
42131         * lib/freadptr.c: New file.
42132         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
42133
42134 2008-02-26  Karl Berry  <karl@freefriends.org>
42135
42136         Sync from Libtool:
42137         * libltdl/argz.c (argz_add, argz_count): New functions.
42138         * libltdl/argz.in.h: Declare them.
42139         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
42140
42141 2008-02-22  Bruno Haible  <bruno@clisp.org>
42142
42143         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
42144         is a pointer type.  Needed for HP-UX 10.
42145         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
42146         * doc/posix-functions/gmtime_r.texi: Likewise.
42147         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42148
42149 2008-02-24  Bruno Haible  <bruno@clisp.org>
42150
42151         * modules/environ-tests: New file.
42152         * tests/test-environ.c: New file.
42153
42154         New module 'environ'.
42155         * modules/environ: New file.
42156         * lib/unistd.in.h (environ): New declaration.
42157         * m4/environ.m4: New file.
42158         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
42159         after use.
42160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
42161         HAVE_DECL_ENVIRON.
42162         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
42163         HAVE_DECL_ENVIRON.
42164         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
42165         wrong claim that 'environ' is missing on some systems.
42166         * modules/execute (Depends-on): Add environ.
42167         * lib/execute.c (environ): Remove fallback declaration.
42168         * modules/pipe (Depends-on): Add environ.
42169         * lib/pipe.c (environ): Remove fallback declaration.
42170         * modules/setenv (Depends-on): Add environ.
42171         * lib/setenv.c (environ): Remove fallback declaration.
42172         * modules/unsetenv (Depends-on): Add environ.
42173         * lib/unsetenv.c (environ): Remove fallback declaration.
42174         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
42175         m4/environ.m4.
42176         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
42177         (gl_PREREQ_UNSETENV): Likewise.
42178
42179 2008-02-24  Bruno Haible  <bruno@clisp.org>
42180
42181         * doc/posix-functions/environ.texi: Document the MacOS X problem.
42182
42183 2008-02-20  Bob Proulx  <bob@proulx.com>
42184
42185         Enable use of older two part flavor 'git describe'.
42186         * build-aux/git-version-gen: If using the older two part flavor of
42187         git version then recreate the third part now present in the
42188         newer three part flavor of git describe.
42189
42190 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
42191
42192         * lib/fts.c (fts_build): Typo correction to comment.
42193
42194 2008-02-17  Bruno Haible  <bruno@clisp.org>
42195
42196         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
42197         generating no-op conflicts.
42198
42199 2008-02-17  Bruno Haible  <bruno@clisp.org>
42200
42201         Speed up by 10%.
42202         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
42203         result_entries, rather than an index-based loop.
42204
42205 2008-02-17  Bruno Haible  <bruno@clisp.org>
42206
42207         Speed up by 25%.
42208         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
42209         'hashcode_cached'.
42210         (entry_create): New function.
42211         (entry_hashcode): Use the cached hashcode if possible.
42212         (read_changelog_file, try_split_merged_entry): Use entry_create.
42213
42214 2008-02-17  Bruno Haible  <bruno@clisp.org>
42215
42216         Speed up from O(n^2) to O(n) for long ChangeLog files.
42217         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
42218         (read_changelog_file): Change implementation of entries_reversed list
42219         to rbtreehash.
42220         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
42221
42222 2008-02-17  Bruno Haible  <bruno@clisp.org>
42223
42224         New option --split-merged-entry.
42225         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
42226         (find_paragraph_end, try_split_merged_entry): New functions.
42227         (long_options): Add option --split-merged-entry.
42228         (usage): Document option --split-merged-entry.
42229         (main): Implement option --split-merged-entry.
42230         Reported by Eric Blake.
42231
42232 2008-02-17  Bruno Haible  <bruno@clisp.org>
42233
42234         * lib/git-merge-changelog.c: Include c-strstr.h.
42235         (main): Support the "git pull --rebase" situation.
42236         * modules/git-merge-changelog (Depends-on): Add c-strstr.
42237         Reported by Eric Blake.
42238
42239 2008-02-16  Eric Blake  <ebb9@byu.net>
42240
42241         Avoid doubling \ in common case of "c-maybe" quoting style.
42242         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
42243         eliding outer quotes.
42244         * lib/quotearg.h: Document this.
42245         * tests/test-quotearg.c (result_strings, inputs, results_g)
42246         (flag_results, locale_results): Test it by adding a new string to
42247         each test group.
42248         (compare_strings): Test new string.
42249
42250 2008-02-13  Eric Blake  <ebb9@byu.net>
42251
42252         Avoid trigraph quoting in default output.
42253         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
42254         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
42255         unless explicitly requested.
42256         * tests/test-quotearg.c (flag_results, main): Add additional tests.
42257
42258 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
42259
42260         Don't rely on signed integer overflowing to negative value.
42261         * lib/getugroups.c (getugroups): Include <limits.h>.
42262         Instead, compare against INT_MAX, and increment only if the test passes.
42263
42264 2008-02-13  Jim Meyering  <meyering@redhat.com>
42265         and Eric Blake  <ebb9@byu.net>
42266
42267         Avoid shadowing warning and compile errors on Linux.
42268         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
42269         forwarding macros on Linux.
42270         (dcgettext): Define a stub, for Linux.
42271         (results_g, main): Avoid warnings.
42272
42273 2008-02-12  Eric Blake  <ebb9@byu.net>
42274
42275         Silence warning in last patch.
42276         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
42277
42278         Quotearg part 4: add tests, fix c-maybe colon quoting.
42279         * lib/quotearg.h: Improve documentation.
42280         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
42281         escapes when adding outer quotes.  When quoting trigraphs, use
42282         valid C notation.  When quoting NUL, omit extra characters if next
42283         character is not digit.  Alter prototype.
42284         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
42285         callers.
42286         * modules/quotearg-tests: New module.
42287         * tests/test-quotearg.c: New test.
42288
42289 2008-02-07  Eric Blake  <ebb9@byu.net>
42290
42291         Quotearg part 3: add flag to control outer quote elision.
42292         * lib/quotearg.h (c_maybe_quoting_style): New style.
42293         (enum quoting_flags): Better documentation of flags.
42294         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
42295         c-maybe style.
42296         (quotearg_buffer_restyled): Handle new flag to elide outer
42297         quotes.
42298
42299         Quotearg part 2: add flag that can control NUL elision.
42300         * lib/quotearg.h (set_quoting_flags): New prototype.
42301         * lib/quotearg.c (struct quoting_options): Add flag field.
42302         (set_quoting_flags): New function.
42303         (quotearg_buffer_restyled): Add flags parameter.
42304         (quotearg_alloc_mem): Set the flag if length cannot be returned.
42305         (quotearg_n_options): Set the flag, since length cannot be
42306         returned.
42307         (quoting_options_from_style): Default flags correctly.
42308
42309         Quotearg part 1: more wrappers, restore quotearg_char state.
42310         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
42311         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
42312         (quotearg_colon_mem): New wrappers.
42313         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
42314         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
42315         functions.
42316         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
42317         (quotearg_colon_mem): New functions.
42318
42319 2008-02-11  Bruno Haible  <bruno@clisp.org>
42320
42321         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
42322         library in the current directory: it does not work with parallel make.
42323         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42324
42325 2008-02-11  Bruno Haible  <bruno@clisp.org>
42326
42327         * .gitattributes: New file.
42328
42329 2008-02-11  Jim Meyering  <meyering@redhat.com>
42330
42331         useless-if-before-free: Fix reversed exit values.
42332         * build-aux/useless-if-before-free: Use correct values
42333         for EXIT_MATCH and EXIT_NO_MATCH.
42334
42335         * build-aux/useless-if-before-free: Close stdout carefully.
42336
42337 2008-02-10  Bruno Haible  <bruno@clisp.org>
42338
42339         New module 'git-merge-changelog'.
42340         * modules/git-merge-changelog: New file.
42341         * lib/git-merge-changelog.c: New file.
42342
42343 2008-02-10  Jim Meyering  <meyering@redhat.com>
42344
42345         useless-if-before-free: New option: --list (-l).
42346
42347         useless-if-before-free: Don't exit immediately upon open failure.
42348         * build-aux/useless-if-before-free: Exit 2 for errors.
42349         Upon failure to open a file, don't exit immediately.
42350         Rather, just warn and continue with any remaining files.
42351
42352 2008-02-10  Bruno Haible  <bruno@clisp.org>
42353
42354         New abstract list operation 'node_set_value'.
42355         * lib/gl_list.h (gl_list_node_set_value): New function.
42356         (struct gl_list_implementation): New field node_set_value.
42357         * lib/gl_list.c (gl_list_node_set_value): New function.
42358         * lib/gl_array_list.c (gl_array_node_set_value): New function.
42359         (gl_array_list_implementation): Update.
42360         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
42361         (gl_carray_list_implementation): Update.
42362         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
42363         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42364         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42365         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
42366         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42367         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42368         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42369         Update.
42370         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42371         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
42372         (gl_sublist_list_implementation): Update.
42373
42374 2008-02-10  Bruno Haible  <bruno@clisp.org>
42375
42376         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
42377         Needed when ELEMENT is #defined to 'some_type *'.
42378
42379 2008-02-10  Jim Meyering  <meyering@redhat.com>
42380
42381         New script and module: useless-if-before-free
42382         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
42383         * build-aux/useless-if-before-free: New file.
42384         * modules/useless-if-before-free: New file.
42385
42386         * build-aux/gitlog-to-changelog: Use committer date, not author date.
42387
42388         xstrtol_error: Fix typo.
42389         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
42390         s/exit_failure/exit_status/.
42391
42392 2008-02-09  Jim Meyering  <meyering@redhat.com>
42393
42394         New script and module: gitlog-to-changelog
42395         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
42396         * modules/gitlog-to-changelog: New file.
42397         * build-aux/gitlog-to-changelog: New file.
42398
42399 2008-02-08  Jim Meyering  <meyering@redhat.com>
42400
42401         Avoid two "parameter unused" warnings.
42402         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
42403         Mark "st" as used.
42404
42405         Use "git COMMAND", not "git-COMMAND".
42406         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
42407         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
42408         * build-aux/git-version-gen: Use "git status", not "git-status".
42409
42410 2008-02-07  Bruno Haible  <bruno@clisp.org>
42411
42412         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
42413         Avoids a crash on Windows Vista.
42414         Reported by Adam Strzelecki <ono@java.pl> via
42415         Simon Josefsson <simon@josefsson.org>.
42416
42417 2008-02-06  Bruno Haible  <bruno@clisp.org>
42418
42419         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
42420         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
42421         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
42422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
42423         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42424         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42425         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
42426         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
42427         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42428         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42429         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42430         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42431         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42432         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42433         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42434         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
42435         left-adjust flag.
42436         * tests/test-snprintf-posix.h (test_function): Likewise.
42437         * tests/test-sprintf-posix.h (test_function): Likewise.
42438         * tests/test-vasprintf-posix.c (test_function): Likewise.
42439         * doc/posix-functions/fprintf.texi: Update.
42440         * doc/posix-functions/printf.texi: Update.
42441         * doc/posix-functions/snprintf.texi: Update.
42442         * doc/posix-functions/sprintf.texi: Update.
42443         * doc/posix-functions/vfprintf.texi: Update.
42444         * doc/posix-functions/vprintf.texi: Update.
42445         * doc/posix-functions/vsnprintf.texi: Update.
42446         * doc/posix-functions/vsprintf.texi: Update.
42447         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42448
42449 2008-02-06  Bruno Haible  <bruno@clisp.org>
42450
42451         Fix bug introduced on 2008-01-26.
42452         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
42453
42454 2008-02-06  Bruno Haible  <bruno@clisp.org>
42455
42456         Fix bug introduced on 2007-06-10.
42457         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
42458         !NEED_PRINTF_FLAG_ZERO.
42459
42460 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
42461
42462         getloadavg: use libperfstat on AIX5
42463         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
42464
42465 2008-02-03  Bruno Haible  <bruno@clisp.org>
42466
42467         * lib/diffseq.h: Add comments about required #includes.
42468         Reported by Michael Biggs <gnulib@doubleplum.net>.
42469
42470 2008-02-01  Bruno Haible  <bruno@clisp.org>
42471
42472         * users.txt: Add gnuit.
42473
42474 2008-01-31  Bruno Haible  <bruno@clisp.org>
42475
42476         * lib/md4.c (set_uint32): Mark as inline.
42477         * lib/md5.c (set_uint32): Likewise.
42478         * lib/sha1.c (set_uint32): Likewise.
42479         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
42480         * m4/md5.m4 (gl_MD5): Likewise.
42481         * m4/sha1.m4 (gl_SHA1): Likewise.
42482
42483 2008-01-31  Jim Meyering  <meyering@redhat.com>
42484
42485         Use "sizeof VAR", rather than a literal "4".
42486         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
42487         * lib/md4.c (md4_read_ctx): Likewise.
42488         * lib/sha1.c (sha1_read_ctx): Likewise.
42489
42490 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42491
42492         * tests/test-sha1.c: New file, based on test-md5.c.
42493
42494         * modules/crypto/sha1-tests: New file.
42495
42496 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42497
42498         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
42499
42500 2008-01-31  Jim Meyering  <meyering@redhat.com>
42501
42502         Prefer "sizeof v" over the equivalent "4".
42503         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
42504         * lib/md5.c (set_uint32): Likewise.
42505         * lib/sha1.c (set_uint32): Likewise.
42506
42507 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42508
42509         * lib/sha1.c (set_uint32): Mark function as static.
42510
42511 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42512
42513         md2: clarify comments to say that alignment is not required.
42514         * lib/md2.h: Remove warning about alignment in comment.
42515         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
42516         never been required.
42517
42518 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42519
42520         md4: adapt alignment constraint fix from sha1.
42521         * lib/md4.c (set_uint32): New function, from sha1.c
42522         (md4_read_ctx): Use it.
42523         (md4_finish_ctx): Doc fix.
42524         * lib/md4.h: Doc fix.
42525
42526 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42527
42528         md5: adapt alignment constraint fix from sha1.
42529         * lib/md5.c (set_uint32): New function, from sha1.c
42530         (md5_read_ctx): Use it.
42531         (md5_finish_ctx): Doc fix.
42532         * lib/md5.h: Doc fix.
42533
42534 2008-01-30  Peter Palfrader  <weasel@debian.org>
42535
42536         sha1: remove the result buffer alignment constraint
42537         * lib/sha1.c (set_uint32): New function.
42538         (sha1_read_ctx): Rewrite to remove the result buffer alignment
42539         constraint.
42540         (sha1_finish_ctx): Remove comment warning about alignment constraint.
42541         * lib/sha1.h: Likewise.
42542
42543 2008-01-30  Andreas Schwab  <schwab@suse.de>
42544             Bruno Haible  <bruno@clisp.org>
42545
42546         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
42547         correct definition of LDBL_MIN_EXP.
42548
42549 2008-01-30  Karl Berry  <karl@gnu.org>
42550
42551         * config/srclist-update: try to preserve x bit on updates.
42552         * config/srclistvars.sh: update for karl.
42553
42554 2008-01-29  Jim Meyering  <meyering@redhat.com>
42555
42556         vasnprintf.c: Avoid warning about unused label
42557         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
42558         "overflow" label definition and associated code with the
42559         same cpp condition that guards the sole use of that label.
42560
42561 2008-01-26  Bruno Haible  <bruno@clisp.org>
42562
42563         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
42564         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
42565         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
42566         * lib/isnanl-nolibm.h (isnanl): Likewise.
42567         Reported by Paul Eggert <eggert@cs.ucla.edu>.
42568
42569 2008-01-26  Bruno Haible  <bruno@clisp.org>
42570
42571         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
42572         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
42573
42574 2008-01-26  Bruno Haible  <bruno@clisp.org>
42575
42576         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
42577         GCC >= 4.0 built-in.
42578         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
42579
42580 2008-01-26  Bruno Haible  <bruno@clisp.org>
42581
42582         Rename isnan, applicable to 'double' only, to isnand.
42583         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
42584         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
42585         (configure.ac): Update.
42586         (Include): Replace "isnan.h" with "isnand.h".
42587         * m4/isnand.m4: Renamed from m4/isnan.m4.
42588         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
42589         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
42590         instead of isnan.c.
42591         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
42592         instead of HAVE_ISNAN_IN_LIBC.
42593         (isnand): Renamed from isnan.
42594         * lib/isnand.c: New file.
42595         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
42596         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
42597         (Makefile.am): Update.
42598         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
42599         Include isnand.h instead of isnan.h.
42600         (main): Test isnand instead of isnan.
42601         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
42602         isnan-nolibm.
42603         * modules/frexp (Depends-on): Likewise.
42604         * modules/frexp-tests (Depends-on): Likewise.
42605         * modules/frexp-nolibm (Depends-on): Likewise.
42606         * modules/frexp-nolibm-tests (Depends-on): Likewise.
42607         * modules/isfinite (Depends-on): Likewise.
42608         * modules/round-tests (Depends-on): Likewise.
42609         * modules/signbit (Depends-on): Likewise.
42610         * modules/signbit-tests (Depends-on): Likewise.
42611         * modules/snprintf-posix (Depends-on): Likewise.
42612         * modules/sprintf-posix (Depends-on): Likewise.
42613         * modules/trunc-tests (Depends-on): Likewise.
42614         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42615         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42616         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42617         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42618         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42619         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42620         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42621         * modules/vasnprintf-posix (Depends-on): Likewise.
42622         * modules/vasprintf-posix (Depends-on): Likewise.
42623         * modules/vfprintf-posix (Depends-on): Likewise.
42624         * modules/vsnprintf-posix (Depends-on): Likewise.
42625         * modules/vsprintf-posix (Depends-on): Likewise.
42626         * lib/frexp.c: Include isnand.h instead of isnan.h.
42627         (ISNAN): Set to isnand instead of isnan.
42628         * lib/isfinite.c: Include isnand.h instead of isnan.h.
42629         (gl_isfinited): Use isnand instead of isnan.
42630         * lib/signbitd.c: Include isnand.h instead of isnan.h.
42631         (gl_signbitd): Use isnand instead of isnan.
42632         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
42633         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
42634         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
42635         (main): Use isnand instead of isnan.
42636         * tests/test-round1.c: Include isnand.h.
42637         (main): Use isnand instead of isnan.
42638         * tests/test-round2.c: Include isnand.h instead of isnan.h.
42639         (ISNAN): Set to isnand instead of isnan.
42640         * tests/test-trunc1.c: Include isnand.h.
42641         (main): Use isnand instead of isnan.
42642         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
42643         (equal): Use isnand instead of isnan.
42644         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
42645         isnand-nolibm.
42646         * NEWS: Mention the change.
42647
42648 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42649             Bruno Haible  <bruno@clisp.org>
42650
42651         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
42652         the GCC builtins for signbits are present and set
42653         REPLACE_SIGNBIT_USING_GCC if so.
42654         * lib/math.in.h (signbit): Define using GCC builtins if
42655         REPLACE_SIGNBIT_USING_GCC is set.
42656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
42657         REPLACE_SIGNBIT_USING_GCC.
42658         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
42659
42660 2008-01-25  Jim Meyering  <meyering@redhat.com>
42661
42662         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
42663         * lib/poll.c: Include <config.h>, not "config.h".
42664         * tests/test-getaddrinfo.c: Likewise.
42665
42666 2008-01-25  Simon Josefsson  <simon@josefsson.org>
42667
42668         * modules/sockets-tests: New file.
42669
42670 2008-01-24  Simon Josefsson  <simon@josefsson.org>
42671
42672         * modules/sockets: New module, can be used to call WSA_Startup and
42673         WSA_Cleanup when needed.
42674
42675         * lib/sockets.h, lib/sockets.c: New files.
42676
42677         * m4/sockets.m4: New file.
42678
42679         * tests/test-sockets.c: New file.
42680
42681 2008-01-19  Bruno Haible  <bruno@clisp.org>
42682
42683         * doc/posix-headers: Renamed from doc/headers.
42684         * doc/posix-functions: Renamed from doc/functions.
42685         * doc/gnulib.texi: Update.
42686
42687 2008-01-19  Bruno Haible  <bruno@clisp.org>
42688
42689         * doc/glibc-functions/strcasestr.texi: Include contents of
42690         doc/functions/strcasestr.texi, fixing the list of platforms.
42691         * doc/functions/strcasestr.texi: Remove file.
42692
42693 2008-01-19  Bruno Haible  <bruno@clisp.org>
42694
42695         * doc/glibc-functions/memmem.texi: Include contents of
42696         doc/functions/memmem.texi.
42697         * doc/functions/memmem.texi: Remove file.
42698
42699 2008-01-18  Bruno Haible  <bruno@clisp.org>
42700
42701         * doc/glibc-functions/*.texi: New files.
42702         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
42703         to use the new files.
42704
42705 2008-01-17  Bruno Haible  <bruno@clisp.org>
42706
42707         * tests/test-gethostname.c (main): Fix printf statement.
42708
42709 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42710
42711         * modules/gethostname-tests: New file.
42712
42713         * tests/test-gethostname.c: New file.
42714
42715 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42716
42717         * lib/gethostname.c: Include string.h unconditionally, strncpy is
42718         used by the UNAME case.  Reported by Bruno Haible
42719         <bruno@clisp.org>.
42720
42721 2008-01-17  Eric Blake  <ebb9@byu.net>
42722
42723         Convert c-strcasestr to be more efficient.
42724         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
42725         (Depends-on): Add c-strcase, remove malloca, strnlen.
42726         * tests/test-c-strcasestr.c (main): Enhance test.
42727         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
42728
42729 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42730
42731         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
42732         Use it in creating po/Makevars.
42733
42734 2008-01-15  Simon Josefsson  <simon@josefsson.org>
42735
42736         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
42737         Applications that requires it should initialize libgcrypt
42738         manually.
42739
42740 2008-01-16  Simon Josefsson  <simon@josefsson.org>
42741
42742         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
42743
42744 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
42745
42746         Fix problem with getdate on mingw32 reported by Simon Josefsson
42747         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
42748         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
42749         tzname", when deciding whether to declare tzname.
42750         * lib/strftime.c (tzname): Likewise.
42751
42752 2008-01-15  Bruno Haible  <bruno@clisp.org>
42753
42754         Work around a MacOS X 10.5 bug in frexpl().
42755         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
42756         * doc/functions/frexpl.texi: Document the bug.
42757         Reported by Elias Pipping <pipping@gentoo.org>.
42758
42759 2008-01-14  Eric Blake  <ebb9@byu.net>
42760
42761         Touch up previous patch.
42762         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
42763         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
42764
42765         Convert strcasestr module to use Two-Way algorithm.
42766         * modules/strcasestr-simple: New module, based on the old
42767         strcasestr, but with Two-Way rather than KMP.
42768         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
42769         * lib/string.in.h (rpl_strcasestr): Declare.
42770         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
42771         performance.
42772         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
42773         * modules/string (Makefile.am): Support strcasestr.
42774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42775         * modules/strcasestr-tests (Depends-on): Check for alarm.
42776         * tests/test-strcasestr.c: Augment test.
42777         * lib/str-two-way.h: Clean up stray macro.
42778         * NEWS: Document new module.
42779         * MODULES.html.sh (string handling): Likewise.
42780         * doc/functions/strcasestr.texi: New file.
42781         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
42782         here, since it is not a POSIX function.
42783
42784 2008-01-14  Colin Watson  <cjwatson@debian.org>
42785             Bruno Haible  <bruno@clisp.org>
42786
42787         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
42788         works fine; if not, set REPLACE_STRSIGNAL.
42789         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
42790         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42791         REPLACE_STRSIGNAL.
42792         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
42793         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
42794         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
42795
42796 2008-01-14  Bruno Haible  <bruno@clisp.org>
42797
42798         * modules/strsignal (Include): Change to <string.h>.
42799
42800 2008-01-14  Colin Watson  <cjwatson@debian.org>
42801
42802         * modules/argp (Notice): Add a notice recommending to change
42803         XGETTEXT_OPTIONS.
42804         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
42805
42806 2008-01-13  Colin Watson  <cjwatson@debian.org>
42807
42808         * modules/strsignal-tests: New file.
42809         * tests/test-strsignal.c: New file.
42810
42811         * lib/strsignal.c: New file, from glibc with modifications.
42812         * lib/siglist.h: New file, from glibc with modifications.
42813         * lib/string.in.h (strsignal): New declaration.
42814         * m4/strsignal.m4: New file.
42815         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42816         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
42817         * modules/strsignal: New file.
42818         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
42819         HAVE_DECL_STRSIGNAL.
42820
42821 2008-01-13  Bruno Haible  <bruno@clisp.org>
42822
42823         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
42824         locale encoding is not ASCII. Needed for OpenBSD 4.0.
42825         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42826         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42827
42828 2008-01-13  Bruno Haible  <bruno@clisp.org>
42829
42830         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
42831         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
42832         * lib/argp.h (__attribute__): Likewise.
42833         * lib/c-stack.c (__attribute__): Likewise.
42834         * lib/error.h (__attribute__): Likewise.
42835         * lib/fts.c (__attribute__): Likewise.
42836         * lib/openat.h (__attribute__): Likewise.
42837         * lib/stdio.in.h (__attribute__): Likewise.
42838         * lib/string.in.h (__attribute__): Likewise.
42839         * lib/utimens.c (__attribute__): Likewise.
42840         * lib/vasnprintf.h (__attribute__): Likewise.
42841         * lib/xalloc.h (__attribute__): Likewise.
42842         * lib/xprintf.h (__attribute__): Likewise.
42843         * lib/xstrtol.h (__attribute__): Likewise.
42844         * lib/xvasprintf.h (__attribute__): Likewise.
42845
42846 2008-01-12  Bruno Haible  <bruno@clisp.org>
42847
42848         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
42849         * doc/glibc-headers/a.out.texi: New file.
42850         * doc/glibc-headers/aliases.texi: New file.
42851         * doc/glibc-headers/alloca.texi: New file.
42852         * doc/glibc-headers/ar.texi: New file.
42853         * doc/glibc-headers/argp.texi: New file.
42854         * doc/glibc-headers/argz.texi: New file.
42855         * doc/glibc-headers/byteswap.texi: New file.
42856         * doc/glibc-headers/crypt.texi: New file.
42857         * doc/glibc-headers/endian.texi: New file.
42858         * doc/glibc-headers/envz.texi: New file.
42859         * doc/glibc-headers/err.texi: New file.
42860         * doc/glibc-headers/error.texi: New file.
42861         * doc/glibc-headers/execinfo.texi: New file.
42862         * doc/glibc-headers/fpu_control.texi: New file.
42863         * doc/glibc-headers/fstab.texi: New file.
42864         * doc/glibc-headers/fts.texi: New file.
42865         * doc/glibc-headers/getopt.texi: New file.
42866         * doc/glibc-headers/ieee754.texi: New file.
42867         * doc/glibc-headers/ifaddrs.texi: New file.
42868         * doc/glibc-headers/libintl.texi: New file.
42869         * doc/glibc-headers/mcheck.texi: New file.
42870         * doc/glibc-headers/mntent.texi: New file.
42871         * doc/glibc-headers/obstack.texi: New file.
42872         * doc/glibc-headers/paths.texi: New file.
42873         * doc/glibc-headers/printf.texi: New file.
42874         * doc/glibc-headers/pty.texi: New file.
42875         * doc/glibc-headers/resolv.texi: New file.
42876         * doc/glibc-headers/shadow.texi: New file.
42877         * doc/glibc-headers/sysexits.texi: New file.
42878         * doc/glibc-headers/ttyent.texi: New file.
42879
42880 2008-01-12  Jim Meyering  <meyering@redhat.com>
42881
42882         announce-gen: emit Gnulib's git-based version string.
42883         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
42884         New option --gnulib-version=V, where V is expected to be
42885         the output of running git describe in the gnulib directory.
42886         (get_tool_versions): Request feedback on xdelta.  I suspect it's
42887         not useful, and plan to stop publishing an xdelta file with each
42888         coreutils release.
42889
42890         * build-aux/announce-gen: Also check for lzma-compressed files.
42891
42892 2008-01-11  Bruno Haible  <bruno@clisp.org>
42893
42894         * tests/test-memmem.c (main): Increase maximum allowed time.
42895         * tests/test-strstr.c (main): Likewise.
42896
42897 2008-01-11  Bruno Haible  <bruno@clisp.org>
42898
42899         * doc/functions/memmem.texi: Add more precisions about platforms.
42900         * doc/functions/strstr.texi: Likewise.
42901
42902 2008-01-10  Eric Blake  <ebb9@byu.net>
42903
42904         * m4/strstr.m4: Delete cruft from copy-n-paste.
42905         Reported by Bruno Haible.
42906
42907 2008-01-10  Bruno Haible  <bruno@clisp.org>
42908
42909         Make c-strstr rely on strstr.
42910         * lib/c-strstr.c: Don't include str-kmp.h.
42911         (c_strstr): Define in terms of strstr.
42912         * modules/c-strstr (Files): Remove lib/str-kmp.h.
42913         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
42914
42915 2008-01-10  Bruno Haible  <bruno@clisp.org>
42916
42917         * doc/gnulib.texi (String Functions in C Locale): New section.
42918         * doc/c-ctype.texi: New file.
42919         * doc/c-strcase.texi: New file.
42920         * doc/c-strcaseeq.texi: New file.
42921         * doc/c-strcasestr.texi: New file.
42922         * doc/c-strstr.texi: New file.
42923         * doc/c-strtod.texi: New file.
42924         * doc/c-strtold.texi: New file.
42925
42926 2008-01-10  Eric Blake  <ebb9@byu.net>
42927
42928         * lib/relocatable.h: Fix a comment.
42929
42930 2008-01-10  Eric Blake  <ebb9@byu.net>
42931
42932         Share two-way algorithm.
42933         * lib/str-two-way.h: New file, merged from...
42934         * lib/memmem.c: ...here...
42935         * lib/strstr.c: ...and here.
42936         * modules/memmem (Files): Use it.
42937         * modules/strstr (Files): Likewise.
42938
42939         Avoid quadratic strstr implementations.
42940         * lib/strstr.c: New file.
42941         * m4/strstr.m4: Likewise.
42942         * modules/strstr: Likewise.
42943         * modules/strstr-tests: Likewise.
42944         * tests/test-strstr.c: Likewise.
42945         * lib/string.in.h (rpl_strstr): Declare.
42946         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
42947         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
42948         * modules/string (Makefile.am): Likewise.
42949         * MODULES.html.sh (string handling): Mention new module.
42950         * doc/functions/strstr.texi (strstr): Document the bug.
42951
42952 2008-01-10  Bruno Haible  <bruno@clisp.org>
42953
42954         * lib/relocatable.h (relocate): State whether result is freshly
42955         allocated or not.
42956         * lib/relocatable.c (relocate): Return a freshly allocated string
42957         instead of a pointer to a privately held string.
42958         Reported by Sylvain Beucler <beuc@gnu.org>.
42959
42960 2008-01-10  Colin Watson  <cjwatson@debian.org>
42961
42962         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
42963         s/S_ISNLK/S_ISLNK/.
42964
42965 2008-01-09  Bruno Haible  <bruno@clisp.org>
42966
42967         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
42968         and other files.
42969         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
42970         if it's only a guess.
42971         * modules/memmem: Simplify by depending on memmem-simple.
42972
42973 2008-01-09  Bruno Haible  <bruno@clisp.org>
42974
42975         Work around OpenBSD 4.0 tdelete() bug.
42976         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
42977         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
42978         macros and don't redefine the enum values.
42979         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
42980         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
42981         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
42982
42983 2008-01-09  Bruno Haible  <bruno@clisp.org>
42984
42985         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
42986         (main): Don't perform the tests if setlocale did not install a UTF-8
42987         locale. Needed on OpenBSD 4.0.
42988         * modules/wcwidth-tests (Depends-on): Add localcharset.
42989
42990 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
42991
42992         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
42993         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
42994         * NEWS: announce this.
42995         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
42996
42997 2008-01-09  Simon Josefsson  <simon@josefsson.org>
42998         and Eric Blake  <ebb9@byu.net>
42999
43000         Add memmem-simple module.
43001         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
43002         (gl_FUNC_MEMMEM): Separate performance from presence checks.
43003         * modules/memmem-simple: New file.
43004         * modules/memmem (Description): Tweak.
43005         * MODULES.html.sh (string handling): Mention new module.
43006         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
43007         addressed by memmem-simple.
43008         * NEWS: Document the difference.
43009
43010 2008-01-09  Eric Blake  <ebb9@byu.net>
43011
43012         Give gcc some memmem optimization hints.
43013         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
43014         (strcasestr): Declare as pure.
43015         * modules/memmem (Maintainer): Claim my implementation.
43016
43017 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43018
43019         Support AIX 6.1 and higher.
43020         * build-aux/config.libpath: Likewise.
43021         * build-aux/config.rpath: Likewise.
43022
43023 2008-01-08  Jim Meyering  <meyering@redhat.com>
43024             Bruno Haible  <bruno@clisp.org>
43025
43026         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
43027         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
43028         Reported by Peter Fales in
43029         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
43030
43031 2008-01-08  Bruno Haible  <bruno@clisp.org>
43032
43033         * modules/unictype/category-of (Depends-on): Add
43034         unictype/category-none.
43035         * modules/unictype/category-and-tests (Depends-on): Add
43036         unictype/category-{L,N,Lu,Nd}.
43037         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
43038         * modules/unictype/category-or-tests (Depends-on): Add
43039         unictype/category-{L,N}.
43040         * modules/unictype/category-name-tests (Depends-on): Add
43041         unictype/category-{Z,Nl}.
43042         Reported by Simon Josefsson.
43043
43044 2008-01-08  Bruno Haible  <bruno@clisp.org>
43045
43046         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
43047         convention better.
43048         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
43049         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
43050         Reported by Peter Miller <millerp@canb.auug.org.au>.
43051
43052 2008-01-08  Eric Blake  <ebb9@byu.net>
43053
43054         Rewrite memmem to guarantee linear complexity without malloc.
43055         * lib/memmem.c (memmem): Use Two-Way rather than
43056         Knuth-Morris-Pratt, to allow O(1) space usage.
43057         (critical_factorization, two_way_short_needle)
43058         (two_way_long_needle): New functions.
43059         (knuth_morris_pratt): Delete.
43060         * modules/memmem (Depends-on): No longer need malloca or stdbool.
43061         Add stdint.
43062         * tests/test-memmem.c (main): Add tests for periodic needle and
43063         sublinear performance.
43064         * doc/functions/memmem.texi (memmem): Document other deficiencies
43065         in cygwin and older glibc.
43066
43067 2008-01-08  Bruno Haible  <bruno@clisp.org>
43068
43069         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
43070         augmentation.
43071
43072 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
43073
43074         Add a configure time option: --disable-acl.
43075         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
43076         AC_ARG_ENABLE(acl).
43077
43078 2008-01-06  Simon Josefsson  <simon@josefsson.org>
43079
43080         * tests/test-localename.c: Don't include obsolete "setenv.h".
43081
43082         * modules/localename-tests (Depends-on): Need unsetenv.
43083
43084 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43085
43086         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
43087
43088 2008-01-06  Colin Watson  <cjwatson@debian.org>
43089
43090         * users.txt: Add man-db.
43091
43092 2008-01-07  Bruno Haible  <bruno@clisp.org>
43093
43094         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
43095         previous section name.
43096
43097 2008-01-07  Bruno Haible  <bruno@clisp.org>
43098
43099         * lib/progname.c (set_program_name): Don't strip off a leading
43100         "lt-" prefix outside a .libs directory.
43101         Suggested by Paul Eggert.
43102
43103 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
43104             Bruno Haible  <bruno@clisp.org>
43105
43106         Improve memory cleanup in 'relocatable' module.
43107         * lib/relocatable.h (compute_curr_prefix): Change return type to
43108         'char *'.
43109         * lib/relocatable.c (compute_curr_prefix): Change return type to
43110         'char *'. Free curr_installdir after use.
43111         (relocate): Free curr_prefix_better after use.
43112         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
43113
43114 2008-01-01  Bruno Haible  <bruno@clisp.org>
43115
43116         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
43117         failure on older glibc systems.
43118         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43119
43120 2008-01-05  Eric Blake  <ebb9@byu.net>
43121
43122         Avoid quadratic system memmem.
43123         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
43124         Reported by Ralf Wildenhues.
43125
43126         Fix memmem test for mingw.
43127         * modules/memmem-tests (configure.ac): Check for alarm.
43128         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
43129         it.
43130         * doc/functions/memmem.texi: New file.
43131         * doc/gnulib.texi (Function Substitutes): Add memmem.
43132         Reported by Bruno Haible.
43133
43134 2008-01-04  Bruno Haible  <bruno@clisp.org>
43135
43136         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
43137         Require gl_HEADER_STRINGS_H_DEFAULTS, not
43138         gl_HEADER_STRING_H_DEFAULTS.
43139
43140 2008-01-04  Eric Blake  <ebb9@byu.net>
43141
43142         Shorten duration of memmem test.
43143         * tests/test-memmem.c (main): Use alarm to declare failure if test
43144         is taking too long.
43145         Reported by Ralf Wildenhues.
43146
43147 2007-12-21  Simon Josefsson  <simon@josefsson.org>
43148
43149         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
43150         string, needed by strerror.
43151
43152 2008-01-03  Colin Watson  <cjwatson@debian.org>
43153             Bruno Haible  <bruno@clisp.org>
43154
43155         * doc/gnulib-tool.texi (Localization): New section.
43156
43157 2008-01-02  Bruno Haible  <bruno@clisp.org>
43158
43159         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
43160         variables to 'unsigned char *' type.
43161         Reported by Paul Eggert.
43162
43163 2008-01-02  Jim Meyering  <jim@meyering.net>
43164
43165         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
43166
43167 2007-12-31  Jim Meyering  <jim@meyering.net>
43168
43169         Avoid use of private FTS type name.
43170         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
43171
43172 2007-12-30  Karl Berry  <karl@gnu.org>
43173
43174         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
43175         work around defect in Texinfo and/or the standalone Info browser.
43176
43177 2007-12-30  Bruno Haible  <bruno@clisp.org>
43178
43179         Unify 5 copies of the KMP code.
43180         * lib/str-kmp.h: New file.
43181         * lib/c-strcasestr.c: Include str-kmp.h.
43182         (knuth_morris_pratt): Remove function.
43183         (c_strcasestr): Update.
43184         * lib/c-strstr.c: Include str-kmp.h.
43185         (knuth_morris_pratt): Remove function.
43186         (c_strcasestr): Update.
43187         * lib/mbscasestr.c: Include str-kmp.h.
43188         (knuth_morris_pratt_unibyte): Remove function.
43189         * lib/mbsstr.c: Include str-kmp.h.
43190         (knuth_morris_pratt_unibyte): Remove function.
43191         * lib/strcasestr.c: Include str-kmp.h.
43192         (knuth_morris_pratt): Remove function.
43193         (strcasestr): Update.
43194         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
43195         * modules/c-strstr (Files): Likewise.
43196         * modules/mbscasestr (Files): Likewise.
43197         * modules/mbsstr (Files): Likewise.
43198         * modules/strcasestr (Files): Likewise.
43199         Suggested by Paul Eggert.
43200
43201 2007-12-30  Bruno Haible  <bruno@clisp.org>
43202
43203         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
43204         defined.
43205
43206 2007-12-30  Bruno Haible  <bruno@clisp.org>
43207
43208         * lib/xmalloca.h: Include xalloc.h.
43209         (xnmalloca): New macro.
43210
43211 2007-12-30  Bruno Haible  <bruno@clisp.org>
43212
43213         * lib/malloca.h (nmalloca): New macro.
43214         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
43215         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
43216         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
43217         knuth_morris_pratt_multibyte): Likewise.
43218         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
43219         knuth_morris_pratt_multibyte): Likewise.
43220         * lib/memmem.c (knuth_morris_pratt): Likewise.
43221         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
43222
43223 2007-12-25  Bruno Haible  <bruno@clisp.org>
43224
43225         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
43226         * lib/glob.c: Don't include openat.h.
43227         (link_exists2_p): Add back the code that deals with the
43228         !GLOB_ALTDIRFUNC case.
43229         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
43230         let it do the filename concatenation.
43231         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
43232         * modules/glob (Depends-on): Remove openat.
43233
43234 2007-12-31  Bruno Haible  <bruno@clisp.org>
43235
43236         * modules/dirfd (License): Change to LGPLv2+.
43237         Approved by Jim Meyering.
43238
43239 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43240
43241         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
43242         when multiplying M by sizeof (size_t).
43243
43244 2007-12-10  Martin Lambers  <marlam@marlam.de>
43245
43246         Override getpagesize on mingw.
43247         * lib/getpagesize.c: New file.
43248         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
43249         * modules/getpagesize (Files): Add lib/getpagesize.c.
43250         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
43251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43252         REPLACE_GETPAGESIZE.
43253         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
43254
43255 2007-12-25  Bruno Haible  <bruno@clisp.org>
43256
43257         * modules/localcharset (Notice): New field.
43258         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
43259         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
43260
43261 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43262             Bruno Haible  <bruno@clisp.org>
43263
43264         Avoid using the syntax symbol() in formatted documentation.
43265         * MODULES.html.sh (func_module): When replacing symbol() with a
43266         hyperlink, remove the parentheses. Show an error if some remain.
43267         Recognize and render the '...' syntax.
43268         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
43269         Rework. Add paragraph about GCC's inlining.
43270         * doc/alloca.texi: Likewise.
43271         * doc/error.texi: Remove parentheses from symbol reference.
43272         * doc/gnulib-intro.texi: Likewise.
43273         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
43274         * modules/fnmatch (Description): Reword to say "the ... function".
43275         * modules/full-read (Description): Likewise.
43276         * modules/full-write (Description): Likewise.
43277         * modules/safe-read (Description): Likewise.
43278         * modules/safe-write (Description): Likewise.
43279         * modules/strchrnul (Description): Likewise.
43280         * modules/trim (Description): Likewise.
43281         * modules/error (Description): Remove parentheses from symbol
43282         references.
43283         * modules/verror (Description): Likewise.
43284         Reported by Karl Berry.
43285
43286 2007-12-25  Bruno Haible  <bruno@clisp.org>
43287
43288         Fixup after 2007-10-16 commit.
43289         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
43290
43291 2007-12-24  Bruno Haible  <bruno@clisp.org>
43292
43293         Make --enable-relocatable work with DESTDIR.
43294         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
43295         to compute installdir from destprog.
43296         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
43297         also set the RELOC_DESTDIR variable.
43298         Reported by Левашев Иван <octagram@bluebottle.com>.
43299
43300 2007-12-24  Bruno Haible  <bruno@clisp.org>
43301
43302         Fix link error due to xalloc_die().
43303         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
43304         of xreadlink.
43305         * lib/relocwrapper.c: Update comments.
43306         * build-aux/install-reloc: Remove xreadlink.c from file list.
43307         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
43308         xreadlink.c.
43309         Reported by Левашев Иван <octagram@bluebottle.com>.
43310
43311 2007-12-24  Bruno Haible  <bruno@clisp.org>
43312
43313         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
43314         * lib/setenv.h: Remove file.
43315         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
43316         lib/setenv.h.
43317         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
43318         (Depends-on): Add stdlib.
43319         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
43320         gl_FUNC_UNSETENV.
43321         (Include): Replace setenv.h with <stdlib.h>.
43322         * modules/unsetenv: New file.
43323         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
43324         * lib/unsetenv.c: Include <stdlib.h> first.
43325         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
43326         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
43327         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
43328         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
43329         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
43330         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
43332         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43333         * doc/functions/unsetenv.texi: Update.
43334         * modules/xsetenv (Depends-on): Add unsetenv.
43335         * modules/getdate (Depends-on): Likewise.
43336         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
43337         * lib/xsetenv.c: Don't include setenv.h.
43338         * lib/getdate.y: Likewise.
43339         * lib/relocwrapper.c: Likewise.
43340         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
43341         (Depends-on): Add stdlib.
43342         * NEWS: Mention the changes.
43343         Reported by Левашев Иван <octagram@bluebottle.com>.
43344
43345 2007-12-23  Bruno Haible  <bruno@clisp.org>
43346
43347         * lib/memmem.c (memmem): Use lowercase variable names. Tab
43348         indentation.
43349
43350 2007-12-23  Bruno Haible  <bruno@clisp.org>
43351
43352         * lib/c-strcasestr.c: Add more comments.
43353         * lib/c-strstr.c: Likewise.
43354         * lib/mbscasestr.c: Likewise.
43355         * lib/mbsstr.c: Likewise.
43356         * lib/strcasestr.c: Likewise.
43357         * lib/memmem.c: Likewise.
43358
43359 2007-12-23  Bruno Haible  <bruno@clisp.org>
43360
43361         * tests/test-memmem.c: Include <string.h> first.
43362
43363 2007-12-22  Bruno Haible  <bruno@clisp.org>
43364
43365         * gnulib-tool (func_create_testdir): Change $auxdir while generating
43366         the contents of $testsbase.
43367         Reported by Ralf Wildenhues.
43368
43369 2007-12-22  Bruno Haible  <bruno@clisp.org>
43370
43371         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
43372         two variables local_ldadd_before, local_ldadd_last.
43373
43374 2007-12-20  Eric Blake  <ebb9@byu.net>
43375
43376         Work around circular library issue when cross-compiling.
43377         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
43378         that progname.o does not need to pull in rpl_memcmp.
43379
43380 2007-12-19  Eric Blake  <ebb9@byu.net>
43381
43382         Fix memmem to avoid O(n^2) worst-case complexity.
43383         * lib/memmem.c (knuth_morris_pratt): New function.
43384         (memmem): Use it if first few naive iterations fail.
43385         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
43386         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
43387         * modules/memchr (License): Likewise.
43388         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
43389         malloca.
43390         * tests/test-memmem.c: Rewrite, borrowing ideas from
43391         test-mbsstr1.c; the old version wouldn't even compile!
43392         * modules/memmem-tests: New file.
43393         * lib/string.in.h (rpl_memmem): Add declaration.
43394         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
43395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
43396         REPLACE_MEMMEM.
43397
43398 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43399
43400         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
43401         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
43402         before any system include files, and undef after them all.  This
43403         should fix a problem on VMS reported by John E. Malmberg in
43404         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
43405
43406 2007-12-17  Eric Blake  <ebb9@byu.net>
43407
43408         Revert addition of verify, for BSD/OS.
43409         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
43410         can't handle large files, for the sake of obsolete platforms.
43411         * modules/fseeko (Depends-on): Remove verify.
43412         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
43413         * doc/functions/ftello.texi (ftello): Likewise.
43414         * doc/functions/fgetpos.texi (fgetpos): Likewise.
43415         Reported by Larry Jones.
43416
43417 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
43418
43419         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
43420         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
43421
43422 2007-12-17  Jim Meyering  <meyering@redhat.com>
43423
43424         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
43425         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
43426         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
43427         * modules/getcwd (Depends-on): Add openat.
43428         Reported by Petr Salinger.
43429
43430 2007-12-17  Bruno Haible  <bruno@clisp.org>
43431
43432         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
43433         avoid a segmentation fault of the configure test on x86_64 systems.
43434
43435 2007-12-15  Jim Meyering  <meyering@redhat.com>
43436
43437         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
43438
43439 2007-12-13  Eric Blake  <ebb9@byu.net>
43440
43441         Another fseek test.
43442         * tests/test-fseek.c (main): Also test ungetc handling.
43443         * tests/test-fseeko.c (main): Likewise.
43444         * modules/fseeko (Depends-on): Add verify.
43445         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
43446         large.
43447         Reported by Larry Jones.
43448
43449         Fix fseeko on mingw.
43450         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
43451         seek.
43452
43453         Beef up fseek tests.
43454         * tests/test-fseek.c (main): Also test eof handling.
43455         * tests/test-fseeko.c (main): Likewise.
43456         Reported by Larry Jones.
43457
43458 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
43459
43460         Fix fseeko on BSD-based platforms.
43461         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
43462         successful seek.
43463
43464 2007-12-12  Eric Blake  <ebb9@byu.net>
43465
43466         Allow circular dependency of separate libtests.a
43467         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
43468         when use_libtests.
43469
43470 2007-12-11  Eric Blake  <ebb9@byu.net>
43471
43472         Fix bug with -0.0L in previous patch.
43473         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
43474         * tests/test-isnan.c (main): Also test on zeroes.
43475         * tests/test-isnanf.c (main): Likewise.
43476         * tests/test-isnanl.h (main): Likewise.
43477
43478         Detect pseudo-denormals on x86 even when cross-compiling.
43479         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
43480         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
43481         invalid bit patterns that happen to satisfy ==.
43482
43483         Avoid link failures with separate libtests.a.
43484         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
43485         last, to satisfy circular dependencies.
43486
43487 2007-12-11  Eric Blake  <ebb9@byu.net>
43488         and Bruno Haible  <bruno@clisp.org>
43489
43490         Fix OpenBSD 4.0 <float.h> handling of long double.
43491         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
43492         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
43493         * doc/headers/float.texi (float.h): Document OpenBSD bug.
43494
43495 2007-12-11  Jim Meyering  <meyering@redhat.com>
43496
43497         * users.txt: Add libvirt.
43498
43499         Support versions of autoconf prior to 2.59c.
43500         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
43501         if it is not already defined.
43502
43503 2007-12-09  Bruno Haible  <bruno@clisp.org>
43504
43505         Let 'gnulib-tool --import' collect sources needed for the tests in
43506         tests/ rather than in lib/.
43507         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
43508         argument. If true, add rules to generate libtests.a, and put libtests.a
43509         into $(LDADD). Consider source files in subdirectories and set
43510         uses_subdirs.
43511         (func_emit_initmacro_start, func_emit_initmacro_end,
43512         func_emit_initmacro_done): Pass all arguments explicitly.
43513         (func_import): Determine two module lists main_modules,
43514         testsrelated_modules. Determine use_libtests. Determine two variables
43515         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
43516         instead of just sed_transform_lib_file. Determine two variables
43517         main_files and testsrelated_files. Compute 'files' as the union of
43518         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
43519         func_add_or_update. In the generated gnulib-comp.m4, collect the
43520         object files for tests/ in different variables than those for lib/.
43521         Substitute LIBTESTS_LIBDEPS.
43522         (func_create_testdir): Combine the uses_subdirs results from
43523         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
43524
43525 2007-12-09  Bruno Haible  <bruno@clisp.org>
43526
43527         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
43528         the build-aux directory.
43529
43530 2007-12-09  Bruno Haible  <bruno@clisp.org>
43531
43532         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
43533         introduced on 2006-09-09.
43534
43535 2007-12-07  Jim Meyering  <meyering@redhat.com>
43536
43537         Let these macros work also with autoconf-2.59.
43538         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
43539         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
43540         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43541
43542 2007-12-06  Jim Meyering  <meyering@redhat.com>
43543
43544         Avoid a configure-time syntax error in gl_FUNC_ACL.
43545         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
43546         function in each branch, before testing the cache variable.
43547
43548 2007-12-04  Eric Blake  <ebb9@byu.net>
43549
43550         Make scripts executable.
43551         * build-aux/config.guess: Add execute permissions.
43552         * build-aux/config.sub: Likewise.
43553         * build-aux/gendocs.sh: Likewise.
43554
43555         Fix frexp on mingw.
43556         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
43557         cross-compiling.
43558         * doc/functions/frexp.texi (frexp): Document the bug.
43559
43560         Make cygwin fseeko check more reliable.
43561         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
43562         version numbers, rather than unrelated feature check.
43563         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
43564         * doc/functions/ftello.texi (ftello): Likewise.
43565         Reported by Bruno Haible.
43566
43567         * m4/strerror.m4: Bump version number.
43568
43569 2007-12-03  Bruno Haible  <bruno@clisp.org>
43570
43571         * doc/functions/mprotect.texi: Mention the mingw problem.
43572
43573 2007-12-03  Eric Blake  <ebb9@byu.net>
43574
43575         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
43576         REPLACE_STRERROR is initialized before this macro.
43577
43578 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
43579
43580         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
43581         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
43582         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
43583         put -lsec in even for programs other than 'ls'.  This fixes a problem
43584         for gettext reported by Bruno Haible in
43585         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
43586         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
43587         Add support for Solaris 10.  This isn't efficient, but should get the
43588         job done for now.
43589
43590 2007-12-03  James Youngman  <jay@gnu.org>
43591
43592         * doc/regexprops-generic.texi: change "an close-group" to "a
43593         close-group" and "illegal" to "not allowed".
43594
43595 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43596
43597         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
43598         pr_byname.h. Needed for the rare case when the maintainer has done
43599         "make maintainer-clean" in the source directory and then attempts a
43600         build outside the source directory.
43601         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
43602         scripts_byname.h.
43603
43604 2007-12-02  Martin Lambers <marlam@marlam.de>
43605             Bruno Haible  <bruno@clisp.org>
43606
43607         * lib/getpagesize.h: Remove file.
43608         * lib/unistd.in.h: Include declaration of getpagesize here.
43609         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
43610         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
43611         HAVE_SYS_PARAM_H.
43612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
43613         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43614         * modules/getpagesize (Files): Remove lib/getpagesize.h.
43615         (Depends-on): Add unistd.
43616         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43617         (Include): Use <unistd.h> instead of getpagesize.h.
43618         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
43619         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43620         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
43621         gl_GETPAGESIZE invocation, already handled by module dependency.
43622         * lib/pagealign_alloc.c: Don't include getpagesize.h.
43623
43624 2007-12-02  Bruno Haible  <bruno@clisp.org>
43625
43626         * modules/strings-tests: New file.
43627         * tests/test-strings.c: New file.
43628
43629         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
43630         * lib/strings.in.h: New file.
43631         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
43632         * m4/strings_h.m4: New file.
43633         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
43634         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
43635         * modules/strings: New file.
43636         * modules/string (Makefile.am): Update.
43637         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
43638         Reported by Karl Berry.
43639
43640 2007-12-01  Eric Blake  <ebb9@byu.net>
43641
43642         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
43643         accomodate fix in cygwin 1.5.25.
43644
43645 2007-12-01  Jim Meyering  <meyering@redhat.com>
43646
43647         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
43648         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
43649         that would inhibit utf8-optimization of a regexp containing line-
43650         or buffer-anchors, e.g., `^', `$'.
43651
43652 2007-11-30  Bruno Haible  <bruno@clisp.org>
43653
43654         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
43655         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
43656         glthread_recursive_lock_init.
43657         * lib/lock.c (glthread_recursive_lock_init)
43658         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
43659         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43660
43661 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
43662
43663         New function qset_acl, like set_acl but with syscall semantics.
43664         * lib/acl.h (qset_acl): New decl.
43665         * lib/acl.c (qset_acl): New function.
43666         (set_acl): Use new function.  Use more-consistent diagnostics.
43667
43668 2007-11-28  Jim Meyering  <meyering@redhat.com>
43669
43670         * modules/physmem (License): Change from GPL to LGPLv2+.
43671
43672 2007-11-26  Bruno Haible  <bruno@clisp.org>
43673
43674         * lib/vasnprintf.c (decode_long_double): Don't abort if the
43675         'long double' type has excess precision.
43676         Reported by Jim Meyering in
43677         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
43678
43679 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43680
43681         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
43682         Sync from <http://gnu.org/licenses>.
43683         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
43684         with license text from same location.
43685         * doc/maintain.texi, doc/standards.texi:  Sync from
43686         <http://savannah.gnu.org/projects/gnustandards>.
43687
43688 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
43689         and Jim Meyering  <meyering@redhat.com>
43690
43691         Adjust getdate' grammar to accept a slightly more regular language.
43692         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
43693         Before, the former was rejected.
43694         * lib/getdate.y (digits_to_date_time): New function, factored
43695         out of ...
43696         (number): ...here.  Just call digits_to_date_time.
43697         (hybrid): New non-terminal to handle an <unsigned number,
43698         signed relative offset> sequence consistently.
43699
43700 2007-11-18  Jim Meyering  <meyering@redhat.com>
43701
43702         Pull my changes from coreutils:
43703         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
43704         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
43705         use of $gnulib_tool_option_extras, so that it's separated from the
43706         preceding argument.
43707
43708         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
43709         * build-aux/bootstrap (cp_mark_as_generated): Create any required
43710         parent destination directories before copying a file into place.
43711
43712 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
43713
43714         bootstrap: work also with 4-argument variant of AC_INIT
43715         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
43716
43717 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43718
43719         Port test-getaddrinfo to Solaris.
43720         Problem reported by Bruno Haible in
43721         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
43722         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
43723         explanation of setting 'hints'.
43724         Don't reject an implementation merely because it returns EAI_SERVICE.
43725         (EAI_SERVICE): Define to 0 if not defined.
43726
43727 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43728
43729         The license of gnu-make and posix-shell is now "GPLed build tool".
43730         * modules/gnu-make (License): Likewise.
43731         * modules/posix-shell (License): Likewise.
43732
43733         New module posix-shell, for determining a POSIX shell
43734         or perhaps something that is close enough to a POSIX shell.
43735         * m4/posix-shell.m4: New file.
43736         * modules/posix-shell: New file.
43737
43738         * MODULES.html.sh: Mention new module.
43739
43740         New module gnu-make, for determining whether we're using GNU Make.
43741         * m4/gnu-make.m4: New file.
43742         * modules/gnu-make: New file.
43743         * MODULES.html.sh: Mention new module.
43744
43745 2007-11-14  Jim Meyering  <meyering@redhat.com>
43746
43747         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
43748         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
43749         use this macro to create a function _definition_.
43750         Remove useless "#undef ARGMATCH_DIE".
43751
43752 2007-11-14  Bruno Haible  <bruno@clisp.org>
43753
43754         * lib/config.charset: Update for OpenBSD 4.1.
43755         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
43756
43757 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
43758
43759         Document 64-bit #if problems in stdint.texi.
43760         * doc/headers/stdint.texi (stdint.h): Mention problems with
43761         64-bit-#if, and how to work around them.
43762
43763         Don't insist on 'long long int' support in the preprocessor.  It
43764         breaks too many things.  For example, PRIdMAX still uses a 'long
43765         long int' format with the latest Sun compiler, even though
43766         HAVE_LONG_LONG_INT isn't defined due to that compiler's
43767         preprocessor problem.  This causes the latest coreutils to dump
43768         core on Solaris 10 sparc with the Sun C compiler.
43769         Instead, fix the 2007-10-16 problem in a different way, by evaluating
43770         the troublesome expressions at configure-time, not at #if-time.
43771         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
43772         preprocessor.
43773         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
43774         compile-time C checks, done at 'configure'-time.
43775         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
43776         * modules/inttypes (Makefile): Substitute the new symbols that
43777         gl_INTTYPES_H now generates.
43778         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
43779
43780 2007-11-12  Bruno Haible  <bruno@clisp.org>
43781
43782         Tests for Unicode character classification functions.
43783
43784         * modules/unictype/bidicategory-byname-tests: New file.
43785         * modules/unictype/bidicategory-name-tests: New file.
43786         * modules/unictype/bidicategory-of-tests: New file.
43787         * modules/unictype/bidicategory-test-tests: New file.
43788         * modules/unictype/block-list-tests: New file.
43789         * modules/unictype/block-of-tests: New file.
43790         * modules/unictype/block-test-tests: New file.
43791         * modules/unictype/category-C-tests: New file.
43792         * modules/unictype/category-Cc-tests: New file.
43793         * modules/unictype/category-Cf-tests: New file.
43794         * modules/unictype/category-Cn-tests: New file.
43795         * modules/unictype/category-Co-tests: New file.
43796         * modules/unictype/category-Cs-tests: New file.
43797         * modules/unictype/category-L-tests: New file.
43798         * modules/unictype/category-Ll-tests: New file.
43799         * modules/unictype/category-Lm-tests: New file.
43800         * modules/unictype/category-Lo-tests: New file.
43801         * modules/unictype/category-Lt-tests: New file.
43802         * modules/unictype/category-Lu-tests: New file.
43803         * modules/unictype/category-M-tests: New file.
43804         * modules/unictype/category-Mc-tests: New file.
43805         * modules/unictype/category-Me-tests: New file.
43806         * modules/unictype/category-Mn-tests: New file.
43807         * modules/unictype/category-N-tests: New file.
43808         * modules/unictype/category-Nd-tests: New file.
43809         * modules/unictype/category-Nl-tests: New file.
43810         * modules/unictype/category-No-tests: New file.
43811         * modules/unictype/category-P-tests: New file.
43812         * modules/unictype/category-Pc-tests: New file.
43813         * modules/unictype/category-Pd-tests: New file.
43814         * modules/unictype/category-Pe-tests: New file.
43815         * modules/unictype/category-Pf-tests: New file.
43816         * modules/unictype/category-Pi-tests: New file.
43817         * modules/unictype/category-Po-tests: New file.
43818         * modules/unictype/category-Ps-tests: New file.
43819         * modules/unictype/category-S-tests: New file.
43820         * modules/unictype/category-Sc-tests: New file.
43821         * modules/unictype/category-Sk-tests: New file.
43822         * modules/unictype/category-Sm-tests: New file.
43823         * modules/unictype/category-So-tests: New file.
43824         * modules/unictype/category-Z-tests: New file.
43825         * modules/unictype/category-Zl-tests: New file.
43826         * modules/unictype/category-Zp-tests: New file.
43827         * modules/unictype/category-Zs-tests: New file.
43828         * modules/unictype/category-and-not-tests: New file.
43829         * modules/unictype/category-and-tests: New file.
43830         * modules/unictype/category-byname-tests: New file.
43831         * modules/unictype/category-name-tests: New file.
43832         * modules/unictype/category-none-tests: New file.
43833         * modules/unictype/category-of-tests: New file.
43834         * modules/unictype/category-or-tests: New file.
43835         * modules/unictype/category-test-withtable-tests: New file.
43836         * modules/unictype/combining-class-tests: New file.
43837         * modules/unictype/ctype-alnum-tests: New file.
43838         * modules/unictype/ctype-alpha-tests: New file.
43839         * modules/unictype/ctype-blank-tests: New file.
43840         * modules/unictype/ctype-cntrl-tests: New file.
43841         * modules/unictype/ctype-digit-tests: New file.
43842         * modules/unictype/ctype-graph-tests: New file.
43843         * modules/unictype/ctype-lower-tests: New file.
43844         * modules/unictype/ctype-print-tests: New file.
43845         * modules/unictype/ctype-punct-tests: New file.
43846         * modules/unictype/ctype-space-tests: New file.
43847         * modules/unictype/ctype-upper-tests: New file.
43848         * modules/unictype/ctype-xdigit-tests: New file.
43849         * modules/unictype/decimal-digit-tests: New file.
43850         * modules/unictype/digit-tests: New file.
43851         * modules/unictype/mirror-tests: New file.
43852         * modules/unictype/numeric-tests: New file.
43853         * modules/unictype/property-alphabetic-tests: New file.
43854         * modules/unictype/property-ascii-hex-digit-tests: New file.
43855         * modules/unictype/property-bidi-arabic-digit-tests: New file.
43856         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
43857         * modules/unictype/property-bidi-block-separator-tests: New file.
43858         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
43859         * modules/unictype/property-bidi-common-separator-tests: New file.
43860         * modules/unictype/property-bidi-control-tests: New file.
43861         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
43862         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
43863         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
43864         * modules/unictype/property-bidi-european-digit-tests: New file.
43865         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
43866         * modules/unictype/property-bidi-left-to-right-tests: New file.
43867         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
43868         * modules/unictype/property-bidi-other-neutral-tests: New file.
43869         * modules/unictype/property-bidi-pdf-tests: New file.
43870         * modules/unictype/property-bidi-segment-separator-tests: New file.
43871         * modules/unictype/property-bidi-whitespace-tests: New file.
43872         * modules/unictype/property-byname-tests: New file.
43873         * modules/unictype/property-combining-tests: New file.
43874         * modules/unictype/property-composite-tests: New file.
43875         * modules/unictype/property-currency-symbol-tests: New file.
43876         * modules/unictype/property-dash-tests: New file.
43877         * modules/unictype/property-decimal-digit-tests: New file.
43878         * modules/unictype/property-default-ignorable-code-point-tests: New file.
43879         * modules/unictype/property-deprecated-tests: New file.
43880         * modules/unictype/property-diacritic-tests: New file.
43881         * modules/unictype/property-extender-tests: New file.
43882         * modules/unictype/property-format-control-tests: New file.
43883         * modules/unictype/property-grapheme-base-tests: New file.
43884         * modules/unictype/property-grapheme-extend-tests: New file.
43885         * modules/unictype/property-grapheme-link-tests: New file.
43886         * modules/unictype/property-hex-digit-tests: New file.
43887         * modules/unictype/property-hyphen-tests: New file.
43888         * modules/unictype/property-id-continue-tests: New file.
43889         * modules/unictype/property-id-start-tests: New file.
43890         * modules/unictype/property-ideographic-tests: New file.
43891         * modules/unictype/property-ids-binary-operator-tests: New file.
43892         * modules/unictype/property-ids-trinary-operator-tests: New file.
43893         * modules/unictype/property-ignorable-control-tests: New file.
43894         * modules/unictype/property-iso-control-tests: New file.
43895         * modules/unictype/property-join-control-tests: New file.
43896         * modules/unictype/property-left-of-pair-tests: New file.
43897         * modules/unictype/property-line-separator-tests: New file.
43898         * modules/unictype/property-logical-order-exception-tests: New file.
43899         * modules/unictype/property-lowercase-tests: New file.
43900         * modules/unictype/property-math-tests: New file.
43901         * modules/unictype/property-non-break-tests: New file.
43902         * modules/unictype/property-not-a-character-tests: New file.
43903         * modules/unictype/property-numeric-tests: New file.
43904         * modules/unictype/property-other-alphabetic-tests: New file.
43905         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
43906         * modules/unictype/property-other-grapheme-extend-tests: New file.
43907         * modules/unictype/property-other-id-continue-tests: New file.
43908         * modules/unictype/property-other-id-start-tests: New file.
43909         * modules/unictype/property-other-lowercase-tests: New file.
43910         * modules/unictype/property-other-math-tests: New file.
43911         * modules/unictype/property-other-uppercase-tests: New file.
43912         * modules/unictype/property-paired-punctuation-tests: New file.
43913         * modules/unictype/property-paragraph-separator-tests: New file.
43914         * modules/unictype/property-pattern-syntax-tests: New file.
43915         * modules/unictype/property-pattern-white-space-tests: New file.
43916         * modules/unictype/property-private-use-tests: New file.
43917         * modules/unictype/property-punctuation-tests: New file.
43918         * modules/unictype/property-quotation-mark-tests: New file.
43919         * modules/unictype/property-radical-tests: New file.
43920         * modules/unictype/property-sentence-terminal-tests: New file.
43921         * modules/unictype/property-soft-dotted-tests: New file.
43922         * modules/unictype/property-space-tests: New file.
43923         * modules/unictype/property-terminal-punctuation-tests: New file.
43924         * modules/unictype/property-test-tests: New file.
43925         * modules/unictype/property-titlecase-tests: New file.
43926         * modules/unictype/property-unassigned-code-value-tests: New file.
43927         * modules/unictype/property-unified-ideograph-tests: New file.
43928         * modules/unictype/property-uppercase-tests: New file.
43929         * modules/unictype/property-variation-selector-tests: New file.
43930         * modules/unictype/property-white-space-tests: New file.
43931         * modules/unictype/property-xid-continue-tests: New file.
43932         * modules/unictype/property-xid-start-tests: New file.
43933         * modules/unictype/property-zero-width-tests: New file.
43934         * modules/unictype/scripts-tests: New file.
43935         * modules/unictype/syntax-c-ident-tests: New file.
43936         * modules/unictype/syntax-c-whitespace-tests: New file.
43937         * modules/unictype/syntax-java-ident-tests: New file.
43938         * modules/unictype/syntax-java-whitespace-tests: New file.
43939         * tests/unictype/test-bidi_byname.c: New file.
43940         * tests/unictype/test-bidi_name.c: New file.
43941         * tests/unictype/test-bidi_of.c: New file.
43942         * tests/unictype/test-bidi_test.c: New file.
43943         * tests/unictype/test-block_list.c: New file.
43944         * tests/unictype/test-block_of.c: New file.
43945         * tests/unictype/test-block_test.c: New file.
43946         * tests/unictype/test-categ_and.c: New file.
43947         * tests/unictype/test-categ_and_not.c: New file.
43948         * tests/unictype/test-categ_byname.c: New file.
43949         * tests/unictype/test-categ_name.c: New file.
43950         * tests/unictype/test-categ_none.c: New file.
43951         * tests/unictype/test-categ_of.c: New file.
43952         * tests/unictype/test-categ_or.c: New file.
43953         * tests/unictype/test-categ_test_withtable.c: New file.
43954         * tests/unictype/test-combining.c: New file.
43955         * tests/unictype/test-decdigit.c: New file.
43956         * tests/unictype/test-digit.c: New file.
43957         * tests/unictype/test-mirror.c: New file.
43958         * tests/unictype/test-numeric.c: New file.
43959         * tests/unictype/test-pr_byname.c: New file.
43960         * tests/unictype/test-pr_test.c: New file.
43961         * tests/unictype/test-predicate-part1.h: New file.
43962         * tests/unictype/test-predicate-part2.h: New file.
43963         * tests/unictype/test-scripts.c: New file.
43964         * tests/unictype/test-sy_c_ident.c: New file.
43965         * tests/unictype/test-sy_java_ident.c: New file.
43966
43967         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
43968         for Unicode 5.0.0.
43969         * tests/unictype/test-categ_Cc.c: Likewise.
43970         * tests/unictype/test-categ_Cf.c: Likewise.
43971         * tests/unictype/test-categ_Cn.c: Likewise.
43972         * tests/unictype/test-categ_Co.c: Likewise.
43973         * tests/unictype/test-categ_Cs.c: Likewise.
43974         * tests/unictype/test-categ_L.c: Likewise.
43975         * tests/unictype/test-categ_Ll.c: Likewise.
43976         * tests/unictype/test-categ_Lm.c: Likewise.
43977         * tests/unictype/test-categ_Lo.c: Likewise.
43978         * tests/unictype/test-categ_Lt.c: Likewise.
43979         * tests/unictype/test-categ_Lu.c: Likewise.
43980         * tests/unictype/test-categ_M.c: Likewise.
43981         * tests/unictype/test-categ_Mc.c: Likewise.
43982         * tests/unictype/test-categ_Me.c: Likewise.
43983         * tests/unictype/test-categ_Mn.c: Likewise.
43984         * tests/unictype/test-categ_N.c: Likewise.
43985         * tests/unictype/test-categ_Nd.c: Likewise.
43986         * tests/unictype/test-categ_Nl.c: Likewise.
43987         * tests/unictype/test-categ_No.c: Likewise.
43988         * tests/unictype/test-categ_P.c: Likewise.
43989         * tests/unictype/test-categ_Pc.c: Likewise.
43990         * tests/unictype/test-categ_Pd.c: Likewise.
43991         * tests/unictype/test-categ_Pe.c: Likewise.
43992         * tests/unictype/test-categ_Pf.c: Likewise.
43993         * tests/unictype/test-categ_Pi.c: Likewise.
43994         * tests/unictype/test-categ_Po.c: Likewise.
43995         * tests/unictype/test-categ_Ps.c: Likewise.
43996         * tests/unictype/test-categ_S.c: Likewise.
43997         * tests/unictype/test-categ_Sc.c: Likewise.
43998         * tests/unictype/test-categ_Sk.c: Likewise.
43999         * tests/unictype/test-categ_Sm.c: Likewise.
44000         * tests/unictype/test-categ_So.c: Likewise.
44001         * tests/unictype/test-categ_Z.c: Likewise.
44002         * tests/unictype/test-categ_Zl.c: Likewise.
44003         * tests/unictype/test-categ_Zp.c: Likewise.
44004         * tests/unictype/test-categ_Zs.c: Likewise.
44005         * tests/unictype/test-ctype_alnum.c: Likewise.
44006         * tests/unictype/test-ctype_alpha.c: Likewise.
44007         * tests/unictype/test-ctype_blank.c: Likewise.
44008         * tests/unictype/test-ctype_cntrl.c: Likewise.
44009         * tests/unictype/test-ctype_digit.c: Likewise.
44010         * tests/unictype/test-ctype_graph.c: Likewise.
44011         * tests/unictype/test-ctype_lower.c: Likewise.
44012         * tests/unictype/test-ctype_print.c: Likewise.
44013         * tests/unictype/test-ctype_punct.c: Likewise.
44014         * tests/unictype/test-ctype_space.c: Likewise.
44015         * tests/unictype/test-ctype_upper.c: Likewise.
44016         * tests/unictype/test-ctype_xdigit.c: Likewise.
44017         * tests/unictype/test-decdigit.h: Likewise.
44018         * tests/unictype/test-digit.h: Likewise.
44019         * tests/unictype/test-numeric.h: Likewise.
44020         * tests/unictype/test-pr_alphabetic.c: Likewise.
44021         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
44022         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44023         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44024         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
44025         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44026         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
44027         * tests/unictype/test-pr_bidi_control.c: Likewise.
44028         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
44029         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
44030         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44031         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44032         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44033         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44034         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44035         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44036         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
44037         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
44038         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
44039         * tests/unictype/test-pr_combining.c: Likewise.
44040         * tests/unictype/test-pr_composite.c: Likewise.
44041         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44042         * tests/unictype/test-pr_dash.c: Likewise.
44043         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44044         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
44045         * tests/unictype/test-pr_deprecated.c: Likewise.
44046         * tests/unictype/test-pr_diacritic.c: Likewise.
44047         * tests/unictype/test-pr_extender.c: Likewise.
44048         * tests/unictype/test-pr_format_control.c: Likewise.
44049         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44050         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44051         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44052         * tests/unictype/test-pr_hex_digit.c: Likewise.
44053         * tests/unictype/test-pr_hyphen.c: Likewise.
44054         * tests/unictype/test-pr_id_continue.c: Likewise.
44055         * tests/unictype/test-pr_id_start.c: Likewise.
44056         * tests/unictype/test-pr_ideographic.c: Likewise.
44057         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
44058         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
44059         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44060         * tests/unictype/test-pr_iso_control.c: Likewise.
44061         * tests/unictype/test-pr_join_control.c: Likewise.
44062         * tests/unictype/test-pr_left_of_pair.c: Likewise.
44063         * tests/unictype/test-pr_line_separator.c: Likewise.
44064         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44065         * tests/unictype/test-pr_lowercase.c: Likewise.
44066         * tests/unictype/test-pr_math.c: Likewise.
44067         * tests/unictype/test-pr_non_break.c: Likewise.
44068         * tests/unictype/test-pr_not_a_character.c: Likewise.
44069         * tests/unictype/test-pr_numeric.c: Likewise.
44070         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44071         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
44072         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
44073         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44074         * tests/unictype/test-pr_other_id_start.c: Likewise.
44075         * tests/unictype/test-pr_other_lowercase.c: Likewise.
44076         * tests/unictype/test-pr_other_math.c: Likewise.
44077         * tests/unictype/test-pr_other_uppercase.c: Likewise.
44078         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
44079         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
44080         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
44081         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
44082         * tests/unictype/test-pr_private_use.c: Likewise.
44083         * tests/unictype/test-pr_punctuation.c: Likewise.
44084         * tests/unictype/test-pr_quotation_mark.c: Likewise.
44085         * tests/unictype/test-pr_radical.c: Likewise.
44086         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44087         * tests/unictype/test-pr_soft_dotted.c: Likewise.
44088         * tests/unictype/test-pr_space.c: Likewise.
44089         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44090         * tests/unictype/test-pr_titlecase.c: Likewise.
44091         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44092         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44093         * tests/unictype/test-pr_uppercase.c: Likewise.
44094         * tests/unictype/test-pr_variation_selector.c: Likewise.
44095         * tests/unictype/test-pr_white_space.c: Likewise.
44096         * tests/unictype/test-pr_xid_continue.c: Likewise.
44097         * tests/unictype/test-pr_xid_start.c: Likewise.
44098         * tests/unictype/test-pr_zero_width.c: Likewise.
44099         * tests/unictype/test-sy_c_whitespace.c: Likewise.
44100         * tests/unictype/test-sy_java_whitespace.c: Likewise.
44101
44102 2007-11-12  Bruno Haible  <bruno@clisp.org>
44103
44104         Unicode character classification functions.
44105         * lib/unictype.h: New file.
44106         * modules/unictype/base: New file.
44107         * modules/unictype/category-L: New file.
44108         * modules/unictype/category-Lu: New file.
44109         * modules/unictype/category-Ll: New file.
44110         * modules/unictype/category-Lt: New file.
44111         * modules/unictype/category-Lm: New file.
44112         * modules/unictype/category-Lo: New file.
44113         * modules/unictype/category-M: New file.
44114         * modules/unictype/category-Mn: New file.
44115         * modules/unictype/category-Mc: New file.
44116         * modules/unictype/category-Me: New file.
44117         * modules/unictype/category-N: New file.
44118         * modules/unictype/category-Nd: New file.
44119         * modules/unictype/category-Nl: New file.
44120         * modules/unictype/category-No: New file.
44121         * modules/unictype/category-P: New file.
44122         * modules/unictype/category-Pc: New file.
44123         * modules/unictype/category-Pd: New file.
44124         * modules/unictype/category-Ps: New file.
44125         * modules/unictype/category-Pe: New file.
44126         * modules/unictype/category-Pi: New file.
44127         * modules/unictype/category-Pf: New file.
44128         * modules/unictype/category-Po: New file.
44129         * modules/unictype/category-S: New file.
44130         * modules/unictype/category-Sm: New file.
44131         * modules/unictype/category-Sc: New file.
44132         * modules/unictype/category-Sk: New file.
44133         * modules/unictype/category-So: New file.
44134         * modules/unictype/category-Z: New file.
44135         * modules/unictype/category-Zs: New file.
44136         * modules/unictype/category-Zl: New file.
44137         * modules/unictype/category-Zp: New file.
44138         * modules/unictype/category-C: New file.
44139         * modules/unictype/category-Cc: New file.
44140         * modules/unictype/category-Cf: New file.
44141         * modules/unictype/category-Cs: New file.
44142         * modules/unictype/category-Co: New file.
44143         * modules/unictype/category-Cn: New file.
44144         * modules/unictype/category-or: New file.
44145         * modules/unictype/category-of: New file.
44146         * modules/unictype/category-test: New file.
44147         * modules/unictype/category-test-withtable: New file.
44148         * modules/unictype/category-byname: New file.
44149         * modules/unictype/category-none: New file.
44150         * modules/unictype/category-and: New file.
44151         * modules/unictype/category-and-not: New file.
44152         * modules/unictype/category-name: New file.
44153         * modules/unictype/combining-class: New file.
44154         * modules/unictype/category-all: New file.
44155         * modules/unictype/bidicategory-all: New file.
44156         * modules/unictype/bidicategory-byname: New file.
44157         * modules/unictype/bidicategory-name: New file.
44158         * modules/unictype/bidicategory-of: New file.
44159         * modules/unictype/bidicategory-test: New file.
44160         * modules/unictype/decimal-digit: New file.
44161         * modules/unictype/digit: New file.
44162         * modules/unictype/numeric: New file.
44163         * modules/unictype/mirror: New file.
44164         * modules/unictype/property-white-space: New file.
44165         * modules/unictype/property-alphabetic: New file.
44166         * modules/unictype/property-other-alphabetic: New file.
44167         * modules/unictype/property-not-a-character: New file.
44168         * modules/unictype/property-default-ignorable-code-point: New file.
44169         * modules/unictype/property-other-default-ignorable-code-point: New
44170         file.
44171         * modules/unictype/property-deprecated: New file.
44172         * modules/unictype/property-logical-order-exception: New file.
44173         * modules/unictype/property-variation-selector: New file.
44174         * modules/unictype/property-private-use: New file.
44175         * modules/unictype/property-unassigned-code-value: New file.
44176         * modules/unictype/property-uppercase: New file.
44177         * modules/unictype/property-other-uppercase: New file.
44178         * modules/unictype/property-lowercase: New file.
44179         * modules/unictype/property-other-lowercase: New file.
44180         * modules/unictype/property-titlecase: New file.
44181         * modules/unictype/property-soft-dotted: New file.
44182         * modules/unictype/property-id-start: New file.
44183         * modules/unictype/property-other-id-start: New file.
44184         * modules/unictype/property-id-continue: New file.
44185         * modules/unictype/property-other-id-continue: New file.
44186         * modules/unictype/property-xid-start: New file.
44187         * modules/unictype/property-xid-continue: New file.
44188         * modules/unictype/property-pattern-white-space: New file.
44189         * modules/unictype/property-pattern-syntax: New file.
44190         * modules/unictype/property-join-control: New file.
44191         * modules/unictype/property-grapheme-base: New file.
44192         * modules/unictype/property-grapheme-extend: New file.
44193         * modules/unictype/property-other-grapheme-extend: New file.
44194         * modules/unictype/property-grapheme-link: New file.
44195         * modules/unictype/property-bidi-control: New file.
44196         * modules/unictype/property-bidi-left-to-right: New file.
44197         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
44198         * modules/unictype/property-bidi-arabic-right-to-left: New file.
44199         * modules/unictype/property-bidi-european-digit: New file.
44200         * modules/unictype/property-bidi-eur-num-separator: New file.
44201         * modules/unictype/property-bidi-eur-num-terminator: New file.
44202         * modules/unictype/property-bidi-arabic-digit: New file.
44203         * modules/unictype/property-bidi-common-separator: New file.
44204         * modules/unictype/property-bidi-block-separator: New file.
44205         * modules/unictype/property-bidi-segment-separator: New file.
44206         * modules/unictype/property-bidi-whitespace: New file.
44207         * modules/unictype/property-bidi-non-spacing-mark: New file.
44208         * modules/unictype/property-bidi-boundary-neutral: New file.
44209         * modules/unictype/property-bidi-pdf: New file.
44210         * modules/unictype/property-bidi-embedding-or-override: New file.
44211         * modules/unictype/property-bidi-other-neutral: New file.
44212         * modules/unictype/property-hex-digit: New file.
44213         * modules/unictype/property-ascii-hex-digit: New file.
44214         * modules/unictype/property-ideographic: New file.
44215         * modules/unictype/property-unified-ideograph: New file.
44216         * modules/unictype/property-radical: New file.
44217         * modules/unictype/property-ids-binary-operator: New file.
44218         * modules/unictype/property-ids-trinary-operator: New file.
44219         * modules/unictype/property-zero-width: New file.
44220         * modules/unictype/property-space: New file.
44221         * modules/unictype/property-non-break: New file.
44222         * modules/unictype/property-iso-control: New file.
44223         * modules/unictype/property-format-control: New file.
44224         * modules/unictype/property-dash: New file.
44225         * modules/unictype/property-hyphen: New file.
44226         * modules/unictype/property-punctuation: New file.
44227         * modules/unictype/property-line-separator: New file.
44228         * modules/unictype/property-paragraph-separator: New file.
44229         * modules/unictype/property-quotation-mark: New file.
44230         * modules/unictype/property-sentence-terminal: New file.
44231         * modules/unictype/property-terminal-punctuation: New file.
44232         * modules/unictype/property-currency-symbol: New file.
44233         * modules/unictype/property-math: New file.
44234         * modules/unictype/property-other-math: New file.
44235         * modules/unictype/property-paired-punctuation: New file.
44236         * modules/unictype/property-left-of-pair: New file.
44237         * modules/unictype/property-combining: New file.
44238         * modules/unictype/property-composite: New file.
44239         * modules/unictype/property-decimal-digit: New file.
44240         * modules/unictype/property-numeric: New file.
44241         * modules/unictype/property-diacritic: New file.
44242         * modules/unictype/property-extender: New file.
44243         * modules/unictype/property-ignorable-control: New file.
44244         * modules/unictype/property-test: New file.
44245         * modules/unictype/property-byname: New file.
44246         * modules/unictype/property-all: New file.
44247         * modules/unictype/scripts: New file.
44248         * modules/unictype/scripts-all: New file.
44249         * modules/unictype/block-of: New file.
44250         * modules/unictype/block-test: New file.
44251         * modules/unictype/block-list: New file.
44252         * modules/unictype/block-all: New file.
44253         * modules/unictype/syntax-c-whitespace: New file.
44254         * modules/unictype/syntax-java-whitespace: New file.
44255         * modules/unictype/syntax-c-ident: New file.
44256         * modules/unictype/syntax-java-ident: New file.
44257         * modules/unictype/ctype-alnum: New file.
44258         * modules/unictype/ctype-alpha: New file.
44259         * modules/unictype/ctype-cntrl: New file.
44260         * modules/unictype/ctype-digit: New file.
44261         * modules/unictype/ctype-graph: New file.
44262         * modules/unictype/ctype-lower: New file.
44263         * modules/unictype/ctype-print: New file.
44264         * modules/unictype/ctype-punct: New file.
44265         * modules/unictype/ctype-space: New file.
44266         * modules/unictype/ctype-upper: New file.
44267         * modules/unictype/ctype-xdigit: New file.
44268         * modules/unictype/ctype-blank: New file.
44269         * lib/unictype/bidi_byname.c: New file.
44270         * lib/unictype/bidi_name.c: New file.
44271         * lib/unictype/bidi_of.c: New file.
44272         * lib/unictype/bidi_test.c: New file.
44273         * lib/unictype/bitmap.h: New file.
44274         * lib/unictype/block_test.c: New file.
44275         * lib/unictype/blocks.c: New file.
44276         * lib/unictype/categ_C.c: New file.
44277         * lib/unictype/categ_Cc.c: New file.
44278         * lib/unictype/categ_Cf.c: New file.
44279         * lib/unictype/categ_Cn.c: New file.
44280         * lib/unictype/categ_Co.c: New file.
44281         * lib/unictype/categ_Cs.c: New file.
44282         * lib/unictype/categ_L.c: New file.
44283         * lib/unictype/categ_Ll.c: New file.
44284         * lib/unictype/categ_Lm.c: New file.
44285         * lib/unictype/categ_Lo.c: New file.
44286         * lib/unictype/categ_Lt.c: New file.
44287         * lib/unictype/categ_Lu.c: New file.
44288         * lib/unictype/categ_M.c: New file.
44289         * lib/unictype/categ_Mc.c: New file.
44290         * lib/unictype/categ_Me.c: New file.
44291         * lib/unictype/categ_Mn.c: New file.
44292         * lib/unictype/categ_N.c: New file.
44293         * lib/unictype/categ_Nd.c: New file.
44294         * lib/unictype/categ_Nl.c: New file.
44295         * lib/unictype/categ_No.c: New file.
44296         * lib/unictype/categ_P.c: New file.
44297         * lib/unictype/categ_Pc.c: New file.
44298         * lib/unictype/categ_Pd.c: New file.
44299         * lib/unictype/categ_Pe.c: New file.
44300         * lib/unictype/categ_Pf.c: New file.
44301         * lib/unictype/categ_Pi.c: New file.
44302         * lib/unictype/categ_Po.c: New file.
44303         * lib/unictype/categ_Ps.c: New file.
44304         * lib/unictype/categ_S.c: New file.
44305         * lib/unictype/categ_Sc.c: New file.
44306         * lib/unictype/categ_Sk.c: New file.
44307         * lib/unictype/categ_Sm.c: New file.
44308         * lib/unictype/categ_So.c: New file.
44309         * lib/unictype/categ_Z.c: New file.
44310         * lib/unictype/categ_Zl.c: New file.
44311         * lib/unictype/categ_Zp.c: New file.
44312         * lib/unictype/categ_Zs.c: New file.
44313         * lib/unictype/categ_and.c: New file.
44314         * lib/unictype/categ_and_not.c: New file.
44315         * lib/unictype/categ_byname.c: New file.
44316         * lib/unictype/categ_name.c: New file.
44317         * lib/unictype/categ_none.c: New file.
44318         * lib/unictype/categ_of.c: New file.
44319         * lib/unictype/categ_or.c: New file.
44320         * lib/unictype/categ_test.c: New file.
44321         * lib/unictype/combining.c: New file.
44322         * lib/unictype/ctype_alnum.c: New file.
44323         * lib/unictype/ctype_alpha.c: New file.
44324         * lib/unictype/ctype_blank.c: New file.
44325         * lib/unictype/ctype_cntrl.c: New file.
44326         * lib/unictype/ctype_digit.c: New file.
44327         * lib/unictype/ctype_graph.c: New file.
44328         * lib/unictype/ctype_lower.c: New file.
44329         * lib/unictype/ctype_print.c: New file.
44330         * lib/unictype/ctype_punct.c: New file.
44331         * lib/unictype/ctype_space.c: New file.
44332         * lib/unictype/ctype_upper.c: New file.
44333         * lib/unictype/ctype_xdigit.c: New file.
44334         * lib/unictype/decdigit.c: New file.
44335         * lib/unictype/digit.c: New file.
44336         * lib/unictype/identsyntaxmap.h: New file.
44337         * lib/unictype/mirror.c: New file.
44338         * lib/unictype/numeric.c: New file.
44339         * lib/unictype/pr_alphabetic.c: New file.
44340         * lib/unictype/pr_ascii_hex_digit.c: New file.
44341         * lib/unictype/pr_bidi_arabic_digit.c: New file.
44342         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
44343         * lib/unictype/pr_bidi_block_separator.c: New file.
44344         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
44345         * lib/unictype/pr_bidi_common_separator.c: New file.
44346         * lib/unictype/pr_bidi_control.c: New file.
44347         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
44348         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
44349         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
44350         * lib/unictype/pr_bidi_european_digit.c: New file.
44351         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
44352         * lib/unictype/pr_bidi_left_to_right.c: New file.
44353         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
44354         * lib/unictype/pr_bidi_other_neutral.c: New file.
44355         * lib/unictype/pr_bidi_pdf.c: New file.
44356         * lib/unictype/pr_bidi_segment_separator.c: New file.
44357         * lib/unictype/pr_bidi_whitespace.c: New file.
44358         * lib/unictype/pr_byname.c: New file.
44359         * lib/unictype/pr_byname.gperf: New file.
44360         * lib/unictype/pr_combining.c: New file.
44361         * lib/unictype/pr_composite.c: New file.
44362         * lib/unictype/pr_currency_symbol.c: New file.
44363         * lib/unictype/pr_dash.c: New file.
44364         * lib/unictype/pr_decimal_digit.c: New file.
44365         * lib/unictype/pr_default_ignorable_code_point.c: New file.
44366         * lib/unictype/pr_deprecated.c: New file.
44367         * lib/unictype/pr_diacritic.c: New file.
44368         * lib/unictype/pr_extender.c: New file.
44369         * lib/unictype/pr_format_control.c: New file.
44370         * lib/unictype/pr_grapheme_base.c: New file.
44371         * lib/unictype/pr_grapheme_extend.c: New file.
44372         * lib/unictype/pr_grapheme_link.c: New file.
44373         * lib/unictype/pr_hex_digit.c: New file.
44374         * lib/unictype/pr_hyphen.c: New file.
44375         * lib/unictype/pr_id_continue.c: New file.
44376         * lib/unictype/pr_id_start.c: New file.
44377         * lib/unictype/pr_ideographic.c: New file.
44378         * lib/unictype/pr_ids_binary_operator.c: New file.
44379         * lib/unictype/pr_ids_trinary_operator.c: New file.
44380         * lib/unictype/pr_ignorable_control.c: New file.
44381         * lib/unictype/pr_iso_control.c: New file.
44382         * lib/unictype/pr_join_control.c: New file.
44383         * lib/unictype/pr_left_of_pair.c: New file.
44384         * lib/unictype/pr_line_separator.c: New file.
44385         * lib/unictype/pr_logical_order_exception.c: New file.
44386         * lib/unictype/pr_lowercase.c: New file.
44387         * lib/unictype/pr_math.c: New file.
44388         * lib/unictype/pr_non_break.c: New file.
44389         * lib/unictype/pr_not_a_character.c: New file.
44390         * lib/unictype/pr_numeric.c: New file.
44391         * lib/unictype/pr_other_alphabetic.c: New file.
44392         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
44393         * lib/unictype/pr_other_grapheme_extend.c: New file.
44394         * lib/unictype/pr_other_id_continue.c: New file.
44395         * lib/unictype/pr_other_id_start.c: New file.
44396         * lib/unictype/pr_other_lowercase.c: New file.
44397         * lib/unictype/pr_other_math.c: New file.
44398         * lib/unictype/pr_other_uppercase.c: New file.
44399         * lib/unictype/pr_paired_punctuation.c: New file.
44400         * lib/unictype/pr_paragraph_separator.c: New file.
44401         * lib/unictype/pr_pattern_syntax.c: New file.
44402         * lib/unictype/pr_pattern_white_space.c: New file.
44403         * lib/unictype/pr_private_use.c: New file.
44404         * lib/unictype/pr_punctuation.c: New file.
44405         * lib/unictype/pr_quotation_mark.c: New file.
44406         * lib/unictype/pr_radical.c: New file.
44407         * lib/unictype/pr_sentence_terminal.c: New file.
44408         * lib/unictype/pr_soft_dotted.c: New file.
44409         * lib/unictype/pr_space.c: New file.
44410         * lib/unictype/pr_terminal_punctuation.c: New file.
44411         * lib/unictype/pr_test.c: New file.
44412         * lib/unictype/pr_titlecase.c: New file.
44413         * lib/unictype/pr_unassigned_code_value.c: New file.
44414         * lib/unictype/pr_unified_ideograph.c: New file.
44415         * lib/unictype/pr_uppercase.c: New file.
44416         * lib/unictype/pr_variation_selector.c: New file.
44417         * lib/unictype/pr_white_space.c: New file.
44418         * lib/unictype/pr_xid_continue.c: New file.
44419         * lib/unictype/pr_xid_start.c: New file.
44420         * lib/unictype/pr_zero_width.c: New file.
44421         * lib/unictype/scripts.c: New file.
44422         * lib/unictype/sy_c_ident.c: New file.
44423         * lib/unictype/sy_c_whitespace.c: New file.
44424         * lib/unictype/sy_java_ident.c: New file.
44425         * lib/unictype/sy_java_whitespace.c: New file.
44426
44427         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
44428         Unicode 5.0.0.
44429         * lib/unictype/blocks.h: Likewise.
44430         * lib/unictype/categ_C.h: Likewise.
44431         * lib/unictype/categ_Cc.h: Likewise.
44432         * lib/unictype/categ_Cf.h: Likewise.
44433         * lib/unictype/categ_Cn.h: Likewise.
44434         * lib/unictype/categ_Co.h: Likewise.
44435         * lib/unictype/categ_Cs.h: Likewise.
44436         * lib/unictype/categ_L.h: Likewise.
44437         * lib/unictype/categ_Ll.h: Likewise.
44438         * lib/unictype/categ_Lm.h: Likewise.
44439         * lib/unictype/categ_Lo.h: Likewise.
44440         * lib/unictype/categ_Lt.h: Likewise.
44441         * lib/unictype/categ_Lu.h: Likewise.
44442         * lib/unictype/categ_M.h: Likewise.
44443         * lib/unictype/categ_Mc.h: Likewise.
44444         * lib/unictype/categ_Me.h: Likewise.
44445         * lib/unictype/categ_Mn.h: Likewise.
44446         * lib/unictype/categ_N.h: Likewise.
44447         * lib/unictype/categ_Nd.h: Likewise.
44448         * lib/unictype/categ_Nl.h: Likewise.
44449         * lib/unictype/categ_No.h: Likewise.
44450         * lib/unictype/categ_P.h: Likewise.
44451         * lib/unictype/categ_Pc.h: Likewise.
44452         * lib/unictype/categ_Pd.h: Likewise.
44453         * lib/unictype/categ_Pe.h: Likewise.
44454         * lib/unictype/categ_Pf.h: Likewise.
44455         * lib/unictype/categ_Pi.h: Likewise.
44456         * lib/unictype/categ_Po.h: Likewise.
44457         * lib/unictype/categ_Ps.h: Likewise.
44458         * lib/unictype/categ_S.h: Likewise.
44459         * lib/unictype/categ_Sc.h: Likewise.
44460         * lib/unictype/categ_Sk.h: Likewise.
44461         * lib/unictype/categ_Sm.h: Likewise.
44462         * lib/unictype/categ_So.h: Likewise.
44463         * lib/unictype/categ_Z.h: Likewise.
44464         * lib/unictype/categ_Zl.h: Likewise.
44465         * lib/unictype/categ_Zp.h: Likewise.
44466         * lib/unictype/categ_Zs.h: Likewise.
44467         * lib/unictype/categ_of.h: Likewise.
44468         * lib/unictype/combining.h: Likewise.
44469         * lib/unictype/ctype_alnum.h: Likewise.
44470         * lib/unictype/ctype_alpha.h: Likewise.
44471         * lib/unictype/ctype_blank.h: Likewise.
44472         * lib/unictype/ctype_cntrl.h: Likewise.
44473         * lib/unictype/ctype_digit.h: Likewise.
44474         * lib/unictype/ctype_graph.h: Likewise.
44475         * lib/unictype/ctype_lower.h: Likewise.
44476         * lib/unictype/ctype_print.h: Likewise.
44477         * lib/unictype/ctype_punct.h: Likewise.
44478         * lib/unictype/ctype_space.h: Likewise.
44479         * lib/unictype/ctype_upper.h: Likewise.
44480         * lib/unictype/ctype_xdigit.h: Likewise.
44481         * lib/unictype/decdigit.h: Likewise.
44482         * lib/unictype/digit.h: Likewise.
44483         * lib/unictype/mirror.h: Likewise.
44484         * lib/unictype/numeric.h: Likewise.
44485         * lib/unictype/pr_alphabetic.h: Likewise.
44486         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44487         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44488         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44489         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44490         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44491         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44492         * lib/unictype/pr_bidi_control.h: Likewise.
44493         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44494         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44495         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44496         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44497         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44498         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44499         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44500         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44501         * lib/unictype/pr_bidi_pdf.h: Likewise.
44502         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44503         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44504         * lib/unictype/pr_combining.h: Likewise.
44505         * lib/unictype/pr_composite.h: Likewise.
44506         * lib/unictype/pr_currency_symbol.h: Likewise.
44507         * lib/unictype/pr_dash.h: Likewise.
44508         * lib/unictype/pr_decimal_digit.h: Likewise.
44509         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44510         * lib/unictype/pr_deprecated.h: Likewise.
44511         * lib/unictype/pr_diacritic.h: Likewise.
44512         * lib/unictype/pr_extender.h: Likewise.
44513         * lib/unictype/pr_format_control.h: Likewise.
44514         * lib/unictype/pr_grapheme_base.h: Likewise.
44515         * lib/unictype/pr_grapheme_extend.h: Likewise.
44516         * lib/unictype/pr_grapheme_link.h: Likewise.
44517         * lib/unictype/pr_hex_digit.h: Likewise.
44518         * lib/unictype/pr_hyphen.h: Likewise.
44519         * lib/unictype/pr_id_continue.h: Likewise.
44520         * lib/unictype/pr_id_start.h: Likewise.
44521         * lib/unictype/pr_ideographic.h: Likewise.
44522         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44523         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44524         * lib/unictype/pr_ignorable_control.h: Likewise.
44525         * lib/unictype/pr_iso_control.h: Likewise.
44526         * lib/unictype/pr_join_control.h: Likewise.
44527         * lib/unictype/pr_left_of_pair.h: Likewise.
44528         * lib/unictype/pr_line_separator.h: Likewise.
44529         * lib/unictype/pr_logical_order_exception.h: Likewise.
44530         * lib/unictype/pr_lowercase.h: Likewise.
44531         * lib/unictype/pr_math.h: Likewise.
44532         * lib/unictype/pr_non_break.h: Likewise.
44533         * lib/unictype/pr_not_a_character.h: Likewise.
44534         * lib/unictype/pr_numeric.h: Likewise.
44535         * lib/unictype/pr_other_alphabetic.h: Likewise.
44536         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44537         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44538         * lib/unictype/pr_other_id_continue.h: Likewise.
44539         * lib/unictype/pr_other_id_start.h: Likewise.
44540         * lib/unictype/pr_other_lowercase.h: Likewise.
44541         * lib/unictype/pr_other_math.h: Likewise.
44542         * lib/unictype/pr_other_uppercase.h: Likewise.
44543         * lib/unictype/pr_paired_punctuation.h: Likewise.
44544         * lib/unictype/pr_paragraph_separator.h: Likewise.
44545         * lib/unictype/pr_pattern_syntax.h: Likewise.
44546         * lib/unictype/pr_pattern_white_space.h: Likewise.
44547         * lib/unictype/pr_private_use.h: Likewise.
44548         * lib/unictype/pr_punctuation.h: Likewise.
44549         * lib/unictype/pr_quotation_mark.h: Likewise.
44550         * lib/unictype/pr_radical.h: Likewise.
44551         * lib/unictype/pr_sentence_terminal.h: Likewise.
44552         * lib/unictype/pr_soft_dotted.h: Likewise.
44553         * lib/unictype/pr_space.h: Likewise.
44554         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44555         * lib/unictype/pr_titlecase.h: Likewise.
44556         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44557         * lib/unictype/pr_unified_ideograph.h: Likewise.
44558         * lib/unictype/pr_uppercase.h: Likewise.
44559         * lib/unictype/pr_variation_selector.h: Likewise.
44560         * lib/unictype/pr_white_space.h: Likewise.
44561         * lib/unictype/pr_xid_continue.h: Likewise.
44562         * lib/unictype/pr_xid_start.h: Likewise.
44563         * lib/unictype/pr_zero_width.h: Likewise.
44564         * lib/unictype/scripts.h: Likewise.
44565         * lib/unictype/scripts_byname.gperf: Likewise.
44566         * lib/unictype/sy_c_ident.h: Likewise.
44567         * lib/unictype/sy_c_whitespace.h: Likewise.
44568         * lib/unictype/sy_java_ident.h: Likewise.
44569         * lib/unictype/sy_java_whitespace.h: Likewise.
44570
44571         * lib/unictype/Makefile: New file.
44572         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
44573         glibc.
44574         * lib/unictype/3level.h: New file, copied from glibc.
44575         * lib/unictype/3levelbit.h: New file.
44576
44577 2007-11-11  Bruno Haible  <bruno@clisp.org>
44578
44579         * modules/gperf: New file.
44580         * modules/iconv_open (Depends-on): Add it.
44581         (Makefile.am): Remove the GPERF definition.
44582
44583 2007-11-11  Bruno Haible  <bruno@clisp.org>
44584
44585         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
44586         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
44587
44588 2007-11-11  Bruno Haible  <bruno@clisp.org>
44589
44590         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
44591         (usage): Remove function.
44592
44593 2007-11-11  Bruno Haible  <bruno@clisp.org>
44594
44595         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
44596         gl_FUNC_CEILF_LIBS.
44597         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
44598         gl_FUNC_CEIL_LIBS.
44599         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
44600         gl_FUNC_CEILL_LIBS.
44601         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
44602         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
44603         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
44604
44605 2007-11-11  Bruno Haible  <bruno@clisp.org>
44606
44607         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
44608         roundf were declared but do not exist on functions.
44609         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
44610         roundl were declared but do not exist on functions.
44611         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
44612         HAVE_FLOORL_AND_CEILL, respectively.
44613         Needed for Sun C on Solaris 10.
44614
44615 2007-11-11  Bruno Haible  <bruno@clisp.org>
44616
44617         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
44618         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
44619         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
44620         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
44621         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
44622         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
44623         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
44624         HAVE_DECL_ROUNDF.
44625         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
44626         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
44627         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
44628         of HAVE_DECL_ROUND*.
44629         * modules/math (Makefile.am): Update.
44630
44631 2007-11-10  Bruno Haible  <bruno@clisp.org>
44632
44633         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
44634         ptrdiff_t as m4/intl.m4.
44635
44636 2007-11-10  Jim Meyering  <meyering@redhat.com>
44637
44638         Avoid link failure for the argmatch test.
44639         * tests/test-argmatch.c (usage): Define function to avoid a link
44640         failure: argmatch_die requires a usage function.
44641
44642 2007-11-09  Bruno Haible  <bruno@clisp.org>
44643
44644         * doc/functions/snprintf.texi: Mention BeOS deficiency.
44645         * doc/functions/vsnprintf.texi: Likewise.
44646         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
44647         with a size argument < 2.
44648
44649 2007-11-09  Bruno Haible  <bruno@clisp.org>
44650
44651         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
44652         buffer. Fixes an inefficiency introduced on 2007-11-03.
44653
44654 2007-11-09  Bruno Haible  <bruno@clisp.org>
44655
44656         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
44657         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
44658
44659 2007-11-08  Jim Meyering  <meyering@redhat.com>
44660
44661         Change cache variable name prefix "jm_" to "gl_" everywhere.
44662         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
44663         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
44664         * m4/uptime.m4: s/gl_/jm_/
44665
44666 2007-11-07  Bruno Haible  <bruno@clisp.org>
44667
44668         Update to GNU gettext 0.17.
44669         * m4/intl.m4: Update to GNU gettext 0.17.
44670         * m4/po.m4: Likewise.
44671         * modules/gettext (Files): Remove m4/ulonglong.m4.
44672         (configure.ac): Require gettext infrastructure from version 0.17.
44673
44674 2007-11-06  Bruno Haible  <bruno@clisp.org>
44675
44676         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
44677         symbolic values are not defined in a public header.
44678         * lib/freadable.c (freadable) [QNX]: Likewise.
44679         * lib/freadahead.c (freadahead) [QNX]: Likewise.
44680         * lib/freading.c (freading) [QNX]: Likewise.
44681         * lib/fseterr.c (fseterr) [QNX]: Likewise.
44682         * lib/fwritable.c (fwritable) [QNX]: Likewise.
44683         * lib/fwriting.c (fwriting) [QNX]: Likewise.
44684         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
44685         Reported by Alain Magloire.
44686
44687         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
44688
44689 2007-11-05  Bruno Haible  <bruno@clisp.org>
44690
44691         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
44692         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
44693         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
44694         Reported by Eric Blake.
44695
44696 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44697             Bruno Haible  <bruno@clisp.org>
44698
44699         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
44700         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
44701         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
44702         (malloc): Undefine also before including <stdlib.h>.
44703         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
44704         Needed on OSF/1 4.0.
44705
44706 2007-11-05  Jim Meyering  <meyering@redhat.com>
44707
44708         git-version-gen: sync from coreutils.
44709         * build-aux/git-version-gen: Add comments.
44710         Change the first '-' to '.' in the snapshot version string,
44711         e.g., 6.9-377-08144 -> 6.9.377-08144
44712         Remove first parameter.
44713         Don't declare a version "-dirty" merely because a time
44714         stamp has changed.
44715
44716 2007-11-04  Bruno Haible  <bruno@clisp.org>
44717
44718         * lib/lock.h: Protect all macro definitions containing an 'if'
44719         statement through a "do { ... } while (0)".
44720         * lib/tls.h: Likewise.
44721
44722 2007-11-04  Bruno Haible  <bruno@clisp.org>
44723
44724         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
44725
44726 2007-11-04  Bruno Haible  <bruno@clisp.org>
44727
44728         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
44729         * modules/fprintf-posix (Depends-on): Add nocrash.
44730         * modules/snprintf-posix (Depends-on): Likewise.
44731         * modules/sprintf-posix (Depends-on): Likewise.
44732         * modules/vasnprintf-posix (Depends-on): Likewise.
44733         * modules/vasprintf-posix (Depends-on): Likewise.
44734         * modules/vfprintf-posix (Depends-on): Likewise.
44735         * modules/vsnprintf-posix (Depends-on): Likewise.
44736         * modules/vsprintf-posix (Depends-on): Likewise.
44737         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44738         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44739         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44740         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44741         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44742         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44743         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44744
44745 2007-11-04  Bruno Haible  <bruno@clisp.org>
44746
44747         * modules/nocrash: New file.
44748         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
44749         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
44750
44751 2007-11-04  Bruno Haible  <bruno@clisp.org>
44752
44753         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
44754         precision handling.
44755         * tests/test-vasprintf-posix.c (test_function): Likewise.
44756         * tests/test-snprintf-posix.h (test_function): Likewise.
44757         * tests/test-sprintf-posix.h (test_function): Likewise.
44758
44759         Fix *printf behaviour for large precisions on mingw and BeOS.
44760         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
44761         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
44762         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
44763         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44764         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44765         gl_PRINTF_PRECISION and test its result. Invoke
44766         gl_PREREQ_VASNPRINTF_PRECISION.
44767         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44768         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44769         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44770         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44771         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44772         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44773         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44774         * doc/functions/fprintf.texi: Update.
44775         * doc/functions/printf.texi: Update.
44776         * doc/functions/snprintf.texi: Update.
44777         * doc/functions/sprintf.texi: Update.
44778         * doc/functions/vfprintf.texi: Update.
44779         * doc/functions/vprintf.texi: Update.
44780         * doc/functions/vsnprintf.texi: Update.
44781         * doc/functions/vsprintf.texi: Update.
44782
44783 2007-11-04  Bruno Haible  <bruno@clisp.org>
44784
44785         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
44786
44787 2007-11-04  Bruno Haible  <bruno@clisp.org>
44788
44789         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
44790         Reported by Sylvain Beucler <beuc@gnu.org>.
44791
44792 2007-11-03  Bruno Haible  <bruno@clisp.org>
44793
44794         * tests/test-fprintf-posix2.sh: New file.
44795         * tests/test-fprintf-posix2.c: New file.
44796         * modules/fprintf-posix-tests (Files): Add them.
44797         (TESTS): Add test-fprintf-posix2.sh.
44798         (configure.ac): Check for getrlimit and setrlimit.
44799         (check_PROGRAMS): Add test-fprintf-posix2.
44800
44801         * tests/test-printf-posix2.sh: New file.
44802         * tests/test-printf-posix2.c: New file.
44803         * modules/printf-posix-tests (Files): Add them.
44804         (TESTS): Add test-printf-posix2.sh.
44805         (configure.ac): Check for getrlimit and setrlimit.
44806         (check_PROGRAMS): Add test-printf-posix2.
44807
44808         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
44809         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
44810         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
44811         (decode_double): New function, copied from decode_long_double.
44812         (scale10_round_decimal_decoded): New function, extracted from
44813         scale10_round_decimal_long_double.
44814         (scale10_round_decimal_long_double): Use it.
44815         (scale10_round_decimal_double): New function.
44816         (floorlog10): New function.
44817         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
44818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
44819         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44820         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44821         gl_PRINTF_ENOMEM and test its result. Invoke
44822         gl_PREREQ_VASNPRINTF_ENOMEM.
44823         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44824         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44825         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44826         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44827         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44828         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44829         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44830         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
44831         * modules/snprintf-posix (Depends-on): Likewise.
44832         * modules/sprintf-posix (Depends-on): Likewise.
44833         * modules/vasnprintf-posix (Depends-on): Likewise.
44834         * modules/vasprintf-posix (Depends-on): Likewise.
44835         * modules/vfprintf-posix (Depends-on): Likewise.
44836         * modules/vsnprintf-posix (Depends-on): Likewise.
44837         * modules/vsprintf-posix (Depends-on): Likewise.
44838         * doc/functions/fprintf.texi: Update.
44839         * doc/functions/printf.texi: Update.
44840         * doc/functions/snprintf.texi: Update.
44841         * doc/functions/sprintf.texi: Update.
44842         * doc/functions/vfprintf.texi: Update.
44843         * doc/functions/vprintf.texi: Update.
44844         * doc/functions/vsnprintf.texi: Update.
44845         * doc/functions/vsprintf.texi: Update.
44846
44847 2007-11-03  Bruno Haible  <bruno@clisp.org>
44848
44849         * modules/frexp-nolibm-tests: New file.
44850
44851         * modules/frexp-nolibm: New file.
44852         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
44853
44854 2007-11-03  Bruno Haible  <bruno@clisp.org>
44855
44856         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
44857         value is C99 compliant.
44858         Needed for OSF/1 5.1.
44859
44860 2007-11-03  Bruno Haible  <bruno@clisp.org>
44861
44862         Fix out-of-memory handling of vasnprintf.
44863         * lib/printf-parse.c: Include <errno.h>.
44864         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
44865         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
44866         is already set.
44867
44868 2007-11-02  Eric Blake  <ebb9@byu.net>
44869
44870         Fix tests on cygwin.
44871         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
44872
44873 2007-11-01  Bruno Haible  <bruno@clisp.org>
44874
44875         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
44876         warning.
44877         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
44878         needed for POSIX compatibility.
44879
44880 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44881
44882         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
44883         for compatibility with GNU.
44884
44885 2007-11-01  Bruno Haible  <bruno@clisp.org>
44886
44887         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
44888         (putenv): Renamed from rpl_putenv. Change argument type from
44889         'const char *' to 'char *'.
44890         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
44891         of defining putenv in config.h, just set REPLACE_PUTENV.
44892         * modules/putenv (Depends-on): Add stdlib.
44893         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44894         (Include): Use <stdlib.h>.
44895         * lib/stdlib.in.h (putenv): New declaration.
44896         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
44897         REPLACE_PUTENV.
44898         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
44899         REPLACE_PUTENV.
44900         Needed for MacOS X 10.5.0.
44901         Reported by Peter O'Gorman <peter@pogma.com>.
44902
44903 2007-11-01  Jim Meyering  <meyering@redhat.com>
44904
44905         Treat an empty date string exactly like "0".
44906         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
44907         if the remaining date string (to be parsed) is empty, use "0".
44908         Reported by Mischa Molhoek and discussed in this thread:
44909         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
44910
44911 2007-10-31  Bruno Haible  <bruno@clisp.org>
44912
44913         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
44914         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
44915         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
44916         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
44917         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
44918         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
44919
44920 2007-10-31  Bruno Haible  <bruno@clisp.org>
44921
44922         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
44923         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
44924         (AC_TYPE_LONG_LONG_INT): Use it.
44925         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
44926         it as well.
44927         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
44928         to m4/longlong.m4.
44929         * modules/stdint (Files): Remove m4/ulonglong.m4.
44930         * modules/strtoull (Files): Use m4/longlong.m4 instead of
44931         m4/ulonglong.m4.
44932         * modules/strtoumax (Files): Likewise.
44933
44934 2007-10-30  Bruno Haible  <bruno@clisp.org>
44935
44936         * modules/xvasprintf-posix: New file.
44937         Suggested by Eric Blake.
44938
44939 2007-10-30  Bruno Haible  <bruno@clisp.org>
44940
44941         * modules/xprintf-posix-tests: New file.
44942         * tests/test-xprintf-posix.sh: New file.
44943         * tests/test-xprintf-posix.c: New file.
44944         * tests/test-xfprintf-posix.c: New file.
44945
44946         * modules/xprintf-posix: New file.
44947
44948 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44949
44950         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
44951         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
44952         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
44953
44954 2007-10-29  Bruno Haible  <bruno@clisp.org>
44955
44956         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
44957         contain the special marker '_cv_'.
44958         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44959         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44960         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44961         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
44962         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44963         Reported by Ralf Wildenhues.
44964
44965 2007-10-29  Bruno Haible  <bruno@clisp.org>
44966
44967         * gnulib-tool (func_import): When --lgpl is not specified, set
44968         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
44969         GPLv3.
44970         Reported by Simon Josefsson.
44971
44972 2007-10-28  Bruno Haible  <bruno@clisp.org>
44973
44974         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
44975         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
44976         HAVE_DECL_ISFINITE.
44977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44978         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
44979         HAVE_DECL_ISFINITE.
44980
44981 2007-10-28  Bruno Haible  <bruno@clisp.org>
44982
44983         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
44984         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
44985
44986 2007-10-28  Bruno Haible  <bruno@clisp.org>
44987
44988         Fix link errors with Sun C 5.0 on Solaris 10.
44989         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
44990         function is declared but not present in the compiler's libm.
44991         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44992         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44993         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
44994         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
44995         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
44996         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
44997         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
44998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44999         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
45000         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
45001         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
45002         HAVE_DECL_FLOORL.
45003
45004 2007-10-28  Bruno Haible  <bruno@clisp.org>
45005
45006         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
45007         gl_FUNC_FLOORL. Cache the result.
45008         (gl_FUNC_FLOORL): Use it.
45009         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
45010         gl_FUNC_CEILL. Cache the result.
45011         (gl_FUNC_CEILL): Use it.
45012
45013         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
45014         gl_FUNC_FLOOR. Cache the result.
45015         (gl_FUNC_FLOOR): Use it.
45016         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
45017         gl_FUNC_CEIL. Cache the result.
45018         (gl_FUNC_CEIL): Use it.
45019
45020         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
45021         gl_FUNC_FLOORF. Cache the result.
45022         (gl_FUNC_FLOORF): Use it.
45023         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
45024         gl_FUNC_CEILF. Cache the result.
45025         (gl_FUNC_CEILF): Use it.
45026
45027 2007-10-28  Bruno Haible  <bruno@clisp.org>
45028
45029         * gnulib-tool: Allow specifying the LGPL version number through
45030         --lgpl=2 or --lgpl=3.
45031         (func_usage): Document --lgpl with argument.
45032         Handle --lgpl=... arguments.
45033         (func_import): Recognize also gl_LGPL calls with an argument. When
45034         --lgpl=2 is used and the module's license is just LGPL, report an
45035         error. Set sed_transform_lib_file according to the lgpl variable. In
45036         the generated files, use --lgpl or gl_LGPL invocations with argument,
45037         if necessary.
45038         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
45039         an LGPv2+ license.
45040         * doc/gnulib-tool.texi (Modified imports): Update explanation of
45041         gl_LGPL macro.
45042
45043 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45044             Bruno Haible  <bruno@clisp.org>
45045
45046         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
45047         (u16_uctomb_aux): Likewise.
45048         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
45049         !HAVE_INLINE.
45050         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
45051
45052 2007-10-28  Bruno Haible  <bruno@clisp.org>
45053
45054         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
45055         Invoke AM_GETTEXT_OPTION if it exists.
45056         * modules/vasprintf: Likewise.
45057         * modules/verror: Likewise.
45058         * modules/xprintf: Likewise.
45059         * modules/xvasprintf: Likewise.
45060
45061 2007-10-27  Ben Pfaff  <blp@gnu.org>
45062
45063         * lib/math.in.h: Define isfinite macro and prototypes for
45064         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
45065         implementations.
45066         * m4/math_h.m4: New substitutions for isfinite module.
45067         * lib/isfinite.c: New file.
45068         * m4/isfinite.m4: New file.
45069         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
45070         * modules/isfinite: New file.
45071         * modules/isfinite-tests: New file.
45072         * tests/tests-isfinite.c: New file.
45073         * doc/functions/isfinite.texi: Mention isfinite module.
45074         * MODULES.html.sh: Mention new module.
45075
45076 2007-10-27  Ben Pfaff  <blp@gnu.org>
45077
45078         Ralf Wildenhues reported that Tru64 4.0D declares the round
45079         functions but does not have definitions.
45080         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
45081         cannot be found in any library, set the output variable to
45082         "missing" instead of "".
45083         * m4/round.m4: Also use our substitute if we cannot find round in
45084         any library, even if it is declared.
45085         * m4/roundf.m4: Likewise for roundf.
45086         * m4/roundl.m4: Likewise for roundl.
45087         * lib/math.in.h: Undefine roundf, round, roundl before defining
45088         their replacements, to allow for hypothetical systems where these
45089         may be defined as macros but not available in libraries.
45090
45091 2007-10-27  Bruno Haible  <bruno@clisp.org>
45092
45093         * doc/gnulib.texi: Invoke @firstparagraphindent.
45094         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
45095         changes in gnulib.
45096         (Source changes): New section.
45097
45098 2007-10-26  Bruno Haible  <bruno@clisp.org>
45099
45100         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
45101         borrowed from autoconf.
45102
45103 2007-10-26  Bruno Haible  <bruno@clisp.org>
45104
45105         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
45106         strerror returned the empty string. Needed on HP-UX 11.00.
45107
45108 2007-10-24  Micah Cowan  <micah@cowan.name>
45109
45110         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
45111         * build-aux/bootstrap: Remove support for now-unnecessary option,
45112         --cvs-user, and envvars CVS_USER, CVS_RSH.
45113
45114 2007-10-24  Jim Meyering  <meyering@redhat.com>
45115
45116         Avoid diagnostics from sha1sum when there is no cached checksum.
45117         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
45118         if the po.s1 file hasn't been created yet.
45119
45120         * build-aux/bootstrap: Sync from coreutils:
45121         2007-10-24  Jim Meyering  <meyering@redhat.com>
45122         Get gnulib from the git repository, not from an obsolete cvs one.
45123         * build-aux/bootstrap: Suggestion from Micah Cowan.
45124         2007-10-04  Jim Meyering  <jim@meyering.net>
45125         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
45126         (update_po_files): Work also when there are no .po files in po/.
45127
45128 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45129
45130         * README: Append ".git" to git and cg examples.
45131         Problem reported by Benoit Sigoure.
45132
45133 2007-10-23  Micah Cowan  <micah@cowan.name>
45134
45135         * users.txt: Add wget.
45136
45137 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45138
45139         Fix linking of some unistdio tests on FreeBSD.
45140         * modules/unistdio/u16-vsnprintf-tests
45141         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
45142         * modules/unistdio/u16-vsprintf-tests
45143         (test_u16_vsnprintf1_LDADD): Likewise.
45144         * modules/unistdio/u32-vsnprintf-tests
45145         (test_u32_vsnprintf1_LDADD): Likewise.
45146         * modules/unistdio/u32-vsprintf-tests
45147         (test_u32_vsprintf1_LDADD): Likewise.
45148         * modules/unistdio/u8-vsnprintf-tests
45149         (test_u8_vsnprintf1_LDADD): Likewise.
45150         * modules/unistdio/u8-vsprintf-tests
45151         (test_u8_vsprintf1_LDADD): Likewise.
45152         * modules/unistdio/ulc-vsnprintf-tests
45153         (test_ulc_vsnprintf1_LDADD): Likewise.
45154         * modules/unistdio/ulc-vsprintf-tests
45155         (test_ulc_vsprintf1_LDADD): Likewise.
45156
45157         Fix linking of some uniconv tests on FreeBSD.
45158         * modules/uniconv/u16-conv-from-enc-tests
45159         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
45160         * modules/uniconv/u16-conv-to-enc-tests
45161         (test_u16_conv_to_enc_LDADD): Likewise.
45162         * modules/uniconv/u16-strconv-from-enc-tests
45163         (test_u16_strconv_from_enc_LDADD): Likewise.
45164         * modules/uniconv/u16-strconv-to-enc-tests
45165         (test_u16_strconv_to_enc_LDADD): Likewise.
45166         * modules/uniconv/u32-conv-from-enc-tests
45167         (test_u32_conv_from_enc_LDADD): Likewise.
45168         * modules/uniconv/u32-conv-to-enc-tests
45169         (test_u32_conv_to_enc_LDADD): Likewise.
45170         * modules/uniconv/u32-strconv-from-enc-tests
45171         (test_u32_strconv_from_enc_LDADD): Likewise.
45172         * modules/uniconv/u32-strconv-to-enc-tests
45173         (test_u32_strconv_to_enc_LDADD): Likewise.
45174         * modules/uniconv/u8-conv-from-enc-tests
45175         (test_u8_conv_from_enc_LDADD): Likewise.
45176         * modules/uniconv/u8-conv-to-enc-tests
45177         (test_u8_conv_to_enc_LDADD): Likewise.
45178         * modules/uniconv/u8-strconv-from-enc-tests
45179         (test_u8_strconv_from_enc_LDADD): Likewise.
45180         * modules/uniconv/u8-strconv-to-enc-tests
45181         (test_u8_strconv_to_enc_LDADD): Likewise.
45182
45183 2007-10-22  Bruno Haible  <bruno@clisp.org>
45184
45185         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
45186         size.
45187
45188 2007-10-22  Eric Blake  <ebb9@byu.net>
45189
45190         Tweak x*printf documentation.
45191         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
45192         variable name and comments.
45193         Suggested by Bruno Haible.
45194
45195 2007-10-22  Bruno Haible  <bruno@clisp.org>
45196
45197         * lib/acl.c (copy_acl): Fix file name in comment.
45198
45199 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45200
45201         Fix Tru64 problem with stdbool.h.
45202         * lib/stdbool.in.h (false, true):
45203         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
45204         Don't declare as an enum in this situation; it runs afoul of Tru64.
45205         Problem reported by Steven M. Schweda in
45206         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
45207
45208 2007-10-22  Eric Blake  <ebb9@byu.net>
45209
45210         Also wrap vf?printf.
45211         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
45212         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
45213         (xvprintf, xvfprintf): New functions.
45214
45215 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45216
45217         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
45218         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
45219
45220         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
45221         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
45222
45223 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45224
45225         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
45226         by Bruno Haible.
45227
45228 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45229
45230         * lib/getloadavg.c
45231         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
45232         Undef `sys' after including sys/table.h, for Tru64 4.0D.
45233
45234         * tests/test-i-ring.c: Work for C89.
45235
45236 2007-10-22  Bruno Haible  <bruno@clisp.org>
45237
45238         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
45239         -1u, in preprocessor expression, so that we don't test for the bug
45240         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
45241         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
45242
45243 2007-10-22  Eric Blake  <ebb9@byu.net>
45244
45245         * tests/test-yesno.sh: Silence stderr during test.
45246
45247 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45248
45249         * modules/crypto/gc-camellia: New file.
45250
45251         * m4/gc-camellia.m4: New file.
45252
45253         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
45254
45255         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
45256
45257 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45258
45259         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
45260         --help to stdout.  Reported by sms@antinode.org (Steven
45261         M. Schweda).
45262
45263 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45264
45265         * users.txt: Fix link to libksba.
45266
45267 2007-10-21  Ben Pfaff  <blp@gnu.org>
45268
45269         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
45270         round.c roundf implementation that depends on floorf and ceilf to
45271         be tested unconditionally.
45272
45273 2007-10-21  Ben Pfaff  <blp@gnu.org>
45274
45275         * m4/check-libm-func.m4: Removed.
45276         * m4/check-math-lib.m4: New file.
45277         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
45278         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
45279         definition and lack of AC_LIBOBJ([roundf]).
45280         * m4/roundl.m4: Ditto, and similarly for roundl.
45281         * modules/round: Reference new m4 file.
45282         * modules/roundf: Ditto.
45283         * modules/roundl: Ditto.
45284         * tests/test-round2.c (main): Use ROUND instead of round.
45285         Bug report from Bruno Haible.
45286
45287 2007-10-21  Bruno Haible  <bruno@clisp.org>
45288
45289         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
45290         context.
45291
45292 2007-10-21  Bruno Haible  <bruno@clisp.org>
45293
45294         * tests/test-wcwidth.c (main): Allow negative result for some control
45295         characters.
45296
45297         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
45298         Needed on OSF/1 5.1.
45299
45300 2007-10-21  Bruno Haible  <bruno@clisp.org>
45301
45302         * tests/test-floorf1.c: Include isnanf.h.
45303         (main): Use isnanf() instead of isnan().
45304         * tests/test-ceilf1.c: Include isnanf.h.
45305         (main): Use isnanf() instead of isnan().
45306         * tests/test-truncf1.c: Include isnanf.h.
45307         (main): Use isnanf() instead of isnan().
45308         * tests/test-roundf1.c: Include isnanf.h.
45309         (main): Use isnanf() instead of isnan().
45310
45311 2007-10-21  Eric Blake  <ebb9@byu.net>
45312
45313         * users.txt: Update URL for m4.
45314
45315 2007-10-21  Bruno Haible  <bruno@clisp.org>
45316
45317         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
45318
45319 2007-10-21  Bruno Haible  <bruno@clisp.org>
45320
45321         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
45322         Git's management files if the CVS files are not present.
45323
45324 2007-10-20  Bruno Haible  <bruno@clisp.org>
45325
45326         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
45327         gcc-3.4.x.
45328
45329 2007-10-20  Ben Pfaff  <blp@gnu.org>
45330
45331         * lib/math.in.h: Declare round, roundf, roundl if we are providing
45332         implementations.
45333         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
45334         * lib/round.c: New file.
45335         * lib/roundf.c: New file.
45336         * lib/roundl.c: New file.
45337         * m4/round.m4: New file.
45338         * m4/roundf.m4: New file.
45339         * m4/roundl.m4: New file.
45340         * m4/check-libm-func-m4: New file.
45341         * modules/math: Replace round, roundf, roundl related @VARS@ in
45342         math.in.h.
45343         * modules/round: New file.
45344         * modules/round-tests: New file.
45345         * modules/roundf: New file.
45346         * modules/roundf-tests: New file.
45347         * modules/roundl: New file.
45348         * modules/roundl-tests: New file.
45349         * tests/test-round1.c: New file.
45350         * tests/test-round2.c: New file.
45351         * tests/test-roundf1.c: New file.
45352         * tests/test-roundf2.c: New file.
45353         * tests/test-roundl.c: New file.
45354         * doc/functions/round.texi: Mention round module.
45355         * doc/functions/roundf.texi: Mention roundf module.
45356         * doc/functions/roundl.texi: Mention roundl module.
45357         * MODULES.html.sh: Mention new modules.
45358         Thanks to Bruno Haible for suggestions.
45359
45360 2007-10-20  Jim Meyering  <meyering@redhat.com>
45361
45362         * lib/xprintf.c: Include <config.h> unconditionally.
45363
45364         Change xprintf's license to GPL.
45365         * modules/xprintf (License): s/LGPL/GPL/, since this module
45366         depends on modules (exit and exitfail) which are GPL.
45367         Suggestion from Bruno Haible.
45368
45369         xprintf fixes.
45370         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
45371         Use a clearer diagnostic.
45372         Patch from Bruno Haible.
45373
45374 2007-10-20  Bruno Haible  <bruno@clisp.org>
45375
45376         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
45377         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
45378         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45379
45380 2007-10-20  Bruno Haible  <bruno@clisp.org>
45381
45382         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
45383         precision in the comparison result > x - 1 or similar.
45384         * tests/test-ceilf2.c (correct_result_p): Likewise.
45385         * tests/test-truncf2.c (correct_result_p): Likewise.
45386         * tests/test-trunc2.c (correct_result_p): Likewise.
45387         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45388
45389 2007-10-20  Bruno Haible  <bruno@clisp.org>
45390
45391         * modules/ceil: New file.
45392         * m4/ceil.m4: New file.
45393         * doc/functions/ceil.texi: Mention the 'ceil' module.
45394
45395 2007-10-20  Bruno Haible  <bruno@clisp.org>
45396
45397         * modules/floor: New file.
45398         * m4/floor.m4: New file.
45399         * doc/functions/floor.texi: Mention the 'floor' module.
45400
45401 2007-10-20  Bruno Haible  <bruno@clisp.org>
45402
45403         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
45404         of %a.
45405         * modules/floorf-tests (Depends-on): Likewise.
45406         * modules/truncf-tests (Depends-on): Likewise.
45407         * modules/trunc-tests (Depends-on): Likewise.
45408         Reported by Ben Pfaff.
45409
45410 2007-10-19  Jim Meyering  <meyering@redhat.com>
45411
45412         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
45413         Don't bother testing specific errno values.  Just test ferror.
45414
45415         New module: xprintf
45416         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
45417
45418 2007-10-19  Bruno Haible  <bruno@clisp.org>
45419
45420         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
45421         syntax.
45422         * modules/javaexec (Makefile.am): Likewise.
45423         * modules/relocatable-prog (Makefile.am): Likewise.
45424         Suggested by Jim Meyering.
45425
45426 2007-10-18  Bruno Haible  <bruno@clisp.org>
45427
45428         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
45429         Reported by Jim Meyering.
45430
45431 2007-10-18  Eric Blake  <ebb9@byu.net>
45432
45433         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
45434
45435 2007-10-18  Bruno Haible  <bruno@clisp.org>
45436
45437         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
45438         the format string into writable memory. Needed in Fortify conditions.
45439
45440 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
45441             Bruno Haible  <bruno@clisp.org>
45442
45443         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
45444         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
45445         * modules/trim (Depends-on): Add mbchar.
45446         (configure.ac): Add gl_FUNC_MBRTOWC.
45447         (Makefile.am): Augment lib_SOURCES.
45448
45449 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45450
45451         Modify glob.c to use fstatat and dirfd, to simplify it.
45452         Suggested by Eric Blake.
45453         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
45454         Don't include <stdbool.h>; not used.
45455         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
45456         (link_exists_p): Simplify implementation, since we can now assume
45457         dirfd and fstatat.
45458         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
45459
45460 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45461
45462         * gnulib-tool (func_get_dependencies): Fix sed script to
45463         match only tests.
45464
45465 2007-10-17  Bruno Haible  <bruno@clisp.org>
45466
45467         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
45468         allow locale names without encoding suffix.
45469         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45470         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45471
45472 2007-10-16  Bruno Haible  <bruno@clisp.org>
45473
45474         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
45475         * lib/getgroups.c (getgroups): Likewise.
45476         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
45477
45478 2007-10-16  Bruno Haible  <bruno@clisp.org>
45479
45480         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
45481         * modules/malloc-posix (License): Likewise.
45482         * modules/realloc-posix (License): Likewise.
45483         * modules/calloc-posix (License): Likewise.
45484         * modules/intprops (License): Change from GPL to LGPL, with
45485         Paul Eggert's approval.
45486
45487 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45488
45489         Merge glibc changes into lib/glob.c.
45490
45491         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
45492         2007-10-15 04:59:03 UTC.  Here are the changes:
45493
45494         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
45495
45496         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
45497
45498         * lib/glob.c: Add some branch prediction throughout.
45499
45500         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
45501
45502         [BZ #5103]
45503         * lib/glob.c (glob): Recognize patterns starting \/.
45504
45505         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
45506
45507         [BZ #3996]
45508         * lib/glob.c (attribute_hidden): Define if not defined.
45509         (glob): Unescape dirname, filename or username when needed and not
45510         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
45511         is NULL.  Handle unescaped [ in pattern without closing ].
45512         Don't pass GLOB_CHECK down to recursive glob for directories.
45513         (__glob_pattern_type): New function.
45514         (__glob_pattern_p): Implement using __glob_pattern_type.
45515         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
45516         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
45517         Remove unreachable code.
45518
45519         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
45520
45521         * lib/glob.c (glob_in_dir): Add some comments and asserts to
45522         explain why there are no leaks.
45523
45524         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
45525
45526         [BZ #3253]
45527         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
45528         time, rather allocate increasingly bigger arrays of pointers, if
45529         possible with alloca, if too large with malloc.
45530
45531 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45532
45533         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
45534         Problem reported by H.Merijn Brand in
45535         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
45536         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
45537         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45538
45539 2007-10-15  Bruno Haible  <bruno@clisp.org>
45540
45541         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
45542         with explicit rpl_ prefix.
45543         * lib/fopen.c (fopen): Likewise.
45544         * lib/freopen.c (freopen): Likewise.
45545         * lib/iconv.c (iconv): Likewise.
45546         * lib/iconv_close.c (iconv_close): Likewise.
45547
45548 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45549
45550         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
45551
45552 2007-10-15  Bruno Haible  <bruno@clisp.org>
45553
45554         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
45555         <stddef.h> instead of <stdlib.h> since we only need NULL.
45556         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45557
45558 2007-10-15  Bruno Haible  <bruno@clisp.org>
45559
45560         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
45561         Replace paragraph talking about LIBOBJS.
45562         Reported by Colin Watson <cjwatson@debian.org>.
45563
45564 2007-10-15  Bruno Haible  <bruno@clisp.org>
45565
45566         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
45567         <stdlib.h> before using NULL.
45568
45569 2007-10-15  Simon Josefsson  <simon@josefsson.org>
45570
45571         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
45572         Reported by Albert Chin <china@thewrittenword.com>.
45573
45574 2007-10-14  Bruno Haible  <bruno@clisp.org>
45575
45576         * modules/iconv_open-utf-tests: New file.
45577         * tests/test-iconv-utf.c: New file.
45578
45579         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
45580         * modules/iconv_open-utf: New file.
45581         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
45582         (iconv, iconv_close): New declarations.
45583         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
45584         be defined.
45585         (iconv_open): Add special handling of conversion between UTF-8 and
45586         UTF-{16,32}{BE,LE}.
45587         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
45588         * lib/iconv_close.c: New file.
45589         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
45590         gl_FUNC_ICONV_OPEN.
45591         (gl_FUNC_ICONV_OPEN): Use it.
45592         (gl_FUNC_ICONV_OPEN_UTF): New macro.
45593         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
45594         and REPLACE_ICONV_UTF.
45595         * modules/iconv_open (Depends-on): Add c-strcase.
45596         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
45597         ICONV_CONST.
45598         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
45599
45600 2007-10-13  Albert Chin  <china@thewrittenword.com>
45601             Bruno Haible  <bruno@clisp.org>
45602
45603         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
45604         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
45605
45606 2007-10-13  Bruno Haible  <bruno@clisp.org>
45607
45608         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
45609         defined, use the ISO C99 inline semantics.
45610         * lib/argp.h (ARGP_EI): Likewise.
45611
45612 2007-10-13  Bruno Haible  <bruno@clisp.org>
45613
45614         Handle 'inline' change in gcc 4.3.0.
45615         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
45616         argp_fmtstream_write, argp_fmtstream_set_lmargin,
45617         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
45618         argp_fmtstream_point): Disable 'extern' declaration if the function
45619         definition is going to be provided inline.
45620         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
45621         semantics, not the ISO C99 inline semantics.
45622         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
45623         'extern' declaration if the function definition is going to be provided
45624         inline.
45625         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
45626         the GNU C inline semantics, not the ISO C99 inline semantics. With
45627         GCC 4.2, avoid a warning.
45628
45629 2007-10-13  Bruno Haible  <bruno@clisp.org>
45630
45631         * lib/freading.h (freading): Enable the use of __freading for
45632         glibc >= 2.7.
45633         * lib/freading.c (freading): Likewise.
45634
45635 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45636
45637         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
45638         "warning: C99 inline functions are not supported; using GNU89".
45639
45640 2007-10-12  Bruno Haible  <bruno@clisp.org>
45641
45642         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
45643         of 2.
45644         * tests/test-ceilf2.c: New file.
45645         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
45646
45647         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
45648         * modules/ceilf-tests: Update.
45649
45650 2007-10-12  Bruno Haible  <bruno@clisp.org>
45651
45652         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
45653         of 2.
45654         * tests/test-floorf2.c: New file.
45655         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
45656
45657         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
45658         * modules/floorf-tests: Update.
45659
45660 2007-10-12  Bruno Haible  <bruno@clisp.org>
45661
45662         * tests/test-trunc2.c: New file.
45663         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
45664
45665         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
45666         * modules/trunc-tests: Update.
45667
45668 2007-10-12  Bruno Haible  <bruno@clisp.org>
45669
45670         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
45671         of 2.
45672         * tests/test-truncf2.c: New file.
45673         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
45674
45675         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
45676         * modules/truncf-tests: Update.
45677
45678 2007-10-11  Eric Blake  <ebb9@byu.net>
45679
45680         Don't claim strerror is broken on Interix.
45681         * doc/functions/strerror.texi (strerror): Known broken systems are
45682         now Solaris 8, and not Interix.
45683         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
45684         Interix on cross-compile.
45685         Reported by Martin Koeppe in
45686         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
45687
45688 2007-10-11  Bruno Haible  <bruno@clisp.org>
45689
45690         * modules/i-ring-tests: New file.
45691         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
45692         instead of assert.
45693
45694 2007-10-11  Bruno Haible  <bruno@clisp.org>
45695
45696         * modules/filenamecat-tests: New file.
45697         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
45698         * lib/filenamecat.c: Remove test code.
45699
45700 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45701
45702         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
45703
45704         * lib/strerror.c: Include <string.h> always, to test interface,
45705         and to remove the need for the dummy.
45706         Include intprops.h to compute width instead of doing it ourselves
45707         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
45708         (strerror): Define it to return NULL if there's no system strerror.
45709         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
45710         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
45711         ancient pre-strerror Unix systems well any more.  Saying "unknown
45712         system error" is enough.
45713         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
45714         simpler strerror.c implementation.
45715         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
45716         Simplify the tests to reflect the simpler strerror implementation.
45717         * modules/strerror (Depends-on): Add intprops.
45718
45719 2007-10-09  Eric Blake  <ebb9@byu.net>
45720
45721         Silence test-fpending.
45722         * modules/fpending-tests (Files): Add wrapper script.
45723         * tests/test-fpending.sh: New file.
45724
45725 2007-10-09  Bruno Haible  <bruno@clisp.org>
45726
45727         * MODULES.html.sh (func_module): Don't create a hyperlink for
45728         function names like 'printf_frexp'.
45729         (Misc): Add crc, memxor.
45730         (Characteristics of floating types): New section.
45731         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
45732         isnanf-nolibm, signbit, trunc, truncf, truncl.
45733         (Enhancements for ISO C 99 functions): New subsection Input/output.
45734         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
45735         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
45736         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
45737         (Compatibility checks for POSIX:2001 functions): Add clock-time.
45738         (Enhancements for POSIX:2001 functions): Add chdir-long.
45739         (File system functions): Add areadlink, chdir-safer, read-file.
45740         Remove cycle-check.
45741         (File system as inode set): New section.
45742         (Date and time): Add gethrxtime.
45743         (Multithreading): Add openmp.
45744         (Internationalization functions): Add localename.
45745         (Unicode string functions): Add unistr/u*-mbsnlen.
45746         (Support for maintaining and releasing projects): Add git-version-gen.
45747         (Lone files): Remove directories.
45748
45749 2007-10-08  Ben Pfaff  <blp@gnu.org>
45750
45751         * lib/xmalloca.h: Fix typo in comment.
45752
45753 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45754
45755         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
45756         when avoiding problems with integer overflow.  Use a portable test
45757         instead.
45758
45759 2007-10-08  Simon Josefsson  <simon@josefsson.org>
45760
45761         * modules/dummy (License): Change to LGPLv2+.
45762         * modules/float (License): Likewise
45763         * modules/realloc (License): Likewise
45764         * modules/stdlib (License): Likewise
45765
45766 2007-10-07  Bruno Haible  <bruno@clisp.org>
45767
45768         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
45769         * floor.c (TWO_MANT_DIG): Likewise.
45770         * ceil.c (TWO_MANT_DIG): Likewise.
45771         Reported by Ben Pfaff.
45772
45773 2007-10-07  Bruno Haible  <bruno@clisp.org>
45774
45775         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
45776         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
45777         * lib/frexp.c (FUNC): Likewise.
45778         * lib/printf-frexp.h (printf_frexp): Likewise.
45779         * lib/printf-frexpl.h (printf_frexpl): Likewise.
45780         * lib/printf-frexp.c (FUNC): Likewise.
45781         Suggested by Jim Meyering.
45782
45783 2007-10-07  Jim Meyering  <meyering@redhat.com>
45784
45785         Make xnanosleep's integer overflow test more robust.
45786         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
45787         so that gcc-4.3.0 doesn't optimize away this test for overflow.
45788
45789 2007-10-07  Bruno Haible  <bruno@clisp.org>
45790
45791         * NEWS: Mention the license change.
45792
45793         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
45794         abbreviations in the modules files.
45795
45796         Change copyright notice from GPLv2+ to GPLv3+.
45797         * README: Change copyright notice.
45798         * MODULES.html.sh: Likewise.
45799         * build-aux/bootstrap.conf: Likewise.
45800         * build-aux/config.libpath: Likewise.
45801         * build-aux/csharpcomp.sh.in: Likewise.
45802         * build-aux/csharpexec.sh.in: Likewise.
45803         * build-aux/install-reloc: Likewise.
45804         * build-aux/javacomp.sh.in: Likewise.
45805         * build-aux/javaexec.sh.in: Likewise.
45806         * build-aux/ldd.sh.in: Likewise.
45807         * build-aux/reloc-ldflags: Likewise.
45808         * build-aux/relocatable.sh.in: Likewise.
45809         * build-aux/x-to-1.in: Likewise.
45810         * check-module: Likewise.
45811         * config/srclistvars.sh: Likewise.
45812         * gnulib-tool: Likewise.
45813         * lib/acl-internal.h: Likewise.
45814         * lib/acl.c: Likewise.
45815         * lib/acl.h: Likewise.
45816         * lib/acl_entries.c: Likewise.
45817         * lib/areadlink-with-size.c: Likewise.
45818         * lib/areadlink.c: Likewise.
45819         * lib/areadlink.h: Likewise.
45820         * lib/argmatch.c: Likewise.
45821         * lib/argmatch.h: Likewise.
45822         * lib/argp-ba.c: Likewise.
45823         * lib/argp-eexst.c: Likewise.
45824         * lib/argp-fmtstream.c: Likewise.
45825         * lib/argp-fmtstream.h: Likewise.
45826         * lib/argp-fs-xinl.c: Likewise.
45827         * lib/argp-help.c: Likewise.
45828         * lib/argp-namefrob.h: Likewise.
45829         * lib/argp-parse.c: Likewise.
45830         * lib/argp-pin.c: Likewise.
45831         * lib/argp-pv.c: Likewise.
45832         * lib/argp-pvh.c: Likewise.
45833         * lib/argp-xinl.c: Likewise.
45834         * lib/argp.h: Likewise.
45835         * lib/at-func.c: Likewise.
45836         * lib/atanl.c: Likewise.
45837         * lib/backupfile.c: Likewise.
45838         * lib/backupfile.h: Likewise.
45839         * lib/basename.c: Likewise.
45840         * lib/binary-io.h: Likewise.
45841         * lib/byteswap.in.h: Likewise.
45842         * lib/c-stack.c: Likewise.
45843         * lib/c-stack.h: Likewise.
45844         * lib/c-strcasestr.c: Likewise.
45845         * lib/c-strcasestr.h: Likewise.
45846         * lib/c-strstr.c: Likewise.
45847         * lib/c-strstr.h: Likewise.
45848         * lib/c-strtod.c: Likewise.
45849         * lib/calloc.c: Likewise.
45850         * lib/canon-host.c: Likewise.
45851         * lib/canon-host.h: Likewise.
45852         * lib/canonicalize-lgpl.c: Likewise.
45853         * lib/canonicalize.c: Likewise.
45854         * lib/canonicalize.h: Likewise.
45855         * lib/ceil.c: Likewise.
45856         * lib/ceilf.c: Likewise.
45857         * lib/ceill.c: Likewise.
45858         * lib/chdir-long.c: Likewise.
45859         * lib/chdir-long.h: Likewise.
45860         * lib/chdir-safer.c: Likewise.
45861         * lib/chdir-safer.h: Likewise.
45862         * lib/chown.c: Likewise.
45863         * lib/classpath.c: Likewise.
45864         * lib/classpath.h: Likewise.
45865         * lib/clean-temp.c: Likewise.
45866         * lib/clean-temp.h: Likewise.
45867         * lib/cloexec.c: Likewise.
45868         * lib/close-stream.c: Likewise.
45869         * lib/closein.c: Likewise.
45870         * lib/closein.h: Likewise.
45871         * lib/closeout.c: Likewise.
45872         * lib/closeout.h: Likewise.
45873         * lib/concat-filename.c: Likewise.
45874         * lib/copy-file.c: Likewise.
45875         * lib/copy-file.h: Likewise.
45876         * lib/count-one-bits.h: Likewise.
45877         * lib/crc.c: Likewise.
45878         * lib/crc.h: Likewise.
45879         * lib/creat-safer.c: Likewise.
45880         * lib/csharpcomp.c: Likewise.
45881         * lib/csharpcomp.h: Likewise.
45882         * lib/csharpexec.c: Likewise.
45883         * lib/csharpexec.h: Likewise.
45884         * lib/cycle-check.c: Likewise.
45885         * lib/cycle-check.h: Likewise.
45886         * lib/diacrit.c: Likewise.
45887         * lib/diacrit.h: Likewise.
45888         * lib/diffseq.h: Likewise.
45889         * lib/dirchownmod.c: Likewise.
45890         * lib/dirent.in.h: Likewise.
45891         * lib/dirfd.c: Likewise.
45892         * lib/dirfd.h: Likewise.
45893         * lib/dirname.c: Likewise.
45894         * lib/dirname.h: Likewise.
45895         * lib/dummy.c: Likewise.
45896         * lib/dup-safer.c: Likewise.
45897         * lib/dup2.c: Likewise.
45898         * lib/eealloc.h: Likewise.
45899         * lib/error.c: Likewise.
45900         * lib/error.h: Likewise.
45901         * lib/euidaccess.c: Likewise.
45902         * lib/exclude.c: Likewise.
45903         * lib/exclude.h: Likewise.
45904         * lib/execute.c: Likewise.
45905         * lib/execute.h: Likewise.
45906         * lib/exitfail.c: Likewise.
45907         * lib/exitfail.h: Likewise.
45908         * lib/expl.c: Likewise.
45909         * lib/fatal-signal.c: Likewise.
45910         * lib/fatal-signal.h: Likewise.
45911         * lib/fbufmode.c: Likewise.
45912         * lib/fbufmode.h: Likewise.
45913         * lib/fchdir.c: Likewise.
45914         * lib/fchmodat.c: Likewise.
45915         * lib/fchownat.c: Likewise.
45916         * lib/fcntl--.h: Likewise.
45917         * lib/fcntl-safer.h: Likewise.
45918         * lib/fcntl.in.h: Likewise.
45919         * lib/fd-safer.c: Likewise.
45920         * lib/fflush.c: Likewise.
45921         * lib/file-has-acl.c: Likewise.
45922         * lib/file-set.c: Likewise.
45923         * lib/file-type.c: Likewise.
45924         * lib/file-type.h: Likewise.
45925         * lib/fileblocks.c: Likewise.
45926         * lib/filemode.c: Likewise.
45927         * lib/filemode.h: Likewise.
45928         * lib/filename.h: Likewise.
45929         * lib/filenamecat.c: Likewise.
45930         * lib/filenamecat.h: Likewise.
45931         * lib/findprog.c: Likewise.
45932         * lib/findprog.h: Likewise.
45933         * lib/float.in.h: Likewise.
45934         * lib/floor.c: Likewise.
45935         * lib/floorf.c: Likewise.
45936         * lib/floorl.c: Likewise.
45937         * lib/fopen-safer.c: Likewise.
45938         * lib/fopen.c: Likewise.
45939         * lib/fpending.c: Likewise.
45940         * lib/fpending.h: Likewise.
45941         * lib/fprintf.c: Likewise.
45942         * lib/fprintftime.h: Likewise.
45943         * lib/fpucw.h: Likewise.
45944         * lib/fpurge.c: Likewise.
45945         * lib/fpurge.h: Likewise.
45946         * lib/freadable.c: Likewise.
45947         * lib/freadable.h: Likewise.
45948         * lib/freadahead.c: Likewise.
45949         * lib/freadahead.h: Likewise.
45950         * lib/freading.c: Likewise.
45951         * lib/freading.h: Likewise.
45952         * lib/free.c: Likewise.
45953         * lib/freopen.c: Likewise.
45954         * lib/frexp.c: Likewise.
45955         * lib/frexpl.c: Likewise.
45956         * lib/fseek.c: Likewise.
45957         * lib/fseterr.c: Likewise.
45958         * lib/fseterr.h: Likewise.
45959         * lib/fstatat.c: Likewise.
45960         * lib/fstrcmp.c: Likewise.
45961         * lib/fstrcmp.h: Likewise.
45962         * lib/fsusage.c: Likewise.
45963         * lib/fsusage.h: Likewise.
45964         * lib/ftell.c: Likewise.
45965         * lib/ftello.c: Likewise.
45966         * lib/fts-cycle.c: Likewise.
45967         * lib/fts.c: Likewise.
45968         * lib/fts_.h: Likewise.
45969         * lib/full-read.c: Likewise.
45970         * lib/full-read.h: Likewise.
45971         * lib/full-write.c: Likewise.
45972         * lib/full-write.h: Likewise.
45973         * lib/fwritable.c: Likewise.
45974         * lib/fwritable.h: Likewise.
45975         * lib/fwriteerror.c: Likewise.
45976         * lib/fwriteerror.h: Likewise.
45977         * lib/fwriting.c: Likewise.
45978         * lib/fwriting.h: Likewise.
45979         * lib/gcd.c: Likewise.
45980         * lib/gcd.h: Likewise.
45981         * lib/getcwd.c: Likewise.
45982         * lib/getdate.h: Likewise.
45983         * lib/getdate.y: Likewise.
45984         * lib/getdomainname.c: Likewise.
45985         * lib/getdomainname.h: Likewise.
45986         * lib/getgroups.c: Likewise.
45987         * lib/gethostname.c: Likewise.
45988         * lib/gethrxtime.c: Likewise.
45989         * lib/gethrxtime.h: Likewise.
45990         * lib/getloadavg.c: Likewise.
45991         * lib/getndelim2.c: Likewise.
45992         * lib/getndelim2.h: Likewise.
45993         * lib/getnline.c: Likewise.
45994         * lib/getnline.h: Likewise.
45995         * lib/getopt.c: Likewise.
45996         * lib/getopt.in.h: Likewise.
45997         * lib/getopt1.c: Likewise.
45998         * lib/getopt_int.h: Likewise.
45999         * lib/getpagesize.h: Likewise.
46000         * lib/getsubopt.c: Likewise.
46001         * lib/gettime.c: Likewise.
46002         * lib/getugroups.c: Likewise.
46003         * lib/getugroups.h: Likewise.
46004         * lib/getusershell.c: Likewise.
46005         * lib/gl_anyavltree_list1.h: Likewise.
46006         * lib/gl_anyavltree_list2.h: Likewise.
46007         * lib/gl_anyhash_list1.h: Likewise.
46008         * lib/gl_anyhash_list2.h: Likewise.
46009         * lib/gl_anylinked_list1.h: Likewise.
46010         * lib/gl_anylinked_list2.h: Likewise.
46011         * lib/gl_anyrbtree_list1.h: Likewise.
46012         * lib/gl_anyrbtree_list2.h: Likewise.
46013         * lib/gl_anytree_list1.h: Likewise.
46014         * lib/gl_anytree_list2.h: Likewise.
46015         * lib/gl_anytree_oset.h: Likewise.
46016         * lib/gl_anytreehash_list1.h: Likewise.
46017         * lib/gl_anytreehash_list2.h: Likewise.
46018         * lib/gl_array_list.c: Likewise.
46019         * lib/gl_array_list.h: Likewise.
46020         * lib/gl_array_oset.c: Likewise.
46021         * lib/gl_array_oset.h: Likewise.
46022         * lib/gl_avltree_list.c: Likewise.
46023         * lib/gl_avltree_list.h: Likewise.
46024         * lib/gl_avltree_oset.c: Likewise.
46025         * lib/gl_avltree_oset.h: Likewise.
46026         * lib/gl_avltreehash_list.c: Likewise.
46027         * lib/gl_avltreehash_list.h: Likewise.
46028         * lib/gl_carray_list.c: Likewise.
46029         * lib/gl_carray_list.h: Likewise.
46030         * lib/gl_linked_list.c: Likewise.
46031         * lib/gl_linked_list.h: Likewise.
46032         * lib/gl_linkedhash_list.c: Likewise.
46033         * lib/gl_linkedhash_list.h: Likewise.
46034         * lib/gl_list.c: Likewise.
46035         * lib/gl_list.h: Likewise.
46036         * lib/gl_oset.c: Likewise.
46037         * lib/gl_oset.h: Likewise.
46038         * lib/gl_rbtree_list.c: Likewise.
46039         * lib/gl_rbtree_list.h: Likewise.
46040         * lib/gl_rbtree_oset.c: Likewise.
46041         * lib/gl_rbtree_oset.h: Likewise.
46042         * lib/gl_rbtreehash_list.c: Likewise.
46043         * lib/gl_rbtreehash_list.h: Likewise.
46044         * lib/gl_sublist.c: Likewise.
46045         * lib/gl_sublist.h: Likewise.
46046         * lib/group-member.c: Likewise.
46047         * lib/group-member.h: Likewise.
46048         * lib/hard-locale.c: Likewise.
46049         * lib/hard-locale.h: Likewise.
46050         * lib/hash-pjw.c: Likewise.
46051         * lib/hash-pjw.h: Likewise.
46052         * lib/hash-triple.c: Likewise.
46053         * lib/hash.c: Likewise.
46054         * lib/hash.h: Likewise.
46055         * lib/human.c: Likewise.
46056         * lib/human.h: Likewise.
46057         * lib/i-ring.c: Likewise.
46058         * lib/i-ring.h: Likewise.
46059         * lib/idcache.c: Likewise.
46060         * lib/imaxabs.c: Likewise.
46061         * lib/imaxdiv.c: Likewise.
46062         * lib/inet_pton.c: Likewise.
46063         * lib/inet_pton.h: Likewise.
46064         * lib/intprops.h: Likewise.
46065         * lib/inttostr.c: Likewise.
46066         * lib/inttostr.h: Likewise.
46067         * lib/inttypes.in.h: Likewise.
46068         * lib/isapipe.c: Likewise.
46069         * lib/isdir.c: Likewise.
46070         * lib/isnan.c: Likewise.
46071         * lib/isnan.h: Likewise.
46072         * lib/isnanf.c: Likewise.
46073         * lib/isnanf.h: Likewise.
46074         * lib/isnanl-nolibm.h: Likewise.
46075         * lib/isnanl.c: Likewise.
46076         * lib/isnanl.h: Likewise.
46077         * lib/javacomp.c: Likewise.
46078         * lib/javacomp.h: Likewise.
46079         * lib/javaexec.c: Likewise.
46080         * lib/javaexec.h: Likewise.
46081         * lib/javaversion.c: Likewise.
46082         * lib/javaversion.h: Likewise.
46083         * lib/javaversion.java: Likewise.
46084         * lib/lbrkprop.h: Likewise.
46085         * lib/lchmod.h: Likewise.
46086         * lib/lchown.c: Likewise.
46087         * lib/ldexpl.c: Likewise.
46088         * lib/linebreak.c: Likewise.
46089         * lib/linebreak.h: Likewise.
46090         * lib/linebuffer.c: Likewise.
46091         * lib/linebuffer.h: Likewise.
46092         * lib/locale.in.h: Likewise.
46093         * lib/logl.c: Likewise.
46094         * lib/long-options.c: Likewise.
46095         * lib/long-options.h: Likewise.
46096         * lib/lstat.c: Likewise.
46097         * lib/lstat.h: Likewise.
46098         * lib/math.in.h: Likewise.
46099         * lib/mbchar.c: Likewise.
46100         * lib/mbchar.h: Likewise.
46101         * lib/mbfile.h: Likewise.
46102         * lib/mbiter.h: Likewise.
46103         * lib/mbscasecmp.c: Likewise.
46104         * lib/mbscasestr.c: Likewise.
46105         * lib/mbschr.c: Likewise.
46106         * lib/mbscspn.c: Likewise.
46107         * lib/mbslen.c: Likewise.
46108         * lib/mbsncasecmp.c: Likewise.
46109         * lib/mbsnlen.c: Likewise.
46110         * lib/mbspbrk.c: Likewise.
46111         * lib/mbspcasecmp.c: Likewise.
46112         * lib/mbsrchr.c: Likewise.
46113         * lib/mbssep.c: Likewise.
46114         * lib/mbsspn.c: Likewise.
46115         * lib/mbsstr.c: Likewise.
46116         * lib/mbstok_r.c: Likewise.
46117         * lib/mbswidth.c: Likewise.
46118         * lib/mbswidth.h: Likewise.
46119         * lib/mbuiter.h: Likewise.
46120         * lib/memcasecmp.c: Likewise.
46121         * lib/memcasecmp.h: Likewise.
46122         * lib/memchr.c: Likewise.
46123         * lib/memcmp.c: Likewise.
46124         * lib/memcoll.c: Likewise.
46125         * lib/memcoll.h: Likewise.
46126         * lib/memcpy.c: Likewise.
46127         * lib/memrchr.c: Likewise.
46128         * lib/mkancesdirs.c: Likewise.
46129         * lib/mkdir-p.c: Likewise.
46130         * lib/mkdir-p.h: Likewise.
46131         * lib/mkdir.c: Likewise.
46132         * lib/mkdirat.c: Likewise.
46133         * lib/mkdtemp.c: Likewise.
46134         * lib/mkstemp-safer.c: Likewise.
46135         * lib/mkstemp.c: Likewise.
46136         * lib/modechange.c: Likewise.
46137         * lib/modechange.h: Likewise.
46138         * lib/mountlist.c: Likewise.
46139         * lib/mountlist.h: Likewise.
46140         * lib/mpsort.c: Likewise.
46141         * lib/nanosleep.c: Likewise.
46142         * lib/obstack.c: Likewise.
46143         * lib/obstack.h: Likewise.
46144         * lib/open-safer.c: Likewise.
46145         * lib/open.c: Likewise.
46146         * lib/openat-die.c: Likewise.
46147         * lib/openat-priv.h: Likewise.
46148         * lib/openat-proc.c: Likewise.
46149         * lib/openat.c: Likewise.
46150         * lib/openat.h: Likewise.
46151         * lib/pagealign_alloc.c: Likewise.
46152         * lib/pagealign_alloc.h: Likewise.
46153         * lib/physmem.c: Likewise.
46154         * lib/physmem.h: Likewise.
46155         * lib/pipe-safer.c: Likewise.
46156         * lib/pipe.c: Likewise.
46157         * lib/pipe.h: Likewise.
46158         * lib/posixtm.c: Likewise.
46159         * lib/posixtm.h: Likewise.
46160         * lib/posixver.c: Likewise.
46161         * lib/printf-frexp.c: Likewise.
46162         * lib/printf-frexp.h: Likewise.
46163         * lib/printf-frexpl.c: Likewise.
46164         * lib/printf-frexpl.h: Likewise.
46165         * lib/printf.c: Likewise.
46166         * lib/progname.c: Likewise.
46167         * lib/progname.h: Likewise.
46168         * lib/progreloc.c: Likewise.
46169         * lib/putenv.c: Likewise.
46170         * lib/quote.c: Likewise.
46171         * lib/quote.h: Likewise.
46172         * lib/quotearg.c: Likewise.
46173         * lib/quotearg.h: Likewise.
46174         * lib/raise.c: Likewise.
46175         * lib/readline.c: Likewise.
46176         * lib/readline.h: Likewise.
46177         * lib/readlink.c: Likewise.
46178         * lib/readtokens.c: Likewise.
46179         * lib/readtokens.h: Likewise.
46180         * lib/readtokens0.c: Likewise.
46181         * lib/readtokens0.h: Likewise.
46182         * lib/readutmp.c: Likewise.
46183         * lib/readutmp.h: Likewise.
46184         * lib/realloc.c: Likewise.
46185         * lib/relocwrapper.c: Likewise.
46186         * lib/rename-dest-slash.c: Likewise.
46187         * lib/rename.c: Likewise.
46188         * lib/rmdir.c: Likewise.
46189         * lib/rpmatch.c: Likewise.
46190         * lib/safe-read.c: Likewise.
46191         * lib/safe-read.h: Likewise.
46192         * lib/safe-write.c: Likewise.
46193         * lib/safe-write.h: Likewise.
46194         * lib/same-inode.h: Likewise.
46195         * lib/same.c: Likewise.
46196         * lib/same.h: Likewise.
46197         * lib/save-cwd.c: Likewise.
46198         * lib/save-cwd.h: Likewise.
46199         * lib/savedir.c: Likewise.
46200         * lib/savedir.h: Likewise.
46201         * lib/savewd.c: Likewise.
46202         * lib/savewd.h: Likewise.
46203         * lib/search.in.h: Likewise.
46204         * lib/setenv.c: Likewise.
46205         * lib/setenv.h: Likewise.
46206         * lib/settime.c: Likewise.
46207         * lib/sh-quote.c: Likewise.
46208         * lib/sh-quote.h: Likewise.
46209         * lib/sig2str.c: Likewise.
46210         * lib/sig2str.h: Likewise.
46211         * lib/signal.in.h: Likewise.
46212         * lib/signbitd.c: Likewise.
46213         * lib/signbitf.c: Likewise.
46214         * lib/signbitl.c: Likewise.
46215         * lib/sigprocmask.c: Likewise.
46216         * lib/sincosl.c: Likewise.
46217         * lib/sleep.c: Likewise.
46218         * lib/sprintf.c: Likewise.
46219         * lib/sqrtl.c: Likewise.
46220         * lib/stat-time.h: Likewise.
46221         * lib/stdio--.h: Likewise.
46222         * lib/stdio-safer.h: Likewise.
46223         * lib/stdlib--.h: Likewise.
46224         * lib/stdlib-safer.h: Likewise.
46225         * lib/stdlib.in.h: Likewise.
46226         * lib/stpcpy.c: Likewise.
46227         * lib/stpncpy.c: Likewise.
46228         * lib/strchrnul.c: Likewise.
46229         * lib/strcspn.c: Likewise.
46230         * lib/strerror.c: Likewise.
46231         * lib/strftime.c: Likewise.
46232         * lib/strftime.h: Likewise.
46233         * lib/striconveh.c: Likewise.
46234         * lib/striconveh.h: Likewise.
46235         * lib/striconveha.c: Likewise.
46236         * lib/striconveha.h: Likewise.
46237         * lib/stripslash.c: Likewise.
46238         * lib/strnlen1.c: Likewise.
46239         * lib/strnlen1.h: Likewise.
46240         * lib/strtod.c: Likewise.
46241         * lib/strtoimax.c: Likewise.
46242         * lib/strtok_r.c: Likewise.
46243         * lib/strtol.c: Likewise.
46244         * lib/strtoll.c: Likewise.
46245         * lib/strtoul.c: Likewise.
46246         * lib/strtoull.c: Likewise.
46247         * lib/sysexits.in.h: Likewise.
46248         * lib/tempname.c: Likewise.
46249         * lib/tempname.h: Likewise.
46250         * lib/timespec.h: Likewise.
46251         * lib/tls.c: Likewise.
46252         * lib/tls.h: Likewise.
46253         * lib/tmpdir.c: Likewise.
46254         * lib/tmpdir.h: Likewise.
46255         * lib/tmpfile-safer.c: Likewise.
46256         * lib/tmpfile.c: Likewise.
46257         * lib/trigl.c: Likewise.
46258         * lib/trigl.h: Likewise.
46259         * lib/trim.c: Likewise.
46260         * lib/trim.h: Likewise.
46261         * lib/trunc.c: Likewise.
46262         * lib/truncf.c: Likewise.
46263         * lib/truncl.c: Likewise.
46264         * lib/tsearch.c: Likewise.
46265         * lib/unicodeio.c: Likewise.
46266         * lib/unicodeio.h: Likewise.
46267         * lib/unistd--.h: Likewise.
46268         * lib/unistd-safer.h: Likewise.
46269         * lib/unistdio/ulc-fprintf.c: Likewise.
46270         * lib/unistdio/ulc-vfprintf.c: Likewise.
46271         * lib/unlinkdir.c: Likewise.
46272         * lib/unlinkdir.h: Likewise.
46273         * lib/unlocked-io.h: Likewise.
46274         * lib/unsetenv.c: Likewise.
46275         * lib/userspec.c: Likewise.
46276         * lib/utime.c: Likewise.
46277         * lib/utimecmp.c: Likewise.
46278         * lib/utimecmp.h: Likewise.
46279         * lib/utimens.c: Likewise.
46280         * lib/verify.h: Likewise.
46281         * lib/verror.c: Likewise.
46282         * lib/verror.h: Likewise.
46283         * lib/version-etc-fsf.c: Likewise.
46284         * lib/version-etc.c: Likewise.
46285         * lib/version-etc.h: Likewise.
46286         * lib/vfprintf.c: Likewise.
46287         * lib/vprintf.c: Likewise.
46288         * lib/vsprintf.c: Likewise.
46289         * lib/w32spawn.h: Likewise.
46290         * lib/wait-process.c: Likewise.
46291         * lib/wait-process.h: Likewise.
46292         * lib/wcwidth.c: Likewise.
46293         * lib/write-any-file.c: Likewise.
46294         * lib/xalloc-die.c: Likewise.
46295         * lib/xalloc.h: Likewise.
46296         * lib/xasprintf.c: Likewise.
46297         * lib/xgetcwd.c: Likewise.
46298         * lib/xgetcwd.h: Likewise.
46299         * lib/xgetdomainname.c: Likewise.
46300         * lib/xgetdomainname.h: Likewise.
46301         * lib/xgethostname.c: Likewise.
46302         * lib/xmalloc.c: Likewise.
46303         * lib/xmalloca.c: Likewise.
46304         * lib/xmalloca.h: Likewise.
46305         * lib/xmemcoll.c: Likewise.
46306         * lib/xnanosleep.c: Likewise.
46307         * lib/xreadlink.c: Likewise.
46308         * lib/xreadlink.h: Likewise.
46309         * lib/xsetenv.c: Likewise.
46310         * lib/xsetenv.h: Likewise.
46311         * lib/xstriconv.c: Likewise.
46312         * lib/xstriconv.h: Likewise.
46313         * lib/xstrndup.c: Likewise.
46314         * lib/xstrndup.h: Likewise.
46315         * lib/xstrtod.c: Likewise.
46316         * lib/xstrtod.h: Likewise.
46317         * lib/xstrtol-error.c: Likewise.
46318         * lib/xstrtol.c: Likewise.
46319         * lib/xstrtol.h: Likewise.
46320         * lib/xtime.h: Likewise.
46321         * lib/xvasprintf.c: Likewise.
46322         * lib/xvasprintf.h: Likewise.
46323         * lib/yesno.c: Likewise.
46324         * lib/yesno.h: Likewise.
46325         * posix-modules: Likewise.
46326         * tests/test-alloca-opt.c: Likewise.
46327         * tests/test-arcfour.c: Likewise.
46328         * tests/test-arctwo.c: Likewise.
46329         * tests/test-argmatch.c: Likewise.
46330         * tests/test-argp-2.sh: Likewise.
46331         * tests/test-argp.c: Likewise.
46332         * tests/test-arpa_inet.c: Likewise.
46333         * tests/test-array_list.c: Likewise.
46334         * tests/test-array_oset.c: Likewise.
46335         * tests/test-atexit.c: Likewise.
46336         * tests/test-avltree_list.c: Likewise.
46337         * tests/test-avltree_oset.c: Likewise.
46338         * tests/test-avltreehash_list.c: Likewise.
46339         * tests/test-base64.c: Likewise.
46340         * tests/test-binary-io.c: Likewise.
46341         * tests/test-byteswap.c: Likewise.
46342         * tests/test-c-ctype.c: Likewise.
46343         * tests/test-c-strcasecmp.c: Likewise.
46344         * tests/test-c-strcasestr.c: Likewise.
46345         * tests/test-c-strncasecmp.c: Likewise.
46346         * tests/test-c-strstr.c: Likewise.
46347         * tests/test-canonicalize-lgpl.c: Likewise.
46348         * tests/test-canonicalize.c: Likewise.
46349         * tests/test-carray_list.c: Likewise.
46350         * tests/test-ceilf.c: Likewise.
46351         * tests/test-ceill.c: Likewise.
46352         * tests/test-count-one-bits.c: Likewise.
46353         * tests/test-crc.c: Likewise.
46354         * tests/test-dirname.c: Likewise.
46355         * tests/test-fbufmode.c: Likewise.
46356         * tests/test-fcntl.c: Likewise.
46357         * tests/test-fflush.c: Likewise.
46358         * tests/test-floorf.c: Likewise.
46359         * tests/test-floorl.c: Likewise.
46360         * tests/test-fopen.c: Likewise.
46361         * tests/test-fprintf-posix.c: Likewise.
46362         * tests/test-fprintf-posix.h: Likewise.
46363         * tests/test-fpurge.c: Likewise.
46364         * tests/test-freadable.c: Likewise.
46365         * tests/test-freadahead.c: Likewise.
46366         * tests/test-freading.c: Likewise.
46367         * tests/test-freopen.c: Likewise.
46368         * tests/test-frexp.c: Likewise.
46369         * tests/test-frexpl.c: Likewise.
46370         * tests/test-fseek.c: Likewise.
46371         * tests/test-fseeko.c: Likewise.
46372         * tests/test-fseterr.c: Likewise.
46373         * tests/test-fstrcmp.c: Likewise.
46374         * tests/test-ftell.c: Likewise.
46375         * tests/test-ftello.c: Likewise.
46376         * tests/test-fwritable.c: Likewise.
46377         * tests/test-fwriting.c: Likewise.
46378         * tests/test-getaddrinfo.c: Likewise.
46379         * tests/test-getpass.c: Likewise.
46380         * tests/test-gettimeofday.c: Likewise.
46381         * tests/test-hmac-md5.c: Likewise.
46382         * tests/test-hmac-sha1.c: Likewise.
46383         * tests/test-iconv.c: Likewise.
46384         * tests/test-iconvme.c: Likewise.
46385         * tests/test-inttypes.c: Likewise.
46386         * tests/test-isnan.c: Likewise.
46387         * tests/test-isnanf.c: Likewise.
46388         * tests/test-isnanl-nolibm.c: Likewise.
46389         * tests/test-isnanl.c: Likewise.
46390         * tests/test-isnanl.h: Likewise.
46391         * tests/test-ldexpl.c: Likewise.
46392         * tests/test-linked_list.c: Likewise.
46393         * tests/test-linkedhash_list.c: Likewise.
46394         * tests/test-locale.c: Likewise.
46395         * tests/test-localename.c: Likewise.
46396         * tests/test-lock.c: Likewise.
46397         * tests/test-lseek.c: Likewise.
46398         * tests/test-malloca.c: Likewise.
46399         * tests/test-math.c: Likewise.
46400         * tests/test-mbscasecmp.c: Likewise.
46401         * tests/test-mbscasestr1.c: Likewise.
46402         * tests/test-mbscasestr2.c: Likewise.
46403         * tests/test-mbscasestr3.c: Likewise.
46404         * tests/test-mbscasestr4.c: Likewise.
46405         * tests/test-mbschr.c: Likewise.
46406         * tests/test-mbscspn.c: Likewise.
46407         * tests/test-mbsncasecmp.c: Likewise.
46408         * tests/test-mbspbrk.c: Likewise.
46409         * tests/test-mbspcasecmp.c: Likewise.
46410         * tests/test-mbsrchr.c: Likewise.
46411         * tests/test-mbsspn.c: Likewise.
46412         * tests/test-mbsstr1.c: Likewise.
46413         * tests/test-mbsstr2.c: Likewise.
46414         * tests/test-mbsstr3.c: Likewise.
46415         * tests/test-md5.c: Likewise.
46416         * tests/test-memmem.c: Likewise.
46417         * tests/test-netinet_in.c: Likewise.
46418         * tests/test-open.c: Likewise.
46419         * tests/test-printf-frexp.c: Likewise.
46420         * tests/test-printf-frexpl.c: Likewise.
46421         * tests/test-printf-posix.c: Likewise.
46422         * tests/test-printf-posix.h: Likewise.
46423         * tests/test-rbtree_list.c: Likewise.
46424         * tests/test-rbtree_oset.c: Likewise.
46425         * tests/test-rbtreehash_list.c: Likewise.
46426         * tests/test-read-file.c: Likewise.
46427         * tests/test-rijndael.c: Likewise.
46428         * tests/test-search.c: Likewise.
46429         * tests/test-signbit.c: Likewise.
46430         * tests/test-sleep.c: Likewise.
46431         * tests/test-snprintf-posix.c: Likewise.
46432         * tests/test-snprintf-posix.h: Likewise.
46433         * tests/test-snprintf.c: Likewise.
46434         * tests/test-sprintf-posix.c: Likewise.
46435         * tests/test-sprintf-posix.h: Likewise.
46436         * tests/test-stat-time.c: Likewise.
46437         * tests/test-stdbool.c: Likewise.
46438         * tests/test-stdint.c: Likewise.
46439         * tests/test-stdio.c: Likewise.
46440         * tests/test-stdlib.c: Likewise.
46441         * tests/test-stpncpy.c: Likewise.
46442         * tests/test-strcasestr.c: Likewise.
46443         * tests/test-striconv.c: Likewise.
46444         * tests/test-striconveh.c: Likewise.
46445         * tests/test-striconveha.c: Likewise.
46446         * tests/test-string.c: Likewise.
46447         * tests/test-sys_select.c: Likewise.
46448         * tests/test-sys_socket.c: Likewise.
46449         * tests/test-sys_stat.c: Likewise.
46450         * tests/test-sys_time.c: Likewise.
46451         * tests/test-sysexits.c: Likewise.
46452         * tests/test-time.c: Likewise.
46453         * tests/test-tls.c: Likewise.
46454         * tests/test-trunc.c: Likewise.
46455         * tests/test-truncf.c: Likewise.
46456         * tests/test-truncl.c: Likewise.
46457         * tests/test-unistd.c: Likewise.
46458         * tests/test-vasnprintf-posix.c: Likewise.
46459         * tests/test-vasnprintf-posix2.c: Likewise.
46460         * tests/test-vasnprintf.c: Likewise.
46461         * tests/test-vasprintf-posix.c: Likewise.
46462         * tests/test-vasprintf.c: Likewise.
46463         * tests/test-verify.c: Likewise.
46464         * tests/test-vfprintf-posix.c: Likewise.
46465         * tests/test-vprintf-posix.c: Likewise.
46466         * tests/test-vsnprintf-posix.c: Likewise.
46467         * tests/test-vsnprintf.c: Likewise.
46468         * tests/test-vsprintf-posix.c: Likewise.
46469         * tests/test-wchar.c: Likewise.
46470         * tests/test-wctype.c: Likewise.
46471         * tests/test-wcwidth.c: Likewise.
46472         * tests/test-xstrtol.c: Likewise.
46473         * tests/test-xvasprintf.c: Likewise.
46474         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
46475         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
46476         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46477         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46478         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46479         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
46480         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46481         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46482         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46483         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
46484         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46485         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46486         * tests/uniname/test-uninames.c: Likewise.
46487         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
46488         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
46489         * tests/unistdio/test-u16-printf1.h: Likewise.
46490         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
46491         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
46492         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
46493         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
46494         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
46495         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
46496         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
46497         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
46498         * tests/unistdio/test-u32-printf1.h: Likewise.
46499         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
46500         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
46501         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
46502         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
46503         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
46504         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
46505         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
46506         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
46507         * tests/unistdio/test-u8-printf1.h: Likewise.
46508         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
46509         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
46510         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
46511         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
46512         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
46513         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
46514         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
46515         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
46516         * tests/unistdio/test-ulc-printf1.h: Likewise.
46517         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
46518         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
46519         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
46520         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
46521         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
46522         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
46523         * tests/uniwidth/test-u16-strwidth.c: Likewise.
46524         * tests/uniwidth/test-u16-width.c: Likewise.
46525         * tests/uniwidth/test-u32-strwidth.c: Likewise.
46526         * tests/uniwidth/test-u32-width.c: Likewise.
46527         * tests/uniwidth/test-u8-strwidth.c: Likewise.
46528         * tests/uniwidth/test-u8-width.c: Likewise.
46529         * tests/uniwidth/test-uc_width.c: Likewise.
46530         * config/srclist-update: Likewise.
46531         (fixlicense): Update to GPLv3+.
46532
46533         Change copyright notice from LGPLv2.1+ to LGPLv3+.
46534         * tests/test-tsearch.c: Change copyright notice.
46535
46536         Change copyright notice from LGPLv2.0+ to LGPLv3+.
46537         * lib/c-strcaseeq.h: Change copyright notice.
46538         * lib/streq.h: Likewise.
46539         * lib/uniconv.h: Likewise.
46540         * lib/uniconv/u-conv-from-enc.h: Likewise.
46541         * lib/uniconv/u-conv-to-enc.h: Likewise.
46542         * lib/uniconv/u-strconv-from-enc.h: Likewise.
46543         * lib/uniconv/u-strconv-to-enc.h: Likewise.
46544         * lib/uniconv/u16-conv-from-enc.c: Likewise.
46545         * lib/uniconv/u16-conv-to-enc.c: Likewise.
46546         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
46547         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
46548         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
46549         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
46550         * lib/uniconv/u32-conv-from-enc.c: Likewise.
46551         * lib/uniconv/u32-conv-to-enc.c: Likewise.
46552         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
46553         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
46554         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
46555         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
46556         * lib/uniconv/u8-conv-from-enc.c: Likewise.
46557         * lib/uniconv/u8-conv-to-enc.c: Likewise.
46558         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
46559         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
46560         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
46561         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
46562         * lib/uniname.h: Likewise.
46563         * lib/uniname/uniname.c: Likewise.
46564         * lib/unistdio.h: Likewise.
46565         * lib/unistdio/u-asnprintf.h: Likewise.
46566         * lib/unistdio/u-asprintf.h: Likewise.
46567         * lib/unistdio/u-printf-args.c: Likewise.
46568         * lib/unistdio/u-printf-args.h: Likewise.
46569         * lib/unistdio/u-printf-parse.h: Likewise.
46570         * lib/unistdio/u-snprintf.h: Likewise.
46571         * lib/unistdio/u-sprintf.h: Likewise.
46572         * lib/unistdio/u-vasprintf.h: Likewise.
46573         * lib/unistdio/u-vsnprintf.h: Likewise.
46574         * lib/unistdio/u-vsprintf.h: Likewise.
46575         * lib/unistdio/u16-asnprintf.c: Likewise.
46576         * lib/unistdio/u16-asprintf.c: Likewise.
46577         * lib/unistdio/u16-printf-parse.c: Likewise.
46578         * lib/unistdio/u16-snprintf.c: Likewise.
46579         * lib/unistdio/u16-sprintf.c: Likewise.
46580         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
46581         * lib/unistdio/u16-u16-asprintf.c: Likewise.
46582         * lib/unistdio/u16-u16-snprintf.c: Likewise.
46583         * lib/unistdio/u16-u16-sprintf.c: Likewise.
46584         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
46585         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
46586         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
46587         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
46588         * lib/unistdio/u16-vasnprintf.c: Likewise.
46589         * lib/unistdio/u16-vasprintf.c: Likewise.
46590         * lib/unistdio/u16-vsnprintf.c: Likewise.
46591         * lib/unistdio/u16-vsprintf.c: Likewise.
46592         * lib/unistdio/u32-asnprintf.c: Likewise.
46593         * lib/unistdio/u32-asprintf.c: Likewise.
46594         * lib/unistdio/u32-printf-parse.c: Likewise.
46595         * lib/unistdio/u32-snprintf.c: Likewise.
46596         * lib/unistdio/u32-sprintf.c: Likewise.
46597         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
46598         * lib/unistdio/u32-u32-asprintf.c: Likewise.
46599         * lib/unistdio/u32-u32-snprintf.c: Likewise.
46600         * lib/unistdio/u32-u32-sprintf.c: Likewise.
46601         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
46602         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
46603         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
46604         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
46605         * lib/unistdio/u32-vasnprintf.c: Likewise.
46606         * lib/unistdio/u32-vasprintf.c: Likewise.
46607         * lib/unistdio/u32-vsnprintf.c: Likewise.
46608         * lib/unistdio/u32-vsprintf.c: Likewise.
46609         * lib/unistdio/u8-asnprintf.c: Likewise.
46610         * lib/unistdio/u8-asprintf.c: Likewise.
46611         * lib/unistdio/u8-printf-parse.c: Likewise.
46612         * lib/unistdio/u8-snprintf.c: Likewise.
46613         * lib/unistdio/u8-sprintf.c: Likewise.
46614         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
46615         * lib/unistdio/u8-u8-asprintf.c: Likewise.
46616         * lib/unistdio/u8-u8-snprintf.c: Likewise.
46617         * lib/unistdio/u8-u8-sprintf.c: Likewise.
46618         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
46619         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
46620         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
46621         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
46622         * lib/unistdio/u8-vasnprintf.c: Likewise.
46623         * lib/unistdio/u8-vasprintf.c: Likewise.
46624         * lib/unistdio/u8-vsnprintf.c: Likewise.
46625         * lib/unistdio/u8-vsprintf.c: Likewise.
46626         * lib/unistdio/ulc-asnprintf.c: Likewise.
46627         * lib/unistdio/ulc-asprintf.c: Likewise.
46628         * lib/unistdio/ulc-printf-parse.c: Likewise.
46629         * lib/unistdio/ulc-snprintf.c: Likewise.
46630         * lib/unistdio/ulc-sprintf.c: Likewise.
46631         * lib/unistdio/ulc-vasnprintf.c: Likewise.
46632         * lib/unistdio/ulc-vasprintf.c: Likewise.
46633         * lib/unistdio/ulc-vsnprintf.c: Likewise.
46634         * lib/unistdio/ulc-vsprintf.c: Likewise.
46635         * lib/unistr.h: Likewise.
46636         * lib/unistr/u-cpy-alloc.h: Likewise.
46637         * lib/unistr/u-cpy.h: Likewise.
46638         * lib/unistr/u-endswith.h: Likewise.
46639         * lib/unistr/u-move.h: Likewise.
46640         * lib/unistr/u-set.h: Likewise.
46641         * lib/unistr/u-startswith.h: Likewise.
46642         * lib/unistr/u-stpcpy.h: Likewise.
46643         * lib/unistr/u-stpncpy.h: Likewise.
46644         * lib/unistr/u-strcat.h: Likewise.
46645         * lib/unistr/u-strcpy.h: Likewise.
46646         * lib/unistr/u-strcspn.h: Likewise.
46647         * lib/unistr/u-strdup.h: Likewise.
46648         * lib/unistr/u-strlen.h: Likewise.
46649         * lib/unistr/u-strncat.h: Likewise.
46650         * lib/unistr/u-strncpy.h: Likewise.
46651         * lib/unistr/u-strnlen.h: Likewise.
46652         * lib/unistr/u-strpbrk.h: Likewise.
46653         * lib/unistr/u-strspn.h: Likewise.
46654         * lib/unistr/u-strstr.h: Likewise.
46655         * lib/unistr/u-strtok.h: Likewise.
46656         * lib/unistr/u16-check.c: Likewise.
46657         * lib/unistr/u16-chr.c: Likewise.
46658         * lib/unistr/u16-cmp.c: Likewise.
46659         * lib/unistr/u16-cpy-alloc.c: Likewise.
46660         * lib/unistr/u16-cpy.c: Likewise.
46661         * lib/unistr/u16-endswith.c: Likewise.
46662         * lib/unistr/u16-mblen.c: Likewise.
46663         * lib/unistr/u16-mbsnlen.c: Likewise.
46664         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46665         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46666         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46667         * lib/unistr/u16-mbtouc.c: Likewise.
46668         * lib/unistr/u16-mbtoucr.c: Likewise.
46669         * lib/unistr/u16-move.c: Likewise.
46670         * lib/unistr/u16-next.c: Likewise.
46671         * lib/unistr/u16-prev.c: Likewise.
46672         * lib/unistr/u16-set.c: Likewise.
46673         * lib/unistr/u16-startswith.c: Likewise.
46674         * lib/unistr/u16-stpcpy.c: Likewise.
46675         * lib/unistr/u16-stpncpy.c: Likewise.
46676         * lib/unistr/u16-strcat.c: Likewise.
46677         * lib/unistr/u16-strchr.c: Likewise.
46678         * lib/unistr/u16-strcmp.c: Likewise.
46679         * lib/unistr/u16-strcpy.c: Likewise.
46680         * lib/unistr/u16-strcspn.c: Likewise.
46681         * lib/unistr/u16-strdup.c: Likewise.
46682         * lib/unistr/u16-strlen.c: Likewise.
46683         * lib/unistr/u16-strmblen.c: Likewise.
46684         * lib/unistr/u16-strmbtouc.c: Likewise.
46685         * lib/unistr/u16-strncat.c: Likewise.
46686         * lib/unistr/u16-strncmp.c: Likewise.
46687         * lib/unistr/u16-strncpy.c: Likewise.
46688         * lib/unistr/u16-strnlen.c: Likewise.
46689         * lib/unistr/u16-strpbrk.c: Likewise.
46690         * lib/unistr/u16-strrchr.c: Likewise.
46691         * lib/unistr/u16-strspn.c: Likewise.
46692         * lib/unistr/u16-strstr.c: Likewise.
46693         * lib/unistr/u16-strtok.c: Likewise.
46694         * lib/unistr/u16-to-u32.c: Likewise.
46695         * lib/unistr/u16-to-u8.c: Likewise.
46696         * lib/unistr/u16-uctomb-aux.c: Likewise.
46697         * lib/unistr/u16-uctomb.c: Likewise.
46698         * lib/unistr/u32-check.c: Likewise.
46699         * lib/unistr/u32-chr.c: Likewise.
46700         * lib/unistr/u32-cmp.c: Likewise.
46701         * lib/unistr/u32-cpy-alloc.c: Likewise.
46702         * lib/unistr/u32-cpy.c: Likewise.
46703         * lib/unistr/u32-endswith.c: Likewise.
46704         * lib/unistr/u32-mblen.c: Likewise.
46705         * lib/unistr/u32-mbsnlen.c: Likewise.
46706         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46707         * lib/unistr/u32-mbtouc.c: Likewise.
46708         * lib/unistr/u32-mbtoucr.c: Likewise.
46709         * lib/unistr/u32-move.c: Likewise.
46710         * lib/unistr/u32-next.c: Likewise.
46711         * lib/unistr/u32-prev.c: Likewise.
46712         * lib/unistr/u32-set.c: Likewise.
46713         * lib/unistr/u32-startswith.c: Likewise.
46714         * lib/unistr/u32-stpcpy.c: Likewise.
46715         * lib/unistr/u32-stpncpy.c: Likewise.
46716         * lib/unistr/u32-strcat.c: Likewise.
46717         * lib/unistr/u32-strchr.c: Likewise.
46718         * lib/unistr/u32-strcmp.c: Likewise.
46719         * lib/unistr/u32-strcpy.c: Likewise.
46720         * lib/unistr/u32-strcspn.c: Likewise.
46721         * lib/unistr/u32-strdup.c: Likewise.
46722         * lib/unistr/u32-strlen.c: Likewise.
46723         * lib/unistr/u32-strmblen.c: Likewise.
46724         * lib/unistr/u32-strmbtouc.c: Likewise.
46725         * lib/unistr/u32-strncat.c: Likewise.
46726         * lib/unistr/u32-strncmp.c: Likewise.
46727         * lib/unistr/u32-strncpy.c: Likewise.
46728         * lib/unistr/u32-strnlen.c: Likewise.
46729         * lib/unistr/u32-strpbrk.c: Likewise.
46730         * lib/unistr/u32-strrchr.c: Likewise.
46731         * lib/unistr/u32-strspn.c: Likewise.
46732         * lib/unistr/u32-strstr.c: Likewise.
46733         * lib/unistr/u32-strtok.c: Likewise.
46734         * lib/unistr/u32-to-u16.c: Likewise.
46735         * lib/unistr/u32-to-u8.c: Likewise.
46736         * lib/unistr/u32-uctomb.c: Likewise.
46737         * lib/unistr/u8-check.c: Likewise.
46738         * lib/unistr/u8-chr.c: Likewise.
46739         * lib/unistr/u8-cmp.c: Likewise.
46740         * lib/unistr/u8-cpy-alloc.c: Likewise.
46741         * lib/unistr/u8-cpy.c: Likewise.
46742         * lib/unistr/u8-endswith.c: Likewise.
46743         * lib/unistr/u8-mblen.c: Likewise.
46744         * lib/unistr/u8-mbsnlen.c: Likewise.
46745         * lib/unistr/u8-mbtouc-aux.c: Likewise.
46746         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46747         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46748         * lib/unistr/u8-mbtouc.c: Likewise.
46749         * lib/unistr/u8-mbtoucr.c: Likewise.
46750         * lib/unistr/u8-move.c: Likewise.
46751         * lib/unistr/u8-next.c: Likewise.
46752         * lib/unistr/u8-prev.c: Likewise.
46753         * lib/unistr/u8-set.c: Likewise.
46754         * lib/unistr/u8-startswith.c: Likewise.
46755         * lib/unistr/u8-stpcpy.c: Likewise.
46756         * lib/unistr/u8-stpncpy.c: Likewise.
46757         * lib/unistr/u8-strcat.c: Likewise.
46758         * lib/unistr/u8-strchr.c: Likewise.
46759         * lib/unistr/u8-strcmp.c: Likewise.
46760         * lib/unistr/u8-strcpy.c: Likewise.
46761         * lib/unistr/u8-strcspn.c: Likewise.
46762         * lib/unistr/u8-strdup.c: Likewise.
46763         * lib/unistr/u8-strlen.c: Likewise.
46764         * lib/unistr/u8-strmblen.c: Likewise.
46765         * lib/unistr/u8-strmbtouc.c: Likewise.
46766         * lib/unistr/u8-strncat.c: Likewise.
46767         * lib/unistr/u8-strncmp.c: Likewise.
46768         * lib/unistr/u8-strncpy.c: Likewise.
46769         * lib/unistr/u8-strnlen.c: Likewise.
46770         * lib/unistr/u8-strpbrk.c: Likewise.
46771         * lib/unistr/u8-strrchr.c: Likewise.
46772         * lib/unistr/u8-strspn.c: Likewise.
46773         * lib/unistr/u8-strstr.c: Likewise.
46774         * lib/unistr/u8-strtok.c: Likewise.
46775         * lib/unistr/u8-to-u16.c: Likewise.
46776         * lib/unistr/u8-to-u32.c: Likewise.
46777         * lib/unistr/u8-uctomb-aux.c: Likewise.
46778         * lib/unistr/u8-uctomb.c: Likewise.
46779         * lib/unitypes.h: Likewise.
46780         * lib/uniwidth.h: Likewise.
46781         * lib/uniwidth/cjk.h: Likewise.
46782         * lib/uniwidth/u16-strwidth.c: Likewise.
46783         * lib/uniwidth/u16-width.c: Likewise.
46784         * lib/uniwidth/u32-strwidth.c: Likewise.
46785         * lib/uniwidth/u32-width.c: Likewise.
46786         * lib/uniwidth/u8-strwidth.c: Likewise.
46787         * lib/uniwidth/u8-width.c: Likewise.
46788         * lib/uniwidth/width.c: Likewise.
46789
46790 2007-10-07  Bruno Haible  <bruno@clisp.org>
46791
46792         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
46793         The file is still under LGPL (see modules/inttypes).
46794
46795 2007-10-06  Bruno Haible  <bruno@clisp.org>
46796
46797         * modules/trunc (Dependencies): Add 'extensions'.
46798         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
46799         Reported by Ben Pfaff <blp@gnu.org>.
46800
46801 2007-10-06  Bruno Haible  <bruno@clisp.org>
46802
46803         * modules/freopen-tests: New file.
46804         * tests/test-freopen.c: New file.
46805
46806         * modules/fopen-tests: New file.
46807         * tests/test-fopen.c: New file.
46808
46809         * modules/fopen: New file.
46810         * lib/fopen.c: New file.
46811         * m4/fopen.m4: New file.
46812         * modules/freopen: New file.
46813         * lib/freopen.c: New file.
46814         * m4/freopen.m4: New file.
46815         * lib/stdio.in.h (fopen, freopen): New declarations.
46816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
46817         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46818         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
46819         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46820         * doc/functions/fopen.texi: Mention the 'fopen' module.
46821         * doc/functions/freopen.texi: Mention the 'freopen' module.
46822
46823 2007-10-06  Bruno Haible  <bruno@clisp.org>
46824
46825         * modules/open-tests: New file.
46826         * tests/test-open.c: New file.
46827
46828         * modules/open: New file.
46829         * lib/open.c: New file.
46830         * m4/open.m4: New file.
46831         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
46832         lib/open.c does.
46833         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
46834         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
46835         macros.
46836         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
46837         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
46838         REPLACE_OPEN.
46839         * doc/functions/open.texi: Mention the 'open' module.
46840
46841 2007-10-04  Bruno Haible  <bruno@clisp.org>
46842
46843         * modules/ceill-tests: New file.
46844         * tests/test-ceill.c: New file.
46845
46846         * modules/ceill: New file.
46847         * lib/ceill.c: Replace entire file.
46848         * m4/ceill.m4: New file.
46849         * lib/math.in.h (ceill): Replace declaration.
46850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
46851         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
46852         * doc/functions/ceill.texi: Mention the 'ceill' module.
46853         * modules/mathl (Files): Remove lib/ceill.c.
46854         (Depends-on): Add ceill.
46855
46856 2007-10-04  Bruno Haible  <bruno@clisp.org>
46857
46858         * modules/ceilf-tests: New file.
46859         * tests/test-ceilf.c: New file.
46860
46861         * modules/ceilf: New file.
46862         * lib/ceil.c: New file.
46863         * lib/ceilf.c: New file.
46864         * m4/ceilf.m4: New file.
46865         * lib/math.in.h (ceilf): New declaration.
46866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
46867         HAVE_DECL_CEILF.
46868         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
46869         HAVE_DECL_CEILF.
46870         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
46871
46872 2007-10-04  Bruno Haible  <bruno@clisp.org>
46873
46874         * modules/floorl-tests: New file.
46875         * tests/test-floorl.c: New file.
46876
46877         * modules/floorl: New file.
46878         * lib/floorl.c: Replace entire file.
46879         * m4/floorl.m4: New file.
46880         * lib/math.in.h (floorl): Replace declaration.
46881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
46882         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
46883         * doc/functions/floorl.texi: Mention the 'floorl' module.
46884         * modules/mathl (Files): Remove lib/floorl.c.
46885         (Depends-on): Add floorl.
46886
46887 2007-10-04  Bruno Haible  <bruno@clisp.org>
46888
46889         * modules/floorf-tests: New file.
46890         * tests/test-floorf.c: New file.
46891
46892         * modules/floorf: New file.
46893         * lib/floor.c: New file.
46894         * lib/floorf.c: New file.
46895         * m4/floorf.m4: New file.
46896         * lib/math.in.h (floorf): New declaration.
46897         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
46898         HAVE_DECL_FLOORF.
46899         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
46900         HAVE_DECL_FLOORF.
46901         * doc/functions/floorf.texi: Mention the 'floorf' module.
46902
46903 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
46904             Bruno Haible  <bruno@clisp.org>
46905
46906         Advertise for the Git server instead of the CVS server.
46907         * doc/gnulib-intro.texi (Steady Development): Mention the Git
46908         repository instead of the CVS one.
46909         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
46910         about all VCS systems generically.
46911         * doc/gnulib.texi (Introduction): Capitalize `Git'.
46912
46913 2007-10-04  Bruno Haible  <bruno@clisp.org>
46914
46915         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
46916         means.
46917         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
46918
46919 2007-10-04  Bruno Haible  <bruno@clisp.org>
46920
46921         * modules/truncl-tests: New file.
46922         * tests/test-truncl.c: New file.
46923
46924         * modules/truncl: New file.
46925         * lib/truncl.c: New file.
46926         * m4/truncl.m4: New file.
46927         * lib/math.in.h (truncl): New declaration.
46928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
46929         HAVE_DECL_TRUNCL.
46930         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
46931         HAVE_DECL_TRUNCL.
46932         * doc/functions/truncl.texi: Mention the 'truncl' module.
46933
46934 2007-10-04  Bruno Haible  <bruno@clisp.org>
46935
46936         * modules/truncf-tests: New file.
46937         * tests/test-truncf.c: New file.
46938
46939         * modules/truncf: New file.
46940         * lib/trunc.c: Make paramerizable through USE_* macros.
46941         * lib/truncf.c: New file.
46942         * m4/truncf.m4: New file.
46943         * lib/math.in.h (truncf): New declaration.
46944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
46945         HAVE_DECL_TRUNCF.
46946         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
46947         HAVE_DECL_TRUNCF.
46948         * doc/functions/truncf.texi: Mention the 'truncf' module.
46949
46950 2007-10-03  Bruno Haible  <bruno@clisp.org>
46951
46952         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46953         augmentation also for tests modules.
46954         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
46955         * modules/atexit-tests (Makefile.am): Likewise.
46956         * modules/binary-io-tests (Makefile.am): Likewise.
46957         * modules/c-strcase-tests (Makefile.am): Likewise.
46958         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
46959         * modules/canonicalize-tests (Makefile.am): Likewise.
46960         * modules/closein-tests (Makefile.am): Likewise.
46961         * modules/fprintf-posix-tests (Makefile.am): Likewise.
46962         * modules/freadahead-tests (Makefile.am): Likewise.
46963         * modules/fseek-tests (Makefile.am): Likewise.
46964         * modules/fseeko-tests (Makefile.am): Likewise.
46965         * modules/ftell-tests (Makefile.am): Likewise.
46966         * modules/ftello-tests (Makefile.am): Likewise.
46967         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
46968         * modules/isnanl-tests (Makefile.am): Likewise.
46969         * modules/lseek-tests (Makefile.am): Likewise.
46970         * modules/mbscasecmp-tests (Makefile.am): Likewise.
46971         * modules/mbscasestr-tests (Makefile.am): Likewise.
46972         * modules/mbschr-tests (Makefile.am): Likewise.
46973         * modules/mbscspn-tests (Makefile.am): Likewise.
46974         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
46975         * modules/mbspbrk-tests (Makefile.am): Likewise.
46976         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
46977         * modules/mbsrchr-tests (Makefile.am): Likewise.
46978         * modules/mbsspn-tests (Makefile.am): Likewise.
46979         * modules/mbsstr-tests (Makefile.am): Likewise.
46980         * modules/printf-posix-tests (Makefile.am): Likewise.
46981         * modules/snprintf-posix-tests (Makefile.am): Likewise.
46982         * modules/sprintf-posix-tests (Makefile.am): Likewise.
46983         * modules/tsearch-tests (Makefile.am): Likewise.
46984         * modules/uniname/uniname-tests (Makefile.am): Likewise.
46985         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
46986         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
46987         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
46988         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
46989         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
46990         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
46991         * modules/vprintf-posix-tests (Makefile.am): Likewise.
46992         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
46993         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
46994         * modules/xstrtoimax-tests (Makefile.am): Likewise.
46995         * modules/xstrtol-tests (Makefile.am): Likewise.
46996         * modules/xstrtoumax-tests (Makefile.am): Likewise.
46997         * modules/yesno-tests (Makefile.am): Likewise.
46998
46999 2007-10-03  Bruno Haible  <bruno@clisp.org>
47000
47001         * modules/trunc-tests: New file.
47002         * tests/test-trunc.c: New file.
47003
47004         * modules/trunc: New file.
47005         * lib/trunc.c: New file.
47006         * m4/trunc.m4: New file.
47007         * lib/math.in.h (trunc): New declaration.
47008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
47009         HAVE_DECL_TRUNC.
47010         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
47011         HAVE_DECL_TRUNC.
47012         * doc/functions/trunc.texi: Mention the 'trunc' module.
47013
47014 2007-10-03  Bruno Haible  <bruno@clisp.org>
47015
47016         * tests/test-fpending.c: New file, mostly copied
47017         from coreutils/lib/t-fpending.c.
47018         * modules/fpending-tests: New file.
47019
47020 2007-10-03  Bruno Haible  <bruno@clisp.org>
47021
47022         Port the stdio extensions to QNX (untested).
47023         * lib/fseterr.c (fseterr): Add support for QNX.
47024         * lib/fbufmode.c (fbufmode): Likewise.
47025         * lib/freadable.c (freadable): Likewise.
47026         * lib/fwritable.c (fwritable): Likewise.
47027         * lib/freading.c (freading): Likewise.
47028         * lib/fwriting.c (fwriting): Likewise.
47029         * lib/freadahead.c (freadahed): Likewise.
47030         * lib/fpurge.c (fpurge): Likewise.
47031         * lib/fseeko.c (rpl_fseeko): Likewise.
47032
47033 2007-10-03  Bruno Haible  <bruno@clisp.org>
47034             Jim Meyering  <jim@meyering.net>
47035             Eric Blake  <ebb9@byu.net>
47036
47037         * doc/relocatable.texi: Use @command instead of @program.
47038
47039 2007-10-02  Jim Meyering  <jim@meyering.net>
47040
47041         Perform one more "_.h" -> ".in.h" substitution.
47042         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
47043         instead of unistd_.h here, too.
47044
47045 2007-10-01  Bruno Haible  <bruno@clisp.org>
47046
47047         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
47048         Needed for the alloca-opt module.
47049
47050 2007-09-30  Bruno Haible  <bruno@clisp.org>
47051
47052         * lib/alloca.in.h: Renamed from lib/alloca_.h.
47053         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
47054         alloca_.h.
47055         * lib/argz.in.h: Renamed from lib/argz_.h.
47056         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
47057         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
47058         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
47059         byteswap_.h.
47060         * lib/dirent.in.h: Renamed from lib/dirent_.h.
47061         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
47062         dirent_.h.
47063         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
47064         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
47065         fcntl_.h.
47066         * lib/float.in.h: Renamed from lib/float_.h.
47067         * modules/float (Files, Makefile.am): Use float.in.h instead of
47068         float_.h.
47069         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
47070         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
47071         fnmatch_.h.
47072         * lib/getopt.in.h: Renamed from lib/getopt_.h.
47073         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
47074         getopt_.h.
47075         * lib/glob.in.h: Renamed from lib/glob_.h.
47076         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
47077         * lib/iconv.in.h: Renamed from lib/iconv_.h.
47078         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
47079         iconv_.h.
47080         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
47081         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
47082         inttypes_.h.
47083         * lib/locale.in.h: Renamed from lib/locale_.h.
47084         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
47085         locale_.h.
47086         * lib/math.in.h: Renamed from lib/math_.h.
47087         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
47088         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
47089         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
47090         of netinet_in_.h. Add dependency.
47091         * lib/poll.in.h: Renamed from lib/poll_.h.
47092         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
47093         * lib/search.in.h: Renamed from lib/search_.h.
47094         * modules/search (Files, Makefile.am): Use search.in.h instead of
47095         search_.h.
47096         * lib/signal.in.h: Renamed from lib/signal_.h.
47097         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
47098         _signal.h.
47099         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
47100         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
47101         stdbool_.h.
47102         * lib/stdint.in.h: Renamed from lib/stdint_.h.
47103         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
47104         stdint_.h.
47105         * lib/stdio.in.h: Renamed from lib/stdio_.h.
47106         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
47107         stdio_.h.
47108         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
47109         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
47110         stdlib_.h.
47111         * lib/string.in.h: Renamed from lib/string_.h.
47112         * modules/string (Files, Makefile.am): Use string.in.h instead of
47113         string_.h.
47114         * doc/gnulib-tool.texi (Initial import): Update.
47115         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
47116         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
47117         of sys_select_.h. Add dependency.
47118         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
47119         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
47120         of sys_socket_.h.
47121         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
47122         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
47123         sys_stat_.h.
47124         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
47125         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
47126         sys_time_.h.
47127         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
47128         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
47129         sysexits_.h.
47130         * lib/time.in.h: Renamed from lib/time_.h.
47131         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
47132         * lib/unistd.in.h: Renamed from lib/unistd_.h.
47133         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
47134         unistd_.h.
47135         * lib/wchar.in.h: Renamed from lib/wchar_.h.
47136         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
47137         wchar_.h.
47138         * lib/wctype.in.h: Renamed from lib/wctype_.h.
47139         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
47140         wctype_.h.
47141         * build-aux/bootstrap (slurp): Update.
47142         * lib/.cppi-disable: Update.
47143
47144 2007-09-30  Bruno Haible  <bruno@clisp.org>
47145
47146         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
47147         Needed on BeOS.
47148
47149 2007-09-30  Bruno Haible  <bruno@clisp.org>
47150
47151         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
47152
47153 2007-09-29  Bruno Haible  <bruno@clisp.org>
47154
47155         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
47156
47157 2007-09-29  Bruno Haible  <bruno@clisp.org>
47158
47159         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
47160         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
47161         * build-aux/install-reloc: Compile also areadlink.c.
47162         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
47163
47164 2007-09-29  Bruno Haible  <bruno@clisp.org>
47165
47166         * gnulib-tool (func_emit_initmacro_done): Indentation.
47167
47168 2007-09-29  Bruno Haible  <bruno@clisp.org>
47169
47170         * README: Add CVS checkout update instructions.
47171         Info from Bob Proulx <bob@proulx.com>.
47172
47173 2007-09-28  Eric Blake  <ebb9@byu.net>
47174
47175         Provide move-if-change.
47176         * build-aux/move-if-change: New file, based on best practice
47177         rather than any canonical upstream location.
47178
47179 2007-09-28  Jim Meyering  <jim@meyering.net>
47180
47181         Fix canonicalize loop-detection corner case.
47182         Do not attempt to stat the symlink values stored via seen_triple.
47183         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
47184         on linux-2.6.18, (but not 2.6.22).
47185         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
47186         triple_compare.  The former compares dev,ino,filename, while the latter
47187         would actually stat dirname(filename) when dev and ino were equal.
47188         * lib/hash-triple.c: Install <string.h>.
47189         (STREQ): Define.
47190         (triple_compare_ino_str): New function.
47191         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
47192
47193 2007-09-28  Eric Blake  <ebb9@byu.net>
47194
47195         Enforce that AC_REPLACE_FUNCS files exist.
47196         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
47197         override check for typos.
47198
47199         Fix test-closein on Solaris 10.
47200         * tests/test-closein.c (main): Don't assume stdin can be inherited
47201         closed on all systems.
47202         * tests/test-closein.sh: Likewise.
47203         Reported by Piotr Tarnowski.
47204
47205 2007-09-28  Jim Meyering  <jim@meyering.net>
47206
47207         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
47208
47209 2007-09-27  Jim Meyering  <jim@meyering.net>
47210
47211         canonicalize: Avoid a false-positive cycle failure.
47212         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
47213         Sort.  Remove cycle-check.
47214         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
47215         not cycle-check.h.
47216         (seen_triple): New function.
47217         (canonicalize_filename_mode): Use it instead of cycle-check.
47218         * tests/test-canonicalize.c: Add a test for this bug.
47219         * tests/test-canonicalize.sh: Set up and run the test.
47220
47221         New module, file-set, from coreutils.
47222         * modules/file-set: Define it.
47223         * lib/file-set.c, lib/file-set.h: Implement.
47224
47225         New module, hash-triple, from coreutils.
47226         * modules/hash-triple: Define it.
47227         * lib/hash-triple.c, lib/hash-triple.h: Implement.
47228
47229 2007-09-25  Eric Blake  <ebb9@byu.net>
47230
47231         Fix strerror on Interix.
47232         * lib/string_.h (strerror): Declare replacement.
47233         * doc/functions/strerror.texi (strerror): Document the Interix
47234         shortcoming.
47235         * modules/string (Makefile.am): Support new hooks.
47236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
47237         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
47238         gl_FUNC_STRERROR_SEPARATE.
47239         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
47240         * lib/strerror.c (rpl_strerror): Provide replacement.
47241         * modules/strerror (Depends-on): Add string.
47242         (configure.ac): Detect use of module.
47243         * tests/test-strerror.c: New file.
47244         * modules/strerror-tests: New test module.
47245         * modules/argp (Depends-on): Add strerror.
47246         * modules/error (Depends-on): Likewise.
47247         Reported by Martin Koeppe.
47248
47249 2007-09-24  Bruno Haible  <bruno@clisp.org>
47250
47251         * README: Update git instructions.
47252
47253 2007-09-24  Eric Blake  <ebb9@byu.net>
47254
47255         Revert fpending breakage from 2007-09-08.
47256         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
47257         __fpending.c.
47258
47259 2007-09-24  Jim Meyering  <jim@meyering.net>
47260
47261         filenamecat.c: Add a test.
47262         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
47263         showing how the function works when DIR is the empty string.
47264
47265 2007-09-21  Simon Josefsson  <simon@josefsson.org>
47266
47267         * tests/test-canonicalize.sh: Turn on executable bit.
47268
47269 2007-09-19  Eric Blake  <ebb9@byu.net>
47270
47271         * README: Update CVS instructions.
47272
47273 2007-09-18  Bruno Haible  <bruno@clisp.org>
47274
47275         * modules/areadlink: New file.
47276         * lib/areadlink.h (areadlink): New declaration.
47277         * lib/areadlink.c: New file, based on lib/xreadlink.c.
47278
47279 2007-09-17  Jim Meyering  <jim@meyering.net>
47280
47281         * lib/savewd.c (ESTALE) [!defined]: Define.
47282         Reported to be required on Interix by Martin Koeppe.
47283
47284 2007-09-17  Bruno Haible  <bruno@clisp.org>
47285
47286         * gnulib-tool (func_version): Use $version.
47287
47288 2007-09-16  Bruno Haible  <bruno@clisp.org>
47289
47290         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
47291         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
47292         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
47293         Reported by Greg Schafer <gschafer@zip.com.au>.
47294
47295 2007-09-15  Bruno Haible  <bruno@clisp.org>
47296
47297         * gnulib-tool (sed): Try a little harder to make bash understand the
47298         alias.
47299         Reported by Bruce Korb <bruce.korb@gmail.com>.
47300
47301 2007-09-13  Eric Blake  <ebb9@byu.net>
47302
47303         * ChangeLog: Remove conflict markers.
47304
47305 2007-09-13  Simon Josefsson  <simon@josefsson.org>
47306
47307         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
47308         Reported by Bruno Haible <bruno@clisp.org>.
47309
47310 2007-09-12  Bruno Haible  <bruno@clisp.org>
47311
47312         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
47313         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
47314         is not defined.
47315
47316 2007-09-12  Eric Blake  <ebb9@byu.net>
47317
47318         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
47319         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
47320         Autoconf definition.
47321         * modules/euidaccess (Depends-on): Add extensions, for
47322         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
47323         * modules/fnmatch (Depends-on): Likewise.
47324         * modules/getaddrinfo (Depends-on): Likewise.
47325         * modules/getdelim (Depends-on): Likewise.
47326         * modules/getline (Depends-on): Likewise.
47327         * modules/getsubopt (Depends-on): Likewise.
47328         * modules/gettext (Depends-on): Likewise.
47329         * modules/group-member (Depends-on): Likewise.
47330         * modules/mbchar (Depends-on): Likewise.
47331         * modules/memmem (Depends-on): Likewise.
47332         * modules/mempcpy (Depends-on): Likewise.
47333         * modules/memrchr (Depends-on): Likewise.
47334         * modules/pagealign_alloc (Depends-on): Likewise.
47335         * modules/readutmp (Depends-on): Likewise.
47336         * modules/stpcpy (Depends-on): Likewise.
47337         * modules/stpncpy (Depends-on): Likewise.
47338         * modules/strchrnul (Depends-on): Likewise.
47339         * modules/strndup (Depends-on): Likewise.
47340         * modules/strsep (Depends-on): Likewise.
47341         * modules/strverscmp (Depends-on): Likewise.
47342         * modules/vasprintf (Depends-on): Likewise.
47343         * modules/wcwidth (Depends-on): Likewise.
47344         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
47345         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
47346         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
47347         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
47348         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47349         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47350         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
47351         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47352         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
47353         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
47354         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47355         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
47356         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
47357         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47358         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
47359         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47360         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47361         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
47362         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47363         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
47364         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47365         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
47366         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
47367         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
47368         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
47369         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47370         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
47371         so that lock.m4 can be used in gettext without extensions module.
47372
47373 2007-09-11  Bruno Haible  <bruno@clisp.org>
47374
47375         * m4/isc-posix.m4: Remove file.
47376         Suggested by Eric Blake.
47377
47378 2007-09-11  Eric Blake  <ebb9@byu.net>
47379
47380         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
47381
47382 2007-09-10  Bruno Haible  <bruno@clisp.org>
47383
47384         * posix-modules: Fix typo in error message.
47385         Reported by Matt <mkraai@beckman.com>.
47386
47387 2007-09-09  Bruno Haible  <bruno@clisp.org>
47388
47389         * doc/functions/getdelim.texi: Update list of platforms lacking the
47390         function.
47391         * doc/functions/getline.texi: Likewise.
47392
47393 2007-09-09  Jim Meyering  <jim@meyering.net>
47394
47395         * lib/hash.c (hash_initialize): Detect calloc failure.
47396         Reported by Bruno Haible.
47397
47398 2007-09-09  Bruno Haible  <bruno@clisp.org>
47399
47400         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
47401         malloc or realloc fails.
47402
47403 2007-09-09  Bruno Haible  <bruno@clisp.org>
47404
47405         * modules/getcwd (Depends-on): Add malloc-posix.
47406         * modules/glob (Depends-on): Likewise.
47407         * modules/putenv (Depends-on): Likewise.
47408         * modules/strdup (Depends-on): Likewise.
47409         * modules/getdelim (Depends-on): Add realloc-posix.
47410         * modules/read-file (Depends-on): Likewise.
47411
47412 2007-09-09  Bruno Haible  <bruno@clisp.org>
47413
47414         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
47415         (gl_FUNC_MALLOC_POSIX): Require it.
47416         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
47417         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
47418         * modules/realloc (Files): Add m4/malloc.m4.
47419         * modules/calloc (Files): Likewise.
47420
47421 2007-09-09  Bruno Haible  <bruno@clisp.org>
47422
47423         * modules/malloc-posix: New file.
47424         * modules/malloc (Depends-on): Add malloc-posix.
47425         * lib/malloc.c: Include errno.h.
47426         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
47427         and a POSIX-compatible malloc into a single function. Set ENOMEM
47428         when returning NULL.
47429         * m4/malloc.m4: New file.
47430         * doc/functions/malloc.texi: Mention the malloc-posix module.
47431         * lib/stdlib_.h (malloc): New declaration.
47432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47433         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
47434         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
47435         and HAVE_MALLOC_POSIX.
47436
47437 2007-09-09  Bruno Haible  <bruno@clisp.org>
47438
47439         * modules/realloc-posix: New file.
47440         * modules/realloc (Depends-on): Add realloc-posix.
47441         * lib/realloc.c: Include errno.h.
47442         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
47443         and a POSIX-compatible realloc into a single function. Set ENOMEM
47444         when returning NULL.
47445         * m4/realloc.m4: New file.
47446         * doc/functions/realloc.texi: Mention the realloc-posix module.
47447         * lib/stdlib_.h (realloc): New declaration.
47448         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47449         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
47450         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
47451         and HAVE_REALLOC_POSIX.
47452
47453 2007-09-09  Bruno Haible  <bruno@clisp.org>
47454
47455         * modules/calloc-posix: New file.
47456         * modules/calloc (Depends-on): Add calloc-posix.
47457         * lib/calloc.c: Include errno.h.
47458         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
47459         and a POSIX-compatible calloc into a single function. Set ENOMEM
47460         when returning NULL.
47461         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
47462         * doc/functions/calloc.texi: Mention the calloc-posix module.
47463         * lib/stdlib_.h (calloc): New declaration.
47464         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47465         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
47466         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
47467         and HAVE_CALLOC_POSIX.
47468
47469 2007-09-09  Bruno Haible  <bruno@clisp.org>
47470
47471         Allow for modules to show an arbitrary notice.
47472         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
47473         * gnulib-tool: New option --extract-notice.
47474         (func_usage): Document it.
47475         (sed_extract_prog): Update.
47476         (func_get_notice): New function.
47477         (func_modules_notice): New function.
47478         (func_import, func_create_testdir): Invoke it.
47479         Suggested by Jim Meyering.
47480
47481 2007-09-09  Bruno Haible  <bruno@clisp.org>
47482
47483         * gnulib-tool: New options --verbose, --quiet.
47484         (func_usage): Document them.
47485         (verbose): New variable.
47486         (func_execute_command): New function.
47487         (func_import): Don't show the module list and the file list if
47488         $verbose < 0.
47489         (func_create_testdir): Likewise. Use func_execute_command.
47490         (func_create_megatestdir): Use func_execute_command.
47491
47492 2007-09-08  Bruno Haible  <bruno@clisp.org>
47493
47494         * gnulib-tool (func_import): Prefer rsync over wget when available,
47495         for fetching the PO files.
47496
47497 2007-09-08  Bruno Haible  <bruno@clisp.org>
47498
47499         * posix-modules: New file. Portions copied from gnulib-tool.
47500         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
47501
47502 2007-09-08  Jim Meyering  <jim@meyering.net>
47503
47504         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
47505         * lib/fpending.h: Rename from __fpending.h.
47506         * lib/fpending.c: Rename from __fpending.c.
47507         Include "fpending.h", not "__fpending.h".
47508         * lib/__fpending.h, lib/__fpending.c: Remove files.
47509         * modules/fpending (Files): Reflect new file names.
47510         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
47511
47512 2007-09-08  Bruno Haible  <bruno@clisp.org>
47513
47514         * m4/inttypes-h.m4: Remove stub file.
47515
47516 2007-09-07  Simon Josefsson  <simon@josefsson.org>
47517
47518         * doc/headers/stdint.texi: Discuss #include_next issue.
47519
47520 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47521
47522         * build-aux/bootstrap: Remove obsolete comment about wget --help.
47523
47524 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47525
47526         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
47527         in variable name.
47528
47529 2007-09-03  Jim Meyering  <jim@meyering.net>
47530
47531         New module: git-version-gen.
47532         * modules/git-version-gen: New file.
47533
47534         Import changes from coreutils for bootstrap script.
47535
47536         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
47537
47538         bootstrap: uses rsync to download the .po files
47539         * build-aux/bootstrap (po_download_command_format): New global.
47540         (download_po_files): Use rsync.
47541         (update_po_files): Don't remove .po files after download,
47542         so future rsync runs can take advantage of the copies.
47543
47544         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
47545
47546         Solve the unnecessary-.po-file-regeneration problem once and for all.
47547         * build-aux/bootstrap (download_po_files): New function, renamed from
47548         get_translations.  Now, downloads, but doesn't update LINGUAS.
47549         (update_po_files): New function.
47550
47551         bootstrap: Ignore more.
47552         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
47553         uniwidth to e.g., lib/.gitignore.
47554         (slurp): Handle the sys_stat_.h -> sys mapping, too.
47555
47556         * build-aux/bootstrap: New setting: vc_ignore.
47557         (insert_sorted_if_absent): Create $file if absent.
47558         Adapt to new, possibly empty, list: $vc_ignore.
47559
47560         bootstrap: generate more ignorable names
47561         * build-aux/bootstrap (slurp): When generating ignorable names,
47562         also map .sin to .sed, .gperf to .c, and .y to .c.
47563
47564 2007-09-03  Jim Meyering  <jim@meyering.net>
47565
47566         * build-aux/git-version-gen: New file, from coreutils.  For details, see
47567         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
47568
47569 2007-09-02  Bruno Haible  <bruno@clisp.org>
47570
47571         Fix mis-recognition of 'mcs' on QNX 6.
47572         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
47573         output contains the string "Mono".
47574         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
47575         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
47576
47577 2007-09-01  Bruno Haible  <bruno@clisp.org>
47578
47579         Fix collision between uniwidth/* and linebreak modules.
47580         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
47581         u32_width): Remove declarations.
47582         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
47583         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
47584         streq3, streq2, streq1, streq0): Remove functions.
47585         (STREQ): Remove macro.
47586         (is_cjk_encoding): Remove function.
47587         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
47588         (uc_width, u8_width, u16_width, u32_width): Remove functions.
47589         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
47590         * NEWS: Document the change.
47591
47592 2007-09-01  Bruno Haible  <bruno@clisp.org>
47593
47594         * lib/streq.h: Add double-inclusion guard.
47595
47596 2007-09-01  Karl Berry  <karl@gnu.org>
47597
47598         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
47599
47600 2007-08-28  Jim Meyering  <jim@meyering.net>
47601
47602         Rename mreadlink_with_size to areadlink_with_size.
47603         * NEWS: Document the change.
47604         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
47605         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
47606         * lib/mreadlink.h: Rename this to...
47607         * lib/areadlink.h: ...this.
47608         * modules/mreadlink-with-size: Rename this to...
47609         * modules/areadlink-with-size: ...this.
47610         * lib/canonicalize.c: Reflect the renaming.
47611         * modules/canonicalize: Likewise.
47612
47613 2007-08-26  Bruno Haible  <bruno@clisp.org>
47614
47615         * gnulib-tool (func_import): When deciding which files to remove,
47616         consider also dangling symbolic links.
47617         Reported by Eric Blake.
47618
47619 2007-08-26  Bruno Haible  <bruno@clisp.org>
47620
47621         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
47622
47623 2007-08-23  Simon Josefsson  <simon@josefsson.org>
47624
47625         * lib/readline.c: Don't include getline.h, the prototype is now
47626         found in stdio.h.
47627
47628 2007-08-23  Jim Meyering  <jim@meyering.net>
47629
47630         Getdelim touchup.
47631         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
47632         around the funlockfile call, since funlockfile never sets errno.
47633         Don't set errno upon failed realloc.
47634
47635 2007-08-22  Eric Blake  <ebb9@byu.net>
47636
47637         Getline touchups.
47638         * lib/getdelim.c (getdelim): Revert regression that required *n to
47639         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
47640         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
47641         getdelim, rather than whether implementation is missing.
47642         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
47643         * lib/stdio_.h (getline): Also declare if replacement is
47644         required.
47645         * doc/functions/getdelim.texi: New file.
47646         * doc/functions/getline.texi: Likewise.
47647         * doc/gnulib.texi (Function Substitutes): Add new files.
47648         Reported by Bruno Haible.
47649
47650 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
47651
47652         * users.txt: Add Guile.
47653
47654 2007-08-22  Eric Blake  <ebb9@byu.net>
47655
47656         * tests/test-getdelim.c (main): Use remove, not unlink.
47657         * tests/test-getline.c (main): Likewise.
47658
47659         Move getline and getdelim into stdio.h, per POSIX 200x.
47660         * modules/getline (Files): Remove getline.h.
47661         (Depends-on): Add stdio.
47662         (configure.ac): Add module indicator.
47663         * modules/getdelim (Files): Remove getdelim.h.
47664         (Depends-on): Add stdio.
47665         (configure.ac): Add module indicator.
47666         * modules/stdio (Makefile.am): Work with new indicators.
47667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
47668         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
47669         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47670         * lib/getdelim.h: Delete.
47671         * lib/getline.h: Delete.
47672         * lib/stdio_.h (getdelim, getline): Declare.
47673         * modules/getdelim-tests: New module.
47674         * modules/getline-tests: Likewise.
47675         * tests/test-getdelim.c: New file.
47676         * tests/test-getline.c: Likewise.
47677         * NEWS: Document the change.
47678         * lib/getline.c: Update choice of header.
47679         * lib/csharpcomp.c: Likewise.
47680         * lib/getpass.c: Likewise.
47681         * lib/javacomp.c: Likewise.
47682         * lib/javaversion.c: Likewise.
47683         * lib/yesno.c: Likewise.
47684         * lib/getdelim.c: Likewise.
47685         (getdelim): Set errno on failure, and avoid memory leak.
47686
47687 2007-08-19  Bruno Haible  <bruno@clisp.org>
47688
47689         * modules/closein (Depends-on): Add freadahead.
47690         * lib/closein.c: Include freadahead.h.
47691         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
47692         is zero.
47693
47694 2007-08-19  Bruno Haible  <bruno@clisp.org>
47695
47696         * modules/freadahead-tests: New file.
47697         * tests/test-freadahead.sh: New file.
47698         * tests/test-freadahead.c: New file.
47699
47700         * modules/freadahead: New file.
47701         * lib/freadahead.h: New file.
47702         * lib/freadahead.c: New file.
47703         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
47704         fbufmode, fpurge, freadable, fwritable.
47705
47706 2007-08-19  Eric Blake  <ebb9@byu.net>
47707
47708         Test yesno in combination with closein.
47709         * lib/yesno.c (yesno): Document use of stdin.
47710         * modules/yesno-tests (Files): New module.
47711         * tests/test-yesno.c (main): New file.
47712         * tests/test-yesno.sh: Likewise.
47713
47714 2007-08-19  Bruno Haible  <bruno@clisp.org>
47715
47716         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
47717         * lib/fseeko.c (rpl_fseeko): Likewise.
47718         * lib/fseterr.c (fseterr): Likewise.
47719
47720 2007-08-19  Bruno Haible  <bruno@clisp.org>
47721
47722         * tests/test-lseek.c (main): Disable a test for BeOS.
47723         * doc/functions/lseek.texi: Document the BeOS bug.
47724
47725 2007-08-19  Bruno Haible  <bruno@clisp.org>
47726             Eric Blake  <ebb9@byu.net>
47727
47728         * lib/lseek.c: Include <sys/stat.h>.
47729         (rpl_lseek): Add workaround code also for Unix platforms.
47730         Needed for BeOS.
47731         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
47732         * doc/functions/lseek.texi: Document BeOS definiency.
47733
47734 2007-08-18  Bruno Haible  <bruno@clisp.org>
47735
47736         * modules/fstrcmp-tests: New file.
47737         * tests/test-fstrcmp.c: New file.
47738
47739 2007-08-18  Bruno Haible  <bruno@clisp.org>
47740
47741         * modules/fstrcmp: New file, from GNU gettext with modifications.
47742         * lib/fstrcmp.h: New file, from GNU gettext.
47743         * lib/fstrcmp.c: New file, from GNU gettext.
47744         * MODULES.html.sh (String handling): Add fstrcmp.
47745
47746 2007-08-18  Bruno Haible  <bruno@clisp.org>
47747
47748         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
47749         'bool'.
47750         (diag, compareseq): Remove const from the ctxt argument.
47751         (USE_HEURISTIC): Undefine at the end.
47752
47753 2007-08-18  Jim Meyering  <jim@meyering.net>
47754
47755         New file: lib/idcache.h
47756         * NEWS: Mention the addition.
47757         * modules/idcache (Files): Add lib/idcache.h
47758         * lib/idcache.c: Include "idcache.h".
47759         Don't include <sys/types.h>.
47760         Add a FIXME comment.
47761         Move file-scoped "static" declarations to the top.
47762         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
47763
47764 2007-08-17  Bruno Haible  <bruno@clisp.org>
47765         and Paul Eggert  <eggert@cs.ucla.edu>
47766
47767         * MODULES.html.sh: Add diffseq.
47768         * modules/diffseq: New file.
47769         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
47770         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
47771
47772 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47773
47774         Import changes from coreutils for bootstrap script.
47775
47776         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
47777
47778         * build-aux/bootstrap (slurp): Work even in environments where
47779         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
47780         current code does not slurp files whose names start with ".", and
47781         this looks like it might be a troublesome area.
47782
47783         2007-07-11  Jim Meyering  <jim@meyering.net>
47784
47785         If there's a GPL vN copyright comment, require that N == 3.
47786
47787         2007-07-08  Jim Meyering  <jim@meyering.net>
47788
47789         Run the coreutils-specific code only if tests/Makefile.am.in exists.
47790         * build-aux/bootstrap (mam_template): Move definition out of loop.
47791
47792         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
47793
47794         * build-aux/bootstrap (symlink_to_dir): Rename function from
47795         symlink_to_gnulib.  Add a directory parameter.  Update all
47796         callers.
47797         (cp_mark_as_generated): Also check for -- and link to -- files in
47798         gl/.
47799
47800         2007-07-08  Jim Meyering  <jim@meyering.net>
47801
47802         Adapt to deeper hierarchy in gnulib.
47803         * build-aux/bootstrap (symlink_to_dir): If the destination
47804         directory doesn't exist, create it. This is required at least for
47805         "lib/uniwidth/cjk.h".
47806
47807         2007-05-15  Jim Meyering  <jim@meyering.net>
47808
47809         * build-aux/bootstrap: Now that generated Makefile.am files
47810         are no longer under version control, they must be created at
47811         bootstrap time.
47812
47813 2007-08-14  Ben Pfaff  <blp@gnu.org>
47814
47815         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
47816
47817 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47818
47819         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
47820         given the changes below.
47821         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
47822         even on hosts that have padding bits beyond the supported 64.
47823
47824 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47825
47826         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
47827         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
47828         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
47829         depends on it.
47830         (xstrtol_error): Remove.
47831         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
47832         but with a different signature.
47833         (ATTRIBUTE_NORETURN, __attribute__): New macros.
47834         * lib/xstrtol-error.c: Include exitfail.h.
47835         (xstrtol_fatal): New function, with a different signature from the
47836         old xstrtol_error, so that the caller need not worry about passing
47837         in an exit status, or about storage management of the option argument.
47838         (xstrtol_error): Now a static function.  Redo signature to
47839         implement xstrtol_fatal.  Output the correct number of hyphens in
47840         front of the option so that the caller need not worry about
47841         storage management.
47842         (N_): New macro.
47843         (_): Remove; not used now.
47844         * modules/xstrtol: Depend on getopt.
47845         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
47846         of old STRTOL_FATAL_ERROR macro.
47847         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
47848         of test program.
47849         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
47850         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
47851
47852 2007-08-08  Eric Blake  <ebb9@byu.net>
47853
47854         * lib/xstrtol-error.c: Add missing include.
47855
47856         Move xstrtol messages into gnulib domain, when --pobase is used.
47857         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
47858         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
47859         * modules/xstrtol (Files): Distribute new file.
47860         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
47861         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
47862         * tests/test-xstrtol.c: ...into new file.
47863         * tests/test-xstrtoul.c: Also test xstrtoul.
47864         * tests/test-xstrtoimax.c: Also test xstrtoimax.
47865         * tests/test-xstrtoumax.c: Also test xstrtoumax.
47866         * tests/test-xstrtol.sh: Drive the tests.
47867         * tests/test-xstrtoimax.sh: Likewise.
47868         * tests/test-xstrtoumax.sh: Likewise.
47869         * modules/xstrtol-tests: New module.
47870         * modules/xstrtoimax-tests: Likewise.
47871         * modules/xstrtoumax-tests: Likewise.
47872
47873 2007-08-08  Jim Meyering  <jim@meyering.net>
47874
47875         New function: mfile_name_concat.
47876         * lib/filenamecat.c (mfile_name_concat): New function, just like
47877         file_name_concat, but return NULL upon failure rather than exiting
47878         with a diagnostic.
47879         * lib/filenamecat.h: Declare it.
47880
47881 2007-08-07  Bruno Haible  <bruno@clisp.org>
47882
47883         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
47884         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
47885         warning from gcc.
47886         Reported by Eric Blake.
47887
47888 2007-08-07  Simon Josefsson  <simon@josefsson.org>
47889
47890         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
47891         * modules/crypto/arcfour (License): Likewise.
47892         * modules/crypto/des-tests (License): Likewise.
47893         * modules/crypto/gc-arctwo-tests (License): Likewise.
47894         * modules/crypto/gc-des-tests (License): Likewise.
47895         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
47896         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
47897         * modules/crypto/gc-md2-tests (License): Likewise.
47898         * modules/crypto/gc-md4-tests (License): Likewise.
47899         * modules/crypto/gc-md5-tests (License): Likewise.
47900         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
47901         * modules/crypto/gc-rijndael-tests (License): Likewise.
47902         * modules/crypto/gc-sha1-tests (License): Likewise.
47903         * modules/crypto/gc-tests (License): Likewise.
47904         * modules/crypto/hmac-md5 (License): Likewise.
47905         * modules/crypto/hmac-sha1 (License): Likewise.
47906         * modules/crypto/md2-tests (License): Likewise.
47907         * modules/crypto/md4-tests (License): Likewise.
47908         * modules/crypto/md5 (License): Likewise.
47909         * modules/crypto/rijndael (License): Likewise.
47910         * modules/crypto/sha1 (License): Likewise.
47911         * modules/memxor (License): Likewise.
47912
47913 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
47914         and Bruno Haible  <bruno@clisp.org>
47915
47916         * NEWS: Describe interface changes to human, xstrtol.
47917         * lib/human.h: Include <xstrtol.h>.
47918         (human_options): Return enum strtol_error, not int.  Remove
47919         bool arg; take int * instead.
47920         * lib/human.c: Don't include "gettext.h".
47921         (_): Remove; no longer used.
47922         Don't include <xstrtol.h>, since human.h does it.
47923         (human_options): Adjust to abovementioned interface changes.
47924         Do not report error to stderr; that's now the caller's
47925         responsibility.
47926         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
47927         interface change.
47928         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
47929         Str, Argument_type_string.  All uses changed.  Put " argument"
47930         in diagnostics to make them clearer.  Change wording of suffix
47931         message for clarity.
47932         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
47933         Argument_type_string.
47934         (STRTOL_FATAL_WARN): Remove; no longer used.
47935         * modules/human (Depends-on): Remove gettext-h.
47936
47937 2007-08-06  Simon Josefsson  <simon@josefsson.org>
47938
47939         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
47940
47941 2007-07-31  Bruno Haible  <bruno@clisp.org>
47942
47943         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
47944         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
47945         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
47946
47947 2007-07-31  Bruno Haible  <bruno@clisp.org>
47948
47949         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
47950         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
47951
47952 2007-07-30  Bruno Haible  <bruno@clisp.org>
47953
47954         * modules/base64 (License): Use the synonymous term "LGPLv2+".
47955         * modules/c-ctype (License): Likewise.
47956         * modules/c-strcase (License): Likewise.
47957         * modules/check-version (License): Likewise.
47958         * modules/iconv (License): Likewise.
47959         * modules/iconv_open (License): Likewise.
47960         * modules/read-file (License): Likewise.
47961         * modules/striconv (License): Likewise.
47962         * modules/strverscmp (License): Likewise.
47963         * modules/vasprintf (License): Likewise.
47964         * modules/crypto/des (License): Likewise.
47965         * modules/crypto/gc (License): Likewise.
47966         * modules/crypto/gc-arcfour (License): Likewise.
47967         * modules/crypto/gc-arctwo (License): Likewise.
47968         * modules/crypto/gc-des (License): Likewise.
47969         * modules/crypto/gc-hmac-md5 (License): Likewise.
47970         * modules/crypto/gc-hmac-sha1 (License): Likewise.
47971         * modules/crypto/gc-md2 (License): Likewise.
47972         * modules/crypto/gc-md4 (License): Likewise.
47973         * modules/crypto/gc-md5 (License): Likewise.
47974         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
47975         * modules/crypto/gc-random (License): Likewise.
47976         * modules/crypto/gc-rijndael (License): Likewise.
47977         * modules/crypto/gc-sha1 (License): Likewise.
47978         * modules/crypto/md2 (License): Likewise.
47979         * modules/crypto/md4 (License): Likewise.
47980
47981 2007-07-30  Jim Meyering  <jim@meyering.net>
47982
47983         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
47984         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
47985         it has valid stat data.  This bug would cause du not to count the
47986         sizes of inaccessible directories.
47987         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
47988         in <http://bugzilla.redhat.com/250077>.
47989
47990 2007-07-25  Peter O'Gorman  <peter@pogma.com>
47991             Bruno Haible  <bruno@clisp.org>
47992
47993         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
47994         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
47995         #include_next, gives a diagnostic about it, but reports no error in
47996         the exit code.
47997         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47998
47999 2007-07-24  Ben Pfaff  <blp@gnu.org>
48000
48001         Improve name: "count-one-bits" is better than "popcount".
48002         * MODULES.html.sh: Update name.
48003         * lib/popcount.h: Renamed lib/count-one-bits.h.
48004         (popcount): Renamed count_one_bits.
48005         (popcountl): Renamed count_one_bits_l.
48006         (popcountll): Renamed count_one_bits_ll.
48007         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
48008         * modules/popcount: Renamed module/count-one-bits.
48009         * modules/popcount-tests: Renamed module/count-one-bits-tests.
48010         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
48011
48012 2007-07-23  Ben Pfaff  <blp@gnu.org>
48013
48014         * lib/popcount.h (popcount32): Reduce size of constants, to allow
48015         better code generation, and add U to large constants to avoid
48016         warnings, in non-GCC case.
48017         Suggested by Bruno Haible.
48018
48019 2007-07-23  Ben Pfaff  <blp@gnu.org>
48020
48021         * lib/popcount.h: Use verify_true instead of if...abort.
48022         * modules/popcount: Depend on verify module.
48023         Suggested by Jim Meyering.
48024
48025 2007-07-23  Bruno Haible  <bruno@clisp.org>
48026
48027         * gnulib-tool (func_import): Create a .cvsignore file also when the
48028         directory is not yet in CVS but the toplevel directory is. When
48029         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
48030         Reported by Karl Berry.
48031
48032 2007-07-22  Ben Pfaff  <blp@gnu.org>
48033
48034         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
48035         case.
48036         Suggested by Eric Blake.
48037
48038 2007-07-22  Ben Pfaff  <blp@gnu.org>
48039
48040         New module: popcount.
48041         * MODULES.html.sh: Add popcount.
48042         * modules/popcount: New file.
48043         * modules/popcount-tests: New file.
48044         * tests/test-popcount.c: New file.
48045         * lib/popcount.h: New file.
48046         * m4/popcount.m4: New file.
48047
48048 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48049
48050         * build-aux/announce-gen: Update to GPLv3.
48051
48052         * build-aux/config.guess: Update from config.
48053
48054 2007-07-21  Bruno Haible  <bruno@clisp.org>
48055
48056         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
48057         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
48058
48059 2007-07-20  Jim Meyering  <jim@meyering.net>
48060
48061         * check-module: Diagnose a self-dependency.
48062
48063 2007-07-19  Bruno Haible  <bruno@clisp.org>
48064
48065         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
48066         empty.
48067         Reported by Eric Blake.
48068
48069 2007-07-18  Bruno Haible  <bruno@clisp.org>
48070
48071         * gnulib-tool: New options --po-base, --po-domain.
48072         (func_usage): Document them.
48073         (pobase, po_domain): New variables.
48074         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
48075         DEFAULT_TEXT_DOMAIN.
48076         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
48077         (func_import): Consider pobase and po_domain. Create a po/ directory.
48078         (func_create_testdir): Set pobase and po_domain to empty.
48079         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
48080         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
48081
48082 2007-07-18  Bruno Haible  <bruno@clisp.org>
48083
48084         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48085         EXTRA_DIST augmentation for files in build-aux/.
48086
48087 2007-07-16  Bruno Haible  <bruno@clisp.org>
48088
48089         * modules/lseek (License): Use the synonymous term "LGPLv2+".
48090         * modules/getdelim (License): Likewise.
48091
48092 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48093
48094         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
48095         * modules/d-type (License): Likewise.
48096         * modules/extensions (License): Likewise.
48097         * modules/fnmatch (License): Likewise.
48098         * modules/fseeko (License): Likewise.
48099         * modules/getaddrinfo (License): Likewise.
48100         * modules/getline (License): Likewise.
48101         * modules/getlogin_r (License): Likewise.
48102         * modules/getpass (License): Likewise.
48103         * modules/gettimeofday (License): Likewise.
48104         * modules/glob (License): Likewise.
48105         * modules/inet_ntop (License): Likewise.
48106         * modules/malloc (License): Likewise.
48107         * modules/malloca (License): Likewise.
48108         * modules/memmem (License): Likewise.
48109         * modules/mempcpy (License): Likewise.
48110         * modules/memset (License): Likewise.
48111         * modules/minmax (License): Likewise.
48112         * modules/mktime (License): Likewise.
48113         * modules/netinet_in (License): Likewise.
48114         * modules/pathmax (License): Likewise.
48115         * modules/poll (License): Likewise.
48116         * modules/regex (License): Likewise.
48117         * modules/snprintf (License): Likewise.
48118         * modules/stdbool (License): Likewise.
48119         * modules/stdint (License): Likewise.
48120         * modules/stdio (License): Likewise.
48121         * modules/strcase (License): Likewise.
48122         * modules/strcasestr (License): Likewise.
48123         * modules/strdup (License): Likewise.
48124         * modules/string (License): Likewise.
48125         * modules/strndup (License): Likewise.
48126         * modules/strnlen (License): Likewise.
48127         * modules/strpbrk (License): Likewise.
48128         * modules/strptime (License): Likewise.
48129         * modules/strsep (License): Likewise.
48130         * modules/sys_select (License): Likewise.
48131         * modules/sys_socket (License): Likewise.
48132         * modules/sys_stat (License): Likewise.
48133         * modules/sys_time (License): Likewise.
48134         * modules/time (License): Likewise.
48135         * modules/time_r (License): Likewise.
48136         * modules/timegm (License): Likewise.
48137         * modules/unistd (License): Likewise.
48138         * modules/vsnprintf (License): Likewise.
48139         * modules/wctype (License): Likewise.
48140
48141 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48142
48143         * modules/argz (License): LGPLv2+.
48144
48145 2007-07-15  Karl Berry  <karl@gnu.org>
48146
48147         * doc/gnulib.texi: revise node structure per new fdl.texi.
48148
48149 2007-07-14  Bruno Haible  <bruno@clisp.org>
48150
48151         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
48152         the output file.
48153         * lib/uniname/uninames.h: Regenerated.
48154
48155 2007-07-14  Karl Berry  <karl@gnu.org>
48156
48157         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
48158         omitting sectioning and index commands.
48159
48160 2007-07-13  Bruno Haible  <bruno@clisp.org>
48161
48162         New gnulib-tool option --more-symlinks.
48163         * gnulib-tool (func_usage): Document --more-symlinks.
48164         (do_copyrights): New variable.
48165         Recognize option --more-symlinks.
48166         (func_import): Don't add a copyright notice transform to
48167         sed_transform_lib_file if do_copyrights is empty.
48168
48169 2007-07-13  Bruno Haible  <bruno@clisp.org>
48170
48171         * lib/vasnprintf.c (decimal_point_char): Define also if
48172         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
48173         && !NEED_PRINTF_DIRECTIVE_A.
48174         Reported by Clemens Koller <clemens.koller@anagramm.de> via
48175         Gary V. Vaughan <gary@gnu.org>.
48176
48177 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
48178
48179         * lib/inttypes_.h: Undo previous change, since it was fixed
48180         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
48181
48182 2007-07-13  Bruno Haible  <bruno@clisp.org>
48183
48184         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
48185         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
48186
48187 2007-07-13  Jim Meyering  <jim@meyering.net>
48188
48189         df: Don't fail for Tru64's "file-on-file mount".
48190         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
48191         so we fall through and use statfs instead.  Details here:
48192         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
48193         Reported by Albert Chin.
48194
48195 2007-07-13  Bruno Haible  <bruno@clisp.org>
48196
48197         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
48198         * modules/configmake (License): Likewise.
48199         * modules/gettext (License): Likewise.
48200         * modules/gettext-h (License): Likewise.
48201         * modules/include_next (License): Likewise.
48202         * modules/link-warning (License): Likewise.
48203         * modules/localcharset (License): Likewise.
48204         * modules/localename (License): Likewise.
48205         * modules/lock (License): Likewise.
48206         * modules/relocatable-lib-lgpl (License): Likewise.
48207         * modules/size_max (License): Likewise.
48208         * modules/vasnprintf (License): Likewise.
48209         * modules/wchar (License): Likewise.
48210         * modules/xsize (License): Likewise.
48211
48212 2007-07-13  Bruno Haible  <bruno@clisp.org>
48213
48214         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
48215         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
48216
48217 2007-07-12  Bruno Haible  <bruno@clisp.org>
48218
48219         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
48220         in the modules files.
48221
48222 2007-07-11  Karl Berry  <karl@gnu.org>
48223
48224         * MODULES.html.sh (func_module): use
48225          sed -e '\|^'"${includefile}"'$|d'
48226          instead of /.../d, to avoid errors on $includefile's containing /.
48227
48228 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48229
48230         * gnulib-tool (func_import): Avoid duplication of --avoid
48231         statements
48232         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
48233         names to `_' in variable names.
48234
48235 2007-07-10  Eric Blake  <ebb9@byu.net>
48236
48237         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
48238         * NEWS: Document this change.
48239
48240 2007-07-08  Bruno Haible  <bruno@clisp.org>
48241
48242         Update to Unicode 5.0.
48243         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
48244         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
48245         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
48246         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
48247         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
48248         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
48249         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
48250         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
48251         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
48252         U+10A3F, U+1D242..U+1D244.
48253         (nonspacing_table_ind): Update.
48254         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
48255         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
48256
48257 2007-07-08  Bruno Haible  <bruno@clisp.org>
48258
48259         Update to Unicode 5.0.
48260         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
48261         code transform. Extend the name index field of unicode_name_to_code and
48262         unicode_code_to_name from 16 to 24 bits.
48263         * lib/uniname/uniname.c (unicode_character_name,
48264         unicode_name_character): Add the range 0x12xxx to the code transform.
48265         * lib/uniname/uninames.h: Regenerated.
48266         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
48267
48268 2007-07-07  Bruno Haible  <bruno@clisp.org>
48269
48270         * modules/wcwidth-tests: New file.
48271         * tests/test-wcwidth.c: New file.
48272
48273         Work around MacOS X wcwidth() bug.
48274         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
48275         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
48276         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
48277         original wcwidth in non-UTF-8 locales.
48278         * modules/wcwidth (Depends-on): Add localcharset, streq,
48279         uniwidth/width.
48280         * doc/functions/wcwidth.texi: Update.
48281
48282 2007-07-07  Bruno Haible  <bruno@clisp.org>
48283
48284         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
48285         (wcwidth): New declaration.
48286         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
48287         macros.
48288         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
48289         here. Prepare for creating <wchar.h> unconditionally.
48290         * modules/wchar (Depends-on): Add link-warning.
48291         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
48292         REPLACE_WCWIDTH, and GL_LINK_WARNING.
48293         * lib/wcwidth.h: Remove file.
48294         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
48295         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
48296         * modules/wcwidth (Files): Remove lib/wcwidth.h.
48297         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
48298         (Include): Replace wcwidth.h with <wchar.h>.
48299         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
48300         * lib/mbchar.h: Don't include wcwidth.h.
48301         * lib/mbswidth.c: Likewise.
48302         * NEWS: Mention the change.
48303
48304 2007-07-07  Bruno Haible  <bruno@clisp.org>
48305
48306         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
48307         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
48308         definition with an external declaration.
48309         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
48310         defined as a function. Remove AC_C_INLINE requirement.
48311         * modules/wcwidth (Files): Add lib/wcwidth.c.
48312         (Makefile.am): Remove redundant statement.
48313
48314 2007-07-07  Bruno Haible  <bruno@clisp.org>
48315
48316         * MODULES.html.sh (Unicode string functions): Add the new modules.
48317
48318         * tests/uniwidth/test-u32-strwidth.c: New file.
48319         * modules/uniwidth/u32-strwidth-tests: New file.
48320
48321         * lib/uniwidth/u32-strwidth.c: New file.
48322         * modules/uniwidth/u32-strwidth: New file.
48323
48324         * tests/uniwidth/test-u16-strwidth.c: New file.
48325         * modules/uniwidth/u16-strwidth-tests: New file.
48326
48327         * lib/uniwidth/u16-strwidth.c: New file.
48328         * modules/uniwidth/u16-strwidth: New file.
48329
48330         * tests/uniwidth/test-u8-strwidth.c: New file.
48331         * modules/uniwidth/u8-strwidth-tests: New file.
48332
48333         * lib/uniwidth/u8-strwidth.c: New file.
48334         * modules/uniwidth/u8-strwidth: New file.
48335
48336         * tests/uniwidth/test-u32-width.c: New file.
48337         * modules/uniwidth/u32-width-tests: New file.
48338
48339         * lib/uniwidth/u32-width.c: New file.
48340         * modules/uniwidth/u32-width: New file.
48341
48342         * tests/uniwidth/test-u16-width.c: New file.
48343         * modules/uniwidth/u16-width-tests: New file.
48344
48345         * lib/uniwidth/u16-width.c: New file.
48346         * modules/uniwidth/u16-width: New file.
48347
48348         * tests/uniwidth/test-u8-width.c: New file.
48349         * modules/uniwidth/u8-width-tests: New file.
48350
48351         * lib/uniwidth/u8-width.c: New file.
48352         * modules/uniwidth/u8-width: New file.
48353
48354         * tests/uniwidth/test-uc_width.c: New file.
48355         * modules/uniwidth/width-tests: New file.
48356
48357         * lib/uniwidth/width.c: New file, from GNU libiconv.
48358         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
48359         * modules/uniwidth/width: New file.
48360
48361         * lib/uniwidth.h: New file, from GNU libiconv.
48362         * modules/uniwidth/base: New file.
48363
48364 2007-07-07  Bruno Haible  <bruno@clisp.org>
48365
48366         * lib/uniname.h: New file, from GNU gettext.
48367         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
48368         * lib/uniname/uninames.h: New file, from GNU gettext.
48369         * lib/uniname/uniname.c: New file, from GNU gettext.
48370         * tests/uniname/test-uninames.sh: New file.
48371         * tests/uniname/test-uninames.c: New file, from GNU gettext.
48372         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
48373         * modules/uniname/base: New file.
48374         * modules/uniname/uniname: New file.
48375         * modules/uniname/uniname-tests: New file.
48376         * MODULES.html.sh (Unicode string functions): Add the new modules.
48377
48378 2007-07-06  Bruno Haible  <bruno@clisp.org>
48379
48380         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
48381
48382 2007-07-06  Bruno Haible  <bruno@clisp.org>
48383
48384         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
48385         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
48386         includes <cygwin/sys_time.h> which includes <sys/select.h> which
48387         include <sys/time.h>.
48388         Reported by Eric Blake.
48389
48390 2007-07-06  Eric Blake  <ebb9@byu.net>
48391
48392         Fix testing canonicalize on cygwin.
48393         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48394         Revert patch from 2007-06-19.
48395         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
48396         canonicalize module is also in use.
48397         * tests/test-canonicalize.c: New file.
48398         * tests/test-canonicalize.sh: Likewise.
48399         * modules/canonicalize-tests: Likewise.
48400
48401 2007-07-06  Jim Meyering  <jim@meyering.net>
48402
48403         * lib/getugroups.c (getugroups): Detect getgrent failure.
48404         Adjust comment to reflect reality: this function may return -1.
48405
48406 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
48407
48408         * build-aux/bootstrap (TP_URL,get_translations): Update to use
48409         the new TP address.
48410         (usage): Fix typo
48411         (gnulib_mk): New variable.
48412
48413 2007-07-05  Jim Meyering  <jim@meyering.net>
48414
48415         Don't let endgrent clobber errno, no matter how improbable.
48416         * lib/getugroups.c (getugroups): Save and restore errno around
48417         endgrent call.
48418
48419         Close the group DB even when failing with 2^31 or more members.
48420         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
48421
48422 2007-07-04  Jim Meyering  <jim@meyering.net>
48423
48424         * lib/getugroups.h: New file.
48425         * lib/getugroups.c: Include "getugroups.h".
48426         Remove uses of "register" keyword.
48427         Move local variable, "cp", down into scope where used.
48428         Give "username" parameter the "const" attribute.
48429         * modules/getugroups (Files): Add lib/getugroups.h
48430
48431 2007-07-04  Karl Berry  <karl@gnu.org>
48432
48433         * MODULES.html.sh (func_all_modules): Complete rename of
48434         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
48435
48436 2007-07-02  Bruno Haible  <bruno@clisp.org>
48437
48438         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
48439         mode, when inttypes.h comes from gnulib.
48440         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48441
48442 2007-07-02  Simon Josefsson  <simon@josefsson.org>
48443
48444         * NEWS: Mention lgpl module name change.
48445
48446         * modules/lgpl-2.1: Renamed from lgpl.
48447
48448         * NEWS: Mention gpl module name change.
48449
48450         * modules/gpl-3.0: New file, based on gpl-2.0.
48451
48452         * modules/gpl-2.0: Renamed from gpl.
48453
48454         * modules/gpl: Fix filename, doc/gpl.texi is now found at
48455         doc/gpl-2.0.texi.
48456
48457 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
48458
48459         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
48460         #define __STDC_LIMIT_MACROS temporarily while including
48461         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
48462         Problem reported by Joel E. Denny in
48463         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
48464
48465 2007-07-01  Bruno Haible  <bruno@clisp.org>
48466
48467         * lib/unistdio.h: New file.
48468         * lib/unistdio/u-asnprintf.h: New file.
48469         * lib/unistdio/u-asprintf.h: New file.
48470         * lib/unistdio/u-printf-args.c: New file.
48471         * lib/unistdio/u-printf-args.h: New file.
48472         * lib/unistdio/u-printf-parse.h: New file.
48473         * lib/unistdio/u-snprintf.h: New file.
48474         * lib/unistdio/u-sprintf.h: New file.
48475         * lib/unistdio/u-vasprintf.h: New file.
48476         * lib/unistdio/u-vsnprintf.h: New file.
48477         * lib/unistdio/u-vsprintf.h: New file.
48478         * lib/unistdio/ulc-asnprintf.c: New file.
48479         * lib/unistdio/ulc-asprintf.c: New file.
48480         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
48481         * lib/unistdio/ulc-printf-parse.c: New file.
48482         * lib/unistdio/ulc-snprintf.c: New file.
48483         * lib/unistdio/ulc-sprintf.c: New file.
48484         * lib/unistdio/ulc-vasnprintf.c: New file.
48485         * lib/unistdio/ulc-vasprintf.c: New file.
48486         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
48487         * lib/unistdio/ulc-vsnprintf.c: New file.
48488         * lib/unistdio/ulc-vsprintf.c: New file.
48489         * lib/unistdio/u8-asnprintf.c: New file.
48490         * lib/unistdio/u8-asprintf.c: New file.
48491         * lib/unistdio/u8-printf-parse.c: New file.
48492         * lib/unistdio/u8-snprintf.c: New file.
48493         * lib/unistdio/u8-sprintf.c: New file.
48494         * lib/unistdio/u8-vasnprintf.c: New file.
48495         * lib/unistdio/u8-vasprintf.c: New file.
48496         * lib/unistdio/u8-vsnprintf.c: New file.
48497         * lib/unistdio/u8-vsprintf.c: New file.
48498         * lib/unistdio/u8-u8-asnprintf.c: New file.
48499         * lib/unistdio/u8-u8-asprintf.c: New file.
48500         * lib/unistdio/u8-u8-snprintf.c: New file.
48501         * lib/unistdio/u8-u8-sprintf.c: New file.
48502         * lib/unistdio/u8-u8-vasnprintf.c: New file.
48503         * lib/unistdio/u8-u8-vasprintf.c: New file.
48504         * lib/unistdio/u8-u8-vsnprintf.c: New file.
48505         * lib/unistdio/u8-u8-vsprintf.c: New file.
48506         * lib/unistdio/u16-asnprintf.c: New file.
48507         * lib/unistdio/u16-asprintf.c: New file.
48508         * lib/unistdio/u16-printf-parse.c: New file.
48509         * lib/unistdio/u16-snprintf.c: New file.
48510         * lib/unistdio/u16-sprintf.c: New file.
48511         * lib/unistdio/u16-vasnprintf.c: New file.
48512         * lib/unistdio/u16-vasprintf.c: New file.
48513         * lib/unistdio/u16-vsnprintf.c: New file.
48514         * lib/unistdio/u16-vsprintf.c: New file.
48515         * lib/unistdio/u16-u16-asnprintf.c: New file.
48516         * lib/unistdio/u16-u16-asprintf.c: New file.
48517         * lib/unistdio/u16-u16-snprintf.c: New file.
48518         * lib/unistdio/u16-u16-sprintf.c: New file.
48519         * lib/unistdio/u16-u16-vasnprintf.c: New file.
48520         * lib/unistdio/u16-u16-vasprintf.c: New file.
48521         * lib/unistdio/u16-u16-vsnprintf.c: New file.
48522         * lib/unistdio/u16-u16-vsprintf.c: New file.
48523         * lib/unistdio/u32-asnprintf.c: New file.
48524         * lib/unistdio/u32-asprintf.c: New file.
48525         * lib/unistdio/u32-printf-parse.c: New file.
48526         * lib/unistdio/u32-snprintf.c: New file.
48527         * lib/unistdio/u32-sprintf.c: New file.
48528         * lib/unistdio/u32-vasnprintf.c: New file.
48529         * lib/unistdio/u32-vasprintf.c: New file.
48530         * lib/unistdio/u32-vsnprintf.c: New file.
48531         * lib/unistdio/u32-vsprintf.c: New file.
48532         * lib/unistdio/u32-u32-asnprintf.c: New file.
48533         * lib/unistdio/u32-u32-asprintf.c: New file.
48534         * lib/unistdio/u32-u32-snprintf.c: New file.
48535         * lib/unistdio/u32-u32-sprintf.c: New file.
48536         * lib/unistdio/u32-u32-vasnprintf.c: New file.
48537         * lib/unistdio/u32-u32-vasprintf.c: New file.
48538         * lib/unistdio/u32-u32-vsnprintf.c: New file.
48539         * lib/unistdio/u32-u32-vsprintf.c: New file.
48540         * tests/unistdio/test-ulc-asnprintf1.c: New file.
48541         * tests/unistdio/test-ulc-asnprintf1.h: New file.
48542         * tests/unistdio/test-ulc-printf1.h: New file.
48543         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
48544         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
48545         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
48546         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
48547         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
48548         * tests/unistdio/test-ulc-vasprintf1.c: New file.
48549         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
48550         * tests/unistdio/test-ulc-vsprintf1.c: New file.
48551         * tests/unistdio/test-u8-asnprintf1.c: New file.
48552         * tests/unistdio/test-u8-asnprintf1.h: New file.
48553         * tests/unistdio/test-u8-printf1.h: New file.
48554         * tests/unistdio/test-u8-vasnprintf1.c: New file.
48555         * tests/unistdio/test-u8-vasnprintf2.c: New file.
48556         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
48557         * tests/unistdio/test-u8-vasnprintf3.c: New file.
48558         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
48559         * tests/unistdio/test-u8-vasprintf1.c: New file.
48560         * tests/unistdio/test-u8-vsnprintf1.c: New file.
48561         * tests/unistdio/test-u8-vsprintf1.c: New file.
48562         * tests/unistdio/test-u16-asnprintf1.c: New file.
48563         * tests/unistdio/test-u16-asnprintf1.h: New file.
48564         * tests/unistdio/test-u16-printf1.h: New file.
48565         * tests/unistdio/test-u16-vasnprintf1.c: New file.
48566         * tests/unistdio/test-u16-vasnprintf2.c: New file.
48567         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
48568         * tests/unistdio/test-u16-vasnprintf3.c: New file.
48569         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
48570         * tests/unistdio/test-u16-vasprintf1.c: New file.
48571         * tests/unistdio/test-u16-vsnprintf1.c: New file.
48572         * tests/unistdio/test-u16-vsprintf1.c: New file.
48573         * tests/unistdio/test-u32-asnprintf1.c: New file.
48574         * tests/unistdio/test-u32-asnprintf1.h: New file.
48575         * tests/unistdio/test-u32-printf1.h: New file.
48576         * tests/unistdio/test-u32-vasnprintf1.c: New file.
48577         * tests/unistdio/test-u32-vasnprintf2.c: New file.
48578         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
48579         * tests/unistdio/test-u32-vasnprintf3.c: New file.
48580         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
48581         * tests/unistdio/test-u32-vasprintf1.c: New file.
48582         * tests/unistdio/test-u32-vsnprintf1.c: New file.
48583         * tests/unistdio/test-u32-vsprintf1.c: New file.
48584         * modules/unistdio/base: New file.
48585         * modules/unistdio/u-printf-args: New file.
48586         * modules/unistdio/ulc-asnprintf: New file.
48587         * modules/unistdio/ulc-asprintf: New file.
48588         * modules/unistdio/ulc-fprintf: New file.
48589         * modules/unistdio/ulc-printf-parse: New file.
48590         * modules/unistdio/ulc-snprintf: New file.
48591         * modules/unistdio/ulc-sprintf: New file.
48592         * modules/unistdio/ulc-vasnprintf: New file.
48593         * modules/unistdio/ulc-vasprintf: New file.
48594         * modules/unistdio/ulc-vfprintf: New file.
48595         * modules/unistdio/ulc-vsnprintf: New file.
48596         * modules/unistdio/ulc-vsprintf: New file.
48597         * modules/unistdio/u8-asnprintf: New file.
48598         * modules/unistdio/u8-asprintf: New file.
48599         * modules/unistdio/u8-printf-parse: New file.
48600         * modules/unistdio/u8-snprintf: New file.
48601         * modules/unistdio/u8-sprintf: New file.
48602         * modules/unistdio/u8-vasnprintf: New file.
48603         * modules/unistdio/u8-vasprintf: New file.
48604         * modules/unistdio/u8-vsnprintf: New file.
48605         * modules/unistdio/u8-vsprintf: New file.
48606         * modules/unistdio/u8-u8-asnprintf: New file.
48607         * modules/unistdio/u8-u8-asprintf: New file.
48608         * modules/unistdio/u8-u8-snprintf: New file.
48609         * modules/unistdio/u8-u8-sprintf: New file.
48610         * modules/unistdio/u8-u8-vasnprintf: New file.
48611         * modules/unistdio/u8-u8-vasprintf: New file.
48612         * modules/unistdio/u8-u8-vsnprintf: New file.
48613         * modules/unistdio/u8-u8-vsprintf: New file.
48614         * modules/unistdio/u16-asnprintf: New file.
48615         * modules/unistdio/u16-asprintf: New file.
48616         * modules/unistdio/u16-printf-parse: New file.
48617         * modules/unistdio/u16-snprintf: New file.
48618         * modules/unistdio/u16-sprintf: New file.
48619         * modules/unistdio/u16-vasnprintf: New file.
48620         * modules/unistdio/u16-vasprintf: New file.
48621         * modules/unistdio/u16-vsnprintf: New file.
48622         * modules/unistdio/u16-vsprintf: New file.
48623         * modules/unistdio/u16-u16-asnprintf: New file.
48624         * modules/unistdio/u16-u16-asprintf: New file.
48625         * modules/unistdio/u16-u16-snprintf: New file.
48626         * modules/unistdio/u16-u16-sprintf: New file.
48627         * modules/unistdio/u16-u16-vasnprintf: New file.
48628         * modules/unistdio/u16-u16-vasprintf: New file.
48629         * modules/unistdio/u16-u16-vsnprintf: New file.
48630         * modules/unistdio/u16-u16-vsprintf: New file.
48631         * modules/unistdio/u32-asnprintf: New file.
48632         * modules/unistdio/u32-asprintf: New file.
48633         * modules/unistdio/u32-printf-parse: New file.
48634         * modules/unistdio/u32-snprintf: New file.
48635         * modules/unistdio/u32-sprintf: New file.
48636         * modules/unistdio/u32-vasnprintf: New file.
48637         * modules/unistdio/u32-vasprintf: New file.
48638         * modules/unistdio/u32-vsnprintf: New file.
48639         * modules/unistdio/u32-vsprintf: New file.
48640         * modules/unistdio/u32-u32-asnprintf: New file.
48641         * modules/unistdio/u32-u32-asprintf: New file.
48642         * modules/unistdio/u32-u32-snprintf: New file.
48643         * modules/unistdio/u32-u32-sprintf: New file.
48644         * modules/unistdio/u32-u32-vasnprintf: New file.
48645         * modules/unistdio/u32-u32-vasprintf: New file.
48646         * modules/unistdio/u32-u32-vsnprintf: New file.
48647         * modules/unistdio/u32-u32-vsprintf: New file.
48648         * modules/unistdio/ulc-asnprintf-tests: New file.
48649         * modules/unistdio/ulc-vasnprintf-tests: New file.
48650         * modules/unistdio/ulc-vasprintf-tests: New file.
48651         * modules/unistdio/ulc-vsnprintf-tests: New file.
48652         * modules/unistdio/ulc-vsprintf-tests: New file.
48653         * modules/unistdio/u8-asnprintf-tests: New file.
48654         * modules/unistdio/u8-vasnprintf-tests: New file.
48655         * modules/unistdio/u8-vasprintf-tests: New file.
48656         * modules/unistdio/u8-vsnprintf-tests: New file.
48657         * modules/unistdio/u8-vsprintf-tests: New file.
48658         * modules/unistdio/u16-asnprintf-tests: New file.
48659         * modules/unistdio/u16-vasnprintf-tests: New file.
48660         * modules/unistdio/u16-vasprintf-tests: New file.
48661         * modules/unistdio/u16-vsnprintf-tests: New file.
48662         * modules/unistdio/u16-vsprintf-tests: New file.
48663         * modules/unistdio/u32-asnprintf-tests: New file.
48664         * modules/unistdio/u32-vasnprintf-tests: New file.
48665         * modules/unistdio/u32-vasprintf-tests: New file.
48666         * modules/unistdio/u32-vsnprintf-tests: New file.
48667         * modules/unistdio/u32-vsprintf-tests: New file.
48668         * MODULES.html.sh (Unicode string functions): Add the new modules.
48669
48670 2007-07-01  Bruno Haible  <bruno@clisp.org>
48671
48672         * lib/sprintf.c (sprintf): Limit the available length estimation,
48673         to avoid address wraparound.
48674         * lib/vsprintf.c (vsprintf): Likewise.
48675         * modules/sprintf-posix (Dependencies): Add stdint.
48676         * modules/vsprintf-posix (Dependencies): Likewise.
48677
48678 2007-07-01  Bruno Haible  <bruno@clisp.org>
48679
48680         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
48681         Windows PATH as well. Conservative double-quoting. Comments.
48682
48683 2007-07-01  Bruno Haible  <bruno@clisp.org>
48684             Eric Blake  <ebb9@byu.net>
48685             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48686
48687         * gnulib-tool (self_abspathname): Fix algorithm to cope with
48688         empty components in $PATH, denoting '.'.
48689
48690 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48691
48692         * gnulib-tool: Fix indentation.
48693         (func_create_megatestdir): Likewise.
48694         Report by Bruno Haible.
48695
48696 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48697
48698         Sync from Automake.
48699         * build-aux/gnupload: Fix shell portability issues with for loops.
48700         Report by Karl Berry.
48701
48702 2007-06-29  Simon Josefsson  <simon@josefsson.org>
48703
48704         * build-aux/maint.mk (POURL): Use translationproject.org.
48705
48706 2007-06-27  Simon Josefsson  <simon@josefsson.org>
48707             Bruno Haible  <bruno@clisp.org>
48708
48709         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
48710         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
48711         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
48712         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
48713         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
48714
48715 2007-06-27  Bruno Haible  <bruno@clisp.org>
48716
48717         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
48718         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
48719
48720 2007-06-26  Karl Berry  <karl@gnu.org>
48721
48722         * MODULES.html.sh: remove xreadlink-with-size.
48723
48724 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48725
48726         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
48727         method that I hope also handles the double-include problem noted
48728         by Bruno Haible in
48729         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
48730
48731 2007-06-23  Bruno Haible  <bruno@clisp.org>
48732
48733         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48734         Don't let the 'mostlyclean' target fail if the last subdirectory could
48735         not be removed.
48736         Reported by Karl Berry.
48737
48738 2007-06-23  Bruno Haible  <bruno@clisp.org>
48739
48740         * gnulib-tool (echo): Add a speedier workaround for ksh.
48741         * tests/test-echo.sh: Likewise.
48742
48743 2007-06-23  Bruno Haible  <bruno@clisp.org>
48744
48745         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
48746         * tests/test-echo.sh: Likewise.
48747
48748 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48749
48750         * gnulib-tool (IFS): Initialize early, so we don't set it to
48751         empty later.
48752         (self_abspathname): Rewrite algorithm to set it, reindent.
48753         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
48754         (func_create_megatestdir): Merge some sed scripts.
48755
48756 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48757
48758         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
48759         exposed by Sun Studio 11 cc on Solaris 8.
48760
48761 2007-06-22  Bruno Haible  <bruno@clisp.org>
48762
48763         * gnulib-tool (echo): Ensure the echo primitive does not interpret
48764         backslashes.
48765         * tests/test-echo.sh: New file.
48766
48767 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48768
48769         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
48770         simplify `sed_replace_build_aux' scripts, they are portable but
48771         echoing them with `echo' is not.
48772         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
48773
48774 2007-06-21  Karl Berry  <karl@gnu.org>
48775
48776         * config/srclist.txt: guess we can't handle the licenses via
48777         srclist at the moment.
48778
48779 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
48780
48781         * MODULES.html.sh: Add include_next.
48782         * modules/include_next: New file.
48783
48784 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48785
48786         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
48787         INCLUDE_NEXT.
48788         (gl_CHECK_NEXT_HEADERS): New macro.
48789         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
48790         the obsolescent gl_ABSOLUTE_HEADER.
48791         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
48792         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
48793         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
48794         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48795         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
48796         * m4/math_h.m4 (gl_MATH_H): Likewise.
48797         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48798         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
48799         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48800         * m4/stdint.m4 (gl_STDINT_H): Likewise.
48801         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
48802         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
48803         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
48804         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48805         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48806         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48807         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
48808         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
48809         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48810         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48811         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48812         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48813         * m4/inttypes.m4 (gl_INTTYPES_H): Define
48814         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
48815         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
48816         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
48817         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
48818         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
48819         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
48820         * lib/float_.h: Likewise.
48821         * lib/inttypes_.h: Likewise.
48822         * lib/math_.h: Likewise.
48823         * lib/search_.h: Likewise.
48824         * lib/signal_.h: Likewise.
48825         * lib/stdint_.h: Likewise.
48826         * lib/stdio_.h: Likewise.
48827         * lib/stdlib_.h: Likewise.
48828         * lib/string_.h: Likewise.
48829         * lib/sys_stat_.h: Likewise.
48830         * lib/sys_time_.h: Likewise.
48831         * lib/time_.h: Likewise.
48832         * lib/unistd_.h: Likewise.
48833         * lib/wchar_.h: Likewise.
48834         * lib/wctype_.h: Likewise.
48835         * lib/dirent_.h: Likewise.
48836         * lib/iconv_.h: Likewise.
48837         * lib/locale_.h: Likewise.
48838         * lib/netinet_in_.h: Likewise.
48839         * lib/sys_select_.h: Likewise.
48840         * lib/sys_socket_.h: Likewise.
48841         * lib/sysexits_.h: Likewise.
48842         * modules/fcntl (Depends-on): Depend on include_next, not
48843         absolute_header.
48844         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
48845         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
48846         * modules/fchdir: Likewise.
48847         * modules/float: Likewise.
48848         * modules/iconv_open: Likewise.
48849         * modules/inttypes: Likewise.
48850         * modules/locale: Likewise.
48851         * modules/math: Likewise.
48852         * modules/netinet_in: Likewise.
48853         * modules/search: Likewise.
48854         * modules/signal: Likewise.
48855         * modules/stdint: Likewise.
48856         * modules/stdio: Likewise.
48857         * modules/stdlib: Likewise.
48858         * modules/string: Likewise.
48859         * modules/sys_select: Likewise.
48860         * modules/sys_socket: Likewise.
48861         * modules/sys_stat: Likewise.
48862         * modules/sys_time: Likewise.
48863         * modules/sysexits: Likewise.
48864         * modules/time: Likewise.
48865         * modules/unistd: Likewise.
48866         * modules/wchar: Likewise.
48867         * modules/wctype: Likewise.
48868         * modules/sys_stat: Change maintainer to "all".
48869         * modules/unistd: Likewise.
48870
48871 2007-06-20  Karl Berry  <karl@gnu.org>
48872
48873         * config/srclist.txt: track www changes in license files.
48874
48875 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
48876
48877         * build-aux/bootstrap: Remove stray dot.
48878         Make sure build_aux settings are honored when linking
48879         gnulib_extra_files.
48880
48881 2007-06-19  Eric Blake  <ebb9@byu.net>
48882
48883         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48884         Allow compilation on cygwin.
48885
48886 2007-06-19  Jim Meyering  <jim@meyering.net>
48887
48888         xreadlink-with-size: Remove module.  No longer used.
48889         Ex-callers now use xreadlink or mreadlink-with-size.
48890         * modules/xreadlink-with-size: Remove module.
48891         * lib/xreadlink-with-size.c: Remove file.
48892         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
48893         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
48894         just before the function definition *is* accurate.
48895
48896         Eliminate one way canonicalize_filename_mode could exit.
48897         * lib/canonicalize.c (canonicalize_filename_mode):
48898         Use mreadlink_with_size, not xreadlink_with_size.
48899
48900 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
48901
48902         Detect porting problems to FreeBSD/arm, which has time_t wider than
48903         long int.  Original problem reported for GNU diff by Xin Li in
48904         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
48905         * modules/getdate (Depends-on): Add intprops, verify.
48906         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
48907         is an integer type no wider than long int.
48908
48909 2007-06-18  Jim Meyering  <jim@meyering.net>
48910
48911         New module: mreadlink-with-size.
48912         * MODULES.html.sh: Add mreadlink-with-size.
48913         * modules/mreadlink-with-size: New module
48914         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
48915         not xreadlink-with-size.
48916         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
48917
48918 2007-06-16  Bruno Haible  <bruno@clisp.org>
48919
48920         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
48921         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
48922         Reported by Gary V. Vaughan <gary@gnu.org>.
48923
48924 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
48925
48926         Revamp lchown so that it lives in unistd.h where it belongs.
48927         * lib/lchown.h: Remove.
48928         * lib/dirchownmod.c: Don't include lib/lchown.h.
48929         * lib/fchownat.c: Likewise.
48930         * lib/openat.c: Likewise.
48931         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
48932         does not follow symlinks.
48933         (EOPNOTSUPP): Define if not defined.
48934         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
48935         is defined to 0.
48936         (lchown): New decl.
48937         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
48938         Do not check for lchown decl.
48939         Set REPLACE_LCHOWN.
48940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
48941         REPLACE_LCHOWN.
48942         * modules/chown: Make it clear it follows symlinks.
48943         * modules/lchown: Make it clear it doesn't follow symlinks.
48944         (Files): Remove lib/lchown.h
48945         (Depends-on): Add unistd.
48946         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
48947         (Include): Include <unistd.h>, not "lchown.h".
48948         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
48949         REPLACE_LCHOWN.
48950
48951 2007-06-15  Jim Meyering  <jim@meyering.net>
48952
48953         Change license (GPL to LGPL) of fsusage and dependents.
48954         * modules/fsusage (License): Change to LGPL.
48955         * modules/full-read (License): Likewise.
48956         * modules/full-write (License): Likewise.
48957         * modules/safe-read (License): Likewise.
48958         * modules/safe-write (License): Likewise.
48959
48960 2007-06-14  Ben Pfaff  <blp@gnu.org>
48961
48962         Missing part of allocsa -> malloca transition.
48963         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
48964         gl_MALLOCA.
48965
48966 2007-06-12  Bruno Haible  <bruno@clisp.org>
48967
48968         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
48969         to ia64, x86_64, i386.
48970         Reported by Eric Blake.
48971
48972 2007-06-12  Bruno Haible  <bruno@clisp.org>
48973
48974         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
48975         cross-compiling to x86_64.
48976
48977 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
48978
48979         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
48980         glitch reported by Ralf Wildenhues in
48981         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
48982
48983         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
48984         Vin Shelton.
48985
48986 2007-06-11  Bruno Haible  <bruno@clisp.org>
48987
48988         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
48989         replacement string.
48990         Reported by Eric Blake.
48991
48992 2007-06-10  Bruno Haible  <bruno@clisp.org>
48993
48994         Prepare vasnprintf code for use with Unicode strings.
48995         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
48996         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
48997         TYPE_U32_STRING.
48998         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
48999         a_u32_string variants.
49000         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49001         * lib/printf-args.c: Don't include config.h and the specification
49002         header if PRINTF_FETCHARGS is already defined.
49003         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49004         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
49005         TYPE_U16_STRING, TYPE_U32_STRING.
49006         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
49007         u16_directive, u16_directives, u32_directive, u32_directives): New
49008         types.
49009         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
49010         New declarations.
49011         * lib/printf-parse.c: Don't include config.h and the specification
49012         header if PRINTF_PARSE is already defined. Eliminate the set of
49013         parameters for WIDE_CHAR_VERSION; the user of this file must provide
49014         them now. Include c-ctype.h.
49015         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
49016         directive and CHAR_T_ONLY_ASCII.
49017         * lib/vasnprintf.c: Don't include config.h and the specification header
49018         if VASNPRINTF is already defined.
49019         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
49020         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
49021         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
49022         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
49023         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
49024         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
49025         code accordingly.
49026         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
49027         pad_ourselves also in this case, with the 'c' and 's' directives, and
49028         with a different notion of "width".
49029         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
49030
49031 2007-06-10  Bruno Haible  <bruno@clisp.org>
49032
49033         * modules/unistr/u32-mbsnlen: New file.
49034         * lib/unistr/u32-mbsnlen.c: New file.
49035
49036         * modules/unistr/u16-mbsnlen: New file.
49037         * lib/unistr/u16-mbsnlen.c: New file.
49038
49039         * modules/unistr/u8-mbsnlen: New file.
49040         * lib/unistr/u8-mbsnlen.c: New file.
49041
49042         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
49043         declarations.
49044
49045 2007-06-10  Bruno Haible  <bruno@clisp.org>
49046
49047         * lib/string_.h (mbsnlen): New declaration.
49048         * lib/mbsnlen.c: New file.
49049         * m4/mbsnlen.m4: New file.
49050         * modules/mbsnlen: New file.
49051         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
49052         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
49053         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
49054
49055 2007-06-10  Bruno Haible  <bruno@clisp.org>
49056
49057         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
49058
49059 2007-06-10  Bruno Haible  <bruno@clisp.org>
49060
49061         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
49062         * lib/mbuiter.h: Likewise.
49063
49064 2007-06-10  Bruno Haible  <bruno@clisp.org>
49065
49066         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
49067         declaration.
49068
49069 2007-06-10  Karl Berry  <karl@gnu.org>
49070
49071         * config/srclist.txt: remove gettext entries, Bruno prefers
49072         to update individually.
49073
49074 2007-06-10  Bruno Haible  <bruno@clisp.org>
49075
49076         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
49077         'maxlen'. Ensure only length + width bytes are allocated, not
49078         length + 1 + width.
49079
49080 2007-06-09  Bruno Haible  <bruno@clisp.org>
49081
49082         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
49083         (CHAR_T): Remove macro.
49084         (VASNPRINTF): Update.
49085
49086 2007-06-09  Bruno Haible  <bruno@clisp.org>
49087
49088         * MODULES.html.sh (Unicode string functions): Add the new modules.
49089
49090         * modules/uniconv/u32-conv-to-enc: New file.
49091         * lib/uniconv/u32-conv-to-enc.c: New file.
49092         * modules/uniconv/u32-conv-to-enc-tests: New file.
49093         * tests/uniconv/test-u32-conv-to-enc.c: New file.
49094
49095         * modules/uniconv/u16-conv-to-enc: New file.
49096         * lib/uniconv/u16-conv-to-enc.c: New file.
49097         * lib/uniconv/u-conv-to-enc.h: New file.
49098         * modules/uniconv/u16-conv-to-enc-tests: New file.
49099         * tests/uniconv/test-u16-conv-to-enc.c: New file.
49100
49101         * modules/uniconv/u8-conv-to-enc: New file.
49102         * lib/uniconv/u8-conv-to-enc.c: New file.
49103         * modules/uniconv/u8-conv-to-enc-tests: New file.
49104         * tests/uniconv/test-u8-conv-to-enc.c: New file.
49105
49106         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49107         u32_conv_to_encoding): New declarations.
49108
49109 2007-06-09  Bruno Haible  <bruno@clisp.org>
49110
49111         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
49112
49113 2007-06-09  Bruno Haible  <bruno@clisp.org>
49114
49115         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
49116         * modules/malloca: Renamed from modules/allocsa, updated.
49117         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
49118         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
49119         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
49120         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
49121         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
49122         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
49123         * modules/xmalloca: Renamed from modules/xallocsa, updated.
49124         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
49125         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
49126         * modules/c-strcasestr (Depends-on): Update.
49127         * lib/c-strcasestr.c: Update.
49128         * modules/c-strstr (Depends-on): Update.
49129         * lib/c-strstr.c: Update.
49130         * modules/canonicalize-lgpl (Depends-on): Update.
49131         * lib/canonicalize-lgpl.c: Update.
49132         * modules/clean-temp (Depends-on): Update.
49133         * lib/clean-temp.c: Update.
49134         * modules/csharpcomp (Depends-on): Update.
49135         * lib/csharpcomp.c: Update.
49136         * modules/csharpexec (Depends-on): Update.
49137         * lib/csharpexec.c: Update.
49138         * modules/javacomp (Depends-on): Update.
49139         * lib/javacomp.c: Update.
49140         * modules/javaexec (Depends-on): Update.
49141         * lib/javaexec.c: Update.
49142         * modules/mbscasestr (Depends-on): Update.
49143         * lib/mbscasestr.c: Update.
49144         * modules/mbsstr (Depends-on): Update.
49145         * lib/mbsstr.c: Update.
49146         * modules/setenv (Depends-on): Update.
49147         * lib/setenv.c: Update.
49148         * modules/strcasestr (Depends-on): Update.
49149         * lib/strcasestr.c: Update.
49150         * modules/striconveha (Depends-on): Update.
49151         * lib/striconveha.c: Update.
49152         * modules/relocatable-prog-wrapper (Files): Update.
49153         * lib/relocwrapper.c: Update.
49154         * build-aux/install-reloc: Update.
49155         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
49156
49157 2007-06-08  Bruno Haible  <bruno@clisp.org>
49158
49159         Port to uClibc.
49160         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
49161         * lib/fpurge.c (fpurge): Likewise.
49162         * lib/freading.c (freading): Likewise.
49163         * lib/fseeko.c (rpl_fseeko): Likewise.
49164         * lib/fseterr.c (fseterr): Likewise.
49165         * lib/fwriting.c (fwriting): Likewise.
49166         * tests/test-fflush.c (main): Avoid a failure on uClibc.
49167
49168 2007-06-08  Bruno Haible  <bruno@clisp.org>
49169
49170         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
49171         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
49172         * modules/gettext (Files): Add m4/intlmacosx.m4.
49173
49174 2007-06-07  Bruno Haible  <bruno@clisp.org>
49175
49176         * modules/localename-tests: New file.
49177         * tests/test-localename.c: New file.
49178
49179         New module 'localename'.
49180         * lib/localename.h: New file.
49181         * lib/localename.c: New file, from GNU gettext.
49182         * m4/localename.m4: New file.
49183         * modules/localename: New file.
49184
49185 2007-06-07  Bruno Haible  <bruno@clisp.org>
49186
49187         Work around the lack of <wchar.h> on some builds of uClibc.
49188         * doc/headers/wchar.texi: Update.
49189         * lib/wchar_.h: Include <wchar.h> only if it exists.
49190         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
49191         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
49192         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
49193         doesn't exist.
49194         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
49195         * modules/mbfile (Depends-on): Add wchar.
49196         * modules/mbiter (Depends-on): Likewise.
49197         * modules/mbuiter (Depends-on): Likewise.
49198         Reported by Simon Josefsson.
49199
49200 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
49201
49202         Work around problem reported by Steven M. Schweda in
49203         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
49204         Tru64 5.1B with the Compaq compiler environment installed declares
49205         an 'isblank' function but does not define it in the C library.
49206         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
49207         * lib/regex_internal.h (isblank): Likewise.
49208         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
49209         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49210
49211 2007-06-05  Bruno Haible  <bruno@clisp.org>
49212
49213         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
49214         ia64.
49215         * modules/printf-safe: New file.
49216         * modules/fprintf-posix (Depends-on): Add printf-safe.
49217         * modules/printf-posix (Depends-on): Likewise.
49218         * modules/snprintf-posix (Depends-on): Likewise.
49219         * modules/sprintf-posix (Depends-on): Likewise.
49220         * modules/vasnprintf-posix (Depends-on): Likewise.
49221         * modules/vasprintf-posix (Depends-on): Likewise.
49222         * modules/vfprintf-posix (Depends-on): Likewise.
49223         * modules/vprintf-posix (Depends-on): Likewise.
49224         * modules/vsnprintf-posix (Depends-on): Likewise.
49225         * modules/vsprintf-posix (Depends-on): Likewise.
49226         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
49227         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
49228         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
49229         "no" on i386, x86_64, ia64.
49230         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
49231         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49232         on i386, x86_64, ia64.
49233         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
49234         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49235         on i386, x86_64, ia64.
49236         * tests/test-vasnprintf-posix.c: Include float.h.
49237         (LDBL80_WORDS): New macro.
49238         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49239         on i386, x86_64, ia64.
49240         * tests/test-vasprintf-posix.c: Include float.h.
49241         (LDBL80_WORDS): New macro.
49242         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49243         on i386, x86_64, ia64.
49244         * tests/test-snprintf-posix.c: Include float.h.
49245         * tests/test-sprintf-posix.c: Likewise.
49246         * tests/test-vsnprintf-posix.c: Likewise.
49247         * tests/test-vsprintf-posix.c: Likewise.
49248
49249 2007-06-05  Bruno Haible  <bruno@clisp.org>
49250
49251         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
49252         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
49253         non-IEEE numbers on i386, x86_64, ia64.
49254         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
49255         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
49256         * tests/test-isnanl.h: Include float.h.
49257         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
49258
49259 2007-06-05  Bruno Haible  <bruno@clisp.org>
49260
49261         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
49262         also the %a / %A. Handle the %a / %A code before this extra handling.
49263
49264 2007-06-05  Bruno Haible  <bruno@clisp.org>
49265
49266         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
49267         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
49268
49269 2007-06-05  Bruno Haible  <bruno@clisp.org>
49270
49271         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
49272         typo in variable name.
49273
49274 2007-06-05  Eric Blake  <ebb9@byu.net>
49275
49276         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
49277         Reported by Simon Josefsson.
49278
49279 2007-06-04  Bruno Haible  <bruno@clisp.org>
49280
49281         Avoid test failures on some PowerPC platforms.
49282         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
49283         Define differently for PowerPC.
49284         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
49285         Reported by Gary V. Vaughan <gary@gnu.org>.
49286
49287 2007-06-02  Bruno Haible  <bruno@clisp.org>
49288
49289         Fix test-stdint failure on FreeBSD/ia64.
49290         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
49291         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
49292         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
49293         * doc/headers/stdint.texi: Update.
49294
49295 2007-06-01  Bruno Haible  <bruno@clisp.org>
49296
49297         * tests/test-binary-io.c (main): Pass a third argument to open().
49298         Reported by Gary V. Vaughan <gary@gnu.org>.
49299
49300 2007-06-01  Bruno Haible  <bruno@clisp.org>
49301
49302         * doc/functions/frexpl.texi: Update for mingw.
49303
49304 2007-06-01  Bruno Haible  <bruno@clisp.org>
49305
49306         * tests/test-lseek.c (main): Disable test of errno for invalid third
49307         argument.
49308         * doc/functions/lseek.texi: Update.
49309         Reported by Gary V. Vaughan <gary@gnu.org>.
49310
49311 2007-05-28  Bruno Haible  <bruno@clisp.org>
49312
49313         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
49314
49315 2007-05-31  Eric Blake  <ebb9@byu.net>
49316
49317         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
49318         cross compiling.
49319
49320 2007-05-30  Eric Blake  <ebb9@byu.net>
49321         and Bruno Haible  <bruno@clisp.org>
49322
49323         Work around mingw test failures exposed by m4-1.4.9b.
49324         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
49325         * tests/test-unistd.c: Disable uid_t and git_t tests for the
49326         moment.
49327
49328 2007-05-30  Bruno Haible  <bruno@clisp.org>
49329
49330         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
49331         assuming that they are closed. Needed on HP-UX 11.
49332
49333 2007-05-29  Bruno Haible  <bruno@clisp.org>
49334
49335         Fix a problem with #include_next.
49336         * lib/dirent_.h: Split the double-inclusion guard.
49337         * lib/fcntl_.h: Likewise.
49338         * lib/float_.h: Likewise.
49339         * lib/iconv_.h: Likewise.
49340         * lib/inttypes_.h: Likewise.
49341         * lib/locale_.h: Likewise.
49342         * lib/math_.h: Likewise.
49343         * lib/netinet_in_.h: Likewise.
49344         * lib/search_.h: Likewise.
49345         * lib/signal_.h: Likewise.
49346         * lib/stdint_.h: Likewise.
49347         * lib/stdio_.h: Likewise.
49348         * lib/stdlib_.h: Likewise.
49349         * lib/string_.h: Likewise.
49350         * lib/sys_select_.h: Likewise.
49351         * lib/sys_socket_.h: Likewise.
49352         * lib/sys_stat_.h: Likewise.
49353         * lib/sys_time_.h: Likewise.
49354         * lib/sysexits_.h: Likewise.
49355         * lib/time_.h: Likewise.
49356         * lib/unistd_.h: Likewise.
49357         * lib/wchar_.h: Likewise.
49358         * lib/wctype_.h: Likewise.
49359
49360 2007-05-29  Bruno Haible  <bruno@clisp.org>
49361
49362         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
49363         for the moment.
49364
49365 2007-05-29  Bruno Haible  <bruno@clisp.org>
49366
49367         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
49368         invocation.
49369         Reported by Eric Blake.
49370
49371 2007-05-29  Bruno Haible  <bruno@clisp.org>
49372
49373         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
49374         compiling case.
49375
49376 2007-05-29  Eric Blake  <ebb9@byu.net>
49377             Bruno Haible  <bruno@clisp.org>
49378
49379         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
49380         cross compiles.
49381
49382 2007-05-28  Eric Blake  <ebb9@byu.net>
49383
49384         * modules/closein-tests (test_closein_LDADD): Support test on
49385         cygwin with libtool.
49386
49387 2007-05-28  Bruno Haible  <bruno@clisp.org>
49388
49389         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
49390         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49391         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49392         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49393         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49394         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49395         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49396         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49397         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49398
49399 2007-05-28  Eric Blake  <ebb9@byu.net>
49400
49401         Unconditionally include <config.h> in unit tests.
49402         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
49403         * tests/test-allocsa.c, tests/test-arcfour.c,
49404         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
49405         tests/test-array_list.c, tests/test-array_oset.c,
49406         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
49407         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
49408         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
49409         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
49410         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
49411         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
49412         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
49413         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
49414         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
49415         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
49416         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
49417         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
49418         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
49419         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
49420         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
49421         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
49422         test-md5.c, test-memmem.c, test-printf-posix.c,
49423         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
49424         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
49425         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
49426         test-strcasestr.c, test-striconv.c, test-striconveh.c,
49427         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
49428         test-vasnprintf-posix2.c, test-vasnprintf.c,
49429         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
49430         test-vfprintf-posix.c, test-vprintf-posix.c,
49431         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
49432         test-xvasprintf.c: Likewise.
49433
49434 2007-05-28  Bruno Haible  <bruno@clisp.org>
49435
49436         * gnulib-tool (func_import): Remember the --with-tests command-line
49437         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
49438         Reported by Eric Blake.
49439
49440 2007-05-28  Bruno Haible  <bruno@clisp.org>
49441
49442         * modules/ftell-tests: New file.
49443         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
49444         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
49445
49446         * lib/ftell.c: New file.
49447         * modules/ftell: New file.
49448         * m4/ftell.m4: New file.
49449         * doc/functions/ftell.texi: Update.
49450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
49451         REPLACE_FTELL.
49452         * lib/stdio_.h (rpl_ftell): New declaration.
49453         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
49454         REPLACE_FTELL.
49455
49456 2007-05-28  Eric Blake  <ebb9@byu.net>
49457
49458         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
49459
49460 2007-05-28  Bruno Haible  <bruno@clisp.org>
49461
49462         * modules/fseek-tests: New file.
49463         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
49464         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
49465
49466         * lib/fseek.c: New file.
49467         * modules/fseek: New file.
49468         * m4/fseek.m4: New file.
49469         * doc/functions/fseek.texi: Update.
49470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
49471         REPLACE_FSEEK.
49472         * lib/stdio_.h (rpl_fseek): New declaration.
49473         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
49474         REPLACE_FSEEK.
49475
49476 2007-05-28  Bruno Haible  <bruno@clisp.org>
49477
49478         * lib/stdio_.h (fflush): More comments.
49479
49480 2007-05-28  Bruno Haible  <bruno@clisp.org>
49481
49482         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
49483         runtime test.
49484
49485 2007-05-28  Eric Blake  <ebb9@byu.net>
49486
49487         Improve lseek module.
49488         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
49489         * lib/unistd_.h (lseek): Scale back link warning message.
49490         * tests/test-lseek.c: Beef up test.
49491         * tests/test-lseek.sh: Exercise more facets of lseek.
49492         Reported by Bruno Haible.
49493
49494 2007-05-28  Bruno Haible  <bruno@clisp.org>
49495
49496         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
49497         to define.
49498
49499 2007-05-27  Bruno Haible  <bruno@clisp.org>
49500
49501         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
49502
49503 2007-05-27  Bruno Haible  <bruno@clisp.org>
49504
49505         * modules/openmp: New file.
49506         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
49507         Noah Misch.
49508
49509 2007-05-26  Bruno Haible  <bruno@clisp.org>
49510
49511         * modules/chdir-long (Depends-on): Add fchdir.
49512         * modules/chdir-safer (Depends-on): Likewise.
49513         * modules/fts (Depends-on): Likewise.
49514         * modules/fts-lgpl (Depends-on): Likewise.
49515         * modules/openat (Depends-on): Likewise.
49516         * modules/savewd (Depends-on): Likewise.
49517
49518 2007-05-24  Eric Blake  <ebb9@byu.net>
49519
49520         Fix lseek on mingw.
49521         * modules/lseek: New module.
49522         * m4/lseek.m4: New file.
49523         * lib/lseek.c: New file.
49524         * modules/lseek-tests: New file.
49525         * tests/test-lseek.c: New file.
49526         * tests/test-lseek.sh: New file.
49527         * MODULES.html.sh: Document lseek module.
49528         * modules/fflush (Depends-on): Add lseek, fseeko.
49529         * modules/fseeko (Depends-on): Likewise.
49530         * modules/ftello (Depends-on): Likewise.
49531         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
49532         broken.
49533         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
49534         broken.
49535         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
49536         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
49537         * lib/ftello.c (rpl_ftello): Likewise.
49538         * tests/test-fseeko.c (main): Test this.
49539         * tests/test-fseeko.sh: Likewise.
49540         * tests/test-ftello.c (main): Likewise.
49541         * tests/test-ftello.sh: Likewise.
49542         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
49543         implies replacing fseek.
49544         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
49545         HAVE_FTELLO.
49546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
49547         * modules/unistd (Makefile.am): Likewise.
49548         * lib/unistd_.h (lseek): Declare a replacement.
49549         * doc/functions/lseek.texi (lseek): Document this fix.
49550         * doc/functions/fseek.texi (fseek): Likewise.
49551         * doc/functions/ftell.texi (ftell): Likewise.
49552
49553 2007-05-24  Bruno Haible  <bruno@clisp.org>
49554
49555         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
49556         in the printed representation of a NaN.
49557         * tests/test-vasprintf-posix.c (test_function): Likewise.
49558         * tests/test-snprintf-posix.h (test_function): Likewise.
49559         * tests/test-sprintf-posix.h (test_function): Likewise.
49560         Reported by Eric Blake.
49561
49562 2007-05-23  Eric Blake  <ebb9@byu.net>
49563
49564         Fix fseeko/ftello on cygwin 1.5.24.
49565         * doc/functions/fseeko.texi (fseeko): Document the fix.
49566         * doc/functions/ftello.texi (ftello): Document the fix.
49567         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
49568         * doc/functions/stdout.text (stdout): New file.
49569         * doc/functions/stderr.text (stderr): New file.
49570         * doc/gnulib.texi (Function Substitutes): Use new files.
49571         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
49572         prior to 1.7.0.
49573         * tests/test-ftello.c (main): Likewise for ftello.
49574         * tests/test-fseeko.sh: New file.
49575         * tests/test-ftello.sh: New file.
49576         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
49577         with seekable stdin.
49578         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
49579         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
49580         (gl_REPLACE_FSEEKO): New macro.
49581         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
49582         * modules/fseeko (Files): Distribute fseeko.c.
49583         * modules/ftello (Files): Distribute ftello.c.
49584         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
49585         mode.
49586         * lib/ftello.c (rpl_ftello): New file.
49587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
49588         fseeko, ftello.
49589         (gl_STDIN_LARGE_OFFSET): New macro.
49590         * modules/stdio (Makefile.am): Perform the replacement.
49591         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
49592
49593 2007-05-23  Bruno Haible  <bruno@clisp.org>
49594
49595         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
49596         GNULIB_POSIXCHECK is defined.
49597
49598 2007-05-21  Bruno Haible  <bruno@clisp.org>
49599
49600         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
49601         Check also the output for NaN arguments. When cross-compiling, guess
49602         no on IRIX.
49603         * lib/vasnprintf.c: Update comments.
49604         * tests/test-vasnprintf-posix.c (strisnan): New function.
49605         (test_function): Use it.
49606         * tests/test-vasprintf-posix.c (strisnan): New function.
49607         (test_function): Use it.
49608         * tests/test-snprintf-posix.h (strisnan): New function.
49609         (test_function): Use it.
49610         * tests/test-sprintf-posix.h (strisnan): New function.
49611         (test_function): Use it.
49612         Reported by Eric Blake.
49613
49614 2007-05-20  Bruno Haible  <bruno@clisp.org>
49615
49616         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
49617         numbers that fails on BeOS.
49618         * doc/functions/frexpl.texi: Update.
49619
49620 2007-05-20  Jim Meyering  <jim@meyering.net>
49621
49622         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
49623         forced upon us by glibc-2.6.
49624
49625 2007-05-20  Bruno Haible  <bruno@clisp.org>
49626
49627         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
49628         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
49629         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
49630         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
49631         NEED_PRINTF_INFINITE.
49632         (is_infinitel): New function.
49633         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
49634         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
49635         gl_PREREQ_VASNPRINTF_INFINITE.
49636         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
49637         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49638         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
49639         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
49640         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
49641         gl_PREREQ_VASNPRINTF_INFINITE.
49642         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49643         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49644         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49645         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49646         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49647         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49648         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49649         * doc/functions/fprintf.texi: Update.
49650         * doc/functions/printf.texi: Update.
49651         * doc/functions/snprintf.texi: Update.
49652         * doc/functions/sprintf.texi: Update.
49653         * doc/functions/vfprintf.texi: Update.
49654         * doc/functions/vprintf.texi: Update.
49655         * doc/functions/vsnprintf.texi: Update.
49656         * doc/functions/vsprintf.texi: Update.
49657
49658 2007-05-20  Bruno Haible  <bruno@clisp.org>
49659
49660         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
49661         was not found in libc.
49662         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49663
49664 2007-05-20  Bruno Haible  <bruno@clisp.org>
49665
49666         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49667         printed as "-nan" instead of "nan".
49668         * tests/test-vasprintf-posix.c (test_function): Likewise.
49669         * tests/test-snprintf-posix.h (test_function): Likewise.
49670         * tests/test-sprintf-posix.h (test_function): Likewise.
49671         Needed for HP-UX 11.
49672
49673 2007-05-20  Jim Meyering  <jim@meyering.net>
49674
49675         Fix buggy test for the fchownat-deref bug.
49676         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
49677         symlink required for the run-test.  Without it, this test would
49678         always declare that fchownat doesn't work, and client code would
49679         unnecessarily use the replacement function with fixed libc.
49680         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
49681         Reported by Greg Schafer.
49682
49683 2007-05-19  Bruno Haible  <bruno@clisp.org>
49684
49685         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
49686         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
49687         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
49688         Needed for IRIX 6.5 and Solaris 2.5.1.
49689
49690 2007-05-19  Bruno Haible  <bruno@clisp.org>
49691
49692         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
49693         (test_function): Skip tests involving -0.0 on platforms where
49694         -0.0 = 0.0.
49695         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
49696         (test_function): Skip tests involving -0.0 on platforms where
49697         -0.0 = 0.0.
49698         * tests/test-snprintf-posix.h (have_minus_zero): New function.
49699         (test_function): Skip tests involving -0.0 on platforms where
49700         -0.0 = 0.0.
49701         * tests/test-sprintf-posix.h (have_minus_zero): New function.
49702         (test_function): Skip tests involving -0.0 on platforms where
49703         -0.0 = 0.0.
49704         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
49705         tests.
49706         * tests/test-printf-posix.h (test_function): Likewise.
49707         * tests/test-printf-posix.output: Remove all -0.0 related results.
49708         Needed for IRIX 6.5.
49709
49710 2007-05-19  Bruno Haible  <bruno@clisp.org>
49711
49712         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49713         printed as "nan0x7fffffff" instead of "nan".
49714         * tests/test-vasprintf-posix.c (test_function): Likewise.
49715         * tests/test-snprintf-posix.h (test_function): Likewise.
49716         * tests/test-sprintf-posix.h (test_function): Likewise.
49717         * tests/test-fprintf-posix.h (NaN): Remove macro.
49718         (test_function): Remove all NaN related tests.
49719         * tests/test-printf-posix.h (NaN): Remove macro.
49720         (test_function): Remove all NaN related tests.
49721         * tests/test-printf-posix.output: Remove all NaN related results.
49722         Needed for IRIX 6.5.
49723
49724 2007-05-19  Bruno Haible  <bruno@clisp.org>
49725
49726         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
49727         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49728
49729 2007-05-19  Bruno Haible  <bruno@clisp.org>
49730
49731         * lib/float_.h: New file.
49732         * m4/float_h.m4: New file.
49733         * modules/float: New file.
49734         * modules/isnanl (Dependencies): Add float.
49735         * modules/isnanl-nolibm (Dependencies): Likewise.
49736         * modules/mathl (Dependencies): Likewise.
49737         * modules/printf-frexpl (Dependencies): Likewise.
49738         * modules/signbit (Dependencies): Likewise.
49739         * modules/vasnprintf (Dependencies): Likewise.
49740         * doc/headers/float.texi: Update.
49741
49742 2007-05-19  Jim Meyering  <jim@meyering.net>
49743
49744         * lib/utimens.c (gl_futimens): Rename from futimens,
49745         now that glibc-2.6 declares futimens.
49746         * lib/utimens.h: Likewise.
49747
49748 2007-05-19  Bruno Haible  <bruno@clisp.org>
49749
49750         Avoid test failures on mingw.
49751         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
49752         * tests/test-printf-posix.sh: Likewise.
49753         * tests/test-vfprintf-posix.sh: Likewise.
49754         * tests/test-vprintf-posix.sh: Likewise.
49755
49756 2007-05-19  Bruno Haible  <bruno@clisp.org>
49757
49758         Fix *printf result for NaN, Inf, -0.0 on mingw.
49759         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
49760         * lib/vasnprintf.c: Include math.h and isnan.h.
49761         (is_infinite_or_zero): New function.
49762         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
49763         values in the %f, %F, %e, %E, %g, %G directives.
49764         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
49765         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49766         gl_PRINTF_INFINITE and test its result. Invoke
49767         gl_PREREQ_VASNPRINTF_INFINITE.
49768         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49769         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49770         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49771         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49772         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49773         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49774         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49775         * doc/functions/fprintf.texi: Update.
49776         * doc/functions/printf.texi: Update.
49777         * doc/functions/snprintf.texi: Update.
49778         * doc/functions/sprintf.texi: Update.
49779         * doc/functions/vfprintf.texi: Update.
49780         * doc/functions/vprintf.texi: Update.
49781         * doc/functions/vsnprintf.texi: Update.
49782         * doc/functions/vsprintf.texi: Update.
49783
49784 2007-05-19  Bruno Haible  <bruno@clisp.org>
49785
49786         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
49787         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
49788         Instead of multiplying with 10^k, set extra_zeroes to k.
49789         (scale10_round_long_double): Remove function.
49790
49791 2007-05-18  Bruno Haible  <bruno@clisp.org>
49792
49793         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
49794         introduced on 2007-05-06.
49795
49796 2007-05-18  Bruno Haible  <bruno@clisp.org>
49797
49798         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
49799         %g directives.
49800         * tests/test-vasprintf-posix.c (test_function): Likewise.
49801         * tests/test-snprintf-posix.h (test_function): Likewise.
49802         * tests/test-sprintf-posix.h (test_function): Likewise.
49803
49804 2007-05-18  Bruno Haible  <bruno@clisp.org>
49805
49806         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
49807         (strmatch): New function.
49808         (test_function): Test the %f directive on numbers of various exponents.
49809         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
49810         (strmatch): New function.
49811         (test_function): Test the %f directive on numbers of various exponents.
49812         * tests/test-snprintf-posix.h (strmatch): New function.
49813         (test_function): Test the %f directive on numbers of various exponents.
49814         * tests/test-sprintf-posix.h (strmatch): New function.
49815         (test_function): Test the %f directive on numbers of various exponents.
49816         * tests/test-snprintf-posix.c (SIZEOF): New macro.
49817         * tests/test-sprintf-posix.c (SIZEOF): New macro.
49818         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
49819         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
49820
49821 2007-05-18  Bruno Haible  <bruno@clisp.org>
49822
49823         Add support for 'long double' number output.
49824         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
49825         * lib/vasnprintf.c: Include math.h and float+.h.
49826         (mp_limb_t): New type.
49827         (GMP_LIMB_BITS): New macro.
49828         (mp_twolimb_t): New type.
49829         (GMP_TWOLIMB_BITS): New macro.
49830         (mpn_t): New type.
49831         (multiply, divide, convert_to_decimal, decode_long_double,
49832         scale10_round_long_double, scale10_round_decimal_long_double,
49833         floorlog10l): New functions.
49834         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
49835         for the %f, %F, %e, %E, %g, %G directives.
49836         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
49837         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49838         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
49839         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
49840         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49841         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49842         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49843         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49844         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49845         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49846         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49847         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
49848         * modules/snprintf-posix (Depends-on): Likewise.
49849         * modules/sprintf-posix (Depends-on): Likewise.
49850         * modules/vasnprintf-posix (Depends-on): Likewise.
49851         * modules/vasprintf-posix (Depends-on): Likewise.
49852         * modules/vfprintf-posix (Depends-on): Likewise.
49853         * modules/vsnprintf-posix (Depends-on): Likewise.
49854         * modules/vsprintf-posix (Depends-on): Likewise.
49855         * modules/vasnprintf (Files): Add lib/float+.h.
49856         * doc/functions/fprintf.texi: Update.
49857         * doc/functions/printf.texi: Update.
49858         * doc/functions/snprintf.texi: Update.
49859         * doc/functions/sprintf.texi: Update.
49860         * doc/functions/vfprintf.texi: Update.
49861         * doc/functions/vprintf.texi: Update.
49862         * doc/functions/vsnprintf.texi: Update.
49863         * doc/functions/vsprintf.texi: Update.
49864
49865 2007-05-18  Bruno Haible  <bruno@clisp.org>
49866
49867         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
49868
49869 2007-05-18  Bruno Haible  <bruno@clisp.org>
49870
49871         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
49872         for printing 64-bit integers. Needed for mingw.
49873
49874 2007-05-18  Bruno Haible  <bruno@clisp.org>
49875
49876         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49877         gl_FUNC_FREXPL_WORKS.
49878         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
49879
49880 2007-05-18  Bruno Haible  <bruno@clisp.org>
49881
49882         * modules/frexpl-nolibm-tests: New file.
49883
49884         * modules/frexpl-nolibm: New file.
49885         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
49886
49887 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
49888
49889         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
49890         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49891         GCC 4.2, which otherwise issues a lot of warnings.
49892         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
49893         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
49894         Likewise.
49895         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
49896         * modules/iconv_open (iconv.h): Likewise.
49897         * modules/locale (locale.h): Likewise.
49898         * modules/netinet_in (netinet/in.h): Likewise.
49899         * modules/sys_select (sys_select.h): Likewise.
49900         * modules/sys_socket (sys/socket.h): Likewise.
49901         * modules/sys_stat (sys/stat.h): Likewise.
49902         * modules/sysexits (sysexits.h): Likewise.
49903         * modules/unistd (unistd.h): Likewise.
49904
49905 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49906
49907         * modules/closein-tests (Makefile.am): Distribute
49908         `test-closein.sh'.
49909
49910 2007-05-17  Bruno Haible  <bruno@clisp.org>
49911
49912         * tests/test-printf-posix.output: Renamed from
49913         tests/test-fprintf-posix.out.
49914         * modules/fprintf-posix-tests: Update.
49915         * modules/printf-posix-tests: Update.
49916         * modules/vfprintf-posix-tests: Update.
49917         * modules/vprintf-posix-tests: Update.
49918         * tests/test-fprintf-posix.sh: Update.
49919         * tests/test-printf-posix.sh: Update.
49920         * tests/test-vfprintf-posix.sh: Update.
49921         * tests/test-vprintf-posix.sh: Update.
49922         Reported by Ralf Wildenhues.
49923
49924 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49925
49926         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
49927         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49928         GCC 4.2, which otherwise issues a lot of warnings.
49929         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
49930         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
49931         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
49932         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
49933         it should no longer be needed.
49934         * lib/string_.h: Likewise.
49935         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
49936         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
49937         * modules/inttypes (inttypes.h): Likewise.
49938         * modules/math (math.h): Likewise.
49939         * modules/search (search.h): Likewise.
49940         * modules/signal (signal.h): Likewise.
49941         * modules/stdint (stdint.h): Likewise.
49942         * modules/stdio (stdio.h): Likewise.
49943         * modules/stdlib (stdlib.h): Likewise.
49944         * modules/string (string.h): Likewise.
49945         * modules/sys_time (sys/time.h): Likewise.
49946         * modules/time (time.h): Likewise.
49947         * modules/wchar (wchar.h): Likewise.
49948         * modules/wctype (wtype.h): Likewise.
49949
49950 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49951
49952         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
49953
49954 2007-05-13  Bruno Haible  <bruno@clisp.org>
49955
49956         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
49957         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49958         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
49959         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49960         (gl_PREREQ_STRTOK_R): Don't require it here.
49961
49962 2007-05-13  Bruno Haible  <bruno@clisp.org>
49963
49964         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
49965         when used in C++ mode.
49966
49967 2007-05-12  Bruno Haible  <bruno@clisp.org>
49968
49969         * lib/linebuffer.h: Tweak doc.
49970         * lib/linebuffer.c: Likewise.
49971
49972 2007-05-12  James Youngman  <jay@gnu.org>
49973
49974         * lib/linebuffer.c (readlinebuffer_delim): New function,
49975         like readlinebuffer, but use a caller-specified delimiter.
49976         (readlinebuffer): Just call readlinebuffer_delim with '\n'
49977         as the delimiter.
49978         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
49979
49980 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49981
49982         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
49983         * modules/openat (Files): Remove openat-die.c.
49984         (Depends-on): Add openat-die.
49985         * modules/openat-die: New module.
49986
49987 2007-05-06  Bruno Haible  <bruno@clisp.org>
49988
49989         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
49990         Update with info about Cygwin.
49991         * doc/functions/fprintf.texi: Update.
49992         * doc/functions/printf.texi: Update.
49993         * doc/functions/snprintf.texi: Update.
49994         * doc/functions/sprintf.texi: Update.
49995         * doc/functions/vfprintf.texi: Update.
49996         * doc/functions/vprintf.texi: Update.
49997         * doc/functions/vsnprintf.texi: Update.
49998         * doc/functions/vsprintf.texi: Update.
49999         Reported by Eric Blake.
50000
50001 2007-05-06  Bruno Haible  <bruno@clisp.org>
50002
50003         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
50004         padding ourselves for the floating-point directives.
50005         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
50006         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
50007         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50008         gl_PRINTF_FLAG_ZERO and test its result. Invoke
50009         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
50010         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50011         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50012         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50013         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50014         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50015         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50016         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50017         * tests/test-snprintf-posix.h (test_function): Also check the width
50018         and some flags in the %f directive.
50019         * tests/test-sprintf-posix.h (test_function): Likewise.
50020         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50021         * tests/test-vasprintf-posix.c (test_function): Likewise.
50022         * doc/functions/fprintf.texi: Update.
50023         * doc/functions/printf.texi: Update.
50024         * doc/functions/snprintf.texi: Update.
50025         * doc/functions/sprintf.texi: Update.
50026         * doc/functions/vfprintf.texi: Update.
50027         * doc/functions/vprintf.texi: Update.
50028         * doc/functions/vsnprintf.texi: Update.
50029         * doc/functions/vsprintf.texi: Update.
50030
50031 2007-05-06  Bruno Haible  <bruno@clisp.org>
50032
50033         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
50034         pass the ' flag character to sprintf or snprintf.
50035         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
50036         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
50037         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50038         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
50039         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
50040         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50041         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50042         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50043         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50044         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50045         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50046         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50047         * tests/test-snprintf-posix.h (test_function): Also check the grouping
50048         flag.
50049         * tests/test-sprintf-posix.h (test_function): Likewise.
50050         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50051         * tests/test-vasprintf-posix.c (test_function): Likewise.
50052         * doc/functions/fprintf.texi: Update.
50053         * doc/functions/printf.texi: Update.
50054         * doc/functions/snprintf.texi: Update.
50055         * doc/functions/sprintf.texi: Update.
50056         * doc/functions/vfprintf.texi: Update.
50057         * doc/functions/vprintf.texi: Update.
50058         * doc/functions/vsnprintf.texi: Update.
50059         * doc/functions/vsprintf.texi: Update.
50060
50061 2007-05-01  Bruno Haible  <bruno@clisp.org>
50062
50063         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
50064
50065 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
50066
50067         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
50068         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
50069
50070 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50071
50072         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
50073         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
50074         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
50075
50076 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
50077
50078         * lib/argp-help.c (struct hol_entry): New member `ord'.
50079         (HOL_ENTRY_PTRCMP): Use ord for comparison
50080         (hol_sort): Initialize ord.
50081
50082 2007-05-01  Bruno Haible  <bruno@clisp.org>
50083
50084         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
50085         Reported by Eric Blake.
50086         * doc/gnulib.texi (Function Substitutes): Update.
50087
50088 2007-05-01  Bruno Haible  <bruno@clisp.org>
50089
50090         * doc/functions.texi: Remove file, now redundant through
50091         doc/functions/*.texi.
50092
50093 2007-05-01  Bruno Haible  <bruno@clisp.org>
50094
50095         * modules/argp (Depends-on): Add sleep.
50096
50097 2007-05-01  Bruno Haible  <bruno@clisp.org>
50098
50099         * modules/sleep-tests: New file.
50100         * tests/test-sleep.c: New file.
50101
50102         * modules/sleep: New file.
50103         * lib/sleep.c: New file.
50104         * m4/sleep.m4: New file.
50105         * lib/unistd_.h (sleep): New declaration.
50106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
50107         HAVE_SLEEP.
50108         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
50109         * doc/functions/sleep.texi: Document the sleep module.
50110
50111 2007-05-01  Bruno Haible  <bruno@clisp.org>
50112
50113         * lib/sigprocmask.h: Remove file.
50114         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
50115         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
50116         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
50117         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
50118         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50119         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
50120         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
50121         HAVE_SIGSET_T as a shell variable.
50122         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
50123         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
50124         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
50125         (Depends-on): Add signal. Remove verify.
50126         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
50127         (Include): Mention <signal.h> instead of sigprocmask.h.
50128         * NEWS: Mention the change.
50129         * lib/fatal-signal.c: Don't include sigprocmask.h.
50130
50131 2007-05-01  Bruno Haible  <bruno@clisp.org>
50132
50133         * modules/signal: New file.
50134         * lib/signal_.h: New file.
50135         * m4/signal_h.m4: New file.
50136
50137 2007-05-01  Bruno Haible  <bruno@clisp.org>
50138
50139         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
50140         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
50141         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
50142         HAVE_WCTYPE_CTMP_BUG into wctype.h.
50143
50144 2007-05-01  Bruno Haible  <bruno@clisp.org>
50145
50146         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
50147         configure time.
50148         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
50149         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
50150         * modules/sys_stat (Makefile.am): Substitute their values into
50151         sys/stat.h.
50152
50153 2007-05-01  Bruno Haible  <bruno@clisp.org>
50154
50155         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
50156         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
50157         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
50158
50159 2007-05-01  Bruno Haible  <bruno@clisp.org>
50160
50161         * doc/header/assert.texi: Undo last change: don't mention the gnulib
50162         'assert' module here.
50163
50164 2007-05-01  Bruno Haible  <bruno@clisp.org>
50165
50166         * doc/functions/*.texi: New files.
50167         * doc/functions/google-ranking.txt: New file.
50168         * doc/gnulib.texi (Function Substitutes): New chapter.
50169         (ctime, inet_ntoa): Remove sections.
50170         * doc/ctime.texi: Remove file.
50171         * doc/inet_ntoa.texi: Remove file.
50172         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
50173         dependencies.
50174         (%.info): New rule, specifying a --reference-limit.
50175
50176 2007-05-01  Bruno Haible  <bruno@clisp.org>
50177
50178         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
50179
50180 2007-05-01  Bruno Haible  <bruno@clisp.org>
50181
50182         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
50183         the portability of 'mkdir' to mingw systems.
50184
50185 2007-05-01  Bruno Haible  <bruno@clisp.org>
50186
50187         * doc/headers/google-ranking.txt: New file.
50188
50189 2007-04-30  Eric Blake  <ebb9@byu.net>
50190
50191         Prefer fseeko to fseek.
50192         * modules/getpass (Depends-on): Add fseeko.
50193         * lib/getpass.c (getpass): Use fseeko, not fseek.
50194
50195 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
50196
50197         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
50198         assumes the sorting is stable, while most qsort implementations
50199         are not.  Use argument addresses to ensure they never compare as
50200         equal.
50201
50202         * tests/test-argp-2.sh (usage-indent test): Fix output
50203         (func_compare): Restore diff options
50204         * tests/test-argp.c: Restore #include "progname.h"
50205
50206 2007-04-29  Bruno Haible  <bruno@clisp.org>
50207
50208         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
50209         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50210         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
50211         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50212         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
50213         (configure.ac): Define CHECK_SNPRINTF_POSIX.
50214         (TESTS, check_PROGRAMS): Add test-snprintf.
50215         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
50216         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
50217         (TESTS, check_PROGRAMS): Add test-vsnprintf.
50218         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
50219         assertions that fail on HP-UX, OSF/1, or IRIX.
50220         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
50221
50222 2007-04-29  Bruno Haible  <bruno@clisp.org>
50223
50224         * MODULES.html.sh (posix_functions): Remove 'contents'.
50225
50226 2007-04-29  Karl Berry  <karl@gnu.org>
50227
50228         * config/srclist.txt (gendocs_template_min): new entry.
50229
50230 2007-04-29  Bruno Haible  <bruno@clisp.org>
50231
50232         Work around fpurge bug on BSD systems.
50233         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
50234         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
50235         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
50236         fpurge to rpl_fpurge if the system already has this function.
50237         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
50238         the case where the system already has this function. Correct invariants
50239         on BSD systems.
50240         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
50241         BSD systems.
50242
50243 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50244
50245         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
50246         proposed by Sven Verdoolaege.
50247
50248         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
50249         options.
50250         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
50251         (usage and help tests): Update
50252
50253 2007-04-29  Bruno Haible  <bruno@clisp.org>
50254
50255         * tests/test-fflush.c (main): Use a file of size 17, not 10.
50256         Print more information in case of failure. Disable a test on BeOS.
50257
50258 2007-04-29  Bruno Haible  <bruno@clisp.org>
50259
50260         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
50261         This helps debugging on systems on which no gdb is available.
50262
50263 2007-04-29  Bruno Haible  <bruno@clisp.org>
50264
50265         * lib/freading.h: Improve comments.
50266         * lib/fwriting.h: Likewise.
50267         * tests/test-freading.c (main): Don't check freading immediately after
50268         repositioning. Needed for glibc.
50269
50270 2007-04-29  Bruno Haible  <bruno@clisp.org>
50271
50272         * lib/freading.c (freading): Trivial simplification.
50273
50274 2007-04-28  Bruno Haible  <bruno@clisp.org>
50275
50276         * tests/test-fwriting.c (main): Also test the interaction between
50277         fflush and fwriting.
50278         * modules/fwriting-tests (Depends-on): Add fflush.
50279
50280         * tests/test-freading.c (main): Also test the interaction between
50281         fflush and freading.
50282         * modules/freading-tests (Depends-on): Add fflush.
50283
50284 2007-04-28  Bruno Haible  <bruno@clisp.org>
50285
50286         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
50287         fseeko and ftello.
50288         Suggested by Eric Blake.
50289
50290 2007-04-28  Jim Meyering  <jim@meyering.net>
50291
50292         Avoid false-negative in gl_STDINT_H's C99 conformance test.
50293         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
50294         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
50295
50296 2007-04-27  Eric Blake  <ebb9@byu.net>
50297
50298         * doc/headers/assert.texi (assert.h): Document assert module use.
50299
50300 2007-04-27  Bruno Haible  <bruno@clisp.org>
50301
50302         * doc/headers/*.texi: New files.
50303         * doc/gnulib.texi (Header File Substitutes): New chapter.
50304         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
50305         dependencies.
50306         (standards.info ,standards.html, standards.dvi): Update dependencies.
50307         (mostlyclean, clean): New targets.
50308
50309 2007-04-27  Bruno Haible  <bruno@clisp.org>
50310
50311         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
50312         * modules/sysexits (Files, Makefile.am): Update.
50313
50314         * lib/sys_socket_.h: Renamed from lib/socket_.h.
50315         * modules/sys_socket (Files, Makefile.am): Update.
50316
50317         * lib/sys_stat_.h: Renamed from lib/stat_.h.
50318         * modules/sys_stat (Files, Makefile.am): Update.
50319
50320 2007-04-27  Eric Blake  <ebb9@byu.net>
50321
50322         * lib/freading.h: Improve comments.
50323         * lib/fwriting.h: Likewise.
50324         * lib/fflush.c: Likewise.
50325
50326         Fix closein for mingw.
50327         * modules/closein-tests: Add tests for closein.
50328         * tests/test-closein.c: New file.
50329         * tests/test-closein.sh: Likewise.
50330         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
50331         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
50332
50333 2007-04-27  Bruno Haible  <bruno@clisp.org>
50334
50335         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
50336         version is < 6.
50337         * lib/math_.h [__DECC]: Likewise.
50338         * lib/stdio_.h [__DECC]: Likewise.
50339         * lib/stdlib_.h [__DECC]: Likewise.
50340         * lib/string_.h [__DECC]: Likewise.
50341         * lib/time_.h [__DECC]: Likewise.
50342         * lib/wchar_.h [__DECC]: Likewise.
50343         * lib/wctype_.h [__DECC]: Likewise.
50344
50345 2007-04-27  Bruno Haible  <bruno@clisp.org>
50346
50347         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
50348
50349 2007-04-27  Bruno Haible  <bruno@clisp.org>
50350
50351         * lib/fflush.c: Add comments.
50352         * modules/fpurge-tests (Depends-on): Add fflush.
50353         * modules/freadable-tests (Depends-on): Likewise.
50354         * modules/fwritable-tests (Depends-on): Likewise.
50355
50356 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
50357
50358         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
50359         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
50360         Report by Bruno Haible <bruno@clisp.org>.
50361
50362 2007-04-26  Eric Blake  <ebb9@byu.net>
50363
50364         Fix fflush on mingw.
50365         * modules/fflush (Depends-on): Add freading.
50366         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
50367         but unread data.
50368
50369 2007-04-26  Eric Blake  <ebb9@byu.net>
50370         and Bruno Haible  <bruno@clisp.org>
50371
50372         Implement freading and fwriting.
50373         * lib/freading.c: New file.
50374         * lib/freading.h: Likewise.
50375         * m4/freading.m4: Likewise.
50376         * modules/freading: Likewise.
50377         * modules/freading-tests: Likewise.
50378         * tests/test-freading.c: Likewise.
50379         * lib/fwriting.c: New file.
50380         * lib/fwriting.h: Likewise.
50381         * m4/fwriting.m4: Likewise.
50382         * modules/fwriting: Likewise.
50383         * modules/fwriting-tests: Likewise.
50384         * tests/test-fwriting.c: Likewise.
50385         * MODULES.html.sh (File stream based Input/Output): Mention them.
50386
50387 2007-04-26  Bruno Haible  <bruno@clisp.org>
50388
50389         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
50390         'long' when we assume it.
50391         Suggested by Eric Blake.
50392
50393 2007-04-26  Bruno Haible  <bruno@clisp.org>
50394
50395         Ensure fseeko, ftello are declared on glibc systems.
50396         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
50397         * modules/fseeko (configure.ac-early): Likewise.
50398         * modules/ftello (configure.ac-early): Likewise.
50399         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
50400         AC_FUNC_FSEEKO for this.
50401         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
50402         (gl_CHECK_FSEEKO): Remove macro.
50403
50404 2007-04-26  Bruno Haible  <bruno@clisp.org>
50405
50406         * tests/test-fflush.c (main): Also check the ftell result after
50407         fflush and fseek/fseeko.
50408         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
50409         file descriptor position cache in the stream.
50410         * lib/fseeko.c (rpl_fseeko): Likewise.
50411
50412 2007-04-26  Bruno Haible  <bruno@clisp.org>
50413
50414         * modules/fflush-tests (Depends-on): Add fseeko.
50415
50416 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
50417             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50418
50419         * lib/argz_.h: ensure error_t definition is obtained in same
50420         mechanism system argz.h would have.
50421         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
50422         argz facilities are known bad.  Err on the side of caution if
50423         cross-compiling.
50424
50425 2007-04-25  Eric Blake  <ebb9@byu.net>
50426
50427         * lib/fpurge.c (includes): Use stdlib.h for free.
50428         * tests/test-fflush.c (main): Also test fflush-fseeko.
50429
50430 2007-04-25  Bruno Haible  <bruno@clisp.org>
50431
50432         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
50433         * lib/fseeko.c: New file.
50434         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
50435         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
50436         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
50437         gl_FUNC_FSEEKO.
50438         (gl_FUNC_FSEEKO): Invoke it.
50439         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
50440         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
50441         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
50442
50443 2007-04-25  Bruno Haible  <bruno@clisp.org>
50444
50445         * modules/fflush (Depends-on): Add ftello.
50446
50447 2007-04-25  Bruno Haible  <bruno@clisp.org>
50448
50449         * modules/ftello-tests: New file.
50450         * tests/test-ftello.c: New file.
50451
50452         * modules/ftello: New file.
50453         * m4/ftello.m4: New file.
50454         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
50455         HAVE_FTELLO.
50456         * lib/stdio_.h (ftello): New declaration.
50457         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
50458         HAVE_FTELLO.
50459
50460 2007-04-25  Bruno Haible  <bruno@clisp.org>
50461
50462         * modules/fseeko-tests: New file.
50463         * tests/test-fseeko.c: New file.
50464
50465         * modules/fseeko: New file.
50466         * m4/fseeko.m4: New file.
50467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
50468         HAVE_FSEEKO.
50469         * lib/stdio_.h (fseeko): New declaration.
50470         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
50471         HAVE_FSEEKO.
50472
50473 2007-04-25  Bruno Haible  <bruno@clisp.org>
50474
50475         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
50476
50477 2007-04-25  Bruno Haible  <bruno@clisp.org>
50478
50479         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
50480         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
50481         * tests/test-unistd.c: Likewise.
50482         * tests/test-fcntl.c: Likewise.
50483
50484 2007-04-23  Eric Blake  <ebb9@byu.net>
50485
50486         * lib/fflush.c: Fix missing include.
50487         Reported by Bruno Haible.
50488
50489 2007-04-23  Bruno Haible  <bruno@clisp.org>
50490
50491         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
50492         Reported by Eric Blake.
50493
50494 2007-04-23  Bruno Haible  <bruno@clisp.org>
50495
50496         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
50497
50498 2007-04-23  Bruno Haible  <bruno@clisp.org>
50499
50500         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
50501
50502 2007-04-23  Bruno Haible  <bruno@clisp.org>
50503
50504         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
50505         Needed on HP-UX 11.
50506
50507 2007-04-16  Eric Blake  <ebb9@byu.net>
50508
50509         Make fflush rely on fpurge.
50510         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
50511         open coding all variants.
50512         * modules/fflush (Depends-on): Add fpurge and unistd.
50513         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
50514         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
50515
50516         Fix --with-tests compilation on cygwin.
50517         * modules/argmatch-tests (Makefile.am): List gnulib library first
50518         in LDADD.
50519         * modules/argp-tests (Makefile.am): Likewise.
50520         * modules/array-list-tests (Makefile.am): Likewise.
50521         * modules/array-oset-tests (Makefile.am): Likewise.
50522         * modules/avltree-list-tests (Makefile.am): Likewise.
50523         * modules/avltree-oset-tests (Makefile.am): Likewise.
50524         * modules/avltreehash-list-tests (Makefile.am): Likewise.
50525         * modules/carray-list-tests (Makefile.am): Likewise.
50526         * modules/dirname-tests (Makefile.am): Likewise.
50527         * modules/frexp-tests (Makefile.am): Likewise.
50528         * modules/isnanl-tests (Makefile.am): Likewise.
50529         * modules/linked-list-tests (Makefile.am): Likewise.
50530         * modules/linkedhash-list-tests (Makefile.am): Likewise.
50531         * modules/lock-tests (Makefile.am): Likewise.
50532         * modules/rbtree-list-tests (Makefile.am): Likewise.
50533         * modules/rbtree-oset-tests (Makefile.am): Likewise.
50534         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
50535         * modules/tls-tests (Makefile.am): Likewise.
50536         * modules/tsearch-tests (Makefile.am): Likewise.
50537         * modules/xvasprintf-tests (Makefile.am): Likewise.
50538
50539         Fix fpurge for cygwin.
50540         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
50541         value.
50542         * modules/fpurge-tests (Depends-on): Clean up trash.
50543
50544 2007-04-16  Simon Josefsson  <simon@josefsson.org>
50545
50546         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
50547
50548         * m4/autobuild.m4: Re-indent.
50549
50550 2007-04-13  Bruno Haible  <bruno@clisp.org>
50551
50552         * modules/fpurge-tests: New file.
50553         * tests/test-fpurge.c: New file.
50554
50555         * modules/fpurge: New file.
50556         * lib/fpurge.h: New file.
50557         * lib/fpurge.c: New file.
50558         * m4/fpurge.m4: New file.
50559
50560 2007-04-13  Bruno Haible  <bruno@clisp.org>
50561
50562         * modules/fbufmode-tests: New file.
50563         * tests/test-fbufmode.c: New file.
50564
50565         * modules/fbufmode: New file.
50566         * lib/fbufmode.h: New file.
50567         * lib/fbufmode.c: New file.
50568         * m4/fbufmode.m4: New file.
50569
50570 2007-04-13  Bruno Haible  <bruno@clisp.org>
50571
50572         * modules/fwritable-tests: New file.
50573         * tests/test-fwritable.c: New file.
50574
50575         * modules/fwritable: New file.
50576         * lib/fwritable.h: New file.
50577         * lib/fwritable.c: New file.
50578         * m4/fwritable.m4: New file.
50579
50580 2007-04-13  Bruno Haible  <bruno@clisp.org>
50581
50582         * modules/freadable-tests: New file.
50583         * tests/test-freadable.c: New file.
50584
50585         * modules/freadable: New file.
50586         * lib/freadable.h: New file.
50587         * lib/freadable.c: New file.
50588         * m4/freadable.m4: New file.
50589
50590 2007-04-13  Bruno Haible  <bruno@clisp.org>
50591
50592         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
50593         MOSTLYCLEANFILES.
50594
50595 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50596
50597         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
50598         gzip bootstrap.conf to avoid dragging in i18n machinery.
50599         (gnulib_tool_option): Use it.
50600
50601 2007-04-13  Bruno Haible  <bruno@clisp.org>
50602
50603         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
50604         %F directives.
50605         * tests/test-vasprintf-posix.c (test_function): Likewise.
50606         * tests/test-snprintf-posix.h (test_function): Likewise.
50607         * tests/test-sprintf-posix.h (test_function): Likewise.
50608         * tests/test-fprintf-posix.h (test_function): Likewise.
50609         * tests/test-printf-posix.h (test_function): Likewise.
50610         * tests/test-fprintf-posix.out: Likewise.
50611
50612 2007-04-13  Bruno Haible  <bruno@clisp.org>
50613
50614         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
50615         * modules/tls-tests (configure.ac): Likewise.
50616         Reported by Arto C. Nirkko <anirkko@insel.ch>.
50617
50618 2007-04-13  Bruno Haible  <bruno@clisp.org>
50619
50620         * lib/tls.c (glthread_tls_get): Fix return type.
50621         Patch by Arto C. Nirkko <anirkko@insel.ch>.
50622
50623 2007-04-12  Eric Blake  <ebb9@byu.net>
50624
50625         * modules/gettime (Depends-on): Remove gettime.
50626         Reported by Dmitry V. Levin.
50627
50628 2007-04-12  Bruno Haible  <bruno@clisp.org>
50629
50630         * modules/fflush (Include): Mention <stdio.h>.
50631         * modules/strtoimax (Include): Mention <inttypes.h>.
50632         * modules/strtoumax (Include): Likewise.
50633
50634 2007-04-12  Eric Blake  <ebb9@byu.net>
50635
50636         * .cvsignore: New file.
50637         * .gitignore: Likewise.
50638
50639 2007-04-12  Bruno Haible  <bruno@clisp.org>
50640
50641         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
50642         not before, since $(LDADD) often contains libgnu.a.
50643         * modules/striconv-tests (test_striconv_LDADD): Likewise.
50644         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
50645         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
50646         Needed on Cygwin.
50647
50648 2007-04-12  Eric Blake  <ebb9@byu.net>
50649
50650         Work around glibc's failure to flush stdin on fclose.
50651         * lib/closein.c (close_stdin): Flush stdin before closing.
50652
50653         Work around glibc's failure to reset seekable stdin on exit.
50654         * modules/closein: New module.
50655         * lib/closein.c: New file.
50656         * lib/closein.h: Likewise.
50657         * m4/closein.m4: Likewise.
50658         * MODULES.html.sh (File stream based Input/Output): Document it.
50659
50660 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50661
50662         * gnulib-tool: Rename generated 'autobuild' script to
50663         'do-autobuild' in --create-megatestdir output.
50664
50665         * doc/gnulib.texi (Build robot for gnulib): Fix.
50666
50667 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50668
50669         * modules/sysexits (Depends-on): Add absolute-header.
50670
50671 2007-04-12  Eric Blake  <ebb9@byu.net>
50672
50673         No need to preserve errno on success.
50674         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
50675         Reported by Bruno Haible.
50676
50677 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50678
50679         * MODULES.html.sh (Support for maintaining and releasing
50680         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
50681
50682 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50683
50684         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
50685
50686 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50687
50688         * modules/autobuild: New module.
50689
50690         * m4/autobuild.m4: New file.
50691
50692 2007-04-11  Bruno Haible  <bruno@clisp.org>
50693
50694         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
50695         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
50696         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
50697         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
50698         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50699         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50700         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50701         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50702         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50703         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50704         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
50705         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50706         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50707         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
50708         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50709         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50710         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
50711         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50712         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50713         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
50714         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50715         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50716         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
50717         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50718         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50719         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
50720         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50721         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50722         Reported by Eric Blake.
50723
50724 2007-04-11  Bruno Haible  <bruno@clisp.org>
50725
50726         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
50727
50728 2007-04-10  Bruno Haible  <bruno@clisp.org>
50729
50730         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
50731         for NaN and Infinity. Needed on FreeBSD 6.1.
50732         * tests/test-vasnprintf-posix.c (test_function): Undo last change
50733         regarding results for "%010a" of Infinity and NaN.
50734         * tests/test-vasprintf-posix.c (test_function): Likewise.
50735         * tests/test-snprintf-posix.h (test_function): Likewise.
50736         * tests/test-sprintf-posix.h (test_function): Likewise.
50737         * tests/test-fprintf-posix.h (test_function): Likewise.
50738         * tests/test-printf-posix.h (test_function): Likewise.
50739         * tests/test-fprintf-posix.out: Likewise.
50740
50741 2007-04-10  Bruno Haible  <bruno@clisp.org>
50742
50743         * modules/locale-tests: New file.
50744         * tests/test-locale.c: New file.
50745
50746         * modules/locale: New file.
50747         * lib/locale_.h: New file.
50748         * m4/locale_h.m4: New file.
50749
50750 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
50751             Bruno Haible  <bruno@clisp.org>
50752
50753         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
50754         be determined, test for availability of the copysignf, copysign,
50755         copysignl functions.
50756         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
50757         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
50758         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
50759
50760 2007-04-09  Eric Blake  <ebb9@byu.net>
50761
50762         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
50763         * modules/stdio (Makefile.am): Support fflush.
50764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50765         * modules/fflush: New file.
50766         * lib/fflush.c: Likewise.
50767         * m4/fflush.m4: Likewise.
50768         * modules/fflush-tests: New test.
50769         * tests/test-fflush.c: Likewise.
50770         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
50771
50772 2007-04-06  Bruno Haible  <bruno@clisp.org>
50773
50774         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
50775         (VASNPRINTF): Use signbit for faster determination whether to print a
50776         minus sign.
50777         * modules/vasnprintf (Files): Remove lib/float+.h.
50778         * modules/fprintf-posix (Depends-on): Add signbit.
50779         * modules/snprintf-posix (Depends-on): Likewise.
50780         * modules/sprintf-posix (Depends-on): Likewise.
50781         * modules/vasnprintf-posix (Depends-on): Likewise.
50782         * modules/vasprintf-posix (Depends-on): Likewise.
50783         * modules/vfprintf-posix (Depends-on): Likewise.
50784         * modules/vsnprintf-posix (Depends-on): Likewise.
50785         * modules/vsprintf-posix (Depends-on): Likewise.
50786
50787 2007-04-06  Bruno Haible  <bruno@clisp.org>
50788
50789         * tests/test-frexp.c (main): Test also the sign bit of zero results.
50790         * tests/test-frexpl.c (main): Likewise.
50791         * tests/test-ldexpl.c (main): Likewise.
50792         * modules/frexp-tests (Depends-on): Add signbit.
50793         * modules/frexpl-tests (Depdends-on): Likewise.
50794         * modules/ldexpl-tests (Depdends-on): Likewise.
50795
50796 2007-04-06  Bruno Haible  <bruno@clisp.org>
50797
50798         * modules/signbit-tests: New file.
50799         * tests/test-signbit.c: New file.
50800
50801         * modules/signbit: New file.
50802         * lib/signbitf.c: New file.
50803         * lib/signbitd.c: New file.
50804         * lib/signbitl.c: New file.
50805         * m4/signbit.m4: New file.
50806         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
50807         (signbit): New macro.
50808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
50809         REPLACE_SIGNBIT.
50810         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
50811         REPLACE_FREXPL into math.h.
50812
50813 2007-04-06  Bruno Haible  <bruno@clisp.org>
50814
50815         * modules/isnanf-nolibm-tests: New file.
50816         * tests/test-isnanf.c: New file.
50817
50818         * modules/isnanf-nolibm: New file.
50819         * lib/isnanf.h: New file.
50820         * lib/isnanf.c: New file.
50821         * lib/isnan.c: Consider the USE_FLOAT macro.
50822         * m4/isnanf.m4: New file.
50823
50824 2007-04-06  Bruno Haible  <bruno@clisp.org>
50825
50826         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
50827         (Link): New section.
50828
50829         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
50830
50831 2007-04-06  Bruno Haible  <bruno@clisp.org>
50832
50833         Assume the 'long double' type.
50834         * m4/longdouble.m4: Remove file.
50835         * config/srclist.txt: Don't mention longdouble.m4.
50836         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
50837         * lib/float+.h: Likewise.
50838         * lib/frexp.c: Likewise.
50839         * lib/printf-args.h: Likewise.
50840         * lib/printf-args.c: Likewise.
50841         * lib/printf-frexp.c: Likewise.
50842         * lib/printf-parse.c: Likewise.
50843         * lib/vasnprintf.c: Likewise.
50844         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
50845         * m4/intl.m4: Likewise.
50846         * m4/isnanl.m4: Likewise.
50847         * m4/printf.m4: Likewise.
50848         * m4/printf-frexpl.m4: Likewise.
50849         * m4/vasnprintf.m4: Likewise.
50850         * modules/allocsa (Files): Remove m4/longdouble.m4.
50851         * modules/gettext (Files): Likewise.
50852         * modules/relocatable-prog-wrapper (Files): Likewise.
50853         * modules/vasnprintf (Files): Likewise.
50854         * modules/isnanl (Files): Likewise.
50855         (Include): Simplify.
50856         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
50857         (Include): Simplify.
50858         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
50859         (Include): Simplify.
50860         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
50861         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50862         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
50863         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50864         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50865         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50866         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
50867         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50868         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50869         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50870         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
50871         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50872         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
50873         * tests/test-isnanl.c: Likewise.
50874         * tests/test-snprintf-posix.h: Likewise.
50875         * tests/test-sprintf-posix.h: Likewise.
50876         * tests/test-vasnprintf-posix.c: Likewise.
50877         * tests/test-vasnprintf-posix2.c: Likewise.
50878         * tests/test-vasprintf-posix.c: Likewise.
50879
50880 2007-04-06  Bruno Haible  <bruno@clisp.org>
50881
50882         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
50883         * lib/math_.h [__DECC]: Include the overridden include file through
50884         #include_next, outside the double-inclusion guard.
50885         * lib/stdio_.h [__DECC]: Likewise.
50886         * lib/stdlib_.h [__DECC]: Likewise.
50887         * lib/string_.h [__DECC]: Likewise.
50888         * lib/time_.h [__DECC]: Likewise.
50889         * lib/wchar_.h [__DECC]: Likewise.
50890         * lib/wctype_.h [__DECC]: Likewise.
50891         * lib/inttypes_.h [__DECC]: Likewise.
50892         Reported by Albert Chin <china@thewrittenword.com> in
50893         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
50894
50895 2007-04-04  Eric Blake  <ebb9@byu.net>
50896
50897         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
50898         1.5.x.
50899
50900 2007-04-04  Bruno Haible  <bruno@clisp.org>
50901
50902         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
50903         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
50904
50905 2007-04-04  Bruno Haible  <bruno@clisp.org>
50906
50907         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
50908         results for "%010a" of Infinity and NaN.
50909         * tests/test-vasprintf-posix.c (test_function): Likewise.
50910         * tests/test-snprintf-posix.h (test_function): Likewise.
50911         * tests/test-sprintf-posix.h (test_function): Likewise.
50912         * tests/test-fprintf-posix.h (test_function): Remove these tests.
50913         * tests/test-printf-posix.h (test_function): Likewise.
50914         * tests/test-fprintf-posix.out: Update.
50915         Needed for FreeBSD 6.1.
50916
50917 2007-04-04  Bruno Haible  <bruno@clisp.org>
50918
50919         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
50920         directly used by the gnulib modules nor by gnulib-tool.
50921
50922 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50923
50924         * DEPENDENCIES: Give overall description of version dependency
50925         desirability.  Use more-typical names for apps.
50926         Add shell, coreutils, diffutils, grep, tar, gzip.
50927
50928 2007-04-04  Simon Josefsson  <simon@josefsson.org>
50929
50930         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
50931
50932 2007-04-04  Karl Berry  <karl@gnu.org>
50933
50934         * MODULES.html.sh (func_module): missing '.
50935
50936 2007-04-03  Bruno Haible  <bruno@clisp.org>
50937
50938         * modules/argmatch-tests (Makefile.am): New variable
50939         test_argmatch_LDADD.
50940         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
50941         * modules/array-list-tests (Makefile.am): New variable
50942         test_array_list_LDADD.
50943         * modules/array-oset-tests (Makefile.am): New variable
50944         test_array_oset_LDADD.
50945         * modules/avltree-list-tests (Makefile.am): New variable
50946         test_avltree_list_LDADD.
50947         * modules/avltree-oset-tests (Makefile.am): New variable
50948         test_avltree_oset_LDADD.
50949         * modules/avltreehash-list-tests (Makefile.am): New variable
50950         test_avltreehash_list_LDADD.
50951         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
50952         test_canonicalize_lgpl_LDADD.
50953         * modules/carray-list-tests (Makefile.am): New variable
50954         test_carray_list_LDADD.
50955         * modules/dirname-tests (Makefile.am): New variable
50956         test_dirname_LDADD.
50957         * modules/linked-list-tests (Makefile.am): New variable
50958         test_linked_list_LDADD.
50959         * modules/linkedhash-list-tests (Makefile.am): New variable
50960         test_linkedhash_list_LDADD.
50961         * modules/rbtree-list-tests (Makefile.am): New variable
50962         test_rbtree_list_LDADD.
50963         * modules/rbtree-oset-tests (Makefile.am): New variable
50964         test_rbtree_oset_LDADD.
50965         * modules/rbtreehash-list-tests (Makefile.am): New variable
50966         test_rbtreehash_list_LDADD.
50967         * modules/xvasprintf-tests (Makefile.am): New variable
50968         test_xvasprintf_LDADD.
50969         Reported by Eric Blake.
50970
50971 2007-04-03  Eric Blake  <ebb9@byu.net>
50972
50973         * DEPENDENCIES: Weaken m4 requirements.
50974
50975 2007-04-03  Bruno Haible  <bruno@clisp.org>
50976
50977         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
50978         * modules/isnanl-tests (configure.ac): Likewise.
50979
50980 2007-04-03  Ben Pfaff  <blp@gnu.org>
50981
50982         * modules/iconv_open: Add $(srcdir)/ to source directory
50983         references in Makefile fragments that call gperf, to fix VPATH
50984         builds.
50985
50986 2007-04-03  Bruno Haible  <bruno@clisp.org>
50987
50988         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
50989         * lib/ldexpl.c: Undo last change.
50990
50991 2007-04-03  Bruno Haible  <bruno@clisp.org>
50992
50993         * modules/printf-frexpl (Depends-on): Undo last change.
50994         (Files): Add m4/ldexpl.m4.
50995
50996 2007-04-03  Bruno Haible  <bruno@clisp.org>
50997
50998         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
50999         * modules/isnanl (Link): New section.
51000
51001         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
51002         * modules/frexp (Link): New section.
51003
51004         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
51005         * modules/frexpl (Link): New section.
51006
51007         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
51008         * modules/ldexpl (Link): New section.
51009
51010 2007-04-03  Bruno Haible  <bruno@clisp.org>
51011
51012         * modules/TEMPLATE-EXTENDED: New file.
51013         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
51014
51015 2007-04-03  Bruno Haible  <bruno@clisp.org>
51016
51017         * DEPENDENCIES: New file.
51018         Suggested by Simon Josefsson.
51019
51020 2007-04-03  Bruno Haible  <bruno@clisp.org>
51021
51022         * doc/gnulib.texi: Escape @.
51023
51024 2007-04-03  James Youngman  <jay@gnu.org>
51025         and Paul Eggert  <eggert@cs.ucla.edu>
51026
51027         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
51028         birthtime on all systems that have birthtime, not just those which
51029         use st_birthtimensec rather than st_birthtim.  Putting zero in
51030         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
51031         that the birth time is not available for files on an NFS mount.
51032
51033 2007-04-03  Simon Josefsson  <simon@josefsson.org>
51034
51035         * modules/memxor: Move back from crypto/, suggested by Bruno.
51036         * modules/crypto/hmac-sha1: Fix memxor dependency.
51037
51038         * modules/crypto/gc: Moved from ../.
51039
51040 2007-04-02  Eric Blake  <ebb9@byu.net>
51041
51042         * lib/ldexpl.c (includes): Avoid libm.
51043
51044         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
51045
51046 2007-04-02  Bruno Haible  <bruno@clisp.org>
51047
51048         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
51049         on IRIX.
51050
51051 2007-04-02  Bruno Haible  <bruno@clisp.org>
51052
51053         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
51054         x86 or x86_64 platforms running MacOS X.
51055         Reported by Ryan Schmidt <@ryandesign.com>.
51056
51057 2007-04-02  Bruno Haible  <bruno@clisp.org>
51058
51059         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
51060         i386.
51061
51062 2007-04-01  Simon Josefsson  <simon@josefsson.org>
51063
51064         * modules/crypto/arcfour: Moved from ../.
51065         * modules/crypto/arcfour-tests: Moved from ../.
51066         * modules/crypto/arctwo: Moved from ../.
51067         * modules/crypto/arctwo-tests: Moved from ../.
51068         * modules/crypto/des: Moved from ../.
51069         * modules/crypto/des-tests: Moved from ../.
51070         * modules/crypto/gc-arcfour: Moved from ../.
51071         * modules/crypto/gc-arcfour-tests: Moved from ../.
51072         * modules/crypto/gc-arctwo: Moved from ../.
51073         * modules/crypto/gc-arctwo-tests: Moved from ../.
51074         * modules/crypto/gc-des: Moved from ../.
51075         * modules/crypto/gc-des-tests: Moved from ../.
51076         * modules/crypto/gc-hmac-md5: Moved from ../.
51077         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
51078         * modules/crypto/gc-hmac-sha1: Moved from ../.
51079         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
51080         * modules/crypto/gc-md2: Moved from ../.
51081         * modules/crypto/gc-md2-tests: Moved from ../.
51082         * modules/crypto/gc-md4: Moved from ../.
51083         * modules/crypto/gc-md4-tests: Moved from ../.
51084         * modules/crypto/gc-md5: Moved from ../.
51085         * modules/crypto/gc-md5-tests: Moved from ../.
51086         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
51087         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
51088         * modules/crypto/gc-random: Moved from ../.
51089         * modules/crypto/gc-rijndael: Moved from ../.
51090         * modules/crypto/gc-rijndael-tests: Moved from ../.
51091         * modules/crypto/gc-sha1: Moved from ../.
51092         * modules/crypto/gc-sha1-tests: Moved from ../.
51093         * modules/crypto/gc-tests: Moved from ../.
51094         * modules/crypto/hmac-md5: Moved from ../.
51095         * modules/crypto/hmac-md5-tests: Moved from ../.
51096         * modules/crypto/hmac-sha1: Moved from ../.
51097         * modules/crypto/hmac-sha1-tests: Moved from ../.
51098         * modules/crypto/md2: Moved from ../.
51099         * modules/crypto/md2-tests: Moved from ../.
51100         * modules/crypto/md4: Moved from ../.
51101         * modules/crypto/md4-tests: Moved from ../.
51102         * modules/crypto/md5: Moved from ../.
51103         * modules/crypto/md5-tests: Moved from ../.
51104         * modules/crypto/memxor: Moved from ../.
51105         * modules/crypto/rijndael: Moved from ../.
51106         * modules/crypto/rijndael-tests: Moved from ../.
51107         * modules/crypto/sha1: Moved from ../.
51108
51109 2007-03-30  James Youngman  <jay@gnu.org>
51110
51111         * tests/test-stat-time.c (prepare_test): use chmod() rather than
51112         rename() to change the ctime of a file (because ctime is unaffected
51113         by rename on jfs2 on AIX 5.1).
51114         (main): Start by doing cleanup, in case a previous run failed leaving
51115         test files behind.
51116
51117 2007-03-31  Bruno Haible  <bruno@clisp.org>
51118
51119         Support old proprietary implementations of iconv.
51120         * modules/iconv_open: New file.
51121         * lib/iconv_.h: New file.
51122         * m4/iconv_h.m4: New file.
51123         * lib/iconv_open.c: New file.
51124         * lib/iconv_open-aix.gperf: New file.
51125         * lib/iconv_open-hpux.gperf: New file.
51126         * lib/iconv_open-irix.gperf: New file.
51127         * lib/iconv_open-osf.gperf: New file.
51128         * m4/iconv_open.m4: New file.
51129         * modules/linebreak (Depends-on): Add iconv_open.
51130         * modules/striconv (Depends-on): Likewise.
51131         * modules/striconveh (Depends-on): Likewise.
51132         * modules/unicodeio (Depends-on): Likewise.
51133         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
51134         (iconv_t)(-1).
51135         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
51136         conversion if cd is (iconv_t)(-1).
51137         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
51138         is not possible.
51139
51140 2007-03-31  Bruno Haible  <bruno@clisp.org>
51141
51142         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51143         work on Solaris either. Protect also second use of "autodetect_jp".
51144
51145 2007-03-31  Bruno Haible  <bruno@clisp.org>
51146
51147         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
51148         the function is not present.
51149
51150 2007-03-31  Bruno Haible  <bruno@clisp.org>
51151
51152         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
51153         the function is not present.
51154
51155 2007-03-31  Bruno Haible  <bruno@clisp.org>
51156
51157         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
51158         a bug in HP-UX iconv_open().
51159
51160 2007-03-31  Bruno Haible  <bruno@clisp.org>
51161
51162         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
51163         (Mathematics <math.h>): New section, add fpieee.
51164         (Input/output <stdio.h>): Add fseterr.
51165         (Mathematics <math.h>): New section, add printf-frexp.
51166         (Container data structures): Add sublist.
51167         (Core language properties): Add fpucw, inline.
51168         (Functions for greatest-width integer types <inttypes.h>): Add
51169         imaxabs, imaxdiv, inttypes.
51170         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
51171         isnanl-nolibm, ldexp.
51172         (Mathematics <math.h>): New section, add printf-frexpl.
51173         (Support for systems lacking POSIX:2001): Add fprintf-posix,
51174         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
51175         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
51176         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
51177         (Unicode string functions): Add unistr/u*-mbtoucr.
51178         (Java): Add javacomp-script, javaexec-script.
51179         (C#): Add csharpcomp-script, csharpexec-script.
51180         (Support for building libraries and executables): Add havelib,
51181         relocatable-*.
51182         (Support for maintaining and releasing projects): Renamed from
51183         'Support for maintaining and release projects'. Add announce-gen.
51184
51185 2007-03-31  Bruno Haible  <bruno@clisp.org>
51186
51187         * README: Talk primarily about git.
51188         (git and CVS): Renamed from CVS.
51189         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
51190         gnulib is available through git.
51191         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
51192
51193 2007-03-30  Bruno Haible  <bruno@clisp.org>
51194
51195         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
51196         * lib/poll_.h: Likewise.
51197         * lib/stat_.h: Likewise.
51198         * lib/sys_time_.h: Likewise.
51199         * lib/sysexit_.h: Likewise.
51200         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
51201         * lib/stdbool_.h: Likewise.
51202         * lib/byteswap_.h: Add double-inclusion guard.
51203
51204 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
51205
51206         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
51207
51208 2007-03-30  Karl Berry  <karl@gnu.org>
51209
51210         * config/srclist-update: double space after USA in the license
51211         substitution, since that's how it's usually (?) written.
51212
51213 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51214
51215         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
51216         reported by Bruno Haible.
51217
51218 2007-03-29  Bruno Haible  <bruno@clisp.org>
51219
51220         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
51221         a bug in AIX iconv().
51222
51223 2007-03-29  Bruno Haible  <bruno@clisp.org>
51224
51225         * modules/ldexpl-tests: New file.
51226         * tests/test-ldexpl.c: New file.
51227
51228 2007-03-29  Bruno Haible  <bruno@clisp.org>
51229
51230         * lib/ldexpl.c: Include fpucw.h.
51231         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
51232         multiplication.
51233         * modules/ldexpl (Depends-on): Add fpucw.
51234
51235 2007-03-29  Bruno Haible  <bruno@clisp.org>
51236
51237         * modules/ldexpl: New file.
51238         * m4/ldexpl.m4: New file.
51239         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
51240         set.
51241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
51242         REPLACE_LDEXPL.
51243         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
51244         REPLACE_LDEXPL.
51245         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51246         gl_FUNC_LDEXPL_WORKS.
51247         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
51248         * modules/mathl (Files): Remove lib/ldexpl.c.
51249         (Depends-on): Add ldexpl.
51250
51251 2007-03-29  Bruno Haible  <bruno@clisp.org>
51252
51253         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
51254
51255 2007-03-29  Bruno Haible  <bruno@clisp.org>
51256
51257         * tests/test-striconveh.c (main): Don't assume that a direct conversion
51258         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
51259         and possibly also HP-UX.
51260         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51261         work on AIX, IRIX, HP-UX, OSF/1.
51262         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
51263         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
51264         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
51265         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
51266         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
51267         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
51268
51269 2007-03-29  Bruno Haible  <bruno@clisp.org>
51270
51271         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
51272
51273 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51274
51275         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
51276         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
51277
51278 2007-03-29  Eric Blake  <ebb9@byu.net>
51279
51280         * lib/acl-internal.h: Remove redundant include.
51281         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
51282         Cygwin when a file is locked.
51283
51284 2007-03-29  Bruno Haible  <bruno@clisp.org>
51285
51286         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
51287         file.
51288         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
51289
51290 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51291
51292         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
51293         try to remove a parent directory if the child couldn't be removed
51294         (except for the first rmdir, which could fail because the child
51295         doesn't exist).  Problem reported by Jeff Blaine in
51296         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
51297
51298 2007-03-28  Bruno Haible  <bruno@clisp.org>
51299
51300         * lib/striconveh.c (utf8conv_carefully): New function.
51301         (mem_cd_iconveh_internal): Invoke it.
51302
51303 2007-03-28  Bruno Haible  <bruno@clisp.org>
51304
51305         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
51306         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
51307         input.
51308         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
51309         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
51310         unistr/u8-uctomb.
51311
51312 2007-03-28  Bruno Haible  <bruno@clisp.org>
51313
51314         * modules/unistr/u8-mbtoucr: New file.
51315         * lib/unistr/u8-mbtoucr.c: New file.
51316         * modules/unistr/u16-mbtoucr: New file.
51317         * lib/unistr/u16-mbtoucr.c: New file.
51318         * modules/unistr/u16-mbtoucr: New file.
51319         * lib/unistr/u16-mbtoucr.c: New file.
51320         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
51321
51322 2007-03-27  Simon Josefsson  <simon@josefsson.org>
51323             Bruno Haible  <bruno@clisp.org>
51324
51325         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
51326         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
51327         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
51328
51329         * m4/stdio_h.m4: Add stubs for vasprintf too.
51330
51331         * modules/stdio: Support vasprintf in sed command.
51332
51333         * modules/vasprintf: Depend on stdio for prototypes.  Remove
51334         vasprintf.h.  Add stdio module indicator.
51335
51336         * lib/stdio_.h: Declare asprintf and vasprintf, based on
51337         vasprintf.h.
51338
51339         * lib/vasprintf.h: File removed.
51340
51341         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
51342         * lib/vasprintf.c: Ditto.
51343         * lib/xvasprintf.c: Ditto.
51344         * tests/test-vasprintf-posix.c: Ditto.
51345         * tests/test-vasprintf.c: Ditto.
51346
51347 2007-03-27  Bruno Haible  <bruno@clisp.org>
51348
51349         Make vasnprintf multithread-safe.
51350         * lib/vasnprintf.c (decimal_point_char): New function.
51351         (VASNPRINTF): Use it.
51352         Suggested by Simon Josefsson.
51353
51354 2007-03-27  Eric Blake  <ebb9@byu.net>
51355
51356         Support sub-second birthtime on cygwin.
51357         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
51358         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
51359         (get_stat_birthtime): Also work with st_birthtim.
51360
51361 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
51362
51363         * lib/stat-time.h (USE_BIRTHTIME): Remove.
51364         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
51365         (get_stat_birthtime_ns): Do not try to use "spare" fields.
51366         (get_stat_birthtime_ns): Simplify compile-time tests.
51367         (get_stat_birthtime): Change the API to look like
51368         get_stat_mtime etc., except return a negative tv_nsec on error.
51369         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
51370         Don't check for "spare" fields.
51371         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
51372         or for struct stat.st_birthtime, as these tests aren't used.
51373         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
51374
51375 2007-03-27  Bruno Haible  <bruno@clisp.org>
51376
51377         * lib/stat-time.h: Include <sys/stat.h>.
51378
51379 2007-03-27  James Youngman  <jay@gnu.org>
51380
51381         * lib/stat-time.h (get_stat_birthtime): New function for
51382           retrieving st_birthtime as provided by UFS2 (hence *BSD).
51383         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
51384           and its variants.
51385         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
51386         * modules/stat-time-test: New file.
51387         * tests/test-stat-time.c: New test, devised by Bruno Haible.
51388
51389 2007-03-26  Bruno Haible  <bruno@clisp.org>
51390
51391         Better support of signalling NaNs.
51392         * lib/atanl.c: Include isnanl.h.
51393         (atanl): Perform test for NaN at the beginning of the function and
51394         through a call to isnanl.
51395         * lib/cosl.c: Include isnanl.h.
51396         (cosl): Perform test for NaN at the beginning of the function and
51397         through a call to isnanl.
51398         * lib/ldexpl.c: Include isnanl.h.
51399         (ldexpl): Perform test for NaN through a call to isnanl.
51400         * lib/logl.c: Include isnanl.h.
51401         (logl): Perform test for NaN at the beginning of the function and
51402         through a call to isnanl.
51403         * lib/sinl.c: Include isnanl.h.
51404         (sinl): Perform test for NaN at the beginning of the function and
51405         through a call to isnanl.
51406         * lib/sqrtl.c: Include isnanl.h.
51407         (sqrtl): Perform test for NaN at the beginning of the function and
51408         through a call to isnanl.
51409         * lib/tanl.c: Include isnanl.h.
51410         (tanl): Perform test for NaN at the beginning of the function and
51411         through a call to isnanl.
51412         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
51413         * modules/mathl (Depends-on): Add isnanl.
51414
51415 2007-03-26  Eric Blake  <ebb9@byu.net>
51416
51417         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
51418         regression in logic sense of previous patch.
51419
51420 2007-03-26  Bruno Haible  <bruno@clisp.org>
51421
51422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
51423         unportable shell command "if ! ...".
51424         Reported by Ralf Wildenhues.
51425
51426 2007-03-25  Bruno Haible  <bruno@clisp.org>
51427
51428         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
51429         <sysexits.h> file, and only add EX_CONFIG.
51430         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
51431         absolute file name and whether it is sufficient. Substitute also
51432         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
51433         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
51434         ABSOLUTE_SYSEXITS_H into sysexits.h.
51435
51436 2007-03-25  Bruno Haible  <bruno@clisp.org>
51437
51438         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
51439         hints is NULL.
51440
51441 2007-03-25  Bruno Haible  <bruno@clisp.org>
51442
51443         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
51444         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
51445
51446 2007-03-25  Bruno Haible  <bruno@clisp.org>
51447
51448         * lib/vasnprintf.c: Include langinfo.h.
51449         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
51450         multithread-safe.
51451         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
51452         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
51453         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51454         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51455         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51456         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51457         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51458         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
51459         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51460         Reported by Simon Josefsson.
51461
51462 2007-03-25  Bruno Haible  <bruno@clisp.org>
51463
51464         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
51465         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
51466         * modules/vasnprintf (Depends-on): Add stdint.
51467
51468 2007-03-25  Bruno Haible  <bruno@clisp.org>
51469
51470         * modules/fpieee: New file.
51471         * m4/fpieee.m4: New file.
51472         * modules/isnan-nolibm (Depends-on): Add fpieee.
51473         * modules/isnanl-nolibm (Depends-on): Add fpieee.
51474         * modules/isnanl (Depends-on): Add fpieee.
51475
51476 2007-03-25  Bruno Haible  <bruno@clisp.org>
51477
51478         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
51479
51480 2007-03-25  Bruno Haible  <bruno@clisp.org>
51481
51482         Avoid test failures on IRIX 6.5.
51483         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
51484         (main): Use it.
51485         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
51486         macros.
51487         (main): Use them.
51488
51489 2007-03-25  Bruno Haible  <bruno@clisp.org>
51490
51491         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
51492         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
51493         exists but doesn't work.
51494         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
51495         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
51496         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
51497         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
51498         math.h.
51499
51500 2007-03-25  Bruno Haible  <bruno@clisp.org>
51501
51502         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
51503         returns inf. Needed on IRIX 6.5.
51504
51505 2007-03-25  Bruno Haible  <bruno@clisp.org>
51506
51507         * tests/test-frexpl.c: Include isnanl-nolibm.h.
51508         (main): Use isnanl instead of x != x idiom.
51509         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
51510
51511         * tests/test-frexp.c: Include isnan.h.
51512         (main): Use isnan instead of x != x idiom.
51513         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
51514
51515 2007-03-25  Bruno Haible  <bruno@clisp.org>
51516
51517         * tests/test-frexp.c (NaN): New function/macro.
51518         (main): Use it instead of 0.0 / 0.0.
51519         * tests/test-isnan.c (NaN): New function/macro.
51520         (main): Use it instead of 0.0 / 0.0.
51521         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
51522         (test_function): Use it instead of 0.0 / 0.0.
51523         * tests/test-vasprintf-posix.c (NaN): New function/macro.
51524         (test_function): Use it instead of 0.0 / 0.0.
51525         * tests/test-snprintf-posix.h (NaN): New function/macro.
51526         (test_function): Use it instead of 0.0 / 0.0.
51527         * tests/test-sprintf-posix.h (NaN): New function/macro.
51528         (test_function): Use it instead of 0.0 / 0.0.
51529         * tests/test-fprintf-posix.h (NaN): New function/macro.
51530         (test_function): Use it instead of 0.0 / 0.0.
51531         * tests/test-printf-posix.h (NaN): New function/macro.
51532         (test_function): Use it instead of 0.0 / 0.0.
51533
51534         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
51535
51536 2007-03-25  Bruno Haible  <bruno@clisp.org>
51537
51538         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
51539
51540 2007-03-25  Bruno Haible  <bruno@clisp.org>
51541
51542         * lib/regexec.c (merge_state_with_log): Make static.
51543
51544 2007-03-25  Bruno Haible  <bruno@clisp.org>
51545
51546         * lib/trigl.c (kernel_rem_pio2): Make static.
51547
51548 2007-03-25  Bruno Haible  <bruno@clisp.org>
51549
51550         * lib/sincosl.c (sincosl_table): Make static.
51551
51552 2007-03-25  Bruno Haible  <bruno@clisp.org>
51553
51554         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
51555         if the compiler does not support C99.
51556
51557 2007-03-25  Bruno Haible  <bruno@clisp.org>
51558
51559         * modules/time (Makefile.am): Ensure all rule action lines start with a
51560         tab.
51561
51562 2007-03-24  Bruno Haible  <bruno@clisp.org>
51563
51564         * modules/tsearch-tests: New file.
51565         * tests/test-tsearch.sh: New file.
51566         * tests/test-tsearch.c: New file, mostly copied from glibc.
51567
51568         * modules/search-tests: New file.
51569         * tests/test-search.c: New file.
51570
51571         * modules/search: New file.
51572         * lib/search_.h: New file, incorporating lib/tsearch.h.
51573         * m4/search_h.m4: New file.
51574         * lib/tsearch.h: Remove file.
51575         * lib/tsearch.c: Include search.h instead of tsearch.h.
51576         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
51577         HAVE_TSEARCH.
51578         * modules/tsearch (Files): Remove lib/tsearch.h.
51579         (Depends-on): Add search.
51580         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
51581         (Include): Change tsearch.h into search.h.
51582
51583 2007-03-24  Bruno Haible  <bruno@clisp.org>
51584
51585         * modules/fpucw: New file.
51586         * lib/fpucw.h: New file.
51587         * lib/frexp.c: Include fpucw.h.
51588         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51589         (FUNC): Use them.
51590         * lib/printf-frexp.c: Include fpucw.h.
51591         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51592         (FUNC): Use them.
51593         * lib/vasnprintf.c: Include fpucw.h.
51594         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
51595         'long double' calculations.
51596         * tests/test-frexpl.c: Include fpucw.h.
51597         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51598         * tests/test-printf-frexpl.c: Include fpucw.h.
51599         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51600         * modules/frexpl (Depends-on): Add fpucw.
51601         * modules/printf-frexpl (Depends-on): Likewise.
51602         * modules/fprintf-posix (Depends-on): Likewise.
51603         * modules/snprintf-posix (Depends-on): Likewise.
51604         * modules/sprintf-posix (Depends-on): Likewise.
51605         * modules/vasnprintf-posix (Depends-on): Likewise.
51606         * modules/vasprintf-posix (Depends-on): Likewise.
51607         * modules/vfprintf-posix (Depends-on): Likewise.
51608         * modules/vsnprintf-posix (Depends-on): Likewise.
51609         * modules/vsprintf-posix (Depends-on): Likewise.
51610         * modules/frexpl-tests (Depends-on): Likewise.
51611         * modules/printf-frexpl-tests (Depends-on): Likewise.
51612
51613 2007-03-24  Bruno Haible  <bruno@clisp.org>
51614
51615         * lib/float+.h: New file.
51616         * lib/isnan.c: Include float+.h.
51617         (SIZE): New macro.
51618         (FUNC): Compare only SIZE bytes of the value.
51619         * lib/vasnprintf.c: Include float+.h.
51620         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
51621         SIZEOF_LDBL or SIZEOF_DBL bytes.
51622         * modules/isnan-nolibm (Files): Add lib/float+.h.
51623         * modules/isnanl-nolibm (Files): Add lib/float+.h.
51624         * modules/isnanl (Files): Add lib/float+.h.
51625         * modules/vasnprintf (Files): Add lib/float+.h.
51626
51627 2007-03-24  Bruno Haible  <bruno@clisp.org>
51628
51629         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
51630         include isnanl-nolibm.h.
51631
51632 2007-03-24  Bruno Haible  <bruno@clisp.org>
51633
51634         * tests/test-read-file.c (main): Don't produce spurious output for
51635         expected situations. Make the test fail if it encountered unexpected
51636         results.
51637
51638 2007-03-24  Bruno Haible  <bruno@clisp.org>
51639
51640         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
51641         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
51642
51643 2007-03-24  Bruno Haible  <bruno@clisp.org>
51644
51645         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
51646
51647 2007-03-24  Bruno Haible  <bruno@clisp.org>
51648
51649         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
51650         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
51651
51652         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
51653         * modules/utf8-ucs4: Turn into a symbolic link to module
51654         unistr/u8-mbtouc.
51655
51656         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
51657         utf8-ucs4-unsafe.
51658         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
51659         unistr/u8-mbtouc-unsafe.
51660
51661         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
51662         * modules/utf16-ucs4: Turn into a symbolic link to module
51663         unistr/u16-mbtouc.
51664
51665         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
51666         utf16-ucs4-unsafe.
51667         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
51668         unistr/u16-mbtouc-unsafe.
51669
51670         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
51671         * modules/ucs4-utf8: Turn into a symbolic link to module
51672         unistr/u8-ubtomb.
51673
51674         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
51675         * modules/ucs4-utf16: Turn into a symbolic link to module
51676         unistr/u16-ubtomb.
51677
51678 2007-03-24  Bruno Haible  <bruno@clisp.org>
51679
51680         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
51681         Enable the function only if HAVE_INLINE.
51682         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
51683         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51684         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
51685         Enable the function only if HAVE_INLINE.
51686         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
51687         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51688         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
51689         Enable the function only if HAVE_INLINE.
51690         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
51691         Enable the function only if HAVE_INLINE.
51692         * modules/utf8-ucs4: Update.
51693         * modules/utf8-ucs4-unsafe: Update.
51694         * modules/utf16-ucs4: Update.
51695         * modules/utf16-ucs4-unsafe: Update.
51696         * modules/ucs4-utf8: Update.
51697         * modules/ucs4-utf16: Update.
51698
51699 2007-03-24  Bruno Haible  <bruno@clisp.org>
51700
51701         * lib/utf8-ucs4.h: Remove file.
51702         * lib/utf8-ucs4-unsafe.h: Remove file.
51703         * lib/utf16-ucs4.h: Remove file.
51704         * lib/utf16-ucs4-unsafe.h: Remove file.
51705         * lib/ucs4-utf8.h: Remove file.
51706         * lib/ucs4-utf16.h: Remove file.
51707         * lib/unistr.h: Include their previous contents.
51708         * m4/utf-ucs4.m4: Remove file.
51709         * m4/ucs4-utf.m4: Remove file.
51710         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
51711         (Depends-on): Add unistr/base.
51712         (configure.ac): Remove gl_UTF_UCS4.
51713         (Makefile.am): Update.
51714         (Include): Change to unistr.h.
51715         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
51716         (Depends-on): Add unistr/base.
51717         (configure.ac): Remove gl_UTF_UCS4.
51718         (Makefile.am): Update.
51719         (Include): Change to unistr.h.
51720         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
51721         (Depends-on): Add unistr/base.
51722         (configure.ac): Remove gl_UTF_UCS4.
51723         (Makefile.am): Update.
51724         (Include): Change to unistr.h.
51725         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
51726         (Depends-on): Add unistr/base.
51727         (configure.ac): Remove gl_UTF_UCS4.
51728         (Makefile.am): Update.
51729         (Include): Change to unistr.h.
51730         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
51731         (Depends-on): Add unistr/base.
51732         (configure.ac): Remove gl_UCS4_UTF.
51733         (Makefile.am): Update.
51734         (Include): Change to unistr.h.
51735         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
51736         (Depends-on): Add unistr/base.
51737         (configure.ac): Remove gl_UCS4_UTF.
51738         (Makefile.am): Update.
51739         (Include): Change to unistr.h.
51740         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
51741         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
51742         utf8-ucs4-unsafe.h.
51743         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
51744         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
51745         utf16-ucs4-unsafe.h.
51746         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
51747         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
51748         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
51749         * lib/unistr/u8-strchr.c: Likewise.
51750         * lib/unistr/u8-strrchr.c: Likewise.
51751         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
51752         * lib/unistr/u16-strchr.c: Likewise.
51753         * lib/unistr/u16-strrchr.c: Likewise.
51754         * lib/striconveh.c: Update.
51755         * lib/linebreak.c: Update.
51756
51757 2007-03-24  Bruno Haible  <bruno@clisp.org>
51758
51759         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
51760         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
51761
51762 2007-03-22  Bruno Haible  <bruno@clisp.org>
51763
51764         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
51765
51766 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51767
51768         * MODULES.html.sh (File system functions): New module write-any-file.
51769         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
51770         * m4/write-any-file.m4: New files.
51771
51772 2007-03-23  Eric Blake  <ebb9@byu.net>
51773
51774         * gnulib-tool: Rearrange space-tab sequences, since some editors
51775         like to eat them.
51776
51777 2007-03-23  Eric Blake  <ebb9@byu.net>
51778
51779         * lib/version-etc.c (version_etc_va): Update license wording to
51780         be more concise.  Recommended by Richard Stallman.
51781
51782 2007-03-22  Bruno Haible  <bruno@clisp.org>
51783
51784         * lib/poll.c (MSG_PEEK): New fallback definition.
51785
51786 2007-03-22  Bruno Haible  <bruno@clisp.org>
51787
51788         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
51789         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
51790         (main): Update.
51791         Fixes a compilation error on BeOS.
51792
51793 2007-03-22  Bruno Haible  <bruno@clisp.org>
51794
51795         * modules/frexpl-tests: New file.
51796         * tests/test-frexpl.c: New file.
51797
51798         * modules/frexpl: New file.
51799         * m4/frexpl.m4: New file.
51800         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
51801         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
51802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
51803         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
51804         (Depends-on): Add frexpl. Remove isnanl-nolibm.
51805         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
51806
51807 2007-03-22  Bruno Haible  <bruno@clisp.org>
51808
51809         * lib/frexpl.c: Share code with lib/frexp.c.
51810         * modules/mathl (Files): Add lib/frexp.c.
51811         (Depends-on): Add isnanl-nolibm.
51812
51813 2007-03-22  Bruno Haible  <bruno@clisp.org>
51814
51815         * modules/printf-frexp (Files): Add m4/frexp.m4.
51816         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
51817         only if the found frexp function actually works.
51818
51819 2007-03-22  Bruno Haible  <bruno@clisp.org>
51820
51821         * lib/frexp.c: Remove older implementation that uses divisions.
51822
51823 2007-03-21  Bruno Haible  <bruno@clisp.org>
51824
51825         * modules/frexp-tests: New file.
51826         * tests/test-frexp.c: New file.
51827
51828         * modules/frexp: New file.
51829         * lib/frexp.c: New file.
51830         * m4/frexp.m4: New file.
51831         * lib/math_.h (frexp): New declaration.
51832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
51833         REPLACE_FREXP.
51834         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
51835
51836 2007-03-21  Bruno Haible  <bruno@clisp.org>
51837
51838         * modules/isnanl-tests: New file.
51839         * tests/test-isnanl.c: New file.
51840
51841         * modules/isnanl: New file.
51842         * lib/isnanl.h: New file.
51843         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
51844         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
51845         gl_FUNC_ISNANL_WORKS.
51846         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
51847         New macros.
51848
51849 2007-03-21  Bruno Haible  <bruno@clisp.org>
51850
51851         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
51852         lib/isnanl.h.
51853         (Include): Update.
51854         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
51855         * lib/vasnprintf.c: Update.
51856         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
51857         tests/test-isnanl.h, remove tests/test-isnanl.c.
51858         (Makefile.am): Update.
51859         * tests/test-isnanl-nolibm.c: New file.
51860         * tests/test-isnanl.h: New file.
51861         * tests/test-isnanl.c: Remove file.
51862
51863 2007-03-21  Jim Meyering  <jim@meyering.net>
51864
51865         When trying to open ".", treat ESTALE like EACCES.
51866         * lib/savewd.c (savewd_save): Resort to forking not just upon
51867         failure with EACCES, but also when errno is ESTALE.
51868
51869 2007-03-20  Bruno Haible  <bruno@clisp.org>
51870
51871         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
51872         Needed on AIX 5.1. Reported by Matthew Woehlke.
51873
51874 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51875
51876         Suggestions by Bruno Haible:
51877         * lib/acl-internal.h: Include "gettext.h" rather than rolling
51878         our own.
51879         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
51880         * modules/acl (Depends-on): Add gettext.
51881
51882 2007-03-19  Bruno Haible  <bruno@clisp.org>
51883
51884         * modules/iconvme: Remove file.
51885         * lib/iconvme.h: Remove file.
51886         * lib/iconvme.c: Remove file.
51887         * m4/iconvme.m4: Remove file.
51888
51889 2007-03-19  Bruno Haible  <bruno@clisp.org>
51890
51891         * doc/relocatable-maint.texi: Break long shell script line.
51892         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51893
51894 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51895
51896         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
51897         handle file_has_acl.
51898         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
51899         * lib/acl.c: Move header inclusions and related macro defns into
51900         lib/acl-internal.h.
51901         (S_ISLNK): Remove defn, since that's now done for us.
51902         (file_has_acl): Move to lib/file-has-acl.c.
51903         Call acl_trivial if available.  This is the crucial part of the fix.
51904         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
51905         shared within the library.  Rewrite a bit, partly to make it compatible
51906         with the GNU coding style.
51907         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
51908         Remove unnecessary double-quotes.
51909         Don't test for acl_to_text; the build will catch that.
51910         Replace acl_entries if it doesn't exist and it is needed.
51911         Check for -lsec and acl_trivial (as used on Solaris 10).
51912         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
51913         lib/file-has-acl.c.
51914         (Depends-on): Add sys_stat, for S_ISLNK.
51915
51916 2007-03-19  Ben Pfaff  <blp@gnu.org>
51917
51918         * doc/gnulib.texi: Fix typos.
51919         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51920
51921 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51922
51923         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
51924         If size is zero here, buf must be zero.
51925
51926 2007-03-19  Simon Josefsson  <simon@josefsson.org>
51927
51928         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
51929         <bruno@clisp.org>.
51930
51931 2007-03-18  Bruno Haible  <bruno@clisp.org>
51932
51933         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
51934         Suggested by Eric Blake.
51935
51936 2007-03-18  Ben Pfaff  <blp@gnu.org>
51937
51938         * doc/relocatable.texi: Recommend using as prefix a directory
51939         that does not exist and will never be created.  Based on
51940         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
51941         and others.
51942
51943 2007-03-17  Bruno Haible  <bruno@clisp.org>
51944
51945         * lib/fchownat.c: Include lchown.h.
51946
51947 2007-03-17  Bruno Haible  <bruno@clisp.org>
51948
51949         Fix endless loop when the given allocated size was > INT_MAX.
51950         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
51951         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
51952         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
51953         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
51954         * lib/sprintf.c (sprintf): Likewise.
51955
51956 2007-03-17  Bruno Haible  <bruno@clisp.org>
51957
51958         * tests/test-argp-2.sh (func_compare): Output a context diff.
51959
51960 2007-03-17  Bruno Haible  <bruno@clisp.org>
51961
51962         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
51963         locale's decimal-point character.
51964
51965 2007-03-17  Bruno Haible  <bruno@clisp.org>
51966
51967         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
51968         before comparing it. Needed because on some platforms (e.g. x86) a
51969         'long double' occupies less bytes than sizeof (long double).
51970
51971 2007-03-17  Bruno Haible  <bruno@clisp.org>
51972
51973         * tests/test-crc.c (main): Make printf statements 64-bit clean.
51974         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
51975         * tests/test-getaddrinfo.c (simple): Likewise.
51976         * tests/test-read-file.c (main): Likewise.
51977
51978 2007-03-17  Bruno Haible  <bruno@clisp.org>
51979
51980         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
51981
51982 2007-03-17  Bruno Haible  <bruno@clisp.org>
51983
51984         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
51985         unused variable.
51986
51987 2007-03-17  Bruno Haible  <bruno@clisp.org>
51988
51989         * tests/test-c-strcasecmp.c: Include c-strcase.h.
51990         * tests/test-c-strncasecmp.c: Likewise.
51991
51992 2007-03-17  Bruno Haible  <bruno@clisp.org>
51993
51994         * modules/stdlib (Depends-on): Add unistd.
51995         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
51996         Needed for MacOS X 10.3.
51997
51998 2007-03-17  Bruno Haible  <bruno@clisp.org>
51999
52000         * lib/unistr/u-strdup.h: Include <stdlib.h>.
52001
52002 2007-03-17  Bruno Haible  <bruno@clisp.org>
52003
52004         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
52005
52006 2007-03-17  Bruno Haible  <bruno@clisp.org>
52007
52008         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
52009         to reflect files copied from gnulib (with or without modifications).
52010         Suggested by Jim Meyering.
52011
52012 2007-03-17  Eric Blake  <ebb9@byu.net>
52013
52014         * NEWS: Document stdlib change from 2007-02-18.
52015
52016 2007-03-17  Jim Meyering  <jim@meyering.net>
52017
52018         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
52019         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
52020         someone uses a name containing shell meta-characters.
52021         Reported by Alfred M. Szmidt.
52022
52023         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
52024
52025 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52026
52027         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
52028         and copy gettext configuration files only if configure.ac contains
52029         a use of AM_GNU_GETTEXT_VERSION.
52030
52031 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52032
52033         * build-aux/bootstrap (gnulib_name): New variable.
52034         (gnulib_tool_options): Use it.
52035
52036 2007-03-13  Simon Josefsson  <simon@josefsson.org>
52037
52038         * tests/test-des.c: Use new namespace.
52039
52040 2007-03-15  Bruno Haible  <bruno@clisp.org>
52041
52042         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
52043         Reported by James Youngman <jay@gnu.org>.
52044
52045 2007-03-15  Bruno Haible  <bruno@clisp.org>
52046
52047         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
52048         declared prototype. Needed with cc on OSF/1 5.1.
52049
52050 2007-03-15  Bruno Haible  <bruno@clisp.org>
52051
52052         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
52053         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
52054         (struct gl_list_implementation): Add dispose_fn argument to the
52055         'create_empty', 'create' methods.
52056         (struct gl_list_impl_base): Add field 'dispose_fn'.
52057         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
52058         argument.
52059         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
52060         dispose_fn argument.
52061         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
52062         dispose_fn on the dropped values.
52063         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
52064         dispose_fn argument.
52065         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
52066         dropped values.
52067         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
52068         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52069         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
52070         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52071         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
52072         argument.
52073         (gl_tree_list_free): Call dispose_fn on the dropped values.
52074         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
52075         the dropped values.
52076         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52077         Add dispose_fn argument.
52078         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
52079         Call dispose_fn on the dropped values.
52080         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
52081         Add dispose_fn argument.
52082         (gl_sublist_create): Initialize the 'dispose_fn' field.
52083         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
52084         * tests/test-array_list.c (main): Update.
52085         * tests/test-carray_list.c (main): Update.
52086         * tests/test-avltree_list.c (main): Update.
52087         * tests/test-rbtree_list.c (main): Update.
52088         * tests/test-avltreehash_list.c (main): Update.
52089         * tests/test-rbtreehash_list.c (main): Update.
52090         * tests/test-linked_list.c (main): Update.
52091         * tests/test-linkedhash_list.c (main): Update.
52092         * tests/test-array_oset.c (main): Update.
52093
52094 2007-03-15  Bruno Haible  <bruno@clisp.org>
52095
52096         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
52097         (gl_oset_create_empty): Add dispose_fn argument.
52098         (struct gl_oset_implementation): Add dispose_fn argument to
52099         'create_empty' method.
52100         (struct gl_oset_impl_base): Add dispose_fn field.
52101         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
52102         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
52103         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
52104         values.
52105         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
52106         (gl_tree_oset_free): Call dispose_fn on the dropped values.
52107         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52108         dropped value.
52109         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52110         dropped value.
52111         * tests/test-array_oset.c (main): Update.
52112         * tests/test-avltree_oset.c (main): Update.
52113         * tests/test-rbtree_oset.c (main): Update.
52114         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
52115
52116 2007-03-13  Bruno Haible  <bruno@clisp.org>
52117
52118         * tests/test-stdbool.c (i): Update after last patch.
52119
52120 2007-03-12  Bruno Haible  <bruno@clisp.org>
52121
52122         * lib/quotearg.c: Include <wctype.h> early, before the definition of
52123         the iswprint macro. Needed on Solaris 2.5.1.
52124
52125 2007-03-12  Bruno Haible  <bruno@clisp.org>
52126
52127         * tests/test-printf-frexp.c (main): Declare x as volatile.
52128
52129 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52130
52131         * doc/gnulib.texi (Build robot for gnulib): New section.
52132
52133 2007-03-12  Jim Meyering  <jim@meyering.net>
52134
52135         * build-aux/bootstrap: New file.
52136         * build-aux/bootstrap.conf: New file, from coreutils.
52137
52138 2007-03-11  Bruno Haible  <bruno@clisp.org>
52139
52140         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
52141
52142 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52143
52144         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
52145         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
52146         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
52147
52148 2007-03-11  Bruno Haible  <bruno@clisp.org>
52149
52150         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
52151         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
52152
52153 2007-03-11  Bruno Haible  <bruno@clisp.org>
52154
52155         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
52156         formula. Needed for SunPRO C 5.0.
52157
52158 2007-03-11  Bruno Haible  <bruno@clisp.org>
52159
52160         * modules/long-options (Depends-on): Add getopt.
52161
52162 2007-03-11  Bruno Haible  <bruno@clisp.org>
52163
52164         * modules/modechange (Depends-on): Add stdbool.
52165
52166 2007-03-11  Bruno Haible  <bruno@clisp.org>
52167
52168         * modules/i-ring (Depends-on): Add stdbool.
52169
52170 2007-03-11  Bruno Haible  <bruno@clisp.org>
52171
52172         * modules/gc-des (Depends-on): Add stdbool.
52173
52174 2007-03-11  Bruno Haible  <bruno@clisp.org>
52175
52176         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
52177
52178 2007-03-11  Bruno Haible  <bruno@clisp.org>
52179
52180         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
52181
52182 2007-03-11  Bruno Haible  <bruno@clisp.org>
52183
52184         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
52185
52186 2007-03-11  Bruno Haible  <bruno@clisp.org>
52187
52188         * lib/vasnprintf.c (sprintf): Undefine.
52189
52190 2007-03-11  Bruno Haible  <bruno@clisp.org>
52191
52192         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
52193         initializers in SunPRO C and Compaq C compilers.
52194
52195 2007-03-11  Bruno Haible  <bruno@clisp.org>
52196
52197         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
52198         decrementing code ANSI C compliant.
52199
52200 2007-03-11  Bruno Haible  <bruno@clisp.org>
52201
52202         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
52203         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
52204
52205 2007-03-11  Bruno Haible  <bruno@clisp.org>
52206
52207         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
52208         <stdbool.h> substitute doesn't pass.
52209
52210 2007-03-11  Bruno Haible  <bruno@clisp.org>
52211
52212         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
52213
52214 2007-03-11  Bruno Haible  <bruno@clisp.org>
52215
52216         * gnulib-tool (func_create_megatestdir): Create also an autobuild
52217         script, for submission to autobuild.josefsson.org.
52218
52219 2007-03-10  Bruno Haible  <bruno@clisp.org>
52220
52221         * modules/canonicalize-lgpl-tests: New file.
52222         * tests/test-canonicalize-lgpl.sh: New file.
52223         * tests/test-canonicalize-lgpl.c: New file.
52224
52225         * modules/c-strcase-tests: New file.
52226         * tests/test-c-strcase.sh: New file.
52227         * tests/test-c-strcasecmp.c: New file.
52228         * tests/test-c-strncasecmp.c: New file.
52229
52230         * modules/atexit-tests: New file.
52231         * tests/test-atexit.sh: New file.
52232         * tests/test-atexit.c: New file.
52233
52234 2007-03-10  Bruno Haible  <bruno@clisp.org>
52235
52236         * tests/test-binary-io.sh: Use temporary filenames that are not so
52237         likely to clash with those of other tests (in a parallel make).
52238         * tests/test-binary-io.c: Likewise.
52239
52240 2007-03-10  Bruno Haible  <bruno@clisp.org>
52241
52242         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
52243         fallback; use #error instead.
52244         Suggested by Simon Josefsson.
52245
52246 2007-03-10  Bruno Haible  <bruno@clisp.org>
52247
52248         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
52249         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
52250         first and the last.
52251
52252 2007-03-10  Bruno Haible  <bruno@clisp.org>
52253
52254         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
52255
52256 2007-03-10  Bruno Haible  <bruno@clisp.org>
52257
52258         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
52259         "make distcheck".
52260         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
52261         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
52262         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
52263
52264 2007-03-10  Bruno Haible  <bruno@clisp.org>
52265
52266         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
52267         variable.
52268         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
52269         variable.
52270
52271 2007-03-09  Eric Blake  <ebb9@byu.net>
52272         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
52273
52274         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
52275         types are not being provided by gnulib.
52276         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
52277         types are supported.
52278
52279 2007-03-10  Bruno Haible  <bruno@clisp.org>
52280
52281         * lib/stdio_.h (__attribute__): New macro.
52282         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
52283         vsprintf): Specify __attribute__ __format__ for GCC.
52284         Suggested by Eric Blake.
52285
52286 2007-03-09  Bruno Haible  <bruno@clisp.org>
52287
52288         * modules/printf-posix-tests: New file.
52289         * tests/test-printf-posix.sh: New file.
52290         * tests/test-printf-posix.c: New file.
52291
52292         * modules/printf-posix: New file.
52293         * lib/printf.c: New file.
52294         * m4/printf-posix-rpl.m4: New file.
52295         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
52296         REPLACE_PRINTF.
52297         * lib/stdio_.h (printf): New declaration.
52298         (format, __format__, ____printf____, ____scanf____, ____strftime____,
52299         ____strfmon____): New macros.
52300         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
52301         REPLACE_PRINTF.
52302
52303 2007-03-09  Bruno Haible  <bruno@clisp.org>
52304
52305         * tests/test-vasnprintf-posix2.sh: New file.
52306         * tests/test-vasnprintf-posix2.c: New file.
52307         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
52308         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52309         (Makefile.am): Activate test-vasnprintf-posix2.sh.
52310
52311         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
52312         a locale dependent decimal point, rather than always '.'.
52313
52314 2007-03-09  Eric Blake  <ebb9@byu.net>
52315
52316         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
52317         spite of platforms like Tandem/NSK that define it to -1.
52318
52319 2007-03-08  Bruno Haible  <bruno@clisp.org>
52320
52321         * modules/vprintf-posix-tests: New file.
52322         * tests/test-vprintf-posix.sh: New file.
52323         * tests/test-vprintf-posix.c: New file.
52324         * tests/test-printf-posix.h: New file.
52325
52326         * modules/vprintf-posix: New file.
52327         * lib/vprintf.c: New file.
52328         * m4/vprintf-posix.m4: New file.
52329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
52330         REPLACE_VPRINTF.
52331         * lib/stdio_.h (vprintf): New declaration.
52332         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
52333         REPLACE_VPRINTF.
52334
52335 2007-03-08  Bruno Haible  <bruno@clisp.org>
52336
52337         * modules/fprintf-posix-tests: New file.
52338         * tests/test-fprintf-posix.sh: New file.
52339         * tests/test-fprintf-posix.c: New file.
52340
52341         * modules/fprintf-posix: New file.
52342         * lib/fprintf.c: New file.
52343         * m4/fprintf-posix.m4: New file.
52344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
52345         REPLACE_FPRINTF.
52346         * lib/stdio_.h (fprintf): New declaration.
52347         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
52348         REPLACE_FPRINTF.
52349
52350 2007-03-08  Bruno Haible  <bruno@clisp.org>
52351
52352         * modules/vfprintf-posix-tests: New file.
52353         * tests/test-vfprintf-posix.sh: New file.
52354         * tests/test-vfprintf-posix.c: New file.
52355         * tests/test-fprintf-posix.h: New file.
52356         * tests/test-fprintf-posix.out: New file.
52357
52358         * modules/vfprintf-posix: New file.
52359         * lib/vfprintf.c: New file.
52360         * m4/vfprintf-posix.m4: New file.
52361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
52362         REPLACE_VFPRINTF.
52363         * lib/stdio_.h (vfprintf): New declaration.
52364         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
52365         REPLACE_VFPRINTF.
52366
52367 2007-03-08  Bruno Haible  <bruno@clisp.org>
52368
52369         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
52370
52371 2007-03-08  Bruno Haible  <bruno@clisp.org>
52372
52373         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
52374         instead of 'expr' invocations.
52375         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52376         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52377         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52378         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52379         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52380         Suggested by Paul Eggert.
52381
52382 2007-03-08  Bruno Haible  <bruno@clisp.org>
52383
52384         * modules/fseterr-tests: New file.
52385         * tests/test-fseterr.c: New file.
52386
52387         * modules/fseterr: New file.
52388         * lib/fseterr.h: New file.
52389         * lib/fseterr.c: New file.
52390
52391 2007-03-08  Bruno Haible  <bruno@clisp.org>
52392
52393         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
52394         * lib/getopt_.h: Likewise.
52395         * lib/mbswidth.h: Likewise.
52396         * lib/setenv.h: Likewise.
52397         * lib/vasnprintf.h: Likewise.
52398         * lib/vasprintf.h: Likewise.
52399         * lib/verror.h: Likewise.
52400         * lib/xsetenv.h: Likewise.
52401         * lib/xvasprintf.h: Likewise.
52402
52403 2007-03-08  Jim Meyering  <jim@meyering.net>
52404
52405         * users.txt: Add parted.
52406
52407         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
52408
52409 2007-03-07  Bruno Haible  <bruno@clisp.org>
52410
52411         * m4/printf.m4: Make the shell script snippets copy&pastable.
52412
52413 2007-03-02  Bruno Haible  <bruno@clisp.org>
52414
52415         * lib/netinet_in_.h: New file.
52416         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
52417         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
52418         * modules/netinet_in (Files): Add lib/netinet_in_.h.
52419         (Depends-on): Add absolute-header.
52420         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
52421         into netinet/in.h.
52422
52423 2007-03-03  Bruno Haible  <bruno@clisp.org>
52424
52425         * lib/sys_select_.h: New file.
52426         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
52427         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
52428         * modules/sys_select (Files): Add lib/sys_select_.h.
52429         (Depends-on): Add absolute-header.
52430         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
52431         into sys/select.h.
52432
52433 2007-03-02  Bruno Haible  <bruno@clisp.org>
52434
52435         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
52436         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
52437         values.
52438         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
52439         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
52440         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
52441         * modules/sys_socket (Depends-on): Add absolute-header.
52442         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
52443         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
52444         (Include): Remove requirement of inclusion of <sys/types.h>.
52445
52446 2007-03-02  Bruno Haible  <bruno@clisp.org>
52447
52448         * lib/byteswap_.h (bswap_32): Fix formula.
52449
52450 2007-03-06  Bruno Haible  <bruno@clisp.org>
52451
52452         * modules/sprintf-posix-tests: New file.
52453         * tests/test-sprintf-posix.c: New file.
52454
52455         * modules/sprintf-posix: New file.
52456         * lib/sprintf.c: New file.
52457         * m4/sprintf-posix.m4: New file.
52458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
52459         REPLACE_SPRINTF.
52460         * lib/stdio_.h (sprintf): New declaration.
52461         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
52462         REPLACE_SPRINTF.
52463
52464 2007-03-06  Bruno Haible  <bruno@clisp.org>
52465
52466         * modules/vsprintf-posix-tests: New file.
52467         * tests/test-vsprintf-posix.c: New file.
52468         * tests/test-sprintf-posix.h: New file.
52469
52470         * modules/vsprintf-posix: New file.
52471         * lib/vsprintf.c: New file.
52472         * m4/vsprintf-posix.m4: New file.
52473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
52474         REPLACE_VSPRINTF.
52475         * lib/stdio_.h (vsprintf): New declaration.
52476         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
52477         REPLACE_VSPRINTF.
52478
52479 2007-03-06  Bruno Haible  <bruno@clisp.org>
52480
52481         * modules/vsnprintf (Depend-on): Remove minmax.
52482
52483 2007-03-06  Bruno Haible  <bruno@clisp.org>
52484
52485         * modules/snprintf-posix-tests: New file.
52486         * tests/test-snprintf-posix.c: New file.
52487
52488         * modules/snprintf-posix: New file.
52489         * m4/snprintf-posix.m4: New file.
52490         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
52491         gl_FUNC_SNPRINTF.
52492         (gl_FUNC_SNPRINTF): Invoke it.
52493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
52494         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
52495         is set.
52496         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
52497
52498 2007-03-06  Bruno Haible  <bruno@clisp.org>
52499
52500         * modules/vsnprintf-posix-tests: New file.
52501         * tests/test-vsnprintf-posix.c: New file.
52502         * tests/test-snprintf-posix.h: New file.
52503
52504         * modules/vsnprintf-posix: New file.
52505         * m4/vsnprintf-posix.m4: New file.
52506         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
52507         gl_FUNC_VSNPRINTF.
52508         (gl_FUNC_VSNPRINTF): Invoke it.
52509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
52510         * lib/stdio_.h (vsnprintf): Define as a replacement if
52511         REPLACE_VSNPRINTF is set.
52512         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
52513
52514 2007-03-06  Bruno Haible  <bruno@clisp.org>
52515
52516         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
52517         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
52518
52519 2007-03-06  Bruno Haible  <bruno@clisp.org>
52520
52521         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
52522         (asinl): Declare also if HAVE_DECL_ASINL is set.
52523         (atanl): Declare also if HAVE_DECL_ATANL is set.
52524         (ceill): Declare also if HAVE_DECL_CEILL is set.
52525         (cosl): Declare also if HAVE_DECL_COSL is set.
52526         (expl): Declare also if HAVE_DECL_EXPL is set.
52527         (floorl): Declare also if HAVE_DECL_FLOORL is set.
52528         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
52529         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
52530         (logl): Declare also if HAVE_DECL_LOGL is set.
52531         (sinl): Declare also if HAVE_DECL_SINL is set.
52532         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
52533         (tanl): Declare also if HAVE_DECL_TANL is set.
52534         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
52535         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
52536         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
52537         declaration of frexpl, ldexpl.
52538         * modules/printf-frexpl (Depends-on): Add math.
52539         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
52540
52541 2007-03-05  Bruno Haible  <bruno@clisp.org>
52542
52543         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
52544         frexpl and ldexpl are declared.
52545         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
52546
52547 2007-03-05  Bruno Haible  <bruno@clisp.org>
52548
52549         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
52550         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
52551
52552 2007-03-05  Bruno Haible  <bruno@clisp.org>
52553
52554         * lib/stdio_.h: Include <stddef.h>.
52555
52556 2007-03-05  Bruno Haible  <bruno@clisp.org>
52557
52558         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
52559
52560 2007-03-05  Bruno Haible  <bruno@clisp.org>
52561
52562         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
52563         NetBSD 4, from Ralf Wildenhues.
52564
52565 2007-03-04  Bruno Haible  <bruno@clisp.org>
52566
52567         * lib/vasprintf.h: Update #if logic for the case when the functions
52568         exist but are overridden.
52569
52570 2007-03-04  Bruno Haible  <bruno@clisp.org>
52571
52572         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
52573         implementations: glibc-2.4 and MacOS X 10.3.
52574         * tests/test-vasnprintf-posix.c (test_function): Test also the case
52575         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
52576         * tests/test-vasprintf-posix.c (test_function): Likewise.
52577
52578 2007-03-04  Bruno Haible  <bruno@clisp.org>
52579
52580         * modules/vasprintf-posix-tests: New file.
52581         * tests/test-vasprintf-posix.c: New file.
52582
52583         * modules/vasprintf-posix: New file.
52584         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
52585         defined.
52586         * m4/vasprintf-posix.m4: New file.
52587         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
52588         gl_FUNC_VASPRINTF.
52589         (gl_FUNC_VASPRINTF): Invoke it.
52590         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
52591         here.
52592         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
52593
52594 2007-03-04  Bruno Haible  <bruno@clisp.org>
52595
52596         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
52597         REPLACE_GETTIMEOFDAY.
52598         * modules/sys_time (Makefile.am): Likewise.
52599         * m4/sys_time_h.m4: Likewise.
52600         * m4/gettimeofday.m4: Likewise.
52601
52602 2007-03-04  Bruno Haible  <bruno@clisp.org>
52603
52604         * modules/vasnprintf-posix-tests: New file.
52605         * tests/test-vasnprintf-posix.c: New file.
52606
52607         * modules/vasnprintf-posix: New file.
52608         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
52609         printf-frexpl.h.
52610         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
52611         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
52612         REPLACE_VASNPRINTF is defined.
52613         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
52614         gl_FUNC_VASNPRINTF.
52615         (gl_FUNC_VASNPRINTF): Invoke it.
52616         * m4/vasnprintf-posix.m4: New file.
52617         * m4/printf.m4: New file.
52618
52619 2007-03-04  Bruno Haible  <bruno@clisp.org>
52620
52621         Compile progreloc.c only if --enable-relocatable is specified.
52622         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
52623         if --enable-relocatable was specified.
52624         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
52625         lib_SOURCES.
52626
52627 2007-03-04  Jim Meyering  <jim@meyering.net>
52628
52629         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
52630         Use it consistently, rather than enumerating errno constants.
52631
52632 2007-03-04  Bruno Haible  <bruno@clisp.org>
52633
52634         * modules/xvasprintf-tests: New file.
52635         * tests/test-xvasprintf.c: New file.
52636
52637         * modules/vasprintf-tests: New file.
52638         * tests/test-vasprintf.c: New file.
52639
52640         * modules/vasnprintf-tests: New file.
52641         * tests/test-vasnprintf.c: New file.
52642
52643         * modules/vsnprintf-tests: New file.
52644         * tests/test-vsnprintf.c: New file.
52645
52646         * modules/snprintf-tests: New file.
52647         * tests/test-snprintf.c: New file.
52648
52649 2007-03-04  Bruno Haible  <bruno@clisp.org>
52650
52651         Compile relocatable.c only if --enable-relocatable is specified.
52652         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
52653         gl_RELOCATABLE_LIBRARY.
52654         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
52655         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
52656         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
52657         gl_RELOCATABLE_LIBRARY.
52658         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
52659         (Makefile.am): Remove lib_SOURCES.
52660         * modules/relocatable-lib-lgpl (configure.ac): Invoke
52661         gl_RELOCATABLE_LIBRARY.
52662         (Makefile.am): Remove lib_SOURCES.
52663         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
52664         always.
52665         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52666         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
52667
52668 2007-03-04  Bruno Haible  <bruno@clisp.org>
52669
52670         * modules/argmatch-tests: New file.
52671         * tests/test-argmatch.c: New file.
52672
52673         * tests/test-allocsa.c (main): Halve the number of loop runs.
52674
52675         * modules/alloca-opt-tests: New file.
52676         * tests/test-alloca-opt.c: New file.
52677
52678 2007-03-04  Jim Meyering  <jim@meyering.net>
52679
52680         Work around difference between Linux ACLs and Solaris 10 ZFS.
52681         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
52682         for EINVAL.
52683
52684 2007-03-03  Bruno Haible  <bruno@clisp.org>
52685
52686         * modules/relocatable-prog (Depends-on): Add back progreloc's
52687         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
52688
52689 2007-03-03  Bruno Haible  <bruno@clisp.org>
52690
52691         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
52692         * modules/relocatable-lib: New file.
52693
52694 2007-03-03  Bruno Haible  <bruno@clisp.org>
52695
52696         * modules/relocatable-prog: Renamed from modules/relocatable.
52697         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
52698
52699 2007-03-03  Bruno Haible  <bruno@clisp.org>
52700
52701         * modules/relocatable-script (Files): Add doc/relocatable.texi,
52702         m4/relocatable-lib.m4.
52703         (Depends-on): Remove 'relocatable'.
52704         (configure.ac): Add gl_RELOCATABLE_NOP.
52705
52706 2007-03-03  Bruno Haible  <bruno@clisp.org>
52707
52708         * modules/relocatable-prog-wrapper: New file.
52709         * modules/relocatable (Depends-on): Add it. Remove all other
52710         dependencies except progname.
52711         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
52712
52713         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
52714         (gl_FUNC_STRERROR): Nop.
52715         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
52716
52717         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
52718         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
52719
52720         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
52721         (gl_FUNC_READLINK): Update.
52722
52723         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
52724
52725 2007-03-03  Bruno Haible  <bruno@clisp.org>
52726
52727         * lib/xreadlink.c: Include <unistd.h> unconditionally.
52728         * modules/xreadlink (Depends-on): Add unistd.
52729         * modules/xreadlink-with-size (Depends-on): Likewise.
52730
52731 2007-03-03  Bruno Haible  <bruno@clisp.org>
52732
52733         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
52734         extracted from gt_FUNC_SETENV.
52735         (gt_FUNC_SETENV): Remove macro.
52736         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
52737         remove gt_FUNC_SETENV.
52738
52739 2007-03-03  Bruno Haible  <bruno@clisp.org>
52740
52741         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
52742         ENABLE_RELOCATABLE here.
52743         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
52744
52745 2007-03-03  Bruno Haible  <bruno@clisp.org>
52746
52747         * modules/rbtreehash-list-tests (Depends-on): Add progname.
52748         * tests/test-rbtreehash_list.c: Include progname.h.
52749         (main): Call set_program_name.
52750
52751         * modules/rbtree-oset-tests (Depends-on): Add progname.
52752         * tests/test-rbtree_oset.c: Include progname.h.
52753         (main): Call set_program_name.
52754
52755         * modules/rbtree-list-tests (Depends-on): Add progname.
52756         * tests/test-rbtree_list.c: Include progname.h.
52757         (main): Call set_program_name.
52758
52759         * modules/linked-list-tests (Depends-on): Add progname.
52760         * tests/test-linked_list.c: Include progname.h.
52761         (main): Call set_program_name.
52762
52763 2007-03-03  Bruno Haible  <bruno@clisp.org>
52764
52765         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
52766         All uses of __restrict changed to _Restrict_.
52767         * lib/glob_.h (__restrict): Remove macro.
52768
52769 2007-03-02  Bruno Haible  <bruno@clisp.org>
52770
52771         * modules/gettext (configure.ac): Require gettext infrastructure
52772         from version 0.16.1.
52773
52774 2007-03-02  Bruno Haible  <bruno@clisp.org>
52775
52776         * modules/linkedhash-list-tests (Depends-on): Add progname.
52777         * tests/test-linkedhash_list.c: Include progname.h.
52778         (main): Call set_program_name.
52779
52780         * modules/carray-list-tests (Depends-on): Add progname.
52781         * tests/test-carray_list.c: Include progname.h.
52782         (main): Call set_program_name.
52783
52784         * modules/avltreehash-list-tests (Depends-on): Add progname.
52785         * tests/test-avltreehash_list.c: Include progname.h.
52786         (main): Call set_program_name.
52787
52788         * modules/avltree-oset-tests (Depends-on): Add progname.
52789         * tests/test-avltree_oset.c: Include progname.h.
52790         (main): Call set_program_name.
52791
52792         * modules/avltree-list-tests (Depends-on): Add progname.
52793         * tests/test-avltree_list.c: Include progname.h.
52794         (main): Call set_program_name.
52795
52796         * modules/array-oset-tests (Depends-on): Add progname.
52797         * tests/test-array_oset.c: Include progname.h.
52798         (main): Call set_program_name.
52799
52800         * modules/array-list-tests (Depends-on): Add progname.
52801         * tests/test-array_list.c: Include progname.h.
52802         (main): Call set_program_name.
52803
52804         * modules/argp-tests (Depends-on): Add progname.
52805         * tests/test-argp.c: Include argp.h first. Include progname.h.
52806         (main): Call set_program_name.
52807
52808 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
52809
52810         * doc/gnulib-tool.texi (Initial import): Reword description of
52811         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
52812         limited effect even if defined after the first system include.
52813
52814 2007-03-01  Bruno Haible  <bruno@clisp.org>
52815
52816         * build-aux/config.libpath: Update to libtool-1.5.22.
52817         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52818
52819 2007-03-01  Bruno Haible  <bruno@clisp.org>
52820
52821         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
52822         foo_CFLAGS.
52823         Reported by Ralf Wildenhues.
52824
52825 2007-03-01  Bruno Haible  <bruno@clisp.org>
52826
52827         * build-aux/install-reloc: Remove object files left over by some
52828         compilers.
52829         Reported by Ralf Wildenhues.
52830
52831 2007-03-01  Bruno Haible  <bruno@clisp.org>
52832
52833         * build-aux/install-reloc: Break long lines.
52834
52835 2007-03-01  Bruno Haible  <bruno@clisp.org>
52836
52837         * doc/relocatable.texi: Document that it may not work on OpenBSD.
52838         Reported by Ralf Wildenhues.
52839
52840 2007-03-01  Bruno Haible  <bruno@clisp.org>
52841
52842         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
52843         include ordering constraints.
52844
52845 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52846
52847         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
52848         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
52849         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
52850         as another example.
52851         * lib/time_.h: Fix misspelling.
52852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52853         Require gl_HEADER_TIME_H_DEFAULTS.
52854         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
52855         * m4/time_r.m4 (gl_TIME_R): Likewise.
52856         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
52857
52858 2007-03-01  Bruno Haible  <bruno@clisp.org>
52859
52860         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
52861         * m4/utimens.m4 (gl_UTIMENS): Likewise.
52862
52863 2007-03-01  Jim Meyering  <jim@meyering.net>
52864
52865         * modules/xreadlink (Maintainer): Add my name.
52866         * modules/xreadlink-with-size (Depends-on): Alphabetize.
52867
52868 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
52869             Bruno Haible  <bruno@clisp.org>
52870
52871         * build-aux/install-reloc: Compile also c-ctype.c.
52872         * build-aux/relocatable.sh.in: New file.
52873         * doc/relocatable.texi: New file.
52874         * doc/relocatable-maint.texi: New file.
52875         * doc/gnulib.texi: Include relocatable-maint.texi.
52876         * lib/progreloc.c: Include unistd.h unconditionally.
52877         * lib/relocwrapper.c: Include unistd.h unconditionally.
52878         Include c-ctype.h.
52879         (add_dotbin): Use c_tolower.
52880         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
52881         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
52882         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
52883         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
52884         to m4/relocatable-lib.m4.
52885         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
52886         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
52887         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
52888         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
52889         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
52890         * modules/relocatable: New file.
52891         * modules/relocatable-lib: New file.
52892         * modules/relocatable-script: New file.
52893
52894 2007-02-28  Bruno Haible  <bruno@clisp.org>
52895
52896         Import --enable-relocatable infrastructure.
52897         * build-aux/config.libpath: New file, from GNU gettext.
52898         * build-aux/install-reloc: New file, from GNU gettext.
52899         * build-aux/reloc-ldflags: New file, from GNU gettext.
52900         * lib/relocatable.h: New file, from GNU gettext.
52901         * lib/relocatable.c: New file, from GNU gettext.
52902         * lib/relocwrapper.c: New file, from GNU gettext.
52903         * m4/relocatable.m4: New file, from GNU gettext.
52904
52905 2007-02-28  Bruno Haible  <bruno@clisp.org>
52906
52907         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
52908
52909         * modules/xreadlink: New file, from GNU gettext with modifications.
52910         * lib/xreadlink.c: New file, from GNU gettext.
52911         * lib/xreadlink.h: Add comments.
52912         (xreadlink): New declaration.
52913
52914         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
52915         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
52916         lib/xreadlink-with-size.c.
52917         (configure.ac): Remove gl_XREADLINK invocation.
52918         (Makefile.am): Augment lib_SOURCES.
52919         * m4/xreadlink.m4: Remove file.
52920         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
52921         (xreadlink_with_size): Renamed from xreadink.
52922         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
52923         * modules/canonicalize (Depends-on): Replace xreadlink with
52924         xreadlink-with-size.
52925         * lib/canonicalize.c (canonicalize_filename_mode): Update.
52926
52927 2007-02-25  Jim Meyering  <jim@meyering.net>
52928
52929         * build-aux/announce-gen: When complaining about excess arguments,
52930         list them.
52931
52932 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52933
52934         * README: Document signed integer overflow situation more
52935         accurately.
52936
52937 2007-02-25  Bruno Haible  <bruno@clisp.org>
52938
52939         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
52940         'a' or 'A' conversion.
52941
52942 2007-02-25  Bruno Haible  <bruno@clisp.org>
52943
52944         * modules/filename: Renamed from modules/pathname.
52945         (Files): Replace lib/pathname.h with lib/filename.h. Replace
52946         lib/concatpath.c with lib/concat-filename.c.
52947         (Makefile.am): Update.
52948         (Include): Replace pathname.h with filename.h.
52949         * lib/filename.h: Renamed from lib/pathname.h.
52950         (concatenated_filename): Renamed from concatenated_pathname.
52951         * lib/concat-filename.c: Renamed from lib/concatpath.c.
52952         (concatenated_filename): Renamed from concatenated_pathname.
52953         * lib/findprog.c: Include filename.h instead of pathname.h.
52954         (find_in_path): Update.
52955         * lib/javacomp.c: Include filename.h instead of pathname.h.
52956         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52957         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52958         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52959         is_oldgcj_14_13_usable, is_javac_usable): Update.
52960         * lib/javaexec.c: Include filename.h instead of pathname.h.
52961         (execute_java_class): Update.
52962         * modules/findprog: Update.
52963         * modules/javacomp: Update.
52964         * modules/javaexec: Update.
52965         * MODULES.html.sh (File system functions): Add 'filename', remove
52966         'pathname'.
52967
52968 2007-02-25  Bruno Haible  <bruno@clisp.org>
52969
52970         * modules/printf-frexpl-tests: New file.
52971         * tests/test-printf-frexpl.c: New file.
52972
52973         * modules/printf-frexpl: New file.
52974         * lib/printf-frexpl.h: New file.
52975         * lib/printf-frexpl.c: New file.
52976         * m4/printf-frexpl.m4: New file.
52977
52978 2007-02-25  Bruno Haible  <bruno@clisp.org>
52979
52980         * modules/printf-frexp-tests: New file.
52981         * tests/test-printf-frexp.c: New file.
52982
52983         * modules/printf-frexp: New file.
52984         * lib/printf-frexp.h: New file.
52985         * lib/printf-frexp.c: New file.
52986         * m4/printf-frexp.m4: New file.
52987
52988 2007-02-25  Bruno Haible  <bruno@clisp.org>
52989
52990         Assume automake >= 1.10 for the tests.
52991         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
52992         * modules/arctwo-tests: Likewise.
52993         * modules/argp-tests: Likewise.
52994         * modules/avltree-list-tests: Likewise.
52995         * modules/avltree-oset-tests: Likewise.
52996         * modules/avltreehash-list-tests: Likewise.
52997         * modules/carray-list-tests: Likewise.
52998         * modules/crc-tests: Likewise.
52999         * modules/des-tests: Likewise.
53000         * modules/gc-arcfour-tests: Likewise.
53001         * modules/gc-arctwo-tests: Likewise.
53002         * modules/gc-des-tests: Likewise.
53003         * modules/gc-hmac-md5-tests: Likewise.
53004         * modules/gc-hmac-sha1-tests: Likewise.
53005         * modules/gc-md2-tests: Likewise.
53006         * modules/gc-md4-tests: Likewise.
53007         * modules/gc-md5-tests: Likewise.
53008         * modules/gc-pbkdf2-sha1-tests: Likewise.
53009         * modules/gc-rijndael-tests: Likewise.
53010         * modules/gc-sha1-tests: Likewise.
53011         * modules/gc-tests: Likewise.
53012         * modules/getaddrinfo-tests: Likewise.
53013         * modules/hmac-md5-tests: Likewise.
53014         * modules/hmac-sha1-tests: Likewise.
53015         * modules/linked-list-tests: Likewise.
53016         * modules/linkedhash-list-tests: Likewise.
53017         * modules/lock-tests: Likewise.
53018         * modules/md2-tests: Likewise.
53019         * modules/md4-tests: Likewise.
53020         * modules/md5-tests: Likewise.
53021         * modules/rbtree-list-tests: Likewise.
53022         * modules/rbtree-oset-tests: Likewise.
53023         * modules/rbtreehash-list-tests: Likewise.
53024         * modules/read-file-tests: Likewise.
53025         * modules/rijndael-tests: Likewise.
53026         * modules/stdint-tests: Likewise.
53027         * modules/tls-tests: Likewise.
53028
53029 2007-02-24  Bruno Haible  <bruno@clisp.org>
53030
53031         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
53032         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
53033         function; instead check whether isnan with a double argument links.
53034         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
53035         function; instead check whether isnan with a 'long double' argument
53036         links.
53037         Reported by Eric Blake <ebb9@byu.net>.
53038
53039 2007-02-24  Bruno Haible  <bruno@clisp.org>
53040
53041         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
53042         defined.
53043         * lib/isnanl.c: Remove all code. Just include isnan.c.
53044         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
53045
53046 2007-02-25  Jim Meyering  <jim@meyering.net>
53047
53048         Avoid conflicting types for 'unsetenv' on FreeBSD.
53049         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
53050         conflicting with FreeBSD's (5.0 and 6.1) function declaration
53051         in stdlib.h.
53052
53053 2007-02-24  Bruno Haible  <bruno@clisp.org>
53054
53055         * modules/isnanl-nolibm-tests: New file.
53056         * tests/test-isnanl.c: New file.
53057
53058         * modules/isnanl-nolibm: New file.
53059         * lib/isnanl.h: New file.
53060         * lib/isnanl.c: New file.
53061         * m4/isnanl.m4: New file.
53062
53063 2007-02-24  Bruno Haible  <bruno@clisp.org>
53064
53065         * modules/isnan-nolibm-tests: New file.
53066         * tests/test-isnan.c: New file.
53067
53068         * modules/isnan-nolibm: New file.
53069         * lib/isnan.h: New file.
53070         * lib/isnan.c: New file.
53071         * m4/isnan.m4: New file.
53072
53073 2007-02-24  Bruno Haible  <bruno@clisp.org>
53074
53075         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
53076         assume that an exponent fits in 20 bits.
53077
53078 2007-02-24  Jim Meyering  <jim@meyering.net>
53079
53080         * m4/regex.m4: Update the description of the configure-time option,
53081         --without-included-regex, to state accurately what the defaults are,
53082         and perhaps to give people an idea why using this option is risky.
53083
53084 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53085
53086         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
53087         loops on small arguments.  This attempts to avoid the problem
53088         Bruno Haible reported for AIX 4.3.2 in
53089         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
53090
53091 2007-02-23  Bruno Haible  <bruno@clisp.org>
53092
53093         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
53094         Needed for help2man.
53095
53096 2007-02-23  Karl Berry  <karl@gnu.org>
53097
53098         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
53099         exists, foo.h should be cvs-ignored, not committed.
53100
53101 2007-02-23  Eric Blake  <ebb9@byu.net>
53102
53103         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
53104         * lib/stat-time.h (includes): Likewise.
53105         * lib/utimecmp.c (includes): Likewise.
53106         * lib/utimens.h (includes): Likewise.
53107         * lib/getdate.y (includes): Also include "timespec.h" for use
53108         internal to the module.
53109         * modules/utimens (Depends-on): Revert yesterday's patch.
53110         * modules/nanosleep (Depends-on): Add missing dependency.
53111
53112 2007-02-22  Bruno Haible  <bruno@clisp.org>
53113
53114         * lib/glob.c: Don't include getlogin_r.h.
53115
53116 2007-02-22  Jim Meyering  <jim@meyering.net>
53117
53118         * modules/utimens (Depends-on): Add timespec, required for
53119         utimens.h's inclusion of timespec.h.
53120
53121 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
53122
53123         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
53124         long unreadable paths in GNU/Linux.  Problem reported by Andreas
53125         Schwab in
53126         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
53127         I'll try to think of a better way to fix the Solaris problem.
53128
53129         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
53130         like glibc; on Solaris 10, it fails with errno == EINVAL.
53131         POSIX says the behavior is unspecified if the first argument is NULL,
53132         so play it safe and never pass NULL to the system getcwd.
53133
53134 2007-02-21  Jim Meyering  <jim@meyering.net>
53135
53136         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
53137         of gettimeofday.  It would conflict with the one now always
53138         provided via sys_time_.h.  Reported by Matthew Woehlke, as
53139         an IRIX 6.5 build failure.
53140
53141 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53142
53143         Minor fixups to port to Solaris 10 with Sun C 5.8.
53144         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
53145         * modules/getcwd (Depends-on): Add dirfd.
53146         * lib/putenv.c (putenv): #undef it.
53147         (rpl_putenv): New decl.
53148         (malloc, free): Include <stdlib.h> rather than prototyping separately.
53149
53150 2007-02-20  Bruno Haible  <bruno@clisp.org>
53151
53152         * modules/stdio-tests: New file.
53153         * tests/test-stdio.c: New file.
53154
53155         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
53156         (Depends-on): Add stdio.
53157         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53158         (Include): Use <stdio.h> instead of vsnprintf.h.
53159         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53160         HAVE_DECL_VSNPRINTF.
53161         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
53162
53163         * modules/snprintf (Files): Remove lib/snprintf.h.
53164         (Depends-on): Add stdio.
53165         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53166         (Include): Use <stdio.h> instead of snprintf.h.
53167         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53168         HAVE_DECL_SNPRINTF.
53169         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
53170         * lib/getaddrinfo.c: Likewise.
53171
53172         * modules/stdio: New file.
53173         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
53174         * lib/snprintf.h: Remove file.
53175         * lib/vsnprintf.h: Remove file.
53176         * lib/.cppi-disable: Remove snprintf.h.
53177         * m4/stdio_h.m4: New file.
53178         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
53179
53180 2007-02-20  Jim Meyering  <jim@meyering.net>
53181
53182         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
53183         used by e.g., mingw.  From Bruno Haible.
53184
53185 2007-02-19  Bruno Haible  <bruno@clisp.org>
53186
53187         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
53188         warnings.
53189         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53190
53191 2007-02-19  Bruno Haible  <bruno@clisp.org>
53192
53193         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
53194         from mingw users.
53195
53196 2007-02-19  Bruno Haible  <bruno@clisp.org>
53197
53198         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
53199         warnings.
53200         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
53201
53202 2007-02-19  Jim Meyering  <jim@meyering.net>
53203
53204         Don't use FD after a successful "fdopendir (fd)".
53205         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
53206         Reset it by calling dirfd on the just-obtained DIR*.
53207
53208         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
53209         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
53210
53211 2007-02-18  Bruno Haible  <bruno@clisp.org>
53212
53213         * lib/readlink.c: Include <unistd.h>.
53214         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
53215         HAVE_READLINK.
53216         * modules/readlink (Depends-on): Add unistd.
53217         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53218         (Include): Add <unistd.h>.
53219
53220         * lib/getlogin_r.h: Remove file.
53221         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
53222         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
53223         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
53224         HAVE_DECL_GETLOGIN_R.
53225         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
53226         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53227         (Include): Use <unistd.h> instead of getlogin_r.h.
53228
53229         * lib/getcwd.h: Remove file.
53230         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
53231         * lib/xgetcwd.c: Likewise.
53232         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
53233         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
53234         * modules/getcwd (Files): Remove lib/getcwd.h.
53235         (Depends-on): Add unistd.
53236         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53237         (Include): Use <unistd.h> instad of getcwd.h.
53238
53239         * lib/ftruncate.c: Include <unistd.h> first.
53240         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
53241         Set HAVE_FTRUNCATE.
53242         * modules/ftruncate (Depends-on): Add unistd.
53243         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53244
53245         * lib/fchdir.c: Include <unistd.h> first.
53246         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
53247         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
53248         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
53249         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53250         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
53251
53252         * lib/dup2.c: Include <unistd.h> first.
53253         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
53254         HAVE_DUP2.
53255         * modules/dup2 (Depends-on): Add unistd.
53256         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53257
53258         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
53259         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
53260         REPLACE_CHOWN. Don't define chown as a macro here.
53261         * modules/chown (Depends-on): Add unistd.
53262         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53263
53264         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
53265         Add definition for GL_LINK_WARNING.
53266         (chown, dup2): New declarations.
53267         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
53268         link warning.
53269         (ftruncate): New declaration.
53270         (getcwd): New declaration, taken from old getcwd.h.
53271         (getlogin_r): New declaration, taken from old getlogin_r.h.
53272         (readlink): New declaration.
53273         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
53274         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
53275         (gl_PREREQ_UNISTD): Remove macro.
53276         (gl_UNISTD_MODULE_INDICATOR): New macro.
53277         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
53278         many new variables. Don't set UNISTD_H.
53279         * modules/unistd (Description): Change.
53280         (Depends-on): Add link-warning.
53281         (configure.ac): Update.
53282         (Makefile.am): Create unistd.h always. Substitute many new variables
53283         into it.
53284
53285 2007-02-18  Bruno Haible  <bruno@clisp.org>
53286
53287         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
53288         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
53289         HAVE_GETSUBOPT.
53290         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
53291         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
53292         * lib/getsubopt.h: Remove file.
53293         * modules/getsubopt (Files): Remove lib/getsubopt.h.
53294         (Depends-on): Add stdlib.
53295         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53296         (Includes): Use <stdlib.h> instead of getsubopt.h.
53297         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
53298         Set HAVE_GETSUBOPT.
53299         * lib/getsubopt.c: Don't include getsubopt.h.
53300
53301 2007-02-18  Bruno Haible  <bruno@clisp.org>
53302
53303         * modules/fchdir (Depends-on): Add dup2.
53304
53305 2007-02-18  Bruno Haible  <bruno@clisp.org>
53306
53307         * lib/stdlib_.h: Handle glibc's special invocation convention
53308         specially.
53309
53310 2007-02-18  Bruno Haible  <bruno@clisp.org>
53311
53312         * modules/stdlib-tests: New file.
53313         * tests/test-stdlib.c: New file.
53314
53315         * modules/mkstemp (Files): Remove lib/mkstemp.h.
53316         (Depends-on): Add stdlib.
53317         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53318         (Includes): Use <stdlib.h> instead of mkstemp.h.
53319         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53320         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
53321         * lib/mkstemp.c: Don't include mkstemp.h.
53322         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
53323         * lib/stdlib--.h: Don't include mkstemp.h.
53324
53325         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
53326         (Depends-on): Add stdlib.
53327         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53328         (Includes): Use <stdlib.h> instead of mkdtemp.h.
53329         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53330         HAVE_MKDTEMP.
53331         * lib/mkdtemp.c: Don't include mkdtemp.h.
53332         * lib/clean-temp.c: Don't include mkdtemp.h.
53333
53334         * modules/exit (Files): Remove lib/exit.h.
53335         (Depends-on): Add stdlib.
53336         (Makefile.am): Remove lib_SOURCES.
53337         (Include): Use <stdlib.h> instead of exit.h.
53338         * lib/argmatch.c: Don't include exit.h.
53339         * lib/execute.c: Likewise.
53340         * lib/pagealign_alloc.c: Likewise.
53341         * lib/pipe.c: Likewise.
53342         * lib/wait-process.c: Likewise.
53343         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
53344         * lib/exitfail.c: Likewise.
53345         * lib/savewd.c: Likewise.
53346         * lib/xsetenv.c: Likewise.
53347
53348         * modules/stdlib: New file.
53349         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
53350         and extra comments about mkstemp().
53351         * lib/exit.h: Remove file.
53352         * lib/mkdtemp.h: Remove file.
53353         * lib/mkstemp.h: Remove file.
53354         * m4/stdlib_h.m4: New file.
53355         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
53356
53357 2007-02-18  Bruno Haible  <bruno@clisp.org>
53358
53359         * modules/math-tests: New file.
53360         * tests/test-math.c: New file.
53361
53362         * modules/math: New file.
53363         * modules/mathl (Files): Remove lib/mathl.h.
53364         (Depends-on): Add math.
53365         (Makefile.am): Don't mention mathl.h.
53366         (Include): Use <math.h> instead of mathl.h.
53367         * lib/math_.h: New file.
53368         * lib/mathl.h: Remove file.
53369         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
53370         mathl.h.
53371         * lib/asinl.c: Likewise.
53372         * lib/atanl.c: Likewise.
53373         * lib/ceill.c: Likewise.
53374         * lib/cosl.c: Likewise.
53375         * lib/expl.c: Likewise.
53376         * lib/floorl.c: Likewise.
53377         * lib/frexpl.c: Likewise.
53378         * lib/ldexpl.c: Likewise.
53379         * lib/logl.c: Likewise.
53380         * lib/sincosl.c: Likewise.
53381         * lib/sinl.c: Likewise.
53382         * lib/sqrtl.c: Likewise.
53383         * lib/tanl.c: Likewise.
53384         * lib/trigl.c: Likewise.
53385         * m4/math_h.m4: New file.
53386         * MODULES.html.sh (Mathematics): Add math.
53387
53388 2007-02-17  Bruno Haible  <bruno@clisp.org>
53389
53390         * modules/wctype-tests: New file.
53391         * tests/test-wctype.c: New file.
53392
53393         * modules/wchar-tests: New file.
53394         * tests/test-wchar.c: New file.
53395
53396         * modules/unistd-tests: New file.
53397         * tests/test-unistd.c: New file.
53398
53399         * modules/time-tests: New file.
53400         * tests/test-time.c: New file.
53401
53402         * modules/sysexits-tests: New file.
53403         * tests/test-sysexits.c: New file.
53404
53405         * modules/sys_time-tests: New file.
53406         * tests/test-sys_time.c: New file.
53407
53408         * modules/sys_stat-tests: New file.
53409         * tests/test-sys_stat.c: New file.
53410
53411         * modules/sys_socket-tests: New file.
53412         * tests/test-sys_socket.c: New file.
53413
53414         * modules/sys_select-tests: New file.
53415         * tests/test-sys_select.c: New file.
53416
53417         * modules/string-tests: New file.
53418         * tests/test-string.c: New file.
53419
53420         * modules/stdbool-tests: New file.
53421         * tests/test-stdbool.c: New file.
53422
53423         * modules/netinet_in-tests: New file.
53424         * tests/test-netinet_in.c: New file.
53425
53426         * modules/inttypes-tests: New file.
53427         * tests/test-inttypes.c: New file.
53428
53429         * modules/fcntl-tests: New file.
53430         * tests/test-fcntl.c: New file.
53431
53432         * modules/byteswap-tests: New file.
53433         * tests/test-byteswap.c: New file.
53434
53435         * modules/arpa_inet-tests: New file.
53436         * tests/test-arpa_inet.c: New file.
53437
53438 2007-02-17  Bruno Haible  <bruno@clisp.org>
53439
53440         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
53441         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
53442         if the corresponding module is not enabled. Emit link warnings if
53443         the function is used nevertheless.
53444         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
53445         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
53446         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
53447         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
53448         * modules/inttypes (Depends-on): Add link-warning.
53449         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53450         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
53451         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
53452         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
53453         * modules/imaxdiv (configure.ac): Likewise.
53454         * modules/strtoimax (configure.ac): Likewise.
53455         * modules/strtoumax (configure.ac): Likewise.
53456
53457 2007-02-17  Bruno Haible  <bruno@clisp.org>
53458
53459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
53460         gl_STRING_MODULE_INDICATOR_DEFAULTS.
53461         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
53462         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
53463
53464 2007-02-17  Bruno Haible  <bruno@clisp.org>
53465
53466         * modules/link-warning: New file.
53467         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
53468         * lib/string_.h (GL_LINK_WARNING): Remove definition.
53469         * modules/string (Depends-on): Add link-warning.
53470         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53471         string.h.
53472         * MODULES.html.sh (Support for building libraries and executables): Add
53473         link-warning.
53474
53475 2007-02-17  Bruno Haible  <bruno@clisp.org>
53476
53477         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
53478         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
53479         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
53480         long lines.
53481
53482 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
53483             Bruno Haible  <bruno@clisp.org>
53484
53485         * modules/tmpfile: New file.
53486         * lib/tmpfile.c: New file.
53487         * m4/tmpfile.m4: New file.
53488         * MODULES.html.sh (func_all_modules): New section "Input/output".
53489
53490 2007-02-15  Bruno Haible  <bruno@clisp.org>
53491
53492         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
53493         (supports_delete_on_close): New function.
53494         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
53495
53496 2007-02-14  Bruno Haible  <bruno@clisp.org>
53497
53498         * modules/mbspcasecmp-tests: New file.
53499         * tests/test-mbspcasecmp.sh: New file.
53500         * tests/test-mbspcasecmp.c: New file.
53501
53502         New module mbspcasecmp.
53503         * modules/mbspcasecmp: New file.
53504         * lib/mbspcasecmp.c: New file.
53505         * lib/string_.h (strncasecmp): Change warning message.
53506         (mbspcasecmp): New declaration.
53507         * m4/mbspcasecmp.m4: New file.
53508         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53509         GNULIB_MBSPCASECMP.
53510         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
53511         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
53512
53513 2007-02-14  Bruno Haible  <bruno@clisp.org>
53514
53515         * modules/mbsncasecmp-tests: New file.
53516         * tests/test-mbsncasecmp.sh: New file.
53517         * tests/test-mbsncasecmp.c: New file.
53518
53519         New module mbsncasecmp.
53520         * modules/mbsncasecmp: New file.
53521         * lib/mbsncasecmp.c: New file.
53522         * lib/string_.h (mbsncasecmp): New declaration.
53523         * m4/mbsncasecmp.m4: New file.
53524         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53525         GNULIB_MBSNCASECMP.
53526         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
53527         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
53528
53529 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
53530
53531         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
53532         Verify that it doesn't overlap with our flags.
53533         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
53534         do not have the desired effect in multibyte locales; instead, use
53535         mbscasecmp.
53536         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
53537         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
53538         we don't require GNU fnmatch ourselves (if our users require it, they
53539         should do so explicitly).
53540
53541         Fix regex code so it doesn't rely on strcasecmp.
53542         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
53543         Otherwise, include gnulib's langinfo.h.
53544         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
53545         undesirable behavior in non-C locales.  Instead, rely on localecharset.
53546         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
53547         * modules/regex (FILES): Remove m4/codeset.m4.
53548         (Depends-on): Add localcharset.  Remove strcase.
53549
53550 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53551
53552         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
53553         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
53554
53555 2007-02-13  Bruno Haible  <bruno@clisp.org>
53556
53557         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
53558         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53559
53560 2007-02-12  Bruno Haible  <bruno@clisp.org>
53561
53562         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53563         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
53564         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
53565         time warning rather than a link error.
53566
53567 2007-02-12  Bruno Haible  <bruno@clisp.org>
53568
53569         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
53570         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53571         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53572
53573 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53574
53575         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
53576         args, not 2.
53577
53578 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53579
53580         New module 'time', so that apps can include <time.h> as per
53581         POSIX and GNU instead of separate include files like time_r.h
53582         and timegm.h.  This implementation tries out a simpler approach
53583         for replacing decls in standard include files (as compared to
53584         the string module), somewhat as an experiment.
53585
53586         * config/srclist.txt: Comment out mktime.c for now.
53587         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
53588         since it doesn't apply any more.  Use generic wording instead.
53589         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
53590         'time'.
53591         * lib/time_.h, m4/time_h.m4, modules/time: New files.
53592         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
53593         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
53594         Don't include <sys/types.h>; no longer needed since we assume C89.
53595         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
53596         * lib/strftime.c: Likewise.
53597         * lib/time_r.c: Likewise.
53598         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
53599         * lib/nanosleep.c: Include <time.h> first, to check interface.
53600         * lib/strptime.c: Likewise.
53601         * lib/time_r.c: Likewise.
53602         * lib/timegm.c: Likewise.
53603         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
53604         needed.
53605         * lib/timegm.c: Don't include timegm.h; no longer needed.
53606         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
53607         time.h now handles any problems in that area.
53608         (struct timespec, nanosleep): Remove; time.h now arranges for these.
53609         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
53610         that time.h defines struct timespec.
53611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
53612         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
53613         handles that.
53614         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
53615         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
53616         needed.  Set REPLACE_LOCALTIME.
53617         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
53618         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
53619         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
53620         nanosleep; time_h.m4 now does that.  Don't require
53621         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
53622         module handles this now.
53623         * modules/getdate (Depends-on): Remove timespec.  Add time.
53624         * modules/nanosleep (Depends-on): Likewise.
53625         * modules/stat-time (Depends-on): Likewise.
53626         * modules/nanosleep (Include): Include time.h, not timespec.h.
53627         * modules/strptime (Files): Remove lib/strptime.h.
53628         (Depends-on): Add extensions, time.
53629         (Include): Include time.h, not strptime.h.
53630         * modules/time_r (Files): Remove lib/time_r.h.
53631         (Depends-on): Add time.
53632         (Include): Include time.h, not time_r.h.
53633         * modules/timegm: Likewise.
53634         * modules/timespec (Description): Now does timespec-related decls
53635         of our own, instead of struct timespec itself.
53636         (Depends-on): Add time; remove extensions.
53637         (Maintainer): Add self.
53638         * modules/utimecmp (Depends-on): Add time; remove timespec.
53639         * modules/utimens (Depends-on): Likewise.
53640         * modules/xnanosleep (Depends-on): Likewise.
53641
53642 2007-02-11  Bruno Haible  <bruno@clisp.org>
53643
53644         * lib/c-strstr.c: Include allocsa.h.
53645         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53646         * lib/c-strcasestr.c: Include allocsa.h.
53647         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53648         * lib/strcasestr.c: Include allocsa.h.
53649         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53650         * lib/mbsstr.c: Include allocsa.h.
53651         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53652         allocsa/freesa instead of malloc/free.
53653         * lib/mbscasestr.c: Include allocsa.h.
53654         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53655         allocsa/freesa instead of malloc/free.
53656         * modules/c-strstr (Depends-on): Add allocsa.
53657         * modules/c-strcasestr (Depends-on): Likewise.
53658         * modules/strcasestr (Depends-on): Likewise.
53659         * modules/mbsstr (Depends-on): Likewise.
53660         * modules/mbscasestr (Depends-on): Likewise.
53661
53662 2007-02-11  Bruno Haible  <bruno@clisp.org>
53663
53664         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
53665
53666         * modules/mbsspn-tests: New file.
53667         * tests/test-mbsspn.sh: New file.
53668         * tests/test-mbsspn.c: New file.
53669
53670 2007-02-11  Bruno Haible  <bruno@clisp.org>
53671
53672         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
53673
53674         * modules/mbspbrk-tests: New file.
53675         * tests/test-mbspbrk.sh: New file.
53676         * tests/test-mbspbrk.c: New file.
53677
53678 2007-02-11  Bruno Haible  <bruno@clisp.org>
53679
53680         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
53681         unneeded cast.
53682
53683         * modules/mbscspn-tests: New file.
53684         * tests/test-mbscspn.sh: New file.
53685         * tests/test-mbscspn.c: New file.
53686
53687 2007-02-11  Bruno Haible  <bruno@clisp.org>
53688
53689         * modules/mbscasecmp-tests: New file.
53690         * tests/test-mbscasecmp.sh: New file.
53691         * tests/test-mbscasecmp.c: New file.
53692
53693 2007-02-11  Bruno Haible  <bruno@clisp.org>
53694
53695         Ensure O(n) worst-case complexity of mbscasestr.
53696         * lib/mbscasestr.c: Include stdbool.h.
53697         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53698         functions.
53699         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
53700         the bookkeeping indicates that it's worth it.
53701         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
53702
53703         * modules/mbscasestr-tests: New file.
53704         * tests/test-mbscasestr1.c: New file.
53705         * tests/test-mbscasestr2.sh: New file.
53706         * tests/test-mbscasestr2.c: New file.
53707         * tests/test-mbscasestr3.sh: New file.
53708         * tests/test-mbscasestr3.c: New file.
53709         * tests/test-mbscasestr4.sh: New file.
53710         * tests/test-mbscasestr4.c: New file.
53711         * m4/locale-tr.m4: New file.
53712
53713 2007-02-11  Bruno Haible  <bruno@clisp.org>
53714
53715         Ensure O(n) worst-case complexity of mbsstr.
53716         * lib/mbsstr.c: Include stdbool.h.
53717         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53718         functions.
53719         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
53720         bookkeeping indicates that it's worth it.
53721         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
53722
53723         * modules/mbsstr-tests: New file.
53724         * tests/test-mbsstr1.c: New file.
53725         * tests/test-mbsstr2.sh: New file.
53726         * tests/test-mbsstr2.c: New file.
53727         * tests/test-mbsstr3.sh: New file.
53728         * tests/test-mbsstr3.c: New file.
53729         * m4/locale-fr.m4: New file.
53730
53731 2007-02-11  Bruno Haible  <bruno@clisp.org>
53732
53733         * lib/mbsrchr.c (mbsrchr): Fix bug.
53734
53735         * modules/mbsrchr-tests: New file.
53736         * tests/test-mbsrchr.sh: New file.
53737         * tests/test-mbsrchr.c: New file.
53738
53739 2007-02-11  Bruno Haible  <bruno@clisp.org>
53740
53741         * lib/mbschr.c (mbschr): Fix bug.
53742
53743         * modules/mbschr-tests: New file.
53744         * tests/test-mbschr.sh: New file.
53745         * tests/test-mbschr.c: New file.
53746         * m4/locale-zh.m4: New file.
53747
53748 2007-02-11  Bruno Haible  <bruno@clisp.org>
53749
53750         Support for copying multibyte string iterators.
53751         * lib/mbiter.h: Include <string.h>.
53752         (mbiter_multi_copy): New function.
53753         (mbi_copy): New macro.
53754         * lib/mbuiter.h: Include <string.h>.
53755         (mbuiter_multi_copy): New function.
53756         (mbui_copy): New macro.
53757
53758 2007-02-11  Bruno Haible  <bruno@clisp.org>
53759
53760         New module mbslen.
53761         * modules/mbslen: New file.
53762         * lib/mbslen.c: New file.
53763         * lib/string_.h (mbslen): New declaration.
53764         * m4/mbslen.m4: New file.
53765         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53766         GNULIB_MBSLEN.
53767         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
53768         * MODULES.html.sh (Internationalization functions): Add mbslen.
53769
53770 2007-02-11  Bruno Haible  <bruno@clisp.org>
53771
53772         Ensure O(n) worst-case complexity of strcasestr substitute.
53773         * lib/strcasestr.c: Include stdbool.h.
53774         (knuth_morris_pratt): New function.
53775         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53776         bookkeeping indicates that it's worth it.
53777         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
53778
53779         * modules/strcasestr-tests: New file.
53780         * tests/test-strcasestr.c: New file.
53781
53782 2007-02-11  Bruno Haible  <bruno@clisp.org>
53783
53784         Ensure O(n) worst-case complexity of c_strcasestr.
53785         * lib/c-strcasestr.c: Include stdbool.h, string.h.
53786         (knuth_morris_pratt): New function.
53787         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
53788         the bookkeeping indicates that it's worth it.
53789         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
53790
53791         * modules/c-strcasestr-tests: New file.
53792         * tests/test-c-strcasestr.c: New file.
53793
53794 2007-02-11  Bruno Haible  <bruno@clisp.org>
53795
53796         Ensure O(n) worst-case complexity of c_strstr.
53797         * lib/c-strstr.c: Include stdbool.h, string.h.
53798         (knuth_morris_pratt): New function.
53799         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53800         bookkeeping indicates that it's worth it.
53801         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
53802
53803         * lib/c-strstr.c: Complete rewrite for maintainability.
53804
53805         * modules/c-strstr-tests: New file.
53806         * tests/test-c-strstr.c: New file.
53807
53808 2007-02-11  Bruno Haible  <bruno@clisp.org>
53809
53810         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
53811         5.2.1 and earlier, whereby \055 was treated just like the range
53812         delimiter '-'.
53813         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53814
53815 2007-02-08  Bruno Haible  <bruno@clisp.org>
53816
53817         * modules/regex (Depends-on): Add stdbool.
53818         Reported by Dalibor Topic <robilad@kaffe.org>.
53819
53820 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53821
53822         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
53823         Prefer returning from main to exiting from it.
53824         Remove unnecessary parens after sizeof.
53825
53826 2007-02-05  Bruno Haible  <bruno@clisp.org>
53827
53828         New module mbssep.
53829         * modules/mbssep: New file.
53830         * lib/mbssep.c: New file.
53831         * lib/string_.h (strsep): Add a conditional link warning.
53832         (mbssep): New declaration.
53833         * m4/mbssep.m4: New file.
53834         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53835         GNULIB_MBSSEP.
53836         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
53837         * MODULES.html.sh (Internationalization functions): Add mbssep.
53838
53839 2007-02-05  Bruno Haible  <bruno@clisp.org>
53840
53841         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
53842         Optimize search in case of 1 delimiter.
53843
53844 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53845
53846         * lib/acl.h: Include sys/types.h before sys/acl.h.
53847
53848 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53849
53850         Merge upstream fix for glibc bugzilla #3957:
53851
53852         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
53853
53854         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
53855         bit for RE_HAT_LISTS_NOT_NEWLINE.
53856         (build_charclass_op): Remove bogus comment.
53857
53858 2007-02-05  Simon Josefsson  <simon@josefsson.org>
53859
53860         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
53861
53862 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53863
53864         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
53865         * lib/memmem.c [!defined _LIBC]: Include config.h.
53866
53867 2007-02-04  Bruno Haible  <bruno@clisp.org>
53868
53869         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
53870         warning message.
53871
53872 2007-02-04  Bruno Haible  <bruno@clisp.org>
53873
53874         New module mbstok_r.
53875         * modules/mbstok_r: New file.
53876         * lib/mbstok_r.c: New file.
53877         * lib/string_.h (strtok_r): Change argument names to match the
53878         comments. Add a conditional link warning.
53879         (mbstok_r): New declaration.
53880         * m4/mbstok_r.m4: New file.
53881         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53882         GNULIB_MBSTOK_R.
53883         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
53884         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
53885
53886 2007-02-04  Bruno Haible  <bruno@clisp.org>
53887
53888         New module mbsspn.
53889         * modules/mbsspn: New file.
53890         * lib/mbsspn.c: New file.
53891         * lib/string_.h (strspn): Add a conditional link warning.
53892         (mbsspn): New declaration.
53893         * m4/mbsspn.m4: New file.
53894         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53895         GNULIB_MBSSPN.
53896         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
53897         * MODULES.html.sh (Internationalization functions): Add mbsspn.
53898
53899 2007-02-04  Bruno Haible  <bruno@clisp.org>
53900
53901         New module mbspbrk.
53902         * modules/mbspbrk: New file.
53903         * lib/mbspbrk.c: New file.
53904         * lib/string_.h (strpbrk): Add a conditional link warning.
53905         (mbspbrk): New declaration.
53906         * m4/mbspbrk.m4: New file.
53907         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53908         GNULIB_MBSPBRK.
53909         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
53910         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
53911
53912 2007-02-04  Bruno Haible  <bruno@clisp.org>
53913
53914         New module mbscspn.
53915         * modules/mbscspn: New file.
53916         * lib/mbscspn.c: New file.
53917         * lib/string_.h (strcspn): Add a conditional link warning.
53918         (mbscspn): New declaration.
53919         * m4/mbscspn.m4: New file.
53920         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53921         GNULIB_MBSCSPN.
53922         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
53923         * MODULES.html.sh (Internationalization functions): Add mbscspn.
53924
53925 2007-02-04  Bruno Haible  <bruno@clisp.org>
53926
53927         New module mbscasestr, reduced goal of strcasestr.
53928         * modules/mbscasestr: New file.
53929         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
53930         (mbscasestr): Renamed from strcasestr.
53931         * lib/strcasestr.c: Don't include mbuiter.h.
53932         (strcasestr): Remove support for multibyte locales.
53933         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
53934         Change the conditional link warning.
53935         (mbscasestr): New declaration.
53936         * m4/mbscasestr.m4: New file.
53937         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
53938         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
53939         REPLACE_STRCASESTR.
53940         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
53941         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53942         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53943         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
53944         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
53945         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53946         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
53947         (Depends-on): Remove mbuiter.
53948         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
53949
53950 2007-02-04  Bruno Haible  <bruno@clisp.org>
53951
53952         Simplify handling of strncasecmp.
53953         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
53954         the conditional link warning.
53955         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53956         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
53957         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
53958         * modules/strcase (configure.ac): Don't invoke
53959         gl_STRING_MODULE_INDICATOR.
53960         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
53961
53962 2007-02-04  Bruno Haible  <bruno@clisp.org>
53963
53964         New module mbscasecmp, reduced goal of strcasecmp.
53965         * modules/mbscasecmp: New file.
53966         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
53967         (mbscasecmp): Renamed from strcasecmp.
53968         * lib/strcasecmp.c: Don't include mbuiter.h.
53969         (strcasecmp): Remove support for multibyte locales.
53970         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
53971         Change the conditional link warning.
53972         (mbscasecmp): New declaration.
53973         * m4/mbscasecmp.m4: New file.
53974         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
53975         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
53976         REPLACE_STRCASECMP.
53977         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
53978         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53979         GNULIB_MBSCASECMP.
53980         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
53981         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
53982         * modules/strcase (Files): Remove m4/mbrtowc.m4.
53983         (Depends-on): Remove mbuiter.
53984         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
53985
53986 2007-02-04  Bruno Haible  <bruno@clisp.org>
53987
53988         New module mbsstr. Remove module strstr.
53989         * modules/mbsstr: New file.
53990         * modules/strstr: Remove file.
53991         * lib/mbsstr.c: Renamed from lib/strstr.c.
53992         (mbsstr): Renamed from strstr.
53993         * lib/string_.h (strstr): Remove declaration. Change the conditional
53994         link warning.
53995         (mbsstr): New declaration.
53996         * m4/mbsstr.m4: New file.
53997         * m4/strstr.m4: Remove file.
53998         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53999         REPLACE_STRSTR.
54000         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
54001         Don't initialize GNULIB_STRSTR.
54002         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
54003         substitute GNULIB_STRSTR and REPLACE_STRSTR.
54004         * MODULES.html.sh (Internationalization functions): Add mbsstr.
54005         (Support for systems lacking ANSI C 89): Remove strstr.
54006
54007 2007-02-04  Bruno Haible  <bruno@clisp.org>
54008
54009         New module mbsrchr.
54010         * modules/mbsrchr: New file.
54011         * lib/mbsrchr.c: New file.
54012         * lib/string_.h (strrchr): Add a conditional link warning.
54013         (mbsrchr): New declaration.
54014         * m4/mbsrchr.m4: New file.
54015         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54016         GNULIB_MBSRCHR.
54017         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
54018         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
54019
54020 2007-02-04  Bruno Haible  <bruno@clisp.org>
54021
54022         New module mbschr.
54023         * modules/mbschr: New file.
54024         * lib/mbschr.c: New file.
54025         * lib/string_.h (strchr): Add a conditional link warning.
54026         (mbschr): New declaration.
54027         * m4/mbschr.m4: New file.
54028         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54029         GNULIB_MBSCHR.
54030         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
54031         * MODULES.html.sh (Internationalization functions): Add mbschr.
54032
54033 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54034
54035         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
54036
54037         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
54038
54039 2007-02-04  Bruno Haible  <bruno@clisp.org>
54040
54041         New module description section 'configure.ac-early'.
54042         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
54043         (func_get_autoconf_early_snippet): New function.
54044         (func_import, func_create_testdir): Use it. Remove special cases for
54045         modules 'extensions' and 'lock'.
54046         * modules/extensions (configure.ac-early): Require
54047         gl_USE_SYSTEM_EXTENSIONS.
54048         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
54049
54050 2007-02-04  Bruno Haible  <bruno@clisp.org>
54051
54052         Make use of gcj-4.3's -fsource and -ftarget option.
54053         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
54054         and if so try the options -fsource and -ftarget.
54055         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
54056         source_version, ftarget_option, target_version arguments.
54057         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
54058         (is_envjavac_oldgcj_14_14_usable): Renamed from
54059         is_envjavac_gcj_14_14_usable.
54060         (is_envjavac_oldgcj_14_13_usable): Renamed from
54061         is_envjavac_gcj_14_13_usable.
54062         (is_gcj_present): Update.
54063         (is_gcj_43, is_gcj43_usable): New functions.
54064         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
54065         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
54066         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
54067         try the options -fsource and -ftarget.
54068
54069 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54070
54071         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
54072         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
54073         larger value.
54074
54075 2007-02-03  Jim Meyering  <jim@meyering.net>
54076
54077         Give tools a better chance to allocate space for very large buffers.
54078         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
54079
54080         Make pwd and readlink work also when run with an unreadable parent dir
54081         on systems with openat support.
54082         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
54083         provided getcwd function, even when we have openat support.
54084         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
54085
54086 2007-02-02  Bruno Haible  <bruno@clisp.org>
54087
54088         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54089         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
54090         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
54091         portability problems if one of these functions is only used on specific
54092         platforms.
54093         Reported by Paul Eggert.
54094
54095 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
54096
54097         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
54098         is causing more trouble than it's curing.
54099         * lib/regex_internal.h (__mempcpy): Remove.
54100         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
54101         (and make the code a tad smaller to boot).
54102         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
54103
54104 2007-02-02  Jim Meyering  <jim@meyering.net>
54105
54106         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
54107         section, not in the Makefile.am: one.
54108
54109 2007-02-02  Eric Blake  <ebb9@byu.net>
54110
54111         * lib/strchrnul.c: Always include config.h first.
54112
54113         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
54114         gnulib strstr is not necessary here.
54115
54116 2007-02-02  Simon Josefsson  <simon@josefsson.org>
54117
54118         * m4/socklen.m4: Fix typo.
54119
54120 2007-02-02  Eric Blake  <ebb9@byu.net>
54121
54122         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
54123         * modules/netinet_in (Makefile.am): Likewise.
54124
54125 2007-02-01  Bruno Haible  <bruno@clisp.org>
54126
54127         * lib/string_.h (GL_LINK_WARNING): New macro.
54128         (strcasecmp, strstr, strcasestr): If provided by the system,
54129         conditionally define as a macro that leads to a warning instead of to
54130         an error.
54131         (strncasecmp): Conditionally define as a macro that leads to a warning.
54132
54133 2007-02-01  Karl Berry  <karl@gnu.org>
54134
54135         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
54136
54137 2007-02-01  Bruno Haible  <bruno@clisp.org>
54138
54139         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
54140         renamings.
54141
54142 2007-02-01  Eric Blake  <ebb9@byu.net>
54143
54144         * modules/regex (Depends-on): Revert dependence on mempcpy.
54145         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
54146         module's definition of mempcpy.
54147         Reported by Paul Eggert.
54148
54149 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54150
54151         * lib/string_.h: If the gnulib module XYZ is not present, undefine
54152         the symbol XYZ before redefining it.  This fixes a problem with
54153         programs that don't use XYZ, when compiled on systems that define
54154         XYZ to something else.
54155
54156 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
54157
54158         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
54159         occurs when "mkdir -m foo" creates a setgid directory that is (1)
54160         writeable to group or other and (2) is intended to have a special
54161         mode bit that is set or cleared.  In such a case, the directory
54162         should be neither group- nor other-writeable until the special
54163         mode bits are right.
54164
54165 2007-01-31  Eric Blake  <ebb9@byu.net>
54166
54167         * modules/mountlist (Depends-on): Add strstr.
54168
54169         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
54170         bug.
54171         * modules/string (Makefile.am): Remove redundant replacement.
54172         * modules/regex (Depends-on): Add mempcpy.
54173
54174 2007-01-31  Bruno Haible  <bruno@clisp.org>
54175
54176         New module description field 'Link'.
54177         * gnulib-tool (func_usage): Document --extract-link-directive.
54178         (sed_extract_prog): Recognize 'Link' directive.
54179         (func_get_link_directive): New function.
54180         (func_import): Show summary of link directives.
54181         Handle --extract-link-directive option.
54182         * modules/acl (Link): New section.
54183         * modules/clock-time (Link): New section.
54184         * modules/euidaccess (Link): New section.
54185         * modules/gettext (Link): New section.
54186         * modules/iconv (Link): New section.
54187         * modules/lock (Link): New section.
54188         * modules/nanosleep (Link): New section.
54189         * modules/readline (Link): New section.
54190
54191 2007-01-27  Bruno Haible  <bruno@clisp.org>
54192
54193         Enforce the use of gnulib modules for unportable <string.h> functions.
54194         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
54195         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
54196         (gl_HEADER_STRING_H_BODY): Require it.
54197         * lib/string_.h: If the gnulib module XYZ is not present, redefine
54198         the symbol XYZ to one that gives a link error.
54199         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
54200         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
54201         * modules/mempcpy (configure.ac): Likewise.
54202         * modules/memrchr (configure.ac): Likewise.
54203         * modules/stpcpy (configure.ac): Likewise.
54204         * modules/stpncpy (configure.ac): Likewise.
54205         * modules/strcase (configure.ac): Likewise.
54206         * modules/strcasestr (configure.ac): Likewise.
54207         * modules/strchrnul (configure.ac): Likewise.
54208         * modules/strdup (configure.ac): Likewise.
54209         * modules/strndup (configure.ac): Likewise.
54210         * modules/strnlen (configure.ac): Likewise.
54211         * modules/strpbrk (configure.ac): Likewise.
54212         * modules/strsep (configure.ac): Likewise.
54213         * modules/strstr (configure.ac): Likewise.
54214         * modules/strtok_r (configure.ac): Likewise.
54215
54216 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
54217
54218         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
54219
54220 2007-01-30  Jim Meyering  <jim@meyering.net>
54221
54222         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
54223
54224 2007-01-29  Bruno Haible  <bruno@clisp.org>
54225
54226         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
54227         * lib/execute.c: Likewise.
54228         * lib/pipe.c: Likewise.
54229         * lib/printf-args.h: Likewise.
54230         * lib/printf-args.c: Likewise.
54231         * lib/printf-parse.c: Likewise.
54232         * lib/vasnprintf.c: Likewise.
54233
54234 2007-01-29  Eric Blake  <ebb9@byu.net>
54235
54236         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
54237         declaration.
54238
54239 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
54240
54241         * lib/strptime.h (strptime): Use 'restrict' for args where
54242         POSIX requires this.
54243         * lib/strptime.c (strptime): Likewise.
54244         Change license notice from LGPL to GPL, since gnulib-tool will
54245         change this as needed.
54246         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
54247         defined.
54248         Include "strptime.h" first, to check interface.
54249         Do not #undef _LIBC and _NL_CURRENT.
54250         Do not include <stdlib.h>; no longer needed.
54251         Include "time_r.h" and declare ptime_locale_status
54252         only if _LIBC is not defined.
54253         (__P): Remove unused macro.
54254         (match_string): Bring back glibc version, but use it only if _LIBC
54255         is defined.
54256         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
54257         Remove unnecessary assertion and abort() call.
54258         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
54259         * m4/strptime.m4: Fix serial number comment.
54260         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
54261         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
54262         (Depends-on): Add time_r.
54263
54264 2007-01-29  Bruno Haible  <bruno@clisp.org>
54265
54266         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54267         strptime.
54268         * modules/strptime (Depends-on): Add stdbool.
54269         * lib/strptime.h: Include <time.h> always. Add comments.
54270
54271 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54272
54273         * modules/strptime: New file.
54274         * lib/strptime.h: New file.
54275         * lib/strptime.c: New file.
54276         * m4/strptime.m4: New file.
54277
54278 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54279
54280         * MODULES.html.sh: New module mpsort.
54281         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
54282
54283         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
54284         a circularity problem with HP-UX ia64 reported by Bob Proulx in
54285         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
54286         All uses changed.
54287         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
54288         All uses changed.
54289         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
54290         to _Restrict_.
54291         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
54292         the parameter matches the prototype.
54293
54294 2007-01-28  Jim Meyering  <jim@meyering.net>
54295
54296         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
54297         sys/time.h here, reverting that part of the previous patch:
54298         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
54299
54300 2007-01-28  Bruno Haible  <bruno@clisp.org>
54301
54302         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
54303         value of $(SYS_TIME_H).
54304         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
54305         remove it conditionally, too. [added by Jim Meyering]
54306         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
54307         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54308         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
54309         GETTIMEOFDAY_REPLACEMENT to 1.
54310
54311 2007-01-28  Bruno Haible  <bruno@clisp.org>
54312
54313         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
54314         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
54315         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
54316         Set UNISTD_H instead of UNISTD_H2.
54317         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
54318
54319 2007-01-28  Bruno Haible  <bruno@clisp.org>
54320
54321         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
54322         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
54323
54324 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54325
54326         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
54327         (func_create_testdir): Ensure C locale for `grep' and `tr'
54328         character ranges.
54329         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
54330         ACLOCAL_AMFLAGS parsing state machine.
54331
54332 2007-01-27  Bruno Haible  <bruno@clisp.org>
54333
54334         * modules/unistr/base: Update.
54335
54336 2007-01-27  Bruno Haible  <bruno@clisp.org>
54337
54338         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
54339         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
54340         * modules/unistr/u32-mbtouc-unsafe: Renamed from
54341         modules/unistr/u32-mbtouc.
54342         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
54343         * lib/unistr.h: Update.
54344         * lib/linebreak.c: Update.
54345         * modules/unistr/u32-mbtouc: Renamed from
54346         modules/unistr/u32-mbtouc-safe.
54347         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
54348         * lib/unistr.h: Update.
54349         * lib/unistr/u32-to-u8.c: Update.
54350         * lib/unistr/u32-to-u16.c: Update.
54351
54352 2007-01-27  Bruno Haible  <bruno@clisp.org>
54353
54354         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
54355         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
54356         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
54357         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
54358         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
54359         * modules/unistr/u16-mbtouc-unsafe: Renamed from
54360         modules/unistr/u16-mbtouc.
54361         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
54362         * lib/unistr.h: Update.
54363         * lib/linebreak.c: Update.
54364         * modules/linebreak: Update.
54365         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
54366         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
54367         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
54368         * modules/unistr/u16-mbtouc: Renamed from
54369         modules/unistr/u16-mbtouc-safe.
54370         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
54371         * lib/unistr.h: Update.
54372         * lib/unistr/u16-to-u8.c: Update.
54373         * modules/unistr/u16-to-u8: Update.
54374         * lib/unistr/u16-to-u32.c: Update.
54375         * modules/unistr/u16-to-u32: Update.
54376
54377 2007-01-27  Bruno Haible  <bruno@clisp.org>
54378
54379         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
54380         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
54381         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
54382         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
54383         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
54384         * modules/unistr/u8-mbtouc-unsafe: Renamed from
54385         modules/unistr/u8-mbtouc.
54386         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
54387         * lib/unistr.h: Update.
54388         * lib/striconveh.c: Update.
54389         * modules/striconveh: Update.
54390         * lib/linebreak.c: Update.
54391         * modules/linebreak: Update.
54392         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
54393         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
54394         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
54395         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
54396         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
54397         * lib/unistr.h: Update.
54398         * lib/striconveh.c: Update.
54399         * modules/striconveh: Update.
54400         * lib/unistr/u8-to-u16.c: Update.
54401         * modules/unistr/u8-to-u16: Update.
54402         * lib/unistr/u8-to-u32.c: Update.
54403         * modules/unistr/u8-to-u32: Update.
54404
54405 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54406
54407         Sync from Libtool.
54408         * lib/argz.c: Do not include strings.h nor memory.h, include
54409         string.h unconditionally.  Patch by Simon Josefsson.
54410
54411 2007-01-27  Bruno Haible  <bruno@clisp.org>
54412
54413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
54414         from gl_HEADER_STRING_H_BODY.
54415         (gl_HEADER_STRING_H_BODY): Require it.
54416         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
54417         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54418         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54419         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54420         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54421         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
54422         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54423         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54424         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
54425         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54426         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54427         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
54428         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54429         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54430         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54431
54432 2007-01-27  Bruno Haible  <bruno@clisp.org>
54433
54434         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
54435         check_PROGRAMS into noinst_PROGRAMS.
54436         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
54437         check_PROGRAMS in this case.
54438         (func_import): Set for_test to false.
54439         (func_create_testdir): Set for_test to true.
54440
54441 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54442             Bruno Haible  <bruno@clisp.org>
54443
54444         * modules/strcasestr (Files): Remove lib/strcasestr.h.
54445         (Depends-on): Add string.
54446         (Includes): Use <string.h> instead of strcasestr.h.
54447         * modules/string (Makefile.am): Also substitute the value of
54448         REPLACE_STRCASESTR.
54449         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
54450         assume strcasestr is declared in <string.h> not <strings.h>. Also
54451         set REPLACE_STRCASESTR.
54452         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
54453         REPLACE_STRCASESTR.
54454         * lib/strcasestr.h: Remove file.
54455         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
54456         * lib/string_.h (strcasestr): New declaration.
54457
54458 2007-01-27  Bruno Haible  <bruno@clisp.org>
54459
54460         * lib/string_.h: Use 'extern'.
54461
54462 2007-01-27  Jim Meyering  <jim@meyering.net>
54463
54464         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
54465         of set-but-not-used local, "q".
54466
54467         * lib/mempcpy.c: Include <config.h> before <string.h>.
54468         This fixes a compilation error on HP-UX, due to the system's
54469         "restrict"-using mempcpy prototype.
54470
54471 2007-01-26  Bruno Haible  <bruno@clisp.org>
54472
54473         Small optimization.
54474         * lib/javacomp.c: Include c-strstr.h.
54475          (is_envjavac_gcj): Use c_strstr instead of strstr.
54476         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
54477
54478 2007-01-26  Bruno Haible  <bruno@clisp.org>
54479
54480         * MODULES.html.sh (Unicode string functions): Add the new modules.
54481
54482         * modules/uniconv/u32-strconv-to-locale: New file.
54483         * lib/uniconv/u32-strconv-to-locale.c: New file.
54484
54485         * modules/uniconv/u16-strconv-to-locale: New file.
54486         * lib/uniconv/u16-strconv-to-locale.c: New file.
54487
54488         * modules/uniconv/u8-strconv-to-locale: New file.
54489         * lib/uniconv/u8-strconv-to-locale.c: New file.
54490
54491         * modules/uniconv/u32-strconv-from-locale: New file.
54492         * lib/uniconv/u32-strconv-from-locale.c: New file.
54493
54494         * modules/uniconv/u16-strconv-from-locale: New file.
54495         * lib/uniconv/u16-strconv-from-locale.c: New file.
54496
54497         * modules/uniconv/u8-strconv-from-locale: New file.
54498         * lib/uniconv/u8-strconv-from-locale.c: New file.
54499
54500         * modules/uniconv/u32-strconv-to-enc: New file.
54501         * lib/uniconv/u32-strconv-to-enc.c: New file.
54502         * modules/uniconv/u32-strconv-to-enc-tests: New file.
54503         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
54504
54505         * modules/uniconv/u16-strconv-to-enc: New file.
54506         * lib/uniconv/u16-strconv-to-enc.c: New file.
54507         * lib/uniconv/u-strconv-to-enc.h: New file.
54508         * modules/uniconv/u16-strconv-to-enc-tests: New file.
54509         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
54510
54511         * modules/uniconv/u8-strconv-to-enc: New file.
54512         * lib/uniconv/u8-strconv-to-enc.c: New file.
54513         * modules/uniconv/u8-strconv-to-enc-tests: New file.
54514         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
54515
54516         * modules/uniconv/u32-strconv-from-enc: New file.
54517         * lib/uniconv/u32-strconv-from-enc.c: New file.
54518         * modules/uniconv/u32-strconv-from-enc-tests: New file.
54519         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
54520
54521         * modules/uniconv/u16-strconv-from-enc: New file.
54522         * lib/uniconv/u16-strconv-from-enc.c: New file.
54523         * modules/uniconv/u16-strconv-from-enc-tests: New file.
54524         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
54525
54526         * modules/uniconv/u8-strconv-from-enc: New file.
54527         * lib/uniconv/u8-strconv-from-enc.c: New file.
54528         * lib/uniconv/u-strconv-from-enc.h: New file.
54529         * modules/uniconv/u8-strconv-from-enc-tests: New file.
54530         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
54531
54532         * modules/uniconv/u32-conv-from-enc: New file.
54533         * lib/uniconv/u32-conv-from-enc.c: New file.
54534         * modules/uniconv/u32-conv-from-enc-tests: New file.
54535         * tests/uniconv/test-u32-conv-from-enc.c: New file.
54536
54537         * modules/uniconv/u16-conv-from-enc: New file.
54538         * lib/uniconv/u16-conv-from-enc.c: New file.
54539         * lib/uniconv/u-conv-from-enc.h: New file.
54540         * modules/uniconv/u16-conv-from-enc-tests: New file.
54541         * tests/uniconv/test-u16-conv-from-enc.c: New file.
54542
54543         * modules/uniconv/u8-conv-from-enc: New file.
54544         * lib/uniconv/u8-conv-from-enc.c: New file.
54545         * modules/uniconv/u8-conv-from-enc-tests: New file.
54546         * tests/uniconv/test-u8-conv-from-enc.c: New file.
54547
54548         * modules/uniconv/base: New file.
54549         * lib/uniconv.h: New file.
54550
54551 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54552
54553         * doc/gnulib-tool.texi (Initial import): Update to match current
54554         behavior with strdup module.
54555         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
54556         * lib/memmem.h: Remove; all uses removed.  This is now done
54557         by <string.h>.
54558         * lib/mempcpy.h: Likewise.
54559         * lib/memrchr.h: Likewise.
54560         * lib/stpcpy.h: Likewise.
54561         * lib/stpncpy.h: Likewise.
54562         * lib/strcase.h: Likewise.
54563         * lib/strchrnul.h: Likewise.
54564         * lib/strdup.h: Likewise.
54565         * lib/strndup.h: Likewise.
54566         * lib/strnlen.h: Likewise.
54567         * lib/strpbrk.h: Likewise.
54568         * lib/strsep.h: Likewise.
54569         * lib/strstr.h: Likewise.
54570         * lib/strtok_r.h: Likewise.
54571         * lib/string_.h: New file.
54572         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
54573         Rely on <string.h> instead.
54574         * lib/canon-host.c: Likewise.
54575         * lib/chdir-long.c: Likewise.
54576         * lib/concatpath.c: Likewise.
54577         * lib/exclude.c: Likewise.
54578         * lib/fchdir.c: Likewise.
54579         * lib/getaddrinfo.c: Likewise.
54580         * lib/getcwd.c: Likewise.
54581         * lib/getsubopt.c: Likewise.
54582         * lib/glob.c: Likewise.
54583         * lib/hard-locale.c: Likewise.
54584         * lib/iconvme.c: Likewise.
54585         * lib/javacomp.c: Likewise.
54586         * lib/mempcpy.c: Likewise.
54587         * lib/memrchr.c: Likewise.
54588         * lib/regex_internal.h: Likewise.
54589         * lib/stpncpy.c: Likewise.
54590         * lib/strcasecmp.c: Likewise.
54591         * lib/strchrnul.c: Likewise.
54592         * lib/strdup.c: Likewise.
54593         * lib/striconv.c: Likewise.
54594         * lib/striconveh.c: Likewise.
54595         * lib/striconveha.c: Likewise.
54596         * lib/strncasecmp.c: Likewise.
54597         * lib/strndup.c: Likewise.
54598         * lib/strnlen.c: Likewise.
54599         * lib/strsep.c: Likewise.
54600         * lib/strstr.c: Likewise.
54601         * lib/strtok_r.c: Likewise.
54602         * lib/userspec.c: Likewise.
54603         * lib/w32spawn.h: Likewise.
54604         * lib/xstrndup.c: Likewise.
54605         * lib/mountlist.c (strstr): Remove decl.
54606         * m4/string_h.m4: New file.
54607         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
54608         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
54609         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
54610         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
54611         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
54612         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
54613         Set REPLACE_STRCASECMP if necessary.
54614         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
54615         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
54616         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
54617         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
54618         HAVE_DECL_STRDUP if necessary.
54619         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
54620         since gl_FUNC_STRNDUP does that now.
54621         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
54622         Check for decl here...
54623         (gl_PREREQ_STRNLEN): ... not here.
54624         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
54625         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
54626         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
54627         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
54628         necessary.
54629         * modules/string: New file.
54630         * modules/memmem (Files): Remove special-purpose include file.
54631         (Depends-on): Add string.
54632         (Include): Include <string.h>, not the removed file.
54633         * modules/mempcpy: Likewise.
54634         * modules/memrchr: Likewise.
54635         * modules/stpcpy: Likewise.
54636         * modules/stpncpy: Likewise.
54637         * modules/strcase: Likewise.
54638         * modules/strchrnul: Likewise.
54639         * modules/strdup: Likewise.
54640         * modules/strndup: Likewise.
54641         * modules/strnlen: Likewise.
54642         * modules/strpbrk: Likewise.
54643         * modules/strsep: Likewise.
54644         * modules/strstr: Likewise.
54645         * modules/strtok_r: Likewise.
54646         * tests/test-dirname.c: Don't include "strdup.h", since
54647         <string.h> now suffices.
54648         * tests/test-memmem.c: Don't include "memmem.h", since
54649         <string.h> now suffices.
54650
54651 2007-01-25  Bruno Haible  <bruno@clisp.org>
54652
54653         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
54654         *resultp is 0.
54655
54656         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
54657         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
54658         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
54659         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
54660
54661         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
54662         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
54663         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
54664         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
54665         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
54666         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
54667
54668 2007-01-24  Bruno Haible  <bruno@clisp.org>
54669
54670         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
54671         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
54672         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
54673         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
54674         gl_FUNC_FTS_CORE.
54675         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
54676         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
54677         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54678         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
54679         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
54680         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
54681         gl_FUNC_FCHOWNAT.
54682         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
54683         gl_FUNC_STRFTIME.
54684         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
54685         Reported by Ralf Wildenhues.
54686
54687 2007-01-24  Bruno Haible  <bruno@clisp.org>
54688
54689         Drop AC_REQUIRE calls that are redundant with the module dependencies.
54690         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
54691         gl_GETADDRINFO.
54692         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
54693         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
54694         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
54695
54696 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
54697
54698         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
54699         Don't use 'exit'; just return from 'main'.
54700         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
54701
54702         * lib/fnmatch_.h: Readjust white space and comments to match
54703         glibc, to avoid spurious diffs.
54704
54705 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54706
54707         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
54708         2004-12-01 change by Jakub Jelinek, since this code won't compile
54709         if !LIBC.  Problem reported by Bob Proulx.
54710
54711 2007-01-23  Bruno Haible  <bruno@clisp.org>
54712
54713         * lib/striconveh.c: Include c-strcaseeq.h.
54714         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
54715         * modules/striconveh (Depends-on): Add c-strcaseeq.
54716
54717 2007-01-23  Bruno Haible  <bruno@clisp.org>
54718
54719         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
54720
54721         * modules/c-strcaseeq: New file.
54722         * lib/c-strcaseeq.h: New file.
54723
54724         * modules/streq: New file.
54725         * lib/streq.h: New file.
54726
54727 2007-01-23  Bruno Haible  <bruno@clisp.org>
54728
54729         * modules/striconveha-tests: New file.
54730         * tests/test-striconveha.c: New file.
54731
54732         * lib/striconveha.h: Include <stdbool.h>.
54733         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
54734         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
54735         (mem_iconveha_notranslit): Renamed from mem_iconveha.
54736         (mem_iconveha): New function.
54737         (str_iconveha_notranslit): Renamed from str_iconveha.
54738         (str_iconveha): New function.
54739         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
54740         c-strcase.
54741
54742 2007-01-23  Bruno Haible  <bruno@clisp.org>
54743
54744         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
54745         encodings without forgiving before trying any encoding with handler.
54746         (str_iconveha): Try all encodings without forgiving before trying any
54747         encoding with handler.
54748
54749 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54750
54751         Import the following changes from libc.
54752
54753         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54754
54755         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
54756
54757         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54758
54759         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
54760         normal_bracket label.
54761
54762         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
54763
54764         [BZ #361]
54765         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
54766         to normal_bracket after fetching the next character.
54767
54768 2007-01-22  Bruno Haible  <bruno@clisp.org>
54769
54770         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
54771         argument.
54772         * lib/striconveh.c (iconv_carefully_1): New function.
54773         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
54774         argument.
54775         (str_cd_iconveh): Update.
54776         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
54777         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
54778         * tests/test-striconveh.c (MAGIC): New macro.
54779         (new_offsets): New function.
54780         (main): Test call with and without offsets.
54781
54782 2007-01-22  Bruno Haible  <bruno@clisp.org>
54783
54784         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
54785         * modules/sys_select (Makefile.am): Likewise.
54786         * modules/sys_socket (Makefile.am): Likewise.
54787         * modules/sys_time (Makefile.am): Likewise.
54788
54789 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54790
54791         * modules/gettimeofday (License): Change from GPL to LGPL, since
54792         gettimeofday is a library function.
54793
54794 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54795
54796         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
54797
54798 2007-01-21  Bruno Haible  <bruno@clisp.org>
54799
54800         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
54801
54802 2007-01-21  Bruno Haible  <bruno@clisp.org>
54803
54804         * modules/striconveha: New file.
54805         * lib/striconveha.h: New file.
54806         * lib/striconveha.c: New file.
54807         * MODULES.html.sh (Internationalization functions): Add striconveha.
54808         * lib/striconv.c (str_iconv): Optimize the case of an empty input
54809         string.
54810         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
54811
54812 2007-01-21  Bruno Haible  <bruno@clisp.org>
54813
54814         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
54815         * lib/striconveh.c (str_iconveh): Likewise.
54816
54817 2007-01-21  Bruno Haible  <bruno@clisp.org>
54818
54819         * lib/striconveh.h (mem_iconveh): New declaration.
54820         * lib/striconveh.c (mem_iconveh): New function.
54821         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
54822
54823 2007-01-21  Bruno Haible  <bruno@clisp.org>
54824
54825         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
54826
54827         * lib/striconveh.h (mem_cd_iconveh): Change specification.
54828         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
54829         original result buffer.
54830         (str_cd_iconveh): Update.
54831         * tests/test-striconveh.c (main): Update.
54832
54833         * lib/striconv.h (mem_cd_iconv): Change specification.
54834         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
54835         result buffer.
54836         (str_cd_iconv): Update.
54837         * tests/test-striconv.c (main): Update.
54838
54839 2007-01-21  Bruno Haible  <bruno@clisp.org>
54840
54841         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
54842
54843 2007-01-20  Jim Meyering  <jim@meyering.net>
54844
54845         * lib/userspec.c (parse_with_separator): If a user or group string
54846         starts with "+", skip the corresponding name-to-ID look-up, since
54847         such a look-up must fail: user and group names may not include "+".
54848
54849 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54850
54851         * lib/poll.c: Include sys/time.h and time.h unconditionally,
54852         since we now assume the sys_time module.
54853         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
54854         check for sys/time.h; no longer needed.
54855         * modules/poll (Depends-on): Depend on sys_time.
54856
54857 2007-01-18  Bruno Haible  <bruno@clisp.org>
54858
54859         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
54860         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54861
54862         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
54863         gettimeofday.
54864
54865         * tests/test-gettimeofday.c: Include <time.h>.
54866         (dummy): Remove variable.
54867
54868         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
54869         gl_HEADER_SYS_TIME_H.
54870         (gl_HEADER_SYS_TIME_H): New macro.
54871
54872         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
54873         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54874         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54875         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
54876         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54877         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
54878         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
54879         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54880         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
54881         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
54882         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54883
54884         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
54885         last change; it caused a compilation error when cross-compiling to
54886         Cygwin.
54887
54888 2007-01-18  Jim Meyering  <jim@meyering.net>
54889
54890         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
54891         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
54892         than the race-prone "test -d sys || mkdir sys".
54893         (configure.ac): Use AC_PROG_MKDIR_P.
54894         * modules/sys_select: Likewise.
54895         * modules/sys_socket: Likewise.
54896         * modules/sys_time: Likewise.
54897
54898 2007-01-18  Eric Blake  <ebb9@byu.net>
54899
54900         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
54901         replace gettimeofday.
54902         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
54903         name, to avoid infinite recursion.
54904
54905 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
54906
54907         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
54908         module sys_time.
54909         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
54910         assume timespec.h defines struct timeval.
54911         * lib/settime.c: Likewise.
54912         * lib/utimens.c: Likewise.
54913         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
54914         since we now assume the gettimeofday module.
54915         * lib/tempname.c (__gen_tempname): Likewise.
54916         * lib/gettimeofday.h: Remove.
54917         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
54918         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
54919         Include <time.h>, for 'time()'.
54920         (localtime_buffer_addr): Also use this workaround if
54921         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
54922         to simplify the uses.  All uses changed.
54923         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
54924         that #undef is inside {}, and 'const' follows type name consistently.
54925         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
54926         (gettimeofday): Do not use the maximum possible value for
54927         tv->tv_usec, since that might break usages other than ls.c.
54928         Instead, we'll leave ls.c alone.  This undoes today's patch
54929         by Bruno.  Add a compile-time warning for 1s-clock resolution;
54930         we've never observed the problem but might as well keep the
54931         canary.
54932         * lib/nanosleep.c: Include timespec.h first, for interface check.
54933         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
54934         now assume the sys_time module.
54935         * lib/tempname.c: Likewise.
54936         * lib/timespec.h: Likewise.
54937         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
54938         needed.
54939         * lib/strftime.c: Likewise.
54940         * lib/timespec.h: Likewise.
54941         * lib/posixtm.c: Include posixtm.h first, for interface check.
54942         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
54943         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
54944         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
54945         * lib/sys_time_.h: New file.
54946         * lib/timespec.h (struct timespec): Use long int, not long.
54947         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54948         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
54949         Remove obsolescent call to AC_HEADER_TIME.
54950         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54951         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54952         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54953         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
54954         Likewise.
54955         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
54956         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
54957         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
54958         into the sys_time module.  Check for gettimeofday just once.
54959         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
54960         for gettimeofday signature to just check the signature.  Merely
54961         compile it, since linking doesn't test signature.  Improve test for
54962         whether gettimeofday.o is actually needed.
54963         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
54964         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
54965         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
54966         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54967         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
54968         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
54969         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
54970         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
54971         than worrying about sys/time.h.
54972         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54973         Don't bother worrying about TIME_WITH_SYS_TIME.
54974         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
54975         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
54976         * m4/sys_time_h.m4: New file.
54977         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
54978         Don't include sys/time.h.  Return from main rather than exiting.
54979         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
54980         all uses changed.
54981         * modules/gethrxtime (Depends-on): Add sys_time.
54982         * modules/gettime (Depends-on): Likewise.
54983         * modules/gettimeofday (Depends-on): Likewise.
54984         * modules/nanosleep (Depends-on): Likewise.
54985         * modules/settime (Depends-on): Likewise.
54986         * modules/tempname (Depends-on): Likewise.
54987         * modules/utimens (Depends-on): Likewise.
54988         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
54989         (Include): Change back to <sys/time.h>.
54990         (Maintainer): Add self.
54991         * modules/sys_time: New file.
54992         * modules/tempname (Depends-on): Add gettimeofday.
54993         * tests/test-gettimeofday.c: Include <sys/time.h>
54994         rather than gettimeofday.h.
54995
54996 2007-01-17  Bruno Haible  <bruno@clisp.org>
54997
54998         * gnulib-tool (func_get_license): Revert last patch. Instead, let
54999         the license default to GPL.
55000         (func_create_testdir): Don't complain if a module is LGPL and its
55001         tests module depends on GPLed modules.
55002
55003 2007-01-17  Bruno Haible  <bruno@clisp.org>
55004
55005         * lib/gettimeofday.c (gettimeofday): Add code for the case
55006         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
55007         maximum possible value for tv->tv_usec, rather than the minimum one.
55008
55009 2005-10-08  Martin Lambers  <marlam@marlam.de>
55010 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55011 2007-01-16  Bruno Haible  <bruno@clisp.org>
55012
55013         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
55014         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
55015         gl_FUNC_GETTIMEOFDAY.
55016         (Include): Add gettimeofday.h.
55017         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
55018         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
55019         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
55020         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
55021         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
55022         * lib/gettimeofday.h: New file.
55023         * lib/gettimeofday.c: Include <sys/timeb.h>.
55024         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
55025         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55026         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
55027         fall back on time().
55028
55029         * tests/test-gettimeofday.c: New file.
55030         * modules/gettimeofday-tests: New file.
55031
55032 2007-01-16  Eric Blake  <ebb9@byu.net>
55033
55034         * modules/fnmatch (Depends-on): Depend on wchar.
55035         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
55036         * m4/fnmatch.m4: Likewise.
55037         * modules/mbchar (Makefile.am): Assume <wchar.h>.
55038         * m4/mbchar.m4: Likewise.
55039         * modules/mbswidth (Depends-on): Depend on wchar.
55040         * lib/mbswidth.c: Assume <wchar.h>.
55041         * m4/mbswidth.m4: Likewise.
55042         * modules/quotearg (Depends-on): Depend on wchar.
55043         * lib/quotearg.c: Assume <wchar.h>.
55044         * m4/quotearg.m4: Likewise.
55045         * modules/regex (Depends-on): Depend on wchar.
55046         * lib/regex_internal.h: Assume <wchar.h>.
55047         * m4/regex.m4: Likewise.
55048         * modules/stdint (Depends-on): Depend on wchar.
55049         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
55050         * m4/stdint.m4: Likewise.
55051         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
55052         * modules/strftime (Depends-on): Depend on wchar.
55053         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
55054         * modules/strtol (Depends-on): Depend on wchar.
55055         * lib/strtol.c: Assume <wchar.h>.
55056         * modules/wcwidth (Depends-on): Depend on wchar.
55057         * lib/wcwidth.h: Assume <wchar.h>.
55058         * m4/wcwidth.m4: Likewise.
55059
55060 2007-01-16  Bruno Haible  <bruno@clisp.org>
55061
55062         * modules/csharpexec-script: New, created from...
55063         * modules/csharpexec: ... this.
55064
55065 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55066
55067         * modules/javaexec-script: New, created from...
55068         * modules/javaexec: ... this.
55069
55070 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55071
55072         * modules/poll (Dependencies): Add sys_select.
55073
55074 2007-01-15  Jim Meyering  <jim@meyering.net>
55075
55076         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
55077         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
55078         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
55079         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
55080
55081 2007-01-15  Bruno Haible  <bruno@clisp.org>
55082
55083         * modules/striconveh: New file.
55084         * lib/striconveh.h: New file.
55085         * lib/striconveh.c: New file.
55086         * MODULES.html.sh (Internationalization functions): Add striconveh.
55087
55088         * modules/striconveh-tests: New file.
55089         * tests/test-striconveh.c: New file.
55090
55091 2007-01-15  Bruno Haible  <bruno@clisp.org>
55092
55093         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
55094         not from GNU libiconv or GNU libc.
55095
55096 2007-01-15  Bruno Haible  <bruno@clisp.org>
55097
55098         * doc/gnulib-intro.texi (Copyright): Explain the different license
55099         terms for module descriptions, autoconf macros, tests, documentation.
55100
55101 2007-01-14  Bruno Haible  <bruno@clisp.org>
55102
55103         * modules/striconv-tests: New file.
55104         * tests/test-striconv.c: New file.
55105
55106 2007-01-14  Bruno Haible  <bruno@clisp.org>
55107
55108         * modules/iconv-tests: New file.
55109         * tests/test-iconv.c: New file.
55110
55111 2007-01-14  Bruno Haible  <bruno@clisp.org>
55112
55113         * gnulib-tool (func_get_license): For test modules, use the license of
55114         the main module.
55115
55116 2007-01-14  Bruno Haible  <bruno@clisp.org>
55117
55118         * modules/iconv (Include): Clarify that <iconv.h> can only be included
55119         if iconv is found to exist.
55120
55121 2007-01-14  Bruno Haible  <bruno@clisp.org>
55122
55123         * modules/c-ctype-tests: New file.
55124         * tests/test-c-ctype.c: New file.
55125
55126 2007-01-14  Bruno Haible  <bruno@clisp.org>
55127
55128         * modules/binary-io-tests: New file.
55129         * tests/test-binary-io.sh: New file.
55130         * tests/test-binary-io.c: New file.
55131
55132 2007-01-14  Bruno Haible  <bruno@clisp.org>
55133
55134         * modules/array-oset-tests: New file.
55135         * tests/test-array_oset.c: New file.
55136
55137 2007-01-14  Bruno Haible  <bruno@clisp.org>
55138
55139         * modules/array-list-tests: New file.
55140         * tests/test-array_list.c: New file.
55141
55142 2007-01-14  Bruno Haible  <bruno@clisp.org>
55143
55144         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
55145         and make.
55146         Reported by Simon Josefsson in
55147         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
55148
55149 2007-01-14  Bruno Haible  <bruno@clisp.org>
55150
55151         * modules/allocsa-tests: New file.
55152         * tests/test-allocsa.c: New file.
55153
55154 2007-01-14  Bruno Haible  <bruno@clisp.org>
55155
55156         * modules/fchdir (Depends-on): Add absolute-header.
55157         * modules/unistd (Depends-on): Likewise.
55158
55159 2006-12-30  Bruno Haible  <bruno@clisp.org>
55160
55161         * modules/fchdir: New file.
55162         * modules/unistd (Files): Add lib/unistd_.h.
55163         (Makefile.am): Generate unistd.h from unistd_.h.
55164         * lib/fchdir.c: New file.
55165         * lib/dirent_.h: New file.
55166         * lib/unistd_.h: New file.
55167         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
55168         * m4/fchdir.m4: New file.
55169         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
55170         (gl_HEADER_UNISTD): Invoke it.
55171         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
55172         function.
55173         * lib/backupfile.c (opendir, closedir): Undefine.
55174         * lib/chown.c (open, close): Undefine.
55175         * lib/clean-temp.c (open, close): Undefine.
55176         * lib/copy-file.c (open, close): Undefine.
55177         * lib/execute.c (open, close): Undefine.
55178         * lib/fsusage.c (open, close): Undefine.
55179         * lib/gc-gnulib.c (open, close): Undefine.
55180         * lib/getcwd.c (opendir, closedir): Undefine.
55181         * lib/glob.c (opendir, closedir): Undefine.
55182         * lib/javacomp.c (open, close): Undefine.
55183         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
55184         * lib/openat-proc.c (open, close): Undefine.
55185         * lib/pagealign_alloc.c (open, close): Undefine.
55186         * lib/pipe.c (open, close): Undefine.
55187         * lib/progreloc.c (open, close): Undefine.
55188         * lib/savedir.c (opendir, closedir): Undefine.
55189         * lib/utime.c (open, close): Undefine.
55190         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
55191
55192 2007-01-10  Bruno Haible  <bruno@clisp.org>
55193
55194         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
55195
55196 2007-01-12  Eric Blake  <ebb9@byu.net>
55197
55198         Provide a robust <wchar.h>.  Further simplifications are now
55199         possible in other modules, but not included here.
55200         * modules/wchar: New module.
55201         * m4/wchar.m4: New file.
55202         * lib/wchar_.h: Likewise.
55203         * modules/mbchar (Depends-on): Depend on wchar, as the first use
55204         of the new module.
55205         * MODULES.html.sh (Extended multibyte and wide character utilities):
55206         New section.
55207
55208 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
55209
55210         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
55211         to a reasonable default for memory allocation.
55212         (xreadlink): Don't allocate a huge buffer, to work around a buggy
55213         file system that reports garbage st_size values for symlinks.
55214         Problem reported by Liyang Hu.
55215
55216 2007-01-11  Simon Josefsson  <simon@josefsson.org>
55217
55218         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
55219         Emacs .#* auto-save files).
55220
55221 2007-01-11  Bruno Haible  <bruno@clisp.org>
55222
55223         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
55224         directory.
55225
55226 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55227
55228         Use @...@ consistently in lib/wctype_.h.
55229         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
55230         on it being set to 1 or 0.
55231         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
55232         go back to AC_SUBSTing it.
55233         * modules/wctype (Makefile.am): Undo previous change.
55234
55235 2007-01-10  Eric Blake  <ebb9@byu.net>
55236
55237         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
55238         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
55239         * modules/wctype (Makefile.am): Likewise.
55240         Reported by Chris McGuire.
55241
55242 2007-01-10  Jim Meyering  <jim@meyering.net>
55243
55244         fts.c: a small readability/maintainability improvement
55245         * lib/fts.c (fts_read): Make this code slightly more readable and
55246         maintainable by hoisting the "sp->fts_cur = p" assignments to
55247         immediately follow the statements that set P.  Derived from
55248         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
55249
55250 2007-01-10  Eric Blake  <ebb9@byu.net>
55251
55252         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
55253         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
55254         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55255         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
55256         Reported by Chris McGuire.
55257
55258 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55259
55260         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
55261         in sed script.
55262
55263 2007-01-09  Bruno Haible  <bruno@clisp.org>
55264
55265         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
55266         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
55267         variables.
55268         (func_module): Use them.
55269
55270 2007-01-09  Bruno Haible  <bruno@clisp.org>
55271
55272         * modules/unistr/base: New file.
55273         * lib/unistr.h: New file.
55274
55275         * modules/unistr/u8-to-u16: New file.
55276         * lib/unistr/u8-to-u16.c: New file.
55277
55278         * modules/unistr/u8-to-u32: New file.
55279         * lib/unistr/u8-to-u32.c: New file.
55280
55281         * modules/unistr/u16-to-u8: New file.
55282         * lib/unistr/u16-to-u8.c: New file.
55283
55284         * modules/unistr/u16-to-u32: New file.
55285         * lib/unistr/u16-to-u32.c: New file.
55286
55287         * modules/unistr/u32-to-u8: New file.
55288         * lib/unistr/u32-to-u8.c: New file.
55289
55290         * modules/unistr/u32-to-u16: New file.
55291         * lib/unistr/u32-to-u16.c: New file.
55292
55293         * modules/unistr/u8-check: New file.
55294         * modules/unistr/u16-check: New file.
55295         * modules/unistr/u32-check: New file.
55296         * lib/unistr/u8-check.c: New file.
55297         * lib/unistr/u16-check.c: New file.
55298         * lib/unistr/u32-check.c: New file.
55299
55300         * modules/unistr/u8-chr: New file.
55301         * modules/unistr/u16-chr: New file.
55302         * modules/unistr/u32-chr: New file.
55303         * lib/unistr/u8-chr.c: New file.
55304         * lib/unistr/u16-chr.c: New file.
55305         * lib/unistr/u32-chr.c: New file.
55306
55307         * modules/unistr/u8-cmp: New file.
55308         * modules/unistr/u16-cmp: New file.
55309         * modules/unistr/u32-cmp: New file.
55310         * lib/unistr/u8-cmp.c: New file.
55311         * lib/unistr/u16-cmp.c: New file.
55312         * lib/unistr/u32-cmp.c: New file.
55313
55314         * modules/unistr/u8-cpy: New file.
55315         * modules/unistr/u16-cpy: New file.
55316         * modules/unistr/u32-cpy: New file.
55317         * lib/unistr/u8-cpy.c: New file.
55318         * lib/unistr/u16-cpy.c: New file.
55319         * lib/unistr/u32-cpy.c: New file.
55320         * lib/unistr/u-cpy.h: New file.
55321
55322         * modules/unistr/u8-cpy-alloc: New file.
55323         * modules/unistr/u16-cpy-alloc: New file.
55324         * modules/unistr/u32-cpy-alloc: New file.
55325         * lib/unistr/u8-cpy-alloc.c: New file.
55326         * lib/unistr/u16-cpy-alloc.c: New file.
55327         * lib/unistr/u32-cpy-alloc.c: New file.
55328         * lib/unistr/u-cpy-alloc.h: New file.
55329
55330         * modules/unistr/u8-endswith: New file.
55331         * modules/unistr/u16-endswith: New file.
55332         * modules/unistr/u32-endswith: New file.
55333         * lib/unistr/u8-endswith.c: New file.
55334         * lib/unistr/u16-endswith.c: New file.
55335         * lib/unistr/u32-endswith.c: New file.
55336         * lib/unistr/u-endswith.h: New file.
55337
55338         * modules/unistr/u8-mblen: New file.
55339         * modules/unistr/u16-mblen: New file.
55340         * modules/unistr/u32-mblen: New file.
55341         * lib/unistr/u8-mblen.c: New file.
55342         * lib/unistr/u16-mblen.c: New file.
55343         * lib/unistr/u32-mblen.c: New file.
55344
55345         * modules/unistr/u8-mbtouc: New file.
55346         * modules/unistr/u16-mbtouc: New file.
55347         * modules/unistr/u32-mbtouc: New file.
55348         * lib/unistr/u8-mbtouc.c: New file.
55349         * lib/unistr/u16-mbtouc.c: New file.
55350         * lib/unistr/u32-mbtouc.c: New file.
55351
55352         * modules/unistr/u8-mbtouc-safe: New file.
55353         * modules/unistr/u16-mbtouc-safe: New file.
55354         * modules/unistr/u32-mbtouc-safe: New file.
55355         * lib/unistr/u8-mbtouc-safe.c: New file.
55356         * lib/unistr/u16-mbtouc-safe.c: New file.
55357         * lib/unistr/u32-mbtouc-safe.c: New file.
55358
55359         * modules/unistr/u8-move: New file.
55360         * modules/unistr/u16-move: New file.
55361         * modules/unistr/u32-move: New file.
55362         * lib/unistr/u8-move.c: New file.
55363         * lib/unistr/u16-move.c: New file.
55364         * lib/unistr/u32-move.c: New file.
55365         * lib/unistr/u-move.h: New file.
55366
55367         * modules/unistr/u8-next: New file.
55368         * modules/unistr/u16-next: New file.
55369         * modules/unistr/u32-next: New file.
55370         * lib/unistr/u8-next.c: New file.
55371         * lib/unistr/u16-next.c: New file.
55372         * lib/unistr/u32-next.c: New file.
55373
55374         * modules/unistr/u8-prev: New file.
55375         * modules/unistr/u16-prev: New file.
55376         * modules/unistr/u32-prev: New file.
55377         * lib/unistr/u8-prev.c: New file.
55378         * lib/unistr/u16-prev.c: New file.
55379         * lib/unistr/u32-prev.c: New file.
55380
55381         * modules/unistr/u8-set: New file.
55382         * modules/unistr/u16-set: New file.
55383         * modules/unistr/u32-set: New file.
55384         * lib/unistr/u8-set.c: New file.
55385         * lib/unistr/u16-set.c: New file.
55386         * lib/unistr/u32-set.c: New file.
55387         * lib/unistr/u-set.h: New file.
55388
55389         * modules/unistr/u8-startswith: New file.
55390         * modules/unistr/u16-startswith: New file.
55391         * modules/unistr/u32-startswith: New file.
55392         * lib/unistr/u8-startswith.c: New file.
55393         * lib/unistr/u16-startswith.c: New file.
55394         * lib/unistr/u32-startswith.c: New file.
55395         * lib/unistr/u-startswith.h: New file.
55396
55397         * modules/unistr/u8-stpcpy: New file.
55398         * modules/unistr/u16-stpcpy: New file.
55399         * modules/unistr/u32-stpcpy: New file.
55400         * lib/unistr/u8-stpcpy.c: New file.
55401         * lib/unistr/u16-stpcpy.c: New file.
55402         * lib/unistr/u32-stpcpy.c: New file.
55403         * lib/unistr/u-stpcpy.h: New file.
55404
55405         * modules/unistr/u8-stpncpy: New file.
55406         * modules/unistr/u16-stpncpy: New file.
55407         * modules/unistr/u32-stpncpy: New file.
55408         * lib/unistr/u8-stpncpy.c: New file.
55409         * lib/unistr/u16-stpncpy.c: New file.
55410         * lib/unistr/u32-stpncpy.c: New file.
55411         * lib/unistr/u-stpncpy.h: New file.
55412
55413         * modules/unistr/u8-strcat: New file.
55414         * modules/unistr/u16-strcat: New file.
55415         * modules/unistr/u32-strcat: New file.
55416         * lib/unistr/u8-strcat.c: New file.
55417         * lib/unistr/u16-strcat.c: New file.
55418         * lib/unistr/u32-strcat.c: New file.
55419         * lib/unistr/u-strcat.h: New file.
55420
55421         * modules/unistr/u8-strchr: New file.
55422         * modules/unistr/u16-strchr: New file.
55423         * modules/unistr/u32-strchr: New file.
55424         * lib/unistr/u8-strchr.c: New file.
55425         * lib/unistr/u16-strchr.c: New file.
55426         * lib/unistr/u32-strchr.c: New file.
55427
55428         * modules/unistr/u8-strcmp: New file.
55429         * modules/unistr/u16-strcmp: New file.
55430         * modules/unistr/u32-strcmp: New file.
55431         * lib/unistr/u8-strcmp.c: New file.
55432         * lib/unistr/u16-strcmp.c: New file.
55433         * lib/unistr/u32-strcmp.c: New file.
55434
55435         * modules/unistr/u8-strcpy: New file.
55436         * modules/unistr/u16-strcpy: New file.
55437         * modules/unistr/u32-strcpy: New file.
55438         * lib/unistr/u8-strcpy.c: New file.
55439         * lib/unistr/u16-strcpy.c: New file.
55440         * lib/unistr/u32-strcpy.c: New file.
55441         * lib/unistr/u-strcpy.h: New file.
55442
55443         * modules/unistr/u8-strcspn: New file.
55444         * modules/unistr/u16-strcspn: New file.
55445         * modules/unistr/u32-strcspn: New file.
55446         * lib/unistr/u8-strcspn.c: New file.
55447         * lib/unistr/u16-strcspn.c: New file.
55448         * lib/unistr/u32-strcspn.c: New file.
55449         * lib/unistr/u-strcspn.h: New file.
55450
55451         * modules/unistr/u8-strdup: New file.
55452         * modules/unistr/u16-strdup: New file.
55453         * modules/unistr/u32-strdup: New file.
55454         * lib/unistr/u8-strdup.c: New file.
55455         * lib/unistr/u16-strdup.c: New file.
55456         * lib/unistr/u32-strdup.c: New file.
55457         * lib/unistr/u-strdup.h: New file.
55458
55459         * modules/unistr/u8-strlen: New file.
55460         * modules/unistr/u16-strlen: New file.
55461         * modules/unistr/u32-strlen: New file.
55462         * lib/unistr/u8-strlen.c: New file.
55463         * lib/unistr/u16-strlen.c: New file.
55464         * lib/unistr/u32-strlen.c: New file.
55465         * lib/unistr/u-strlen.h: New file.
55466
55467         * modules/unistr/u8-strmblen: New file.
55468         * modules/unistr/u16-strmblen: New file.
55469         * modules/unistr/u32-strmblen: New file.
55470         * lib/unistr/u8-strmblen.c: New file.
55471         * lib/unistr/u16-strmblen.c: New file.
55472         * lib/unistr/u32-strmblen.c: New file.
55473
55474         * modules/unistr/u8-strmbtouc: New file.
55475         * modules/unistr/u16-strmbtouc: New file.
55476         * modules/unistr/u32-strmbtouc: New file.
55477         * lib/unistr/u8-strmbtouc.c: New file.
55478         * lib/unistr/u16-strmbtouc.c: New file.
55479         * lib/unistr/u32-strmbtouc.c: New file.
55480
55481         * modules/unistr/u8-strncat: New file.
55482         * modules/unistr/u16-strncat: New file.
55483         * modules/unistr/u32-strncat: New file.
55484         * lib/unistr/u8-strncat.c: New file.
55485         * lib/unistr/u16-strncat.c: New file.
55486         * lib/unistr/u32-strncat.c: New file.
55487         * lib/unistr/u-strncat.h: New file.
55488
55489         * modules/unistr/u8-strncmp: New file.
55490         * modules/unistr/u16-strncmp: New file.
55491         * modules/unistr/u32-strncmp: New file.
55492         * lib/unistr/u8-strncmp.c: New file.
55493         * lib/unistr/u16-strncmp.c: New file.
55494         * lib/unistr/u32-strncmp.c: New file.
55495
55496         * modules/unistr/u8-strncpy: New file.
55497         * modules/unistr/u16-strncpy: New file.
55498         * modules/unistr/u32-strncpy: New file.
55499         * lib/unistr/u8-strncpy.c: New file.
55500         * lib/unistr/u16-strncpy.c: New file.
55501         * lib/unistr/u32-strncpy.c: New file.
55502         * lib/unistr/u-strncpy.h: New file.
55503
55504         * modules/unistr/u8-strnlen: New file.
55505         * modules/unistr/u16-strnlen: New file.
55506         * modules/unistr/u32-strnlen: New file.
55507         * lib/unistr/u8-strnlen.c: New file.
55508         * lib/unistr/u16-strnlen.c: New file.
55509         * lib/unistr/u32-strnlen.c: New file.
55510         * lib/unistr/u-strnlen.h: New file.
55511
55512         * modules/unistr/u8-strpbrk: New file.
55513         * modules/unistr/u16-strpbrk: New file.
55514         * modules/unistr/u32-strpbrk: New file.
55515         * lib/unistr/u8-strpbrk.c: New file.
55516         * lib/unistr/u16-strpbrk.c: New file.
55517         * lib/unistr/u32-strpbrk.c: New file.
55518         * lib/unistr/u-strpbrk.h: New file.
55519
55520         * modules/unistr/u8-strrchr: New file.
55521         * modules/unistr/u16-strrchr: New file.
55522         * modules/unistr/u32-strrchr: New file.
55523         * lib/unistr/u8-strrchr.c: New file.
55524         * lib/unistr/u16-strrchr.c: New file.
55525         * lib/unistr/u32-strrchr.c: New file.
55526
55527         * modules/unistr/u8-strspn: New file.
55528         * modules/unistr/u16-strspn: New file.
55529         * modules/unistr/u32-strspn: New file.
55530         * lib/unistr/u8-strspn.c: New file.
55531         * lib/unistr/u16-strspn.c: New file.
55532         * lib/unistr/u32-strspn.c: New file.
55533         * lib/unistr/u-strspn.h: New file.
55534
55535         * modules/unistr/u8-strstr: New file.
55536         * modules/unistr/u16-strstr: New file.
55537         * modules/unistr/u32-strstr: New file.
55538         * lib/unistr/u8-strstr.c: New file.
55539         * lib/unistr/u16-strstr.c: New file.
55540         * lib/unistr/u32-strstr.c: New file.
55541         * lib/unistr/u-strstr.h: New file.
55542
55543         * modules/unistr/u8-strtok: New file.
55544         * modules/unistr/u16-strtok: New file.
55545         * modules/unistr/u32-strtok: New file.
55546         * lib/unistr/u8-strtok.c: New file.
55547         * lib/unistr/u16-strtok.c: New file.
55548         * lib/unistr/u32-strtok.c: New file.
55549         * lib/unistr/u-strtok.h: New file.
55550
55551         * modules/unistr/u8-uctomb: New file.
55552         * modules/unistr/u16-uctomb: New file.
55553         * modules/unistr/u32-uctomb: New file.
55554         * lib/unistr/u8-uctomb.c: New file.
55555         * lib/unistr/u16-uctomb.c: New file.
55556         * lib/unistr/u32-uctomb.c: New file.
55557
55558         * MODULES.html.sh (Unicode string functions): Add the new modules.
55559
55560 2007-01-08  Bruno Haible  <bruno@clisp.org>
55561
55562         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
55563         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
55564         subdirectories.
55565
55566 2007-01-08  Karl Berry  <karl@gnu.org>
55567
55568         * doc/error.texi: mention that main() fns must set program_name
55569         when progname is used.
55570
55571 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
55572
55573         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
55574         WCTYPE_H is empty, for the benefit of builds from non-distclean
55575         directories.  Problem reported by Eric Blake in
55576         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
55577
55578 2007-01-08  Bruno Haible  <bruno@clisp.org>
55579
55580         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
55581         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
55582         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
55583         PROVIDE_CANONICALIZE_FILENAME_MODE.
55584         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
55585
55586 2007-01-08  Bruno Haible  <bruno@clisp.org>
55587
55588         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
55589         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
55590         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
55591         * lib/fts.c: Likewise.
55592         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
55593
55594 2006-12-25  Bruno Haible  <bruno@clisp.org>
55595
55596         * modules/utf8-ucs4-safe: New file.
55597         * lib/utf8-ucs4-safe.h: New file.
55598         * lib/unistr/utf8-ucs4-safe.c: New file.
55599
55600         * modules/utf16-ucs4-safe: New file.
55601         * lib/utf16-ucs4-safe.h: New file.
55602         * lib/unistr/utf16-ucs4-safe.c: New file.
55603
55604         * MODULES.html.sh (Unicode string functions): Add the new modules.
55605
55606 2007-01-08  Bruno Haible  <bruno@clisp.org>
55607
55608         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
55609         (Depends-on): Add unitypes.
55610         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55611         (u8_mbtouc_aux): Move out to separate file.
55612         (u8_mbtouc): Use ucs4_t, uint8_t types.
55613         * lib/unistr/utf8-ucs4.c: New file.
55614
55615         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
55616         (Depends-on): Add unitypes.
55617         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55618         (u16_mbtouc_aux): Move out to separate file.
55619         (u16_mbtouc): Use ucs4_t, uint16_t types.
55620         * lib/unistr/utf16-ucs4.c: New file.
55621
55622         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
55623         (Depends-on): Add unitypes.
55624         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
55625         (u8_uctomb_aux): Move out to separate file.
55626         (u8_uctomb): Use ucs4_t, uint8_t types.
55627         * lib/unistr/ucs4-utf8.c: New file.
55628
55629         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
55630         (Depends-on): Add unitypes.
55631         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
55632         (u16_uctomb_aux): Move out to separate file.
55633         (u16_uctomb): Use ucs4_t, uint16_t types.
55634         * lib/unistr/ucs4-utf16.c: New file.
55635
55636 2006-12-25  Bruno Haible  <bruno@clisp.org>
55637
55638         * modules/unitypes: New file.
55639         * lib/unitypes.h: New file.
55640         * MODULES.html.sh (func_all_modules): New section "Unicode string
55641         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
55642         this section. Add unitypes.
55643
55644 2007-01-08  Bruno Haible  <bruno@clisp.org>
55645
55646         Avoid variable names that conflict with those from libtool.
55647         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
55648         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
55649         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
55650         library_names_spec to acl_library_names_spec, hardcode_* to
55651         acl_hardcode_*.
55652         Reported by Ralf Wildenhues.
55653
55654 2007-01-08  Bruno Haible  <bruno@clisp.org>
55655
55656         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
55657         definition.
55658         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
55659         definition.
55660         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
55661         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
55662         definition.
55663         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
55664         definition.
55665         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
55666         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
55667         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
55668         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
55669         definition.
55670         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
55671         definition.
55672         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
55673         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
55674         GC_USE_<algorithm>.
55675         * lib/gc-libgcrypt.c: Likewise.
55676         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
55677         * modules/gc-arctwo (configure.ac): Likewise.
55678         * modules/gc-des (configure.ac): Likewise.
55679         * modules/gc-hmac-md5 (configure.ac): Likewise.
55680         * modules/gc-hmac-sha1 (configure.ac): Likewise.
55681         * modules/gc-md2 (configure.ac): Likewise.
55682         * modules/gc-md4 (configure.ac): Likewise.
55683         * modules/gc-md5 (configure.ac): Likewise.
55684         * modules/gc-random (configure.ac): Likewise.
55685         * modules/gc-rijndael (configure.ac): Likewise.
55686         * modules/gc-sha1 (configure.ac): Likewise.
55687
55688 2007-01-08  Bruno Haible  <bruno@clisp.org>
55689
55690         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
55691         macro definition.
55692         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
55693         definition.
55694         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
55695         definition.
55696         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
55697         * modules/fcntl-safer (configure.ac): Likewise.
55698         * modules/fopen-safer (configure.ac): Likewise.
55699         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
55700         GNULIB_FWRITEERROR macro definition.
55701
55702 2007-01-08  Bruno Haible  <bruno@clisp.org>
55703
55704         * m4/gnulib-common.m4: New file.
55705         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
55706         (func_get_filelist): Add m4/gnulib-common.m4.
55707
55708 2007-01-08  Bruno Haible  <bruno@clisp.org>
55709
55710         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
55711         command.
55712
55713 2007-01-08  Jim Meyering  <jim@meyering.net>
55714
55715         Use a more robust test for a "can't happen" condition.
55716         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
55717         narrowed the st_size value.  Presuming the "can't happen" condition
55718         is true, that narrowing could conceivably convert an invalid st_size
55719         value into a valid one.  Instead, use a change based on Matthew
55720         Woehlke's original patch.
55721
55722         Slight readability improvement: use an assert-like macro
55723         in place of literal "abort ()" uses.
55724         * lib/fts.c (fts_assert): Define.
55725         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
55726         Use this macro instead of a bare 'abort'.
55727
55728 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
55729
55730         Don't worry about using IRIX 5.3's wctype.h broken definitions;
55731         simply work around them.
55732         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
55733         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
55734         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
55735         declaring.
55736         Don't bother to define as macros, since the standard doesn't require it.
55737         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
55738         longer worry about IRIX 5.3.
55739         (HAVE_WCTYPE_CTMP_BUG): Remove.
55740
55741 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55742
55743         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
55744         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
55745         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55746         Problems reported by Georg Schwarz for IRIX 5.3.
55747
55748         * gnulib-tool (autoconf_minversion): Take the maximum version number
55749         found, not the minimum.  Problem reported by James Youngman.
55750
55751 2007-01-03  Karl Berry  <karl@gnu.org>
55752
55753         * doc/error.texi: new file, explaining interaction with progname.
55754         * doc/gnulib.texi: include it.  Update copyright.
55755
55756 2007-01-03  Simon Josefsson  <simon@josefsson.org>
55757
55758         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
55759         AC_CANONICAL_HOST, to improve autobuild outputs.
55760
55761 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
55762             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55763
55764         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
55765         sockets, server sockets, and other file descriptors.  Count errors
55766         to compute the return value.  Reorder the code a bit to be easier
55767         to follow.  Don't set event bits that were not requested (except
55768         POLLERR and POLLHUP).
55769
55770 2007-01-01  Bruno Haible  <bruno@clisp.org>
55771
55772         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
55773
55774 2007-01-03  Jim Meyering  <jim@meyering.net>
55775
55776         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
55777
55778 2007-01-02  Bruno Haible  <bruno@clisp.org>
55779
55780         * modules/settime (Include): Require timespec.h.
55781         * modules/nanosleep (Include): Likewise.
55782
55783 2007-01-01  Bruno Haible  <bruno@clisp.org>
55784
55785         * gnulib-tool (func_emit_copyright_notice): Bump year.
55786         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
55787
55788 2007-01-01  Bruno Haible  <bruno@clisp.org>
55789
55790         Improve support for OpenBSD.
55791         * build-aux/config.rpath (libname_spec): Export.
55792         (library_names_spec): New variable. Export.
55793         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
55794         library_names_spec from the config.rpath output. Locate shared library
55795         through the name pattern in library_names_spec.
55796
55797 2007-01-01  Eric Blake  <ebb9@byu.net>
55798
55799         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
55800
55801 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
55802
55803         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
55804         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
55805         assume the C locale, and avoid an "eval" that could cause trouble.
55806         Problem with SORT reported by Bob Proulx.
55807
55808         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
55809         Define.  Trivial patch from Henning Nielsen Lund, originally
55810         sent to bug-grep@gnu.org today.
55811
55812 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55813
55814         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
55815         struct stat.  Problem reported by Henning Nielsen Lund.
55816         * lib/acl.c: Include acl.h first, to check interface.  Don't
55817         bother to include sys/types.h and sys/stat.h again.
55818
55819 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
55820
55821         Import the following change from libc; problem reported by
55822         Sven Verdoolaege.
55823
55824         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
55825
55826         [BZ #1373]
55827         * lib/argp.h: Remove __NTH for __argp_usage inline function.
55828
55829 2006-12-28  Jim Meyering  <jim@meyering.net>
55830
55831         * build-aux/announce-gen: Do not assume that the package
55832         builds any of tar.gz, tar.bz2, and .xdelta files.
55833         Suggestion from Simon Josefsson.
55834
55835 2006-12-28  Simon Josefsson  <simon@josefsson.org>
55836
55837         * modules/announce-gen: New file.
55838
55839 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
55840
55841         * lib/mbchar.h: Just include <wctype.h>; the wctype module
55842         handles its gotchas now.
55843         * lib/mbswidth.c: Likewise.
55844         * lib/wcwidth.h: Likewise.
55845         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
55846         and iswcntrl; the wctype module does this stuff now.
55847         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55848         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55849         * modules/mbchar (Depends-on): Add wctype.
55850         * modules/mbswidth (Depends-on): Likewise.
55851         * modules/wcwidth (Depends-on): Likewise.
55852
55853 2006-12-27  Eric Blake  <ebb9@byu.net>
55854
55855         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
55856         module uses more than what <wctype.h> is required to provide.
55857
55858 2006-12-26  Eric Blake  <ebb9@byu.net>
55859
55860         * gnulib-tool (sed_extract_prog): Avoid space-tab.
55861
55862 2006-12-26  Eric Blake  <ebb9@byu.net>
55863
55864         * modules/absolute-header: New module.
55865         * modules/fcntl (Depends-on): Depend on it.
55866         * modules/inttypes (Depends-on): Likewise.
55867         * modules/stdint (Depends-on): Likewise.
55868         * modules/sys_stat (Depends-on): Likewise.
55869         * modules/wctype (Depends-on): Likewise.
55870         * MODULES.html.sh (Support for building libraries and
55871         executables): Document it.
55872
55873 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55874
55875         * gnulib-tool (SED): Remove, undoing previous change.
55876         The problem was that it broke coreutils on Solaris, because
55877         "sed --posix" leaked into a makefile.
55878         (sed): New alias, if 'alias' and GNU sed.
55879
55880 2006-12-24  Jim Meyering  <jim@meyering.net>
55881
55882         Work around an fchownat bug in glibc-2.4:
55883         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
55884         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
55885         in spite of the -P option.
55886         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
55887         New macros.
55888         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
55889         * modules/openat (Files): Add lib/fchownat.c.
55890         * lib/openat.c (fchownat): Don't define here.  Move to...
55891         * lib/fchownat.c: ...this new file.
55892
55893 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
55894
55895         Fix bug reported by Bruno Haible in
55896         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
55897         where quotearg.c didn't compile on Mac OS X 10.2 because it
55898         lacks <wchar.h> and wint_t.
55899         * lib/wctype_.h (__wctype_wint_t): New type.
55900         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
55901         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
55902         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
55903         Arg is now of type __wctype_wint_t, not wint_t.
55904         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
55905         substitute HAVE_WINT_T.
55906         * modules/wctype (Files): Add m4/wint_t.m4.
55907         (wctype.h): Substitute HAVE_WINT_T.
55908
55909 2006-12-23  Bruno Haible  <bruno@clisp.org>
55910
55911         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
55912
55913 2006-12-23  Bruno Haible  <bruno@clisp.org>
55914
55915         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
55916         S_ISLNK.
55917         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
55918         mingw.
55919
55920 2006-12-22  Bruno Haible  <bruno@clisp.org>
55921
55922         * lib/copy-file.c: Include acl.h.
55923         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
55924         Close the file descriptors only after being done with copy_acl.
55925         * modules/copy-file (Depends-on): Add acl.
55926
55927 2006-12-22  Bruno Haible  <bruno@clisp.org>
55928
55929         * gnulib-tool (SED): New variable.
55930         Use $SED instead of sed everywhere.
55931
55932 2006-12-22  Bruno Haible  <bruno@clisp.org>
55933
55934         * modules/no-c++: New file.
55935         * m4/no-c++.m4: New file.
55936         * MODULES.html.sh (Support for building libraries and executables):
55937         Add no-c++.
55938
55939 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
55940
55941         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55942         Include <limits.h>, and use its INT_MAX to rewrite the
55943         j loop so that it does not overflow 'int'.  Problem reported by
55944         Ralf Wildenhues in
55945         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
55946         Play it safe by shifting left by 1 rather than multiplying by 2,
55947         as GCC is less likely to optimize this away when the value
55948         is signed (when it assumes overflow leads to undefined behavior).
55949         Also, don't assume time_t uses two's complement.
55950
55951 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
55952
55953         * MODULES.html.sh: New module wctype.
55954         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
55955         * lib/fnmatch.c: Don't bother to include <wchar.h> before
55956         <wctype.h>, since the new wctype module should fix this.
55957         * lib/quotearg.c: Include <wctype.h> unconditionally, since
55958         the wctype module should arrange for it.
55959         * lib/regex_internal.h: Likewise.
55960         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
55961         since the wctype module should handle this now.
55962         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
55963         * modules/fnmatch (Depends-on): Add wctype.
55964         * modules/quotearg (Depends-on): Likewise.
55965         * modules/regex (Depends-on): Likewise.
55966
55967 2006-12-19  Bruno Haible  <bruno@clisp.org>
55968
55969         * lib/strdup.h [C++]: Wrap definitions in extern "C".
55970         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
55971
55972 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55973
55974         * modules/savewd (Depends-on): Fix dependency on fcntl.
55975
55976 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55977
55978         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
55979         conforms to C99, rather than relying on the user's environment
55980         setting of STDINT_H.
55981
55982 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55983         and Eric Blake  <ebb9@byu.net>
55984
55985         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
55986         This is more consistent with the other defines here.
55987         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
55988         Port to z/OS.  Problem reported by Paul Gilmartin.
55989         Change local vars to use gl_ prefix rather than ac_.
55990         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
55991         with other defines.
55992         * modules/double-slash-root: New module.
55993         * modules/dirname (Files): Remove m4/double-slash-root.m4.
55994         (Depends-on): Add double-slash-root.
55995         * MODULES.html.sh (File system functions): Mention new module.
55996
55997 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
55998
55999         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
56000         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
56001         This is for the benefit of gzip, which doesn't do i18n.
56002
56003 2006-12-12  Jim Meyering  <jim@meyering.net>
56004
56005         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
56006         Reported by Andreas Schwab <schwab@suse.de>.
56007
56008 2006-12-12  Bruno Haible  <bruno@clisp.org>
56009
56010         Merge these changes.
56011         2006-09-05  Bruno Haible  <bruno@clisp.org>
56012         * lib/iconvme.c (iconv_string): No need to save and restore errno when
56013         iconv_alloc succeeded.
56014         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
56015         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
56016         test for " && dest " at the end - dest is always != NULL there. Call
56017         iconv with 4xNULL arguments initially, to reset the state. Call iconv
56018         with 2xNULL arguments, also to flush the state storage. Handle the
56019         IRIX iconv behaviour. Realloc the final result, to throw away unused
56020         memory.
56021
56022 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
56023
56024         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
56025         and fchmodat unconditionally, since glibc 2.4 has them.
56026         Problem reported by Arkadiusz Miskiewicz.
56027
56028 2006-12-10  Bruno Haible  <bruno@clisp.org>
56029
56030         * gnulib-tool (func_import): Show the include files only for those
56031         modules that are copied and specified.
56032         Reported by Karl Berry.
56033
56034 2006-12-08  Jim Meyering  <jim@meyering.net>
56035
56036         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
56037         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
56038
56039         * build-aux/announce-gen: Add two new options, both optional:
56040         --bootstrap-tools=TOOL_LIST
56041               a comma-separated list of tools, e.g.,
56042               autoconf,automake,bison,gnulib
56043         --gnulib-snapshot-date=DATE
56044               if gnulib is in the bootstrap tool list,
56045               then report this as the snapshot date.
56046               If not specified, use the current date/time.
56047               If you specify a date here, be sure it's UTC.
56048
56049 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56050
56051         * tests/test-argp-2.sh: Fix test to match actual output.
56052         (func_compare): Fix sed script to be portable.
56053
56054 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
56055
56056         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
56057         workaround for this case.  It is not autoconfigured now; offhand
56058         it's hard to see how to autoconfigure it.
56059
56060 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56061
56062         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
56063         a directory that is about to be chowned.  Such a directory's
56064         initial file permissions should permit the owner only and this
56065         should not be changed until after the chown, since the group and
56066         other bits would be incorrect if they granted permission before
56067         the chown.
56068
56069         Fix porting problem for iswctype reported by Georg Schwarz in:
56070         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
56071         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
56072         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
56073         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
56074         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56075
56076 2006-12-03  Jim Meyering  <jim@meyering.net>
56077
56078         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
56079         p->fts_statp may not yet be defined.
56080         (fts_read): Instead, set it in the caller, once p->fts_statp is
56081         sure to be defined, and corresponds to a top-level directory.
56082         This bug made du -x fail.  Here's the coreutils test case:
56083         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
56084         Reported by Mike Frysinger.
56085
56086 2006-12-01  Jim Meyering  <jim@meyering.net>
56087
56088         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
56089         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
56090         Reported by Simon Josefsson.
56091
56092 2006-11-30  Jim Meyering  <jim@meyering.net>
56093
56094         * m4/warning.m4: Use the all-permissive copyright notice
56095         recommended by RMS (rather than LGPL).
56096         * m4/vararrays.m4: Likewise.
56097         * m4/flexmember.m4: Likewise.
56098
56099 2006-11-29  Bruno Haible  <bruno@clisp.org>
56100
56101         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56102         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
56103         using +=.
56104         Reported by Simon Josefsson <simon@josefsson.org>.
56105
56106 2006-11-28  James Youngman <jay@gnu.org>
56107
56108         * README: Advise users that they might find the bug-gnulib@gnu.org
56109         and autotools-announce@gnu.org mailing lists useful.
56110
56111 2006-11-28  Bruno Haible  <bruno@clisp.org>
56112
56113         * m4/ptrdiff_max.m4: Remove file.
56114
56115 2006-11-21  Bruno Haible  <bruno@clisp.org>
56116
56117         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
56118         _AC_COMPUTE_INT.
56119         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56120         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
56121         _AC_COMPUTE_INT.
56122         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56123         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
56124         _AC_COMPUTE_INT.
56125         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56126
56127 2006-11-28  Jim Meyering  <jim@meyering.net>
56128
56129         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
56130         warning from "gcc -Wshadow" about shadowing the builtin.
56131
56132 2006-11-27  Bruno Haible  <bruno@clisp.org>
56133
56134         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
56135         _AC_COMPUTE_INT.
56136         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56137
56138 2006-11-27  Bruno Haible  <bruno@clisp.org>
56139             Paul Eggert  <eggert@cs.ucla.edu>
56140
56141         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
56142
56143 2006-11-26  Bruno Haible  <bruno@clisp.org>
56144
56145         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56146         noinst_LTLIBRARIES.
56147
56148 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
56149             Bruno Haible  <bruno@clisp.org>
56150
56151         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
56152         if compiling with "gcc -ansi".
56153
56154 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
56155
56156         Fix some incompatibilities with gcc -ansi -pedantic.
56157         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
56158         if compiling pedantically with GCC, unless it's C99 or later.
56159         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
56160         it mishandles gcc -ansi -pedantic as well.
56161         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
56162         if gcc -pedantic.
56163         * lib/regexec.c (check_node_accept_bytes): Don't use auto
56164         initializers for struct if -pedantic, unless it's C99 or later.
56165
56166 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
56167
56168         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
56169         Don't close an fd more than once. Identical atimes indicate
56170         success, not failure.
56171
56172 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
56173
56174         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
56175
56176 2006-11-23  Jim Meyering  <jim@meyering.net>
56177
56178         * build-aux/announce-gen: New file.  From coreutils.
56179
56180 2006-11-22  Jim Meyering  <jim@meyering.net>
56181
56182         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
56183         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
56184         (fts_read): Use a temporary to narrow the overused st_size member
56185         before using it in a switch statement.  Reported by Matthew Woehlke.
56186
56187         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
56188         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56189
56190 2006-11-20  Bruno Haible  <bruno@clisp.org>
56191
56192         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
56193         changequote instead of pairs of brackets.
56194         Reported by Andreas Schwab <schwab@suse.de>.
56195
56196 2006-11-21  Jim Meyering  <jim@meyering.net>
56197
56198         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
56199         so as to remain compatible with older compilers.
56200         Patch from Michael Deutschmann.
56201
56202 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56203
56204         * MODULES.html.sh (File system functions): Add openat.
56205
56206         * lib/openat.h (rpl_fstatat): New macro, if
56207         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
56208         (fstatat): Define to rpl_fstatat under the same conditions,
56209         unless COMPILING_FSTATAT.
56210         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
56211         seems to have the bug.
56212         * lib/fstatat.c: New file.
56213         * modules/openat (Files): Add it.
56214
56215 2006-11-20  Bruno Haible  <bruno@clisp.org>
56216
56217         * Makefile: New file.
56218
56219 2006-11-20  Jim Meyering  <jim@meyering.net>
56220
56221         The beginnings of syntax-related checks for gnulib.
56222         * lib/Makefile: New file.
56223         * lib/t-idcache: New script.  Ensure that the two halves of
56224         idcache.c stay in sync.
56225
56226         * lib/idcache.c: Adjust comments in user- and group- portions to
56227         be more accurate, and to be consistent with one another.
56228
56229 2006-11-20  Jim Meyering  <jim@meyering.net>
56230
56231         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
56232         continue using the flexible array member (thus, this module performs
56233         half as many malloc calls), with the addition that...
56234         (getgroup, getuser): Consistently record a non-match via an empty
56235         "name" string, and map an empty string match to a NULL return value.
56236         * modules/idcache (Depends-on): Re-add flexmember.
56237
56238         * lib/idcache.c (getuser): Remove all uses of the register keyword.
56239         (getuidbyname, getgroup, getgidbyname): Likewise.
56240
56241         Use cleaner syntax: NULL rather than 0.
56242         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
56243
56244 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56245
56246         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
56247         It mishandled the case where the group was missing.
56248         Problem reported by Greg Schafer.
56249         * modules/idcache: Likewise.
56250
56251 2006-11-18  Jim Meyering  <jim@meyering.net>
56252
56253         * check-module (%exempt_header): Add exception for some
56254         conditionally-included headers.
56255
56256         * modules/i-ring (Depends-on): Add verify.
56257         (License): Change to LGPL.
56258
56259 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56260
56261         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
56262         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
56263         and inttostr.h.  Use snprintf rather than uinttostr, so that
56264         LGPLed code doesn't depend on GPLed.
56265
56266 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56267
56268         * modules/inline (License): Change from GPL to LGPL.
56269
56270 2006-11-17  Jim Meyering  <jim@meyering.net>
56271
56272         * modules/d-type (License): Switch to LGPL.
56273
56274 2006-11-15  Bruno Haible  <bruno@clisp.org>
56275
56276         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
56277
56278 2006-11-15  Eric Blake  <ebb9@byu.net>
56279
56280         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
56281         the module dependency.
56282
56283 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56284             Bruno Haible  <bruno@clisp.org>
56285
56286         * gnulib-tool (func_create_testdir): Add license consistency check.
56287
56288 2006-11-15  Eric Blake  <ebb9@byu.net>
56289
56290         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
56291         random "(cached)" in configure output.
56292
56293 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56294
56295         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
56296         test for conforming inttypes.h is both announced and cached.
56297
56298         * MODULES.html.sh (seen_modules, seen_files): New variables.
56299         (func_module): Rewrite to use a few less gnulib-tool and sed
56300         invocations.  Avoid a couple of quadratic algorithms for ...
56301         (missed_modules, missed_files): ... these, with ...
56302         (func_append, func_tmpdir): ... these new functions, from
56303         gnulib-tool.  Analogously, install traps for cleanup.
56304
56305         * tests/test-gc.c (main): Remove unused variables.
56306         * tests/test-read-file.c: Include stdlib.h, for 'free'.
56307
56308 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
56309
56310         * modules/inttostr (License): Change to LGPL.
56311
56312 2006-11-14  Eric Blake  <ebb9@byu.net>
56313
56314         * modules/tempname (License): Change to LGPL.
56315
56316 2006-11-14  Eric Blake  <ebb9@byu.net>
56317
56318         * doc/functions.texi (Function Portability): *printf functions on
56319         Cygwin now understand all POSIX size specifiers.
56320
56321 2006-11-14  Bruno Haible  <bruno@clisp.org>
56322
56323         * modules/c-ctype (License): Change to LGPL.
56324
56325 2006-11-12  Bruno Haible  <bruno@clisp.org>
56326
56327         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56328         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
56329         for GNOME libraries, for which the include files are installed in
56330         subdirectories of $prefix/include.
56331
56332 2006-11-12  Bruno Haible  <bruno@clisp.org>
56333
56334         * m4/lib-link.m4: Require at least autoconf-2.54.
56335         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
56336         name to underscores for the --with option.
56337
56338 2006-11-13  Bruno Haible  <bruno@clisp.org>
56339
56340         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
56341         the tests directory.
56342         Reported by Ralf Wildenhues.
56343
56344 2006-11-13  Bruno Haible  <bruno@clisp.org>
56345
56346         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
56347         (func_emit_initmacro_end): Undo the override here.
56348         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
56349         Works around the famous automake error in coreutils.
56350
56351 2006-11-13  Eric Blake  <ebb9@byu.net>
56352
56353         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
56354         element, not its node.
56355
56356 2006-11-12  Bruno Haible  <bruno@clisp.org>
56357
56358         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
56359         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
56360
56361 2006-11-12  Bruno Haible  <bruno@clisp.org>
56362
56363         * gnulib-tool: New option --local-symlink.
56364         (func_usage): Document it.
56365         (lsymbolic): New variable.
56366         (func_import, func_create_testdir): If --symlink was not specified,
56367         test whether --local-symlink was specified and the file comes from
56368         the local_gnulib_dir.
56369
56370 2006-11-12  Bruno Haible  <bruno@clisp.org>
56371
56372         * gnulib-tool (func_ln): New function.
56373         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
56374
56375 2006-11-12  Bruno Haible  <bruno@clisp.org>
56376
56377         Finish support for source files in subdirectories.
56378         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
56379         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
56380         AUTOMAKE_OPTIONS.
56381         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
56382
56383 2006-11-12  Bruno Haible  <bruno@clisp.org>
56384
56385         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56386         EXTRA_lib_SOURCES augmentation.
56387         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
56388
56389 2006-11-12  Jim Meyering  <jim@meyering.net>
56390
56391         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
56392         file descriptors.  This also averts a failure on systems with
56393         native openat support when a traversed directory lacks "x" access.
56394         * lib/fts_.h: Include "i-ring.h"
56395         (struct FTS) [fts_fd_ring]: New member.
56396         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
56397         (FCHDIR): Add parentheses.
56398         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
56399         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
56400         When descending, rather than simply closing the previous
56401         fts_cwd_fd value, push that file descriptor onto the ring.
56402         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
56403         (fts_open): Initialize the new fd_ring member.
56404         (fts_close): Clear the ring.
56405         (fts_safe_changedir): When possible, use our new fd_ring to skip
56406         the diropen and fstat and dev/ino comparison that would normally
56407         accompany a virtual `chdir ("..")'.
56408
56409         * modules/fts (Depends-on): Add i-ring.
56410         * modules/i-ring: New module.
56411         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
56412         * m4/i-ring.m4: New file.
56413
56414 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56415
56416         * gnulib-tool (func_create_testdir): Fix replacement of
56417         `build-aux' in configure.ac.  Run autotools in gltests
56418         subdirectory.
56419         (func_create_testdir, func_create_megatestdir, test): There is
56420         no need for '--force' in most autotool invocations in a new
56421         tree.  Actually fail the whole test if any of the tools, or the
56422         configure or make stages fail.
56423
56424         Sync from Automake.
56425         * build-aux/gnupload: Revert last change.  Add pointer to upload
56426         instructions of the GNU Maintenance Instructions.
56427         Suggestion by Karl Berry.
56428
56429 2006-11-10  Jim Meyering  <jim@meyering.net>
56430
56431         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
56432
56433 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56434
56435         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
56436         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
56437         (bind_textdomain_codeset) [! ENABLE_NLS]:
56438         Evaluate all the arguments.  That way, callers get compatible behavior
56439         if the arguments have side effects.  Also, it avoids some GCC
56440         diagnostics in some cases; Joel E. Denny reported problems when Bison
56441         was configured with --enable-gcc-warnigs.
56442
56443 2006-11-10  Jim Meyering  <jim@meyering.net>
56444
56445         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
56446         relevant options in CFLAGS (like -O, -fno-inline) are taken into
56447         account.
56448
56449 2006-11-10  Jim Meyering  <jim@meyering.net>
56450
56451         * modules/inline: New file/module.
56452         * modules/xalloc (Files): Remove m4/inline.m4.
56453         (Depends-on): Add inline, instead.
56454         * modules/oset: Likewise.
56455         * modules/list: Likewise.
56456
56457 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56458
56459         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
56460         Problem reported by Matthew Woehlke.
56461
56462 2006-11-09  Bruno Haible  <bruno@clisp.org>
56463
56464         * lib/tempname.c (gen_tempname): Remove variant that invokes
56465         __gen_tempname.
56466         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
56467         __gen_tempname.
56468
56469 2006-11-08  Bruno Haible  <bruno@clisp.org>
56470
56471         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
56472         to 'yes' instead of 'cross-compiling'.
56473
56474 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
56475
56476         * lib/quotearg.h (quotearg_free): New decl.
56477         * lib/quotearg.c (quotearg_free): New function.
56478         (slot0, nslots, slotvec0, slotvec):
56479         Now file-scope so that quotearg_free can get at them.
56480
56481 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56482
56483         Sync from Automake.
56484         * build-aux/gnupload: Add missing 'gnu' to example URL.
56485         Report by Karl Berry.
56486
56487 2006-11-08  Bruno Haible  <bruno@clisp.org>
56488
56489         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
56490         Suggested by Paul Eggert.
56491
56492 2006-11-08  Jim Meyering  <jim@meyering.net>
56493
56494         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
56495         It's already included if !_LIBC.
56496         (fts_safe_changedir): Add a comment.
56497
56498 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56499
56500         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
56501         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
56502         Matthew Woehlke.
56503
56504         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
56505         definitions up, to avoid colliding with change below.
56506         (static_inline) [HAVE_INLINE]: New macro.
56507         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
56508         Provide extern decls when !HAVE_INLINE.  Do not define unless
56509         static_inline is defined, either by us or by xmalloc.c.  Use
56510         static_inline rather than static inline.
56511         (XCALLOC): Optimize sizeof(T) = 1 case.
56512         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
56513
56514 2006-11-07  Bruno Haible  <bruno@clisp.org>
56515
56516         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
56517         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
56518         AC_C_INLINE.
56519         * modules/xalloc (Files): Add m4/inline.m4.
56520
56521 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56522
56523         * README: Fix typo.
56524         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
56525         (Miscellanous Notes): ...from this.
56526
56527 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56528
56529         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
56530         Mention that offsetof should be used instead of sizeof.
56531         From Bruno Haible.
56532
56533 2006-11-07  Bruno Haible  <bruno@clisp.org>
56534
56535         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
56536
56537 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56538
56539         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56540         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
56541         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56542         (gl_tree_add_before, gl_tree_add_after):
56543         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
56544         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
56545         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56546         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
56547         (gl_linked_add_after, gl_linked_add_at): Likewise.
56548         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
56549         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56550         (gl_tree_add_before, gl_tree_add_after): Likewise.
56551         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
56552         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
56553         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
56554
56555 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56556
56557         * lib/gl_oset.h: Use C comment style, not C++ comment style.
56558
56559 2006-11-06  Bruno Haible  <bruno@clisp.org>
56560
56561         * m4/inline.m4: New file.
56562         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
56563         * modules/list (Files): Add m4/inline.m4.
56564         * modules/oset (Files): Likewise.
56565
56566 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56567
56568         * lib/idcache.c: Include <stddef.h>, for offsetof.
56569         (struct userid.name): Change from char * to a flexible array member.
56570         All uses changed.
56571         * modules/idcache (Depends-on): Add flexmember.
56572
56573         * MODULES.html.sh (Core language properties): New module flexmember.
56574         * modules/flexmember, m4/flexmember.m4: New files.
56575
56576         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
56577         inline functions that are identical with the old xnmalloc_inline,
56578         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
56579         that we can avoid some unnecessary integer multiplications and
56580         divisions in the common case where the element size is known at
56581         compile time.
56582         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
56583         needed.
56584         (xnboundedmalloc): Remove.
56585         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
56586         arguments, for consistency with rest of this header.
56587         (xcharalloc): Rewrite using XNMALLOC.
56588         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
56589         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
56590         versions have been moved to lib/xalloc.h and renamed to be the
56591         non-*_inline versions.
56592         (xmalloc, xrealloc): Implement without reference to the xnmalloc
56593         and xnrealloc functions, since those functions are now inline and
56594         now call us.
56595         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
56596         renaming described above.
56597         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
56598         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
56599         captures the dependency in AC_C_INLINE.
56600
56601         New module canonicalize-lgpl, proposed by Charles Wilson in
56602         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
56603         with a few small changes afterwards.
56604         * MODULES.html.sh (File system functions): New module
56605         canonicalize-lgpl.
56606         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
56607         and canonicalize_file_name.
56608         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
56609         * modules/canonicalize-lgpl: New files.
56610
56611 2006-11-05  Bruno Haible  <bruno@clisp.org>
56612
56613         * gnulib-tool (func_import, func_create_testdir): Create directories
56614         also for files in subdirectories of lib/.
56615
56616 2006-11-05  Bruno Haible  <bruno@clisp.org>
56617
56618         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
56619         ANSI C compliant.
56620
56621 2006-11-03  Bruno Haible  <bruno@clisp.org>
56622
56623         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56624         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
56625         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
56626         (xnboundedmalloc): New inline function.
56627         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
56628         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
56629         xmalloc.
56630         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
56631         xmalloc.
56632         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
56633         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
56634         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
56635         xmalloc.
56636         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56637         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
56638         xmalloc.
56639         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
56640         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56641         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
56642         xmalloc.
56643         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56644         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
56645         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56646         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
56647         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
56648         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
56649         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
56650
56651 2006-11-03  Bruno Haible  <bruno@clisp.org>
56652
56653         * lib/c-ctype.h [C++]: Define functions without name mangling.
56654         * lib/fwriteerror.h [C++]: Likewise.
56655         * lib/gcd.h [C++]: Likewise.
56656         * lib/linebreak.h [C++]: Likewise.
56657
56658 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
56659
56660         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
56661         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
56662         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
56663         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56664         Check for functions and headers just once.
56665         Check for declaration of canonicalize_file_name.
56666         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
56667
56668 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56669
56670         * gnulib-tool (func_import): Fix typo in actioncmd.
56671
56672 2006-11-02  Bruno Haible  <bruno@clisp.org>
56673
56674         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
56675         newline sequence in the Makefile.am snippet as a space, like "make"
56676         does.
56677         Reported by Roger Persson <perrog@gmail.com>.
56678
56679 2006-11-01  Bruno Haible  <bruno@clisp.org>
56680
56681         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
56682         already declared in <string.h>.
56683         * lib/strcase.h (strncasecmp): Don't declare it if yes.
56684
56685 2006-11-01  Bruno Haible  <bruno@clisp.org>
56686
56687         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
56688         * lib/strcase.h: Include <string.h>.
56689         (strcasecmp): Define to rpl_strcasecmp here.
56690
56691 2006-11-01  Bruno Haible  <bruno@clisp.org>
56692
56693         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
56694
56695 2006-11-01  Eric Blake  <ebb9@byu.net>
56696
56697         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
56698
56699         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
56700
56701 2006-10-29  Bruno Haible  <bruno@clisp.org>
56702
56703         Make it compile in C++ mode.
56704         * lib/full-write.c (full_rw): Add a cast.
56705
56706 2006-11-01  Bruno Haible  <bruno@clisp.org>
56707
56708         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
56709         be POSIX compliant.
56710         Reported by Roger Persson <perrog@gmail.com>.
56711
56712 2006-11-01  Eric Blake  <ebb9@byu.net>
56713
56714         * lib/getopt_.h: Fix comments.
56715
56716 2006-10-31  Eric Blake  <ebb9@byu.net>
56717
56718         * modules/tmpdir (Depends-on): Add sys_stat.
56719         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
56720         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
56721         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
56722         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
56723         tempname.
56724
56725 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
56726
56727         Avoid some C++ diagnostics reported by Bruno Haible.
56728         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
56729         xmalloc.
56730         (quotearg_alloc): Use xcharalloc rather than xmalloc.
56731         (struct slotvec): Move to top level.
56732         (quotearg_n_options): Rewrite to avoid xmalloc.
56733         * lib/xalloc.h (xcharalloc): New function.
56734         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
56735         [defined __cplusplus]: Add function template that provides result
56736         type propagation.  This part of the change is from Bruno Haible.
56737
56738 2006-10-29  Bruno Haible  <bruno@clisp.org>
56739
56740         Make it compile in C++ mode.
56741         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
56742         * lib/strnlen1.c (strnlen1): Cast memchr result.
56743         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
56744         * lib/clean-temp.c (string_equals, string_hash): Add casts.
56745         (create_temp_dir): Rename local variable 'template'.
56746         (compile_csharp_using_sscli): Add cast.
56747         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
56748         * lib/findprog.c (find_in_path): Likewise.
56749         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
56750         * lib/wait-process.c (register_slave_subprocess): Likewise.
56751
56752 2006-10-22  Bruno Haible  <bruno@clisp.org>
56753
56754         * modules/tsearch: New file.
56755         * lib/tsearch.h: New file.
56756         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
56757         * m4/tsearch.m4: New file.
56758         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
56759
56760 2006-10-29  Eric Blake  <ebb9@byu.net>
56761
56762         * lib/arcfour.c: Assume config.h.
56763         * lib/arctwo.c: Likewise.
56764         * lib/base64.c: Likewise.
56765         * lib/check-version.c: Likewise.
56766         * lib/crc.c: Likewise.
56767         * lib/des.c: Likewise.
56768         * lib/gc-gnulib.c: Likewise.
56769         * lib/gc-libgcrypt.c: Likewise.
56770         * lib/gc-pbkdf2-sha1.c: Likewise.
56771         * lib/getaddrinfo.c: Likewise.
56772         * lib/getdelim.c: Likewise.
56773         * lib/getline.c: Likewise.
56774         * lib/hmac-md5.c: Likewise.
56775         * lib/hmac-sha1.c: Likewise.
56776         * lib/iconvme.c: Likewise.
56777         * lib/md2.c: Likewise.
56778         * lib/md4.c: Likewise.
56779         * lib/memxor.c: Likewise.
56780         * lib/read-file.c: Likewise.
56781         * lib/readline.c: Likewise.
56782         * lib/rijndael-alg-fst.c: Likewise.
56783         * lib/rijndael-api-fst.c: Likewise.
56784         * lib/xgetdomainname.c: Likewise.
56785
56786 2006-10-28  Eric Blake  <ebb9@byu.net>
56787
56788         * lib/xstrndup.c: Assume config.h.
56789
56790 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56791
56792         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
56793         stat-macros.h is now for our own macros, whereas stat_h is for
56794         macros in the <sys/stat.h> name space.
56795         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
56796         (STAT_MACROS_H): Remove.
56797         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
56798         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
56799         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
56800         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
56801         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
56802         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
56803         Move these macros to ...
56804         * lib/stat_.h: here.  Don't include stat-macros.h.
56805         * lib/canonicalize.c: Don't include stat-macros.h.
56806         * lib/chown.c: Likewise.
56807         * lib/euidaccess.c: Likewise.
56808         * lib/file-type.c: Likewise.
56809         * lib/filemode.c: Likewise.
56810         * lib/glob.c: Likewise.
56811         * lib/isapipe.c: Likewise.
56812         * lib/lchown.c: Likewise.
56813         * lib/lstat.c: Likewise.
56814         * lib/mkdir-p.c: Likewise.
56815         * lib/rmdir.c: Likewise.
56816         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
56817         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
56818         unless mkdir isn't declared, to speed up 'configure'.
56819         Always create sys/stat.h, since it's unlikely any real sys/stat.h
56820         would define all the S_* symbols.
56821         * modules/canonicalize (Depends-on):
56822         Depend on sys_stat, not stat-macros.
56823         * modules/chown: Likewise.
56824         * modules/euidaccess: Likewise.
56825         * modules/filemode: Likewise.
56826         * modules/file-type: Likewise.
56827         * modules/glob: Likewise.
56828         * modules/isapipe: Likewise.
56829         * modules/lchown: Likewise.
56830         * modules/lstat: Likewise.
56831         * modules/mkancesdirs: Likewise.
56832         * modules/rmdir: Likewise.
56833         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
56834         * modules/modechange: Likewise.
56835         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
56836         (configure.ac): Remove gl_STAT_MACROS.
56837         * modules/sys_stat (Depends-on): Remove stat-macros.
56838
56839 2006-10-27  Bruno Haible  <bruno@clisp.org>
56840
56841         * m4/signed.m4: Remove file.
56842         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
56843         invocation.
56844         * modules/vasnprintf (Files): Remove m4/signed.m4.
56845
56846 2006-10-27  Bruno Haible  <bruno@clisp.org>
56847
56848         Update to GNU gettext 0.16.
56849         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
56850         m4/inttypes-h.m4, m4/signed.m4.
56851         * m4/gettext.m4: Update to GNU gettext 0.16.
56852         * m4/intl.m4: New file, from GNU gettext.
56853         * m4/intldir.m4: New file, from GNU gettext.
56854         * config/srclist.txt: Update
56855
56856 2006-10-27  Eric Blake  <ebb9@byu.net>
56857
56858         * MODULES.html.sh: Document tempname.
56859         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
56860         dependencies.
56861         (Files): Move lib/tempname.c...
56862         * modules/tempname: ...to this new module.
56863         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
56864         (gl_PREREQ_TEMPNAME): Move...
56865         * m4/tempname.m4: ...to this new file.
56866         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
56867         * modules/sys_stat (Depends-on): Add stat-macros.
56868         * lib/stat_.h (includes): Pick up stat macros.
56869         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
56870         if stat macros are broken.
56871         * lib/tempname.c (includes): No need to include "stat-macros.h".
56872         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
56873         (direxists, __path_search) [!_LIBC]: Don't compile these in
56874         gnulib; the tmpdir module covers that.
56875         * lib/tempname.h: New file.
56876
56877 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
56878
56879         * COPYING: Explain how gnulib-tool converts licence headers.
56880         Almost all wording by Eric Blake.
56881
56882 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
56883
56884         * lib/mbchar.h (is_basic_table): Make read-only.
56885         * lib/mbchar.c (is_basic_table): Likewise.
56886         Reported by John Darrington.
56887
56888 2006-10-25  Bruno Haible  <bruno@clisp.org>
56889
56890         * lib/progname.h (set_program_name): Undefine before defining.
56891
56892 2006-10-25  Bruno Haible  <bruno@clisp.org>
56893
56894         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
56895         false for non-gcc C++ compilers.
56896         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56897
56898 2006-10-24  Bruno Haible  <bruno@clisp.org>
56899
56900         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
56901         iconv implementations like Irix iconv.
56902
56903 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56904
56905         * modules/vararrays: New file.
56906         * m4/vararrays.m4: New file, taken from diffutils.
56907         * MODULES.html.sh: New module vararrays.
56908
56909 2006-10-24  Karl Berry  <karl@gnu.org>
56910
56911         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
56912         Don't call GNU Unix.
56913
56914 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56915
56916         * users.txt: Add Libtool.
56917
56918         Sync from Libtool:
56919
56920         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56921
56922         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
56923         to gnulib's policy of including config.h unconditionally.
56924
56925 2006-10-24  Bruno Haible  <bruno@clisp.org>
56926
56927         * modules/wcwidth (Files): Add m4/wint_t.m4.
56928         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
56929         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
56930
56931 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56932
56933         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
56934         to pacify GCC with some -W flags enabled.  Problem reported by
56935         Bruno Haible.
56936
56937 2006-10-24  Jim Meyering  <jim@meyering.net>
56938
56939         * MODULES.html.sh: Remove uinttostr.  It's not a module.
56940         Reported by Karl Berry.
56941
56942 2006-10-23  Bruno Haible  <bruno@clisp.org>
56943
56944         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
56945
56946 2006-10-24  Bruno Haible  <bruno@clisp.org>
56947
56948         * lib/gl_list.h: Use C comment style, not C++ comment style.
56949
56950 2006-10-23  Eric Blake  <ebb9@byu.net>
56951
56952         * lib/getaddrinfo.c (includes): Add missing include.
56953
56954 2006-10-23  Bruno Haible  <bruno@clisp.org>
56955             Paul Eggert  <eggert@cs.ucla.edu>
56956
56957         Ability to rename obstack_free.
56958         * lib/obstack.h (__obstack_free): New macro. Declare instead of
56959         obstack_free.
56960         (obstack_free): Invoke the __obstack_free macro.
56961         * lib/obstack.c (obstack_free): Use __obstack_free macro.
56962
56963 2006-10-23  Bruno Haible  <bruno@clisp.org>
56964             Paul Eggert  <eggert@cs.ucla.edu>
56965
56966         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
56967         __argc, __argv from the declaration. (They are defined as macros on
56968         mingw.)
56969
56970 2006-10-22  Bruno Haible  <bruno@clisp.org>
56971
56972         * doc/gnulib-intro.texi: New file.
56973         * doc/gnulib.texi: Include it.
56974
56975 2006-10-21  Bruno Haible  <bruno@clisp.org>
56976
56977         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
56978         "Introduction", "Miscellanous Notes", "Particular Modules".
56979
56980 2006-10-21  Bruno Haible  <bruno@clisp.org>
56981
56982         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56983         Change mostlyclean-local rule to avoid sh syntax error from bash
56984         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
56985
56986 2006-10-23  Jim Meyering  <jim@meyering.net>
56987
56988         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
56989         in place of snprintf.
56990
56991         * modules/inttostr (Files): Add lib/uinttostr.c.
56992         * lib/uinttostr.c (inttostr): New file/function.
56993         * lib/inttostr.h (uinttostr): Declare.
56994         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
56995         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
56996         Add uinttostr.
56997         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
56998
56999 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57000
57001         * lib/canonicalize.c (ELOOP): Define if not already defined.
57002         Problem reported by Bruno Haible in
57003         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
57004
57005 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57006
57007         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
57008         Problem reported by Perry Smith and Ville Laurikari.
57009
57010         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
57011         uses.
57012
57013 2006-10-19  Bruno Haible  <bruno@clisp.org>
57014
57015         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
57016         for mingw.
57017
57018 2006-10-19  Bruno Haible  <bruno@clisp.org>
57019
57020         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
57021         Needed for mingw.
57022
57023 2006-10-19  Bruno Haible  <bruno@clisp.org>
57024
57025         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
57026
57027 2006-10-19  Bruno Haible  <bruno@clisp.org>
57028
57029         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
57030         it.
57031
57032 2006-10-19  Bruno Haible  <bruno@clisp.org>
57033
57034         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
57035         invocation.
57036
57037 2006-10-19  Bruno Haible  <bruno@clisp.org>
57038
57039         * gnulib-tool (func_create_testdir): Don't include ftruncate and
57040         mountlist by default.
57041
57042 2006-10-16  Bruno Haible  <bruno@clisp.org>
57043
57044         * lib/c-strstr.c: Include c-strstr.h.
57045
57046 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57047
57048         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
57049         in a slash.
57050
57051 2006-10-18  Bruno Haible  <bruno@clisp.org>
57052
57053         * lib/lock.h [C++]: Wrap definitions in extern "C".
57054
57055 2006-10-18  Bruno Haible  <bruno@clisp.org>
57056
57057         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
57058         gl_LIBOBJS list.
57059
57060 2006-10-18  Bruno Haible  <bruno@clisp.org>
57061
57062         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
57063
57064 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
57065
57066         * lib/xstrtol.h: Include gettext.h.
57067         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
57068         Problem reported by Eric Blake.
57069         * modules/xstrtol (Depends-on): Add gettext-h.
57070
57071 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
57072
57073         * lib/strftime.c (advance): New macro.
57074         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
57075         incomplete type, so you can't add 0 to it.  Problem and patch
57076         reported by Eelco Dolstra for dietlibc.
57077
57078 2006-10-18  Jim Meyering  <jim@meyering.net>
57079
57080         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
57081         type for a local, and rename it: s/up/user_proc/.
57082
57083 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57084
57085         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
57086         READ_UTMP_USER_PROCESS.
57087         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
57088
57089 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57090
57091         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
57092         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
57093
57094 2006-10-17  Eric Blake  <ebb9@byu.net>
57095
57096         * lib/sigprocmask.c (sigprocmask): Fix typo.
57097
57098         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
57099
57100         * modules/clean-temp (Makefile.am): Don't add to make output...
57101         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
57102         config.h.
57103
57104 2006-10-17  Bruno Haible  <bruno@clisp.org>
57105
57106         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
57107         differently if DEFAULT_TEXT_DOMAIN is set.
57108
57109 2006-10-16  Bruno Haible  <bruno@clisp.org>
57110
57111         * lib/clean-temp.c: Include fwriteerror.h.
57112
57113 2006-10-16  Bruno Haible  <bruno@clisp.org>
57114
57115         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
57116
57117 2006-10-16  Bruno Haible  <bruno@clisp.org>
57118
57119         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
57120         * lib/sigprocmask.h: Include <sys/types.h>.
57121         (sigset_t): Use the system's definition if present.
57122
57123 2006-10-17  Eric Blake  <ebb9@byu.net>
57124
57125         * lib/xvasprintf.c (includes): Assume config.h.
57126         * lib/xasprintf.c (includes): Likewise.
57127
57128 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57129
57130         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
57131         at least as wide as intmax_t.
57132
57133 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
57134
57135         (Imported from Automake.)
57136         * build-aux/gnupload: Update to version 1.1 of directive file.
57137
57138 2006-10-16  Eric Blake  <ebb9@byu.net>
57139
57140         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
57141         match Automake 1.10a.
57142
57143 2006-10-14  Bruno Haible  <bruno@clisp.org>
57144
57145         * modules/sigprocmask: New file.
57146         * lib/sigprocmask.h: New file.
57147         * lib/sigprocmask.c: New file.
57148         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
57149         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
57150         request sigprocmask.o.
57151         (gl_PREREQ_SIGPROCMASK): New macro.
57152         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
57153         (Depends-on): Add sigprocmask.
57154         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
57155         gt_SIGNALBLOCKING. Test for 'raise' only once.
57156         * lib/fatal-signal.c: Include sigprocmask.h.
57157         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
57158         unblock_fatal_signals): Define always.
57159         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57160         sigprocmask.
57161
57162 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57163
57164         Sync from Automake.
57165         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
57166         which incorrectly sets the mode of an existing destination
57167         directory.  In some cases the unpatched install-sh could do the
57168         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
57169         system.  We hope this is rare in practice, but it's clearly worth
57170         fixing.  Problem reported by Alex Unleashed in
57171         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
57172         Also, don't bother to check for -m bugs unless we're using -m;
57173         suggested by Stepan Kasal.
57174
57175 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57176
57177         Sync from Automake.
57178         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
57179         `-c' flag, so they appear at the same position as in %FASTDEP%
57180         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
57181         which ignores unknown options only after the first non-option.
57182         Bug report against M4 by Nelson H. F. Beebe.
57183
57184 2006-10-13  Jim Meyering  <jim@meyering.net>
57185
57186         Fix a bug in yesterday's change.
57187         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
57188         p->fts_statp->st_dev would be used uninitialized.
57189         Ensures that we always call fts_stat on the very first entry.
57190         Miklos Szeredi reported that find -xdev stopped working.
57191
57192 2006-10-12  Bruno Haible  <bruno@clisp.org>
57193
57194         * gnulib-tool (func_get_automake_snippet): Append an automatically
57195         computed EXTRA_DIST augmentation.
57196         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
57197         * modules/alloca-opt (Makefile.am): Likewise.
57198         * modules/allocsa (Makefile.am): Likewise.
57199         * modules/arcfour (Makefile.am): Likewise.
57200         * modules/arctwo (Makefile.am): Likewise.
57201         * modules/argmatch (Makefile.am): Likewise.
57202         * modules/argz (Makefile.am): Likewise.
57203         * modules/atexit (Makefile.am): Likewise.
57204         * modules/backupfile (Makefile.am): Likewise.
57205         * modules/byteswap (Makefile.am): Likewise.
57206         * modules/c-strtod (Makefile.am): Likewise.
57207         * modules/c-strtold (Makefile.am): Likewise.
57208         * modules/calloc (Makefile.am): Likewise.
57209         * modules/canon-host (Makefile.am): Likewise.
57210         * modules/canonicalize (Makefile.am): Likewise.
57211         * modules/chdir-long (Makefile.am): Likewise.
57212         * modules/chdir-safer (Makefile.am): Likewise.
57213         * modules/check-version (Makefile.am): Likewise.
57214         * modules/chown (Makefile.am): Likewise.
57215         * modules/cloexec (Makefile.am): Likewise.
57216         * modules/close-stream (Makefile.am): Likewise.
57217         * modules/closeout (Makefile.am): Likewise.
57218         * modules/crc (Makefile.am): Likewise.
57219         * modules/csharpexec (Makefile.am): Likewise.
57220         * modules/cycle-check (Makefile.am): Likewise.
57221         * modules/des (Makefile.am): Likewise.
57222         * modules/dev-ino (Makefile.am): Likewise.
57223         * modules/dirfd (Makefile.am): Likewise.
57224         * modules/dirname (Makefile.am): Likewise.
57225         * modules/dup2 (Makefile.am): Likewise.
57226         * modules/eealloc (Makefile.am): Likewise.
57227         * modules/error (Makefile.am): Likewise.
57228         * modules/euidaccess (Makefile.am): Likewise.
57229         * modules/exclude (Makefile.am): Likewise.
57230         * modules/exitfail (Makefile.am): Likewise.
57231         * modules/fcntl-safer (Makefile.am): Likewise.
57232         * modules/fcntl (Makefile.am): Likewise.
57233         * modules/file-type (Makefile.am): Likewise.
57234         * modules/fileblocks (Makefile.am): Likewise.
57235         * modules/filemode (Makefile.am): Likewise.
57236         * modules/filenamecat (Makefile.am): Likewise.
57237         * modules/fnmatch (Makefile.am): Likewise.
57238         * modules/fopen-safer (Makefile.am): Likewise.
57239         * modules/fpending (Makefile.am): Likewise.
57240         * modules/fprintftime (Makefile.am): Likewise.
57241         * modules/free (Makefile.am): Likewise.
57242         * modules/fsusage (Makefile.am): Likewise.
57243         * modules/ftruncate (Makefile.am): Likewise.
57244         * modules/fts (Makefile.am): Likewise.
57245         * modules/gc-arcfour (Makefile.am): Likewise.
57246         * modules/gc-des (Makefile.am): Likewise.
57247         * modules/gc-hmac-md5 (Makefile.am): Likewise.
57248         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
57249         * modules/gc-md4 (Makefile.am): Likewise.
57250         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57251         * modules/gc-sha1 (Makefile.am): Likewise.
57252         * modules/gc (Makefile.am): Likewise.
57253         * modules/getaddrinfo (Makefile.am): Likewise.
57254         * modules/getcwd (Makefile.am): Likewise.
57255         * modules/getdelim (Makefile.am): Likewise.
57256         * modules/getdomainname (Makefile.am): Likewise.
57257         * modules/getgroups (Makefile.am): Likewise.
57258         * modules/gethostname (Makefile.am): Likewise.
57259         * modules/gethrxtime (Makefile.am): Likewise.
57260         * modules/getline (Makefile.am): Likewise.
57261         * modules/getloadavg (Makefile.am): Likewise.
57262         * modules/getlogin_r (Makefile.am): Likewise.
57263         * modules/getndelim2 (Makefile.am): Likewise.
57264         * modules/getopt (Makefile.am): Likewise.
57265         * modules/getpagesize (Makefile.am): Likewise.
57266         * modules/getpass-gnu (Makefile.am): Likewise.
57267         * modules/getpass (Makefile.am): Likewise.
57268         * modules/getsubopt (Makefile.am): Likewise.
57269         * modules/gettime (Makefile.am): Likewise.
57270         * modules/gettimeofday (Makefile.am): Likewise.
57271         * modules/getugroups (Makefile.am): Likewise.
57272         * modules/getusershell (Makefile.am): Likewise.
57273         * modules/glob (Makefile.am): Likewise.
57274         * modules/group-member (Makefile.am): Likewise.
57275         * modules/hard-locale (Makefile.am): Likewise.
57276         * modules/hash (Makefile.am): Likewise.
57277         * modules/hmac-md5 (Makefile.am): Likewise.
57278         * modules/hmac-sha1 (Makefile.am): Likewise.
57279         * modules/human (Makefile.am): Likewise.
57280         * modules/idcache (Makefile.am): Likewise.
57281         * modules/imaxabs (Makefile.am): Likewise.
57282         * modules/imaxdiv (Makefile.am): Likewise.
57283         * modules/inet_ntop (Makefile.am): Likewise.
57284         * modules/inet_pton (Makefile.am): Likewise.
57285         * modules/intprops (Makefile.am): Likewise.
57286         * modules/inttostr (Makefile.am): Likewise.
57287         * modules/inttypes (Makefile.am): Likewise.
57288         * modules/isapipe (Makefile.am): Likewise.
57289         * modules/javaversion (Makefile.am): Likewise.
57290         * modules/lchmod (Makefile.am): Likewise.
57291         * modules/lchown (Makefile.am): Likewise.
57292         * modules/localcharset (Makefile.am): Likewise.
57293         * modules/long-options (Makefile.am): Likewise.
57294         * modules/lstat (Makefile.am): Likewise.
57295         * modules/malloc (Makefile.am): Likewise.
57296         * modules/mathl (Makefile.am): Likewise.
57297         * modules/mbchar (Makefile.am): Likewise.
57298         * modules/md2 (Makefile.am): Likewise.
57299         * modules/md4 (Makefile.am): Likewise.
57300         * modules/md5 (Makefile.am): Likewise.
57301         * modules/memcasecmp (Makefile.am): Likewise.
57302         * modules/memchr (Makefile.am): Likewise.
57303         * modules/memcmp (Makefile.am): Likewise.
57304         * modules/memcoll (Makefile.am): Likewise.
57305         * modules/memcpy (Makefile.am): Likewise.
57306         * modules/memmem (Makefile.am): Likewise.
57307         * modules/memmove (Makefile.am): Likewise.
57308         * modules/mempcpy (Makefile.am): Likewise.
57309         * modules/memrchr (Makefile.am): Likewise.
57310         * modules/memset (Makefile.am): Likewise.
57311         * modules/memxor (Makefile.am): Likewise.
57312         * modules/mkancesdirs (Makefile.am): Likewise.
57313         * modules/mkdir-p (Makefile.am): Likewise.
57314         * modules/mkdir (Makefile.am): Likewise.
57315         * modules/mkdtemp (Makefile.am): Likewise.
57316         * modules/mkstemp (Makefile.am): Likewise.
57317         * modules/mktime (Makefile.am): Likewise.
57318         * modules/modechange (Makefile.am): Likewise.
57319         * modules/mountlist (Makefile.am): Likewise.
57320         * modules/nanosleep (Makefile.am): Likewise.
57321         * modules/obstack (Makefile.am): Likewise.
57322         * modules/openat (Makefile.am): Likewise.
57323         * modules/pagealign_alloc (Makefile.am): Likewise.
57324         * modules/pathmax (Makefile.am): Likewise.
57325         * modules/physmem (Makefile.am): Likewise.
57326         * modules/poll (Makefile.am): Likewise.
57327         * modules/posixtm (Makefile.am): Likewise.
57328         * modules/posixver (Makefile.am): Likewise.
57329         * modules/putenv (Makefile.am): Likewise.
57330         * modules/quote (Makefile.am): Likewise.
57331         * modules/quotearg (Makefile.am): Likewise.
57332         * modules/raise (Makefile.am): Likewise.
57333         * modules/read-file (Makefile.am): Likewise.
57334         * modules/readline (Makefile.am): Likewise.
57335         * modules/readlink (Makefile.am): Likewise.
57336         * modules/readtokens (Makefile.am): Likewise.
57337         * modules/readutmp (Makefile.am): Likewise.
57338         * modules/realloc (Makefile.am): Likewise.
57339         * modules/regex (Makefile.am): Likewise.
57340         * modules/rename-dest-slash (Makefile.am): Likewise.
57341         * modules/rename (Makefile.am): Likewise.
57342         * modules/rijndael (Makefile.am): Likewise.
57343         * modules/rmdir (Makefile.am): Likewise.
57344         * modules/rpmatch (Makefile.am): Likewise.
57345         * modules/safe-read (Makefile.am): Likewise.
57346         * modules/safe-write (Makefile.am): Likewise.
57347         * modules/same-inode (Makefile.am): Likewise.
57348         * modules/same (Makefile.am): Likewise.
57349         * modules/save-cwd (Makefile.am): Likewise.
57350         * modules/savedir (Makefile.am): Likewise.
57351         * modules/setenv (Makefile.am): Likewise.
57352         * modules/settime (Makefile.am): Likewise.
57353         * modules/sha1 (Makefile.am): Likewise.
57354         * modules/sig2str (Makefile.am): Likewise.
57355         * modules/snprintf (Makefile.am): Likewise.
57356         * modules/stat-macros (Makefile.am): Likewise.
57357         * modules/stat-time (Makefile.am): Likewise.
57358         * modules/stdbool (Makefile.am): Likewise.
57359         * modules/stdint (Makefile.am): Likewise.
57360         * modules/stdlib-safer (Makefile.am): Likewise.
57361         * modules/stpcpy (Makefile.am): Likewise.
57362         * modules/stpncpy (Makefile.am): Likewise.
57363         * modules/strcase (Makefile.am): Likewise.
57364         * modules/strcasestr (Makefile.am): Likewise.
57365         * modules/strchrnul (Makefile.am): Likewise.
57366         * modules/strcspn (Makefile.am): Likewise.
57367         * modules/strdup (Makefile.am): Likewise.
57368         * modules/strerror (Makefile.am): Likewise.
57369         * modules/strftime (Makefile.am): Likewise.
57370         * modules/strndup (Makefile.am): Likewise.
57371         * modules/strnlen (Makefile.am): Likewise.
57372         * modules/strpbrk (Makefile.am): Likewise.
57373         * modules/strsep (Makefile.am): Likewise.
57374         * modules/strstr (Makefile.am): Likewise.
57375         * modules/strtod (Makefile.am): Likewise.
57376         * modules/strtoimax (Makefile.am): Likewise.
57377         * modules/strtok_r (Makefile.am): Likewise.
57378         * modules/strtol (Makefile.am): Likewise.
57379         * modules/strtoll (Makefile.am): Likewise.
57380         * modules/strtoul (Makefile.am): Likewise.
57381         * modules/strtoull (Makefile.am): Likewise.
57382         * modules/strtoumax (Makefile.am): Likewise.
57383         * modules/strverscmp (Makefile.am): Likewise.
57384         * modules/sys_socket (Makefile.am): Likewise.
57385         * modules/sys_stat (Makefile.am): Likewise.
57386         * modules/sysexits (Makefile.am): Likewise.
57387         * modules/time_r (Makefile.am): Likewise.
57388         * modules/timegm (Makefile.am): Likewise.
57389         * modules/timespec (Makefile.am): Likewise.
57390         * modules/tmpfile-safer (Makefile.am): Likewise.
57391         * modules/trim (Makefile.am): Likewise.
57392         * modules/unistd-safer (Makefile.am): Likewise.
57393         * modules/unlinkdir (Makefile.am): Likewise.
57394         * modules/unlocked-io (Makefile.am): Likewise.
57395         * modules/userspec (Makefile.am): Likewise.
57396         * modules/utime (Makefile.am): Likewise.
57397         * modules/utimecmp (Makefile.am): Likewise.
57398         * modules/utimens (Makefile.am): Likewise.
57399         * modules/vasnprintf (Makefile.am): Likewise.
57400         * modules/vasprintf (Makefile.am): Likewise.
57401         * modules/vsnprintf (Makefile.am): Likewise.
57402         * modules/xalloc (Makefile.am): Likewise.
57403         * modules/xgetcwd (Makefile.am): Likewise.
57404         * modules/xnanosleep (Makefile.am): Likewise.
57405         * modules/xreadlink (Makefile.am): Likewise.
57406         * modules/xstrtod (Makefile.am): Likewise.
57407         * modules/xstrtol (Makefile.am): Likewise.
57408         * modules/xstrtold (Makefile.am): Likewise.
57409         * modules/yesno (Makefile.am): Likewise.
57410         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
57411
57412 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57413
57414         * modules/error (Makefile.am): Distribute files through
57415         EXTRA_DIST, not lib_SOURCES.
57416
57417 2006-10-12  Eric Blake  <ebb9@byu.net>
57418
57419         * modules/error (Makefile.am): Distribute files in /lib.
57420         * modules/obstack (Makefile.am): Likewise.
57421
57422 2006-10-12  Bruno Haible  <bruno@clisp.org>
57423
57424         * modules/acl (Makefile.am): Distribute all files in lib/ through
57425         EXTRA_DIST.
57426         * modules/arcfour (Makefile.am): Likewise.
57427         * modules/arctwo (Makefile.am): Likewise.
57428         * modules/argmatch (Makefile.am): Likewise.
57429         * modules/argz (Makefile.am): Likewise.
57430         * modules/atexit (Makefile.am): Likewise.
57431         * modules/backupfile (Makefile.am): Likewise.
57432         * modules/c-strtod (Makefile.am): Likewise.
57433         * modules/c-strtold (Makefile.am): Likewise.
57434         * modules/calloc (Makefile.am): Likewise.
57435         * modules/canon-host (Makefile.am): Likewise.
57436         * modules/canonicalize (Makefile.am): Likewise.
57437         * modules/chdir-long (Makefile.am): Likewise.
57438         * modules/chdir-safer (Makefile.am): Likewise.
57439         * modules/check-version (Makefile.am): Likewise.
57440         * modules/chown (Makefile.am): Likewise.
57441         * modules/cloexec (Makefile.am): Likewise.
57442         * modules/close-stream (Makefile.am): Likewise.
57443         * modules/closeout (Makefile.am): Likewise.
57444         * modules/crc (Makefile.am): Likewise.
57445         * modules/cycle-check (Makefile.am): Likewise.
57446         * modules/des (Makefile.am): Likewise.
57447         * modules/dirfd (Makefile.am): Likewise.
57448         * modules/dirname (Makefile.am): Likewise.
57449         * modules/dup2 (Makefile.am): Likewise.
57450         * modules/euidaccess (Makefile.am): Likewise.
57451         * modules/exclude (Makefile.am): Likewise.
57452         * modules/exitfail (Makefile.am): Likewise.
57453         * modules/fcntl-safer (Makefile.am): Likewise.
57454         * modules/file-type (Makefile.am): Likewise.
57455         * modules/fileblocks (Makefile.am): Likewise.
57456         * modules/filemode (Makefile.am): Likewise.
57457         * modules/filenamecat (Makefile.am): Likewise.
57458         * modules/fnmatch (Makefile.am): Likewise.
57459         * modules/fopen-safer (Makefile.am): Likewise.
57460         * modules/fpending (Makefile.am): Likewise.
57461         * modules/fprintftime (Makefile.am): Likewise.
57462         * modules/free (Makefile.am): Likewise.
57463         * modules/fsusage (Makefile.am): Likewise.
57464         * modules/ftruncate (Makefile.am): Likewise.
57465         * modules/fts (Makefile.am): Likewise.
57466         * modules/gc (Makefile.am): Likewise.
57467         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57468         * modules/getaddrinfo (Makefile.am): Likewise.
57469         * modules/getcwd (Makefile.am): Likewise.
57470         * modules/getdelim (Makefile.am): Likewise.
57471         * modules/getdomainname (Makefile.am): Likewise.
57472         * modules/getgroups (Makefile.am): Likewise.
57473         * modules/gethostname (Makefile.am): Likewise.
57474         * modules/gethrxtime (Makefile.am): Likewise.
57475         * modules/getline (Makefile.am): Likewise.
57476         * modules/getloadavg (Makefile.am): Likewise.
57477         * modules/getlogin_r (Makefile.am): Likewise.
57478         * modules/getopt (Makefile.am): Likewise.
57479         * modules/getpass (Makefile.am): Likewise.
57480         * modules/getpass-gnu (Makefile.am): Likewise.
57481         * modules/getsubopt (Makefile.am): Likewise.
57482         * modules/gettime (Makefile.am): Likewise.
57483         * modules/gettimeofday (Makefile.am): Likewise.
57484         * modules/getugroups (Makefile.am): Likewise.
57485         * modules/getusershell (Makefile.am): Likewise.
57486         * modules/glob (Makefile.am): Likewise.
57487         * modules/group-member (Makefile.am): Likewise.
57488         * modules/hard-locale (Makefile.am): Likewise.
57489         * modules/hash (Makefile.am): Likewise.
57490         * modules/hmac-md5 (Makefile.am): Likewise.
57491         * modules/hmac-sha1 (Makefile.am): Likewise.
57492         * modules/human (Makefile.am): Likewise.
57493         * modules/idcache (Makefile.am): Likewise.
57494         * modules/imaxabs (Makefile.am): Likewise.
57495         * modules/imaxdiv (Makefile.am): Likewise.
57496         * modules/inet_ntop (Makefile.am): Likewise.
57497         * modules/inet_pton (Makefile.am): Likewise.
57498         * modules/inttostr (Makefile.am): Likewise.
57499         * modules/isapipe (Makefile.am): Likewise.
57500         * modules/lchown (Makefile.am): Likewise.
57501         * modules/long-options (Makefile.am): Likewise.
57502         * modules/lstat (Makefile.am): Likewise.
57503         * modules/malloc (Makefile.am): Likewise.
57504         * modules/mathl (Makefile.am): Likewise.
57505         * modules/mbchar (Makefile.am): Likewise.
57506         * modules/md2 (Makefile.am): Likewise.
57507         * modules/md4 (Makefile.am): Likewise.
57508         * modules/md5 (Makefile.am): Likewise.
57509         * modules/memcasecmp (Makefile.am): Likewise.
57510         * modules/memchr (Makefile.am): Likewise.
57511         * modules/memcmp (Makefile.am): Likewise.
57512         * modules/memcoll (Makefile.am): Likewise.
57513         * modules/memcpy (Makefile.am): Likewise.
57514         * modules/memmem (Makefile.am): Likewise.
57515         * modules/memmove (Makefile.am): Likewise.
57516         * modules/mempcpy (Makefile.am): Likewise.
57517         * modules/memrchr (Makefile.am): Likewise.
57518         * modules/memset (Makefile.am): Likewise.
57519         * modules/memxor (Makefile.am): Likewise.
57520         * modules/mkancesdirs (Makefile.am): Likewise.
57521         * modules/mkdir (Makefile.am): Likewise.
57522         * modules/mkdir-p (Makefile.am): Likewise.
57523         * modules/mkdtemp (Makefile.am): Likewise.
57524         * modules/mkstemp (Makefile.am): Likewise.
57525         * modules/mktime (Makefile.am): Likewise.
57526         * modules/modechange (Makefile.am): Likewise.
57527         * modules/mountlist (Makefile.am): Likewise.
57528         * modules/nanosleep (Makefile.am): Likewise.
57529         * modules/openat (Makefile.am): Likewise.
57530         * modules/pagealign_alloc (Makefile.am): Likewise.
57531         * modules/physmem (Makefile.am): Likewise.
57532         * modules/poll (Makefile.am): Likewise.
57533         * modules/posixtm (Makefile.am): Likewise.
57534         * modules/posixver (Makefile.am): Likewise.
57535         * modules/putenv (Makefile.am): Likewise.
57536         * modules/quote (Makefile.am): Likewise.
57537         * modules/quotearg (Makefile.am): Likewise.
57538         * modules/raise (Makefile.am): Likewise.
57539         * modules/read-file (Makefile.am): Likewise.
57540         * modules/readline (Makefile.am): Likewise.
57541         * modules/readlink (Makefile.am): Likewise.
57542         * modules/readtokens (Makefile.am): Likewise.
57543         * modules/readutmp (Makefile.am): Likewise.
57544         * modules/realloc (Makefile.am): Likewise.
57545         * modules/regex (Makefile.am): Likewise.
57546         * modules/rename (Makefile.am): Likewise.
57547         * modules/rename-dest-slash (Makefile.am): Likewise.
57548         * modules/rijndael (Makefile.am): Likewise.
57549         * modules/rmdir (Makefile.am): Likewise.
57550         * modules/rpmatch (Makefile.am): Likewise.
57551         * modules/safe-read (Makefile.am): Likewise.
57552         * modules/safe-write (Makefile.am): Likewise.
57553         * modules/same (Makefile.am): Likewise.
57554         * modules/save-cwd (Makefile.am): Likewise.
57555         * modules/savedir (Makefile.am): Likewise.
57556         * modules/setenv (Makefile.am): Likewise.
57557         * modules/settime (Makefile.am): Likewise.
57558         * modules/sha1 (Makefile.am): Likewise.
57559         * modules/sig2str (Makefile.am): Likewise.
57560         * modules/snprintf (Makefile.am): Likewise.
57561         * modules/stdlib-safer (Makefile.am): Likewise.
57562         * modules/stpcpy (Makefile.am): Likewise.
57563         * modules/stpncpy (Makefile.am): Likewise.
57564         * modules/strcase (Makefile.am): Likewise.
57565         * modules/strcasestr (Makefile.am): Likewise.
57566         * modules/strchrnul (Makefile.am): Likewise.
57567         * modules/strcspn (Makefile.am): Likewise.
57568         * modules/strdup (Makefile.am): Likewise.
57569         * modules/strerror (Makefile.am): Likewise.
57570         * modules/strftime (Makefile.am): Likewise.
57571         * modules/strndup (Makefile.am): Likewise.
57572         * modules/strnlen (Makefile.am): Likewise.
57573         * modules/strpbrk (Makefile.am): Likewise.
57574         * modules/strsep (Makefile.am): Likewise.
57575         * modules/strstr (Makefile.am): Likewise.
57576         * modules/strtod (Makefile.am): Likewise.
57577         * modules/strtoimax (Makefile.am): Likewise.
57578         * modules/strtok_r (Makefile.am): Likewise.
57579         * modules/strtol (Makefile.am): Likewise.
57580         * modules/strtoll (Makefile.am): Likewise.
57581         * modules/strtoul (Makefile.am): Likewise.
57582         * modules/strtoull (Makefile.am): Likewise.
57583         * modules/strtoumax (Makefile.am): Likewise.
57584         * modules/strverscmp (Makefile.am): Likewise.
57585         * modules/time_r (Makefile.am): Likewise.
57586         * modules/timegm (Makefile.am): Likewise.
57587         * modules/tmpfile-safer (Makefile.am): Likewise.
57588         * modules/unistd-safer (Makefile.am): Likewise.
57589         * modules/unlinkdir (Makefile.am): Likewise.
57590         * modules/userspec (Makefile.am): Likewise.
57591         * modules/utime (Makefile.am): Likewise.
57592         * modules/utimecmp (Makefile.am): Likewise.
57593         * modules/utimens (Makefile.am): Likewise.
57594         * modules/vasnprintf (Makefile.am): Likewise.
57595         * modules/vasprintf (Makefile.am): Likewise.
57596         * modules/vsnprintf (Makefile.am): Likewise.
57597         * modules/xalloc (Makefile.am): Likewise.
57598         * modules/xgetcwd (Makefile.am): Likewise.
57599         * modules/xnanosleep (Makefile.am): Likewise.
57600         * modules/xreadlink (Makefile.am): Likewise.
57601         * modules/xstrtod (Makefile.am): Likewise.
57602         * modules/xstrtol (Makefile.am): Likewise.
57603         * modules/xstrtold (Makefile.am): Likewise.
57604         * modules/yesno (Makefile.am): Likewise.
57605
57606 2006-10-12  Jim Meyering  <jim@meyering.net>
57607
57608         * m4/getloadavg.m4: Revert the change below.
57609
57610         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
57611         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
57612         fail with a symlink, which is what coreutils' ./bootstrap now
57613         creates by default.
57614
57615 2006-10-12  Bruno Haible  <bruno@clisp.org>
57616
57617         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
57618         mingw.
57619         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
57620         MSVC and mingw explicitly.
57621
57622 2006-10-11  Simon Josefsson  <jas@extundo.com>
57623             Bruno Haible  <bruno@clisp.org>
57624
57625         Add support for multiple gnulib-tool invocations in the scope of a
57626         single configure.ac file.
57627         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
57628         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
57629         with the same contents as the _LIBADD variable.
57630         (func_emit_initmacro_start, func_emit_initmacro_end,
57631         func_emit_initmacro_done): New functions.
57632         (func_import, func_create_testdir): Invoke them. Allow the identifiers
57633         gl_LIBOBJS and gl_LTLIBOBJS.
57634
57635 2006-10-11  Bruno Haible  <bruno@clisp.org>
57636
57637         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
57638         (func_create_testdir): Don't create po/Makefile.am, don't invoke
57639         autoreconf. Instead, invoke autopoint explicitly but move back the
57640         *.m4 files from gnulib.
57641
57642 2006-10-11  Bruno Haible  <bruno@clisp.org>
57643
57644         * gnulib-tool (func_usage): Make module names after --create-testdir
57645         optional.
57646         (func_create_testdir): If no module was specified, use nearly all
57647         modules.
57648
57649 2006-10-12  Jim Meyering  <jim@meyering.net>
57650
57651         Big performance improvement for fts-based tools that use FTS_NOSTAT.
57652         Avoid spurious inode-mismatch problems on non-POSIX file systems.
57653         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
57654         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
57655         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
57656         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
57657         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
57658         (fts_set_stat_required): New function.
57659         (fts_open): Defer the calls to fts_stat, if possible or requested.
57660         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
57661         into fts_stat itself.
57662         (fts_read): Perform any required (deferred) fts_stat call.
57663         (fts_build): Likewise, for the directory we're about to open and read.
57664         In the readdir loop, carefully decide whether each entry will require
57665         an eventual call to fts_stat, using dirent.d_type info if available.
57666         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
57667         a command line argument into this function.  Update all callers.
57668         Map a return value of FTS_DOT to FTS_D for a command line argument.
57669         * modules/fts (Depends-on): Add d-type.  Alphabetize.
57670         Thanks to Miklos Szeredi for his tenacity and for the initial
57671         bug report about "find" failing on a FUSE-based file system.
57672
57673         * lib/fts.c (fts_open): Use consistent indentation.
57674
57675 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57676
57677         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
57678         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
57679         reported by Jim Meyering.  All uses of cache variables renamed
57680         to match Autoconf's.
57681         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
57682         the other one.
57683
57684         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
57685         Fix misspelling in diagnostic.
57686
57687 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57688
57689         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
57690         defined.  Problem reported by Matthew Woehlke.
57691
57692         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
57693         Add support for Tandem NonStop R series.
57694         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
57695         Use new macro.
57696
57697         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
57698         (has_trailing_slash): Omit size arg; all callers changed.
57699         Omit 'inline', since it doesn't help performance and we'd
57700         need to configure it.
57701         Don't count //, ///, etc. as having a trailing slash.
57702         As a side effect, this removes a C99ism reported by Matthew Woehlke.
57703         (rpl_rename_dest_slash): On failure, use rename's errno rather
57704         than (in some cases) an incorrect or junk errno.
57705         Simplify code by removing need to compute length; this does
57706         cause it to make two passes instead of one over the file name,
57707         but it's worth it.
57708
57709         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
57710         change, since Autoconf's version may no longer be appropriate now
57711         that we are using CVS Autoconf's version.  Add support for Tandem.
57712
57713 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57714             Bruno Haible  <bruno@clisp.org>
57715
57716         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
57717         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
57718         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
57719         gl_AC_TYPE_LONG_LONG.
57720
57721         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
57722         instead of HAVE_LONG_LONG.
57723         * lib/printf-args.c (printf_fetchargs): Likewise.
57724         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57725         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57726         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
57727         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
57728         gl_AC_TYPE_LONG_LONG.
57729
57730 2006-10-11  Bruno Haible  <bruno@clisp.org>
57731
57732         * m4/longlong.m4: Add comments.
57733         * m4/ulonglong.m4: Likewise.
57734
57735 2006-10-10  Bruno Haible  <bruno@clisp.org>
57736
57737         Make it possible to #define stpcpy, strdup to aliases.
57738         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
57739         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
57740
57741 2006-10-10  Bruno Haible  <bruno@clisp.org>
57742
57743         Make it possible to #define gcd to an alias.
57744         * lib/gcd.c: Include config.h.
57745
57746 2006-10-10  Bruno Haible  <bruno@clisp.org>
57747
57748         Make it possible to #define c_isascii to an alias.
57749         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
57750         defined. Undefine the macros before defining them, to avoid gcc
57751         warnings.
57752         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
57753         define NO_C_CTYPE_MACROS early.
57754
57755 2006-10-10  Bruno Haible  <bruno@clisp.org>
57756
57757         Make it possible to #define set_program_name to an alias.
57758         * lib/progname.c: Don't undefine set_program_name; instead, undefine
57759         ENABLE_RELOCATABLE early.
57760
57761 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57762
57763         Port to Tandem NSK OSS, which has 64-bit signed int but at most
57764         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
57765         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
57766         More generally, don't assume that 64-bit signed int is available
57767         if unsigned int is, and vice versa.
57768         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
57769         unsigned symbols, not on their signed counterparts.
57770         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
57771         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
57772         (UINT64_C, UINTMAX_C):
57773         Likewise.
57774         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
57775         unsigned counterparts.
57776         (Have_long_long, Unsigned): New macros.
57777         (Int): Renamed from INT.
57778         (strtoimax): Use the new macros.
57779         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
57780         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
57781         * modules/inttypes (inttypes.h): Substitute
57782         HAVE_UNSIGNED_LONG_LONG_INT.
57783         * modules/stdint (stdint.h): Likewise.
57784         (Files): Add m4/ulonglong.m4.
57785
57786 2006-10-10  Bruno Haible  <bruno@clisp.org>
57787
57788         Fix a gcc -Wshadow warning.
57789         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
57790         to 'bucket'.
57791         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
57792         gl_linked_indexof_from_to): Likewise.
57793         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
57794         Likewise.
57795         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
57796         Likewise.
57797         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
57798         Reported by Eric Blake.
57799
57800 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
57801
57802         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
57803         for NetBSD.  Problem reported by Bruno Haible.
57804
57805 2006-10-09  Jim Meyering  <jim@meyering.net>
57806
57807         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
57808         Patch from Bruno Haible.
57809
57810 2006-10-09  Jim Meyering  <jim@meyering.net>
57811
57812         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
57813         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
57814         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
57815
57816 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57817
57818         Don't include <config.h> twice; this doesn't work in some cases,
57819         e.g., when config.h has "#define intmax_t long long int" and
57820         we include <config.h>, <inttypes.h>, <config.h> in that order.
57821         Problem reported by Matthew Woehlke in:
57822         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
57823         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
57824         * lib/fts-cycle.c: Don't include config.h.
57825         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
57826         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
57827         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
57828         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
57829         inttypes.h.
57830         * lib/xstrtoumax.c: Likewise.
57831         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
57832         __strtol and the like, so that this module is more like its siblings.
57833         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
57834         Remove; no longer needed now that we assume gnulib inttypes.h.
57835
57836 2006-10-08  Bruno Haible  <bruno@clisp.org>
57837
57838         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
57839         option.
57840
57841 2006-10-07  Jim Meyering  <jim@meyering.net>
57842
57843         * modules/inttypes (inttypes.h): Revert what seems to have been
57844         an inadvertent part of today's change: use "|", not "/" in the
57845         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
57846
57847 2006-10-07  Bruno Haible  <bruno@clisp.org>
57848
57849         * modules/sublist: New file.
57850
57851 2006-10-07  Bruno Haible  <bruno@clisp.org>
57852
57853         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
57854         * modules/argz (argz.h): Likewise.
57855         * modules/arpa_inet (arpa/inet.h): Likewise.
57856         * modules/byteswap (byteswap.h): Likewise.
57857         * modules/configmake (configmake.h): Likewise.
57858         * modules/fcntl (fcntl.h): Likewise.
57859         * modules/fnmatch (fnmatch.h): Likewise.
57860         * modules/getopt (getopt.h): Likewise.
57861         * modules/glob (glob.h): Likewise.
57862         * modules/inttypes (inttypes.h): Likewise.
57863         * modules/netinet_in (netinet/in.h): Likewise.
57864         * modules/poll (poll.h): Likewise.
57865         * modules/stdbool (stdbool.h): Likewise.
57866         * modules/stdint (stdint.h): Likewise.
57867         * modules/sys_select (sys/select.h): Likewise.
57868         * modules/sys_socket (sys/socket.h): Likewise.
57869         * modules/sys_stat (sys/stat.h): Likewise.
57870         * modules/sysexits (sysexits.h): Likewise.
57871         * modules/unistd (unistd.h): Likewise.
57872         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57873         Add a "DO NOT EDIT" comment to the generated file.
57874         (func_import): Likewise for gnulib-comp.m4.
57875
57876 2006-10-07  Bruno Haible  <bruno@clisp.org>
57877
57878         * lib/gl_sublist.h: New file.
57879         * lib/gl_sublist.c: New file.
57880
57881 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57882
57883         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
57884         name (relative to the original working directory) and the file
57885         name component (relative to the temporary working directory).  All
57886         callers changed.
57887         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
57888         * lib/mkdir-p.c (make_dir_parents): Likewise.
57889         * lib/mkdir-p.h (make_dir_parents): Likewise.
57890
57891 2006-10-06  Eric Blake  <ebb9@byu.net>
57892
57893         Define several macros for use by the clean-temp module.
57894         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
57895         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
57896         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
57897
57898         * lib/clean-temp.h (close_stream_temp): New declaration.
57899         * lib/clean-temp.c (includes): Pull in headers according to what
57900         other modules are in use.
57901         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
57902
57903 2006-10-06  Bruno Haible  <bruno@clisp.org>
57904
57905         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
57906         instead of fopen, fwriteerror.
57907
57908 2006-10-06  Bruno Haible  <bruno@clisp.org>
57909
57910         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
57911         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
57912         int.
57913         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
57914         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
57915         Return an error indicator.
57916         Suggested by Eric Blake.
57917
57918 2006-10-06  Bruno Haible  <bruno@clisp.org>
57919
57920         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
57921         Reported by Eric Blake.
57922
57923 2006-10-06  Bruno Haible  <bruno@clisp.org>
57924
57925         * modules/closeout (Description): Mention stderr too.
57926
57927 2006-10-06  Bruno Haible  <bruno@clisp.org>
57928         and Paul Eggert  <eggert@cs.ucla.edu>
57929
57930         * lib/closeout.c (close_stdout): Also close stderr.
57931         * lib/closeout.h: Update comment.
57932
57933 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57934
57935         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
57936         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
57937         * lib/dirchownmod.c: Include lchown.h.
57938         * lib/lchown.c: Don't include files that lchown.h now includes.
57939         Don't declare chown, since lchown.h now does that.
57940         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
57941         (lchown): Define to rpl_chown if lchown is declared but
57942         does not exist.  Declare using a prototype if lchown is not
57943         declared.  Add a copyright notice.
57944         * lib/mkstemp.h: Include <unistd.h>.
57945         * lib/openat.c: Include lchown.h.
57946
57947         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
57948         we now test for that separately.
57949         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
57950         rather than O_NOFOLLOW, when testing whether it's possible to
57951         avoid a race condition reliably.
57952         * lib/savewd.c (savewd_chdir): Likewise.
57953
57954         Remove macros that are no longer needed now that stdint.h is
57955         reliable.
57956         * lib/fsusage.c (UINTMAX_MAX): Remove.
57957         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
57958         * lib/utimecmp.c (SIZE_MAX): Remove.
57959
57960         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
57961
57962         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
57963         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
57964         O_NOATIME works.
57965
57966 2006-10-05  Bruno Haible  <bruno@clisp.org>
57967
57968         * lib/gl_list.h (gl_sortedlist_search_from_to,
57969         gl_sortedlist_indexof_from_to): New declarations.
57970         (gl_list_implementation): New fields sortedlist_search_from_to,
57971         sortedlist_indexof_from_to.
57972         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
57973         inline functions.
57974         * lib/gl_list.c (gl_sortedlist_search_from_to,
57975         gl_sortedlist_indexof_from_to): New functions.
57976         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
57977         function.
57978         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
57979         (gl_array_sortedlist_search_from_to): New function.
57980         (gl_array_list_implementation): Update.
57981         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
57982         function.
57983         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
57984         (gl_carray_sortedlist_search_from_to): New function.
57985         (gl_carray_list_implementation): Update.
57986         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
57987         gl_linked_sortedlist_indexof_from_to): New functions.
57988         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57989         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57990         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
57991         gl_tree_sortedlist_indexof_from_to): New functions.
57992         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57993         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57994         Update.
57995         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57996         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
57997         Update.
57998
57999 2006-10-05  Bruno Haible  <bruno@clisp.org>
58000
58001         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
58002         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
58003         (struct gl_list_implementation): Add fields search_from_to,
58004         indexof_from_to. Remove fields search, indexof.
58005         (gl_list_search): Use the search_from_to method.
58006         (gl_list_search_from, gl_list_search_from_to): New functions.
58007         (gl_list_indexof): Use the indexof_from_to method.
58008         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58009         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
58010         (gl_list_search_from, gl_list_search_from_to): New functions.
58011         (gl_list_indexof): Use the indexof_from_to method.
58012         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58013         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
58014         gl_array_indexof. Add start_index, end_index arguments.
58015         (gl_array_search_from_to): Renamed from gl_array_search. Add
58016         start_index, end_index arguments.
58017         (gl_array_remove, gl_array_list_implementation): Update.
58018         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
58019         gl_carray_indexof. Add start_index, end_index arguments.
58020         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
58021         start_index, end_index arguments.
58022         (gl_carray_remove, gl_carray_list_implementation): Update.
58023         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
58024         gl_linked_search. Add start_index, end_index arguments.
58025         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
58026         start_index, end_index arguments.
58027         (gl_linked_remove): Update.
58028         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58029         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58030         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
58031         field to 'size_t'.
58032         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
58033         gl_tree_search. Add start_index, end_index arguments.
58034         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58035         start_index, end_index arguments.
58036         (gl_tree_remove): Update.
58037         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58038         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58039         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
58040         function.
58041         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
58042         gl_tree_search. Add start_index, end_index arguments.
58043         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58044         start_index, end_index arguments.
58045         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58046         Update.
58047         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58048
58049 2006-10-05  Bruno Haible  <bruno@clisp.org>
58050
58051         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
58052
58053         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
58054         fwriteerror_temp): New declarations.
58055         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
58056         (descriptors): New variable.
58057         (cleanup): First, close the descriptors.
58058         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
58059         fclose_temp, fwriteerror_temp): New functions.
58060
58061 2006-10-04  Jim Meyering  <jim@meyering.net>
58062
58063         * lib/fts.c (fts_open): Tiny comment change.
58064
58065 2006-10-04  Bruno Haible  <bruno@clisp.org>
58066
58067         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
58068         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
58069         gl_LOCK_BODY.
58070         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
58071         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
58072         gl_LOCK_EARLY_BODY.
58073         (gl_LOCK): Require gl_LOCK_BODY.
58074
58075 2006-10-04  Bruno Haible  <bruno@clisp.org>
58076
58077         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
58078         (gl_oset_search_atleast): New declaration.
58079         (struct gl_oset_implementation): Add field 'search_atleast'.
58080         (gl_oset_search_atleast): New inline function.
58081         * lib/gl_oset.c (gl_oset_search_atleast): New function.
58082         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
58083         (gl_array_oset_implementation): Update.
58084         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
58085         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
58086         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
58087
58088 2006-10-04  Bruno Haible  <bruno@clisp.org>
58089
58090         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
58091
58092 2006-10-03  Bruno Haible  <bruno@clisp.org>
58093
58094         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
58095         from gl_avltreehash_list_implementation.
58096
58097 2006-10-03  Bruno Haible  <bruno@clisp.org>
58098
58099         * lib/gl_oset.c (gl_oset_add): Fix return type.
58100
58101 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
58102
58103         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
58104
58105 2006-10-02  Eric Blake  <ebb9@byu.net>
58106
58107         * modules/strnlen (Depends-on): Add extensions.
58108
58109 2006-10-02  Eric Blake  <ebb9@byu.net>
58110
58111         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
58112         definition in 2.60+.
58113
58114 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
58115
58116         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
58117         checks.
58118
58119 2006-10-02  Bruno Haible  <bruno@clisp.org>
58120
58121         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
58122         to the AUTOMAKE_OPTIONS.
58123         Reported by Jim Meyering.
58124
58125 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58126
58127         Work around bug in Solaris 10 /proc file system:
58128         /proc/self/fd/NNN/.. isn't the parent directory of
58129         the directory whose file descriptor is NNN.  This needs to
58130         be worked around at run time, not compile time, since a
58131         program might be built on Solaris 8, where things work, and
58132         run on Solaris 10.
58133         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
58134         to use the following interface instead:
58135         (OPENAT_BUFFER_SIZE): New macro.
58136         (openat_proc_name): New function.
58137         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
58138         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
58139         Likewise.
58140         * lib/openat-proc.c: New file.
58141         * modules/openat (Files): Add lib/openat-proc.c.
58142         (Depends-on): Add same-inode, stdbool.
58143         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
58144
58145 2006-09-29  Bruno Haible  <bruno@clisp.org>
58146
58147         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
58148         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
58149         argument. Set stdout_closed before testing for ferror, not after.
58150         (fwriteerror, fwriteerror_no_ebadf): New functions.
58151
58152 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58153
58154         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
58155
58156 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
58157
58158         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
58159         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
58160
58161 2006-09-28  Jim Meyering  <jim@meyering.net>
58162
58163         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
58164         Include <unistd.h>.
58165
58166 2006-09-28  Bruno Haible  <bruno@clisp.org>
58167
58168         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
58169         * modules/linkedhash-list (Depends-on): Likewise.
58170         * modules/rbtreehash-list (Depends-on): Likewise.
58171
58172 2006-09-28  Bruno Haible  <bruno@clisp.org>
58173
58174         * lib/strndup.h: Simplify the redefinition of strndup.
58175         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
58176         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
58177
58178 2006-09-28  Bruno Haible  <bruno@clisp.org>
58179
58180         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
58181         * lib/gl_linkedhash_list.c: Likewise.
58182         * lib/gl_rbtreehash_list.c: Likewise.
58183
58184 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58185
58186         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
58187         getaddrinfo.
58188
58189         * lib/__fpending.h: Don't include <stdio_ext.h> unless
58190         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
58191         it causes <stdio_ext.h> to cause a compile-time error.
58192         Problem reported by Nelson H. F. Beebe.
58193         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
58194         of HAVE_DECL___PENDING.
58195
58196         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
58197         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
58198         declaration.
58199
58200 2006-09-27  Jim Meyering  <jim@meyering.net>
58201
58202         This file could end up with a definition for a function
58203         named __strndup, rather than rpl_strndup on a system with
58204         incomplete weak_alias support.
58205         * lib/strndup.c (strndup): Rename from __strndup.
58206         Remove #defines that used to map __strndup to strndup.
58207         Don't use K&R prototypes.
58208         Remove LIBC-related code, since this file is not sync'd with glibc.
58209         * lib/strndup.h: Revamp, accordingly.
58210         * m4/strndup.m4: Modernize.
58211
58212 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58213
58214         * modules/savewd (Depends-on): Add 'raise'.
58215         * lib/savewd.c: Include <signal.h>, for 'raise'.
58216
58217 2006-09-26  Jim Meyering  <jim@meyering.net>
58218
58219         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
58220         when we detect Darwin 8.7.0's acl_get_file bug.
58221         Rearrange to perform the new (below) run-test while $LIBS
58222         contains any acl-related library.  Set USE_ACL at the end.
58223         (gl_ACL_GET_FILE): New function.
58224
58225 2006-09-26  Eric Blake  <ebb9@byu.net>
58226
58227         * lib/verror.c: Include <config.h> unconditionally.
58228
58229 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
58230
58231         * modules/clock-time (Maintainer): Add self.
58232         * modules/getlogin_r (Depends-on): Add extensions.
58233
58234 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58235
58236         * modules/clock-time: New module.
58237         * modules/nanosleep (Depends-on): Add clock-time.
58238         * modules/gethrxtime (Depends-on): Likewise.
58239         * modules/gettime (Depends-on): Likewise.
58240         * modules/settime (Depends-on): Likewise.
58241
58242         * modules/fts-lgpl: Depend on openat.
58243         * modules/mkancesdirs: Depend on savewd.
58244         * modules/mkdir-p: Likewise.
58245
58246 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58247
58248         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
58249
58250         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
58251         `gl_have_arbitrary_file_name_length_limit' to
58252         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
58253         actually works between configure runs.
58254
58255 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58256             Bruno Haible  <bruno@clisp.org>
58257
58258         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
58259
58260 2006-09-25  Jim Meyering  <jim@meyering.net>
58261
58262         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
58263         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
58264
58265 2006-09-25  Eric Blake  <ebb9@byu.net>
58266
58267         * gnulib-tool (func_import, func_create_testdir): Fix typos in
58268         exec's in 2006-09-18 patch when shuffling fds.
58269
58270 2006-09-25  Bruno Haible  <bruno@clisp.org>
58271
58272         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
58273         Reported by Jim Meyering.
58274
58275 2006-09-24  Jim Meyering  <jim@meyering.net>
58276
58277         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
58278         compare a pointer against a literal "0".  That caused failures with
58279         at least HP-UX's hpcc.
58280
58281 2006-09-22  Simon Josefsson  <jas@extundo.com>
58282
58283         * modules/gc-sha1:
58284         * modules/gc-md4:
58285         * modules/gc-hmac-sha1:
58286         * modules/gc-hmac-md5:
58287         * modules/gc-des:
58288         * modules/gc-arcfour: Distribute more files.
58289
58290 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58291
58292         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
58293         (gl_linked_iterator_from_to): Initialize struct completely.
58294         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
58295         (gl_tree_iterator_from_to): Likewise
58296         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
58297         * lib/gl_array_list.c [lint] (gl_array_iterator)
58298         (gl_array_iterator_from_to): Likewise.
58299         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
58300         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
58301         (gl_carray_iterator_from_to): Likewise.
58302
58303         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
58304         * lib/md4.c (md4_process_block): Remove unused variable.
58305         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
58306         parentheses for clarity.
58307
58308 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58309
58310         * modules/bison-i18n (Depends-on): Add gettext.
58311
58312 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58313
58314         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
58315         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58316         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
58317         also add missing comma that caused broken test.
58318         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
58319         stdlib.h, for `abort'.
58320         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
58321         variables.
58322         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
58323         include unistd.h if present, for `rmdir'.
58324         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
58325         variables.
58326         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
58327         in the process include standard headers for prototypes.
58328         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
58329         gets declared on GNU/Linux.
58330         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
58331         unistd.h, for `rmdir'.
58332         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
58333
58334         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
58335         always true.
58336         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
58337
58338         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
58339
58340 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58341
58342         * gnulib-tool (func_version): Create output all at once.  This
58343         may help avoid triggering unnecessary SIGPIPEs, and at any
58344         rate it doesn't hurt.
58345
58346 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58347             Bruno Haible  <bruno@clisp.org>
58348
58349         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
58350         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58351         * m4/signed.m4 (bh_C_SIGNED): Likewise.
58352
58353         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
58354         (gl_FUNC_VASPRINTF): Invoke it.
58355
58356 2006-09-22  Bruno Haible  <bruno@clisp.org>
58357
58358         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
58359         getloadavg.c as first argument.
58360
58361 2006-09-22  Bruno Haible  <bruno@clisp.org>
58362
58363         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
58364         at the beginning of the gl_INIT macro.
58365         * modules/getloadavg (configure.ac): Pass $gl_source_base to
58366         gl_GETLOADAVG.
58367
58368 2006-09-22  Bruno Haible  <bruno@clisp.org>
58369
58370         * gnulib-tool (func_create_megatestdir): Don't include the config-h
58371         module.
58372         Suggested by Ralf Wildenhues.
58373
58374 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58375
58376         Import this patch from libc:
58377
58378         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
58379
58380         * lib/regex_internal.c (re_string_reconstruct): Handle
58381         offset < pstr->valid_raw_len && pstr->offsets_needed case.
58382         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
58383         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
58384         re_string_context_at.
58385
58386         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
58387         now requires it.
58388         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
58389         gl_REGEX now does it for us.
58390         (gl_REGEX): Add test taken from
58391         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
58392
58393         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
58394         Check that large offsets work.  Modernize Autoconf usages.
58395         Prefer "yes" to mean a good thing rather than a bad.
58396         Don't put "#define mkstemp" in config.h, as this might interfere
58397         with standard system headers that "#define mkstemp mkstemp64".
58398
58399         * modules/mkstemp (Depends-on): Add extensions, so that
58400         mkstemp is visible on some platforms.
58401         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
58402         (Include): Change to "mkstemp.h" from <stdlib.h>.
58403         (Files): Add mkstemp.h.
58404
58405         * lib/mkstemp.h: New file, since some standard headers
58406         #define mkstemp.
58407         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
58408         Include "mkstemp.h".
58409         Make the _LIBC code resemble glibc original more,
58410         e.g., use K&R style.
58411         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
58412         (mkstemp): Remove, since mkstemp.h does this for us.
58413         * lib/stdlib--.h: Include mkstemp.h.
58414
58415         Import this patch from libc:
58416
58417         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58418
58419         * lib/tempname.c (__gen_tempname): Change attempts_min
58420         into a macro.  Use preprocessor to decide how to initialize
58421         attempts [Coverity CID 67].
58422
58423 2006-09-20  Bruno Haible  <bruno@clisp.org>
58424
58425         * lib/mkdtemp.c: Import from libc.
58426         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58427                 * sysdeps/posix/tempname.c (__gen_tempname): Change
58428                 attempts_min into a macro.  Use preprocessor to decide how to
58429                 initialize attempts [Coverity CID 67].
58430         2001-11-27  Paul Eggert  <eggert@twinsun.com>
58431                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
58432                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
58433
58434 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58435
58436         * gnulib-tool (func_exit): New function, to allow to pass the
58437         exit status portably through the trap.  Use everywhere.
58438         (--help, --version): Signal a write error.
58439         (trap): catch SIGPIPE, for write errors.
58440         Exit at the end of the trap, with the correct exit status.
58441
58442 2006-09-19  Karl Berry  <karl@gnu.org>
58443
58444         * doc/gnulib.texi: note about the license texinfo files.
58445
58446 2006-09-19  Eric Blake  <ebb9@byu.net>
58447
58448         * gnulib-tool: Avoid space-tab.
58449
58450 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58451
58452         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
58453         that prevented coreutils 6.1 from building.  Problem reported
58454         by Petter Reinholdtsen.
58455
58456 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58457
58458         * gnulib-tool (avoidlist): Fix typo that broke options like
58459         --avoid=lock that are used by coreutils bootstrap.
58460
58461 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
58462
58463         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
58464         more systematically.
58465
58466 2006-09-18  Jim Meyering  <jim@meyering.net>
58467
58468         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
58469
58470 2006-09-18  Bruno Haible  <bruno@clisp.org>
58471
58472         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
58473
58474 2006-09-18  Bruno Haible  <bruno@clisp.org>
58475
58476         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
58477         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
58478         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
58479         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
58480         * m4/gettext.m4: Require autoconf >= 2.52.
58481         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
58482         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
58483         of gl_cv_header_inttypes_h.
58484
58485 2006-09-18  Bruno Haible  <bruno@clisp.org>
58486
58487         * lib/javaversion.c: Include configmake.h.
58488
58489 2006-09-18  Bruno Haible  <bruno@clisp.org>
58490
58491         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
58492         avoid that the while loops be executed in a subshell.
58493
58494 2006-09-18  Bruno Haible  <bruno@clisp.org>
58495
58496         * MODULES.html.sh (func_module): Break long lines.
58497         Suggested by Bruce Korb <bkorb@gnu.org>.
58498
58499 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58500
58501         Speed up by a factor of 1.12.
58502         * gnulib-tool (nl): New variable.
58503         (func_import): Rewrite include directive extraction to only read each
58504         directive once.
58505
58506 2006-09-17  Bruno Haible  <bruno@clisp.org>
58507
58508         * modules/javaversion (Makefile.am): Remove DEFS setting.
58509         (Depends-on): Add configmake, for PKGDATADIR definition.
58510
58511 2006-09-17  Bruno Haible  <bruno@clisp.org>
58512
58513         * gnulib-tool (func_create_testdir): Rewrite all files at once.
58514
58515 2006-09-17  Bruno Haible  <bruno@clisp.org>
58516
58517         * gnulib-tool (func_append): New function, stolen from libtool.m4.
58518         (func_modules_transitive_closure, func_modules_add_dummy,
58519         func_modules_to_filelist, func_import, func_create_testdir,
58520         func_create_megatestdir, ...): Use it wherever possible.
58521         Suggested by Ralf Wildenhues.
58522
58523 2006-09-16  Karl Berry  <karl@gnu.org>
58524
58525         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
58526         to avoid sectioning errors.
58527         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
58528         [ifinfo]: blank line after @center-ed titles.
58529         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
58530         Spell FSF address consistently with others.
58531         (These changes approved by rms.)
58532
58533 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58534
58535         Speed up by a factor of 1.61.
58536         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
58537         already checked module names again.
58538
58539 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58540
58541         Speed up by a factor of 1.13.
58542         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
58543         for new_files, and the input to func_add_or_update.
58544
58545 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58546
58547         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
58548         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
58549
58550 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58551
58552         * modules/mkancesdirs (Depends-on): Add fcntl.
58553         * modules/savewd: New file.
58554         * MODULES.html.sh (File system functions): Add savewd.
58555
58556         * modules/configmake (Makefile.am): Add support for the
58557         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
58558
58559 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58560
58561         * m4/savewd.m4: New file.
58562
58563 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58564
58565         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
58566         (dirchownmod): New arg FD.  All callers changed.
58567         Use FD rather than opening the directory ourself, as opening is
58568         now the caller's responsibility.
58569         * lib/dirchownmod.h: Likewise.
58570         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
58571         hosts that require <sys/types.h> before <sys/stat.h>.  Include
58572         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
58573         (test_dir): Remove.
58574         (mkancesdirs): Return length of prefix of FILE that has already
58575         been made, or -2 if there is a child doing the work.  Redo
58576         algorithm so that it is O(N) rather than O(N**2).  Optimize away
58577         ".", and treat ".." specially since it might stray back into
58578         already-created areas.  Use a subprocess if necessary.  New arg
58579         WD; all users changed.  MAKE_DIR function should now return 1
58580         if it creates a directory that is not readable.  Return -2 if
58581         a child process is spun off.
58582         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
58583         Adjust signature to match code.
58584         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
58585         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
58586         all users changed.
58587         * lib/savewd.c, lib/savewd.h: New files.
58588
58589 2006-09-15  Jim Meyering  <jim@meyering.net>
58590
58591         * modules/rename-dest-slash: New module.
58592         * MODULES.html.sh (posix_compat): Add it here.
58593
58594         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
58595
58596 2006-09-15  Jim Meyering  <jim@meyering.net>
58597
58598         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
58599         file.
58600
58601         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
58602
58603 2006-09-15  Jim Meyering  <jim@meyering.net>
58604
58605         * lib/rename-dest-slash.c (has_trailing_slash): Use
58606         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
58607         (rpl_rename_dest_slash): Perform the cheaper trailing slash
58608         test before testing whether SRC is a directory.
58609         Suggestions from Bruno Haible.
58610
58611         Avoid a warning about an unused variable.
58612         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
58613         into the #ifdef block where it's used.
58614
58615         * lib/rename-dest-slash.c: New file.
58616
58617 2006-09-14  Bruno Haible  <bruno@clisp.org>
58618
58619         * lib/allocsa.c: Include <config.h> unconditionally.
58620         * lib/asnprintf.c: Likewise.
58621         * lib/asprintf.c: Likewise.
58622         * lib/c-strcasecmp.c: Likewise.
58623         * lib/c-strcasestr.c: Likewise.
58624         * lib/c-strncasecmp.c: Likewise.
58625         * lib/c-strstr.c: Likewise.
58626         * lib/classpath.c: Likewise.
58627         * lib/clean-temp.c: Likewise.
58628         * lib/concatpath.c: Likewise.
58629         * lib/copy-file.c: Likewise.
58630         * lib/csharpcomp.c: Likewise.
58631         * lib/csharpexec.c: Likewise.
58632         * lib/execute.c: Likewise.
58633         * lib/fatal-signal.c: Likewise.
58634         * lib/findprog.c: Likewise.
58635         * lib/fwriteerror.c: Likewise.
58636         * lib/gl_array_list.c: Likewise.
58637         * lib/gl_array_oset.c: Likewise.
58638         * lib/gl_avltree_list.c: Likewise.
58639         * lib/gl_avltree_oset.c: Likewise.
58640         * lib/gl_avltreehash_list.c: Likewise.
58641         * lib/gl_carray_list.c: Likewise.
58642         * lib/gl_linked_list.c: Likewise.
58643         * lib/gl_linkedhash_list.c: Likewise.
58644         * lib/gl_list.c: Likewise.
58645         * lib/gl_oset.c: Likewise.
58646         * lib/gl_rbtree_list.c: Likewise.
58647         * lib/gl_rbtree_oset.c: Likewise.
58648         * lib/gl_rbtreehash_list.c: Likewise.
58649         * lib/imaxabs.c: Likewise.
58650         * lib/imaxdiv.c: Likewise.
58651         * lib/javacomp.c: Likewise.
58652         * lib/javaexec.c: Likewise.
58653         * lib/javaversion.c: Likewise.
58654         * lib/linebreak.c: Likewise.
58655         * lib/localcharset.c: Likewise.
58656         * lib/lock.c: Likewise.
58657         * lib/mbchar.c: Likewise.
58658         * lib/mbswidth.c: Likewise.
58659         * lib/mkdtemp.c: Likewise.
58660         * lib/pipe.c: Likewise.
58661         * lib/printf-args.c: Likewise.
58662         * lib/printf-parse.c: Likewise.
58663         * lib/progname.c: Likewise.
58664         * lib/progreloc.c: Likewise.
58665         * lib/readlink.c: Likewise.
58666         * lib/sh-quote.c: Likewise.
58667         * lib/stpcpy.c: Likewise.
58668         * lib/stpncpy.c: Likewise.
58669         * lib/strcasecmp.c: Likewise.
58670         * lib/strcasestr.c: Likewise.
58671         * lib/strcspn.c: Likewise.
58672         * lib/striconv.c: Likewise.
58673         * lib/strncasecmp.c: Likewise.
58674         * lib/strnlen1.c: Likewise.
58675         * lib/strstr.c: Likewise.
58676         * lib/strtok_r.c: Likewise.
58677         * lib/tls.c: Likewise.
58678         * lib/tmpdir.c: Likewise.
58679         * lib/unicodeio.c: Likewise.
58680         * lib/unsetenv.c: Likewise.
58681         * lib/vasnprintf.c: Likewise.
58682         * lib/vasprintf.c: Likewise.
58683         * lib/wait-process.c: Likewise.
58684         * lib/xallocsa.c: Likewise.
58685         * lib/xsetenv.c: Likewise.
58686         * lib/xstriconv.c: Likewise.
58687
58688 2006-09-13  Simon Josefsson  <jas@extundo.com>
58689
58690         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
58691         that internally, suggested by Ralf Wildenhues
58692         <Ralf.Wildenhues@gmx.de>.
58693
58694 2006-09-13  Simon Josefsson  <jas@extundo.com>
58695
58696         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
58697         @LIBOBJS@.
58698         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58699
58700 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58701
58702         * lib/_fpending.c: Include <config.h> unconditionally, since we no
58703         longer worry about uses that don't define HAVE_CONFIG_H.
58704         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
58705         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
58706         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
58707         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
58708         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
58709         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
58710         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
58711         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
58712         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
58713         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
58714         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
58715         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
58716         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
58717         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
58718         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
58719         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
58720         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
58721         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
58722         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
58723         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
58724         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
58725         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
58726         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
58727         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
58728         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
58729         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
58730         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
58731         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
58732         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
58733         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
58734         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
58735         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
58736         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
58737         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
58738         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
58739         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
58740         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
58741         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
58742         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
58743         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
58744         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
58745         Likewise.
58746
58747 2006-09-13  Eric Blake  <ebb9@byu.net>
58748
58749         * lib/getopt.c: Fix typo in last commit.
58750
58751 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58752
58753         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
58754         dgettext.
58755
58756 2006-09-12  Jim Meyering  <jim@meyering.net>
58757
58758         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
58759         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
58760         Reported by Nelson H. F. Beebe.
58761
58762 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58763
58764         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
58765         program_invocation_name and program_invocation_short_name are
58766         initialized.
58767         * lib/argp-namefrob.h: Move declarations of program_invocation_name
58768         and program_invocation_short_name to argp.h, so they are visible
58769         to user programs.
58770         * lib/argp.h: Likewise
58771
58772 2006-09-10  Bruno Haible  <bruno@clisp.org>
58773
58774         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58775         m4/inttypes_h.m4, m4/uintmax_t.m4.
58776
58777 2006-09-10  Bruno Haible  <bruno@clisp.org>
58778
58779         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
58780         gl_AC_TYPE_UINTMAX_T.
58781
58782 2006-09-10  Bruno Haible  <bruno@clisp.org>
58783
58784         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
58785
58786 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58787
58788         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
58789         convention.  Text proposed by Bruno Haible.
58790         (struct argp_option): Document the use of N_() wrappers.
58791
58792         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
58793         '\v', and translate the two parts separately, instead of feeding
58794         the whole string to gettext.  This allows to exclude
58795         '\v' from the strings visible to the translator by writing doc
58796         strings as N_("..") "\v" N_("..").
58797
58798 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
58799
58800         * config/srclist.txt: Undo latest change; the bug was fixed.
58801
58802 2006-09-09  Bruno Haible  <bruno@clisp.org>
58803
58804         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
58805         assignments if building a library without libtool.
58806         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
58807         in func_emit_lib_Makefile_am.
58808         (func_import): When building a static library libfoo.a, arrange to
58809         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
58810         (func_create_testdir): Likewise.
58811         * modules/gc (configure.ac, Makefile.am): If building statically,
58812         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
58813         * modules/iconvme (configure.ac, Makefile.am): Likewise.
58814         * modules/striconv (configure.ac, Makefile.am): Likewise.
58815         Based on a suggestion by Ralf Wildenhues.
58816
58817 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58818
58819         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58820         Check for unistd.h too, since Autoconf doesn't assume POSIX.
58821         Also:
58822
58823         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58824         Add year_2050_test to catch glibc bug 2821
58825         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58826
58827         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58828         Prefer #ifdef to #if.
58829
58830         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
58831         Return from 'main' instead of calling 'exit'.
58832
58833 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58834
58835         * lib/mktime.c (guess_time_tm): Fix bug where mktime
58836         returned the maximum time_t value rather than (time_t) -1.
58837         Problem originally reported by William Bardwell
58838         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58839
58840         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58841         Moved to here ...
58842         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58843         ... from here.
58844
58845 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58846
58847         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
58848         2821 is fixed.
58849
58850 2006-09-08  Jim Meyering  <jim@meyering.net>
58851
58852         Don't make generated files read-only.  That would bother too many
58853         people.  However, do retain the ability to work when targets are
58854         read-only: remove the destination and temporary files before writing
58855         them (when generated via sed or echo), or by using the -f option for
58856         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
58857         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58858         * modules/byteswap, modules/configmake, modules/fcntl:
58859         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58860         * modules/localcharset, modules/netinet_in, modules/poll:
58861         * modules/stdbool, modules/stdint, modules/sys_select:
58862         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58863
58864 2006-09-08  Jim Meyering  <jim@meyering.net>
58865
58866         Avoid new build failure on FreeBSD 6.0.
58867         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
58868         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
58869         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
58870
58871 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58872
58873         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
58874
58875 2006-09-07  Jim Meyering  <jim@meyering.net>
58876
58877         Fix global typo in last change: use chmod u-w, not chmod u-x.
58878         Spotted by Paul Eggert and Bruce Korb.
58879         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58880         * modules/byteswap, modules/configmake, modules/fcntl:
58881         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58882         * modules/localcharset, modules/netinet_in, modules/poll:
58883         * modules/stdbool, modules/stdint, modules/sys_select:
58884         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58885
58886 2006-09-06  Jim Meyering  <jim@meyering.net>
58887
58888         Make generated files be read-only.
58889         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
58890         Ensure that each generated file is now read-only.
58891         * modules/argz: Likewise.
58892         * modules/arpa_inet: Likewise.
58893         * modules/byteswap: Likewise.
58894         * modules/configmake: Likewise.
58895         * modules/fcntl: Likewise.
58896         * modules/fnmatch: Likewise.
58897         * modules/getopt: Likewise.
58898         * modules/glob: Likewise.
58899         * modules/inttypes: Likewise.
58900         * modules/netinet_in: Likewise.
58901         * modules/poll: Likewise.
58902         * modules/stdbool: Likewise.
58903         * modules/stdint: Likewise.
58904         * modules/sys_select: Likewise.
58905         * modules/sys_socket: Likewise.
58906         * modules/sys_stat: Likewise.
58907         * modules/sysexits: Likewise.
58908         * modules/localcharset: Same as above, but continue using temporary
58909         file named "t-$@" (why different?) rather than the "$@-t" used
58910         everywhere else.
58911
58912         * modules/sysexits (Makefile.am): Replace literal occurrences
58913         of "sysexit.h" more readable, and more consistent, "$@".
58914
58915 2006-09-06  Bruno Haible  <bruno@clisp.org>
58916
58917         * modules/striconv: New file.
58918         * modules/xstriconv: New file.
58919         * MODULES.html.sh (Internationalization functions): Add striconv,
58920         xstriconv.
58921
58922 2006-09-06  Bruno Haible  <bruno@clisp.org>
58923
58924         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
58925         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
58926         not using libtool correctly.
58927
58928 2006-09-06  Bruno Haible  <bruno@clisp.org>
58929
58930         * lib/striconv.h: New file.
58931         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
58932         iconvstring.c.
58933         * lib/xstriconv.h: New file.
58934         * lib/xstriconv.c: New file.
58935
58936 2006-09-06  Bruno Haible  <bruno@clisp.org>
58937
58938         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58939         lib_..._LDFLAGS.
58940
58941 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58942
58943         * lib/argz_.h: Sync from Libtool.
58944
58945         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
58946                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58947
58948         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
58949
58950 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58951
58952         * modules/trim: New file.
58953
58954 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58955
58956         * lib/trim.h: New file.
58957         * lib/trim.c: New file.
58958
58959 2006-09-05  Bruno Haible  <bruno@clisp.org>
58960
58961         * MODULES.html.sh (String handling): Add trim.
58962
58963 2006-09-04  Karl Berry  <karl@gnu.org>
58964
58965         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
58966         until next release.
58967
58968 2006-09-03  Bruno Haible  <bruno@clisp.org>
58969
58970         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
58971         correctly.
58972
58973 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58974
58975         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
58976         not gl_GETLOADAVG.  Omit unneeded semicolons.
58977         Problems reported by Ralf Wildenhues in
58978         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58979         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
58980         at the end, which is the usual gnulib style.
58981
58982         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
58983         of doing all the work ourselves.
58984         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
58985         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
58986
58987 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58988
58989         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
58990         Problem reported by Ralf Wildenhues in
58991         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58992
58993         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
58994         HAVE_STRUCT_STATFS_F_FSTYPENAME.
58995
58996 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58997
58998         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
58999         yesterday's patch by changing test -n to test -z.
59000
59001 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59002
59003         * modules/getloadavg (Files): Add m4/getloadavg.m4.
59004         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
59005         the former is now obsolescent.
59006
59007         * modules/chdir-long (Depends-on): Add fcntl.
59008
59009 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59010
59011         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
59012         obsolescent, and programs should use gnulib instead.
59013         * m4/getloadavg.m4: New file, with contents taken from Autoconf
59014         but with prefixes changed.
59015
59016 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59017
59018         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
59019         or stdbool.h, because they might not exist while configuring.
59020
59021         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
59022         Don't include unistd.h or limits.h; not needed, since chdir-long.h
59023         does that for us.
59024         (O_DIRECTORY): Remove.
59025
59026 2006-08-31  Eric Blake  <ebb9@byu.net>
59027
59028         * gnulib-tool: Don't let emacs change spaces to TAB.
59029
59030 2006-08-31  Bruno Haible  <bruno@clisp.org>
59031
59032         * gnulib-tool: When calling func_import more than once, do it in a
59033         subshell.
59034         Reported by Eric Blake <ebb9@byu.net>.
59035
59036 2006-08-31  Bruno Haible  <bruno@clisp.org>
59037
59038         * gnulib-tool (nl): Remove variable.
59039         (sed_transform_lib_file): Use more robust test for config-h module.
59040         (func_import): Fix typo in 2006-08-25 patch.
59041
59042 2006-08-31  Bruno Haible  <bruno@clisp.org>
59043
59044         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
59045         specified, augment Makefile.am variables instead of assigning them.
59046
59047 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59048
59049         Work around a bug in both the Linux and SunOS 64-bit kernels:
59050         nanosleep mishandles sleeps for longer than 2**31 seconds.
59051         Problem reported by Frank v Waveren in
59052         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59053         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
59054         Check for nanosleep bug.
59055         (LIB_NANOSLEEP): Append clock_gettime library if needed.
59056
59057 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59058
59059         Work around a bug in both the Linux and SunOS 64-bit kernels:
59060         nanosleep mishandles sleeps for longer than 2**31 seconds.
59061         Problem reported by Frank v Waveren in
59062         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59063         * lib/nanosleep.c (BILLION): New constant.
59064         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
59065         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
59066         implementation.
59067
59068 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59069
59070         * modules/nanosleep (Depends-on): Add gettime.
59071
59072 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59073         and Simon Josefsson  <jas@extundo.com>
59074         and Oskar Liljeblad  <oskar@osk.mine.nu>
59075
59076         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
59077         * gnulib-tool (func_import): New license type 'unmodifiable license
59078         text'.
59079         * modules/fdl: Use it.  Longer description.
59080         * module/gpl, module/lgpl: New files.
59081
59082 2006-08-30  Jim Meyering  <jim@meyering.net>
59083
59084         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
59085         shadowing the parameter.
59086
59087 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59088
59089         Sync from Libtool:
59090
59091         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59092
59093         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
59094         sharing with gnulib.  Report by Eric Blake.
59095
59096 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59097
59098         * modules/isapipe: New file.
59099         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
59100
59101 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59102
59103         * modules/configmake (Makefile.am): Add a comment, and omit
59104         the CONFIGMAKE_ prefix from generated macro names.  Suggested
59105         by Bruno Haible.
59106
59107 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59108
59109         * m4/isapipe.m4: New file.
59110
59111 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59112
59113         * lib/isapipe.c, lib/isapipe.h: New files.
59114
59115 2006-08-29  Jim Meyering  <jim@meyering.net>
59116
59117         * modules/configmake (Makefile.am): Make configmake.h depend on
59118         Makefile.  Otherwise, a stale configmake.h could hang around.
59119
59120 2006-08-29  Eric Blake  <ebb9@byu.net>
59121
59122         * lib/error.c (error_at_line, print_errno_message): Match libc, after
59123         resolution of upstream bug 3044.
59124
59125 2006-08-29  Bruno Haible  <bruno@clisp.org>
59126
59127         * modules/localcharset (Depends-on): Add configmake.
59128         (Makefile.am): Remove setting of LIBDIR through DEFS.
59129
59130 2006-08-29  Bruno Haible  <bruno@clisp.org>
59131
59132         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
59133         defined.
59134
59135 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59136
59137         * modules/fcntl: New file.
59138         * modules/chdir-safer (Depends-on): Add fcntl.
59139         * modules/fts: Likewise.
59140         * modules/mkdir-p: Likewise.
59141
59142         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
59143         This undoes the most recent change, since we're now addressing the
59144         problem in a different way.
59145
59146         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
59147         into output, since the output might be called Makefile.am even
59148         if $makefile_name is something different.
59149         (func_import): Use $makefile_am rather than
59150         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
59151         empty.
59152
59153         * modules/inttypes (Files): Add m4/inttypes-h.m4.
59154
59155 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59156
59157         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
59158         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
59159         recent change to stdint.m4, since we're now addressing the problem in a
59160         different way.
59161
59162 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59163
59164         * m4/fcntl_h.m4: New file.
59165
59166 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59167
59168         * lib/fcntl_.h: New file.
59169         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
59170         the fcntl module.
59171         * lib/dirchownmod.c: Likewise.
59172         * lib/fts.c: Likewise.
59173
59174         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
59175         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
59176         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
59177         just before including <inttypes.h>, to avoid circular inclusion.
59178
59179 2006-08-28  Jim Meyering  <jim@meyering.net>
59180
59181         * doc/visibility.texi: Actually read and correct the grammar of the
59182         sentence affected by yesterday's change.
59183
59184 2006-08-28  Eric Blake  <ebb9@byu.net>
59185
59186         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
59187         needs wrapper.
59188
59189 2006-08-28  Eric Blake  <ebb9@byu.net>
59190
59191         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
59192
59193 2006-08-28  Eric Blake  <ebb9@byu.net>
59194
59195         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
59196
59197 2006-08-28  Bruno Haible  <bruno@clisp.org>
59198
59199         * modules/c-strstr: New file, from GNU gettext.
59200         * MODULES.html.sh (String handling): Add c-strstr.
59201
59202 2006-08-28  Bruno Haible  <bruno@clisp.org>
59203
59204         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
59205         macros.
59206         Reported by Eric Blake.
59207
59208 2006-08-28  Bruno Haible  <bruno@clisp.org>
59209
59210         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
59211         (VASNPRINTF): Return a string of length > INT_MAX without failing.
59212         * lib/vasprintf.c: Include errno.h, limits.h.
59213         (EOVERFLOW): New fallback definition.
59214         (vasprintf): Test here whether the string length is > INT_MAX.
59215         * lib/vsnprintf.c: Include errno.h, limits.h.
59216         (EOVERFLOW): New fallback definition.
59217         (vsnprintf): Fix bug when generated string was too long for the buffer.
59218         Test here whether the string length is > INT_MAX.
59219
59220 2006-08-28  Bruno Haible  <bruno@clisp.org>
59221
59222         * lib/inttypes_.h (SCNX*): Remove definitions.
59223         Reported by Eric Blake.
59224
59225 2006-08-28  Bruno Haible  <bruno@clisp.org>
59226
59227         * lib/c-strstr.h: New file, from GNU gettext.
59228         * lib/c-strstr.c: New file, from GNU gettext.
59229
59230 2006-08-28  Bruno Haible  <bruno@clisp.org>
59231
59232         * gnulib-tool: Reorder some statements.
59233
59234 2006-08-28  Bruno Haible  <bruno@clisp.org>
59235
59236         * gnulib-tool: New option --makefile-name.
59237         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
59238         $makefile_name.
59239         (func_import): Write $makefile_name to the cache file, and read it from
59240         there unless explicitly specified. Use $makefile_name as file name
59241         instead of Makefile.am. Adjust the recommendations accordingly.
59242
59243 2006-08-28  Bruno Haible  <bruno@clisp.org>
59244
59245         * gnulib-tool (func_verify_module): Check against misapplying patch.
59246
59247 2006-08-28  Bruno Haible  <bruno@clisp.org>
59248
59249         * gnulib-tool (func_relativize, func_relconcat): New functions.
59250         Give an error if --local-dir is given with --update.
59251         Remove trailing slashes from $local_gnulib_dir.
59252         (func_import): Store the relativized $local_gnulib_dir in
59253         gnulib-cache.m4, and read it from there if not specified explicitly.
59254
59255 2006-08-28  Bruno Haible  <bruno@clisp.org>
59256
59257         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
59258         is the current directory. Respect also $local_gnulib_dir.
59259
59260 2006-08-28  Bruno Haible  <bruno@clisp.org>
59261             Simon Josefsson  <jas@extundo.com>
59262
59263         BeOS portability.
59264         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
59265
59266 2006-08-27  Jim Meyering  <jim@meyering.net>
59267
59268         * doc/visibility.texi: Remove duplicate word: "pointer".
59269
59270 2006-08-26  Bruno Haible  <bruno@clisp.org>
59271
59272         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
59273         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
59274         (Makefile.am): Create inttypes.h from inttypes_.h.
59275         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
59276
59277         * modules/imaxabs: New file.
59278
59279         * modules/imaxdiv: New file.
59280
59281 2006-08-26  Bruno Haible  <bruno@clisp.org>
59282
59283         * m4/inttypes.m4: New file.
59284         * m4/_inttypes_h.m4: Remove file.
59285         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
59286         PRI_MACROS_BROKEN.
59287         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
59288
59289         * m4/imaxabs.m4: New file.
59290
59291         * m4/imaxdiv.m4: New file.
59292
59293 2006-08-26  Bruno Haible  <bruno@clisp.org>
59294
59295         * lib/inttypes_.h: New file.
59296         * lib/inttypes.h: Remove file.
59297         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
59298
59299         * lib/imaxabs.c: New file.
59300
59301         * lib/imaxdiv.c: New file.
59302
59303 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59304
59305         New config-h module, so that "make" output needn't be cluttered
59306         by -DHAVE_CONFIG_H.
59307         * MODULES.html.sh (Support for building libraries and executables):
59308         Add config-h.
59309         * modules/config-h: New file.
59310         * gnulib-tool (nl, sed_transform_lib_file): New vars.
59311         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
59312         the config-h module is used.
59313
59314         New configmake module, so that "make" output needn't be cluttered
59315         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
59316         * MODULES.html.sh (Support for building libraries and executables):
59317         Add configmake.
59318         * modules/configmake: New file.
59319
59320 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59321
59322         * m4/config-h.m4: New file.
59323
59324 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59325
59326         * config/srclist.txt: Add elisp-comp.
59327
59328 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59329
59330         * MODULES.html.sh (Support for building libraries and executables):
59331         Add elisp-comp.
59332         * build-aux/elisp-comp: New file.
59333         * modules/elisp-comp: New file.
59334
59335 2006-08-24  Bruno Haible  <bruno@clisp.org>
59336
59337         * gnulib-tool (func_create_testdir): Use non-default values of
59338         sourcebase and m4base.
59339
59340 2006-08-24  Bruno Haible  <bruno@clisp.org>
59341
59342         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
59343         HTML structure.
59344
59345 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59346
59347         * modules/openat (Depends-on): Add lchown.
59348
59349 2006-08-23  Bruno Haible  <bruno@clisp.org>
59350
59351         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
59352         of gl_LOCK_EARLY instead of gl_LOCK.
59353
59354 2006-08-23  Bruno Haible  <bruno@clisp.org>
59355
59356         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
59357         on OSF/1 to no.
59358         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
59359
59360 2006-08-23  Bruno Haible  <bruno@clisp.org>
59361
59362         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
59363         as unusable.
59364
59365         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
59366         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
59367         (gl_LOCK): New macro.
59368
59369 2006-08-22  Simon Josefsson  <jas@extundo.com>
59370
59371         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
59372         to md5 module.
59373
59374 2006-08-22  Simon Josefsson  <jas@extundo.com>
59375
59376         * MODULES.html.sh: Add "Support for maintaining and release
59377         projects".
59378
59379         * build-aux/gnupload: New file, from coreutils.
59380
59381 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59382
59383         Avoid the need for AC_LIBSOURCES in m4 macros.
59384         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
59385         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
59386         * modules/check-version (EXTRA_DIST): Add check-version.h.
59387         * modules/crc (EXTRA_DIST): Add crc.h.
59388         * modules/des (EXTRA_DIST): Add des.h.
59389         * modules/gc (EXTRA_DIST): Add gc.h.
59390         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
59391         * modules/getline (EXTRA_DIST): Add getline.h.
59392         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
59393         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
59394         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
59395         * modules/md2 (EXTRA_DIST): Add md2.h.
59396         * modules/md4 (EXTRA_DIST): Add md4.h.
59397         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
59398         * modules/read-file (EXTRA_DIST): Add read-file.h.
59399         * modules/readline (EXTRA_DIST): Add readline.h.
59400         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
59401         rijndael-api-fst.h.
59402
59403 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59404
59405         * m4/rijndael.m4 (gl_ARCFOUR):
59406         * m4/arctwo.m4 (gl_ARCTWO):
59407         * m4/check-version.m4 (gl_CHECK_VERSION):
59408         * m4/crc.m4 (gl_CRC):
59409         * m4/des.m4 (gl_DES):
59410         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
59411         * m4/gc.m4 (gl_GC):
59412         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
59413         * m4/getline.m4 (gl_FUNC_GETLINE):
59414         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
59415         * m4/hmac-md5.m4 (gl_HMAC_MD5):
59416         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
59417         * m4/md2.m4 (gl_MD2):
59418         * m4/md4.m4 (gl_MD4):
59419         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
59420         * m4/read-file.m4 (gl_FUNC_READ_FILE):
59421         * m4/readline.m4 (gl_FUNC_READLINE):
59422         * m4/rijndael.m4 (gl_RIJNDAEL):
59423         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59424         to get the necessary .h files and whatnot.
59425
59426 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59427
59428         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
59429         gnulib rather than the other way around.
59430         * config/srclistvars.sh (COREUTILS): Remove.
59431
59432 2006-08-22  Jim Meyering  <jim@meyering.net>
59433
59434         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
59435
59436         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
59437
59438 2006-08-22  Eric Blake  <ebb9@byu.net>
59439
59440         * modules/regexprops-generic: New file.
59441         * MODULES.html.sh (Support for building documentation): List it.
59442
59443 2006-08-22  Eric Blake  <ebb9@byu.net>
59444
59445         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
59446         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
59447         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
59448         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
59449
59450 2006-08-22  Bruno Haible  <bruno@clisp.org>
59451
59452         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
59453         and lib_LTLIBRARIES like the other lib_* variables.
59454
59455 2006-08-22  Bruno Haible  <bruno@clisp.org>
59456
59457         * build-aux/x-to-1.in: New file, from GNU gettext.
59458
59459 2006-08-22  Bruno Haible  <bruno@clisp.org>
59460
59461         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
59462         <utmpx.h> exists.
59463
59464 2006-08-22  Bruno Haible  <bruno@clisp.org>
59465
59466         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
59467         <utmpx.h> exists.
59468
59469 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59470
59471         BeOS portability.
59472         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
59473         exist.
59474         Problem reported by Bruno Haible.
59475
59476 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59477
59478         Avoid the need for AC_LIBSOURCES in m4 macros.
59479         * modules/acl (EXTRA_DIST): Add acl.h.
59480         * modules/argmatch (Files): Add m4/argmatch.m4.
59481         (configure.ac): Add gl_ARGMATCH.
59482         (EXTRA_DIST): Renamed from lib_SOURCES, for
59483         consistency with the other modules.  Remove argmatch.c.
59484         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
59485         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
59486         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
59487         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
59488         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
59489         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
59490         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
59491         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
59492         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
59493         * modules/closeout (EXTRA_DIST): Add closeout.h.
59494         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
59495         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
59496         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
59497         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
59498         dirname.h; remove basename.c and stripslash.c.
59499         * modules/exclude (EXTRA_DIST): Add exclude.h.
59500         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
59501         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
59502         * modules/file-type (EXTRA_DIST): Add file-type.h.
59503         * modules/filemode (EXTRA_DIST): Add filemode.h.
59504         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
59505         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59506         * modules/fpending (EXTRA_DIST): Add __fpending.h.
59507         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
59508         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
59509         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
59510         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
59511         * modules/getdate (EXTRA_DIST): Add getdate.c.
59512         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
59513         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
59514         * modules/getpass (EXTRA_DIST): Add getpass.h.
59515         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
59516         * modules/group-member (EXTRA_DIST): Add group-member.h.
59517         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
59518         * modules/hash (EXTRA_DIST): Add hash.h.
59519         * modules/human (EXTRA_DIST): Add human.h.
59520         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
59521         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
59522         * modules/lchown (EXTRA_DIST): Add lchown.h.
59523         * modules/long-options (EXTRA_DIST): Add long-options.h.
59524         * modules/lstat (EXTRA_DIST): Add lstat.h.
59525         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
59526         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
59527         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
59528         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
59529         * modules/memxor (EXTRA_DIST): Add memxor.h.
59530         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
59531         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
59532         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
59533         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
59534         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
59535         * modules/physmem (EXTRA_DIST): Add physmem.h.
59536         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
59537         * modules/posixver (EXTRA_DIST): Add posixver.h.
59538         * modules/quote (EXTRA_DIST): Add quote.h.
59539         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
59540         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
59541         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
59542         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
59543         regex_internal.h regexec.c.
59544         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
59545         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
59546         * modules/same (EXTRA_DIST): Add same.h.
59547         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
59548         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
59549         * modules/savedir (EXTRA_DIST): Add savedir.h.
59550         * modules/sha1 (EXTRA_DIST): Add sha1.h.
59551         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
59552         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
59553         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
59554         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
59555         * modules/strdup (EXTRA_DIST): Add strdup.h.
59556         * modules/strftime (EXTRA_DIST): Add strftime.h.
59557         * modules/strndup (EXTRA_DIST): Add strndup.h.
59558         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
59559         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
59560         * modules/time_r (EXTRA_DIST): Add time_r.h.
59561         * modules/timespec (EXTRA_DIST): Add timespec.h.
59562         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59563         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
59564         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
59565         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
59566         * modules/userspec (EXTRA_DIST): Add userspec.h.
59567         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
59568         * modules/utimens (EXTRA_DIST): Add utimens.h.
59569         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
59570         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
59571         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
59572         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
59573         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
59574         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
59575         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
59576         * modules/yesno (EXTRA_DIST): Add yesno.h.
59577
59578 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59579
59580         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
59581
59582         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
59583         * m4/dev-ino.m4, same-inode.m4: Remove.
59584
59585         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
59586         * m4/acl.m4 (AC_FUNC_ACL):
59587         * m4/backupfile.m4 (gl_BACKUPFILE):
59588         * m4/c-strtod.m4 (gl_C99_STRTOLD):
59589         * m4/canon-host.m4 (gl_CANON_HOST):
59590         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59591         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
59592         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
59593         * m4/cloexec.m4 (gl_CLOEXEC):
59594         * m4/close-stream.m4 (gl_CLOSE_STREAM):
59595         * m4/closeout.m4 (gl_CLOSEOUT):
59596         * m4/dirfd.m4 (gl_FUNC_DIRFD):
59597         * m4/dirname.m4 (gl_DIRNAME):
59598         * m4/exclude.m4 (gl_EXCLUDE):
59599         * m4/exitfail.m4 (gl_EXITFAIL):
59600         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
59601         * m4/file-type.m4 (gl_FILE_TYPE):
59602         * m4/filemode.m4 (gl_FILEMODE):
59603         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
59604         * m4/fpending.m4 (gl_FUNC_FPENDING):
59605         * m4/fprintftime.m4 (gl_FPRINTFTIME):
59606         * m4/fts.m4 (gl_FUNC_FTS):
59607         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
59608         * m4/getdate.m4 (gl_GETDATE):
59609         * m4/gethrxtime.m4 (gl_GETHRXTIME):
59610         * m4/getpagesize.m4 (gl_GETPAGESIZE):
59611         * m4/getpass.m4 (gl_FUNC_GETPASS):
59612         * m4/gettime.m4 (gl_GETTIME):
59613         * m4/getugroups.m4 (gl_GETUGROUPS):
59614         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
59615         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
59616         * m4/hard-locale.m4 (gl_HARD_LOCALE):
59617         * m4/hash.m4 (gl_HASH):
59618         * m4/idcache.m4 (gl_IDCACHE):
59619         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
59620         * m4/lchown.m4 (gl_FUNC_LCHOWN):
59621         * m4/long-options.m4 (gl_LONG_OPTIONS):
59622         * m4/lstat.m4 (gl_FUNC_LSTAT):
59623         * m4/md5.m4 (gl_MD5):
59624         * m4/memcasecmp.m4 (gl_MEMCASECMP):
59625         * m4/memcoll.m4 (gl_MEMCOLL):
59626         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
59627         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
59628         * m4/memxor.m4 (gl_MEMXOR):
59629         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
59630         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
59631         * m4/modechange.m4 (gl_MODECHANGE):
59632         * m4/mountlist.m4 (gl_MOUNTLIST):
59633         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59634         * m4/openat.m4 (gl_FUNC_OPENAT):
59635         * m4/pathmax.m4 (gl_PATHMAX):
59636         * m4/physmem.m4 (gl_PHYSMEM):
59637         * m4/posixtm.m4 (gl_POSIXTM):
59638         * m4/posixver.m4 (gl_POSIXVER):
59639         * m4/quote.m4 (gl_QUOTE):
59640         * m4/quotearg.m4 (gl_QUOTEARG):
59641         * m4/readtokens.m4 (gl_READTOKENS):
59642         * m4/readutmp.m4 (gl_READUTMP):
59643         * m4/regex.m4 (gl_REGEX):
59644         * m4/safe-read.m4 (gl_SAFE_READ):
59645         * m4/safe-write.m4 (gl_SAFE_WRITE):
59646         * m4/same.m4 (gl_SAME):
59647         * m4/save-cwd.m4 (gl_SAVE_CWD):
59648         * m4/savedir.m4 (gl_SAVEDIR):
59649         * m4/settime.m4 (gl_SETTIME):
59650         * m4/sha1.m4 (gl_SHA1):
59651         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
59652         * m4/stat-macros.m4 (gl_STAT_MACROS):
59653         * m4/stat-time.m4 (gl_STAT_TIME):
59654         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
59655         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
59656         * m4/strdup.m4 (gl_FUNC_STRDUP):
59657         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
59658         * m4/strndup.m4 (gl_FUNC_STRNDUP):
59659         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
59660         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
59661         * m4/time_r.m4 (gl_TIME_R):
59662         * m4/timespec.m4 (gl_TIMESPEC):
59663         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
59664         * m4/unlinkdir.m4 (gl_UNLINKDIR):
59665         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
59666         * m4/userspec.m4 (gl_USERSPEC):
59667         * m4/utimecmp.m4 (gl_UTIMECMP):
59668         * m4/utimens.m4 (gl_UTIMENS):
59669         * m4/xalloc.m4 (gl_XALLOC):
59670         * m4/xgetcwd.m4 (gl_XGETCWD):
59671         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
59672         * m4/xreadlink.m4 (gl_XREADLINK):
59673         * m4/xstrtod.m4 (gl_XSTRTOD):
59674         * m4/yesno.m4 (gl_YESNO):
59675         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59676         to get the necessary .h files and whatnot.
59677
59678 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
59679             Bruno Haible  <bruno@clisp.org>
59680
59681         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
59682         /bin/sh understanding of '!' conditional negation.
59683
59684 2006-08-21  Jim Meyering  <jim@meyering.net>
59685
59686         * modules/openat (Depends-on): Really alphabetize.
59687
59688         * modules/acl (Depends-on): Add error and quote.
59689
59690         * check-module (find_included_lib_files): Add at-func.c to the
59691         ok-to-include-more-than-once white list.
59692
59693         * modules/openat (Depends-on): Add lstat.  Alphabetize.
59694
59695 2006-08-21  Bruno Haible  <bruno@clisp.org>
59696
59697         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59698         Emit a pkgdata_DATA variable only if some snippets add contents to it.
59699         Reported by Martin Lambers <marlam@marlam.de>.
59700
59701 2006-08-21  Bruno Haible  <bruno@clisp.org>
59702
59703         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
59704         specify an installation location, don't emit a noinst_LIBRARIES or
59705         noinst_LTLIBRARIES assignment.
59706
59707 2006-08-21  Bruno Haible  <bruno@clisp.org>
59708
59709         BeOS portability.
59710         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
59711         BeOS has mbrtowc() but no <wctype.h>.
59712
59713 2006-08-21  Bruno Haible  <bruno@clisp.org>
59714
59715         BeOS portability.
59716         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
59717         exist.
59718
59719 2006-08-21  Bruno Haible  <bruno@clisp.org>
59720
59721         BeOS portability.
59722         * lib/mbchar.h: Include <wctype.h> only if it exists.
59723
59724 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59725
59726         Remove files that are no longer needed by their respective modules.
59727         * m4/obstack.m4: Remove.
59728         * m4/strerror_r.m4: Remove.
59729         * m4/uint32_t.m4: Remove.
59730         * m4/uintptr_t.m4: Remove.
59731         * m4/ullong_max.m4: Remove.
59732         * m4/xstrtoimax.m4: Remove.
59733         * m4/xstrtoumax.m4: Remove.
59734
59735         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
59736         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
59737         dependencies now capture this.
59738
59739         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
59740         Do not use AC_LIBSOURCES, since gnulib modules now do this.
59741         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
59742         * m4/human.m4 (gl_HUMAN): Likewise.
59743         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
59744         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
59745
59746         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
59747
59748         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
59749         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
59750         stdint.
59751         * m4/human.m4 (gl_HUMAN): Likewise.
59752         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
59753         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
59754         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59755         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59756         * m4/xstrtol (gl_XSTRTOL): Likewise.
59757
59758         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
59759         AC_TYPE_LONG_LONG_INT.
59760         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59761         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
59762         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
59763         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59764
59765         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
59766         on stdbool.
59767
59768         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
59769         (gl_PREREQ_XSTRTOUL): Remove.
59770
59771         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
59772
59773         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
59774         mode.
59775
59776 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59777
59778         Add and change modules to make it easier for coreutils to use
59779         gnulib-tool.
59780         * modules/backupfile (Files): Remove m4/d-ino.m4.
59781         (Depends-on): Add d-ino.
59782         * modules/cycle-check (Depends-on): Add stdint.
59783         (lib_SOURCES): Add cycle-check.h.
59784         * modules/d-ino: New module.
59785         * modules/d-type: New module.
59786         * modules/error (Files): Remove m4/strerror_r.m4.
59787         * modules/filemode (Files): Add m4/st_dm_mode.m4.
59788         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59789         m4/inttypes_h.m4, m4/uintmax_t.m4.
59790         (Depends-on): Add stdint.
59791         (lib_SOURCES): Add fsusage.h.
59792         * modules/getcwd (Files): Remove d-ino.m4.
59793         (Depends-on): Add d-ino.
59794         * modules/getndelim2 (Depends-on): Add stdint.
59795         * modules/glob (Files): Remove m4/d-type.m4.
59796         (Depends-on): Add d-type.
59797         * modules/host-os: New module.
59798         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
59799         m4/inttypes_h.m4, m4/uintmax_t.m4.
59800         * Depends-on: Add stdint.
59801         (lib_SOURCES): Add human.h.
59802         * modules/inttostr (Files): Remove m4/intmax_t.m4,
59803         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
59804         m4/uintmax_t.m4, m4/ulonglong.m4.
59805         (Depends-on): Add stdint.
59806         (EXTRA_DIST): Add inttostr.h.
59807         * modules/lchmod: New module.
59808         * modules/link-follow: New module.
59809         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
59810         (Depends-on): Add lchmod.
59811         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
59812         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
59813         (Depends-on): Add stdint.
59814         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
59815         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
59816         (Depends-on): Add stdint.
59817         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
59818         * modules/perl: New module.
59819         * modules/regex (Depends-on): Add stdint.
59820         * modules/rmdir-errno: New module.
59821         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59822         m4/intmax_t.m4.
59823         (Depends-on): Add stdint.
59824         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59825         m4/uintmax_t.m4.
59826         (Depends-on): Add stdint.
59827         * modules/unlink-busy: New module.
59828         * modules/utimecmp (Depends-on): Add stdint.
59829         * modules/uptime: New module.
59830         * modules/winsz-ioctl: New module.
59831         * modules/winsz-termios: New module.
59832         * modules/xnanosleep (Depends-on): Add nanosleep.
59833         * modules/ullong_max: Remove.
59834         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
59835         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
59836         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
59837         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
59838         (Depends-on): Add inttypes.
59839         (lib_SOURCES): Add xstrtol.h.
59840         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
59841         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
59842         * MODULES.html.sh: Move 'assert' into the assert section.
59843         Move 'dummy' into the linking section.
59844         Remove ullong_max.
59845         Add section for compatibility checks for POSIX:2001 functions,
59846         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
59847         winsz-ioctl, and winsz-termios into it.
59848         Add lchmod.
59849         Add top-level Misc section and put host-os, perl, and uptime
59850         into it.
59851
59852 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59853
59854         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
59855         now assume the stdint module.  Do not include inttypes.h.
59856         * lib/fsusage.h: Likewise.
59857         * lib/getndelim2.c: Likewise.
59858         * lib/human.h: Likewise.
59859         * lib/inttostr.h: Likewise.
59860         * lib/obstack.c: Likewise.
59861         * lib/regex_internal.h: Likewise.
59862         * lib/tempname.c: Likewise.
59863         * lib/utimecmp.c: Likewise.
59864         * lib/xstrtol.h: Likewise.
59865
59866         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
59867
59868         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
59869         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
59870         * lib/xtime.h: Likewise.
59871
59872 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59873
59874         * modules/openat (Files): Add lib/fchmodat.c.
59875         Fixes problem reported by Jay Youngman.
59876
59877 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59878
59879         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
59880         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
59881
59882 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
59883             Bruno Haible  <bruno@clisp.org>
59884
59885         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
59886         and is a script that invokes bison. Tighten the code. Add comments.
59887
59888 2006-08-18  Jim Meyering  <jim@meyering.net>
59889
59890         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
59891         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
59892         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
59893         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
59894
59895 2006-08-18  Bruno Haible  <bruno@clisp.org>
59896
59897         * modules/bison-i18n: New file.
59898         * MODULES.html.sh (Internationalization functions): Add it.
59899
59900 2006-08-18  Bruno Haible  <bruno@clisp.org>
59901
59902         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
59903         sys/statvfs.h. When getmntinfo was found, check its declaration and
59904         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
59905
59906 2006-08-18  Bruno Haible  <bruno@clisp.org>
59907
59908         * m4/bison-i18n.m4: New file, from bison.
59909
59910 2006-08-18  Bruno Haible  <bruno@clisp.org>
59911
59912         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
59913         (ME_DUMMY): Treat "kernfs" as a dummy.
59914         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
59915
59916 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59917
59918         Update from coreutils.
59919
59920         2006-08-15  Jim Meyering  <jim@meyering.net>
59921
59922         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
59923
59924         2006-01-17  Jim Meyering  <jim@meyering.net>
59925
59926         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
59927
59928         2006-01-11  Jim Meyering  <jim@meyering.net>
59929
59930         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
59931         Check for the lchmod function.
59932
59933 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59934
59935         Update from coreutils.
59936
59937         * lib/__fpending.h: Add copyright notice.
59938         * lib/fprintftime.h: Likewise.
59939         * lib/savedir.c: Use (C) in copyright notice.
59940         * lib/savedir.h: Likewise.
59941
59942         2006-08-15  Jim Meyering  <jim@meyering.net>
59943
59944         * lib/at-func.c: New file, with the logic of all emulated at-functions.
59945         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
59946         in support of the EXPECTED_ERRNO macro.
59947         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
59948         definitions.  Instead, define the appropriate symbols and include
59949         "at-func.c".
59950         * lib/mkdirat.c (mkdirat): Likewise.
59951         * lib/fchmodat.c (fchmodat): Likewise.
59952         (ENOSYS): Remove definition.
59953         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
59954         it.  Don't include "unistd--.h" -- it wasn't ever used.
59955
59956         2006-01-17  Jim Meyering  <jim@meyering.net>
59957
59958         Rewrite fts.c not to change the current working directory,
59959         by using openat, fstatat, fdopendir, etc..
59960
59961         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
59962         (HAVE_OPENAT_SUPPORT): Define.
59963         [_LIBC] (fchdir): Don't undef or define; no longer used.
59964         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
59965         Now, this `function' always succeeds, and consumes its file descriptor
59966         parameter -- so callers must not close such FDs.  Update callers.
59967         (diropen_fd, opendirat, cwd_advance_fd): New functions.
59968         (diropen): Add parameter, SP.  Adjust all callers.
59969         Implement using diropen_fd, rather than open.
59970         (fts_open): Initialize new member, fts_cwd_fd.
59971         Remove fts_rft-setting code.
59972         (fts_close): Close fts_cwd_fd, if necessary.
59973         (__opendir2): Define in terms of opendir or opendirat,
59974         depending on whether the FST_NOCHDIR flag is set.
59975         (fts_build): Since fts_safe_changedir consumes its FD, and since
59976         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
59977         and close the dup'd file descriptor upon failure.
59978         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
59979         (fts_safe_changedir): Tweak semantics to reflect that this function
59980         now calls cwd_advance_fd and hence consumes its FD argument.
59981         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
59982         [struct FTS] (fts_rft): Remove now-unused member.
59983         [struct FTS] (fts_cycle.state): Improve comment.
59984
59985         * lib/openat.c (openat_needs_fchdir): New function.
59986         * lib/openat.h (openat_needs_fchdir): Declare it.
59987
59988 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59989
59990         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
59991         Problem and fix reported by Pádraig Brady in
59992         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
59993
59994 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59995
59996         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
59997
59998 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59999
60000         * lib/memcoll.c (memcoll): Optimize for the common case where the
60001         arguments are bytewise equal.
60002
60003 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60004
60005         * doc/regexprops-generic.texi: Add a copyright notice.
60006
60007 2006-08-15  Bruno Haible  <bruno@clisp.org>
60008
60009         * modules/tmpdir (License): Change to LGPL.
60010
60011 2006-08-15  Bruno Haible  <bruno@clisp.org>
60012
60013         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
60014         module.
60015
60016 2006-08-14  Simon Josefsson  <jas@extundo.com>
60017
60018         * config/srclist.txt: Add gnupload.
60019
60020 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60021
60022         Change copyright notice from LGPL 2 to GPL 2, since that's the
60023         standard form used in the gnulib repository.
60024         * tests/test-lock.c: Likewise.
60025         * tests/test-stdint.c: Likewise.
60026         * tests/test-tls.c: Likewise.
60027
60028         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
60029         prelude-manager.  User shorter URLs for GNU projects, without '?'.
60030         Add copyright notice.
60031
60032         * check-module: Add copyright notice.  Output a copyright
60033         notice if "--version" is specified.
60034         * modules/COPYING: New file.
60035         * tests/test-getaddrinfo.c: Add copyright notice.
60036         * tests/test-verify.c: Likewise.
60037
60038 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60039
60040         Change copyright notice from LGPL 2 to GPL 2, since that's the
60041         standard form used in the gnulib repository.
60042         * lib/lock.c: LGPL -> GPL.
60043         * lib/lock.h: Likewise.
60044         * lib/strnlen1.c: Likewise.
60045         * lib/strnlen1.h: Likewise.
60046         * lib/tls.c: Likewise.
60047         * lib/tls.h: Likewise.
60048         * lib/tmpdir.c: Likewise.
60049
60050         * lib/TODO: Remove; this belongs only in coreutils.
60051
60052 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60053
60054         Add copyright notices to long-enough files that lack them, since
60055         otherwise the files aren't clearly free.  Use the same notice that
60056         getdate.texi already uses.
60057         * doc/alloca-opt.texi: Add copyright notice.
60058         * doc/alloca.texi: Likewise.
60059         * doc/ctime.texi: Likewise.
60060         * doc/functions.texi: Likewise.
60061         * doc/gcd.texi: Likewise.
60062         * doc/gnulib-tool.texi: Likewise.
60063         * doc/inet_ntoa.texi: Likewise.
60064         * doc/visibility.texi: Likewise.
60065
60066         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
60067         * doc/quote.texi: Add copyright notice.
60068
60069         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
60070         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
60071         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
60072         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
60073         is now obsolete, and give a pointer to the Sun list.
60074         Add copyright notice.
60075
60076 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60077
60078         * config/srclistvars.sh: Add copyright notice.
60079
60080 2006-08-14  Eric Blake  <ebb9@byu.net>
60081
60082         Import the following change from libc:
60083
60084         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
60085
60086         Upstream bug 2997.
60087         * lib/misc/error.c: Add space between program name and message if file
60088         name is missing.
60089
60090 2006-08-12  Karl Berry  <karl@gnu.org>
60091
60092         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
60093         remove, these originate in gnulib now.
60094
60095 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60096
60097         * doc/Makefile (standards.info standards.html standards.dvi):
60098         Also depend on make-stds.texi.
60099
60100 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60101
60102         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
60103         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
60104
60105         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
60106         in wchar_t.  Problem reported by Eric Blake.
60107
60108         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
60109         LEN is smaller than SIZE.  Suggested by Bruno Haible.
60110         Also, help the compiler to keep LEN in a register.
60111
60112 2006-08-11  Eric Blake  <ebb9@byu.net>
60113
60114         * users.txt: Sort.  Add tar.
60115
60116 2006-08-11  Bruno Haible  <bruno@clisp.org>
60117
60118         * users.txt: New file.
60119
60120 2006-08-11  Bruno Haible  <bruno@clisp.org>
60121
60122         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
60123         before <wchar.h>. Needed for OSF/1 and BSD/OS.
60124
60125 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60126
60127         * modules/snprintf (Depends-on): Remove minmax.
60128         (Maintainer): Add self and Bruno.
60129
60130 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60131
60132         * lib/.cppi-disable: Add snprintf.h, socket_.h.
60133         * lib/snprintf.c: Include <errno.h> and <limits.h>.
60134         (EOVERFLOW): Define if the system does not.
60135         Do not include "minmax.h"; it wasn't used.
60136         (snprintf): Don't assume size_t promotes to an unsigned type.
60137         Fix bug when generated string was too long for the buffer: the
60138         buffer's contents are supposed to be the initial prefix of the
60139         output.  Don't assume vasnprintf returns EOVERFLOW if the size
60140         exceeds INT_MAX; do the check ourselves.
60141
60142         Import the following changes from libc:
60143
60144         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
60145
60146         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
60147         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
60148         set wc to the byte which couldn't be converted.
60149         (re_string_reconstruct): Don't clear valid_raw_len before calling
60150         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
60151         tip_context using re_string_context_at.
60152
60153         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
60154
60155         * lib/posix/regex.h: g++ still cannot handled [restrict].
60156
60157         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
60158
60159         * lib/posix/regex.h: Remove special handling for VMS.
60160
60161 2006-08-10  Jim Meyering  <jim@meyering.net>
60162
60163         * modules/same-inode: New module.
60164         * modules/dev-ino: New module.
60165         * modules/cycle-check: Depend on these modules, rather than simply
60166         including their .h files.
60167         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
60168         required via m4/cycle-check.m4.
60169         * modules/same: Depend on new same-inode module, rather than
60170         including same-inode.h.
60171         * modules/chdir-safer: New file.
60172
60173         * modules/chown (Depends-on): Add stat-macros.
60174
60175 2006-08-10  Jim Meyering  <jim@meyering.net>
60176
60177         * m4/cycle-check.m4: New file.
60178         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
60179         * m4/dev-ino.m4, m4/same-inode.m4: New files.
60180
60181 2006-08-10  Eric Blake  <ebb9@byu.net>
60182
60183         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
60184         in from original proposal.
60185
60186 2006-08-10  Eric Blake  <ebb9@byu.net>
60187         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60188
60189         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
60190         namespace.
60191
60192 2006-08-10  Bruno Haible  <bruno@clisp.org>
60193
60194         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
60195         as well.
60196
60197 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60198
60199         Sync from coreutils.
60200
60201         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
60202
60203         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
60204         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
60205
60206 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60207
60208         * modules/restrict: Remove; no longer needed now that we assume
60209         Autoconf 2.59 or later.
60210         * MODULES.html.sh: Remove 'restrict'.
60211         * modules/argp (Depends-on): Remove 'restrict'.
60212         * modules/base64 (Depends-on): Likewise.
60213         * modules/gc (Depends-on): Likewise.
60214         * modules/getaddrinfo (Depends-on): Likewise.
60215         * modules/glob (Depends-on): Likewise.
60216         * modules/inet_ntop (Depends-on): Likewise.
60217         * modules/inet_pton (Depends-on): Likewise.
60218         * modules/memxor (Depends-on): Likewise.
60219         * modules/regex (Depends-on): Likewise.
60220         * modules/strtok_r (Depends-on): Likewise.
60221         * modules/time_r (Depends-on): Likewise.
60222
60223 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60224
60225         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
60226         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
60227         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60228         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
60229         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60230         * m4/memxor.m4 (gl_MEMXOR): Likewise.
60231         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
60232         gl_C_RESTRICT replaced by AC_C_RESTRICT.
60233
60234         Merge from coreutils.
60235         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
60236         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
60237         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60238         * m4/time_r.m4 (gl_TIME_R): Likewise.
60239
60240 2006-08-09  Karl Berry  <karl@gnu.org>
60241
60242         * config/srclist.txt: no more gettext-tools, per Bruno.
60243
60244 2006-08-08  Eric Blake  <ebb9@byu.net>
60245
60246         * modules/verror: New module.
60247         * MODULES.html.sh: Document it.
60248
60249 2006-08-08  Eric Blake  <ebb9@byu.net>
60250
60251         * lib/verror.h, lib/verror.c: New files.
60252
60253 2006-08-08  Eric Blake  <ebb9@byu.net>
60254
60255         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
60256         verror_at_line output complies with GNU Coding Standards even when
60257         file is NULL.
60258
60259 2006-08-07  Bruno Haible  <bruno@clisp.org>
60260
60261         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
60262         versions of AIX.
60263         Reported by Ralf Wildenhues.
60264
60265 2006-08-07  Bruno Haible  <bruno@clisp.org>
60266
60267         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
60268         in an AC_DEFUN. Needed so that the autoconf snippets can use
60269         AC_REQUIRE.
60270
60271 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60272
60273         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60274         Initialize pkgdata_DATA.
60275         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
60276         overriding it.
60277
60278 2006-08-06  Eric Blake  <ebb9@byu.net>
60279
60280         * lib/error.h: Fold in some upstream changes from glibc.
60281         * lib/error.c: Likewise.
60282
60283 2006-08-04  Bruno Haible  <bruno@clisp.org>
60284
60285         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60286         Make the mostlyclean-local rule depend on mostlyclean-generic.
60287         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
60288
60289 2006-07-31  Bruno Haible  <bruno@clisp.org>
60290
60291         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
60292         <stdlib.h>, <string.h>.
60293
60294 2006-07-30  Bruno Haible  <bruno@clisp.org>
60295
60296         * modules/readlink (License): Change to LGPL.
60297
60298 2006-07-30  Bruno Haible  <bruno@clisp.org>
60299
60300         * modules/javaversion (Makefile.am): Distribute javaversion.java and
60301         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
60302         set PKGDATADIR to point to it.
60303
60304 2006-07-30  Bruno Haible  <bruno@clisp.org>
60305
60306         * modules/csharpexec (configure.ac): Comment out macro invocation.
60307         * modules/javaexec (configure.ac): Likewise.
60308         * modules/javacomp-script (configure.ac): Likewise.
60309
60310         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
60311
60312 2006-07-30  Bruno Haible  <bruno@clisp.org>
60313
60314         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
60315         linked-list.
60316
60317 2006-07-30  Bruno Haible  <bruno@clisp.org>
60318
60319         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
60320
60321 2006-07-30  Bruno Haible  <bruno@clisp.org>
60322
60323         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60324         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
60325         get removed.
60326
60327 2006-07-29  Bruno Haible  <bruno@clisp.org>
60328
60329         Make it possible for gnulib-tool to work with locally modified or
60330         augmented gnulib repositories.
60331         * gnulib-tool (func_usage): Document --local-dir option.
60332         (local_gnulib_dir): New variable.
60333         Handle --local-dir option.
60334         (func_lookup_file): New function.
60335         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
60336         (func_get_description, func_get_filelist, func_get_description,
60337         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
60338         func_get_automake_snippet, func_get_include_directive,
60339         func_get_license, func_get_maintainer): Use func_lookup_file.
60340         (func_import, func_create_testdir): Use func_lookup_file.
60341
60342 2006-07-29  Bruno Haible  <bruno@clisp.org>
60343
60344         * modules/setenv (Depends-on): Add unistd.
60345
60346 2006-07-29  Bruno Haible  <bruno@clisp.org>
60347
60348         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
60349
60350 2006-07-29  Bruno Haible  <bruno@clisp.org>
60351
60352         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
60353
60354 2006-07-29  Bruno Haible  <bruno@clisp.org>
60355
60356         * gnulib-tool (import, update): If there is no Makefile.am, look at
60357         aclocal.m4, instead of bailing out.
60358
60359 2006-07-29  Bruno Haible  <bruno@clisp.org>
60360
60361         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
60362         Categorize the options by when they are useful.
60363
60364 2006-07-29  Bruno Haible  <bruno@clisp.org>
60365
60366         * gnulib-tool (func_usage): Document option --no-libtool.
60367         Handle option --no-libtool.
60368         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
60369         for changed semantics of $libtool variable.
60370         (func_import): Likewise. If libtool is not used, show this through
60371         an option --no-libtool.
60372         (func_create_testdir): Update.
60373
60374 2006-07-29  Bruno Haible  <bruno@clisp.org>
60375
60376         * gnulib-tool (func_import): Extend error message about missing
60377         --doc-base.
60378
60379 2006-07-29  Bruno Haible  <bruno@clisp.org>
60380
60381         * gnulib-tool (func_import): Don't create the $docbase directory if
60382         there is no file to store there.
60383
60384 2006-07-29  Bruno Haible  <bruno@clisp.org>
60385
60386         * gnulib-tool (autoconf_minversion): If a --dir option is given and
60387         relevant, look for configure.ac there, not in the current directory.
60388         Also use a simple search for AC_PREREQ, not "autoconf --trace".
60389
60390 2006-07-29  Bruno Haible  <bruno@clisp.org>
60391
60392         * gnulib-tool (SORT): New variable.
60393         (func_usage): Undocument --assume-autoconf option.
60394         Remove --assume-autoconf option handling.
60395         (autoconf_minversion): Determine from the contents of configure.ac.
60396         (func_import): Remove autoconf_minversion handling.
60397         Suggested by Eric Blake.
60398
60399 2006-07-29  Bruno Haible  <bruno@clisp.org>
60400
60401         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
60402
60403 2006-07-29  Bruno Haible  <bruno@clisp.org>
60404
60405         * config/srclist.txt (*setenv.[ch]): Remove rules.
60406
60407 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60408
60409         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
60410
60411 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60412
60413         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
60414         arpa/inet.h.
60415
60416 2006-07-28  Simon Josefsson  <jas@extundo.com>
60417
60418         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
60419         * modules/inet_pton (Depends-on): Likewise.
60420
60421 2006-07-28  Simon Josefsson  <jas@extundo.com>
60422
60423         * m4/netinet_in_h.m4: New file.
60424
60425 2006-07-28  Simon Josefsson  <jas@extundo.com>
60426
60427         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
60428         #include's.
60429
60430 2006-07-28  Simon Josefsson  <jas@extundo.com>
60431
60432         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
60433         #include's.
60434
60435 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
60436
60437         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
60438         setgid on directories only if they set these bits.
60439         * lib/modechange.h: Remove obsolete comment about masks.
60440
60441 2006-07-28  Eric Blake  <ebb9@byu.net>
60442
60443         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
60444         macro expansion.
60445
60446 2006-07-28  Bruno Haible  <bruno@clisp.org>
60447
60448         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
60449
60450 2006-07-28  Bruno Haible  <bruno@clisp.org>
60451
60452         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
60453
60454 2006-07-28  Bruno Haible  <bruno@clisp.org>
60455
60456         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60457         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60458         Define fallbacks.
60459         Avoids link error on FreeBSD 4.x.
60460         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60461
60462         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
60463         encoding.
60464         * lib/mbswidth.c (iswcntrl): Likewise.
60465
60466 2006-07-27  Bruno Haible  <bruno@clisp.org>
60467
60468         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
60469         test.
60470
60471 2006-07-27  Bruno Haible  <bruno@clisp.org>
60472
60473         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
60474         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
60475         defined.
60476
60477 2006-07-26  Eric Blake  <ebb9@byu.net>
60478
60479         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
60480
60481 2006-07-26  Eric Blake  <ebb9@byu.net>
60482
60483         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
60484         like mingw that lack mkstemp.
60485         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
60486         avoid compilation warning on mingw.
60487
60488 2006-07-26  Bruno Haible  <bruno@clisp.org>
60489
60490         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
60491         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
60492         INT_FAST*_MIN, INTPTR_MIN.
60493
60494 2006-07-25  Bruno Haible  <bruno@clisp.org>
60495
60496         * modules/version-etc (Depends-on): Add stdarg.
60497
60498 2006-07-25  Bruno Haible  <bruno@clisp.org>
60499
60500         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
60501         complex commands.
60502
60503 2006-07-25  Bruno Haible  <bruno@clisp.org>
60504
60505         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
60506         defined in <stdarg.h> or config.h.
60507
60508 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60509
60510         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
60511         (gl_STDIO_SAFER): Remove.
60512
60513 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60514
60515         * MODULES.html.sh (File stream based Input/Output):
60516         Add fopen-safer, tmpfile-safer; remove stdio-safer.
60517         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
60518         * modules/fopen-safer, modules/tmpfile-safer: New files.
60519         * modules/stdio-safer: Remove.
60520
60521 2006-07-24  Bruno Haible  <bruno@clisp.org>
60522
60523         * modules/tmpdir: New file.
60524         * MODULES.html.sh (File system functions): Add it.
60525
60526 2006-07-24  Bruno Haible  <bruno@clisp.org>
60527
60528         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
60529         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
60530
60531 2006-07-24  Bruno Haible  <bruno@clisp.org>
60532
60533         * modules/clean-temp: New file.
60534
60535 2006-07-24  Bruno Haible  <bruno@clisp.org>
60536
60537         * m4/tmpdir.m4: New file, from GNU gettext.
60538
60539 2006-07-24  Bruno Haible  <bruno@clisp.org>
60540
60541         * lib/tmpdir.h: New file, from GNU gettext.
60542         * lib/tmpdir.c: New file, from GNU gettext.
60543
60544 2006-07-24  Bruno Haible  <bruno@clisp.org>
60545
60546         * lib/clean-temp.h: New file, from GNU gettext.
60547         * lib/clean-temp.c: New file, from GNU gettext.
60548
60549 2006-07-23  Eric Blake  <ebb9@byu.net>
60550
60551         * modules/stdio-safer (Files): Add tmpfile-safer.c.
60552         (Depends-on): Add binary-io.
60553
60554 2006-07-23  Eric Blake  <ebb9@byu.net>
60555
60556         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
60557
60558 2006-07-23  Eric Blake  <ebb9@byu.net>
60559
60560         * lib/tmpfile-safer.c: New file.
60561         * lib/stdio-safer.h (fopen_safer): Add prototype.
60562         * lib/stdio--.h (tmpfile): Make safer.
60563
60564 2006-07-23  Bruno Haible  <bruno@clisp.org>
60565
60566         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
60567         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
60568         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
60569         gl_linked_remove_at): Use it.
60570
60571 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60572         and Simon Josefsson <jas@extundo.com>
60573
60574         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
60575
60576         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
60577
60578 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60579
60580         * modules/close-stream: New file.
60581         * modules/closeout (Description): Make it clear that it exits
60582         with a diagnostic on error.
60583         (Depends-on): Add close-stream.  Remove fpending, stdbool.
60584         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
60585
60586 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60587
60588         * m4/close-stream.m4: New file.
60589
60590 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60591
60592         * lib/close-stream.c, lib/close-stream.h: New files.
60593
60594 2006-07-22  Bruno Haible  <bruno@clisp.org>
60595
60596         Merge from GNU gettext 0.15.
60597
60598         2006-05-01  Bruno Haible  <bruno@clisp.org>
60599
60600                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
60601
60602         2006-07-22  Bruno Haible  <bruno@clisp.org>
60603
60604                 * modules/javaversion: New file.
60605                 * MODULES.html.sh (Java): Add javaversion.
60606
60607         2006-03-12  Bruno Haible  <bruno@clisp.org>
60608
60609                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
60610
60611         2005-12-04  Bruno Haible  <bruno@clisp.org>
60612
60613                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
60614                 (untested).
60615
60616         2006-06-21  Bruno Haible  <bruno@clisp.org>
60617
60618                 Avoid warnings from recent versions of mcs.
60619                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
60620                 -o, -L, -r any more. Use options documented since mcs-1.0
60621                 instead. Similarly for -g.
60622
60623         2005-12-04  Bruno Haible  <bruno@clisp.org>
60624
60625                 * build-aux/csharpcomp.sh.in: Suffix for resources is
60626                 .resources, not .resource.
60627
60628         2005-07-09  Bruno Haible  <bruno@clisp.org>
60629
60630                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
60631                 add a .dll suffix.
60632                 Reported by Mark Junker <mjscod@gmx.de>.
60633
60634         2006-07-22  Bruno Haible  <bruno@clisp.org>
60635
60636                 * modules/gettext: Upgrade to gettext-0.15.
60637                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
60638                 m4/visibility.m4.
60639                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
60640
60641 2006-07-22  Bruno Haible  <bruno@clisp.org>
60642
60643         Merge from GNU gettext 0.15.
60644
60645         2006-03-25  Bruno Haible  <bruno@clisp.org>
60646
60647                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
60648
60649         2006-07-21  Bruno Haible  <bruno@clisp.org>
60650
60651                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
60652                 "1.1".
60653
60654         2006-05-09  Bruno Haible  <bruno@clisp.org>
60655
60656                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
60657                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
60658                 for the conftestver execution.
60659
60660         2006-05-01  Bruno Haible  <bruno@clisp.org>
60661
60662                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
60663                 optional target-version argument. Verify that the compiler
60664                 groks source of the specified source-version, or add -source
60665                 option as necessary. Verify that the compiler produces
60666                 bytecode in the specified target-version, or add -target and
60667                 -source options as necessary. Make the result of the test
60668                 available as variable CONF_JAVAC. Also log error output in
60669                 config.log.
60670
60671         2006-03-11  Bruno Haible  <bruno@clisp.org>
60672
60673                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
60674
60675         2006-05-09  Bruno Haible  <bruno@clisp.org>
60676
60677                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
60678                 CLASSPATH_SEPARATOR to a semicolon.
60679
60680         2006-03-12  Bruno Haible  <bruno@clisp.org>
60681
60682                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
60683                 available as variable CONF_JAVA, for subsequent autoconf
60684                 tests. Also log error output in config.log.
60685
60686         2006-07-19  Bruno Haible  <bruno@clisp.org>
60687
60688                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
60689                 that getline works on glibc2 systems. Needed to avoid trouble
60690                 in relocatable.c.
60691                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
60692
60693         2005-12-04  Bruno Haible  <bruno@clisp.org>
60694
60695                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
60696                 launcher (untested).
60697
60698         2005-12-04  Bruno Haible  <bruno@clisp.org>
60699
60700                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
60701
60702         2006-07-22  Bruno Haible  <bruno@clisp.org>
60703
60704                 * gettext.m4: Update from GNU gettext-0.15.
60705                 * nls.m4: Likewise.
60706                 * po.m4: Likewise.
60707                 * inttypes-pri.m4: Likewise.
60708                 * inttypes-h.m4: Renamed from inttypes.m4.
60709                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
60710
60711 2006-07-22  Bruno Haible  <bruno@clisp.org>
60712
60713         Merge from GNU gettext 0.15.
60714
60715         2005-07-05  Bruno Haible  <bruno@clisp.org>
60716
60717                 * printf-args.c (printf_fetchargs): Work around broken
60718                 definition of wint_t on mingw.
60719
60720         2005-02-12  Bruno Haible  <bruno@clisp.org>
60721
60722                 * xallocsa.h: Add extern "C" for C++.
60723
60724         2006-05-17  Bruno Haible  <bruno@clisp.org>
60725
60726                 Cygwin portability.
60727                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
60728
60729         2006-04-30  Bruno Haible  <bruno@clisp.org>
60730
60731                 * progreloc.c: Include <mach-o/dyld.h> if available.
60732                 (find_executable): Use _NSGetExecutablePath when possible.
60733
60734         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60735
60736                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
60737                 function.
60738
60739         2005-12-29  Bruno Haible  <bruno@clisp.org>
60740
60741                 * progreloc.c (set_program_name_and_installdir): Fix
60742                 compilation error.
60743
60744         2005-12-04  Bruno Haible  <bruno@clisp.org>
60745
60746                 Cygwin portability.
60747                 * progreloc.c: Include <windows.h> also on Cygwin.
60748                 (find_executable): Add support for Cygwin.
60749                 (set_program_name_and_installdir): Handle also platforms with
60750                 nonempty EXEEXT.
60751
60752         2006-07-11  Bruno Haible  <bruno@clisp.org>
60753
60754                 * javacomp.c: Fix a comment.
60755                 Reported by Jim Meyering.
60756
60757         2006-04-30  Bruno Haible  <bruno@clisp.org>
60758
60759                 * javacomp.h (compile_java_class): Add source_version,
60760                 target_version arguments.
60761                 * javacomp.c: Rewritten to choose only a compiler that
60762                 respects the specified source_version and target_version.
60763
60764         2006-06-27  Bruno Haible  <bruno@clisp.org>
60765
60766                 Assume correct S_ISDIR macro.
60767                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
60768
60769         2006-07-22  Bruno Haible  <bruno@clisp.org>
60770
60771                 * javaversion.h: New file, from GNU gettext.
60772                 * javaversion.c: New file, from GNU gettext.
60773                 * javaversion.java: New file, from GNU gettext.
60774                 * javaversion.class: New file, from GNU gettext.
60775
60776         2006-05-17  Bruno Haible  <bruno@clisp.org>
60777
60778                 Cygwin portability.
60779                 * javaexec.c (execute_java_class): Test for jview program
60780                 also on Cygwin.
60781
60782         2006-04-09  Bruno Haible  <bruno@clisp.org>
60783
60784                 * fatal-signal.c: Don't include string.h.
60785                 (at_fatal_signal): Use a copying loop instead of memcpy.
60786
60787         2005-12-04  Bruno Haible  <bruno@clisp.org>
60788
60789                 * csharpexec.c: Add support for 'clix' launcher (untested).
60790                 (execute_csharp_using_sscli): New function.
60791                 (execute_csharp_program): Call it.
60792
60793         2006-06-21  Bruno Haible  <bruno@clisp.org>
60794
60795                 Avoid warnings from recent versions of mcs.
60796                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
60797                 -o, -L, -r any more. Use options documented since mcs-1.0
60798                 instead. Similarly for -g.
60799
60800         2005-07-09  Bruno Haible  <bruno@clisp.org>
60801
60802                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
60803                 add a .dll suffix.
60804                 Reported by Mark Junker <mjscod@gmx.de>.
60805
60806         2006-06-17  Bruno Haible  <bruno@clisp.org>
60807
60808                 * config.charset: Update for NetBSD 3.0.
60809
60810         2006-05-17  Bruno Haible  <bruno@clisp.org>
60811
60812                 Cygwin portability.
60813                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
60814
60815         2006-05-16  Bruno Haible  <bruno@clisp.org>
60816
60817                 * localcharset.c [CYGWIN]: Include <windows.h>.
60818                 (get_charset_aliases): For Cygwin, return the same CPxxx
60819                 aliases list as under WIN32.
60820                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
60821                 the environment variables. Fall back to GetACP().
60822
60823         2006-04-05  Bruno Haible  <bruno@clisp.org>
60824
60825                 * config.charset: Update Juan Manuel Guerrero's address.
60826
60827         2005-02-12  Bruno Haible  <bruno@clisp.org>
60828
60829                 * allocsa.h: Add extern "C" for C++.
60830
60831         2005-02-10  Bruno Haible  <bruno@clisp.org>
60832
60833                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
60834                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
60835
60836         2006-07-22  Bruno Haible  <bruno@clisp.org>
60837
60838                 * gettext.h: Update to GNU gettext-0.15.
60839
60840 2006-07-22  Bruno Haible  <bruno@clisp.org>
60841
60842         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
60843         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
60844         lib-prefix.m4, longdouble.m4, ssize_t.m4.
60845
60846 2006-07-21  Eric Blake  <ebb9@byu.net>
60847
60848         * modules/stdlib-safer: New file.
60849         * MODULES.html.sh (File stream based Input/Output): Add
60850         stdlib-safer.
60851
60852 2006-07-21  Eric Blake  <ebb9@byu.net>
60853
60854         * lib/stdlib-safer.h: New file from coreutils, required by
60855         stdlib--.h.
60856
60857 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
60858
60859         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
60860
60861 2006-07-20  Bruno Haible  <bruno@clisp.org>
60862
60863         * gnulib-tool: Recognize new option --assume-autoconf.
60864         (autoconf_minversion): New variable.
60865         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
60866
60867 2006-07-20  Bruno Haible  <bruno@clisp.org>
60868
60869         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
60870
60871 2006-07-19  Derek R. Price  <derek@ximbiot.com>
60872
60873         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
60874         Reindent and repaginate.
60875
60876 2006-07-19  Derek Price  <derek@ximbiot.com>
60877
60878         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
60879         Correct grammar.
60880
60881 2006-07-17  Bruno Haible  <bruno@clisp.org>
60882
60883         * modules/list: New file.
60884         * modules/array-list: New file.
60885         * modules/carray-list, modules/carray-list-tests: New files.
60886         * modules/linked-list, modules/linked-list-tests: New files.
60887         * modules/avltree-list, modules/avltree-list-tests: New files.
60888         * modules/rbtree-list, modules/rbtree-list-tests: New files.
60889         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
60890         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
60891         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
60892         * modules/oset: New file.
60893         * modules/array-oset: New file.
60894         * modules/avltree-oset, modules/avltree-oset-tests: New files.
60895         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
60896         * tests/test-carray_list.c: New file.
60897         * tests/test-linked_list.c: New file.
60898         * tests/test-avltree_list.c: New file.
60899         * tests/test-rbtree_list.c: New file.
60900         * tests/test-linkedhash_list.c: New file.
60901         * tests/test-avltreehash_list.c: New file.
60902         * tests/test-rbtreehash_list.c: New file.
60903         * tests/test-avltree_oset.c: New file.
60904         * tests/test-rbtree_oset.c: New file.
60905         * MODULES.html.sh (Container data structures): New section.
60906
60907 2006-07-17  Bruno Haible  <bruno@clisp.org>
60908
60909         * m4/gl_list.m4: New file.
60910
60911 2006-07-17  Bruno Haible  <bruno@clisp.org>
60912
60913         * lib/gl_list.h: New file.
60914         * lib/gl_list.c: New file.
60915         * lib/gl_array_list.h: New file.
60916         * lib/gl_array_list.c: New file.
60917         * lib/gl_carray_list.h: New file.
60918         * lib/gl_carray_list.c: New file.
60919         * lib/gl_linked_list.h: New file.
60920         * lib/gl_linked_list.c: New file.
60921         * lib/gl_anylinked_list1.h: New file.
60922         * lib/gl_anylinked_list2.h: New file.
60923         * lib/gl_avltree_list.h: New file.
60924         * lib/gl_avltree_list.c: New file.
60925         * lib/gl_anyavltree_list1.h: New file.
60926         * lib/gl_anyavltree_list2.h: New file.
60927         * lib/gl_rbtree_list.h: New file.
60928         * lib/gl_rbtree_list.c: New file.
60929         * lib/gl_anyrbtree_list1.h: New file.
60930         * lib/gl_anyrbtree_list2.h: New file.
60931         * lib/gl_anytree_list1.h: New file.
60932         * lib/gl_anytree_list2.h: New file.
60933         * lib/gl_linkedhash_list.h: New file.
60934         * lib/gl_linkedhash_list.c: New file.
60935         * lib/gl_anyhash_list1.h: New file.
60936         * lib/gl_anyhash_list2.h: New file.
60937         * lib/gl_avltreehash_list.h: New file.
60938         * lib/gl_avltreehash_list.c: New file.
60939         * lib/gl_rbtreehash_list.h: New file.
60940         * lib/gl_rbtreehash_list.c: New file.
60941         * lib/gl_anytreehash_list1.h: New file.
60942         * lib/gl_anytreehash_list2.h: New file.
60943
60944         * lib/gl_oset.h: New file.
60945         * lib/gl_oset.c: New file.
60946         * lib/gl_array_oset.h: New file.
60947         * lib/gl_array_oset.c: New file.
60948         * lib/gl_avltree_oset.h: New file.
60949         * lib/gl_avltree_oset.c: New file.
60950         * lib/gl_rbtree_oset.h: New file.
60951         * lib/gl_rbtree_oset.c: New file.
60952         * lib/gl_anytree_oset.h: New file.
60953
60954 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60955
60956         * m4/mkancesdirs.m4: New file.
60957         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
60958         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
60959         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
60960         it.
60961
60962 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60963
60964         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
60965         * lib/mkancesdirs.h: New files.
60966         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
60967         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
60968         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
60969         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
60970         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
60971         callers changed.  Revamp internals significantly, by not
60972         attempting to create directories that are temporarily more
60973         permissive than the final results.  Do not attempt to use
60974         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
60975         This removes some race conditions, fixes some bugs, and simplifies
60976         things.  Use new dirchownmod function to do owner and mode changes.
60977         * lib/mkdir-p.h: Likewise.
60978         * lib/modechange.c (octal_to_mode): New function.
60979         (struct mode_change): New member mentioned.
60980         (make_node_op_equals): New arg mentioned.  All callers changed.
60981         (mode_compile): Keep track of which mode bits the user has explicitly
60982         mentioned.
60983         (mode_adjust): New arg DIR, so that we implement the X op correctly.
60984         New arg PMODE_BITS, to keep track of which mode bits the user
60985         mentioned; it treats S_ISUID and S_ISGID speciall.
60986         All callers changed.
60987         * lib/modechange.h: Likewise.
60988
60989 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60990
60991         * MODULES.html.sh: Add mkancestors.
60992         * modules/mkancesdirs: New module.
60993         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
60994         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
60995         The chdir-safer and afs files are now orphans; I'll remove them
60996         unless someone speaks up.
60997         Add lib/dirchownmod.c, lib/dirchownmod.h.
60998         (Depends-on): Remove alloca, chown, save-cwd, dirname.
60999         Add lchown, mkancesdirs.
61000         (Maintainer): Add self.
61001
61002 2006-07-15  Karl Berry  <karl@gnu.org>
61003
61004         * gnulib-tool: help message wording/arrangement.
61005
61006 2006-07-14  Simon Josefsson  <jas@extundo.com>
61007
61008         * doc/gnulib.texi (Libtool and Windows): New section.
61009
61010 2006-07-12  Simon Josefsson  <jas@extundo.com>
61011
61012         * modules/gendocs (License): Fix license, approved by Karl.
61013
61014 2006-07-12  Eric Blake  <ebb9@byu.net>
61015
61016         * MODULES.html.sh: Add gendocs.
61017
61018 2006-07-11  Eric Blake  <ebb9@byu.net>
61019
61020         * modules/fdl: New module, to install doc/fdl.texi.
61021         * MODULES.html.sh: Add new section for documentation modules.
61022         * gnulib-tool: Avoid space-tab.
61023         (--doc-base): New option, to manage files from doc.
61024
61025 2006-07-11  Eric Blake  <ebb9@byu.net>
61026
61027         * m4/absolute-header.m4: Fix comments to match recent change.
61028
61029 2006-07-11  Eric Blake  <ebb9@byu.net>
61030
61031         * gnulib-tool: List --doc-base before --tests-base.
61032
61033 2006-07-11  Derek R. Price  <derek@ximbiot.com>
61034
61035         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
61036
61037 2006-07-11  Bruno Haible  <bruno@clisp.org>
61038
61039         * README: Mention where to put documentation.
61040
61041 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61042
61043         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
61044
61045 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61046
61047         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
61048         to stdint.m4.
61049
61050 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61051
61052         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
61053         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
61054         "no/such/file/stdint.h" when there is no such file, so that
61055         the resulting C code can be parsed by dodgy compilers.
61056         Problems reported by Bob Proulx.
61057
61058 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61059
61060         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
61061         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61062         macros into the GNU _D_EXACT_NAMLEN.
61063         * lib/savedir.c:  Likewise.
61064         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
61065
61066 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61067         and Paul Eggert  <eggert@cs.ucla.edu>
61068
61069         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
61070         * m4/savedir.m4:
61071         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61072         macros into the GNU _D_EXACT_NAMLEN.
61073
61074 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61075
61076         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
61077         around the absolute name, to work around a problem with the HP-UX
61078         11.23 native C compiler, reported by Bob Proulx.
61079
61080 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61081
61082         * doc/maintain.texi, make-stds.texi: Sync from
61083         <http://savannah.gnu.org/projects/gnustandards>.
61084
61085 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61086
61087         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
61088
61089 2006-07-09  Jim Meyering  <jim@meyering.net>
61090
61091         * m4/glob.m4: Remove a doubled word in a comment.
61092
61093 2006-07-09  Jim Meyering  <jim@meyering.net>
61094
61095         * lib/argp-pv.c: Remove a doubled word in a comment.
61096         * lib/check-version.c (check_version): Likewise.
61097         * lib/javacomp.c (compile_java_class): Likewise.
61098
61099 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61100
61101         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
61102         for the benefit of people using Autoconf 2.60.  If you want to
61103         support older Autoconf versions you can copy m4/onceonly_2_57.m4
61104         (or m4/onceonly.m4, if pre-2.57) manually.
61105
61106 2006-07-08  Jim Meyering  <jim@meyering.net>
61107
61108         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
61109         comment.
61110         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
61111         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
61112         comment.
61113
61114 2006-07-08  Jim Meyering  <jim@meyering.net>
61115
61116         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
61117
61118 2006-07-07  Simon Josefsson  <jas@extundo.com>
61119
61120         * tests/test-crc.c: Change expected crc value, the test vector
61121         were probably computed using the old broken crc.c?
61122
61123 2006-07-06  Simon Josefsson  <jas@extundo.com>
61124
61125         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
61126         now the canonical place for the M4 file).
61127
61128         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
61129         from the sys_socket dependency now.
61130
61131         * modules/inet_pton (Files): Ditto.
61132
61133         * modules/inet_ntop (Files): Ditto.
61134
61135 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61136
61137         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
61138         not gl_PREREQ_GETUSERSHELL.
61139
61140 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61141
61142         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
61143         with only one argument, for Autoconf 2.60.
61144         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
61145         expand to nothing, so add a shell command to avoid syntax error.
61146         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61147
61148 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61149
61150         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
61151
61152 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61153
61154         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
61155         no longer needed.  Check for isblank decl.
61156         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
61157         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
61158         of existence.
61159
61160 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61161
61162         * lib/getloadavg.c: Use __VMS, not VMS.
61163         * lib/getopt.c: Likewise.
61164         * lib/getpagesize.h: Likewise.
61165         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
61166         and probably does not work.
61167
61168 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61169
61170         * lib/.cppi-disable: Add wcwidth.
61171         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
61172         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
61173         (ISGRAPH): Remove.  All uses changed to isgraph.
61174         (FOLD) [!defined _LIBC]: Remove special case.
61175         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
61176         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
61177         HAVE_ISBLANK.
61178         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
61179         case.
61180
61181 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61182
61183         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
61184         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
61185         brackets.  Other minor changes to suppress some compiler
61186         warnings.
61187
61188 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61189         and Paul Eggert  <eggert@cs.ucla.edu>
61190
61191         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
61192         of invoking obsolescent AC_HEADER_DIRENT macro.
61193         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61194         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
61195         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61196         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
61197         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
61198         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61199         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
61200         * m4/readdir.m4: Remove; no longer needed.
61201
61202 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61203         and Paul Eggert  <eggert@cs.ucla.edu>
61204
61205         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
61206         Don't worry about this obsolete case any more.
61207         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
61208         directories.
61209         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
61210         worry about this obsolete case any more.
61211         * lib/fts.c: Likewise.
61212         * lib/getcwd.c: Likewise.
61213         * lib/glob.h: Likewise.
61214         * lib/savedir.c: Likewise.
61215
61216 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61217
61218         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
61219         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
61220         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
61221         needed.
61222         All uses removed.
61223         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61224         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61225         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
61226         needed.
61227         * m4/getdate.m4 (gl_GETDATE): Likewise.
61228         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61229         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61230         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61231         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61232         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61233         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61234         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
61235         needed.
61236
61237 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61238
61239         * lib/memcasecmp.c: Include <limits.h>.
61240         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
61241         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
61242         Don't assume isdigit succeeds only on '0' through '9'.
61243
61244 2006-07-05  Eric Blake  <ebb9@byu.net>
61245
61246         * modules/getaddrinfo (Depends-on): Add snprintf.
61247
61248 2006-07-05  Eric Blake  <ebb9@byu.net>
61249
61250         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
61251         to avoid 'header present but could not be compiled' on cygwin.
61252
61253 2006-07-05  Eric Blake  <ebb9@byu.net>
61254
61255         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
61256         missing from netdb.h.
61257         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
61258
61259 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61260
61261         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
61262         no longer needed.
61263         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
61264         * m4/getdate.m4 (gl_GETDATE): Likewise.
61265         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61266         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61267         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61268         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61269         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61270
61271 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61272
61273         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
61274         All uses of is_space replaced by isspace.
61275         * lib/exit.h: Don't talk about STDC_HEADERS.
61276         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
61277         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
61278         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
61279         replaced by isprint etc.
61280         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
61281         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61282         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
61283         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
61284         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
61285         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61286
61287 2006-07-05  Bruno Haible  <bruno@clisp.org>
61288
61289         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
61290         the function exists, before testing against AIX.
61291         Reported by Martin Lambers <marlam@marlam.de>.
61292
61293 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61294
61295         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
61296         From Mark D. Baushke.
61297
61298 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61299
61300         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
61301         to the absolute name, not just one, to bypass Sun C 5.8's
61302         "warning: #include of /usr/include/... may be non-portable".
61303
61304 2006-07-04  Eric Blake  <ebb9@byu.net>
61305
61306         * modules/dirname-tests: New test module.
61307         * tests/test-dirname.c: New file, replacing dirname.c
61308         TEST_DIRNAME section that was recently deleted.
61309
61310 2006-07-04  Bruno Haible  <bruno@clisp.org>
61311
61312         Assume ANSI C header files and <ctype.h> functions.
61313         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
61314         (mbsnwidth): Use isprint, iscntrl instead.
61315
61316 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61317
61318         Merge from coreutils.
61319         * MODULES.html.sh: Add xstrtold.
61320         * modules/xstrtold: New file.
61321         * modules/cycle-check (Files): Add lib/same-inode.h.
61322         * modules/dirname (Files): Add m4/double-slash-root.m4.
61323         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
61324         * modules/mkdir-p (Files): Add lib/same-inode.h.
61325         * modules/same (Files): Add lib/same-inode.h.
61326
61327 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61328
61329         * m4/absolute-header.m4: Renamed from full-header-path.m4.
61330         This is to keep the terminology clean; POSIX talks about
61331         "absolute pathnames", not "full pathnames", but the GNU
61332         Coding Standards say to use "path" for something else;
61333         so use "absolute" to keep both sides happy.
61334         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
61335         Set gl_absolute_header, not gl_full_header_path.
61336         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
61337         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
61338         All uses changed.
61339
61340         Merge from coreutils.
61341
61342         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61343
61344         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
61345         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
61346         want to require the building of c-strtod.o.
61347         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
61348         needs -lm directly.
61349         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
61350
61351         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61352
61353         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
61354         --as-needed option if available.  Problem reported by Albert Chin in
61355         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
61356         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
61357         cc merely issues a bunch of annoying warnings for --as-needed
61358         (this problem was reported by Bob Proulx).  Also, try linking with
61359         -lm to detect a bug in binutils 2.16 (this problem was reported
61360         by Ralf Wildenhues).
61361
61362         2006-06-18  Jim Meyering  <jim@meyering.net>
61363
61364         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
61365         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
61366         macro.
61367         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
61368         also check for glibc-2.4's abort-inducing bug.
61369
61370         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
61371         Low-probability clean-up should be to use rmdir to get rid of
61372         the just-created directory, not unlink.
61373
61374         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
61375         configure fail, and request a bug report to inform us about it.
61376         Add a comment that, barring reports to the contrary, in 2007 we'll
61377         assume ftruncate is universally available.
61378
61379         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61380
61381         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
61382
61383         2006-03-12  Jim Meyering  <jim@meyering.net>
61384
61385         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
61386         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
61387         * m4/same.m4 (gl_SAME): Likewise.
61388         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
61389
61390         2006-03-11  Eric Blake  <ebb9@byu.net>
61391
61392         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
61393         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
61394         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
61395         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
61396
61397 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61398
61399         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
61400         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
61401         reported by Mark D. Baushke, one in
61402         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
61403
61404         Merge from coreutils.
61405
61406         * lib/.cppi-disable: Add stdint_.h.
61407         * lib/.cvsignore: Add stdint.h.
61408
61409         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61410
61411         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
61412         both double and long double versions.
61413         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
61414         * lib/xstrtold.c: New file.
61415         * lib/xstrtod.h (xstrtold): New decl.
61416
61417         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61418
61419         * lib/filemode.c (setst): Remove.
61420         (strmode): Rewrite to avoid setst.  This makes the code shorter,
61421         (arguably) clearer, and the generated code is a bit smaller on my
61422         Debian GNU/Linux stable x86 host.
61423
61424         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61425
61426         * lib/filemode.c: Include "filemode.h" first, to test the interface.
61427         Assume that filemode.h includes sys/types.h and sys/stat.h.
61428         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
61429         (ftypelet): Reorder to put common cases first, for efficiency.
61430         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
61431         to do 'M'.
61432         (strmode): Renamed from mode_string, and now stores 12 bytes instead
61433         of 10, for compatibility with FreeBSD.  All callers changed.
61434         (filemodestring): Now stores 12 bytes instead of 10, and sets file
61435         types that can't be deduced solely from st_mode.  First arg is now a
61436         const pointer.
61437         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
61438         (strmode): Renamed from mode_string.
61439         (filemodestring): New decl.
61440         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
61441         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
61442         needed.
61443         (S_ISPORT, S_ISWHT): New macros, if not already defined.
61444
61445         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
61446
61447         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
61448         fsusage.h now does that.  Include fsusage.h first, to test interface.
61449         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
61450         at most one method (the old code could have generated decls that
61451         didn't conform to C89, not that this was ever exercised).
61452         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
61453
61454         2006-03-19  Jim Meyering  <jim@meyering.net>
61455
61456         Work even in a chroot where d_ino values for entries in "/"
61457         don't match the stat.st_ino values for the same names.
61458         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
61459         number, iterate through all entries again, using lstat instead.
61460         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
61461         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
61462
61463         * lib/getcwd.c (__getcwd): Clarify a comment.
61464         Use memcpy in place of a call to strcpy.
61465
61466         2006-03-12  Jim Meyering  <jim@meyering.net>
61467
61468         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
61469         matches that of the current directory (which we're about to chdir ".."
61470         out of), then save the dev-ino of the parent, instead.
61471
61472         * lib/same-inode.h (SAME_INODE): New file/macro.
61473         * lib/chdir-safer.c (SAME_INODE): Remove definition.
61474         Include "same-inode.h", instead.
61475         * lib/same.c: Likewise.
61476         * lib/cycle-check.h: Include "same-inode.h".
61477         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
61478         * lib/cycle-check.c (SAME_INODE): Remove definition.
61479         * lib/root-dev-ino.h: Include "same-inode.h".
61480
61481         2006-03-11  Eric Blake  <ebb9@byu.net>
61482
61483         * lib/same.c (same_name): s/base_name/last_component/
61484         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
61485         * lib/filenamecat.c (file_name_concat): Likewise.
61486
61487         2006-03-11  Eric Blake  <ebb9@byu.net>,
61488                     Paul Eggert  <eggert@cs.ucla.edu>
61489
61490         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
61491         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
61492         drive prefix.
61493         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
61494         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
61495         (last_component): New method.
61496         * lib/dirname.c (dir_len): Determine when drive letters need a
61497         subsequent slash.  Preserve // when it is special.
61498         (dir_name): Don't append dot when drive letter is absolute.
61499         [TEST_DIRNAME]: Move into a full-blown gnulib test.
61500         * lib/basename.c (base_name): New semantics - malloc the result.
61501         Preserve // when it is special.  Preserve relative files that look
61502         like drive letters.
61503         (base_len): Preserve // when it is special.
61504         (last_component): New method, similar to old base_name semantics.
61505         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
61506         base_name.  Strip redundant slashes from ///.
61507
61508 2006-07-03  Jim Meyering  <jim@meyering.net>
61509
61510         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
61511         macro is used before the first cycle_check call.
61512
61513 2006-07-03  Eric Blake  <ebb9@byu.net>
61514
61515         * modules/dirname (Depends-on): Add xstrndup.
61516
61517 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61518
61519         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
61520         test cases, so that config.log is a bit easier to follow.
61521
61522 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61523
61524         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
61525         both are 64 bits, since this seems to be the tradition, and this
61526         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
61527         we ever run into a host that prefers long long to long in this
61528         case, we'll need another configure-time test.  Problem reported by
61529         Jim Meyering.
61530
61531 2006-07-02  Eric Blake  <ebb9@byu.net>
61532
61533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
61534
61535 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61536
61537         * modules/inttypes (Depends-on): No longer depends on stdint.
61538         * modules/stdint (Description): Say more about assumptions.
61539         Say that the fast types might differ.  Say macros are used.
61540         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
61541         (Makefile.am): Revise list of substituted symbols to match
61542         new stdint.m4.
61543         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
61544         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
61545         * tests/test-stdint.c (verify_same_types)
61546         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
61547         the code conforms to C99/C89.
61548         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
61549         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
61550
61551 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61552
61553         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
61554         but fix a bug, by requiring at least 64 bits.
61555         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61556         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
61557         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
61558         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61559
61560         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
61561         changes.  Make 2.59 a prerequisite.  Check and substitute for
61562         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
61563         inttypes.h.  Do not use special include files; just use the
61564         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
61565         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
61566         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
61567         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
61568         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
61569         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
61570         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
61571         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
61572         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
61573         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
61574         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
61575         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
61576         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
61577         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
61578         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
61579         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
61580         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
61581         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
61582         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
61583         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
61584         WINT_MAX.  Check for C99 conformance more strictly, by detecting
61585         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
61586         not check for things that C99 does not require, e.g., int8_t.  If
61587         a test isn't needed unless <stdint.h> isn't working, and is
61588         unlikely to be needed for any other reason, then don't do it
61589         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
61590         size_t, since we assume C89 freestanding at least.  Do not check
61591         for sig_atomic_t, wchar_t, or wint_t, since the code now does
61592         the right thing even if the types are not defined.  Instead use:
61593         (gl_STDINT_TYPE_PROPERTIES): New macro.
61594         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
61595         testing whether <sys/types.h> clashes, as Autoconf does this for
61596         us now.  All uses removed.
61597         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
61598         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
61599         (gl_CHECK_TYPE_SAME):
61600         Remove; no longer needed.
61601         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
61602         exists, since we'll return 0 anyway in that case.
61603         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
61604
61605 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61606
61607         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
61608         possible collision with system files.
61609         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
61610         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
61611         WCHAR_MIN and WCHAR_MAX in this case.
61612         (<stddef.h>): Do not include; no longer needed.
61613         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
61614         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
61615         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
61616         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
61617         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
61618         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
61619         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
61620         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
61621         !defined(__c99))]: Include in this case too, since it's harmless
61622         now.
61623         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
61624         dangerous to do so.
61625         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
61626         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
61627         (_STDINT_MIN, _STDINT_MAX): New macros.
61628         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
61629         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
61630         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
61631         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
61632         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
61633         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
61634         macros, not typedefs; this simplifies things quite a bit.
61635         Use long int for all types narrower than int64_t.
61636         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
61637         Define in terms of long long int or int64_t or long int,
61638         not int64_t or int32_t.  This saves some compile-time testing.
61639         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
61640         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
61641         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
61642         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
61643         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
61644         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
61645         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
61646         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
61647         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
61648         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
61649         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61650         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61651         undef any previous version and define our own version, for
61652         simplicity and consistency with the new macros for types.
61653         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61654         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61655         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
61656         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
61657         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
61658         @WINT_T_SUFFIX@ to keep things simple here.
61659         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
61660         Simplify by assuming typical 8/16/32/64 host, since we're
61661         already doing that elsewhere anyway.
61662         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
61663         and assume long long int is 64 bits if available.  This
61664         speeds up 'configure'.
61665
61666 2006-07-01  Eric Blake  <ebb9@byu.net>
61667
61668         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
61669         Reported by Andreas Buening.
61670
61671 2006-07-01  Eric Blake  <ebb9@byu.net>
61672
61673         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
61674
61675 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61676
61677         * lib/getaddrinfo.c: fixed typo
61678
61679 2006-06-29  Jim Meyering  <jim@meyering.net>
61680
61681         * modules/strftime (Maintainer): Add my name, since with the
61682         FPRINTFTIME changes strftime.c has forked from glibc.
61683
61684 2006-06-29  Eric Blake  <ebb9@byu.net>
61685
61686         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
61687
61688 2006-06-29  Eric Blake  <ebb9@byu.net>
61689
61690         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
61691
61692 2006-06-29  Eric Blake  <ebb9@byu.net>
61693
61694         * lib/stat_.h: New file.
61695
61696 2006-06-29  Eric Blake  <ebb9@byu.net>
61697
61698         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
61699         unused static function.
61700
61701 2006-06-29  Eric Blake  <ebb9@byu.net>
61702
61703         * doc/functions.texi (Function Portability): Document missing lstat
61704         on mingw.
61705
61706 2006-06-29  Eric Blake  <ebb9@byu.net>
61707
61708         * MODULES.html.sh: Add sys_stat.
61709         * modules/sys_stat: New module.
61710         * modules/mkstemp (Depends-on): Add sys_stat.
61711
61712 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61713
61714         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
61715
61716 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61717
61718         * m4/c-bs-a.m4: Removed.
61719
61720 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61721
61722         * lib/strftime.c: Assume strftime() exists.
61723
61724 2006-06-29  Derek Price  <derek@ximbiot.com>
61725
61726         * modules/c-bs-a: Removed - \a is C89.
61727         * MODULES.html.sh: Remove c-bs-a.
61728
61729 2006-06-29  Bruno Haible  <bruno@clisp.org>
61730
61731         * modules/wcwidth (License): Change to LGPL.
61732
61733 2006-06-28  Simon Josefsson  <jas@extundo.com>
61734
61735         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
61736         on _WIN32.
61737
61738         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
61739         getnameinfo.
61740
61741 2006-06-28  Simon Josefsson  <jas@extundo.com>
61742
61743         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
61744
61745 2006-06-28  Simon Josefsson  <jas@extundo.com>
61746
61747         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
61748         functions there.  It will succeed on Windows XP, but on Windows
61749         2000 and (presumably) earlier, it will fail, and use the internal
61750         re-implementation.
61751         (use_win32_p): New function.
61752         (getaddrinfo): Use strtoul on servname, to support numeric ports.
61753         Support AI_NUMERICSERV to disable getservbyname.
61754         (getnameinfo): New function, only supports
61755         NI_NUMERICHOST|NI_NUMERICSERV for now.
61756
61757         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
61758         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
61759         getnameinfo.
61760
61761 2006-06-28  Eric Blake  <ebb9@byu.net>
61762
61763         * modules/wcwidth: New file.
61764         * modules/mbchar (Depends-on): Add wcwidth.
61765         * modules/mbswidth (Depends-on): Add wcwidth.
61766         * MODULES.html.sh: Add wcwidth.
61767
61768 2006-06-28  Eric Blake  <ebb9@byu.net>
61769
61770         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
61771         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
61772
61773 2006-06-28  Eric Blake  <ebb9@byu.net>
61774
61775         * lib/xvasprintf.h: Fix comments.
61776
61777 2006-06-28  Eric Blake  <ebb9@byu.net>
61778
61779         * lib/mbchar.h (wcwidth): Include wcwidth.h.
61780         * lib/mbswidth.c (wcwidth): Move from here...
61781         * lib/wcwidth.h: ...to this new file.
61782
61783 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61784
61785         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
61786
61787         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
61788         it's obsolete.
61789         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
61790
61791 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61792
61793         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
61794         Autoconf 2.60 says this stuff was obsolete.
61795
61796 2006-06-28  Bruno Haible  <bruno@clisp.org>
61797
61798         * modules/wcwidth (Files): Add m4/wchar_t.m4.
61799
61800 2006-06-28  Bruno Haible  <bruno@clisp.org>
61801
61802         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
61803         gt_TYPE_WCHAR_T.
61804
61805 2006-06-28  Bruno Haible  <bruno@clisp.org>
61806
61807         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
61808         declaration for wcwidth.
61809         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
61810
61811 2006-06-28  Bruno Haible  <bruno@clisp.org>
61812
61813         * lib/mkdtemp.c [MINGW]: Include <io.h>.
61814         (mkdir): Define using _mkdir.
61815
61816 2006-06-28  Bruno Haible  <bruno@clisp.org>
61817
61818         * lib/getaddrinfo.h: Fix POSIX URL.
61819         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
61820         _WIN32.
61821         (use_win32_p): Make static.
61822         (getaddrinfo): Reject service name if it is empty or does not consist
61823         solely of decimal digits, or if its value is > 65535.
61824         (getnameinfo): Remove useless casts.
61825
61826 2006-06-27  Simon Josefsson  <jas@extundo.com>
61827
61828         * modules/sys_select: New file, suggested by Bruno Haible, Paul
61829         Eggert and Martin Lambers.
61830
61831 2006-06-27  Simon Josefsson  <jas@extundo.com>
61832
61833         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
61834         Eggert and Martin Lambers.
61835
61836 2006-06-27  Bruno Haible  <bruno@clisp.org>
61837
61838         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
61839         result to 0, not to empty.
61840         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
61841
61842 2006-06-27  Bruno Haible  <bruno@clisp.org>
61843
61844         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
61845
61846 2006-06-26  Simon Josefsson  <jas@extundo.com>
61847
61848         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
61849         present.
61850
61851 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
61852
61853         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
61854         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
61855         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
61856
61857 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
61858
61859         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
61860
61861 2006-06-26  Bruno Haible  <bruno@clisp.org>
61862
61863         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
61864
61865 2006-06-26  Bruno Haible  <bruno@clisp.org>
61866
61867         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
61868
61869 2006-06-26  Bruno Haible  <bruno@clisp.org>
61870
61871         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
61872         SGI C compiler in pre-C99 mode.
61873         Suggested by Mark D. Baushke and Larry Jones.
61874
61875 2006-06-26  Bruno Haible  <bruno@clisp.org>
61876
61877         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
61878         WCHAR_MAX.
61879         Reported by Mark D. Baushke and Larry Jones.
61880
61881 2006-06-26  Bruno Haible  <bruno@clisp.org>
61882
61883         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
61884         in pre-C99 mode.
61885         Suggested by Mark D. Baushke and Larry Jones.
61886
61887 2006-06-23  Simon Josefsson  <jas@extundo.com>
61888             Bruno Haible  <bruno@clisp.org>
61889
61890         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
61891         Emit mostlyclean-local rule.
61892         (func_emit_tests_Makefile_am): Likewise.
61893         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
61894
61895 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
61896
61897         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
61898
61899 2006-06-23  Bruno Haible  <bruno@clisp.org>
61900
61901         * tests/test-stdint.c: Update to match ISO C 99 Technical
61902         Corrigendum 1.
61903
61904 2006-06-23  Bruno Haible  <bruno@clisp.org>
61905
61906         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
61907
61908 2006-06-23  Bruno Haible  <bruno@clisp.org>
61909
61910         * lib/stdint_.h: Treat IRIX like OpenBSD.
61911
61912 2006-06-23  Bruno Haible  <bruno@clisp.org>
61913
61914         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
61915         ISO C 99 Technical Corrigendum 1.
61916
61917 2006-06-22  Simon Josefsson  <jas@extundo.com>
61918
61919         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
61920         MinGW.
61921
61922 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61923
61924         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
61925         needed.  Some compiler complained about some of them.  Problem reported
61926         by Larry Jones in
61927         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
61928
61929 2006-06-21  Simon Josefsson  <jas@extundo.com>
61930
61931         * tests/test-getaddrinfo.c: New file.
61932
61933         * modules/getaddrinfo-tests: New file.
61934
61935         * MODULES.html.sh: Add inet_pton.
61936
61937         * modules/inet_pton: New file.
61938
61939 2006-06-21  Simon Josefsson  <jas@extundo.com>
61940
61941         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
61942         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
61943         of using the (limited) gnulib implementation on Windows XP.
61944
61945         * m4/inet_pton.m4: New file.
61946
61947 2006-06-21  Simon Josefsson  <jas@extundo.com>
61948
61949         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
61950         variable.
61951
61952         * lib/socket_.h: Don't define WINVER.
61953
61954         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
61955         slightly modified to work in gnulib.
61956
61957 2006-06-21  Simon Josefsson  <jas@extundo.com>
61958
61959         * doc/gnulib.texi (Windows sockets): Add.
61960
61961 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61962
61963         * lib/read-file.c (fread_file): Start with buffer allocation of
61964         0 bytes rather than 1 byte; this simplifies the code.
61965         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
61966         code to free buffer and save/restore errno.
61967         (internal_read_file): Remove unused local.
61968
61969 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61970
61971         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
61972         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
61973         Problem reported by Denis Excoffier in
61974         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
61975
61976 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61977
61978         * modules/sys_socket, modules/socklen: Include sys/types since
61979         FreeBSD 4.x's sys/socket.h needs it.
61980
61981 2006-06-19  Simon Josefsson  <jas@extundo.com>
61982
61983         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
61984
61985 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61986
61987         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
61988
61989 2006-06-19  Bruno Haible  <bruno@clisp.org>
61990
61991         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
61992         and FULL_PATH_INTTYPES_H in angle brackets.
61993         Reported by Mark D. Baushke <mdb@gnu.org>.
61994
61995 2006-06-17  Eric Blake  <ebb9@byu.net>
61996
61997         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
61998         errno.
61999
62000 2006-06-17  Bruno Haible  <bruno@clisp.org>
62001
62002         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
62003         <sys/inttypes.h>.
62004
62005 2006-06-17  Bruno Haible  <bruno@clisp.org>
62006
62007         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
62008         whether errno is declared. Assume <errno.h> declares errno.
62009
62010 2006-06-17  Bruno Haible  <bruno@clisp.org>
62011
62012         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
62013
62014 2006-06-17  Bruno Haible  <bruno@clisp.org>
62015
62016         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
62017         problem on Solaris 2.5.1.
62018
62019 2006-06-16  Eric Blake  <ebb9@byu.net>
62020
62021         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
62022         * lib/unicodeio.c [!defined errno]: Likewise.
62023         * lib/strtol.c [!defined errno]: Likewise.
62024         * lib/strtod.c [!defined errno]: Likewise.
62025
62026 2006-06-15  Eric Blake  <ebb9@byu.net>
62027
62028         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
62029
62030 2006-06-15  Eric Blake  <ebb9@byu.net>
62031
62032         * config/srclist.txt (ssize_t.m4): Lose sync.
62033
62034 2006-06-15  Bruno Haible  <bruno@clisp.org>
62035
62036         * modules/stdint (Files): Include m4/full-header-path.m4,
62037         m4/size_max.m4, m4/wchar_t.m4.
62038         (Makefile.am): Many more substitutions.
62039         * modules/stdint-tests: New file.
62040         * tests/test-stdint.c: New file.
62041
62042 2006-06-15  Bruno Haible  <bruno@clisp.org>
62043
62044         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
62045         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
62046         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
62047         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
62048         gl_CHECK_TYPE_SAME): New macros.
62049
62050 2006-06-15  Bruno Haible  <bruno@clisp.org>
62051
62052         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
62053
62054 2006-06-15  Bruno Haible  <bruno@clisp.org>
62055
62056         * lib/stdint_.h: Rewritten to be fully auto-configured.
62057         Fixes bug on HP-UX/IA64.
62058
62059 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
62060
62061         * lib/getdate.y (__attribute__): Don't define if already defined.
62062         Problem reported by Larry Jones.
62063         * lib/utimens.c (__attribute__): Likewise.
62064
62065 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
62066
62067         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
62068         reported by Andreas Schwab.
62069
62070 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62071             Bruno Haible  <bruno@clisp.org>
62072
62073         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
62074         check for the declaration of strnlen and a run test that exposes the
62075         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
62076         rpl_strndup.
62077
62078 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62079             Bruno Haible  <bruno@clisp.org>
62080
62081         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
62082
62083 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62084
62085         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
62086         compile test, for Tru64 4.0D.
62087
62088 2006-05-28  Karl Berry  <karl@gnu.org>
62089
62090         * config/srclist.txt (printf-args.c): lose sync.
62091
62092 2006-05-26  Martin Lambers  <marlam@marlam.de>
62093
62094         * lib/getpass.c: Updates the test for the native W32 API, and adds
62095         missing includes, thus fixing compilation warnings.
62096
62097 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62098
62099         * lib/exclude.c (exclude_fnmatch): New function.
62100         (excluded_file_name): Call exclude_fnmatch.
62101         * lib/exclude.h (excluded_file_name): New prototype
62102
62103 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
62104
62105         * lib/tempname.c (small_open, large_open): New macros.
62106         (__open, __open64) [!_LIBC]: Remove.
62107         (__gen_tempname): Use small_open and large_open instead of __open
62108         and __open64.  This fixes a portability bug on HP-UX 11.11i
62109         reported by Simon Wing-Tang in
62110         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
62111
62112 2006-05-24  Bruno Haible  <bruno@clisp.org>
62113
62114         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
62115         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
62116         Reported by Thorsten Maerz <torte@netztorte.de> via
62117         Aaron Stone <aaron@serendipity.cx>.
62118
62119 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62120
62121         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
62122         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
62123         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
62124         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
62125         not really conditional on the cache.
62126         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
62127
62128 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62129
62130         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
62131         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
62132         (my_usleep): Don't mishandle maximum value.
62133
62134 2006-05-19  Jim Meyering  <jim@meyering.net>
62135
62136         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
62137
62138 2006-05-17  Bruno Haible  <bruno@clisp.org>
62139
62140         Cygwin portability.
62141         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
62142
62143 2006-05-17  Bruno Haible  <bruno@clisp.org>
62144
62145         * lib/stdint_.h: Fix recognition of Cygwin.
62146
62147 2006-05-15  Bruno Haible  <bruno@clisp.org>
62148
62149         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
62150         on libtool patch by Ralf Wildenhues.
62151
62152 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62153
62154         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
62155         test for C99 conformance; (bool) 0.5 is an integer constant
62156         expression, but (bool) -0.5 is not.  Problem reported by Fedor
62157         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
62158
62159 2006-05-11  Simon Josefsson  <jas@extundo.com>
62160
62161         * m4/xvasprintf.m4: Fix obvious typo.
62162
62163 2006-05-11  Jim Meyering  <jim@meyering.net>
62164
62165         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
62166         James Lemley.
62167
62168 2006-05-10  Simon Josefsson  <jas@extundo.com>
62169
62170         * lib/md4.c: Typo fix, update copyright years.
62171         (K1, K2): Don't use L because it turn computations into 64-bit on
62172         64-bit platforms.
62173
62174 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
62175
62176         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
62177         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
62178         unwanted sign propagation, e.g., on hosts with 64-bit int.
62179         There still are some problems with reeelly weird theoretical hosts
62180         (e.g., 33-bit int) but it's not worth worrying about now.
62181         * lib/sha1.c (rol): Likewise.
62182         (K1, K2, K3, K4): Remove unnecessary L suffix.
62183
62184 2006-05-10  Bruno Haible  <bruno@clisp.org>
62185
62186         * lib/des.c: Cast to avoid warnings.
62187
62188 2006-05-09  Bruno Haible  <bruno@clisp.org>
62189
62190         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
62191         (Depends-on): Depend also on xsize, stdarg.
62192         (configure.ac): Add gl_XVASPRINTF.
62193
62194 2006-05-09  Bruno Haible  <bruno@clisp.org>
62195
62196         * m4/xvasprintf.m4: New file.
62197
62198 2006-05-09  Bruno Haible  <bruno@clisp.org>
62199
62200         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
62201         (EOVERFLOW): Define fallback value.
62202         (xstrcat): New function.
62203         (xvasprintf): Recognize the special case of a string concatenation.
62204
62205 2006-05-08  Eric Blake  <ebb9@byu.net>
62206
62207         * gnulib-tool (func_version): Base copyright year on CVS date.
62208         (func_emit_copyright_notice): New function.
62209         (func_emit_lib_Makefile_am): Use it.
62210         (func_emit_tests_Makefile_am): Likewise.
62211         (func_import): Likewise.
62212
62213 2006-05-08  Bruno Haible  <bruno@clisp.org>
62214
62215         * modules/stdarg: New file.
62216         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
62217
62218 2006-05-08  Bruno Haible  <bruno@clisp.org>
62219
62220         * m4/stdarg.m4: New file, from GNU gettext.
62221
62222 2006-05-08  Bruno Haible  <bruno@clisp.org>
62223
62224         * config/srclist.txt (build-aux/config.rpath): different from latest
62225         release.
62226
62227 2006-05-08  Bruno Haible  <bruno@clisp.org>
62228
62229         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
62230
62231 2006-05-05  Jim Meyering  <jim@meyering.net>
62232
62233         * m4/warning.m4: New file, derived from bison's file by the same name.
62234
62235 2006-05-03  Bruno Haible  <bruno@clisp.org>
62236
62237         * lib/stdint_.h: Shorter URL.
62238         * lib/inttypes.h: Likewise.
62239
62240 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62241
62242         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
62243
62244 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62245
62246         * lib/verify.h: Document the internals better.  Most of this change
62247         was written by Bruno Haible.
62248
62249 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62250
62251         * doc/verify.texi: New file, partly based on a proposal by
62252         Bruno Haible.
62253
62254 2006-05-02  Bruno Haible  <bruno@clisp.org>
62255
62256         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
62257         test from here...
62258         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
62259
62260 2006-04-29  Bruno Haible  <bruno@clisp.org>
62261
62262         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
62263         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
62264
62265 2006-04-29  Bruno Haible  <bruno@clisp.org>
62266
62267         * gnulib-tool: Make --update option actually work.
62268
62269 2006-04-29  Bruno Haible  <bruno@clisp.org>
62270
62271         * doc/gcd.texi: New file.
62272         * doc/gnulib.texi: Include it.
62273
62274 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
62275
62276         * lib/getdate.y (get_date): When adding relative date, start with the
62277         initial time, not with the result of the first mktime call.
62278
62279 2006-04-25  Bruno Haible  <bruno@clisp.org>
62280
62281         * gnulib-tool (func_import): Output the include directives in three
62282         blocks, sorted separately.
62283         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62284
62285 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62286
62287         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
62288         to define main with arguments, for C++.  Reported by Eric Blake.
62289         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
62290         Prefer 'int main ()' to 'int main (void)', for C++.
62291         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62292         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
62293         for 'main', for C99 and C++.
62294
62295 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62296
62297         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
62298         Don't assume that exit status -1 is valid.
62299         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62300         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62301         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62302         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
62303         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
62304         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
62305         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
62306         functions can be used without declaring them, or that you can
62307         exit with status -1.
62308         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62309
62310 2006-04-24  Karl Berry  <karl@gnu.org>
62311
62312         * config/srclist.txt (longdouble.m4): sync lost.
62313
62314 2006-04-24  Eric Blake  <ebb9@byu.net>
62315
62316         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
62317
62318 2006-04-24  Bruno Haible  <bruno@clisp.org>
62319
62320         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
62321         poll() implementation in AIX.
62322         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62323
62324 2006-04-24  Bruno Haible  <bruno@clisp.org>
62325
62326         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
62327         assigned exactly once.
62328
62329 2006-04-23  Claudio Fontana  <claudio@gnu.org>
62330             Bruno Haible  <bruno@clisp.org>
62331
62332         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
62333         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
62334         for AM_CPPFLAGS.
62335
62336 2006-04-23  Bruno Haible  <bruno@clisp.org>
62337
62338         * modules/copy-file: Depend on unistd.
62339         * modules/execute: Likewise.
62340         * modules/fatal-signal: Likewise.
62341         * modules/findprog: Likewise.
62342         * modules/mkdtemp : Likewise.
62343         * modules/pipe: Likewise.
62344         * modules/wait-process: Likewise.
62345
62346 2006-04-23  Bruno Haible  <bruno@clisp.org>
62347
62348         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
62349         condition was already detected.
62350         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62351
62352 2006-04-23  Bruno Haible  <bruno@clisp.org>
62353
62354         * lib/copy-file.c: Include <unistd.h> unconditionally.
62355         * lib/execute.c: Likewise.
62356         * lib/fatal-signal.c: Likewise.
62357         * lib/findprog.c: Likewise.
62358         * lib/mkdtemp.c: Likewise.
62359         * lib/pipe.h: Likewise.
62360         * lib/pipe.c: Likewise.
62361         * lib/wait-process.h: Likewise.
62362
62363 2006-04-23  Bruno Haible  <bruno@clisp.org>
62364
62365         * gnulib-tool (func_usage): Fix --import description. Document
62366         --update.
62367         (func_import): Create temporary file in a temporary directory, if
62368         --dry-run is specified. Silence errors from 'grep' when there are no
62369         m4 files in $m4dir.
62370         (func_create_testdir): Silence errors from 'grep' when there are no
62371         m4 files in $m4dir.
62372         Reported by Karl Berry <karl@freefriends.org>.
62373
62374 2006-04-20  Bruno Haible  <bruno@clisp.org>
62375
62376         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
62377         one argument, so that the code will be portable to Autoconf 2.60.
62378         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
62379         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62380         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
62381
62382 2006-04-19  Derek Price  <derek@ximbiot.com>
62383             Eric Blake  <ebb9@byu.net>
62384
62385         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
62386         rather than "/full/path.h".  Update comment to match.  Shorten &
62387         generalize m4_translit call via AS_TR_CPP.
62388
62389 2006-04-19  Derek Price  <derek@ximbiot.com>
62390             Eric Blake  <ebb9@byu.net>
62391
62392         * lib/inttypes.h: Correct grammar in comment.
62393
62394 2006-04-18  Derek Price  <derek@ximbiot.com>
62395             Paul Eggert  <eggert@cs.ucla.edu>
62396
62397         * modules/inttypes: New file.
62398         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
62399
62400 2006-04-18  Derek Price  <derek@ximbiot.com>
62401             Paul Eggert  <eggert@cs.ucla.edu>
62402
62403         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
62404         New files.
62405
62406 2006-04-18  Derek Price  <derek@ximbiot.com>
62407             Paul Eggert  <eggert@cs.ucla.edu>
62408
62409         * lib/inttypes.h: New file.
62410         * lib/strtoimax.c: Assume <inttypes.h>.
62411
62412 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
62413
62414         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
62415         isn't mounted.  Problem reported by Kir Kolyshkin.
62416
62417 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62418
62419         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
62420         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
62421         Derek R. Price.
62422         * lib/regex.h (RE_DUP_MAX): Update comment to match current
62423         implementation.
62424
62425 2006-04-12  Eric Blake  <ebb9@byu.net>
62426
62427         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
62428         is now done automatically by the corresponding Autoconf macro.
62429
62430 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
62431
62432         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
62433         time_r.h.
62434
62435 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62436
62437         Merge regex changes from libc, removing some of our
62438         POSIX-conformance changes that were rejected and redoing them in a
62439         less-intrusive way.
62440
62441         * lib/regcomp.c (re_compile_internal, init_dfa):
62442         Length arg is now size_t, not Idx.  All uses changed.
62443         (peek_token): Forward decl now says internal_function.
62444         (__re_error_msgid, __re_error_msgid_idx):
62445         Now static rather than extern with attribute_hidden.
62446         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
62447         For some reason libc prefers K&R style defns for external functions.
62448         (regerror) [!defined _LIBC]: Likewise.
62449         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
62450         (seek_collating_symbol_entry, lookup_collation_sequence_value):
62451         (build_range_exp, build_collating_symbol):
62452         Use K&R-style defn.
62453         (re_compile_fastmap): Use '\0' to memset, not 0.
62454         (utf8_sb_map): Make the calculations more obvious.
62455         (init_dfa, parse_bracket_exp, build_charclass_op):
62456         Call calloc and cast result, as glibc does.
62457         (init_word_char, fetch_token, peek_token, peek_token_bracket):
62458         (build_range_exp, build_collating_symbol):
62459         Now internal functions.
62460
62461         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
62462
62463         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
62464         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
62465         Don't depend on VMS; depend on __VMS instead, for POSIX
62466         namespace cleanness.
62467         (regoff_t): Define to ssize_t, not long int.
62468
62469         Remove the REG_ macros named below.  Instead, make the old names
62470         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
62471         __USE_GNU_REGEX.
62472         (REG_BACKSLASH_ESCAPE_IN_LISTS):
62473         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
62474         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
62475         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
62476         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
62477         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
62478         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
62479         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
62480         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
62481         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
62482         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
62483         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
62484         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
62485         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
62486         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
62487         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
62488         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
62489         (REG_NREGS):
62490         Remove.  All uses replaced by the old RE_* names.
62491         (RE_BACKSLASH_ESCAPE_IN_LISTS):
62492         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
62493         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
62494         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
62495         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
62496         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
62497         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
62498         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
62499         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
62500         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
62501         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
62502         Don't bother having these macros be independent of each others'
62503         values, since they no longer exist in the POSIX name space.
62504
62505         Rename the following member names back to their old names,
62506         unless !__USE_GNU_REGEX.  All uses changed back.
62507         (buffer): Renamed from re_buffer.
62508         (allocated): Renamed from re_allocated.
62509         (used): Renamed from re_used.
62510         (syntax): Renamed from re_syntax.
62511         (fastmap): Renamed from re_fastmap.
62512         (translate): Renamed from re_translate.
62513         (can_be_null): Renamed from re_can_be_null.
62514         (regs_allocated): Renamed from re_regs_allocated.
62515         (fastmap_accurate): Renamed from re_fastmap_accurate.
62516         (no_sub): Renamed from re_no_sub.
62517         (not_bol): Renamed from re_not_bol.
62518         (not_eol): Renamed from re_not_eol.
62519         (newline_anchor): Renamed from re_newline_anchor.
62520         (num_regs): Renamed from rm_num_regs.
62521         (start): Renamed from rm_start.
62522         (end): Renamed from rm_end.
62523
62524         (free_state): Move up a bit.
62525
62526         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
62527         #define to be empty.
62528         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
62529         when that is what is intended.
62530         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
62531         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
62532         (MAX): New macro.
62533         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
62534         All uses changed back to re_malloc, etc.  It's now the caller's
62535         responsibility to check for overflow; all callers changed.
62536         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
62537         (re_x2nrealloc): Remove.
62538         (free_state): Remove decl.
62539
62540         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
62541         (re_set_registers, re_exec):
62542         Use K&R-style defn.
62543
62544         2006-01-31  Roland McGrath  <roland@redhat.com>
62545
62546         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
62547         Reported by Mike Frysinger <vapier@gentoo.org>.
62548
62549         2006-01-15  Andreas Jaeger  <aj@suse.de>
62550
62551         [BZ #1950]
62552         * lib/regex_internal.c (re_string_reconstruct): Adjust for
62553         build_wcs_upper_buffer change.
62554         (build_wcs_upper_buffer): Change return type.
62555
62556         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
62557
62558         * lib/regex_internal.h: Include <stdint.h> if available.
62559
62560         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
62561
62562         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
62563
62564         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62565
62566         * lib/regcomp.c: Adjust for changed secondary hash function.
62567
62568         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
62569
62570         * lib/regex.h: Pretty printing.
62571         Clean up namespace a bit.
62572
62573         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
62574
62575         * lib/regexec.c (update_cur_sifted_state, check_arrival,
62576         check_arrival_add_next_nodes): Avoid using uninitialized variable.
62577
62578         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62579                     Ulrich Drepper  <drepper@redhat.com>
62580
62581         [BZ #1302]
62582         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
62583         changed.
62584         (bitset_word_t): Renamed from bitset_word.  All uses changed.
62585
62586         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
62587
62588         [BZ #281]
62589         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
62590         * lib/regcomp.c: Remove unnecessary uses of
62591         unsigned RE_TRANSLATE_TYPE.
62592         * lib/regex_internal.h: Likewise.
62593         * lib/regex_internal.c: Likewise.
62594         * lib/regexec.c: Likewise.
62595         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
62596
62597         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
62598
62599         * lib/regexec.c (find_recover_state): Remove unnecessary
62600         initialization.
62601         (transit_state_bkref): Make DFA a const pointer.
62602         (get_subexp): Likewise.
62603         (check_arrival): Likewise.
62604         (update_cur_sifted_state): Likewise.
62605         (re_search_internal): Likewise.
62606         (prune_impossible_nodes): Likewise.
62607         (acquire_init_state_context): Likewise.
62608         (proceed_next_node): Likewise.
62609         (set_regs): Likewise.
62610         (free_fail_stack_return): Likewise.
62611         (check_arrival_expand_ecl): Mark DFA parameter as const.
62612         (check_arrival_expand_ecl_sub): Likewise.
62613         (check_subexp_limits): Likewise.
62614         (sub_epsilon_src_nodes):  Likewise.
62615         (add_epsilon_src_nodes):  Likewise.
62616         (merge_state_array): Likewise.
62617         (update_regs): Likewise.
62618         (build_trtable): Likewise.
62619         (sift_states_backward): Mark MCTX parameter as const.
62620         (build_sifted_states): Likewise.
62621         (update_cur_sifted_state): Likewise.
62622         (sift_states_mkref): Likewise.
62623         (check_arrival_expand_ecl): Mark eclosure as const.
62624         (check_dst_limits_calc_pos_1): Likewise.
62625         * lib/regex_internal.h (re_match_context_t): Make dfa a const
62626         pointer.
62627
62628         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
62629
62630         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
62631         (transit_state_sb): Likewise.
62632         (transit_state_mb): Likewise.
62633         (sift_states_iter_mb): Likewise.
62634         (check_arrival_add_next_nodes): Likewise.
62635         (check_node_accept_bytes): Change first parameter to pointer-to-const.
62636         [_LIBC] (re_search_2_stub): Use mempcpy.
62637
62638         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
62639         mbrtowc for very simple UTF-8 case.
62640
62641         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
62642         a pointer-to-const.
62643         (re_acquire_state_context): Likewise.
62644         * lib/regex_internal.h: Adjust prototypes.
62645
62646         * lib/regex.c: Prevent using C++ compilers.
62647
62648         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
62649         (re_acquire_state_context): Likewise.
62650
62651 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62652
62653         * modules/regex (Depends-on): Add ssize_t.
62654
62655 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62656
62657         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
62658         translation table.
62659
62660 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62661
62662         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
62663
62664 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
62665             Bruno Haible  <bruno@clisp.org>
62666
62667         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
62668         <sys/types.h> and <inttypes.h>.
62669
62670 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62671
62672         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
62673         `__error_t_defined', so argp.h will not typedef the former.
62674
62675 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62676
62677         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
62678         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
62679         glibc names.  Even if glibc is changed to conform to POSIX, the
62680         traditional names will be available anyway, since regex depends on
62681         the extensions module.  Also, fix a longstanding typo in the
62682         implementation of Spencer ERE test #75 from grep 2.3.  Problems
62683         reported by Emanuele Giaquinta.  Also, change sense of cached
62684         variable, so that the message makes sense.
62685
62686 2006-03-24  Simon Josefsson  <jas@extundo.com>
62687
62688         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
62689         including some doc fixes.
62690         (base64_encode_alloc): Fix +1 bug on allocation failures.
62691
62692 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62693
62694         * lib/base64.c (base64_encode): Do not read past end of array with
62695         unsanitized input on systems with CHAR_BIT > 8.
62696
62697 2006-03-24  Eric Blake  <ebb9@byu.net>
62698
62699         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
62700
62701 2006-03-22  Karl Berry  <karl@gnu.org>
62702
62703         * config/srclist.txt (*setenv.[ch]): get from coreutils.
62704         * config/srclistvars.sh (COREUTILS): new var.
62705
62706 2006-03-17  Jim Meyering  <jim@meyering.net>
62707
62708         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
62709         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
62710
62711 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62712
62713         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
62714         no longer needs it.  Instead, check that regoff_t is as least
62715         as wide as ptrdiff_t.
62716
62717         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
62718         so that our regex.h stays compatible with the installed regex.
62719         This is helpful for installers who configure --without-included-regex.
62720         Problem reported by Emanuele Giaquinta.
62721
62722 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62723
62724         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
62725         Typedef to long int, not to off_, as POSIX will likely change
62726         in that direction.
62727
62728 2006-03-15  Eric Blake  <ebb9@byu.net>
62729
62730         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
62731
62732 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62733
62734         * lib/argp-help.c (validate_uparams): Fix typo
62735         * lib/argp-parse.c (argp_default_options): Consistently begin help
62736         messages with a lowercase letter.
62737
62738 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
62739
62740         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
62741         overrun buffers and shouldn't be used (much as gets shouldn't be
62742         used).
62743         * lib/time_r.c (asctime_r, ctime_r): Likewise.
62744
62745 2006-03-08  Simon Josefsson  <jas@extundo.com>
62746
62747         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
62748         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62749
62750 2006-03-08  Simon Josefsson  <jas@extundo.com>
62751
62752         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
62753         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62754
62755 2006-03-08  Simon Josefsson  <jas@extundo.com>
62756
62757         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
62758         signal that configure disabled the device.
62759
62760 2006-03-08  Simon Josefsson  <jas@extundo.com>
62761
62762         * build-aux/maint.mk: Fix refresh-po, to handle no translated
62763         languages.
62764
62765 2006-03-07  Simon Josefsson  <jas@extundo.com>
62766
62767         * modules/getopt (Depends-on): Add unistd.
62768
62769         * modules/unistd: New file.
62770
62771 2006-03-07  Simon Josefsson  <jas@extundo.com>
62772
62773         * modules/gc-random: New file.
62774
62775 2006-03-07  Simon Josefsson  <jas@extundo.com>
62776
62777         * m4/unistd_h.m4: New file.
62778
62779 2006-03-07  Simon Josefsson  <jas@extundo.com>
62780
62781         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
62782         test to be side-effect free by storing the result in the cache
62783         variable gl_cv_lib_readline, and moving the assignment of
62784         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
62785         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62786
62787 2006-03-07  Simon Josefsson  <jas@extundo.com>
62788
62789         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
62790         error on missing devices (the functions will return an error).
62791
62792         * m4/gc.m4: Move random stuff to gc-random.m4
62793
62794 2006-03-07  Simon Josefsson  <jas@extundo.com>
62795
62796         * lib/unistd_.h: New file.
62797
62798 2006-03-07  Simon Josefsson  <jas@extundo.com>
62799
62800         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
62801
62802 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62803
62804         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
62805         Problem reported by Juan Manuel Guerrero.
62806
62807 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62808
62809         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
62810         the unistd module.
62811         * lib/getlogin_r.c: Likewise.
62812         * lib/getlogin_r.h: Likewise.
62813         * lib/glob.c: Likewise.
62814         * lib/pagealign_alloc.c: Likewise.
62815         * lib/unistd_.h: Remove; no longer needed.
62816
62817 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62818
62819         * MODULES.html.sh (Support for systems lacking POSIX:2001):
62820         Add unistd.
62821         * modules/c-stack (Depends-on): Add unistd.
62822         * modules/getlogin_r: Likewise.
62823         * modules/glob: Likewise.
62824         * modules/pagealign_alloc: Likewise.
62825         * modules/unistd (Files): Remove lib/unistd_.h.
62826         (EXTRA_DIST): Remove.
62827         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
62828         need unistd_.h.
62829         (MOSTLYCLEANFILES): Remove unistd.h-t.
62830
62831 2006-03-03  Simon Josefsson  <jas@extundo.com>
62832
62833         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
62834
62835 2006-03-03  Simon Josefsson  <jas@extundo.com>
62836
62837         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
62838         libidn and bison.
62839
62840 2006-03-03  Simon Josefsson  <jas@extundo.com>
62841
62842         * build-aux/maint.mk: Add indent target.
62843
62844 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
62845
62846         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
62847         our replacement poll.h in any case, to avoid a differing
62848         declaration from a system header.  Seen on AIX.
62849
62850 2006-03-01  Simon Josefsson  <jas@extundo.com>
62851
62852         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
62853         <kasal@ucw.cz>.
62854
62855 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62856
62857         * modules/gettime (Depends-on): Add extensions module.
62858         * modules/nanosleep (Depends-on): Likewise.
62859         * modules/settime (Depends-on): Likewise.
62860
62861 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62862
62863         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
62864         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
62865         pedantically.
62866         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62867         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
62868
62869         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
62870         not "==".  Reported by Ralf Wildenhues.
62871
62872 2006-03-01  Karl Berry  <karl@gnu.org>
62873
62874         * doc/Copyright/request-*: new files, synced from gnuorg.
62875
62876 2006-03-01  Karl Berry  <karl@gnu.org>
62877
62878         * config/srclist.txt (Copyright/*): new entries.
62879
62880 2006-02-28  Simon Josefsson  <jas@extundo.com>
62881
62882         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
62883
62884 2006-02-27  Simon Josefsson  <jas@extundo.com>
62885
62886         * lib/base64.h: Indent #define's.  From Jim Meyering
62887         <jim@meyering.net>.
62888
62889 2006-02-27  Jim Meyering  <jim@meyering.net>
62890
62891         Revert the change of 2006-02-24, so these files can continue
62892         to be sync'd from gettext.
62893         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
62894         of `config.h'.
62895
62896 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62897
62898         * modules/intprops: New file.
62899         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62900         Add intprops.
62901         * modules/getloadavg (Files): Remove lib/intprops.h.
62902         (Depends-on): Add intprops.
62903         * modules/human: Likewise.
62904         * modules/inttostr: Likewise.
62905         * modules/openat: Likewise.
62906         * modules/sig2str: Likewise.
62907         * modules/userspec: Likewise.
62908         * modules/utimecmp: Likewise.
62909         * modules/xnanosleep: Likewise.
62910         * modules/xstrtol: Likewise.
62911
62912 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
62913
62914         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
62915         * modules/lock-tests (TESTS): Use $(EXEEXT).
62916         * modules/tls-tests: Likewise.
62917         * modules/argp-tests: Likewise.
62918         (check_PROGRAMS): New var, replacing...
62919         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
62920
62921 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62922
62923         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
62924         `config.h'.
62925
62926 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62927
62928         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
62929
62930 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62931
62932         Sync from coreutils.
62933         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
62934         gl_CHDIR_SAFER.
62935
62936 2006-02-22  Jim Meyering  <jim@meyering.net>
62937
62938         Sync from coreutils.
62939         * m4/chdir-safer.m4: New file.
62940
62941 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62942
62943         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
62944         AT_FDCWD exceeds INT_MAX.
62945         * lib/openat.h (AT_FDCWD): Likewise.
62946
62947 2006-02-17  Eric Blake  <address@hidden>
62948
62949         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
62950
62951 2006-02-16  Simon Josefsson  <jas@extundo.com>
62952
62953         * modules/getaddrinfo (Depends-on): Add sys_socket.
62954
62955 2006-02-15  Simon Josefsson  <jas@extundo.com>
62956
62957         * build-aux/maint.mk: Add dsyntax-check rule.
62958
62959 2006-02-15  Eric Blake  <ebb9@byu.net>
62960
62961         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
62962         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
62963         'present but cannot compile' warnings on cygwin.
62964         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
62965         use ws2tcpip.h if sys/socket.h works.
62966         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
62967         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
62968
62969 2006-02-14  Simon Josefsson  <jas@extundo.com>
62970
62971         * modules/maintainer-makefile (Files): Rename.
62972
62973         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
62974         and (the local) Makefile.cfg to maint-cfg.mk.
62975
62976         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
62977         to the latter.
62978
62979         * modules/maintainer-makefile: New module.
62980
62981         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
62982         severaly stripped to make it possible to build it up from scratch
62983         with reliable tests.
62984
62985         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
62986         fixes to permit overriding the default actions when configure and
62987         makefile are not available.
62988
62989 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62990
62991         Sync from coreutils.
62992         * modules/lstat (Depends-on): Don't depend on xalloc.
62993         (License): Change from GPL to LGPL, since this is now simply a
62994         replacement for a libc function.
62995
62996 2006-02-14  Jim Meyering  <jim@meyering.net>
62997
62998         Sync from coreutils.
62999
63000         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
63001         failure on deficient systems, and simplify gnulib lgpl dependencies.
63002         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
63003         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
63004
63005         * lib/xalloc-die.c: Remove unused definition of N_.
63006
63007 2006-02-14  Jim Meyering  <jim@meyering.net>
63008
63009         Sync from coreutils.
63010         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
63011         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
63012         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
63013         double-quote uses of that variable, to accommodate the rare case in
63014         which getmntent is available in none of the libraries checked.  This
63015         happens at least on FreeBSD 5.0.
63016
63017 2006-02-13  Simon Josefsson  <jas@extundo.com>
63018
63019         * gnulib-tool (Usage): Fix --import, from
63020         karl@freefriends.org (Karl Berry).
63021
63022 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63023
63024         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
63025
63026 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
63027
63028         * lib/argp-namefrob.h: Restore changes accidentally lost during the
63029         "autoupdate" on 2005-12-12.
63030
63031 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63032
63033         * modules/closeout (Depends-on): Remove atexit.
63034
63035 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63036
63037         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
63038         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
63039
63040 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63041
63042         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
63043         __EXTENSIONS__ if this causes compilation to fail.  Problem
63044         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
63045         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
63046
63047 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
63048
63049         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
63050         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
63051         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
63052         All uses changed.
63053
63054 2006-01-26  Simon Josefsson  <jas@extundo.com>
63055
63056         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
63057         prototype is visible on mingw32.
63058
63059         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
63060         for mingw32.
63061
63062         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
63063         mingw32).
63064
63065 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63066
63067         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
63068         attempt to open for write; this always fails, at least on POSIX
63069         hosts.  This reinstates the 2006-01-09 change, which was
63070         inadvertently removed.
63071
63072 2006-01-26  Bruno Haible  <bruno@clisp.org>
63073
63074         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
63075         Reported by Paul Eggert.
63076
63077 2006-01-26  Bruno Haible  <bruno@clisp.org>
63078             Paul Eggert  <eggert@cs.ucla.edu>
63079
63080         * lib/stdbool_.h (_Bool)
63081         [(! (defined __cplusplus || defined __BEOS__)
63082           && !defined __GNUC__
63083           && !(defined __HP_cc || defined __xlc__
63084                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
63085                || defined __sgi))]:
63086         #define to signed char in these cases too; this simplifies
63087         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
63088         etc., separately) and makes it more conservative.
63089
63090 2006-01-25  Simon Josefsson  <jas@extundo.com>
63091
63092         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
63093         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
63094         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
63095
63096 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63097
63098         * lib/argp-namefrob.h: Bugfix. Remove stray #
63099
63100 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63101
63102         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
63103         so that we test the test.
63104         Check for yet another HP-UX cc bug involving *bool |= bool.
63105
63106 2006-01-25  Karl Berry  <karl@gnu.org>
63107
63108         * config/srclist.txt (vasnprintf.c): sync lost.
63109
63110 2006-01-25  Jim Meyering  <jim@meyering.net>
63111
63112         Sync from the stable (b5) branch of coreutils:
63113
63114         * lib/fts.c (fts_children): Don't let close() clobber errno from
63115         failed fchdir().
63116
63117         * lib/fts.c (fts_stat): When following a symlink-to-directory,
63118         don't necessarily interpret stat-fails+lstat-succeeds as indicating
63119         a dangling symlink.  That can also happen at least for ELOOP.
63120         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
63121         FYI, this bug predates the inclusion of fts.c in coreutils.
63122
63123         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
63124         in their own block, so pre-c99 compilers don't object.
63125
63126         Avoid the double-free (first in fts_read, second in fts_close) that
63127         would occur when an `active' directory is made inaccessible (e.g.,
63128         via chmod a-x) during a traversal.
63129         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63130         before returning.  Reproduce this failure by
63131         mkdir -p a/b; cd a; chmod a-x . b
63132         Reported by Stavros Passas.
63133
63134 2006-01-25  Jim Meyering  <jim@meyering.net>
63135
63136         * lib/fileblocks.c: Remove more useless parentheses.
63137         * lib/readutmp.h: Likewise.
63138
63139 2006-01-25  Bruno Haible  <bruno@clisp.org>
63140
63141         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
63142         warnings.
63143         Reported by Paul Eggert.
63144
63145 2006-01-25  Bruno Haible  <bruno@clisp.org>
63146
63147         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
63148         rid of a trap command. For Solaris sh.
63149         Reported by Mark D. Baushke <mdb@gnu.org>.
63150
63151 2006-01-24  Simon Josefsson  <jas@extundo.com>
63152
63153         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
63154         Bruno.
63155
63156 2006-01-24  Karl Berry  <karl@gnu.org>
63157
63158         * config/srclist.txt (argp-namefrob.h): sync lost.
63159
63160 2006-01-24  Jim Meyering  <jim@meyering.net>
63161
63162         * modules/openat (Files): Add lib/intprops.h.
63163         From Mark D. Baushke.
63164
63165 2006-01-24  Jim Meyering  <jim@meyering.net>
63166
63167         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
63168         Reported by Mark D. Baushke.
63169
63170 2006-01-24  Jim Meyering  <jim@meyering.net>
63171
63172         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
63173
63174 2006-01-24  Bruno Haible  <bruno@clisp.org>
63175
63176         * modules/strnlen (Maintainer): Change from glibc to all.
63177
63178 2006-01-24  Bruno Haible  <bruno@clisp.org>
63179
63180         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
63181         Patch by Paul Eggert.
63182
63183 2006-01-24  Bruno Haible  <bruno@clisp.org>
63184
63185         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
63186         already has it.
63187         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
63188         2005-11-26.
63189
63190         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
63191         'signed char' to avoid problems with the built-in _Bool type.
63192         Reported by Paul Eggert on 2005-11-26.
63193
63194 2006-01-24  Bruno Haible  <bruno@clisp.org>
63195
63196         * gnulib-tool (func_import): Avoid constructing complicated sed
63197         expressions inside backquote.
63198         Report and solution by Mark D. Baushke <mdb@gnu.org>.
63199
63200 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
63201
63202         These changes imported from libc.
63203         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
63204         test and two separate function calls.
63205         * lib/strndup.c (__strndup): Add libc_hidden_def.
63206
63207 2006-01-23  Simon Josefsson  <jas@extundo.com>
63208
63209         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
63210         Remove the test_*_SOURCES variable: automake infers it by default.
63211         * modules/tls-tests: Likewise.
63212
63213 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63214
63215         Work around porting bugs reported by Dieter in
63216         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
63217         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
63218         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
63219         Include "getopt.h" first, to check interface.
63220         (getenv): Declare only if defined HAVE_DECL_GETENV &&
63221         !HAVE_DECL_GETENV.
63222         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
63223         (__strndup): Revert to K&R-style function dfns, the glibc style.
63224         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
63225         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
63226         Include strnlen.h first, to get prototype properly.
63227         (strnlen): Renamed from __strnlen.
63228         Remove weak alias.
63229
63230 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63231
63232         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
63233
63234 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63235
63236         * config/srclist.txt: Adjust to reflect glibc reorganization.
63237         This affects only comments.
63238
63239 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63240
63241          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
63242          Reported by Bruce Korb <bkorb@gnu.org>.
63243
63244 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63245
63246         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
63247         to pacify gcc -Wswitch-default.
63248
63249 2006-01-22  Bruno Haible  <bruno@clisp.org>
63250
63251         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
63252         temporary buffer for sprintf, take into account the precision also
63253         for 'd', 'i', 'u', 'o', 'x', 'X'.
63254
63255 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63256
63257         * modules/argp-tests: New module
63258         * tests/test-argp.c: New file
63259         * tests/test-argp-2.sh: New file
63260
63261 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63262
63263         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
63264         (__argp_base_name): Removed
63265         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
63266         typo.
63267         (__argp_base_name): Provide macro definition or extern declaration
63268         depending on the configuration
63269
63270 2006-01-20  Simon Josefsson  <jas@extundo.com>
63271
63272         * modules/inet_ntop (Depends-on): Depend on sys_socket.
63273
63274 2006-01-20  Simon Josefsson  <jas@extundo.com>
63275
63276         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
63277
63278 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63279
63280         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
63281         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
63282         Suggested by Bruno Haible.
63283
63284 2006-01-20  Karl Berry  <karl@gnu.org>
63285
63286         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
63287         until changes propagate, I guess.
63288
63289 2006-01-19  Simon Josefsson  <jas@extundo.com>
63290
63291         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
63292
63293 2006-01-19  Simon Josefsson  <jas@extundo.com>
63294
63295         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
63296
63297 2006-01-19  Simon Josefsson  <jas@extundo.com>
63298
63299         * gnulib-tool: Set check_PROGRAMS.
63300
63301         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63302         modules/des-tests, modules/gc-arcfour-tests,
63303         modules/gc-arctwo-tests, modules/gc-des-tests,
63304         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63305         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63306         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63307         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63308         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63309         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
63310         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
63311         test_*_SOURCES.
63312
63313 2006-01-18  Simon Josefsson  <jas@extundo.com>
63314
63315         * modules/socklen (Depends-on): Depend on sys_socket.
63316
63317 2006-01-18  Simon Josefsson  <jas@extundo.com>
63318
63319         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63320         modules/des-tests, modules/gc-arcfour-tests,
63321         modules/gc-arctwo-tests, modules/gc-des-tests,
63322         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63323         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63324         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63325         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63326         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63327         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
63328         $(EXEEXT) to automake TESTS variable, for mingw32.
63329
63330 2006-01-17  Simon Josefsson  <jas@extundo.com>
63331
63332         * modules/socklen (Include): Need sys/socket.h.
63333
63334 2006-01-17  Bruno Haible  <bruno@clisp.org>
63335
63336         * modules/ssize_t (Include): Add <sys/types.h>.
63337
63338 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
63339
63340         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
63341         it's not portable and it doesn't work with cross-compiles.
63342         Problem reported by Bruno Haible.  Fix missing-$ typo in
63343         'test "gl_cv_ignore_unused_libraries" ...' that prevented
63344         -zignore from being used with Sun's C compiler.
63345
63346 2006-01-12  Simon Josefsson  <jas@extundo.com>
63347
63348         * lib/base64.c: Fix warning, reported by Bruno Haible
63349         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
63350
63351 2006-01-12  Bruno Haible  <bruno@clisp.org>
63352
63353         * modules/ldd: New file.
63354         * build-aux/ldd.sh.in: New file.
63355         * MODULES.html.sh (Support for building libraries and executables): Add
63356         ldd.
63357
63358 2006-01-12  Bruno Haible  <bruno@clisp.org>
63359
63360         * m4/ldd.m4: New file.
63361
63362 2006-01-12  Bruno Haible  <bruno@clisp.org>
63363
63364         * gnulib-tool (func_import, func_create_testdir): Don't go into an
63365         endless loop while replacing $auxdir with build-aux.
63366
63367 2006-01-11  Simon Josefsson  <jas@extundo.com>
63368
63369         * lib/stdint_.h (SIZE_MAX): Add missing (.
63370
63371 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
63372
63373         Sync from coreutils.
63374         * lib/md5.c: Fix commentary typos.
63375         (alignof, UNALIGNED_P): No need for a GCC-specific version.
63376         * lib/md5.h (__attribute__): Remove; unused.
63377         * lib/sha1.c: Fix commentary to match md5 better.
63378         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
63379         so that we don't need to worry about alignment.  All uses changed.
63380         This merges the 2005-10-28 md5 change into sha1.
63381
63382 2006-01-11  Jim Meyering  <jim@meyering.net>
63383
63384         Sync from coreutils.
63385         * lib/md5.c (OP): Fix spacing.
63386
63387 2006-01-11  Bruno Haible  <bruno@clisp.org>
63388
63389         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63390         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
63391         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
63392
63393 2006-01-11  Bruno Haible  <bruno@clisp.org>
63394
63395         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63396         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
63397         the "early" section as well.
63398
63399 2006-01-11  Bruno Haible  <bruno@clisp.org>
63400
63401         Avoid "ar: no archive members specified" error on MacOS X.
63402         * gnulib-tool (func_modules_add_dummy): New function.
63403         (func_import, func_create_testdir): Invoke it.
63404
63405 2006-01-11  Bruno Haible  <bruno@clisp.org>
63406
63407         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
63408         with $auxdir in AC_CONFIG_FILES statements.
63409
63410 2006-01-11  Bruno Haible  <bruno@clisp.org>
63411
63412         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63413         Initialize also noinst_HEADERS to empty.
63414
63415 2006-01-11  Bruno Haible  <bruno@clisp.org>
63416
63417         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
63418         variables.
63419         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
63420         autoreconf.
63421
63422 2006-01-11  Bruno Haible  <bruno@clisp.org>
63423
63424         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
63425         overridable by the user.
63426         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63427
63428 2006-01-10  Simon Josefsson  <jas@extundo.com>
63429
63430         * modules/sys_socket: New file.
63431
63432 2006-01-10  Simon Josefsson  <jas@extundo.com>
63433
63434         * m4/sys_socket_h.m4: New file.
63435
63436 2006-01-10  Simon Josefsson  <jas@extundo.com>
63437
63438         * lib/socket_.h: New file.
63439
63440 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63441
63442         * modules/readutmp (Maintainer): Add myself.
63443
63444 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63445
63446         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
63447         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
63448         People who are still concerned with buggy memcmp implementations
63449         can invoke gl_FUNC_MEMCMP themselves.
63450
63451 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63452
63453         * lib/regex_internal.h (BITSET_WORD_BITS):
63454         Work around a bug in 64-bit PGC (before version 6.1-2), where the
63455         preprocessor mishandles large unsigned values as if they were signed.
63456         Problem reported by Claudio Fontana in
63457         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
63458
63459 2006-01-10  Jim Meyering  <jim@meyering.net>
63460
63461         Avoid the double-free (first in fts_read, second in fts_close) that
63462         would occur when an `active' directory is made inaccessible (e.g.,
63463         via chmod a-x) during a traversal.
63464         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63465         before returning.  Reproduce this failure by
63466         mkdir -p a/b; cd a; chmod a-x . b
63467         Reported by Stavros Passas.
63468
63469         Sync from coreutils.
63470         * lib/sha1.c: Tweak grammar in a comment.
63471
63472 2006-01-10  Jim Meyering  <jim@meyering.net>
63473
63474         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
63475         Patch by Joerg Sonnenberger.
63476
63477 2006-01-10  Bruno Haible  <bruno@clisp.org>
63478
63479         * modules/readutmp: Depend on module free.
63480         * modules/strtok_r: Depend on module restrict.
63481
63482 2006-01-10  Bruno Haible  <bruno@clisp.org>
63483
63484         * modules/gettext (configure.ac): Add an invocation of
63485         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
63486
63487 2006-01-10  Bruno Haible  <bruno@clisp.org>
63488
63489         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
63490         Reported by Werner Lemberg <wl@gnu.org>.
63491
63492 2006-01-10  Bruno Haible  <bruno@clisp.org>
63493
63494         * lib/localcharset.c: Update from GNU gettext.
63495
63496 2006-01-10  Bruno Haible  <bruno@clisp.org>
63497
63498         * lib/argp.h (__const): Remove macro. Use const instead.
63499         * lib/argp-fmtstream.h (__const): Likewise.
63500         * lib/glob_.h (__const): Remove macro.
63501         * lib/glob-libc.h: Use const instead of __const.
63502
63503 2006-01-10  Bruno Haible  <bruno@clisp.org>
63504
63505         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
63506         variable.
63507         Needed to avoid an automake error regarding the 'gettext' module.
63508
63509 2006-01-09  Simon Josefsson  <jas@extundo.com>
63510
63511         * modules/inet_ntop (Depends-on): Add restrict.
63512
63513 2006-01-09  Simon Josefsson  <jas@extundo.com>
63514
63515         * modules/gc-rijndael-tests (License): Put under LGPL.
63516
63517         * modules/gc-des-tests (License): Likewise.
63518
63519         * modules/gc-arcfour-tests (License): Likewise.
63520
63521         * modules/gc-arctwo-tests (License): Likewise.
63522
63523         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
63524
63525         * modules/gc-hmac-sha1-tests (Files): Likewise.
63526
63527         * modules/gc-hmac-md5-tests (License): Likewise.
63528
63529         * modules/gc-sha1-tests (License): Likewise.
63530
63531         * modules/gc-md5-tests (License): Likewise.
63532
63533         * modules/gc-md4-tests (License): Likewise.
63534
63535         * modules/gc-md2-tests (License): Likewise.
63536
63537         * modules/gc-tests (License): Likewise.
63538
63539         * modules/des-tests (License): Likewise.
63540
63541         * modules/md4-tests (License): Likewise.
63542
63543         * modules/md2-tests (License): Likewise.
63544
63545 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63546
63547         Sync from coreutils:
63548
63549         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
63550         * modules/lib-ignore: New file.
63551         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
63552         chdir-safer.m4, lchmod.m4.
63553         * modules/openat: Add mkdirat.c, openat-priv.h.
63554
63555 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63556
63557         Sync from coreutils.
63558         * m4/lib-ignore.m4: New file.
63559         * m4/lchmod.m4: New file.
63560
63561 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63562
63563         Sync from coreutils.
63564         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
63565         for write access: POSIX says that must fail.
63566         * lib/fts.c (diropen): Likewise.
63567         * lib/save-cwd.c (save_cwd): Likewise.
63568         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
63569         well, for minor improvements on hosts that lack O_DIRECTORY.
63570         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
63571         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
63572         Fall back on chown if open failed with EACCES.
63573
63574         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
63575         Report an error at compile-time if only a 1-second nominal clock
63576         resolution is found.
63577
63578         * lib/lchmod.h: New file.
63579         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
63580         (make_dir_parents): Use lchown rather than chown, and
63581         lchmod rather than chmod.
63582
63583         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
63584         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
63585         "proc" reported by n0dalus.
63586
63587         * lib/mountlist.c: Include <limits.h>.
63588         (dev_from_mount_options)
63589         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
63590         New function.  It no longer assumes "dev=" has the System V meaning
63591         on Linux (since it doesn't).  It also parses "dev=" more carefully.
63592         (read_file_system_list)
63593         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
63594         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
63595         dev= in that case.
63596
63597         * lib/posixtm.h (PDS_PRE_2000): New macro.
63598         * lib/posixtm.c (year): Arg is now syntax_bits rather than
63599         allow_century.  All usages changed.  Reject dates outside the range
63600         1969-1999 if PDS_PRE_2000 is used.
63601
63602 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63603
63604         Sync from coreutils.
63605         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
63606         (Time of day items): Mention the possibility of leap seconds.
63607         Problem reported by Dr. David Alan Gilbert.
63608
63609 2006-01-09  Jim Meyering  <jim@meyering.net>
63610
63611         Sync from coreutils.
63612
63613         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
63614
63615         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
63616
63617         * lib/modechange.c (mode_compile): Reject an invalid mode string
63618         that starts with an octal digit.  From Andreas Gruenbacher.
63619
63620         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
63621         and dup to open_safer and dup_safer, respectively.
63622         (openat_permissive): Fix typo in comment.
63623
63624         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
63625         "gettext.h"; either no longer needed or are guaranteed by openat.h.
63626         (_): Remove; no longer needed.
63627         (openat): Renamed from rpl_openat; no need for rpl_openat
63628         since openat.h renames openat for us.
63629         Replace most of the body with a call to openat_permissive,
63630         to avoid duplicate code.
63631         Port to (probably hypothetical) environments were mode_t is
63632         wider than int.
63633         (openat_permissive): Require mode arg, so that we can check
63634         types better.  Put it just after flags.  Change cwd failure
63635         indicator from pointer-to-bool to pointer-to-errno-value.
63636         All callers changed.
63637         Invoke openat_save_fail and/or openat_restore_fail if
63638         cwd_errno is null, so that openat can call us.
63639         (openat_permissive, fdopendir, fstatat, unlinkat):
63640         Simplify errno handling to avoid some duplicate code,
63641         as it's OK to set errno on success.
63642         * lib/openat.h: Revamp code so that function macros depend on
63643         __OPENAT_PREFIX only, not also on AT_FDCWD.
63644         (openat_ro): Remove.  Caller changed to use openat_permissive.
63645         (openat_permissive): Now a macro, if not a function.
63646         (openat_restore_fail, openat_save_fail): Now always functions,
63647         since mkdirat needs them even if __OPENAT_PREFIX is defined.
63648
63649         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
63650         and openat.c.
63651         * lib/mkdirat.c: Include openat-priv.h.
63652         Remove definitions of macros defined therein.
63653         * lib/openat.c: Likewise.
63654
63655         * lib/mkdirat.c (mkdirat): New file and function.
63656         * lib/openat.h (mkdirat): Declare.
63657
63658         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
63659
63660         * lib/openat.h (openat_permissive): Declare.
63661         (openat_ro): Define.
63662
63663         * lib/openat.c (EXPECTED_ERRNO): New macro.
63664         (openat_permissive): New function -- used in remove.c rewrite.
63665         (all functions): Set errno just before returning, only if there
63666         was an actual failure.
63667         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
63668
63669         Emulate openat-family functions using Linux's procfs, if possible.
63670         Idea and some code based on Ulrich Drepper's glibc changes.
63671
63672         * lib/openat.c: (BUILD_PROC_NAME): New macro.
63673         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
63674         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
63675         before falling back on save_cwd and restore_cwd.
63676         (fdopendir, fstatat, unlinkat): Likewise.
63677
63678         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
63679         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
63680
63681         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
63682         as second argument to va_arg.  Otherwise, some versions of gcc
63683         warn that `if this code is reached, the program will abort'.
63684
63685 2006-01-09  Jim Meyering  <jim@meyering.net>
63686
63687         Sync from coreutils.
63688         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
63689         Require openat-priv.h.
63690
63691 2006-01-09  Bruno Haible  <bruno@clisp.org>
63692
63693         * modules/strnlen (Include): Use strnlen.h.
63694
63695 2006-01-09  Bruno Haible  <bruno@clisp.org>
63696
63697         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
63698
63699 2006-01-09  Bruno Haible  <bruno@clisp.org>
63700
63701         * lib/sysexit_.h (EX_OK): New macro.
63702         Suggested by Martin Lambers <marlam@marlam.de>.
63703
63704 2006-01-09  Bruno Haible  <bruno@clisp.org>
63705
63706         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
63707         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
63708
63709 2006-01-09  Bruno Haible  <bruno@clisp.org>
63710
63711         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
63712         numbers.
63713
63714 2006-01-09  Bruno Haible  <bruno@clisp.org>
63715
63716         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
63717         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
63718         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
63719         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
63720
63721 2006-01-09  Bruno Haible  <bruno@clisp.org>
63722
63723         * build-aux/javacomp.sh.in: New file, moved from lib/.
63724         * modules/javacomp-script (Files): Update.
63725         (configure.ac): Add AC_CONFIG_FILES invocation.
63726         (EXTRA_DIST): Remove variable.
63727
63728         * build-aux/javaexec.sh.in: New file, moved from lib/.
63729         * modules/javaexec (Files): Update.
63730         (configure.ac): Add AC_CONFIG_FILES invocation.
63731         (EXTRA_DIST): Remove javaexec.sh.in.
63732
63733         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
63734         * modules/csharpcomp-script (Files): Update.
63735         (configure.ac): Add AC_CONFIG_FILES invocation.
63736         (EXTRA_DIST): Remove variable.
63737
63738         * build-aux/csharpexec.sh.in: New file, moved from lib/.
63739         * modules/csharpexec (Files): Update.
63740         (configure.ac): Add AC_CONFIG_FILES invocation.
63741         (EXTRA_DIST): Remove csharpexec.sh.in.
63742
63743 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63744
63745         Sync from coreutils.
63746
63747         Add POSIX ACL support
63748         * lib/acl.h (copy_acl, set_acl): Add declarations.
63749         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
63750         systems other than Linux.
63751         (chmod_or_fchmod): New function: use fchmod when possible,
63752         and chmod otherwise.
63753         (file_has_acl): Add a POSIX ACL implementation, with a
63754         Linux-specific subcase.
63755         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
63756         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
63757         acls are unsupported.
63758         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
63759         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
63760         are unsupported.
63761
63762 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63763
63764         Sync from coreutils.
63765         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
63766
63767 2006-01-07  Bruno Haible  <bruno@clisp.org>
63768
63769         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
63770         gl_EARLY.
63771
63772 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63773
63774         * lib/strftime.c (tzname): Don't declare if it is already #defined.
63775         Problem reported for Mingw by Mark Junker.
63776
63777 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63778
63779         * README: Gnulib normally doesn't generate a tarball.
63780
63781 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
63782
63783         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
63784         long int, not int, for nanosecond counts, so that people who are
63785         used to POSIX struct timespec won't be surprised.  Reported by Jim
63786         Meyering.
63787
63788 2005-12-28  Bruno Haible  <bruno@clisp.org>
63789
63790         * build-aux/config.rpath: Update from GNU gettext.
63791
63792 2005-12-16  Jim Meyering  <jim@meyering.net>
63793
63794         * modules/fprintftime: New module.
63795         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
63796
63797 2005-12-16  Jim Meyering  <jim@meyering.net>
63798
63799         * m4/fprintftime.m4: New file.
63800
63801 2005-12-16  Jim Meyering  <jim@meyering.net>
63802
63803         * lib/fprintftime.c, lib/fprintftime.h: New files.
63804
63805 2005-12-15  Simon Josefsson  <jas@extundo.com>
63806
63807         * modules/socklen (configure.ac): Fix M4 macro name, to align with
63808         new m4/socklen.m4.
63809
63810 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63811
63812         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
63813         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
63814
63815 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63816
63817         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
63818         * lib/argp-help.c (fill_in_uparams): Check if the constructed
63819         struct uparams is valid. Fall back to the default values if it is
63820         not.
63821
63822 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63823
63824         * modules/argp (Files): Add argp-pin.c
63825         (Depends-on): dirname
63826         (lib_SOURCES): Add argp-pin.c
63827
63828 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63829
63830         * m4/argp.m4:  Check if program_invocation_name and
63831         program_invocation_short_name are declared and define appropriate
63832         macros if they are not.
63833
63834 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63835
63836         * lib/argp-help.c (__argp_base_name): New function
63837         (__argp_short_program_name): Rewrite using __argp_base_name
63838         * lib/argp-namefrob.h: Define program_invocation_name and
63839         program_invocation_short_name if requested
63840         (__argp_base_name): Add prototype
63841         * lib/argp-parse.c (argp_def): Use gettext wrappers
63842         (argp_default_parser): Use __argp_base_name
63843         * lib/argp-pin.c: New file. Defines program_invocation_name and
63844         program_invocation_short_name on systems that lack them.
63845
63846 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63847
63848         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
63849         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63850         porting problem reported by Georg Schwarz in
63851         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63852
63853 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63854
63855         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
63856         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63857         porting problem reported by Georg Schwarz in
63858         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63859
63860 2005-12-05  Bruno Haible  <bruno@clisp.org>
63861
63862         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
63863         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
63864         Reported by Mark Junker <mjscod@gmx.de>.
63865
63866 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
63867
63868         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
63869         Use implementation from Albert Chin, with some
63870         comments/corrections by Stepan Kasal and myself.
63871
63872 2005-12-02  Bruno Haible  <bruno@clisp.org>
63873
63874         * gnulib-tool (func_import): Accept GPLed build tool modules when
63875         --lgpl is given.
63876         * modules/csharpcomp-script: New file.
63877         * modules/csharpcomp: Depend on it.
63878         * modules/javacomp-script: New file.
63879         * modules/javacomp: Depend on it.
63880         Suggested by Simon Josefsson.
63881
63882 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63883
63884         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
63885         statement, to work around an HP-UX 10.20 compiler bug reported by
63886         Peter O'Gorman.
63887
63888 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63889
63890         * modules/savedir (Depends-on): Add openat.
63891
63892 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63893
63894         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
63895         (uintmax_t) [defined uintmax_t]: Do not declare.
63896         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
63897         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
63898         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
63899         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
63900         sake of portability to weird hosts that C allows (though we don't
63901         know of any practical examples).
63902
63903         * lib/savedir.h (fdsavedir): New decl.
63904         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
63905         contains most of the former guts of savedir.
63906         (savedir): Use savedirstream.
63907         Include "openat.h".
63908
63909 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63910
63911         * modules/obstack (Files): Add m4/ulonglong.m4.
63912         Problem reported by Davide Angelocola.
63913
63914 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63915
63916         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
63917         coreutils no longer futzes with rounding modes.
63918
63919 2005-11-14  Jim Meyering  <jim@meyering.net>
63920
63921         * lib/mkstemp-safer.c: Include <config.h>, required for possible
63922         replacement of mkstemp.
63923
63924 2005-11-10  Simon Josefsson  <jas@extundo.com>
63925
63926         * lib/readline.c: Remove EOL.
63927
63928 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63929
63930         * modules/gethrxtime (Depends-on): Add gettime.
63931
63932 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63933
63934         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
63935         or gettimeofday; no longer needed.
63936
63937 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63938
63939         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
63940         time business.
63941         (gethrxtime) [! (HAVE_NANOUPTIME
63942         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
63943         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
63944         our own approximation.
63945
63946 2005-11-08  Eric Blake  <ebb9@byu.net>
63947
63948         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63949
63950 2005-11-08  Eric Blake  <ebb9@byu.net>
63951
63952         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63953
63954 2005-11-04  Bruno Haible  <bruno@clisp.org>
63955
63956         * gnulib-tool: Implement --update mode.
63957
63958 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63959
63960         Fix porting problem reported by Theodoros V. Kalamatianos.
63961         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
63962         Don't assume that futimes failing means we must fail.
63963
63964 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63965
63966         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
63967         variables to suggest the intended function of the PATH_MAX check.
63968
63969 2005-10-30  Kean Johnston  <jkj@sco.com>
63970
63971         Trivial changes to support SCO systems.
63972         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
63973         as PATH_MAX.
63974         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
63975         where __ptr is null when no I/O is pending.
63976
63977 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63978
63979         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
63980         leave errno alone.  Problem reported by Dmitry V. Levin.
63981
63982 2005-10-28  Simon Josefsson  <jas@extundo.com>
63983
63984         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
63985         Test more.
63986
63987         * tests/test-gc-md2.c, tests/test-md2.c: New files.
63988
63989         * modules/md2, modules/md2-tests: New files.
63990
63991 2005-10-28  Simon Josefsson  <jas@extundo.com>
63992
63993         * m4/inet_ntop.m4: More tests.
63994
63995         * m4/gc-md2.m4, md2.m4: New file.
63996
63997 2005-10-28  Simon Josefsson  <jas@extundo.com>
63998
63999         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
64000         "restrict" keywords, as per POSIX.  Protect the function
64001         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
64002         Don't use K&R prototypes.  Check the sprintf return values.
64003         Re-define EAFNOSUPPORT if not present.  Indent.
64004
64005         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
64006         suggested by Bruno Haible <bruno@clisp.org>.
64007
64008         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
64009
64010         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
64011
64012         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
64013         libgcrypt).
64014
64015         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
64016
64017         * lib/md2.h, lib/md2.c: New files.
64018
64019 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
64020
64021         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
64022         errno alone.  Problem reported by Frederic Jolliton.
64023
64024 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64025
64026         * modules/verify (License): Change from GPL to LGPL.  This is a
64027         tiny module and there are apparently near-equivalents that are
64028         under the BSD license.
64029
64030 2005-10-24  Simon Josefsson  <jas@extundo.com>
64031
64032         * modules/sha1: Relicense to LGPL.
64033
64034 2005-10-24  Simon Josefsson  <jas@extundo.com>
64035
64036         * lib/md4.h: Shrink buffer size, now that we changed the type.
64037
64038 2005-10-23  Simon Josefsson  <jas@extundo.com>
64039
64040         * gnulib-tool (func_import): Fix --tests-base.
64041
64042 2005-10-22  Simon Josefsson  <jas@extundo.com>
64043
64044         * modules/arcfour (Depends-on): Need stdint.
64045
64046 2005-10-22  Simon Josefsson  <jas@extundo.com>
64047
64048         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
64049         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
64050
64051 2005-10-22  Simon Josefsson  <jas@extundo.com>
64052
64053         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
64054         suggested by Bruno Haible <bruno@clisp.org>.
64055
64056 2005-10-22  Simon Josefsson  <jas@extundo.com>
64057
64058         * lib/crc.h: Include stddef.h, for size_t.
64059
64060 2005-10-22  Simon Josefsson  <jas@extundo.com>
64061
64062         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
64063         arcfour_context struct (simplify test vector testing in GNU
64064         Shishi).
64065
64066 2005-10-21  Simon Josefsson  <jas@extundo.com>
64067
64068         * modules/des, modules/des-tests: New files.
64069
64070         * modules/gc-des, modules/gc-des-tests: New files.
64071
64072         * tests/test-des.c, tests/test-gc-des.c: New file.
64073
64074 2005-10-21  Simon Josefsson  <jas@extundo.com>
64075
64076         * modules/arctwo, modules/arctwo-tests: New files.
64077
64078         * tests/test-arctwo.c: New file.
64079
64080         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
64081
64082         * tests/test-gc-arctwo.c: New file.
64083
64084 2005-10-21  Simon Josefsson  <jas@extundo.com>
64085
64086         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
64087         Bruno Haible <bruno@clisp.org>.
64088
64089         * m4/gc-des.m4: New file.
64090
64091 2005-10-21  Simon Josefsson  <jas@extundo.com>
64092
64093         * m4/arctwo.m4: New file.
64094
64095         * m4/gc-arctwo.m4: New file.
64096
64097 2005-10-21  Simon Josefsson  <jas@extundo.com>
64098
64099         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
64100         block.
64101
64102 2005-10-21  Simon Josefsson  <jas@extundo.com>
64103
64104         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
64105         <bruno@clisp.org>.
64106
64107         * lib/hmac-sha1.c (hmac_sha1): Likewise.
64108
64109         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
64110         Bruno Haible <bruno@clisp.org>.
64111
64112         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
64113         <bruno@clisp.org>.
64114
64115 2005-10-21  Simon Josefsson  <jas@extundo.com>
64116
64117         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
64118
64119 2005-10-21  Simon Josefsson  <jas@extundo.com>
64120
64121         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
64122
64123 2005-10-21  Simon Josefsson  <jas@extundo.com>
64124
64125         * lib/des.h, lib/des.c: New files.
64126
64127         * lib/gc-gnulib.c: Support DES.c
64128
64129 2005-10-21  Simon Josefsson  <jas@extundo.com>
64130
64131         * lib/arctwo.h, lib/arctwo.c: New files.
64132
64133         * lib/gc-gnulib.c: Support ARCTWO.
64134
64135 2005-10-21  Simon Josefsson  <jas@extundo.com>
64136
64137         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
64138         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64139
64140 2005-10-21  Simon Josefsson  <jas@extundo.com>
64141
64142         * gnulib-tool (func_import, func_create_testdir): Define automake
64143         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
64144         Makefile.am snippet),
64145         suggested by Bruno Haible <bruno@clisp.org>.
64146
64147         * modules/gc (Makefile.am): Use it.
64148
64149 2005-10-21  Bruno Haible  <bruno@clisp.org>
64150
64151         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
64152         patch.
64153
64154 2005-10-19  Simon Josefsson  <jas@extundo.com>
64155
64156         * tests/test-gc-rijndael.c: New file.
64157
64158         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
64159
64160 2005-10-19  Simon Josefsson  <jas@extundo.com>
64161
64162         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
64163         interface too.
64164
64165 2005-10-19  Simon Josefsson  <jas@extundo.com>
64166
64167         * tests/test-gc-arcfour.c: New file.
64168
64169         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
64170
64171 2005-10-19  Simon Josefsson  <jas@extundo.com>
64172
64173         * modules/gc-md4, modules/gc-md4-tests: New file.
64174
64175         * tests/test-gc-md4.c: New file.
64176
64177 2005-10-19  Simon Josefsson  <jas@extundo.com>
64178
64179         * m4/gc-md4.m4: New file.
64180
64181 2005-10-19  Simon Josefsson  <jas@extundo.com>
64182
64183         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
64184         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
64185         <kasal@ucw.cz>.
64186
64187 2005-10-19  Simon Josefsson  <jas@extundo.com>
64188
64189         * m4/gc-arcfour.m4: New file.
64190
64191         * m4/gc-rijndael.m4: New file.
64192
64193 2005-10-19  Simon Josefsson  <jas@extundo.com>
64194
64195         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
64196
64197 2005-10-19  Simon Josefsson  <jas@extundo.com>
64198
64199         * lib/gc-gnulib.c: Support ARCFOUR.
64200
64201 2005-10-19  Simon Josefsson  <jas@extundo.com>
64202
64203         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
64204         support.
64205
64206         * lib/gc.h: Add ECB enum type.
64207
64208         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
64209
64210 2005-10-18  Simon Josefsson  <jas@extundo.com>
64211
64212         * tests/test-md5.c: New file.
64213
64214         * modules/md5-tests: New file.
64215
64216 2005-10-18  Simon Josefsson  <jas@extundo.com>
64217
64218         * tests/test-md4.c: New file.
64219
64220         * modules/md4, modules/md4-tests: New files.
64221
64222 2005-10-18  Simon Josefsson  <jas@extundo.com>
64223
64224         * m4/md4.m4: New file.
64225
64226 2005-10-18  Simon Josefsson  <jas@extundo.com>
64227
64228         * lib/md4.h, lib/md4.c: New files, based on md5.?.
64229
64230 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
64231
64232         * gnulib-tool (func_create_testdir): Omit the second check whether
64233         BUILT_SOURCES in nonempty.
64234
64235 2005-10-17  Simon Josefsson  <jas@extundo.com>
64236
64237         * tests/test-rijndael.c: New file.
64238
64239 2005-10-17  Simon Josefsson  <jas@extundo.com>
64240
64241         * modules/sha1: Depend on stdint instead of md5.
64242
64243         * modules/md5: Depend on stdint, remove uint32_t.
64244
64245 2005-10-17  Simon Josefsson  <jas@extundo.com>
64246
64247         * modules/gc-sha1-tests: New file.
64248
64249         * tests/test-gc-sha1.c: New file.
64250
64251 2005-10-17  Simon Josefsson  <jas@extundo.com>
64252
64253         * m4/md5.m4: Remove call to uint32_t.m4.
64254
64255 2005-10-17  Simon Josefsson  <jas@extundo.com>
64256
64257         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
64258
64259         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
64260         md5.h.
64261
64262         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
64263
64264         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
64265
64266 2005-10-17  Simon Josefsson  <jas@extundo.com>
64267
64268         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
64269
64270 2005-10-17  Simon Josefsson  <jas@extundo.com>
64271
64272         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
64273
64274 2005-10-17  Simon Josefsson  <jas@extundo.com>
64275
64276         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
64277
64278         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
64279
64280 2005-10-17  Bruno Haible  <bruno@clisp.org>
64281
64282         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
64283         that it can also be used in a test.
64284
64285 2005-10-16  Bruno Haible  <bruno@clisp.org>
64286
64287         * gnulib-tool (func_emit_tests_Makefile_am): Also define
64288         TESTS_ENVIRONMENT, so that individual tests can augment it.
64289
64290         * gnulib-tool (func_create_testdir): Use an intermediate target for
64291         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
64292         macros, like $(ALLOCA_H), which cannot be passed through the command
64293         line.
64294
64295 2005-10-15  Simon Josefsson  <jas@extundo.com>
64296
64297         * modules/rijndael-tests: New file.
64298
64299         * modules/rijndael: New file.
64300
64301 2005-10-15  Simon Josefsson  <jas@extundo.com>
64302
64303         * m4/rijndael.m4: New file.
64304
64305 2005-10-15  Simon Josefsson  <jas@extundo.com>
64306
64307         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
64308
64309         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
64310
64311 2005-10-14  Simon Josefsson  <jas@extundo.com>
64312
64313         * tests/test-arcfour.c: New file.
64314
64315         * modules/arcfour, modules/arcfour-tests: New files.
64316
64317 2005-10-14  Simon Josefsson  <jas@extundo.com>
64318
64319         * m4/arcfour.m4: New file.
64320
64321 2005-10-14  Simon Josefsson  <jas@extundo.com>
64322
64323         * lib/arcfour.h, lib/arcfour.c: New files.
64324
64325 2005-10-14  Roland McGrath  <roland@redhat.com>
64326
64327         Import from libc.  [BZ #1331]
64328         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
64329         macro argument.
64330         Reported by Matej Vela <vela@debian.org>.
64331
64332 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64333
64334         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
64335         include <wchar.h>; no longer needed.
64336
64337 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64338
64339         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
64340
64341 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
64342         and  Ulrich Drepper  <drepper@redhat.com>
64343
64344         Import from libc.
64345         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
64346         instead of inline stream orientation test and two separate
64347         function calls.  Pay no attention to USE_IN_LIBIO.
64348
64349 2005-10-13  Simon Josefsson  <jas@extundo.com>
64350
64351         * modules/gc-hmac-md5-tests: New file.
64352
64353         * tests/test-gc-hmac-sha1.c: New file.
64354
64355         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
64356
64357         * modules/gc-hmac-md5-tests: New file.
64358
64359         * tests/test-gc-md5.c: New file.
64360
64361         * modules/gc-md5-tests: New file.
64362
64363 2005-10-13  Simon Josefsson  <jas@extundo.com>
64364
64365         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
64366         Move memory allocation outside of loop.
64367
64368 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64369
64370         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
64371         intermediate directory is in a read-only file system.  Problem
64372         reported by Eric Blake.
64373
64374 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
64375
64376         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
64377
64378 2005-10-12  Simon Josefsson  <jas@extundo.com>
64379
64380         * tests/test-hmac-sha1.c: New file.
64381
64382         * modules/hmac-sha1-tests: New file.
64383
64384         * modules/hmac-sha1: New file.
64385
64386 2005-10-12  Simon Josefsson  <jas@extundo.com>
64387
64388         * modules/gc-sha1: New file.
64389
64390 2005-10-12  Simon Josefsson  <jas@extundo.com>
64391
64392         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
64393
64394         * tests/test-gc-pbkdf2-sha1.c: New file.
64395
64396 2005-10-12  Simon Josefsson  <jas@extundo.com>
64397
64398         * modules/gc-md5, modules/gc-hmac-md5: New files.
64399
64400         * modules/gc (Files): Remove md5, memxor and hmac files.
64401
64402 2005-10-12  Simon Josefsson  <jas@extundo.com>
64403
64404         * m4/gc-pbkdf2-sha1.m4: New file.
64405
64406         * m4/gc-hmac-sha1.m4: New file.
64407
64408         * m4/gc-sha1: New file.
64409
64410         * m4/hmac-sha1.m4: New file.
64411
64412 2005-10-12  Simon Josefsson  <jas@extundo.com>
64413
64414         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
64415
64416         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
64417
64418 2005-10-12  Simon Josefsson  <jas@extundo.com>
64419
64420         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
64421         suggested by Bruno Haible <bruno@clisp.org>.
64422
64423 2005-10-12  Simon Josefsson  <jas@extundo.com>
64424
64425         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
64426
64427 2005-10-12  Simon Josefsson  <jas@extundo.com>
64428
64429         * lib/gc-pbkdf2-sha1.c: New file.
64430
64431         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
64432
64433 2005-10-12  Simon Josefsson  <jas@extundo.com>
64434
64435         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
64436
64437         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
64438
64439 2005-10-12  Simon Josefsson  <jas@extundo.com>
64440
64441         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
64442         GC_USE_HMAC_MD5, respectively.
64443
64444         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
64445         (gc_md5): Fix typo.
64446
64447         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
64448
64449         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
64450
64451         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
64452
64453 2005-10-12  Bruno Haible  <bruno@clisp.org>
64454
64455         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
64456         Reported by Stepan Kasal <kasal@ucw.cz>.
64457
64458 2005-10-11  Simon Josefsson  <jas@extundo.com>
64459
64460         * tests/test-crc.c: New file.
64461
64462         * modules/crc, modules/crc-tests: New files.
64463
64464 2005-10-11  Simon Josefsson  <jas@extundo.com>
64465
64466         * m4/crc.m4: New file.
64467
64468 2005-10-11  Simon Josefsson  <jas@extundo.com>
64469
64470         * lib/gc.h: Add gc_hash and gc_hash_buffer.
64471
64472         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
64473
64474         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
64475
64476 2005-10-11  Simon Josefsson  <jas@extundo.com>
64477
64478         * lib/crc.h, lib/crc.c: New files.
64479
64480         * lib/gc.h (gc_hash_buffer): Add doc.
64481
64482 2005-10-11  Bruno Haible  <bruno@clisp.org>
64483
64484         * modules/c-strcasestr: New file.
64485         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
64486
64487 2005-10-11  Bruno Haible  <bruno@clisp.org>
64488
64489         * modules/c-strcase: New file.
64490         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
64491
64492 2005-10-11  Bruno Haible  <bruno@clisp.org>
64493
64494         * lib/strcasecmp.c: Include limits.h.
64495         (strcasecmp): Avoid integer overflow on exotic platforms.
64496         * lib/strncasecmp.c: Include limits.h.
64497         (strncasecmp): Avoid integer overflow on exotic platforms.
64498         Reported by Paul Eggert.
64499
64500 2005-10-11  Bruno Haible  <bruno@clisp.org>
64501
64502         * lib/c-strcasestr.h: New file, from GNU gettext.
64503         * lib/c-strcasestr.c: New file, from GNU gettext.
64504
64505 2005-10-11  Bruno Haible  <bruno@clisp.org>
64506
64507         * lib/c-strcase.h: New file, from GNU gettext.
64508         * lib/c-strcasecmp.c: New file, from GNU gettext.
64509         * lib/c-strncasecmp.c: New file, from GNU gettext.
64510
64511 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64512
64513         * modules/mempcpy (License): GPL -> LGPL.
64514         * modules/strchrnul (License): Likewise.
64515         * modules/sysexits (License): Likewise.
64516
64517 2005-10-08  Simon Josefsson  <jas@extundo.com>
64518
64519         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
64520
64521 2005-10-07  Simon Josefsson  <jas@extundo.com>
64522
64523         * m4/memxor.m4: Remove gl_C_RESTRICT call.
64524
64525 2005-10-06  Simon Josefsson  <jas@extundo.com>
64526
64527         * tests/test-hmac-md5.c: New file.
64528
64529         * modules/hmac-md5-tests: New file.
64530
64531         * modules/hmac-md5: New file.
64532
64533 2005-10-06  Simon Josefsson  <jas@extundo.com>
64534
64535         * m4/hmac-md5.m4: New file.
64536
64537         * m4/memxor.m4: Require gl_C_RESTRICT.
64538
64539 2005-10-06  Simon Josefsson  <jas@extundo.com>
64540
64541         * lib/memxor.c (memxor): Avoid casts and warnings.
64542
64543 2005-10-06  Simon Josefsson  <jas@extundo.com>
64544
64545         * lib/hmac-md5.c: New file.
64546
64547         * lib/hmac.h: New file.
64548
64549 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64550
64551         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
64552         promotes to int, not unsigned int, to catch the AIX 5.3
64553         compiler bug.
64554
64555 2005-10-05  Simon Josefsson  <jas@extundo.com>
64556
64557         * modules/memxor: New file.
64558
64559         * modules/iconv (Files): Move config.rpath to havelib, it is used
64560         there.
64561
64562         * modules/havelib (Files): Add config.rpath.
64563
64564 2005-10-05  Simon Josefsson  <jas@extundo.com>
64565
64566         * m4/memxor.m4: New file.
64567
64568 2005-10-05  Simon Josefsson  <jas@extundo.com>
64569
64570         * lib/memxor.c (memxor): Fix compiler error.
64571
64572         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
64573         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
64574
64575         * lib/memxor.h, lib/memxor.c: New files.
64576
64577         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
64578         we assume all systems have it, suggested by Jim Meyering
64579         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
64580         any systems lack sys/socket.h; mingw32 is known to lack it, but we
64581         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
64582         same reasons.
64583
64584 2005-10-05  Simon Josefsson  <jas@extundo.com>
64585
64586         * config/srclist.txt: Add glibc bug 1423 for md5.h.
64587
64588 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64589
64590         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
64591         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
64592         needed, since the source code now assumes these .h files.
64593
64594 2005-10-05  Derek Price  <derek@ximbiot.com>
64595
64596         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
64597
64598 2005-10-05  Bruno Haible  <bruno@clisp.org>
64599
64600         * modules/stdint (License): Change to LGPL.
64601
64602 2005-10-04  Simon Josefsson  <jas@extundo.com>
64603
64604         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
64605         D. Baushke" <mdb@gnu.org>.
64606
64607 2005-10-04  Bruno Haible  <bruno@clisp.org>
64608
64609         * lib/verify.h (verify_true): Provide alternative definition for C++.
64610
64611 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64612
64613         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
64614         (SSIZE_MAX): New macro, if not already defined.
64615         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
64616         than 2 GiB.
64617
64618 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64619
64620         Sync from coreutils.
64621         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
64622         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
64623         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
64624         ULLONG_MAX doesn't work with 2.7.2.1.
64625
64626 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64627
64628         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
64629         From Ben Pfaff.
64630
64631         * modules/exclude (Depends-on): Depend on verify.
64632         * modules/strtoimax (Depends-on): Likewise.
64633         * modules/utimecmp (Depends-on): Likewise.
64634
64635 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64636
64637         * lib/exclude.c: Include verify.h.
64638         (verify): Remove.  All callers changed to use verify.h's version.
64639         * lib/strtoimax.c: Likewise.
64640         * lib/utimecmp.c: Likewis.e
64641
64642         Sync from coreutils.
64643         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
64644         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
64645         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
64646         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
64647         bother returning ENOSYS if settimeofday or stime fails; just let
64648         them return whatever errno they want to return.
64649         * lib/utimens.c: Include unistd.h, for dup2.
64650         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
64651         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
64652
64653 2005-10-02  Jim Meyering  <jim@meyering.net>
64654
64655         Sync from coreutils.
64656         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
64657         from glibc-2.2.5 that fails for read-only files.
64658
64659 2005-10-02  Jim Meyering  <jim@meyering.net>
64660
64661         Sync from coreutils.
64662         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
64663         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
64664         `#if HAVE_CONFIG_H'.
64665         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
64666         Remove AT_FDCWD test.
64667         Do not consume the fd unless successful.
64668         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
64669         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
64670         block, so that we don't even try to compile it if settimeofday is
64671         available.  This works around a compilation failure on OSF1 V5.1,
64672         due to stime requiring a `long int*' while tv_sec is `int'.
64673
64674 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
64675
64676         Sync from coreutils.
64677         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
64678         against `yes', rather than just testing for nonempty.
64679
64680 2005-10-01  Simon Josefsson  <jas@extundo.com>
64681
64682         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
64683         and Darwin.
64684
64685         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
64686         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
64687         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
64688         freeaddrinfo and gai_strerror are declared by the POSIX headers.
64689         Check if struct addrinfo is declared.
64690
64691 2005-10-01  Simon Josefsson  <jas@extundo.com>
64692
64693         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
64694         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
64695         AI_* and EAI_* definitions.  Protect function declarations.
64696
64697 2005-10-01  Jim Meyering  <jim@meyering.net>
64698
64699         Sync from coreutils.
64700
64701         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
64702         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
64703         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
64704         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64705         in the inet and nsl libraries.  Required on Solaris 5.7.
64706
64707 2005-10-01  Jim Meyering  <jim@meyering.net>
64708
64709         Sync from coreutils.
64710         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64711         in the inet and nsl libraries.  Required on Solaris 5.7.
64712
64713 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
64714
64715         * lib/getdelim.c (getdelim): Remove unused variables.
64716
64717 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64718
64719         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
64720         so that the code works even with ancient cpp.  Portability problem
64721         with GCC 2.7.2.1 reported by Thomas M.Ott.
64722
64723 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64724
64725         * modules/regex (Depends-on): Add strcase.
64726
64727         * modules/gethostname (Licence): Change from GPL to LGPL, since
64728         gethostname.c is a trivial implementation of a standard library
64729         function.
64730         * modules/poll (License): Change from GPL to LGPL, since it's
64731         derived from LGPL code.
64732
64733 2005-09-27  Jim Meyering  <jim@meyering.net>
64734
64735         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
64736         HAVE_CONFIG_H.
64737
64738         * lib/intprops.h (signed_type_or_expr__): Define.
64739         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
64740         for unsigned types.
64741
64742 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64743
64744         * lib/verify.h (verify_expr): Remove, replacing with:
64745         (verify_true): New macro that returns true instead of void.
64746         (verify_type__): Remove.
64747         (verify): Use verify_true rather than verify_type__.
64748
64749 2005-09-26  Bruno Haible  <bruno@clisp.org>
64750
64751         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
64752         is necessary.
64753         (lib_SOURCES): Remove mbchar.c.
64754         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
64755         (Files): Add m4/mbrtowc.m4.
64756         * modules/mbiter: Likewise.
64757         * modules/mbuiter: Likewise.
64758
64759 2005-09-26  Bruno Haible  <bruno@clisp.org>
64760
64761         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
64762         compile mbchar.c if they are not both present.
64763         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
64764         * m4/mbiter.m4 (gl_MBITER): Likewise.
64765         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
64766         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
64767         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
64768
64769 2005-09-25  Jim Meyering  <jim@meyering.net>
64770
64771         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
64772         also uses socklen_t.
64773
64774 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
64775
64776         * lib/utimens.c (ENOSYS): Define if not already defined.
64777         (futimens): Support having a null PATH if the file descriptor
64778         is nonnegative.
64779
64780         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
64781         Remove.
64782         (__attribute): Define to empty unless GCC 3.1 or later.
64783         This works around a core dump on OpenBSD 3.4, which has GCC
64784         2.95.3, which dumps core when given __attribute__(()).  It also
64785         simplifies other tests, since we really don't want to bother with
64786         worrying about which ancient version of GCC supported what.
64787         Original problem reported by Yoann Vandoorselaere, with part of
64788         the fix suggested by Derek Price.
64789
64790 2005-09-24  Jim Meyering  <jim@meyering.net>
64791
64792         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
64793         so we can once again use a positive bitfield width of 1 -- now we
64794         don't have to explain why we were using a bitfield width of 2.
64795
64796 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64797
64798         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
64799         and similarly for the other external symbols.  Problem reported
64800         by James Gallager.
64801
64802         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
64803         bug reported by Jim Meyering.
64804
64805         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
64806         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
64807         not needed, since socklen is a prerequisite module.
64808
64809 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64810
64811         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
64812         Problem reported by Eric Blake.
64813         (getaddrinfo): Initialize se so that it's not garbage.
64814         Redo internal storage allocation so that it doesn't make unportable
64815         assumptions about alignment.
64816         Fix a memory leak.
64817
64818         * lib/utimens.c (futimens): Use futimesat if available.
64819         Prefer it to futimes since it doesn't have the futimes bug.
64820
64821         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
64822         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
64823         Instead, declare a function that returns a pointer to an array,
64824         and use verify_type__ to declare the size of the array.
64825         Problem and germ of a solution reported by Bruno Haible.
64826         (verify_type__): Use 2, not 1, for bitfield size, to avoid
64827         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
64828
64829 2005-09-23  Jim Meyering  <jim@meyering.net>
64830
64831         Sync from coreutils.
64832         Correct build failure (socklen_t not defined) on at least
64833         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
64834         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
64835
64836 2005-09-23  Jim Meyering  <jim@meyering.net>
64837
64838         * modules/getaddrinfo (Depends-on): Add socklen.
64839
64840 2005-09-23  Bruno Haible  <bruno@clisp.org>
64841
64842         * tests/test-verify.c: New file.
64843
64844 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64845
64846         Sync from coreutils.
64847
64848         * modules/argmatch (Depends-on): Add verify.
64849         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
64850         unistd-safer.
64851         * modules/save-cwd (Depends-on): Likewise.
64852
64853         * modules/openat (Files): Add lib/openat-die.c.
64854         (Depends-on): Remove error, exitfail.
64855         Add dirname.
64856
64857         * modules/verify: New file.
64858         * MODULES.html.sh (Diagnostics <assert.h>): New section,
64859         with "verify" module.
64860
64861 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64862
64863         Sync from coreutils.
64864
64865         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
64866         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
64867         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
64868         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
64869         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
64870         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
64871         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
64872         Don't bother checking for string.h, stdlib.h, unistd.h.
64873         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
64874         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
64875         module's job.
64876         * m4/jm-macros.m4 (gl_MACROS): Likewise.
64877         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
64878
64879         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
64880         (gl_GETDATE): Use it.
64881
64882         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
64883
64884 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64885
64886         Sync from coreutils.
64887
64888         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
64889         stat-time.h.
64890         * lib/argmatch.h: Include verify.h
64891         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
64892         (ARGMATCH_ASSERT): Remove; unused.
64893         * lib/canonicalize.c: Assume STDC_HEADERS.
64894         * lib/exclude.c: Include "strcase.h".
64895         * lib/regex_internal.h [!defined _LIBC]: Likewise.
64896         * lib/getusershell.c: Include stdio--.h rather than stdio.h
64897         and stdio-safer.h.
64898         (getusershell): Call fopen, not fopen_safer.
64899         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
64900         Do not include unistd-safer.h.
64901         (save_cwd): Don't call fd_safer; no longer needed
64902         now that we include fcntl--.h.
64903
64904         * lib/getdate.y (relative_time): New type.
64905         (RELATIVE_TIME_0): New constant.
64906         (parser_control): Use relative_time instead of doing it ourselves.
64907         (%union): Add new relative_time rel member.
64908         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
64909         Now typeless.
64910         (relunit, relunit_snumber): Now of type rel.
64911         (zone, rel, relunit, get_date): Adjust to above changes.
64912
64913         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
64914         Do not include unistd-safer.h.
64915         (getloadavg): Don't call fd_safer; no longer needed
64916         now that we include fcntl--.h.
64917
64918         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
64919         (make_dir_parents): Treat ENOSYS like EEXIST.
64920
64921         Improve quality of diagnostics on restore_cwd failure.
64922         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
64923         (make_dir_parents): Last arg is now int * (for errno), not bool *.
64924         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
64925         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
64926         each time through the loop.  Do not diagnose restore_cwd failure;
64927         that is the caller's job (and perhaps the caller does not care).
64928
64929         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
64930         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
64931         If the file already exists but is not a directory, don't bother
64932         to try to make its parents.
64933         Close potential file descriptor leak if we can't chdir("/") (!).
64934         Don't always return true if chdir($PWD) fails; return true only
64935         if the requested action was done successfully (except for the
64936         chdir($PWD)).
64937         Don't log final directory unless we actually made it.
64938         Refactor to avoid duplicate code to fix up permissions.
64939         Don't attempt to fix up parent permissions if chdir($PWD) fails.
64940
64941         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
64942         to make it a bit faster and (I hope) clearer.
64943         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
64944         Fix bug in formats like %2N.
64945
64946         * lib/verify.h: New file.
64947
64948 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64949
64950         Sync from coreutils.
64951         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
64952
64953 2005-09-22  Jim Meyering  <jim@meyering.net>
64954
64955         Sync from coreutils.
64956
64957         * m4/lstat.m4 (gl_FUNC_LSTAT):
64958         Use AC_LIBSOURCES to require lstat.c and lstat.h.
64959         Remove obsolete comment.
64960         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
64961         * m4/xstrtod.m4: Likewise.
64962
64963         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
64964
64965 2005-09-22  Jim Meyering  <jim@meyering.net>
64966
64967         Sync from coreutils.
64968
64969         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
64970
64971         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
64972         the .tm_year member, since otherwise gcc-4.0 would now warn about
64973         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
64974
64975         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
64976         order to avoid an unsuppressible warning from gcc on 64-bit systems.
64977
64978         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
64979         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
64980         when run in a time zone for which daylight savings time is in effect
64981         for the starting date.
64982
64983         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
64984         stop us from restricting permissions of just-created absolute-named
64985         directories.
64986         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
64987         to restore initial working directory.
64988         * lib/mkdir-p.c (make_dir_parents): New parameter:
64989         different_working_dir, to tell caller if/when we change the working
64990         directory and are unable to return to the initial one.
64991         * lib/mkdir-p.h (make_dir_parents): Update prototype.
64992         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
64993         `return false'.  This fixes a bug introduced on 2004-07-30.
64994
64995         * lib/openat.c (fdopendir): Be sure to close the supplied
64996         file descriptor before returning.  This makes our replacement
64997         implementation a little closer to Solaris's, where fdopendir
64998         ties the file descriptor to the returned DIR* pointer.
64999         * lib/openat.c (unlinkat): New function.
65000         * lib/openat.h (unlinkat): Add prototype.
65001         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
65002         (openat_restore_fail): Rename from openat_restore_die.
65003         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
65004
65005         Provide an alternative to exiting immediately upon save_cwd or
65006         restore_cwd failure.  Now, an application can arrange e.g.,
65007         to perform a longjump in that case.
65008         * lib/openat.c: Include dirname.h.
65009         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
65010         (rpl_openat, fdopendir, fstatat): Call openat_save_die
65011         and openat_restore_die rather than calling error directly.
65012         Don't include "error.h" or "exitfail.h"; they're no longer needed.
65013
65014         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
65015         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
65016         define.
65017
65018         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
65019         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
65020                             int utc, int nanoseconds);
65021         Background:
65022         date should not have to allocate a megabyte of virtual memory to
65023         handle a format argument like +%1048575T.  When implemented with
65024         strftime, it must allocate such a buffer, use strftime to fill it
65025         in, print it, then free it.
65026         With fprintftime, it simply prints everything and exits.
65027         With no need for memory allocation, that's one fewer way to fail.
65028         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
65029         optional field width, not before, so we accept %9:z, not %:9z.
65030         (my_strftime): Be sure to use L_('x') for literals.
65031
65032         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
65033         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
65034         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
65035         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
65036         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
65037         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
65038         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
65039         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
65040         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
65041         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
65042         * lib/xgethostname.c, lib/xreadlink.c:
65043         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
65044
65045         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
65046         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
65047         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
65048         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65049         and don't include <sys/file.h>).
65050
65051 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
65052
65053         Sync from coreutils.
65054
65055         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
65056         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
65057         [!LDAV_DONE]: Avoid unused variable warning.
65058
65059 2005-09-21  Bruno Haible  <bruno@clisp.org>
65060
65061         * lib/unicodeio.h (unicode_to_mb): New declaration.
65062
65063 2005-09-20  Derek Price  <derek@ximbiot.com>
65064
65065         * lib/getaddrinfo.c: Don't include <netdb.h> included from
65066         getaddrinfo.h.
65067
65068 2005-09-20  Bruno Haible  <bruno@clisp.org>
65069
65070         * gnulib-tool: Remove trailing slashes from the values specified for
65071         --source-base, --m4-base, --tests-base, --aux-dir.
65072         Suggested by Simon Josefsson <jas@extundo.com>.
65073
65074 2005-09-20  Bruno Haible  <bruno@clisp.org>
65075
65076         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
65077         func_modules_to_filelist, func_import, func_create_testdir): Make all
65078         sorting results locale-independent, so that gnulib-cache.m4 doesn't
65079         change when gnulib-tool is invoked in a different locale.
65080
65081 2005-09-19  Simon Josefsson  <jas@extundo.com>
65082
65083         * m4/socklen.m4: Fix typo.
65084
65085 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65086
65087         Use a consistent style for including <config.h>.
65088         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
65089         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
65090         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
65091         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
65092         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
65093         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
65094         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
65095         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
65096         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
65097         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
65098         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
65099         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
65100         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
65101         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
65102         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
65103         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
65104         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
65105         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
65106         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
65107         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
65108         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
65109         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
65110         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
65111         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
65112         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
65113         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
65114         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
65115         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
65116         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
65117         lib/xstrtoumax.c, lib/yesno.c:
65118         Standardize inclusion of config.h.
65119         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
65120         lib/inttostr.h:  Removed inclusion of config.h from header files.
65121         * lib/inttostr.c:  Adjusted in-tree users.
65122         * lib/timespec.h: Remove superfluous warning to include config.h.
65123         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
65124         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
65125         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
65126         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
65127         config.h with HAVE_CONFIG_H.
65128
65129 2005-09-19  Jim Meyering  <jim@meyering.net>
65130
65131         * modules/pathmax (License): Change to LGPL.
65132
65133 2005-09-19  Derek Price  <derek@ximbiot.com>
65134
65135         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
65136
65137 2005-09-19  Bruno Haible  <bruno@clisp.org>
65138
65139         * gnulib-tool (import): Provide default for --tests-base.
65140
65141 2005-09-19  Bruno Haible  <bruno@clisp.org>
65142
65143         * doc/quote.texi: New file, extracted from gnulib.texi.
65144         * doc/ctime.texi: New file, extracted from gnulib.texi.
65145         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
65146         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
65147         * doc/gnulib.texi: Include them.
65148
65149 2005-09-18  Bruno Haible  <bruno@clisp.org>
65150
65151         Portability fix.
65152         * gnulib-tool (func_readlink): New function.
65153         (func_ln_if_changed): Use it.
65154
65155 2005-09-18  Bruno Haible  <bruno@clisp.org>
65156
65157         * gnulib-tool: Support --with-tests also with --import.
65158         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
65159         (func_import): Use variables $testsbase and $inctests. Emit a
65160         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
65161         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
65162         SUBDIRS += $testsdir.
65163         (func_create_testdir): Update.
65164
65165 2005-09-18  Bruno Haible  <bruno@clisp.org>
65166
65167         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
65168         instead of $dry_run.
65169         (func_cp_if_changed, func_mv_if_changed): Remove functions.
65170         (func_ln_if_changed): Don't handle dry-run here.
65171         (func_import): In dry-run mode, detect more precisely which actions
65172         would be performed, and don't use "...ing" verbs.
65173
65174 2005-09-18  Bruno Haible  <bruno@clisp.org>
65175
65176         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
65177         (func_import): Use join on two temporary files instead of three nested
65178         loops, in order to determine which files are new or old.
65179
65180 2005-09-18  Bruno Haible  <bruno@clisp.org>
65181
65182         * gnulib-tool (func_import): Comment out code that spits out the
65183         new files with --dry-run.
65184
65185 2005-09-18  Bruno Haible  <bruno@clisp.org>
65186
65187         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
65188
65189 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65190
65191         * lib/stat-time.h: New file.
65192         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
65193         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
65194         in a different way.
65195         (timespec_cmp): New function.
65196         * lib/utimecmp.c: Include stat-time.h.
65197         (SYSCALL_RESOLUTION): Depend on whether various struct stat
65198         members exist, not on the obsolescent ST_MTIM_NSEC.
65199         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
65200
65201 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65202
65203         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
65204
65205 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65206
65207         * MODULES.html.sh (File system functions): Add stat-time.
65208         * modules/stat-time: New file.
65209         * modules/timespec (Files): Remove m4/st_mtim.m4; this
65210         is now done in a different way, by the stat-time module.
65211         * modules/utimecmp (Depends-on): Add stat-time.
65212
65213 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65214
65215         * m4/st_mtim.m4: Remove.  Superseded by...
65216         * m4/stat-time.m4: New file.
65217         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
65218         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
65219
65220 2005-09-15  Derek Price  <derek@ximbiot.com>
65221
65222         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
65223
65224 2005-09-15  Derek Price  <derek@ximbiot.com>
65225
65226         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
65227         * lib/regex_internal.c: Ditto, using this...
65228         (__GNUC_PREREQ): ...new macro.
65229         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
65230         using...
65231         (__GNUC_PREREQ): ...this new macro.
65232
65233         * lib/strstr.h: Include string.h. Define strstr as a macro here.
65234
65235 2005-09-15  Derek Price  <derek@ximbiot.com>
65236             Paul Eggert  <eggert@cs.ucla.edu>
65237
65238         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
65239         changes, consolidating in...
65240         * lib/regex_internal.h: ...this file.
65241
65242 2005-09-13  Jim Meyering  <jim@meyering.net>
65243
65244         * lib/canon-host.c: Filter through gnu indent and reword comments
65245         slightly.
65246         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
65247
65248 2005-09-13  Derek Price  <derek@ximbiot.com>
65249
65250         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
65251         failure.
65252         Reported by Jim Meyering  <jim@meyering.net>.
65253
65254 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65255
65256         * lib/base64.c: Typo.
65257         (base64_encode): Put b64str in initialized data section.
65258
65259 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65260
65261         Merge glibc and coreutils changes into gnulib, plus a few
65262         extra fixes.
65263         * lib/md5.c: Use #error rather than a string.
65264         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
65265         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
65266         (__attribute__): Define to empty for non recent-GCC.
65267         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
65268         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
65269         Renamed from their non-__ counterparts, with new macros replacing
65270         them if not _LIBC.  Add __THROW attribute.
65271         (rol): Remove.
65272         (struct md5_ctx): Align buffer if using GCC.
65273         * lib/sha1.h (struct sha1_ctx): Likewise.
65274         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
65275         The old name was backwards.
65276         (NOTSWAP): Remove; not used.
65277         (rol): New macro, moved here from md5.h.
65278         (sha1_process_block): Remove a FIXME that doesn't make sense.
65279
65280 2005-09-12  Derek Price  <derek@ximbiot.com>
65281
65282         Return usable errors from canon-host.
65283         * lib/canon-host.h: New file.
65284         * lib/canon-host.c (canon_host): Wrap...
65285         (canon_host_r): ...this new function, which now relies exclusively on
65286         getaddrinfo.
65287         (ch_strerror): New function.
65288         (last_cherror): New global.
65289         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
65290         interface.
65291         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
65292         void *.
65293         (freeaddrinfo): Free ai->ai_canonname when set.
65294
65295 2005-09-12  Derek Price  <derek@ximbiot.com>
65296
65297         Make canon-host require getaddrinfo.
65298         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
65299         AC_LIBSOURCE canon-host.h.  Call...
65300         (gl_PREREQ_CANON_HOST): ...this new function, which requires
65301         gl_GETADDRINFO.
65302         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
65303
65304 2005-09-12  Derek Price  <derek@ximbiot.com>
65305
65306         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
65307         LGPL.
65308         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
65309
65310 2005-09-12  Derek Price  <derek@ximbiot.com>
65311
65312         * lib/gai_strerror.c: Include config.h when available.  Include
65313         getaddrinfo.h before other headers to test interface.
65314         Reported by Larry Jones <lawrence.jones@ugs.com>.
65315
65316 2005-09-12  Derek Price  <derek@ximbiot.com>
65317             Paul Eggert  <eggert@cs.ucla.edu>
65318
65319         * modules/glob (Files): Add glob-libc.h.
65320
65321 2005-09-12  Derek Price  <derek@ximbiot.com>
65322             Paul Eggert  <eggert@cs.ucla.edu>
65323
65324         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
65325         glob_.h, glob-libc.h.
65326         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
65327
65328 2005-09-12  Derek Price  <derek@ximbiot.com>
65329             Paul Eggert  <eggert@cs.ucla.edu>
65330
65331         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
65332         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
65333         protecting things that should be done only in gnulib contexts.
65334         * lib/glob_.h: New file, containing only the glob things needed for
65335         gnulib.
65336         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
65337         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
65338         (glob, globfree, glob_pattern_p): Now defined simply in terms of
65339         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
65340         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
65341         and to respect the namespace rules better.
65342
65343 2005-09-08  Simon Josefsson  <jas@extundo.com>
65344
65345         * modules/socklen: New file.
65346
65347 2005-09-08  Simon Josefsson  <jas@extundo.com>
65348
65349         * m4/socklen.m4: New file.
65350
65351 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65352
65353         * modules/utimens (Files): Add m4/utimbuf.m4, since
65354         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
65355         Reported by Sergey Poznyakoff.
65356
65357 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65358
65359         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
65360         definitions, since that's the preferred style in glibc.
65361         Fix a minor spacing issue, and update copyright notice to match
65362         glibc's.
65363
65364 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65365
65366         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
65367
65368 2005-09-06  Simon Josefsson  <jas@extundo.com>
65369
65370         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
65371         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
65372
65373 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65374
65375         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
65376         warning.
65377
65378 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65379
65380         * config/srclist.txt: Add glibc bug 1302.
65381
65382 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
65383
65384         Change bitset word type from unsigned int to unsigned long int,
65385         as this has better performance on typical 64-bit hosts.
65386         Port bitset code to hosts with unusual word sizes.
65387         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
65388         (build_collating_symbol):
65389         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
65390         argument is a bitset.  This is merely a style issue, but it makes
65391         it clearer that an entire array is expected.
65392         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
65393         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
65394         Port to the case where bitset_word is not the same as unsigned int.
65395         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65396         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
65397         Likewise.
65398         * lib/regexec.c (check_dst_limits_calc_pos_1,
65399         check_subexp_matching_top):
65400         (build_trtable, group_nodes_into_DFAstates):
65401         Likewise.
65402         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
65403         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
65404         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
65405         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
65406         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
65407         * lib/regcomp.c (optimize_subexps, lower_subexp):
65408         Work even if bitset_word has holes in its bitwise representation.
65409         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
65410         * lib/regexec.c (check_dst_limits_calc_pos_1,
65411         check_subexp_matching_top):
65412         Likewise.
65413         * lib/regex_internal.c (re_string_reconstruct):
65414         Don't assume UCHAR_MAX == 255.
65415         * lib/regex_internal.h (bitset_set_all): Likewise.
65416         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
65417         All uses changed.
65418         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
65419         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
65420         All uses changed.
65421         (BITSET_WORD_MAX): New macro.
65422         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
65423         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
65424         (bitset_empty, bitset_copy):
65425         Prefer sizeof (bitset) to multiplying it out ourselves.
65426         (bitset_not_merge): Remove; unused.
65427         (bitset_contain): Return bool, not unsigned int with one bit on.
65428         All callers changed.
65429         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
65430         alignment than re_node_set; do this by defining a new internal
65431         type struct dests_alloc and using it to allocate memory.
65432
65433 2005-09-05  Bruno Haible  <bruno@clisp.org>
65434
65435         * gnulib-tool (func_import): Fix comparison in handling of symbolic
65436         links.
65437
65438 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
65439
65440         * modules/size_max (Makefile.am): Add size_max.h
65441
65442 2005-09-04  Derek Price  <derek@ximbiot.com>
65443
65444         * gnulib-tool (func_import): Fix reversed $symbolic logic.
65445
65446 2005-09-03  Simon Josefsson  <jas@extundo.com>
65447
65448         * gnulib-tool: Fix typo.
65449
65450 2005-09-03  Simon Josefsson  <jas@extundo.com>
65451
65452         * config/srclist.txt: Add glibc bug 1293.
65453
65454 2005-09-03  Derek Price  <derek@ximbiot.com>
65455
65456         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
65457         From Larry Jones <lawrence.jones@ugs.com>.
65458
65459 2005-09-02  Simon Josefsson  <jas@extundo.com>
65460
65461         * modules/socklen: New file.
65462
65463 2005-09-02  Simon Josefsson  <jas@extundo.com>
65464
65465         * modules/havelib: New module.
65466
65467         * modules/gettext, modules/iconv, modules/lock, modules/readline:
65468         Use havelib.
65469
65470 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65471
65472         Check for arithmetic overflow when calculating sizes, to prevent
65473         some buffer-overflow issues.  These patches are conservative, in the
65474         sense that when I couldn't determine whether an overflow was possible,
65475         I inserted a run-time check.
65476         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
65477         macros.
65478         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
65479         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
65480         (re_xnrealloc, re_x2nrealloc): New inline functions.
65481         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
65482         parse_bracket_exp):
65483         (build_equiv_class, build_charclass): Check for arithmetic overflow
65484         in size expression calculations.
65485         * lib/regex_internal.c (re_string_realloc_buffers):
65486         (build_wcs_upper_buffer, re_node_set_add_intersect):
65487         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
65488         (re_dfa_add_node, register_state): Likewise.
65489         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
65490         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
65491         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
65492         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
65493
65494 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65495
65496         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65497         m4/ulonglong.m4.  Problem reported by Martin Lambers.
65498
65499 2005-09-02  Bruno Haible  <bruno@clisp.org>
65500
65501         Support for lib vs. lib64 distinction on biarch platforms.
65502         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
65503         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
65504         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
65505
65506 2005-09-02  Bruno Haible  <bruno@clisp.org>
65507
65508         * gnulib-tool (import): In the other first-use case, provide defaults
65509         as well.
65510
65511 2005-09-02  Bruno Haible  <bruno@clisp.org>
65512
65513         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
65514         patches not yet found in the latest gettext release.
65515
65516 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65517
65518         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
65519         to avoid a collision with bits/local_lim.h in glibc.
65520         All uses changed.  Problem reported by Dmitry V. Levin in
65521         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
65522
65523         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
65524         bugs in int versus size_t comparisons.
65525         (re_string_context_at): Fix bug where the code assumed that
65526         Idx is signed.
65527
65528         Use bool where appropriate.
65529         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
65530         All callers changed.
65531         (calc_eclosure_iter): Likewise, for ROOT arg.
65532         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
65533         (build_charclass_op): Likewise, for NON_MATCH arg.
65534         * lib/regex_internal.c (re_string_allocate, re_string_construct):
65535         (re_string_construct_common): Likewise, for ICASE arg.
65536         * lib/regexec.c (re_search_2_stub, re_search_stub):
65537         Likewise, for RET_LEN arg.
65538         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
65539         (set_regs): Likewise, for FL_BACKTRACK arg.
65540         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
65541         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
65542         (calc_eclosure_iter, parse_bracket_exp):
65543         Use bool for internal variables that are booleans.
65544         * lib/regexec.c (re_search_internal, check_matching,
65545         proceed_next_node):
65546         (set_regs, build_sifted_states, sift_states_bkref):
65547         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
65548         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65549         (find_collation_sequence_value):
65550         Likewise.
65551         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
65552         (re_node_set_compare):
65553         Return bool, not int. All callers changed.
65554         * lib/regexec.c (check_halt_node_context, check_dst_limits):
65555         (build_trtable, check_node_accept): Likewise.
65556         * lib/regex_internal.h: Include stdbool.h.
65557
65558         Fix bugs uncovered when converting to bool.
65559         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
65560         failure instead of charging ahead blindly.
65561         * lib/regex_internal.c (register_state): Likewise.
65562         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
65563         for freeing internal storage.
65564         (group_nodes_into_DFA_states): Use unsigned int, not int, for
65565         bitset pieces used as boolean, to avoid undefined behavior
65566         on hosts that do int overflow checking.
65567
65568 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65569
65570         * config/srclist.txt: Add glibc bugs 1285-1287.
65571
65572 2005-09-01  Jim Meyering  <jim@meyering.net>
65573
65574         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
65575         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
65576         Require gl_STAT_MACROS, too.
65577
65578 2005-09-01  Bruno Haible  <bruno@clisp.org>
65579
65580         * gnulib-tool (import): In the first-use case, provide defaults.
65581
65582 2005-09-01  Bruno Haible  <bruno@clisp.org>
65583
65584         * gnulib-tool (func_import): Remove the .tmp files.
65585
65586 2005-09-01  Bruno Haible  <bruno@clisp.org>
65587
65588         * gnulib-tool (func_import): Fix handling of symbolic links.
65589
65590 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65591
65592         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
65593         old glibc regex code mishandles strings longer than 2**31 bytes.
65594         This patch fixes this when the regex code is used in gnulib
65595         (i.e., outside glibc).
65596
65597         This patch should not affect the use of the regex code inside
65598         glibc.  No doubt this problem also needs to be handled for glibc
65599         as well, but the result will be an incompatible change to the
65600         glibc ABI, and the old ABI will have to be supported too.  That
65601         can be the the subject for another patch.
65602
65603         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
65604         governing whether the rest of this patch is active.  By default,
65605         the macro is disabled and the patch has no effect.
65606         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
65607         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
65608         (struct re_pattern_buffer, re_search, re_search_2, re_match):
65609         (re_match_2, re_set_registers): Use the new types.
65610         * lib/regex_internal.h (Idx, re_hashval_t): New types.
65611         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
65612         New macros.
65613         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
65614         (re_string_context_at, bin_tree_t, re_dfastate_t):
65615         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
65616         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
65617         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
65618         (re_string_char_size_at, re_string_wchar_at):
65619         (re_string_elem_size_at):
65620         Use the new types and macros to port to 64-bit hosts.
65621         Use unsigned types for internal values, so that the code
65622         mostly works even for arrays larger than SSIZE_MAX.
65623         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
65624         (search_duplicated_node, calc_eclosure_iter, fetch_number):
65625         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
65626         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
65627         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
65628         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
65629         (calc_inveclosure, parse_dup_op, build_range_exp):
65630         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
65631         (fetch_number, create_token_tree, mark_opt_subexp):
65632         Likewise.
65633         * lib/regex_internal.c (re_string_construct_common,
65634         create_ci_newstate):
65635         (create_cd_newstate, re_string_allocate, re_string_construct):
65636         (re_string_realloc_buffers, build_wcs_upper_buffer):
65637         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65638         (re_string_reconstruct, re_string_peek_byte_case):
65639         (re_string_fetch_byte_case, re_string_context_at):
65640         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65641         (re_node_set_init_copy, re_node_set_add_intersect):
65642         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65643         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65644         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65645         (re_acquire_state, re_acquire_state_context, register_state):
65646         Likewise.
65647         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
65648         search_cur_bkref_entry):
65649         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
65650         (re_search_internal, re_search_2_stub, re_search_stub)
65651         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
65652         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
65653         (update_cur_sifted_state, check_dst_limits):
65654         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65655         (check_subexp_limits, sift_states_bkref, merge_state_array):
65656         (check_subexp_matching_top, get_subexp, get_subexp_sub):
65657         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
65658         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65659         (expand_bkref_cache, check_node_accept_bytes):
65660         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
65661         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
65662         (acquire_init_state_context, check_halt_node_context):
65663         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
65664         (sift_states_backward, clean_state_log_if_needed):
65665         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
65666         (find_recover_state, transit_state_sb, transit_state_mb):
65667         (transit_state_bkref, build_trtable, match_ctx_clean):
65668         Likewise.
65669         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
65670         to work around an assumption that REG_MISSING is negative.
65671
65672         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
65673         (seek_collating_symbol_entry) [defined _LIBC]:
65674         (lookup_collation_sequence_value) [defined _LIBC]:
65675         (build_range_exp, build_collating_symbol) [defined _LIBC]:
65676         Use prototypes rather than old-style function definitions.
65677         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
65678         (transit_state_sb) [0]:
65679         (find_collation_sequence_value) [defined _LIBC]: Likewise.
65680
65681         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
65682         rm_eo.
65683
65684         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
65685         (optimize_subexps, lower_subexp):
65686         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
65687         since the signed shift might overflow.  Use 1u<<31 instead.
65688         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65689         Likewise.
65690         * lib/regexec.c (check_dst_limits_calc_pos_1,
65691         check_subexp_matching_top): Likewise.
65692
65693         * lib/regcomp.c (optimize_subexps, lower_subexp):
65694         Use CHAR_BIT rather than 8, for clarity.
65695         * lib/regexec.c (check_dst_limits_calc_pos_1):
65696         (check_subexp_matching_top): Likewise.
65697         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
65698         have to worry about portability issues when shifting it left.
65699         Remove no-longer-needed test for table_size > 0.
65700         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
65701         in a word, as the resulting behavior is undefined.
65702         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
65703         in one case, a <= should have been an <, and in another case the
65704         whole test was missing.
65705         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
65706         the standard name CHAR_BIT.
65707         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
65708         this is not true on one's complement and signed-magnitude hosts.
65709
65710         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
65711         next_last_offset.
65712         (struct re_dfa_t): Remove unused member states_alloc.
65713         * lib/regcomp.c (init_dfa): Don't initialize unused members.
65714
65715 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65716
65717         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
65718         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
65719         and large-file glibc and in 32-bit large-file Solaris.
65720
65721 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65722
65723         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
65724         lengths fit in regoff_t; this isn't true if regoff_t is the same
65725         width as size_t.
65726         * lib/regex.c (re_search_internal): 5th arg is LAST_START
65727         (= START + RANGE) instead of RANGE.  This avoids overflow
65728         problems when regoff_t is the same width as size_t.
65729         All callers changed.
65730         (re_search_2_stub): Check for overflow when adding the
65731         sizes of the two strings.
65732         (re_search_stub): Check for overflow when adding START
65733         to RANGE; if it occurs, substitute the extreme value.
65734
65735 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65736
65737         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
65738
65739 2005-08-31  Jim Meyering  <jim@meyering.net>
65740
65741         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
65742         a pointer-to-const.
65743         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
65744         (register_state): Likewise.
65745         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
65746         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65747         (group_nodes_into_DFAstates): Likewise.
65748
65749 2005-08-31  Jim Meyering  <jim@meyering.net>
65750
65751         * check-module: Add a FIXME comment.
65752
65753 2005-08-31  Eric Blake  <ebb9@byu.net>
65754
65755         * modules/unistd-safer (Files): Add unistd--.h.
65756         * modules/stdio-safer (Files): Add stdio--.h.
65757
65758 2005-08-31  Derek Price  <derek@ximbiot.com>
65759
65760         * lib/getdelim.c (getdelim): Return EOF on EOF.
65761         Reported by Larry Jones <lawrence.jones@ugs.com>.
65762
65763 2005-08-31  Bruno Haible  <bruno@clisp.org>
65764
65765         Avoid unnecessary diffs in the generated lib/Makefile.am.
65766         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
65767         the generated files.
65768         (func_import): Don't set cmd.
65769
65770 2005-08-31  Bruno Haible  <bruno@clisp.org>
65771
65772         * lib/strstr.c: Include <stddef.h>, for NULL.
65773         * lib/strcasestr.c: Likewise.
65774         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65775
65776 2005-08-31  Bruno Haible  <bruno@clisp.org>
65777
65778         * gnulib-tool: New option --macro-prefix.
65779         (func_import): Use macro_prefix.
65780         (import): Handle option --macro-prefix.
65781
65782 2005-08-31  Bruno Haible  <bruno@clisp.org>
65783
65784         * gnulib-tool (import): Rename most ac_* variables to cached_*.
65785         Also use new variables cached_lgpl, cached_libtool.
65786
65787 2005-08-31  Bruno Haible  <bruno@clisp.org>
65788
65789         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
65790         always instantiating them.
65791
65792 2005-08-31  Bruno Haible  <bruno@clisp.org>
65793
65794         * gnulib-tool (func_import): Read the previous cached settings
65795         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
65796         earlier added by gnulib but are now dropped. Warn when a gnulib file
65797         overwrites a non-gnulib file.
65798
65799 2005-08-31  Bruno Haible  <bruno@clisp.org>
65800
65801         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
65802         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
65803         projects that don't keep autogenerated files in CVS. Put into
65804         actioncmd only the specified modules, not the transitive closure.
65805
65806 2005-08-31  Bruno Haible  <bruno@clisp.org>
65807
65808         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
65809         Create directories that shall be filled.
65810         (import): Don't look for gl_* macros in configure.ac. Recurse across
65811         all directories containing a gnulib-cache.m4 files, if meaningful.
65812
65813 2005-08-31  Bruno Haible  <bruno@clisp.org>
65814
65815         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
65816         (import): Set seen_libtool when we see gl_LIBTOOL.
65817
65818 2005-08-31  Bruno Haible  <bruno@clisp.org>
65819
65820         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
65821         declaration macro definitions from generated gnulib.m4.
65822
65823 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
65824
65825         * lib/iconvme.h: Add prototype for iconv_alloc.
65826
65827 2005-08-29  Simon Josefsson  <jas@extundo.com>
65828
65829         * lib/iconvme.c: Fix errno.
65830
65831 2005-08-29  Bruno Haible  <bruno@clisp.org>
65832
65833         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
65834         that it works when the directory contains spaces.
65835
65836 2005-08-29  Bruno Haible  <bruno@clisp.org>
65837
65838         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
65839
65840 2005-08-29  Bruno Haible  <bruno@clisp.org>
65841
65842         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
65843         Emit more advice.
65844
65845 2005-08-29  Bruno Haible  <bruno@clisp.org>
65846         and Stepan Kasal  <kasal@ucw.cz>
65847
65848         * check-module: If more parameters are given, check each of them
65849         separately; add more exceptions, as noted by Jim Meyering.
65850         (check_module): New procedure.
65851         (%exempt_header): Now contains all exceptions.
65852
65853 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
65854
65855         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
65856
65857 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65858
65859         * lib/iconvme.c: Split iconv_string into iconv_alloc.
65860
65861 2005-08-28  Bruno Haible  <bruno@clisp.org>
65862
65863         * m4/gnulib-tool.m4: New file.
65864
65865 2005-08-27  Jim Meyering  <jim@meyering.net>
65866
65867         * modules/unistd-safer (Files): Add pipe-safer.c.
65868         * modules/fcntl-safer (Files): Add creat-safer.c.
65869
65870 2005-08-27  Jim Meyering  <jim@meyering.net>
65871
65872         * m4/stdlib-safer.m4: New file.  From coreutils.
65873         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
65874         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
65875         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
65876         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
65877         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
65878
65879 2005-08-27  Jim Meyering  <jim@meyering.net>
65880
65881         * lib/fopen-safer.c: Merge minor changes from coreutils.
65882         * lib/dup-safer.c: Likewise.
65883         * lib/fd-safer.c: Likewise.
65884
65885         Merge from coreutils.
65886         * lib/stdio--.h: New file.
65887         * lib/stdlib--.h: New file.
65888         * lib/mkstemp-safer.c: New file.
65889
65890         GNU tar needs these.
65891         * lib/pipe-safer.c: New file.
65892         * lib/creat-safer.c: New file.
65893         * lib/fcntl--.h (creat): Define to creat_safer.
65894         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
65895         * lib/unistd--.h (pipe): Define to pipe_safer.
65896         * lib/unistd-safer.h: Declare pipe_safer.
65897
65898 2005-08-26  Simon Josefsson  <jas@extundo.com>
65899
65900         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
65901         Haible <bruno@clisp.org>.
65902
65903 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
65904
65905         * lib/regex_internal.h: Remove all references to
65906         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
65907         or better.
65908         (bitset_not, bitset_merge, bitset_not_merge):
65909         (bitset_mask, re_string_allocate, re_string_construct):
65910         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
65911         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
65912         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
65913         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
65914         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65915         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65916         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
65917         (re_acquire_state_context):
65918         Remove unnecessary forward decls.
65919         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
65920         Put __attribute at function definition,
65921         now that the function decl has been removed.
65922         * lib/regex_internal.c (re_string_peek_byte_case):
65923         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
65924         Likewise.
65925
65926 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
65927
65928         * m4/regex.m4: Add AC_PREREQ(2.50).
65929         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
65930
65931 2005-08-25  Simon Josefsson  <jas@extundo.com>
65932
65933         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
65934         __fsetlocking.
65935
65936 2005-08-25  Simon Josefsson  <jas@extundo.com>
65937
65938         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
65939         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
65940         GLIBC specific code.
65941
65942 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65943
65944         Make regex safe for g++.  This fixes one real bug (an "err"
65945         that should have been "*err").  g++ problem reported by
65946         Sam Steingold.
65947         * lib/regex_internal.h (re_calloc): New macro, consistent with
65948         re_malloc etc.  All callers of calloc changed to use re_calloc.
65949         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
65950         not int.  All callers changed.
65951         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
65952         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
65953         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
65954         (find_recover_state): Change "err" to "*err"; this fixes what
65955         appears to be a real bug.
65956         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
65957         versus int.
65958
65959 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65960
65961         * modules/regex (Depends-on): Add malloc, since the code
65962         assumes that !malloc(0) means failure.
65963
65964 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65965
65966         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
65967
65968         alloca modernization/simplification for regex.
65969         * lib/regex.c: Remove portability cruft for alloca.  This no longer
65970         needs to be at the start of the file, and can be moved into
65971         regex_internal.h and simplified.
65972         * lib/regex_internal.h: Include <alloca.h>.
65973         (__libc_use_alloca) [!defined _LIBC]: New macro.
65974         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
65975         now works outside glibc.
65976
65977 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65978
65979         * config/srclist.txt: Add glibc bugs 1241, 1245.
65980
65981 2005-08-25  Jim Meyering  <jim@meyering.net>
65982
65983         * lib/open-safer.c: Include <config.h>.
65984         Otherwise, we'd lose LARGEFILE support in any file using
65985         e.g. "fcntl--.h"
65986
65987 2005-08-25  Bruno Haible  <bruno@clisp.org>
65988
65989         * m4/minmax.m4: Require autoconf 2.52.
65990         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
65991         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
65992         alternatives of translit over the alphabet.
65993         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
65994
65995 2005-08-24  Simon Josefsson  <jas@extundo.com>
65996
65997         * tests/test-getpass.c: New file.
65998
65999 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66000
66001         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
66002         for GNU regex features.
66003
66004 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66005
66006         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
66007         * lib/regex.h (regerror): Likewise.
66008
66009         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
66010         requires this.  (The code never needed it.)
66011
66012         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
66013         All uses of recently-renamed identifiers changed to use the new,
66014         POSIX-compliant names.  The code will build and run just fine
66015         without these changes, but it's better to eat our own dog food
66016         and use the standard-conforming names.
66017
66018         * lib/regex.h: Fix a multitude of POSIX name space violations.
66019         These changes have an effect only for programs that define
66020         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
66021         do not change anything for programs compiled in the normal way.
66022         Also, there is no effect on the ABI.
66023
66024         (_REGEX_SOURCE): New macro.
66025         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
66026         defined and _GNU_SOURCE is not; this fixes a name space violation.
66027
66028         Rename the following macros to obey POSIX requirements.
66029         The old names are still visible as macros if _REGEX_SOURCE is defined.
66030         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
66031         RE_BACKSLASH_ESCAPE_IN_LISTS.
66032         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
66033         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
66034         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
66035         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
66036         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
66037         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
66038         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
66039         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
66040         (REG_INTERVALS): renamed from RE_INTERVALS.
66041         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
66042         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
66043         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
66044         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
66045         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
66046         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
66047         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
66048         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
66049         RE_UNMATCHED_RIGHT_PAREN_ORD.
66050         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
66051         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
66052         (REG_DEBUG): renamed from RE_DEBUG.
66053         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
66054         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
66055         unusual, since we can't clash with the POSIX REG_ICASE.
66056         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
66057         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
66058         (REG_NO_SUB): renamed from RE_NO_SUB.
66059         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
66060         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
66061         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
66062         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
66063         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
66064         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
66065         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
66066         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
66067         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
66068         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
66069         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
66070         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
66071         RE_SYNTAX_POSIX_MINIMAL_BASIC.
66072         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
66073         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
66074         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
66075         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
66076         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
66077         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
66078         (REG_FIXED): Renamed from REGS_FIXED.
66079         (REG_NREGS): Renamed from RE_NREGS.
66080
66081         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
66082         of other REG_* macros, since POSIX says the user is allowed to
66083         #undef these macros selectively.
66084
66085         (reg_errcode_t): Update comment stating what other tables need
66086         to be consistent.
66087
66088         Rename the following enum values to obey POSIX requirements.
66089         The old names are still visible as macros.
66090         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
66091         is not defined, since GNU is supposed to be a superset of POSIX as
66092         much as possible, and since we want reg_errcode_t to be a signed
66093         type for implementation consistency.
66094         (_REG_NOERROR): Renamed from REG_NOERROR.
66095         (_REG_NOMATCH): Renamed from REG_NOMATCH.
66096         (_REG_BADPAT): Renamed from REG_BADPAT.
66097         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
66098         (_REG_ECTYPE): Renamed from REG_ECTYPE.
66099         (_REG_EESCAPE): Renamed from REG_EESCAPE.
66100         (_REG_ESUBREG): Renamed from REG_ESUBREG.
66101         (_REG_EBRACK): Renamed from REG_EBRACK.
66102         (_REG_EPAREN): Renamed from REG_EPAREN.
66103         (_REG_EBRACE): Renamed from REG_EBRACE.
66104         (_REG_BADBR): Renamed from REG_BADBR.
66105         (_REG_ERANGE): Renamed from REG_ERANGE.
66106         (_REG_ESPACE): Renamed from REG_ESPACE.
66107         (_REG_BADRPT): Renamed from REG_BADRPT.
66108         (_REG_EEND): Renamed from REG_EEND.
66109         (_REG_ESIZE): Renamed from REG_ESIZE.
66110         (_REG_ERPAREN): Renamed from REG_ERPAREN.
66111         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
66112         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
66113         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
66114         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
66115
66116         (_REG_RE_NAME, _REG_RM_NAME): New macros.
66117         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
66118         changed.  But support the old name if the new one is not defined
66119         and if _REGEX_SOURCE.
66120
66121         Change the following member names in struct re_pattern_buffer.
66122         The old names are still supported if !_REGEX_SOURCE.
66123         The new names are always supported, regardless of _REGEX_SOURCE.
66124         (re_buffer): Renamed from buffer.
66125         (re_allocated): Renamed from allocated.
66126         (re_used): Renamed from used.
66127         (re_syntax): Renamed from syntax.
66128         (re_fastmap): Renamed from fastmap.
66129         (re_translate): Renamed from translate.
66130         (re_can_be_null): Renamed from can_be_null.
66131         (re_regs_allocated): Renamed from regs_allocated.
66132         (re_fastmap_accurate): Renamed from fastmap_accurate.
66133         (re_no_sub): Renamed from no_sub.
66134         (re_not_bol): Renamed from not_bol.
66135         (re_not_eol): Renamed from not_eol.
66136         (re_newline_anchor): Renamed from newline_anchor.
66137
66138         Change the following member names in struct re_registers.
66139         The old names are still supported if !_REGEX_SOURCE.
66140         The new names are always supported, regardless of _REGEX_SOURCE.
66141         (rm_num_regs): Renamed from num_regs.
66142         (rm_start): Renamed from start.
66143         (rm_end): Renamed from end.
66144
66145         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
66146         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
66147         Prepend __ to parameter names.
66148
66149         Undo yesterday's changes.
66150
66151 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66152
66153         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
66154         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
66155         lib/regex.c.
66156
66157 2005-08-24  Jim Meyering  <jim@meyering.net>
66158
66159         Sync from coreutils.
66160         * m4/fcntl-safer.m4: New file.
66161
66162         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
66163         and object files for this module.
66164
66165 2005-08-24  Jim Meyering  <jim@meyering.net>
66166
66167         Sync from coreutils.
66168         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
66169
66170 2005-08-24  Jim Meyering  <jim@meyering.net>
66171
66172         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
66173         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
66174
66175 2005-08-24  Jim Meyering  <jim@meyering.net>
66176
66177         * modules/fcntl-safer: New module.
66178         * modules/fts (Depends-on): Add fcntl-safer.
66179         * MODULES.html.sh (File descriptor based Input/Output):
66180         Add fcntl-safer.
66181
66182 2005-08-24  Bruno Haible  <bruno@clisp.org>
66183
66184         Support for unit test modules.
66185         * modules/README: Mention tests modules.
66186         * modules/TEMPLATE-TESTS: New file.
66187         * gnulib-tool: New options --extract-tests-module, --with-tests and
66188         --tests-base (unused for the moment).
66189         (testsbase, inctests): New variables.
66190         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
66191         (func_verify_module): Exclude TEMPLATE-TESTS.
66192         (func_verify_nontests_module, func_verify_tests_module): New functions.
66193         (func_get_dependencies): Add implicit dependency for tests modules.
66194         (func_get_tests_module): New function.
66195         (func_modules_transitive_closure): When --with-tests was specified,
66196         include the unit tests as well, unless explicitly avoided.
66197         (func_emit_lib_Makefile_am): Ignore the tests modules here.
66198         (func_emit_tests_Makefile_am): New function.
66199         (func_create_testdir): When --with-tests was specified, emit a
66200         tests/ directory.
66201         * MODULES.html.sh (Future developments): Update.
66202
66203 2005-08-24  Bruno Haible  <bruno@clisp.org>
66204
66205         * modules/tls-tests: New file.
66206         * tests/test-tls.c: New file, from GNU gettext.
66207
66208 2005-08-24  Bruno Haible  <bruno@clisp.org>
66209
66210         * modules/lock-tests: New file.
66211         * tests/test-lock.c: New file, from GNU gettext.
66212
66213 2005-08-24  Bruno Haible  <bruno@clisp.org>
66214
66215         * lib/lock.h: Add multiple inclusion guard.
66216         * lib/tls.h: Add multiple inclusion guard.
66217
66218 2005-08-24  Bruno Haible  <bruno@clisp.org>
66219
66220         * gnulib-tool: Add support for the --aux-dir option to
66221         --create-testdir, --create-megatestdir, --test, --megatest.
66222         (func_create_testdir, func_create_megatestdir): Optionally emit a
66223         AC_CONFIG_AUX_DIR directive.
66224         (create-testdir, create-megatestdir, test, megatest): Provide a
66225         default value for $auxdir.
66226
66227 2005-08-24  Bruno Haible  <bruno@clisp.org>
66228
66229         * gnulib-tool (import): Use compound statement instead of subshell
66230         where possible.
66231
66232 2005-08-24  Bruno Haible  <bruno@clisp.org>
66233
66234         * gnulib-tool (import): Change --aux-dir default to "build-aux".
66235
66236 2005-08-24  Bruno Haible  <bruno@clisp.org>
66237
66238         * gnulib-tool (func_version): Update.
66239
66240 2005-08-24  Bruno Haible  <bruno@clisp.org>
66241
66242         * gnulib-tool (func_import, func_create_testdir,
66243         func_create_megatestdir): Quote all autoconf macro arguments.
66244
66245 2005-08-24  Bruno Haible  <bruno@clisp.org>
66246
66247         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
66248         option --force, because --force causes the aclocal.m4 of each
66249         subdirectory to be newer than the corresponding config.h.in.
66250
66251 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66252
66253         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
66254         All contents moved to gl_REGEX.
66255         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
66256         assume that it does.
66257
66258 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66259
66260         * lib/regex.h (REG_NOSYS)
66261         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
66262         Define, since POSIX requires it as of 2001.
66263         (_REG_ENOSYS)
66264         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
66265         New private symbol, used to keep the enum signed in all cases.
66266         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
66267         Youngman in
66268         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
66269
66270         * lib/regex_internal.c (re_string_skip_chars, register_state):
66271         (calc_state_hash):
66272         Remove forward decls; no longer needed now that we use prototypes.
66273         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
66274         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
66275         (clean_state_log_if_needed): Likewise.
66276
66277 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66278
66279         * config/srclist.txt: Add glibc bugs 1231-1233.
66280
66281 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66282
66283         Fix problems reported by Sam Steingold in
66284         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
66285         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
66286         assumed that reg_errcode_t is a signed type, which is not
66287         necessarily true if _XOPEN_SOURCE is not defined.
66288         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
66289         since some compilers warn about it otherwise.
66290
66291 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66292
66293         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
66294         (init_word_char, create_initial_state, duplicate_node_closure):
66295         (fetch_token, peek_token_bracket, build_range_exp):
66296         (build_collating_symbol): Remove forward decls; no longer needed
66297         now that we use prototypes.
66298
66299         * lib/regcomp.c:
66300         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
66301         (re_compile_fastmap_iter, regcomp, regerror, regfree):
66302         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
66303         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
66304         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
66305         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
66306         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
66307         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
66308         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
66309         (build_range_exp, build_collating_symbol, parse_bracket_exp):
66310         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
66311         (build_charclass, build_charclass_op, fetch_number, create_tree):
66312         (create_token_tree, mark_opt_subexp, duplicate_tree):
66313         Use prototypes rather than old-style definitions.
66314
66315         * lib/regex_internal.c:
66316         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
66317         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
66318         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66319         (re_string_reconstruct, re_string_peek_byte_case):
66320         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
66321         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66322         (re_node_set_init_copy, re_node_set_add_intersect):
66323         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66324         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66325         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66326         (re_acquire_state, re_acquire_state_context, register_state):
66327         (create_ci_newstate, create_cd_newstate, free_state):
66328         Likewise.
66329         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
66330         re_search_2):
66331         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
66332         (re_search_internal, prune_impossible_nodes):
66333         (acquire_init_state_context, check_matching, static):
66334         (check_halt_node_context, check_halt_state_context, proceed_next_node):
66335         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
66336         (update_regs, sift_states_backward, build_sifted_states):
66337         (clean_state_log_if_needed, merge_state_array):
66338         (update_cur_sifted_state, add_epsilon_src_nodes):
66339         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
66340         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
66341         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
66342         (find_recover_state, check_subexp_matching_top, transit_state_mb):
66343         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
66344         (check_arrival, check_arrival_add_next_nodes):
66345         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66346         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66347         (check_node_accept_bytes, check_node_accept, extend_buffers):
66348         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
66349         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
66350         (sift_ctx_init):
66351         Likewise.
66352
66353         * lib/regex_internal.h:
66354         (re_string_allocate, re_string_construct, re_string_reconstruct):
66355         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
66356         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
66357         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
66358         (re_string_context_at, re_string_peek_byte_case):
66359         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
66360         is defined, since we now use prototypes always.
66361
66362         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
66363         C89 or better.  All uses removed.
66364
66365 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66366
66367         * config/srclist.txt: Add glibc bugs 1220-1227.
66368
66369 2005-08-20  Jim Meyering  <jim@meyering.net>
66370
66371         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
66372         of unused local, dfa.
66373
66374 2005-08-20  Bruno Haible  <bruno@clisp.org>
66375
66376         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
66377
66378 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66379
66380         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
66381         (re_node_set_insert_last, re_dfa_add_node):
66382         Rename local variables to avoid GCC shadowing warnings.
66383
66384 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66385
66386         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
66387         [defined lint]: Suppress bogus uninitialized-variable warnings.
66388
66389         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
66390         and let the caller return REG_ESPACE if out of space.  This
66391         removes an uninitialied-variable warning with GCC 4.0.1, and also
66392         avoids taking the address of a local variable.  All callers
66393         changed.
66394
66395 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66396
66397         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
66398         $LIBCSRC/posix/regexec.c.
66399         Add glibc bug 1217 for regcomp.c.
66400
66401 2005-08-19  Jim Meyering  <jim@meyering.net>
66402
66403         * lib/regexec.c (proceed_next_node): Redo local variables to
66404         avoid GCC shadowing warnings.
66405
66406 2005-08-18  Bruno Haible  <bruno@clisp.org>
66407
66408         * lib/strstr.c (strstr): Fix return value in multibyte case.
66409         * lib/strcasestr.c (strcasestr): Likewise.
66410
66411 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66412
66413         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
66414
66415 2005-08-17  Jim Meyering  <jim@meyering.net>
66416
66417         Make the %s format (seconds since the epoch) work for a negative
66418         number and when used with a zero-padded field width, e.g. %015s.
66419
66420         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
66421         label so that it precedes the code to set `digits'.  Otherwise,
66422         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
66423         print `00-22'.  Now, it prints `-0022', as it should.
66424
66425 2005-08-17  Bruno Haible  <bruno@clisp.org>
66426
66427         * modules/strstr (Files): Add m4/mbrtowc.m4.
66428         (Depends-on): Add mbuiter.
66429
66430 2005-08-17  Bruno Haible  <bruno@clisp.org>
66431
66432         * modules/strcasestr: New file.
66433         * MODULES.html.sh (String handling, based on ANSI C 89): Add
66434         strcasestr.
66435
66436 2005-08-17  Bruno Haible  <bruno@clisp.org>
66437
66438         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
66439
66440 2005-08-17  Bruno Haible  <bruno@clisp.org>
66441
66442         * modules/mbuiter: New file.
66443         * MODULES.html.sh (Extended multibyte and wide character utilities):
66444         Add mbuiter.
66445
66446 2005-08-17  Bruno Haible  <bruno@clisp.org>
66447
66448         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
66449         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
66450
66451 2005-08-17  Bruno Haible  <bruno@clisp.org>
66452
66453         * m4/strcasestr.m4: New file.
66454
66455 2005-08-17  Bruno Haible  <bruno@clisp.org>
66456
66457         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
66458         * lib/strstr.c: Completely rewritten, with multibyte locale support.
66459
66460 2005-08-17  Bruno Haible  <bruno@clisp.org>
66461
66462         * lib/strcasestr.h: New file.
66463         * lib/strcasestr.c: New file.
66464
66465 2005-08-17  Bruno Haible  <bruno@clisp.org>
66466
66467         * lib/strcasecmp.c: Use mbuiter.h.
66468
66469 2005-08-17  Bruno Haible  <bruno@clisp.org>
66470
66471         * lib/mbuiter.h: New file.
66472
66473 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66474
66475         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
66476         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
66477         and gl_GETOPT are both invoked via different paths (as happens
66478         with GNU tar CVS because it uses both argp and getopt), the former
66479         wins.
66480
66481 2005-08-16  Bruno Haible  <bruno@clisp.org>
66482
66483         * modules/tls: New file.
66484         * MODULES.html.sh (Multithreading): Add tls.
66485
66486 2005-08-16  Bruno Haible  <bruno@clisp.org>
66487
66488         * modules/strnlen1: New file.
66489         * MODULES.html.sh (String handling): Add strnlen1.
66490
66491 2005-08-16  Bruno Haible  <bruno@clisp.org>
66492
66493         * modules/strcase (Files): Add m4/mbrtowc.m4.
66494         (Depends-on): Add strnlen1, mbchar.
66495
66496 2005-08-16  Bruno Haible  <bruno@clisp.org>
66497
66498         * modules/mbiter: New file.
66499         * MODULES.html.sh (Extended multibyte and wide character utilities):
66500         Add mbiter.
66501
66502 2005-08-16  Bruno Haible  <bruno@clisp.org>
66503
66504         * modules/mbfile: New file.
66505         * MODULES.html.sh (Extended multibyte and wide character utilities):
66506         Add mbfile.
66507
66508 2005-08-16  Bruno Haible  <bruno@clisp.org>
66509
66510         * modules/mbchar: New file.
66511         * MODULES.html.sh (Extended multibyte and wide character utilities):
66512         New section.
66513
66514 2005-08-16  Bruno Haible  <bruno@clisp.org>
66515
66516         * m4/tls.m4: New file, from GNU gettext.
66517
66518 2005-08-16  Bruno Haible  <bruno@clisp.org>
66519
66520         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
66521         always.
66522         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
66523
66524 2005-08-16  Bruno Haible  <bruno@clisp.org>
66525
66526         * m4/mbiter.m4: New file.
66527
66528 2005-08-16  Bruno Haible  <bruno@clisp.org>
66529
66530         * m4/mbfile.m4: New file.
66531
66532 2005-08-16  Bruno Haible  <bruno@clisp.org>
66533
66534         * m4/mbchar.m4: New file.
66535
66536 2005-08-16  Bruno Haible  <bruno@clisp.org>
66537
66538         * lib/tls.h: New file, from GNU gettext.
66539         * lib/tls.c: New file, from GNU gettext.
66540
66541 2005-08-16  Bruno Haible  <bruno@clisp.org>
66542
66543         * lib/strnlen1.h: New file.
66544         * lib/strnlen1.c: New file.
66545
66546 2005-08-16  Bruno Haible  <bruno@clisp.org>
66547
66548         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
66549         (mbi_init): Update.
66550         (mbi_avail, mbi_advance): Let the iteration end before the terminating
66551         NUL byte, not after it.
66552
66553 2005-08-16  Bruno Haible  <bruno@clisp.org>
66554
66555         * lib/strcase.h (strcasecmp): Add note in comments.
66556         * lib/strncasecmp.c: Use code from strcasecmp.c.
66557         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
66558         (strcasecmp): Work correctly in multibyte locales.
66559
66560 2005-08-16  Bruno Haible  <bruno@clisp.org>
66561
66562         * lib/mbiter.h: New file.
66563
66564 2005-08-16  Bruno Haible  <bruno@clisp.org>
66565
66566         * lib/mbfile.h: New file.
66567
66568 2005-08-16  Bruno Haible  <bruno@clisp.org>
66569
66570         * lib/mbchar.h: New file.
66571         * lib/mbchar.c: New file.
66572
66573 2005-08-16  Bruno Haible  <bruno@clisp.org>
66574
66575         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
66576         the valid ones. Makes the comparison operations transitive:
66577         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
66578         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
66579
66580 2005-08-15  Simon Josefsson  <jas@extundo.com>
66581
66582         * modules/ssize_t (License): Change to 'unlimited'.
66583
66584         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
66585
66586 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66587
66588         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
66589         Add comments for each pending glibc patch.
66590
66591 2005-08-15  Bruno Haible  <bruno@clisp.org>
66592
66593         * lib/regex.h (__restrict_arr): Don't define to __restrict if
66594         __cplusplus is defined.
66595
66596 2005-08-14  Jim Meyering  <jim@meyering.net>
66597
66598         Sync from coreutils.
66599
66600         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
66601         Use the hash-table-based cycle-detection code not just when
66602         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
66603         Reported by James Youngman in
66604         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
66605         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
66606         FTS_TIGHT_CYCLE_CHECK.
66607         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
66608         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
66609         once again.
66610         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
66611         * lib/fts.c (fd_safer): Remove decl.
66612         Include fcntl--.h rather than unistd-safer.h
66613         (fts_safe_changedir): Don't call fd_safer; no longer needed
66614         now that we include fcntl--.h.
66615
66616 2005-08-12  Simon Josefsson  <jas@extundo.com>
66617
66618         * modules/getndelim2: Use ssize_t module.
66619         * modules/getnline: Likewise.
66620         * modules/safe-read: Likewise.
66621         * modules/xreadlink: Likewise.
66622
66623         * modules/ssize_t: New file.
66624
66625 2005-08-12  Simon Josefsson  <jas@extundo.com>
66626
66627         * m4/readline.m4: Look for termcap, curses or ncurses if required.
66628
66629 2005-08-12  Simon Josefsson  <jas@extundo.com>
66630
66631         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66632         ssize_t.
66633
66634 2005-08-12  Simon Josefsson  <jas@extundo.com>
66635
66636         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
66637         readline, getdelim and check_version.
66638         (Support for systems lacking ISO C 99: Sizes of integer types):
66639         Add size_max.
66640
66641 2005-08-12  Bruno Haible  <bruno@clisp.org>
66642
66643         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
66644
66645 2005-08-11  Simon Josefsson  <jas@extundo.com>
66646
66647         * modules/readline: New file.
66648
66649         * modules/strnlen (Files): Add strnlen.h.
66650
66651 2005-08-11  Simon Josefsson  <jas@extundo.com>
66652
66653         * m4/readline.m4: New file.
66654
66655 2005-08-11  Simon Josefsson  <jas@extundo.com>
66656
66657         * lib/readline.h, readline.c: New file.
66658
66659 2005-08-11  Simon Josefsson  <jas@extundo.com>
66660
66661         * doc/gnulib.texi (Initial import, Finishing touches): Mention
66662         gl_AVOID.
66663
66664 2005-08-11  Bruno Haible  <bruno@clisp.org>
66665
66666         * lib/strnlen.h (strnlen): Change parameter name to match comment.
66667
66668 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
66669
66670         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
66671
66672 2005-08-10  Simon Josefsson  <jas@extundo.com>
66673
66674         * tests/test-iconvme.c: New file.
66675
66676 2005-08-10  Simon Josefsson  <jas@extundo.com>
66677
66678         * m4/strnlen.m4: New file.
66679
66680         * m4/strndup.m4: Don't check for strnlen declaration, done in
66681         strnlen.m4.
66682
66683 2005-08-10  Simon Josefsson  <jas@extundo.com>
66684
66685         * lib/strndup.c: Use strnlen.h.
66686
66687         * lib/strnlen.h: New file.
66688
66689 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66690
66691         * README: Typos.
66692
66693 2005-08-02  Simon Josefsson  <jas@extundo.com>
66694
66695         * modules/readline: New file.
66696
66697 2005-08-02  Simon Josefsson  <jas@extundo.com>
66698
66699         * modules/getdelim: New file.
66700
66701         * modules/getline: Rewrite, don't use getndelim2.
66702
66703 2005-08-02  Simon Josefsson  <jas@extundo.com>
66704
66705         * m4/getline.m4: Separate out getdelim stuff into separate module.
66706
66707         * m4/getdelim.m4: New file.
66708
66709 2005-08-02  Simon Josefsson  <jas@extundo.com>
66710
66711         * lib/getline.h, getline.c: Rewrite.
66712
66713         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
66714
66715 2005-07-31  Bruno Haible  <bruno@clisp.org>
66716
66717         * lib/lock.h (gl_lock_initializer): New macro.
66718         (gl_lock_define_initialized): Use it.
66719         (gl_rwlock_initializer): New macro.
66720         (gl_rwlock_define_initialized): Use it.
66721         (gl_recursive_lock_initializer): New macro.
66722         (gl_recursive_lock_define_initialized): Use it.
66723
66724 2005-07-30  Karl Berry  <karl@gnu.org>
66725
66726         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
66727         Report from Ben Pfaff, regarding getopt.
66728
66729 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
66730
66731         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
66732         normal way.
66733         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
66734         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
66735         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
66736         (gl_GETOPT): Use the new macros.  Most of the implementation
66737         is moved to the new macros.  This is for programs like Emacs
66738         that don't want all the functionality of gl_GETOPT.
66739
66740 2005-07-26  Bruno Haible  <bruno@clisp.org>
66741
66742         * m4/lock.m4: Update from GNU gettext.
66743
66744 2005-07-26  Bruno Haible  <bruno@clisp.org>
66745
66746         * lib/lock.h: Update from GNU gettext.
66747         * lib/lock.c: Update from GNU gettext.
66748
66749 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
66750
66751         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
66752         obsolescent AC_TRY_RUN.  Include the default includes files, for
66753         'exit'.
66754
66755 2005-07-24  Bruno Haible  <bruno@clisp.org>
66756
66757         * modules/visibility: New file.
66758         * MODULES.html.sh (Misc): Add visibility.
66759
66760 2005-07-24  Bruno Haible  <bruno@clisp.org>
66761
66762         * m4/visibility.m4: New file.
66763
66764 2005-07-24  Bruno Haible  <bruno@clisp.org>
66765
66766         * doc/visibility.texi: New file.
66767
66768 2005-07-22  Bruno Haible  <bruno@clisp.org>
66769
66770         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
66771         $(ALLOCA_H), redundant through BUILT_SOURCES.
66772         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
66773         redundant through BUILT_SOURCES.
66774         * modules/byteswap (Makefile.am): Remove explicit dependency on
66775         $(BYTESWAP_H), redundant through BUILT_SOURCES.
66776         * modules/fnmatch (Makefile.am): Remove explicit dependency on
66777         $(FNMATCH_H), redundant through BUILT_SOURCES.
66778         * modules/getopt (Makefile.am): Remove explicit dependency on
66779         $(GETOPT_H), redundant through BUILT_SOURCES.
66780         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
66781         redundant through BUILT_SOURCES.
66782         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
66783         redundant through BUILT_SOURCES.
66784         * modules/stdbool (Makefile.am): Remove explicit dependency on
66785         $(STDBOOL_H), redundant through BUILT_SOURCES.
66786         * modules/stdint (Makefile.am): Remove explicit dependency on
66787         $(STDINT_H), redundant through BUILT_SOURCES.
66788         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
66789         Remove explicit dependency on $(SYSEXITS_H).
66790         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
66791
66792 2005-07-18  Simon Josefsson  <jas@extundo.com>
66793
66794         * lib/check-version.c (check_version): Accept identical versions too.
66795
66796 2005-07-18  Bruno Haible  <bruno@clisp.org>
66797
66798         * modules/lock: New file.
66799         * MODULES.html.sh (Multithreading): New section.
66800
66801 2005-07-18  Bruno Haible  <bruno@clisp.org>
66802
66803         * m4/lock.m4: New file, from GNU gettext.
66804
66805 2005-07-18  Bruno Haible  <bruno@clisp.org>
66806
66807         * lib/lock.h: New file, from GNU gettext.
66808         * lib/lock.c: New file, from GNU gettext.
66809
66810 2005-07-18  Bruno Haible  <bruno@clisp.org>
66811
66812         * lib/lock.h (gl_once_t): New type.
66813         (gl_once_define, gl_once): New macros.
66814         * lib/lock.c (fresh_once): New variable.
66815         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
66816         functions.
66817
66818 2005-07-16  Simon Josefsson  <jas@extundo.com>
66819
66820         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
66821         workaround, suggested by Bruno.
66822
66823 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66824
66825         * modules/xalloc (Depends-on): Add xalloc-die.
66826         * modules/xvasprintf (Depends-on): Add xalloc-die.
66827
66828 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66829
66830         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
66831         with a minor change.
66832
66833 2005-07-15  Bruno Haible  <bruno@clisp.org>
66834
66835         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
66836         When using lib/poll.c, define poll as rpl_poll.
66837
66838 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
66839
66840         * modules/argp (Depends-on): Remove unlocked-io.
66841
66842 2005-07-14  Derek Price  <derek@ximbiot.com>
66843
66844         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
66845         for glob symlink bug.
66846
66847 2005-07-14  Bruno Haible  <bruno@clisp.org>
66848
66849         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
66850         Instead, test for *_unlocked function declarations directly.
66851
66852 2005-07-11  Simon Josefsson  <jas@extundo.com>
66853
66854         * modules/size_max: New file.
66855
66856         * modules/xsize: Depend on size_max module for size_max.m4.
66857
66858 2005-07-11  Simon Josefsson  <jas@extundo.com>
66859
66860         * lib/size_max.h: New file.
66861
66862 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
66863
66864         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
66865         copyright symbol and the year.
66866         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
66867         (version_etc_va): Use parameterized copyright notice.
66868         Reword to conform to the current GNU coding standards.
66869
66870 2005-07-11  Karl Berry  <karl@gnu.org>
66871
66872         * doc/gnulib.texi (Quoting): new node.
66873         (Initial import): more info, from Patrice.
66874
66875 2005-07-11  Bruno Haible  <bruno@clisp.org>
66876
66877         * gnulib-tool (func_usage): Document option --avoid.
66878         (Command line options): Handle --avoid.
66879         (func_acceptable): New function.
66880         (func_modules_transitive_closure): Use it.
66881
66882 2005-07-11  Bruno Haible  <bruno@clisp.org>
66883
66884         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
66885         Reported by Jim Meyering.
66886
66887 2005-07-10  Bruno Haible  <bruno@clisp.org>
66888
66889         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
66890         Needed when size_t is smaller than 'unsigned int'.
66891         Reported by Paul Eggert.
66892
66893 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66894
66895         * modules/argp (Depends-on): Add unlocked-io
66896
66897 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66898
66899         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
66900         block of defines.
66901
66902 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66903
66904         * config/srclist.txt: Comment out regcomp.c, since we have a porting
66905         fix now.
66906
66907 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
66908         and Paul Eggert  <eggert@cs.ucla.edu>
66909
66910         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
66911         in wint_t, not wchar_t.  Remove now-unnecessary cast.
66912
66913 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66914
66915         * modules/regex (Files): Add lib/regex_internal.c,
66916         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
66917         (Depends-on): Add extensions.
66918         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
66919
66920 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66921
66922         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
66923         pathconf.
66924         * m4/same.m4 (gl_SAME): Likewise.
66925         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
66926
66927         * m4/regex.m4: Adjust to new libc regex implementation.
66928         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
66929         all the .c and .h parts of (the new) regex.
66930         Quote the m4 stuff better.
66931         Check for RE_ICASE bug of old gnulib.
66932         Check for REG_STARTEND of recent libc.
66933         Rename local variables from jm_* to gl_*.
66934         Quote operand of "test -f".
66935         Say "recent enough" version of libc, not "version 2".
66936         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
66937         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
66938         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
66939         Remove check for btowc, isascii.
66940         Require AM_LANGINFO_CODESET.
66941
66942 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66943
66944         * lib/regex.c, regex.h: Sync from libc.
66945         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
66946         * lib/regexec.c:
66947         New files, synced from libc, except that regex_internal.h
66948         currently has a small porting fix.
66949
66950 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66951
66952         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
66953         regex_internal.c, regexec.c.
66954         Add regex_internal.h too, but as a comment, since the libc version
66955         is currently broken in gnulib mode.
66956
66957 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66958
66959         Support programs like Emacs that use gnulib but not gettext.
66960         * MODULES.html.sh (Internationalization functions): Add gettext-h.
66961         * modules/gettext-h: New file.
66962         * modules/gettext (Files): Remove lib/gettext.h.
66963         (Depends-on): Add gettext-h.
66964         (Makefile.am): Remove lib_SOURCES.
66965         * modules/argmatch, modules/c-stack, modules/closeout:
66966         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
66967         * modules/execute, modules/file-type, modules/getaddrinfo:
66968         * modules/getopt, modules/human, modules/javacomp:
66969         * modules/javaexec, modules/mkdir-p, modules/obstack:
66970         * modules/openat, modules/pagealign_alloc, modules/pipe:
66971         * modules/quotearg, modules/regex, modules/rpmatch:
66972         * modules/unicodeio, modules/userspec, modules/version-etc:
66973         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
66974         * modules/xsetenv:
66975         Depend on gettext-h, not gettext.
66976
66977 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66978
66979         * gnulib-tool (func_import): Add support for 'public domain' license.
66980         * modules/alloca, modules/atexit, modules/memmove:
66981         Now public domain, not GPL.
66982         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
66983         * modules/realloc, modules/strerror, modules/strtod:
66984         Now LGPL, not GPL.
66985
66986 2005-07-05  Bruno Haible  <bruno@clisp.org>
66987
66988         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
66989         autoconf CVS. Needed for mingw.
66990
66991 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66992
66993         Remove the dependency of the strftime module on the tzset module.
66994         * modules/strftime (Depends-on): Remove dependency on tzset.
66995
66996 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66997
66998         Remove the dependency of the strftime module on the tzset module.
66999         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
67000         gl_FUNC_TZSET_CLOBBER.
67001
67002 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67003
67004         Remove the dependency of the strftime module on the tzset module.
67005         * lib/strftime.c (my_strftime)
67006         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
67007         Copy the input structure, to work around some of the bug with
67008         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
67009         Solaris releases, you should also use the tzset module, but we won't
67010         require it as a dependency any more since we don't want LGPLed code
67011         to depend on GPLed code.
67012
67013 2005-07-02  Jim Meyering  <jim@meyering.net>
67014
67015         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
67016         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
67017         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
67018         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
67019
67020 2005-07-02  Jim Meyering  <jim@meyering.net>
67021
67022         * lib/backupfile.c (backup_args): Change a `0' to NULL.
67023
67024 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67025
67026         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
67027         declares only 'struct timespec;' (!).
67028
67029 2005-07-01  Jim Meyering  <jim@meyering.net>
67030
67031         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
67032         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
67033         * lib/save-cwd.c, tempname.c:
67034         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67035         and don't include <sys/file.h>).
67036
67037 2005-06-29  Jim Meyering  <jim@meyering.net>
67038
67039         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
67040         type name.  Use the variable name instead.
67041         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
67042         Likewise.
67043
67044 2005-06-28  Simon Josefsson  <jas@extundo.com>
67045
67046         * modules/check-version (Files): Add check-version.m4.
67047
67048 2005-06-28  Simon Josefsson  <jas@extundo.com>
67049
67050         * m4/check-version.m4: New file, suggested by Jim Meyering
67051         <jim@meyering.net>.
67052
67053 2005-06-28  Simon Josefsson  <jas@extundo.com>
67054
67055         * lib/check-version.h, lib/check-version.c: New files.
67056
67057 2005-06-28  Simon Josefsson  <jas@extundo.com>
67058
67059         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
67060         collision with global variable.  Better indentation.  Don't
67061         increment buffer pointer beyond buffer end.  Based on comments
67062         from Paul Eggert <eggert@cs.ucla.edu>.
67063
67064         * lib/base64.h: Indent.
67065
67066 2005-06-28  Simon Josefsson  <jas@extundo.com>
67067
67068         * doc/gnulib.texi (Library version handling): New section.
67069
67070 2005-06-28  Jim Meyering  <jim@meyering.net>
67071
67072         * check-module (find_included_lib_files): Hard-code another
67073         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
67074         but modules/fts-lgpl (correctly) does not list those files.
67075
67076         * modules/canonicalize (Files): Add lib/pathmax.h.
67077
67078 2005-06-25  Simon Josefsson  <jas@extundo.com>
67079
67080         * modules/check-version: New file.
67081
67082 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
67083
67084         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
67085         initializer of struct addrinfo, as an indication that we don't
67086         care how many members the structure has.
67087
67088 2005-06-24  Derek Price  <derek@ximbiot.com>
67089         and Bruno Haible  <bruno@clisp.org>
67090
67091         Remove stat module & update lstat.
67092         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
67093         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67094         * m4/stat.m4: Remove this file.
67095
67096 2005-06-24  Derek Price  <derek@ximbiot.com>
67097         and Bruno Haible  <bruno@clisp.org>
67098
67099         Remove stat module & update lstat.
67100         * lib/stat.c: Remove this file...
67101         (slash_aware_lstat): ...moving this content and its support...
67102         * lib/lstat.c (rpl_lstat): ...into here.
67103         * lib/lstat.h: New file.
67104
67105 2005-06-24  Derek Price  <derek@ximbiot.com>
67106         and Bruno Haible  <bruno@clisp.org>
67107
67108         Remove stat module & update lstat.
67109         * config/srclist.txt (libc sources): Remove stat.
67110
67111 2005-06-24  Derek Price  <derek@ximbiot.com>
67112         and Bruno Haible  <bruno@clisp.org>
67113
67114         Remove stat module & update lstat.
67115         * MODULES.html.sh (stat): Remove.
67116         * MODULES.html: Regenerated.
67117         * modules/lstat (Description): Correct function name.
67118         (Files): Add "lstat.h".
67119         (Depends-on): Remove stat, add xalloc, stat-macros.
67120         * modules/stat: Remove this file.
67121         (Include): Add "lstat.h", remove <sys/stat.h>.
67122
67123 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67124
67125         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
67126         (ranged_convert): Don't save conversion in a temporary struct.
67127         This causes a warning with GCC 4.0.0, and anyway in the typical
67128         case it's not worth the extra 100 bytes or so of code.
67129         (ranged_convert, __mktime_internal): When calling a function via a
67130         pointer P, use P () rather than (*P) (), as we now assume C89 or
67131         better.
67132
67133 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67134
67135         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
67136         "who -r" failed to give output.  Problem reported by Tim Waugh.
67137
67138         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
67139         (xcalloc): Use it to avoid needless tests.
67140         Problem reported by Jim Meyering.
67141
67142 2005-06-20  Derek Price  <derek@ximbiot.com>
67143
67144         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
67145         unnecessary for Autoconfs > 2.59c.
67146
67147 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67148
67149         * lib/argp.h (__option_is_short): Check upper limit of
67150         __key. Isprint() requires its argument to have the value
67151         of an unsigned char or EOF.
67152
67153 2005-06-16  Jim Meyering  <jim@meyering.net>
67154
67155         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
67156         when either N or S is zero.
67157
67158 2005-06-16  Derek Price  <derek@ximbiot.com>
67159
67160         * m4/bison.m4: Declare YACC & YFLAGS precious.
67161
67162 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
67163
67164         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
67165         multibyte string or pattern, fall back on unibyte matching.
67166         Problem reported by James Youngman.
67167
67168 2005-06-08  Bruno Haible  <bruno@clisp.org>
67169
67170         * modules/csharpcomp: New file.
67171         * MODULES.html.sh (C#): Add csharpcomp.
67172
67173 2005-06-08  Bruno Haible  <bruno@clisp.org>
67174
67175         * m4/csharpcomp.m4: New file, from GNU gettext.
67176
67177 2005-06-08  Bruno Haible  <bruno@clisp.org>
67178
67179         * lib/csharpcomp.h: New file, from GNU gettext.
67180         * lib/csharpcomp.c: New file, from GNU gettext.
67181         * lib/csharpcomp.sh.in: New file, from GNU gettext.
67182
67183 2005-06-08  Bruno Haible  <bruno@clisp.org>
67184
67185         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
67186         warning on mingw.
67187
67188 2005-06-07  Derek Price  <derek@ximbiot.com>
67189
67190         Sync from CVS.
67191         * lib/glob_.h: Indent nested #ifdef.
67192
67193 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67194
67195         Sync from coreutils.
67196         Use "file name" when talking about file names, instead of "filename"
67197         or "path", as per the GNU coding standards.
67198         * lib/mkdir-p.c: Renamed from makepath.c.
67199         (make_dir_parents): Renamed from make_path.  All callers changed.
67200         * lib/mkdir-p.h: Likewise.  All includers changed.
67201         * lib/filenamecat.c: Renamed from path-concat.c.
67202         (file_name_concat): Renamed from path_concat.  All callers changed.
67203         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
67204         * lib/filenamecat.h: Likewise.  All includers changed.
67205         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
67206         in comments or local variable names.
67207         * lib/basename.c: Likewise.
67208         * lib/canonicalize.c, canonicalize.h: Likewise.
67209         * lib/dirname.c, dirname.h: Likewise.
67210         * lib/euidaccess.c: Likewise.
67211         * lib/exclude.c: Likewise
67212         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
67213         * lib/fsusage.c, fsuage.h: Likewise.
67214         * lib/fts.c, fts_.h: Likewise.
67215         * lib/getcwd.c: Likewise.
67216         * lib/getloadavg.c: Likewise.
67217         * lib/mkstemp.c: Likewise.
67218         * lib/mountlist.c, mountlist.h: Likewise.
67219         * lib/openat.c, openat.h: Likewise.
67220         * lib/readlink-stub.c: Likewise.
67221         * lib/readutmp.c, readutmp.h: Likewise.
67222         * lib/rename.c: Likewise.
67223         * lib/rmdir.c: Likewise.
67224         * lib/same.c: Likewise.
67225         * lib/savedir.c: Likewise.
67226         * lib/stripslash.c: Likewise.
67227         * lib/tempname.c: Likewise.
67228         * lib/xreadlink.c: Likewise.
67229         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
67230         All uses changed.
67231         * lib/exclude.h: Likewise.
67232
67233         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
67234         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67235         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
67236         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67237         * lib/pathmax.h: Include <limits.h> unconditionally, since other
67238         files have been getting away with it for years (MORE/BSD 4.3
67239         is extinct now).
67240         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
67241         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67242
67243         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
67244         Define to 256, not 255, as per modern POSIX.
67245
67246 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67247
67248         Sync from coreutils.
67249         Use "file name" when talking about file names, instead of "filename"
67250         or "path", as per the GNU coding standards.
67251         * MODULES.html.sh: mkdir-p renamed from makepath.
67252         filenamecat renamed from path-concat.
67253         * modules/filenamecat: Renamed from modules/path-concat.
67254         (Files): filenamecat.h and filenamecat.c renamed from
67255         path-concat.h and path-concat.c.
67256         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
67257         (Include): filenamecat.h, not path-concat.h.
67258         * modules/mkdir-p: Renamed from modules/makepath.
67259         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
67260         makepath.c.
67261         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
67262         (Include): mkdir-p.h, not makepath.h.
67263
67264 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67265
67266         Sync from coreutils.
67267         * m4/mkdir-p.m4: Renamed from makepath.m4.
67268         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
67269         Rename files from makepath.c to mkdir-p.c, and from
67270         makepath.h to mkdir-p.h.
67271         * m4/filenamecat.m4: Renamed from path-concat.m4.
67272         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
67273         Rename files from path-concat.c to filenamecat.c,
67274         and from path-concat.h to filenamecat.h.
67275         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
67276         "file name" in local variables or comments.
67277         * m4/rename.m4: Likewise.
67278
67279 2005-06-01  Bruno Haible  <bruno@clisp.org>
67280
67281         * modules/csharpexec: New file.
67282         * MODULES.html.sh (C#): New section.
67283
67284 2005-06-01  Bruno Haible  <bruno@clisp.org>
67285
67286         * m4/csharp.m4: New file, from GNU gettext.
67287         * m4/csharpexec.m4: New file, from GNU gettext.
67288
67289 2005-06-01  Bruno Haible  <bruno@clisp.org>
67290
67291         * lib/csharpexec.h: New file, from GNU gettext.
67292         * lib/csharpexec.c: New file, from GNU gettext.
67293         * lib/csharpexec.sh.in: New file, from GNU gettext.
67294
67295 2005-05-31  Derek Price  <derek@ximbiot.com>
67296             Paul Eggert  <eggert@cs.ucla.edu>
67297
67298         Sync from cvs.
67299         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67300
67301 2005-05-31  Derek Price  <derek@ximbiot.com>
67302             Paul Eggert  <eggert@cs.ucla.edu>
67303
67304         Sync from cvs.
67305         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67306
67307 2005-05-29  Derek Price  <derek@ximbiot.com>
67308
67309         * config/srclist.txt (glob_.h, glob.c): Add these files.
67310
67311 2005-05-29  Derek Price  <derek@ximbiot.com>
67312
67313         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
67314         * modules/glob: New file.
67315         * modules/getlogin_r: Add link to POSIX spec in description.
67316
67317 2005-05-29  Derek Price  <derek@ximbiot.com>
67318             Paul Eggert  <eggert@cs.ucla.edu>
67319
67320         * m4/glob.m4: New file.
67321
67322 2005-05-29  Derek Price  <derek@ximbiot.com>
67323             Paul Eggert  <eggert@cs.ucla.edu>
67324
67325         * lib/glob_.h, lib/glob.c: New files.
67326
67327 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67328
67329         * modules/fts (Files): Remove m4/inttypes-pri.m4.
67330         * modules/fts-lgpl (Depends-on): Remove gettext.
67331
67332 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67333
67334         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
67335         and don't require gt_INTTYPES_PRI.
67336
67337 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67338
67339         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
67340
67341         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
67342         the configuration hassle isn't worth it.
67343         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
67344         (LONGEST_MODIFIER, PRIuMAX): Remove.
67345
67346 2005-05-27  Bruno Haible  <bruno@clisp.org>
67347
67348         * lib/getlogin_r.h: Remove second include of <stddef.h>.
67349
67350 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
67351
67352         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
67353         _POSIX_PTHREAD_SEMANTICS for Solaris.
67354
67355 2005-05-25  Derek Price  <derek@ximbiot.com>
67356
67357         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
67358
67359 2005-05-25  Derek Price  <derek@ximbiot.com>
67360             Paul Eggert  <eggert@cs.ucla.edu>
67361
67362         * modules/getlogin_r, m4/getlogin_r.m4: New files.
67363         * lib/getlogin_r.c, getlogin_r.h: New files.
67364
67365 2005-05-25  Bruno Haible  <bruno@clisp.org>
67366             Derek Price  <derek@ximbiot.com>
67367
67368         * lib/getlogin_r.h: Simplify API documentation.
67369
67370 2005-05-23  Derek Price  <derek@ximbiot.com>
67371
67372         * modules/minmax (Files): Add m4/minmax.m4.
67373         (configure.ac): Add gl_MINMAX.
67374
67375 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67376
67377         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
67378         so that unistd-safer.h (GPL'ed code) need not be included.
67379
67380 2005-05-22  Bruno Haible  <bruno@clisp.org>
67381
67382         * m4/minmax.m4: New file.
67383         Based on a patch by Derek Price <derek@ximbiot.com>.
67384
67385 2005-05-22  Bruno Haible  <bruno@clisp.org>
67386
67387         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
67388         (INT64_MIN): Fix definition.
67389         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
67390
67391         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
67392         NEED_SIGNED_INT_TYPES.
67393
67394         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
67395         HAVE_SYSTEM_INTTYPES.
67396
67397 2005-05-22  Bruno Haible  <bruno@clisp.org>
67398
67399         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
67400         Also include <sys/param.h> if it defines MIN, MAX.
67401         Based on a patch by Derek Price <derek@ximbiot.com>.
67402
67403 2005-05-21  Jim Meyering  <jim@meyering.net>
67404
67405         * modules/fts (Files): Add m4/inttypes-pri.m4.
67406         (Depends-on): Add lstat and remove gettext.  Alphabetize.
67407
67408 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67409
67410         New fts module.
67411         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
67412         (setup_dir, free_dir): New functions.
67413         (enter_dir, leave_dir): Define trivial
67414         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
67415         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
67416         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
67417         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
67418         Move to fts-cycle.c.
67419         (fts_open): Use setup_dir.
67420         (fts_close): Use free_dir.
67421         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
67422         This adds a label and some gotos, but the alternatives were messier.
67423         Check for memory allocation failure when entering a dir.
67424         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
67425         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
67426         (FTS): New member fts_cycle, that is a union that contains the
67427         old active_dir_ht and cycle_state.  All uses changed to mention
67428         fts_cycle.ht and fts_cycle.state.
67429         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
67430         fts.c, with the following changes:
67431         (setup_dir, free_dir): New functions.
67432         (enter_dir): Now returns bool.  Return true if successful, false
67433         if memory exhausted.  All callers changed.
67434         Do not bother partly cleaning up on
67435         memory allocation failure; that is free_dir's job.
67436         However, free ad if hash_insert fails, to avoid memory leak.
67437         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
67438         fts->fts_options to see which union member to use.
67439
67440 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67441
67442         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
67443         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
67444
67445 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67446
67447         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
67448
67449 2005-05-20  Jim Meyering  <jim@meyering.net>
67450
67451         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
67452         Now a macro, to pacify GCC.
67453
67454 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67455
67456         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
67457         of -1.
67458
67459 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67460
67461         * lib/chown.c (rpl_chown): Return -1 on failure.
67462
67463 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67464
67465         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
67466         Don't check for stddef.h.
67467         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
67468         don't use its results.
67469         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
67470         since we include them unconditionally.  Don't require
67471         AM_STDBOOL_H, since stdbool is a prerequisite.
67472         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
67473         since we assume C89 or better.
67474         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
67475         as we don't use their results.
67476         Don't check for fchdir, memmove, memset, strrchr, as we use
67477         them unconditionally.
67478         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
67479         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
67480
67481 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67482
67483         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
67484         Include <stddef.h> unconditionally, since we assume C89 now.
67485         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
67486         * lib/fts.c: Include fts_.h first, to check interface.
67487         Do not include intprops.h; no longer needed.
67488         Include cycle-check.h and hash.h, since fts_.h no longer does.
67489         Remove unnecessary casts of closedir to void.
67490         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
67491         decide whether to decrement nlinks.
67492         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
67493         (FTS): Use struct hash_table * instead of Hash_table, so that
67494         we no longer need to include hash.h here.
67495
67496 2005-05-18  Jim Meyering  <jim@meyering.net>
67497
67498         * modules/dirfd (License): Change to LGPL.  Most of the code
67499         is already in the public domain.
67500
67501 2005-05-18  Jim Meyering  <jim@meyering.net>
67502
67503         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
67504         Reported by Yoann Vandoorselaere.
67505
67506 2005-05-17  Jim Meyering  <jim@meyering.net>
67507
67508         * m4/fts.m4: New file, from coreutils.
67509
67510 2005-05-17  Jim Meyering  <jim@meyering.net>
67511
67512         * lib/fts.c, lib/fts_.h: New files, from coreutils.
67513
67514 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67515
67516         Sync from coreutils.
67517         * m4/unlinkdir.m4: New file.
67518
67519 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67520
67521         Sync from coreutils.
67522         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
67523         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
67524         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
67525         White space changes only.
67526         * lib/makepath.c (make_path): Port to hosts where leading "//" is
67527         special.
67528         * lib/yesno.c: Include getline.h, not ctype.h.
67529         (yesno): Don't remove leading white space; POSIX doesn't allow it.
67530         Use getline to remove arbitrary restriction on response length.
67531
67532 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67533
67534         * config/srclist-update: Spell out "Street" in FSF postal
67535         mail address; this is the style the FSF seems to prefer.
67536
67537         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
67538         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
67539         this updates FSF postal mail address.
67540
67541         Sync from coreutils.
67542         * modules/unlinkdir: New file.
67543         * modules/yesno (Depends-on): Add getline.
67544         * MODULES.html.sh (File system functions): Add unlinkdir.
67545
67546 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67547
67548         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
67549         lib/strsep.h:
67550         Change the initial comment to refer to GPL, not LGPL.
67551         gnulib-tool will change it to LGPL as needed.
67552
67553         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
67554         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
67555         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
67556         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
67557         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
67558         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
67559         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
67560         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
67561         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
67562         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
67563         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
67564         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
67565         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
67566         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
67567         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
67568         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
67569         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
67570         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
67571         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
67572         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
67573         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
67574         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
67575         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
67576         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
67577         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
67578         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
67579         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
67580         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
67581         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
67582         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
67583         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
67584         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
67585         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
67586         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
67587         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
67588         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
67589         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
67590         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
67591         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
67592         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
67593         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
67594         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
67595         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
67596         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
67597         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
67598         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
67599         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
67600         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
67601         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
67602         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
67603         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67604         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
67605         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
67606         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
67607         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
67608         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
67609         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
67610         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
67611         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
67612         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
67613         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
67614         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
67615         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
67616         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
67617         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
67618         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
67619         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
67620         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
67621         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
67622         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
67623         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
67624         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
67625         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
67626         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
67627         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
67628         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
67629         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
67630         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
67631         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
67632         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
67633         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
67634         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
67635         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
67636         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
67637         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
67638         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
67639         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
67640         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
67641         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
67642         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
67643         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
67644         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
67645         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
67646         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
67647         lib/yesno.c, lib/yesno.h:
67648         Update FSF postal mail address.
67649
67650 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67651
67652         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
67653         tests/test-memmem.c, tests/test-stpncpy.c:
67654         Update FSF postal mail address.
67655
67656 2005-05-13  Bruno Haible  <bruno@clisp.org>
67657
67658         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
67659         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
67660         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
67661         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
67662         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
67663         Add support for 64-bit integers in the MSVC compiler.
67664
67665 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67666
67667         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
67668
67669 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
67670
67671         * gnulib-tool (func_import): Sort and uniquify recommended includes.
67672
67673 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
67674
67675         * doc/getdate.texi (General date syntax): Don't say that date
67676         date --iso-8601=ns generates acceptable dates; it doesn't yet.
67677         Problem reported by Nic Ferrier.
67678
67679 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67680
67681         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
67682         specified in ai_socktype. Fix invalid ai_protocol
67683         check. ai_protocol is usually set to 0 or depending on
67684         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
67685         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
67686         ai_socktype / ai_protocol in the returned addrinfo structure.
67687
67688 2005-05-10  Simon Josefsson  <jas@extundo.com>
67689
67690         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
67691         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67692
67693 2005-05-10  Karl Berry  <karl@gnu.org>
67694
67695         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
67696         (from http://www.gnu.org/licenses).
67697         * doc/COPYING.LIB: also rename to COPYING.LESSER.
67698         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
67699         fdl.texi suffices.
67700
67701 2005-05-10  Karl Berry  <karl@gnu.org>
67702
67703         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
67704         (COPYING.DOC): remove.
67705
67706         * config/srclist-update: new FSF address.
67707
67708 2005-05-10  Derek Price  <derek@ximbiot.com>
67709
67710         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
67711         possible.
67712
67713 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67714             Bruno Haible  <bruno@clisp.org>
67715
67716         * modules/inet_ntop: New file.
67717         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67718         inet_ntop.
67719
67720 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67721             Bruno Haible  <bruno@clisp.org>
67722
67723         * m4/inet_ntop.m4: New file.
67724
67725 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67726             Bruno Haible  <bruno@clisp.org>
67727
67728         * lib/inet_ntop.h: New file.
67729         * lib/inet_ntop.c: New file, from glibc with modifications.
67730
67731 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
67732
67733         * modules/time_r (License): Change to LGPL.
67734         * modules/extensions (License): Change to LGPL.  Actually,
67735         the license is more permissive than that, but currently gnulib-tool
67736         doesn't know how to handle more-permissive licenses.
67737
67738         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
67739         Problem reported by Dave Love.
67740
67741 2005-05-08  Jim Meyering  <jim@meyering.net>
67742
67743         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
67744         blank.
67745
67746 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67747
67748         * modules/argmatch (Depends-on): Add stdbool.
67749         * modules/backupfile (Depends-on): Likewise.
67750         * modules/chdir-long (Depends-on): Likewise.
67751         * modules/closeout (Depends-on): Likewise.
67752         * modules/cycle-check (Depends-on): Likewise.
67753         * modules/dirname (Depends-on): Likewise.
67754         * modules/fnmatch (Depends-on): Likewise.
67755         * modules/fsusage (Depends-on): Likewise.
67756         * modules/fwriteerror (Depends-on): Likewise.
67757         * modules/getcwd (Depends-on): Likewise.
67758         * modules/getloadavg (Depends-on): Likewise.
67759         * modules/hard-locale (Depends-on): Likewise.
67760         * modules/makepath (Depends-on): Likewise.
67761         * modules/mountlist (Depends-on): Likewise.
67762         * modules/nanosleep (Depends-on): Likewise.
67763         * modules/posixtm (Depends-on): Likewise.
67764         * modules/quotearg (Depends-on): Likewise.
67765         * modules/readtokens (Depends-on): Likewise.
67766         * modules/readtokens0 (Depends-on): Likewise.
67767         * modules/readutmp (Depends-on): Likewise.
67768         * modules/save-cwd (Depends-on): Likewise.
67769         * modules/strftime (Depends-on): Likewise.
67770         * modules/userspec (Depends-on): Likewise.
67771         * modules/utimecmp (Depends-on): Likewise.
67772         * modules/xgetcwd (Depends-on): Likewise.
67773         * modules/xnanosleep (Depends-on): Likewise.
67774         * modules/xstrtod (Depends-on): Likewise.
67775         * modules/yesno (Depends-on): Likewise.
67776
67777 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67778
67779         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
67780         needless checks.
67781
67782 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67783
67784         Merge from coreutils.  Among other things,
67785         add bulletproofing for cases where stdin, stdout, or stderr are closed.
67786         * lib/fd-safer.c: New file.
67787         * lib/fcntl-safer.h, open-safer.c: Remove.
67788         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
67789         * lib/dup-safer.c: Include unistd-safer.h first.
67790         Don't include errno.h.
67791         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
67792         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
67793         * lib/file-type.c: Rely on file-type.h change.
67794         * lib/getloadavg.c: Include unistd-safer.h.
67795         (getloadavg): Use safer open.
67796         * lib/getusershell.c: Include "stdio-safer.h".
67797         (getusershell): Use safer fopen.
67798         * lib/long-options.c (long_options): Use NULL rather than 0.
67799         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
67800         'free'.
67801         * lib/modechange.c: Likewise.
67802         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
67803         (MODE_DONE): New constant.
67804         (struct mode_change): Remove 'next' member.
67805         (make_node_op_equals): New function; like the old one of the
67806         same name, except it allocates an array.
67807         (mode_compile, mode_create_from_ref): Use it.
67808         (mode_compile): Allocate result as an array, not a linked list.
67809         Parse octal string ourself, so that we catch mistakes like "+0".
67810         (mode_adjust): Arg is an array, not a linked list.
67811         * lib/modechange.c: Include stat-macros.h, xalloc.h.
67812         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
67813         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
67814         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
67815         Remove.  This is now stat-macros.h's job.
67816         (talloc): Remove.  All callers replaced by xalloc, so that
67817         our invokers don't have to worry about reporting memory failures.
67818         (make_node_op_equals): Remove.
67819         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67820         New constants.
67821         (struct mode_change): Moved here from modechange.h.
67822         (mode_append_entry): Remove.
67823         (mode_compile): Remove MASKED_OPS arg, since it encouraged
67824         apps to have incorrect behavior.  Use simpler algorithm for head
67825         and tail.  Don't futz with umask; that's now the job of mode_adjust.
67826         Detect more invalid usages rather than having somewhat-random behavior.
67827         Don't insert an "a=" action, as that leads to incorrect behavior.
67828         (mode_compile, mode_create_from_ref): Return NULL on error instead
67829         of an enum, since now there's only one way to have an error.  All
67830         callers changed.
67831         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
67832         at the correct time.  Simplify calculation of "+u" and its ilk.
67833         Don't mishandle "+X".
67834         (mode_free): Remove "register" and localize decls.
67835         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67836         (struct mode_change): Move to modechange.c; callers don't
67837         need to see this stuff.
67838         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
67839         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
67840         (mode_change, mode_adjust): Reflect the new signatures noted above.
67841         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
67842         that might redefine system include files.
67843         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
67844         (my_usleep): Use NULL rather than (void *) 0.
67845         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
67846         Use siginterrupt to specify that system calls should be interrupted.
67847         (rpl_nanosleep): Move initialization of suspended closer to call of
67848         my_usleep.
67849         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
67850         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
67851         (desirable_utmp_entry): New function.
67852         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
67853         using x2nrealloc, to simplify logic.
67854         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
67855         size calculation.  Do not assume utmp file is a regular file.
67856         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
67857         (READ_UTMP_CHECK_PIDS): New constant.
67858         * lib/save-cwd.c: Include unistd-safer.h.
67859         (save_cwd): Use fd_safer.
67860         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
67861         [!_LIBC] Include "stat-macros.h" instead.
67862         * lib/unistd-safer.h (fd_safer): New decl.
67863
67864 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67865
67866         * modules/getloadavg (Depends-on): Add unistd-safer.
67867         * modules/getusershell (Depends-on): Add stdio-safer.
67868         * modules/lstat (Depends-on): Remove xalloc.
67869         * modules/mkstemp (Depends-on): Add stat-macros.
67870         * modules/modechange (Depends-on): Remove xstrtol.
67871         Add stat-macros, xalloc.
67872         * modules/save-cwd (Depends-on): Add unistd-safer.
67873         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
67874         * modules/unistd-safer (Files): Add lib/fd-safer.c
67875         (Makefile.am): Remove lib_SOURCES.
67876
67877         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
67878         Remove fcntl-safer; unistd-safer supersedes it.
67879
67880 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
67883         AC_HEADER_STAT.
67884         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
67885         (gl_PREREQ_CHOWN): Remove.
67886         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
67887         it.  Don't require AC_HEADER_STAT.
67888         (gl_PREREQ_LSTAT): Remove.
67889         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
67890         Don't require AC_HEADER_STAT.
67891         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
67892         (gl_PREREQ_RMDIR): Remove.
67893         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
67894         mention stat-macros.h or AC_HEADER_STAT, since we'll make
67895         the stat-macros module a prerequisite.
67896         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
67897         * m4/filemode.m4 (gl_FILEMODE): Likewise.
67898         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
67899         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
67900         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
67901         variable names.
67902         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
67903         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
67904         variable prefixes.
67905         * m4/fcntl-safer.m4: Remove.
67906         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
67907         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
67908         Invoke gl_PREREQ_FD_SAFER.
67909         (gl_PREREQ_FD_SAFER): New macro.
67910         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
67911         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
67912         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
67913         Remove duplicate call to AC_LIBOBJ(readutmp).
67914         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
67915
67916         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
67917         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
67918
67919 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67920
67921         * MODULES.html.sh (Misc): Add byteswap.
67922
67923 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67924
67925         * modules/getcwd (Depends-on): Add extensions.
67926         * modules/openat (Depends-on): Likewise.
67927
67928 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67929
67930         * modules/byteswap: New file.
67931
67932 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67933
67934         * m4/byteswap.m4: New file.
67935
67936 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67937
67938         * lib/byteswap_.h: New file.
67939
67940 2005-04-25  Karl Berry  <karl@gnu.org>
67941
67942         * m4/gettext.m4: Update from GNU gettext 0.14.4.
67943
67944 2005-04-25  Albert Chin  <china@thewrittenword.com>
67945
67946         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
67947         Toolkit C bug.
67948
67949 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
67950
67951         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
67952         (func_ln_if_changed): Remove forcibly for no error message
67953         in case file does not exist.
67954
67955 2005-04-19  Simon Josefsson  <jas@extundo.com>
67956
67957         * gnulib-tool (Options): Make --symlink mean --symbolic.
67958
67959 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
67960
67961         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
67962
67963 2005-04-16  Simon Josefsson  <jas@extundo.com>
67964
67965         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
67966
67967 2005-04-15  Simon Josefsson  <jas@extundo.com>
67968
67969         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
67970
67971 2005-04-15  Simon Josefsson  <jas@extundo.com>
67972
67973         * gnulib-tool: Rename --symlink to --symbolic.
67974
67975 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
67976
67977         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
67978         symbolic links to files instead of copying/moving.  Add --aux-dir,
67979         specifying directory relative --dir where auxiliary build tools
67980         are placed.
67981
67982 2005-04-14  Bruno Haible  <bruno@clisp.org>
67983
67984         * modules/allocsa (License): Change to LGPL.
67985         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67986
67987 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67988
67989         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
67990         that "UTC +1 second" continues to work.  Problem reported
67991         by Dmitry V. Levin.
67992         (relunit_snumber): New rule.
67993         (relunit): Use it.
67994
67995 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67996
67997         * lib/getdate.y (universal_time_zone_table): New constant.
67998         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
67999         universal_time_zone_table.
68000         (lookup_zone): Prefer universal_time_zone_table to
68001         local_time_zone_table, so that "GMT" time stamps are allowed in
68002         London during the summer.  Problem reported by Ian Abbott.
68003
68004 2005-04-12  Jim Meyering  <jim@meyering.net>
68005
68006         * lib/human.c (humblock): Set *options even when returning due to
68007         xstrtoumax conversion failure.  Thanks to a used-uninitialized
68008         warning from gcc-4.
68009
68010 2005-04-09  Jim Meyering  <jim@meyering.net>
68011
68012         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
68013         -Wuninitialized: initialize tm0.tm_year.
68014
68015 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68016
68017         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
68018         count, since there's no maximum.  All uses changed.
68019         Add member dsts_seen.
68020         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
68021         not being INT_MAX.
68022         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
68023         Use pc_rels_seen to decide whther a date is absolute.
68024
68025         * lib/getdate.y (number): Don't overwrite year.
68026         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
68027         check.
68028
68029 2005-04-02  Simon Josefsson  <jas@extundo.com>
68030
68031         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
68032         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
68033
68034 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
68035
68036         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
68037         where no absolute path name can be longer than PATH_MAX.
68038
68039 2005-03-27  Jim Meyering  <jim@meyering.net>
68040
68041         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
68042
68043 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
68044
68045         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
68046         "one's complement" -> "ones' complement" in comment, as per Knuth.
68047         "value of type" -> "type or expression" in comment.
68048         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
68049
68050 2005-03-26  Jim Meyering  <jim@meyering.net>
68051
68052         Comment nits.
68053         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
68054         Correct typos: s/or/of/.
68055
68056 2005-03-26  Jim Meyering  <jim@meyering.net>
68057
68058         * modules/check-include-files: Move to ../ and rename to...
68059         * check-module: ...this.
68060
68061 2005-03-25  Jim Meyering  <jim@meyering.net>
68062
68063         * modules/xvasprintf (Files): Add xalloc.h.
68064
68065 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68066
68067         * modules/gettext (Files): config/config.rpath ->
68068         build-aux/config.rpath
68069         * modules/iconv (Files): Likewise.
68070         Problem reported by Oskar Liljeblad.
68071
68072 2005-03-23  Jim Meyering  <jim@meyering.net>
68073
68074         * modules/check-include-files: New script to check for
68075         missing dependencies, multiple includes, etc.
68076
68077         * modules/c-strtold (Depends-on): Add xalloc.
68078         * modules/c-strtod (Depends-on): Add xalloc.
68079         * modules/hash (Depends-on): Add xalloc.
68080         (Files): Remove lib/xalloc.h.
68081
68082         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
68083         * modules/userspec (Files): Add lib/inttostr.h.
68084
68085 2005-03-23  Jim Meyering  <jim@meyering.net>
68086
68087         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
68088
68089 2005-03-22  Jim Meyering  <jim@meyering.net>
68090
68091         * modules/stat-macros: New module.
68092         * modules/canonicalize, modules/euidaccess, modules/file-type,
68093         * modules/filemode, modules/lchown, modules/makepath,
68094         * modules/rmdir, modules/stat: Depend on new stat-macros module
68095         rather than listing lib/stat-macros.h manually.
68096         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
68097
68098 2005-03-22  Jim Meyering  <jim@meyering.net>
68099
68100         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
68101
68102 2005-03-22  Bruno Haible  <bruno@clisp.org>
68103
68104         * config/srclist.txt: Replace target directory 'config' with
68105         'build-aux'.
68106         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
68107         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
68108         ../build-aux/.
68109
68110 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
68111
68112         * modules/chdir-long (Depends-on): Add mempcpy.
68113
68114         * modules/acl, modules/backupfile, modules/c-strtod,
68115         modules/c-strtold, modules/canon-host, modules/canonicalize,
68116         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
68117         modules/exclude, modules/exitfail, modules/file-type,
68118         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
68119         modules/getdate, modules/getline, modules/getpagesize,
68120         modules/getpass, modules/getugroups, modules/group-member,
68121         modules/hard-locale, modules/hash, modules/human, modules/idcache,
68122         modules/inttostr, modules/long-options, modules/makepath,
68123         modules/md5, modules/memcasecmp, modules/memcoll,
68124         modules/modechange, modules/mountlist, modules/path-concat,
68125         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
68126         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
68127         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
68128         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
68129         modules/strftime, modules/strndup, modules/strverscmp,
68130         modules/timespec, modules/unlocked-io, modules/userspec,
68131         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
68132         modules/yesno:
68133         Remove lib_SOURCES line from Makefile.am section, as this is now
68134         done automatically by the corresponding Autoconf macro.
68135
68136 2005-03-21  Jim Meyering  <jim@meyering.net>
68137
68138         Changes imported from coreutils.
68139
68140         * lib/cycle-check.c: Don't include xalloc.h.
68141
68142         * lib/path-concat.c: Don't include assert.h.
68143         (path_concat): Remove assertion that would have triggered
68144         for ABASE starting with more than one slash.
68145         Reported by Andreas Schwab.
68146
68147         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
68148         properly when ABASE is an absolute file name.
68149         Correct the description of this function.
68150         Include <assert.h>.
68151         Add an assertion and a test driver.
68152         This fixes a bug introduced on 2004-07-02.
68153         Andreas Schwab reported the resulting failure of cp --parents:
68154         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
68155
68156 2005-03-21  Jim Meyering  <jim@meyering.net>
68157
68158         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
68159         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
68160
68161 2005-03-21  Jim Meyering  <jim@meyering.net>
68162         and  Paul Eggert  <eggert@cs.ucla.edu>
68163
68164         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
68165         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
68166         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
68167         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
68168         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
68169         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
68170         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
68171         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
68172         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
68173         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
68174         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
68175         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
68176         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
68177         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
68178         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
68179         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
68180         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
68181         for these modules.
68182
68183 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
68184
68185         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
68186         (which shouldn't happen), generate nothing instead of returning 0
68187         immediately, so that nstrftime (NULL, ...) doesn't return 0.
68188
68189 2005-03-16  Bruno Haible  <bruno@clisp.org>
68190
68191         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
68192         HAVE_LONGLONG_64BIT.
68193
68194 2005-03-16  Bruno Haible  <bruno@clisp.org>
68195
68196         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
68197         HAVE_LONGLONG_64BIT.
68198
68199 2005-03-16  Bruno Haible  <bruno@clisp.org>
68200
68201         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
68202         HAVE_LONGLONG_64BIT.
68203
68204 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68205
68206         * lib/strftime.c (my_strftime): Prepend space to format so that we can
68207         reliably distinguish strftime failure from empty output on POSIX
68208         hosts.
68209
68210 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68211
68212         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
68213         (iconv_string): Don't guess a size-zero buffer, as that might cause
68214         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
68215         result would be 'too large', where 'too large' is (heuristically)
68216         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
68217         overflow concerns.  This will prevent some unwanted malloc failures
68218         when the inputs are very large.
68219
68220 2005-03-15  Karl Berry  <karl@gnu.org>
68221
68222         * config/srclist.txt (config.rpath): from gettext.
68223         * config/config.rpath: update.
68224
68225 2005-03-15  Bruno Haible  <bruno@clisp.org>
68226
68227         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
68228         to 'negate'.
68229
68230         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
68231         variable.
68232
68233         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
68234         results.
68235
68236 2005-03-14  Simon Josefsson  <jas@extundo.com>
68237
68238         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
68239         <fx@gnu.org>.
68240
68241 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
68242
68243         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
68244         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
68245         intprops.h.
68246         * lib/strtol.c: Likewise.
68247
68248 2005-03-14  Jim Meyering  <jim@meyering.net>
68249
68250         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
68251         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
68252         to be nonzero so that we (and caller) can detect the difference
68253         between a valid zero-length expansion and an error return, even
68254         when the underlying strftime fails before writing anything into
68255         that location.
68256
68257 2005-03-14  Bruno Haible  <bruno@clisp.org>
68258
68259         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
68260         Update from GNU gettext 0.14.3.
68261
68262 2005-03-10  Jim Meyering  <jim@meyering.net>
68263
68264         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
68265
68266 2005-03-10  Jim Meyering  <jim@meyering.net>
68267
68268         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
68269         so that this module works on systems without fchdir.
68270
68271 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
68272
68273         Factor int-properties macros into a single file, except for
68274         glibc-related files.
68275         * lib/intprops.h: New file.
68276         * lib/getloadavg.c: Include it instead of limits.h.
68277         (INT_STRLEN_BOUND): Remove.
68278         * lib/human.c: Include intprops.h.
68279         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
68280         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
68281         302/1000.
68282         * lib/inttostr.h: Include intprops.h instead of limits.h.
68283         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
68284         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
68285         for consistency with intprops.h.
68286         (time_t_is_integer, twos_complement_arithmetic): Use them.
68287         * lib/sig2str.h: Include <signal.h>, intprops.h.
68288         (INT_STRLEN_BOUND): Remove.
68289         * lib/strftime.c (TYPE_SIGNED): Remove.
68290         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
68291         * lib/strtol.c: Adjust comments to match intprops.h.
68292         * lib/userspec.c: Include intprops.h.
68293         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
68294         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
68295         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
68296         instead of rolling our own expressions.
68297         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
68298
68299         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
68300         instead of int.
68301         (my_strftime): Do not mishandle years close to INT_MAX, by doing
68302         the right thing even if adding 1900 would overflow.  Similarly
68303         for tm_mon + 1 and tm_yday + 1.
68304         Make %Y always equivalent to %C%y, and similarly for %G and %g.
68305         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
68306         (DO_SIGNED_NUMBER): New macro.
68307         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
68308
68309 2005-03-07  Bruno Haible  <bruno@clisp.org>
68310
68311         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
68312
68313 2005-03-07  Bruno Haible  <bruno@clisp.org>
68314
68315         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
68316
68317 2005-03-04  Derek R. Price  <derek@ximbiot.com>
68318
68319         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
68320         (func_import): Only replace files via --import when they have actually
68321         changed.
68322
68323 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68324
68325         * m4/mmap-anon.m4: New file.
68326         * m4/pagealign_alloc.m4: New file.
68327
68328 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68329             Bruno Haible  <bruno@clisp.org>
68330
68331         * modules/pagealign_alloc: New file.
68332         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
68333
68334 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68335             Bruno Haible  <bruno@clisp.org>
68336
68337         * lib/pagealign_alloc.h: New file.
68338         * lib/pagealign_alloc.c: New file.
68339
68340 2005-03-03  Bruno Haible  <bruno@clisp.org>
68341
68342         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
68343         Use an all-permissive copyright notice, recommended by RMS.
68344
68345 2005-03-02  Bruno Haible  <bruno@clisp.org>
68346
68347         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
68348         of AIX, the replacement has to be done only after <string.h> is
68349         included, therefore not in config.h. stpncpy.h does the replacement,
68350         and stpncpy.c uses it.
68351
68352 2005-03-02  Bruno Haible  <bruno@clisp.org>
68353
68354         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
68355         stpncpy.c uses it.
68356
68357 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68358
68359         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
68360         The workaround isn't strictly needed for POSIX conformance, and
68361         it's too much of a pain to configure and maintain.  We'll ask
68362         people to fix their kernels instead.
68363         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
68364         (NANOSLEEP_BUG_WORKAROUND): Remove.
68365         (xnanosleep): Remove the workaround.
68366
68367 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68368
68369         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
68370         Reported by Derek Price.
68371         (Include): Add "timespec.h".
68372
68373         * modules/xnanosleep (Depends-on): Remove gethrxtime.
68374
68375 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68376
68377         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
68378         to detect nanosleep bug.
68379
68380 2005-03-01  Bruno Haible  <bruno@clisp.org>
68381
68382         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
68383
68384 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68385
68386         * modules/gethrxtime: New file.
68387         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
68388         (Depends-on): Add gethrxtime.
68389         (configure.ac): Add gl_XNANOSLEEP.
68390         (Makefile.am): Remove lib_SOURCES line.
68391
68392 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68393
68394         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
68395         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
68396
68397 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68398
68399         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
68400         * lib/timespec.h (gettime): Return void, since it always
68401         succeeds now.  All uses changed.
68402         * lib/gettime.c (gettime): Likewise.
68403         [HAVE_NANOTIME]: Prefer nanotime.
68404         Assume gettimeofday succeeds, as POSIX requires.
68405         Assime time () succeeds, since other code already does.
68406         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
68407         (timespec_subtract): Remove.
68408         (NANOSLEEP_BUG_WORKAROUND): New constant.
68409         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
68410         things considerably.  Use it only on GNU/Linux hosts, since the
68411         workaround shouldn't be needed elsewhere.
68412
68413 2005-02-24  Bruno Haible  <bruno@clisp.org>
68414
68415         * modules/gettext (Files): Add m4/glibc2.m4.
68416
68417 2005-02-24  Bruno Haible  <bruno@clisp.org>
68418
68419         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
68420         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
68421         * m4/progtest.m4:
68422         Update from GNU gettext 0.14.2.
68423         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
68424
68425 2005-02-24  Bruno Haible  <bruno@clisp.org>
68426
68427         * lib/localcharset.c: Update from GNU gettext 0.14.2.
68428         * lib/config.charset: Update from GNU gettext 0.14.2.
68429
68430 2005-02-24  Bruno Haible  <bruno@clisp.org>
68431
68432         * lib/gettext.h: Update from GNU gettext 0.14.2.
68433
68434 2005-02-23  Simon Josefsson  <jas@extundo.com>
68435
68436         * m4/iconvme.m4: New file.
68437
68438 2005-02-23  Jim Meyering  <jim@meyering.net>
68439
68440         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
68441         change.
68442         Thanks to Bruno Haible for catching it.
68443
68444 2005-02-22  Simon Josefsson  <jas@extundo.com>
68445
68446         * modules/iconvme: New file.
68447
68448         * MODULES.html.sh: Add iconvme.
68449
68450 2005-02-22  Simon Josefsson  <jas@extundo.com>
68451
68452         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
68453
68454 2005-02-22  Simon Josefsson  <jas@extundo.com>
68455
68456         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
68457
68458 2005-02-22  Jim Meyering  <jim@meyering.net>
68459
68460         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
68461         s/ifndef/ifdef/.
68462
68463 2005-02-20  Neil Conway  <neilc@samurai.com>
68464
68465         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
68466         returned by OSX/Darwin if the specified buffer is not large
68467         enough for the hostname.
68468
68469 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68470
68471         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
68472         pass it to _help, otherwise the latter coredumps trying to
68473         dereference state.root_argp.
68474
68475 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68476
68477         * modules/chdir-long (Depends-on): Add memrchr.
68478         * modules/memrchr (Files): Add lib/memrchr.h.
68479         (Include): "memrchr.h".
68480
68481 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68482
68483         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
68484
68485 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68486
68487         * lib/memrchr.h: New file.
68488         * lib/chdir-long.c: Include it.
68489         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
68490         Don't bother including stddef.h.
68491
68492 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68493
68494         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
68495         inclusion.
68496         Include <sys/types.h>, for dev_t.
68497         (ME_DUMMY, ME_REMOTE): Move from here....
68498         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
68499         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
68500         Dmitry V. Levin.
68501         Include mountlist.h first, to test the interface.
68502
68503 2005-01-29  Bruno Haible  <bruno@clisp.org>
68504
68505         * lib/progname.c (program_name): Initialize.
68506         Needed when linking statically on MacOS X.
68507
68508 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68509
68510         Sync from coreutils.
68511         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
68512         (Depends-on): Add c-strtod.
68513         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
68514
68515 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68516
68517         Sync from coreutils.
68518         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
68519
68520         Remove files that are specific to coreutils.
68521         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
68522
68523 2005-01-28  Bruno Haible  <bruno@clisp.org>
68524
68525         * modules/javacomp: New file.
68526         * MODULES.html.sh (Java): Add javacomp.
68527
68528 2005-01-28  Bruno Haible  <bruno@clisp.org>
68529
68530         * m4/javacomp.m4: New file, from GNU gettext.
68531
68532 2005-01-28  Bruno Haible  <bruno@clisp.org>
68533
68534         * lib/javacomp.sh.in: New file, from GNU gettext.
68535         * lib/javacomp.h: New file, from GNU gettext.
68536         * lib/javacomp.c: New file, from GNU gettext.
68537
68538 2005-01-26  Simon Josefsson  <jas@extundo.com>
68539
68540         * lib/gai_strerror.c: Use GPL in header.
68541
68542 2005-01-26  Bruno Haible  <bruno@clisp.org>
68543
68544         * modules/javaexec: New file.
68545         * MODULES.html.sh (Java): Add javaexec.
68546
68547 2005-01-26  Bruno Haible  <bruno@clisp.org>
68548
68549         * m4/javaexec.m4: New file, from GNU gettext.
68550
68551 2005-01-26  Bruno Haible  <bruno@clisp.org>
68552
68553         * lib/javaexec.sh.in: New file, from GNU gettext.
68554         * lib/javaexec.h: New file, from GNU gettext.
68555         * lib/javaexec.c: New file, from GNU gettext.
68556
68557 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68558
68559         * modules/lchown (Depends-on): Remove lchown.h
68560
68561 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68562
68563         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
68564         must be defined if the header file was not found, in order
68565         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
68566
68567 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68568
68569         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
68570         initializers for struct pentry_state.
68571         (__argp_error): Check return value of __asprintf
68572         (__argp_failure): Translate error message
68573
68574         * lib/argp-parse.c: Removed braces around the expansion of N_()
68575
68576 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68577
68578         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
68579         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
68580         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
68581         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
68582         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
68583         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
68584         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
68585         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
68586         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
68587         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
68588         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
68589         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
68590         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
68591         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
68592         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
68593         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
68594         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
68595         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
68596         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
68597         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
68598         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
68599         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
68600         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
68601         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
68602         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
68603         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
68604         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
68605         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
68606         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
68607         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
68608         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
68609         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
68610         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
68611         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
68612         xstrtol.m4, xstrtoumax.m4, yesno.m4:
68613         Use an all-permissive copyright notice, recommended by RMS.
68614
68615 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
68616
68617         * modules/chdir-long (Depends-on): Remove mempcpy.
68618
68619 2005-01-21  Jim Meyering  <jim@meyering.net>
68620
68621         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
68622         same value as for Solaris 9.
68623
68624         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
68625         component length.  This included changing the parameter to be
68626         of type `char *' rather than `char const *'.
68627         * lib/chdir-long.h (chdir_long): Update prototype.
68628
68629         * lib/openat.c (fdopendir, fstatat): New functions.
68630         * lib/openat.h: Include headers required for use of DIR and struct
68631         stat.
68632         [AT_SYMLINK_NOFOLLOW]: Define.
68633         (fdopendir, fstatat): Add prototypes.
68634
68635 2005-01-21  Bruno Haible  <bruno@clisp.org>
68636
68637         * modules/classpath: New file.
68638         * MODULES.html.sh (Java): Add classpath.
68639
68640 2005-01-21  Bruno Haible  <bruno@clisp.org>
68641
68642         * lib/classpath.h: New file, from GNU gettext.
68643         * lib/classpath.c: New file, from GNU gettext.
68644
68645 2005-01-20  Simon Josefsson  <jas@extundo.com>
68646
68647         * modules/version-etc-fsf: New file.
68648
68649 2005-01-20  Simon Josefsson  <jas@extundo.com>
68650
68651         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
68652         * lib/version-etc.c: Remove version_etc_copyright.
68653         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
68654         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
68655
68656 2005-01-20  Simon Josefsson  <jas@extundo.com>
68657
68658         * lib/base64.h (isbase64): Add.
68659
68660         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
68661         using a unsigned prototype, don't inline.
68662         (base64_decode): Use it.
68663
68664 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
68667         it.
68668
68669 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68670
68671         * lib/save-cwd.c (save_cwd): Remove code to support the case
68672         where fchdir is missing or flaky.
68673
68674 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68675
68676         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
68677
68678 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68679
68680         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
68681         AC_LIBSOURCES now does this.
68682         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
68683         with new ullong_max module.
68684
68685 2005-01-19  Bruno Haible  <bruno@clisp.org>
68686
68687         * modules/sh-quote: New file.
68688         * MODULES.html.sh (Executing programs): Add sh-quote.
68689
68690 2005-01-19  Bruno Haible  <bruno@clisp.org>
68691
68692         * lib/sh-quote.h: New file, from GNU gettext.
68693         * lib/sh-quote.c: New file, from GNU gettext.
68694
68695 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68696
68697         Merge from coreutils.
68698         * m4/ullong_max.m4: New file.
68699         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
68700         (gl_MACROS): Assume localeconv exists.
68701
68702 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68703
68704         Merge changes from coreutils, as described below in several
68705         changelogs dated today.
68706
68707         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
68708         (O_DIRECTORY): Remove; not needed here, since "." must be
68709         a directory.  All uses removed.
68710         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
68711         universal on Suns, and we also need to test for IRIX.
68712         Revamp code to use 'if' rather than '#if'.
68713         Avoid unnecessary comparison of cwd->desc to 0.
68714
68715         * lib/utimens.c (futimens): Robustify the previous patch, by checking
68716         for known valid error numbers rather than observed invalid ones.
68717
68718 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68719
68720         * modules/ullong_max: New file.
68721
68722         * modules/chdir-long, modules/openat: New files.
68723         * modules/save-cwd (Depends-on): Depend on chdir-long.
68724         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
68725
68726 2005-01-18  Jim Meyering  <jim@meyering.net>
68727
68728         Merge from coreutils.
68729         * m4/chdir-long.m4, m4/openat.m4: New files.
68730         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
68731         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
68732         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
68733         is sane and DOES follow symlinks.  Besides, testing 20 different
68734         systems found no broken chown implementations.
68735         Prompted by a change in rsync's copy of this macro.
68736         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
68737
68738         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
68739
68740         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
68741         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
68742         NULL-means-set-to-current-time semantics.
68743         Remove temporary file immediately, rather than waiting
68744         for configure's at-exit trap code to do it.
68745
68746 2005-01-18  Jim Meyering  <jim@meyering.net>
68747
68748         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68749
68750         * lib/utimens.c (futimens): Account for the fact that futimes
68751         can also fail with errno == ENOSYS or errno == ENOENT.
68752         Patch from Dmitry V. Levin.
68753
68754         Change the name of the robust chdir function from chdir to chdir_long.
68755         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
68756         (restore_cwd): Use chdir_long, not chdir.
68757         * lib/chdir-long.c: Renamed from chdir.c.
68758         * lib/chdir-long.h: Renamed from chdir.h.
68759         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
68760         Hurd.
68761
68762 2005-01-18  Bruno Haible  <bruno@clisp.org>
68763
68764         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
68765         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
68766         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
68767         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
68768         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
68769         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
68770         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
68771         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
68772         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
68773         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
68774         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
68775         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
68776         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
68777         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
68778         Use an all-permissive copyright notice, recommended by RMS.
68779
68780 2005-01-18  Bob Proulx  <bob@proulx.com>
68781
68782         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
68783         simplify offsetof() macro construct to avoid compile failure with
68784         native HP-UX 11.0 ANSI C compiler.
68785
68786 2005-01-17  Bruno Haible  <bruno@clisp.org>
68787
68788         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
68789         redundant because stpncpy.m4 takes care of it.
68790
68791 2005-01-17  Bruno Haible  <bruno@clisp.org>
68792
68793         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
68794
68795 2005-01-17  Bruno Haible  <bruno@clisp.org>
68796
68797         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
68798         used.
68799
68800 2005-01-17  Bruno Haible  <bruno@clisp.org>
68801
68802         * lib/fwriteerror.h (fwriteerror): Change specification to include
68803         fclose.
68804         * lib/fwriteerror.c: Include <stdbool.h>.
68805         (fwriteerror): At the end, close the file stream. Record whether
68806         stdout was already closed.
68807
68808 2005-01-17  Bruno Haible  <bruno@clisp.org>
68809
68810         * lib/execute.c (environ): Declare if needed.
68811         * lib/pipe.c (environ): Likewise.
68812         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
68813
68814 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68815
68816         * modules/argp: Depend on vsnprintf
68817
68818 2005-01-10  Jim Meyering  <jim@meyering.net>
68819
68820         * modules/closeout (Depends-on): Add atexit.
68821
68822 2005-01-06  Bruno Haible  <bruno@clisp.org>
68823
68824         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
68825
68826 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68827
68828         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
68829         definitions to be after all include files, to avoid collisions.
68830         Problem reported by Bob Proulx.
68831
68832 2005-01-04  Jim Meyering  <jim@meyering.net>
68833
68834         Changes imported from coreutils.
68835         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
68836         as the mkstemp template, use a temporary directory and an
68837         8.3-friendly template to avoid trouble on systems like DJGPP.
68838         Reported by Juan M. Guerrero via Stepan Kasal.
68839         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
68840         close. Remove the temporary directory right away, rather than waiting
68841         for configure's at-exit trap code to do it.
68842         Suggestion from Stepan Kasal.
68843
68844 2005-01-01  Simon Josefsson  <jas@extundo.com>
68845
68846         * gnulib-tool: Print #include directives when --import'ing.
68847
68848 2004-12-28  Simon Josefsson  <jas@extundo.com>
68849
68850         * tests/test-base64.c: Include required header files.  Remove
68851         unused variables.
68852
68853 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68854
68855         * modules/error (Depends-on): Remove gettext.
68856
68857 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68858
68859         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
68860         not needed.  This removes a dependency on the gettext module.
68861         [defined _LIBC]: Do not include <libintl.h>; not needed.
68862
68863 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68864
68865         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
68866         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
68867
68868 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68869
68870         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
68871         HAVE_DECL_STRTOLD.
68872
68873 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68874
68875         * modules/getdate (Depends-on): Remove alloca-opt.
68876
68877 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68878
68879         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
68880
68881 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68882
68883         * lib/argp-parse.c: Include <stddef.h>.
68884         (alignof, alignto): New macros.
68885         (parser_init): Don't assume that void * is aligned sufficiently
68886         for struct option.
68887
68888         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
68889         need to extend the stack.
68890         (YYINITDEPTH): New macro, so that the initial stack isn't overly
68891         large.
68892
68893 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68894
68895         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
68896
68897 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68898
68899         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
68900         (2004-10-24) change.  Apparently this was a false alarm.
68901
68902         * modules/getdate: Depend on alloca-opt, not alloca.
68903
68904 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68905
68906         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
68907         Remove now-obsolete comment about AIX.
68908         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
68909         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
68910         (YYMAXDEPTH): New macro.
68911
68912 2004-12-18  Simon Josefsson  <jas@extundo.com>
68913
68914         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
68915
68916 2004-12-18  Bruno Haible  <bruno@clisp.org>
68917
68918         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
68919
68920 2004-12-18  Bruno Haible  <bruno@clisp.org>
68921
68922         * lib/fatal-signal.c (fatal_signals): Make non-const.
68923         (init_fatal_signals): New function.
68924         (uninstall_handlers, install_handlers): Ignore signals that were set to
68925         SIG_IGN.
68926         (at_fatal_signal): Call init_fatal_signals.
68927         (init_fatal_signal_set): Likewise. Ignore signals that were set to
68928         SIG_IGN.
68929         Reported by Paul Eggert.
68930
68931 2004-12-18  Bruno Haible  <bruno@clisp.org>
68932
68933         * doc/alloca.texi: New file.
68934         * doc/alloca-opt.texi: New file.
68935
68936 2004-12-17  Jim Meyering  <jim@meyering.net>
68937
68938         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
68939         Otherwise, install-sh could exit with improper exit status when
68940         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
68941
68942 2004-12-16  Simon Josefsson  <jas@extundo.com>
68943
68944         * tests/test-base64.c: Add license.
68945
68946 2004-12-15  Stepan Kasal  <address@hidden>
68947
68948         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
68949
68950 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
68951
68952         * modules/getcwd (Files): Add m4/d-ino.m4.
68953         Suggested by Mark D. Baushke.
68954
68955 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68956
68957         * lib/getdate.y (textint): New member "negative".
68958         (time_zone_hhmm): New function.
68959         Expect 14 shift-reduce conflicts, not 13.
68960         (o_colon_minutes): New rule.
68961         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
68962         (yylex): Set the "negative" member of signed numbers.
68963
68964 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68965
68966         * doc/getdate.texi (Time of day items, Time zone items):
68967         Describe new formats +00:00, UTC+00:00.
68968
68969 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68970
68971         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
68972         spurious "-l"s.  Problem reported by Stepan Kasal.
68973
68974 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
68975
68976         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
68977         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
68978
68979 2004-12-04  Simon Josefsson  <jas@extundo.com>
68980
68981         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
68982         Vandoorselaere <yoann@prelude-ids.org>.
68983
68984 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68985
68986         Changes imported from coreutils.
68987         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
68988         exist.
68989         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
68990
68991 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68992
68993         Changes imported from coreutils.
68994         * lib/hard-locale.c: Assume <locale.h> exists.
68995         Include "strdup.h".
68996         (GLIBC_VERSION): New macro.
68997         (hard_locale): Assume setlocale exists.
68998         Rewrite to avoid #ifdef.
68999         Use strdup rather than malloc + strcpy.
69000         * lib/human.c: Assume <locale.h> exists.
69001         (human_readable): Assume localeconv exists.
69002
69003 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69004
69005         * modules/hard-locale (Depends-on): Add strdup.
69006
69007 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69008
69009         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
69010         convert T2, not T.  (Imported from libc.)
69011
69012 2004-11-30  Simon Josefsson  <jas@extundo.com>
69013
69014         * modules/restrict (License): Change to LGPL.
69015
69016 2004-11-30  Simon Josefsson  <jas@extundo.com>
69017
69018         * m4/restrict.m4: Add copyright and copying conditions.
69019
69020 2004-11-30  Simon Josefsson  <jas@extundo.com>
69021
69022         * m4/base64.m4: New file.
69023
69024 2004-11-30  Simon Josefsson  <jas@extundo.com>
69025
69026         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
69027         base64.
69028
69029         * tests/test-base64.c: New file.
69030
69031         * modules/base64: New file.
69032
69033 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69034
69035         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
69036         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
69037
69038         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
69039
69040 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69041
69042         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
69043         (__getcwd.c): Don't restore errno; glibc doesn't.
69044         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
69045         first, falling back to our code only if its results look suspicious.
69046         Ensure that the resulting buffer is only as large as necessary.
69047
69048         * lib/readutmp.c: Include readutmp.h first.
69049         Include <errno.h>, since readutmp.h no longer does that.
69050         * lib/readutmp.h: Don't include <errno.h>,
69051         <sys/param.h>, <time.h>; not needed to establish interface.
69052         (errno): Remove decl.
69053         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
69054         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
69055         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
69056
69057 2004-11-28  Simon Josefsson  <jas@extundo.com>
69058
69059         * lib/base64.h, base64.c: New file.
69060
69061 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69062
69063         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
69064
69065 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69066
69067         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
69068         (Depends-on): Remove pathmax, same.  Add mempcpy.
69069         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
69070         (Makefile.am): Append getcwd.h to lib_SOURCES.
69071         (Include): Add getcwd.h.
69072         (Maintainer): Change from Jim Meyering to "all, glibc",
69073         since getdate now uses intended-for-glibc code.
69074         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
69075         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
69076
69077 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69078
69079         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
69080         HP's ANSI C compiler.
69081         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
69082         Declaring int functions causes warnings on some modern systems and
69083         shouldn't be needed to compile on ancient ones.
69084         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
69085         defined.
69086
69087         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
69088         with the following changes.
69089         (__set_errno): Parenthesize properly.
69090         Include <stdbool.h>.
69091         (MIN, MAX, MATCHING_INO): New macros.
69092         (__getcwd): Define with prototype, not K&R form.
69093         Use heuristics to allocate default buffer on stack if possible.
69094         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
69095         behavior, and to avoid the PATH_MAX limit when computing
69096         ../../../../...
69097         Use MATCHING_INO to compare inode number to file.
69098         Check for arithmetic overflow in size calculations.
69099         Fix bug in reallocation of dot array that caused getcwd to fail
69100         on directories nested deeper than 75.
69101         Be more careful about saving errno on error.
69102         Do not use realloc; use only free+malloc, as this is a bit
69103         more flexible and avoids a needless copy operation.
69104         Do not inspect st_dev and st_ino for symbolic links; POSIX
69105         doesn't specify the latter.
69106         Check for closedir errors.
69107         Avoid needless casts.
69108         Use "#ifdef weak_alias" around weak_alias, to be like other
69109         glibc code.
69110         The following changes to getcwd.c have effect only when used in
69111         gnulib; they have no effect inside glibc proper.
69112         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
69113         as alloca isn't used.
69114         (alloca, __alloca): Likewise.
69115         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
69116         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69117         unconditionally, as gnulib assumes C89 or better.
69118         Do not include <sys/param.h>.
69119         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
69120         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
69121         better.
69122         (NULL) [!defined NULL]: Remove; we assume C89 or better.
69123         Include <dirent.h> in a way that is compatible with modern Autoconf.
69124         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
69125         New macros, if not already defined.
69126         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
69127         Use "_LIBC", not "defined _LIBC", for consistency.
69128         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
69129         a mempcpy module.
69130         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
69131         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
69132         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
69133         credit only to Jim Meyering and adjust the copyright dates.
69134         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
69135         <stdlib.h>, <unistd.h>, "pathmax.h".
69136         Instead, include "xgetcwd.h" (first) and "getcwd.h".
69137         (INITIAL_BUFFER_SIZE): Remove.
69138         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
69139
69140 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69141
69142         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
69143         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
69144         Use the _ONCE methods, for efficiency.
69145         Check for fcntl.h.  In test program, include <errno.h>
69146         and <fcntl.h> if available.  Remove old K&R cruft from
69147         test program.  Check for common errors in GNU/Linux,
69148         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
69149         don't do AC_LIBOBJ, as that's getcwd.m4's job.
69150         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
69151         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
69152         name accordingly.
69153         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
69154         accommodate new getcwd.c.
69155         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
69156         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
69157         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
69158         that's all we need now.
69159
69160 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69161
69162         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
69163         argp-parse.c depends on getopt internals, that means we should
69164         always use our getopt, to be on the safe side.
69165         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
69166         order not to spoil the result of an eventual previous invocation
69167         of gl_GETOPT_SUBSTITUTE.
69168
69169 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69170
69171         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
69172         redefinition warnings. To avoid them, include the defines
69173         in `#if !defined __need_getopt ... #endif'. The only place
69174         where __getopt_argv_const is used is in definitions
69175         of getopt_long and getopt_long_only below, which are as well
69176         protected by `#ifndef __need_getopt'.
69177         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
69178         __need_getopt after including <stdio.h> and <unistd.h> These
69179         headers might have defined it.
69180
69181 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69182
69183         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
69184
69185 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69186
69187         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
69188         (futimens): New function, which uses futimes if available.
69189         (futimens, utimens): Support timespec==NULL, with same semantics
69190         as utime and utimens.
69191         * lib/utimens.h (futimens): New decl.
69192
69193 2004-11-23  Jim Meyering  <jim@meyering.net>
69194
69195         * lib/getopt_.h: Remove trailing blanks.
69196
69197 2004-11-23  Jim Meyering  <jim@meyering.net>
69198
69199         * lib/__fpending.c: Add comment.
69200
69201 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
69202
69203         * modules/canonicalize (Depends-on): Add xreadlink.
69204         Problem reported by James Youngman.
69205
69206 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69207
69208         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
69209         New macros.
69210         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
69211         optopt): Use them instead of invoking ## directly; otherwise, the
69212         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
69213
69214 2004-11-19  Bruno Haible  <bruno@clisp.org>
69215
69216         * lib/strtok_r.c: Move comments from here...
69217         * lib/strtok_r.h: ... to here.
69218
69219 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69220
69221         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
69222         implementations that mishandle size_t overflow.
69223
69224 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69225
69226         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
69227         might fail.  Problem reported by Yoann Vandoorselaere.
69228         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
69229         implementations that mishandle size_t overflow.
69230
69231 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69232
69233         * modules/canon-host (Depends-on): Add strdup.
69234
69235 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69236
69237         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
69238
69239 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69240
69241         * lib/canon-host.c: Include "strdup.h".
69242         (canon_host): Use getaddrinfo if available, so that IPv6 works.
69243         Use strdup instead of malloc/strcpy to duplicate strings.
69244
69245         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
69246         (human_space_before_unit): New constant.
69247         * lib/human.c (human_readable): Support it.
69248
69249         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
69250         (xgetcwd): Set errno correctly when failing.
69251         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
69252         the failure is actually due to a PATH_MAX problem.
69253
69254         Further getopt changes to make it more likely that glibc will
69255         buy the changes back.
69256         * lib/getopt.c (POSIXLY_CORRECT): New constant.
69257         (getopt): Use it, so to preserve glibc semantic
69258         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
69259         when compiling for libc.
69260         * lib/getopt_.h (__getopt_argv_const): Bring it back.
69261         (getopt_long, getopt_long_only): Use it.
69262
69263         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69264         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
69265         (getopt): Argv is now char * const *, as per standard.
69266         (_getopt_internal_r, _getopt_internal): Argv is now char **,
69267         not char *__getopt_argv_const *.
69268         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69269         _getopt_long_only_r): Likewise.
69270         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
69271         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69272         _getopt_long_r, _getopt_long_only_r): Likewise.
69273         * lib/getopt_.h (__getopt_argv_const): Remove.
69274         (getopt): Argv is now char * const *, as per standard.
69275
69276         * lib/getdate.y (tORDINAL): New token.
69277         (day, relunit): Allow it for relative times.
69278         (relative_time_table): Use tORDINAL for ordinals.
69279
69280 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69281
69282         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
69283         Document that "second" isn't allowed as an ordinal number.
69284
69285 2004-11-16  Jim Meyering  <jim@meyering.net>
69286
69287         * modules/closeout (Depends-on): Add fpending.
69288
69289 2004-11-15  Jim Meyering  <jim@meyering.net>
69290
69291         * lib/closeout.c: Include "__fpending.h" once again.
69292         Include <stdbool.h>.
69293         (close_stdout): Don't fail just because stdout was closed initially,
69294         since some programs don't write to stdout in the normal course of
69295         operation (other than --version and --help), and we don't want this
69296         function to make e.g. `touch file >&-' fail.
69297         But do fail if it was closed and someone has tried to write to it.
69298         E.g., `printf foo >&-' must fail.
69299
69300 2004-11-13  Jim Meyering  <jim@meyering.net>
69301
69302         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
69303
69304 2004-11-12  Simon Josefsson  <jas@extundo.com>
69305
69306         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
69307         small doc fix is still pending.
69308
69309 2004-11-11  Simon Josefsson  <jas@extundo.com>
69310
69311         * modules/strtok_r: New file.
69312
69313         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69314         strtok_r.
69315
69316 2004-11-11  Simon Josefsson  <jas@extundo.com>
69317
69318         * m4/strtok_r.m4: New file.
69319
69320         * m4/getopt.m4: Replace opterr.
69321
69322 2004-11-11  Simon Josefsson  <jas@extundo.com>
69323
69324         * lib/strtok_r.h, strtok_r.c: New file.
69325
69326 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69327
69328         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
69329         of replacing opterr, getopt, etc.  This should handle the
69330         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
69331
69332 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69333
69334         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
69335         we can stop lying to compilers about the constness of argv when we
69336         are compiled outside glibc.
69337         (getopt, getopt_long, getopt_long_only): Use it.
69338         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69339         _getopt_internal, getopt): Likewise.
69340         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69341         _getopt_long_only_r): Likewise.
69342         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69343         _getopt_long_r, _getopt_long_only_r): Likewise.
69344
69345         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
69346         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
69347         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
69348         the other external symbols.
69349         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
69350         declaration, since the above renaming now works around collisions.
69351
69352 2004-11-11  Jim Meyering  <jim@meyering.net>
69353
69354         * lib/linebreak.c: Remove trailing blanks.
69355         * lib/alloca_.h: Likewise.
69356         * lib/acosl.c: Likewise.
69357         * lib/euidaccess.c: Likewise.
69358         * lib/allocsa.h: Likewise.
69359
69360 2004-11-10  Simon Josefsson  <jas@extundo.com>
69361
69362         * m4/getaddrinfo.m4: New file.
69363
69364 2004-11-10  Simon Josefsson  <jas@extundo.com>
69365
69366         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
69367
69368 2004-11-10  Simon Josefsson  <jas@extundo.com>
69369
69370         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69371         getaddrinfo.
69372
69373         * modules/getaddrinfo: New file.
69374
69375 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69376
69377         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
69378
69379 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69380
69381         * lib/mktime.c (SHR): New macro, which is a portable
69382         substitute for >> that should work even on Crays.
69383         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
69384         Problem reported by Mark D. Baushke in
69385         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
69386         * lib/getdate.y (SHR): Likewise.
69387         (tm_diff): Use it.
69388         * lib/strftime.c (SHR): Likewise.
69389         (tm_diff): Use it.
69390         * lib/quotearg.c (struct quoting_options): Use unsigned int for
69391         quote_these_too, so that right shifts are well defined.  All uses
69392         changed.
69393
69394 2004-11-10  Jim Meyering  <jim@meyering.net>
69395
69396         Ensure that no close failure goes unreported.
69397         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
69398         return early when it seems there's nothing to flush.
69399         Don't include __fpending.h.
69400
69401 2004-11-10  Jim Meyering  <jim@meyering.net>
69402
69403         * modules/closeout (Depends-on): Remove fpending.
69404
69405 2004-11-10  Jim Meyering  <jim@meyering.net>
69406
69407         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
69408
69409 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69410
69411         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
69412         gl_FUNC_STRFTIME.
69413         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
69414         and AC_REQUIRE when possible, to avoid duplicate checks.
69415         Check for <wchar.h>.
69416
69417 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69418
69419         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
69420
69421 2004-11-09  Bruno Haible  <bruno@clisp.org>
69422
69423         * m4/sockpfaf.m4: New file.
69424
69425 2004-11-05  Bruno Haible  <bruno@clisp.org>
69426
69427         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
69428         Reported by Mark D. Baushke <mdb@cvshome.org>.
69429
69430 2004-11-04  Bruno Haible  <bruno@clisp.org>
69431
69432         2004-09-11  Bruno Haible  <bruno@clisp.org>
69433                 * allocsa.valgrind: New file.
69434         2004-02-06  Bruno Haible  <bruno@clisp.org>
69435                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
69436                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
69437                 Reported by Christopher Seip <chris.seip@hp.com>.
69438
69439 2004-11-04  Bruno Haible  <bruno@clisp.org>
69440
69441         * modules/allocsa (Files): Add lib/allocsa.valgrind.
69442         (Makefile.am): Distribute it.
69443
69444 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69445
69446         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
69447         with errno == ERANGE if the buffer is too small.
69448         Problem reported by Mark D. Baushke.
69449
69450 2004-11-03  Albert Chin  <china@thewrittenword.com>
69451             Paul Eggert  <eggert@cs.ucla.edu>
69452
69453         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
69454         equivalent, substitute $ac_type for equivalent type rather than
69455         blindly using uint32_t *always* which won't work if uint32_t is not
69456         available.  Define _UINT32_T to work around typedef of uint32_t if
69457         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
69458         2.5.1.
69459
69460 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69461
69462         * m4/jm-macros.m4: Sync from coreutils.
69463         (gl_MACROS): Check for mbrlen, for pathchk.
69464         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
69465
69466 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69467
69468         * lib/xreadlink.c (MAXSIZE): New macro.
69469         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
69470         size does not exceed MAXSIZE.  Avoid cast.
69471         As suggested by Mark D. Baushke in
69472         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
69473         if readlink fails with buffer size just under MAXSIZE, try again
69474         with MAXSIZE.
69475
69476 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69477
69478         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
69479
69480 2004-11-02  Derek R. Price  <derek@ximbiot.com>
69481         and  Paul Eggert  <eggert@cs.ucla.edu>
69482
69483         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
69484         (get_date): Overparenthesize to avoid GCC warning.
69485
69486 2004-11-02  Bruno Haible  <bruno@clisp.org>
69487
69488         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
69489         returns void.
69490
69491 2004-11-02  Bruno Haible  <bruno@clisp.org>
69492
69493         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
69494         function returns void.
69495
69496 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69497
69498         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
69499         fflush_unlocked, flockfile, funlockfile, funlockfile,
69500         fputs_unlocked, putc_unlocked.
69501
69502 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69503
69504         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69505         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
69506         already declared.
69507
69508 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69509
69510         * modules/getdate (Files): Add doc/getdate.texi.
69511         (Depends-on): Add setenv, xalloc.
69512
69513 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69514
69515         * lib/getdate.y: Add support for TZ="foo" within a date string.
69516         Fix some bugs near time_t boundaries.  Reject dates with
69517         out-of-range components, e.g., "Sept 31".
69518         Include <stdlib.h>, "setenv.h", "xalloc.h".
69519         (ISDIGIT_LOCALE): Remove; unused.
69520         Note that the TZ and time functions used here are not reentrant.
69521         (mktime_ok, get_tz): New functions.
69522         (TZBUFSIZE): New constant.
69523         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
69524         This requires that we sometimes generate our own TZ="XXX..." setting.
69525
69526 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69527
69528         * doc/getdate.texi: New file, from coreutils with modifications for
69529         the new TZ parsing.
69530
69531 2004-10-27  Derek R. Price  <derek@ximbiot.com>
69532
69533         * lib/mktime.c (not_equal_tm): Remove redundant check.
69534
69535 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69536
69537         * modules/regex (lib_SOURCES): Add regex.c.
69538         Reported by James Youngman in
69539         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
69540
69541 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69542
69543         * lib/getdate.y: Use Bison 1.875 features, and some minor
69544         code cleanups.  This change does not affect semantics.
69545         Don't include <stdlib.h>; no longer needed.
69546         Don't include unlocked-io.h; only the "#if TEST" code uses
69547         stdio, and performance isn't crucial there.
69548         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
69549         Bison 1.875 features as described below.
69550         All uses of "PC." replaced by "pc->".
69551         (YYSTYPE): Add a forward declaration.
69552         (yylex, yyerror): Use full prototypes in forward decls.
69553         Use "%pure-parser" rather than obsolescent "%pure_parser".
69554         Use %parse-param and %lex-param instead of obsolescent
69555         YYPARSE_PARAM and YYLEX_PARAM.
69556         (meridian_table, month_and_day_table, time_units_table,
69557         relative_time_table, time_zone_table, military_table,
69558         lookup_zone, lookup_word, get_date):
69559         Use NULL instead of 0 where appropriate.
69560         (to_hour): Avoid abort (), to avoid a dependency on
69561         stdlib.h.
69562         (yyerror, yylex): Now accepts parser_control * arg.
69563         (main) [TEST]: Use '\0' rather than 0 for char.
69564
69565 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69566
69567         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
69568
69569 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
69572         It's now the caller's responsibility to handle the case where
69573         !HAVE_GETPAGESIZE && !defined getpagesize.
69574
69575         * lib/mktime.c (leapyear): Arg is long int, not int.
69576
69577 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
69578
69579         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
69580
69581 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69582
69583         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
69584         missing.  Problem reported by James Youngman.
69585
69586 2004-10-16  Simon Josefsson  <jas@extundo.com>
69587
69588         * gnulib-tool: Fix comments.  Fix parse problem.
69589         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
69590
69591 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
69592
69593         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
69594         implementation of getopt_long.  Problem reported by Alexander Taler in:
69595         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
69596
69597 2004-10-15  Bruno Haible  <bruno@clisp.org>
69598
69599         * gnulib-tool: Untabify. Initialize supplied_libname.
69600         (func_usage): More homogenous output.
69601         (func_modules_transitive_closure, func_modules_to_filelist,
69602         func_emit_lib_Makefile_am): New functions.
69603         (func_import): New function, extracted from big case statement. Use
69604         func_get_license, func_modules_transitive_closure,
69605         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
69606         opt_lgpl. Don't use test -a, as it's not portable.
69607         (func_create_testdir): Use func_modules_transitive_closure,
69608         func_modules_to_filelist, func_emit_lib_Makefile_am.
69609
69610 2004-10-15  Bruno Haible  <bruno@clisp.org>
69611
69612         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
69613
69614 2004-10-15  Bruno Haible  <bruno@clisp.org>
69615
69616         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
69617         the portions belonging to each module.
69618         Suggested by Derek Robert Price <derek@ximbiot.com>.
69619
69620 2004-10-12  Simon Josefsson  <jas@extundo.com>
69621
69622         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69623         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
69624         to real functions.
69625
69626 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69627
69628         * modules/vsnprintf: New file.
69629
69630 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69631
69632         * m4/vsnprintf.m4: New file.
69633
69634 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69635
69636         * lib/vsnprintf.h: New file.
69637         * lib/vsnprintf.c: New file.
69638
69639 2004-10-11  Bruno Haible  <bruno@clisp.org>
69640
69641         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
69642         vsnprintf.
69643
69644 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69645
69646         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
69647
69648 2004-10-07  Bruno Haible  <bruno@clisp.org>
69649
69650         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
69651         fits into the provided buffer.
69652
69653 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69654
69655         * lib/diacrit.c, diacrit.h: Add GPL notice.
69656
69657         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
69658         notice.
69659         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
69660         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
69661         This avoids a potential constant-folding bug.
69662
69663 2004-10-05  Bruno Haible  <bruno@clisp.org>
69664
69665         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
69666         for the declaration of strsep.
69667
69668 2004-10-05  Bruno Haible  <bruno@clisp.org>
69669
69670         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
69671
69672 2004-10-04  Simon Josefsson  <jas@extundo.com>
69673
69674         * modules/memmem: New file.
69675         * tests/test-memmem.c: New file.
69676         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
69677
69678 2004-10-04  Simon Josefsson  <jas@extundo.com>
69679
69680         * m4/memmem.m4: New file.
69681
69682 2004-10-04  Simon Josefsson  <jas@extundo.com>
69683
69684         * lib/memmem.h: New file.
69685         * lib/memmem.c: New file, taken from glibc.
69686
69687 2004-10-04  Simon Josefsson  <jas@extundo.com>
69688
69689         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
69690         '#ifdef USE_UNLOCKED_IO'.
69691
69692 2004-10-04  Simon Josefsson  <jas@extundo.com>
69693
69694         * config/srclist.txt: Add memmem from glibc.
69695
69696 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69697
69698         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
69699
69700         * modules/argmatch, modules/argp, modules/closeout, modules/error,
69701         modules/exclude, modules/getdate, modules/getline,
69702         modules/getndelim2, modules/getpass, modules/getpass-gnu,
69703         modules/getusershell, modules/linebuffer, modules/md5,
69704         modules/mountlist, modules/posixtm, modules/readtokens,
69705         modules/readutmp, modules/regex, modules/sha1,
69706         modules/version-etc, modules/yesno:
69707         Remove dependency on unlocked-io.
69708
69709 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69710
69711         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
69712
69713         * m4/unlocked-io.m4: Add copyright notice.
69714         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
69715
69716 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69717
69718         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
69719         * lib/xmalloc.c (xmemdup): Likewise.
69720         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
69721         XFREE): Remove these long-obsolescent macros.
69722         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
69723         * lib/xstrdup.c: Remove.
69724
69725         * lib/regex.c (re_comp): Cast gettext return value to char *,
69726         Problem reported by Martin Neitzel via Mark D. Baushke.
69727
69728 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69729
69730         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
69731         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
69732         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
69733         regex.c, sha1.c, version-etc.c, yesno.c:
69734         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
69735         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
69736         the includer's responsibility.
69737
69738         Sync from coreutils.
69739
69740         * lib/modechange.c (mode_compile): Don't decrement a pointer that
69741         points to the start of a string, as the C Standard says the
69742         resulting behavior is undefined.
69743
69744         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
69745         simple -> simple_backups, numbered_existing ->
69746         numbered_existing_backups, numbered -> numbered_backups
69747         to avoid shadowing problems.  All uses changed.
69748         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
69749         * lib/backupfile.c (check_extension, numbered_backup):
69750         Rename locals to avoid shadowing 'basename'.
69751         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
69752         once.
69753
69754         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
69755         * lib/.cvsignore: Add getopt.h.
69756
69757 2004-10-04  Bruno Haible  <bruno@clisp.org>
69758
69759         * modules/README: New file.
69760         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
69761         not a module.
69762
69763 2004-10-02  Jim Meyering  <jim@meyering.net>
69764
69765         * lib/dirfd.h, getpagesize.h: Add copyright notice.
69766
69767 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69768
69769         * modules/strsep: New file.
69770
69771 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69772
69773         * m4/strsep.m4: New file.
69774
69775 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69776
69777         * lib/strsep.h: New file.
69778         * lib/strsep.c: New file.
69779
69780 2004-10-01  Simon Josefsson  <jas@extundo.com>
69781
69782         * lib/snprintf.c (snprintf): Handle size==0.
69783
69784 2004-10-01  Simon Josefsson  <jas@extundo.com>
69785             Bruno Haible  <bruno@clisp.org>
69786
69787         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
69788         (snprintf): Declare 'args'.
69789
69790 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
69791
69792         * lib/snprintf.c: Remove comments as to why each header is needed.
69793
69794 2004-10-01  Bruno Haible  <bruno@clisp.org>
69795
69796         * MODULES.html.sh: Add strsep.
69797
69798 2004-09-30  Simon Josefsson  <jas@extundo.com>
69799
69800         * modules/snprintf: New file.
69801
69802 2004-09-30  Simon Josefsson  <jas@extundo.com>
69803
69804         * m4/snprintf.m4: New file.
69805
69806 2004-09-30  Simon Josefsson  <jas@extundo.com>
69807
69808         * lib/snprintf.h, lib/snprintf.c: New files.
69809
69810 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69811
69812         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
69813         (hol_entry_help): Never translate an empty string.
69814         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
69815         * lib/argp.h (OPTION_NO_TRANS): New option.
69816
69817 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69818
69819         * modules/argp (Maintainer): Replace Simon Josefsson
69820         by Sergey Poznyakoff.
69821
69822 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69823
69824         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
69825         changes merged back into glibc.
69826
69827 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69828
69829         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
69830
69831 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69832
69833         * lib/xvasprintf.c: Include xalloc.h.
69834         (xvasprintf): Use xalloc_die, not xmalloc_die.
69835
69836 2004-09-29  Bruno Haible  <bruno@clisp.org>
69837
69838         * modules/alloca-opt: New file, derived from modules/alloca.
69839         * modules/allocsa: Depend on alloca-opt instead of alloca.
69840         * modules/setenv: Likewise.
69841         * modules/vasnprintf: Likewise.
69842         * MODULES.html.sh: Add alloca-opt.
69843
69844 2004-09-28  Simon Josefsson  <jas@extundo.com>
69845
69846         * gnulib-tool: New parameter --lgpl, to asseert that modules are
69847         LGPL, and to replace license template from GPL to LGPL.
69848
69849 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69850
69851         * modules/dummy: Change license to LGPL.
69852
69853 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69854
69855         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
69856
69857 2004-09-24  Simon Josefsson  <jas@extundo.com>
69858
69859         * modules/minmax (License): Change from GPL to LGPL.
69860
69861 2004-09-23  Simon Josefsson  <jas@extundo.com>
69862
69863         * gnulib-tool (--import): Typo.
69864
69865 2004-09-23  Simon Josefsson  <jas@extundo.com>
69866
69867         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
69868
69869 2004-09-22  Bruno Haible  <bruno@clisp.org>
69870
69871         * modules/*: Add 'License' field.
69872         * gnulib-tool: Accept --extract-license option.
69873         (func_get_license): New function.
69874
69875 2004-09-21  Bruno Haible  <bruno@clisp.org>
69876
69877         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
69878         Reported by Simon Josefsson.
69879
69880 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69881
69882         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
69883         gl_AC_TYPE_LONG_LONG.
69884
69885 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69886
69887         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
69888
69889 2004-09-18  Simon Josefsson  <jas@extundo.com>
69890         and  Paul Eggert  <eggert@cs.ucla.edu>
69891
69892         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
69893         calls with autoreconf.  Define GL_LIB.
69894
69895 2004-09-14  Karl Berry  <karl@gnu.org>
69896
69897         * config/srclist.txt: unsync setenv.c, sigh.
69898
69899 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69900
69901         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
69902         Problem reported by Bruno Haible in:
69903         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
69904
69905 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69906
69907         * config/srclist.txt: Comment out argp-pvh.c.
69908
69909 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
69910
69911         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
69912         in case some system header has #define'd it.  Problem reported by
69913         Soeren D. Schulze in
69914         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
69915
69916 2004-09-09  Karl Berry  <karl@gnu.org>
69917
69918         * regex.[ch]: delete from the root.  These were supposed to be
69919                 synced with emacs cvs, but this has not happened for about
69920                 a year, and anyway nothing else uses emacs regex.[ch].
69921                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
69922                 lib/regex[.ch] is untouched.
69923
69924 2004-09-09  Bruno Haible  <bruno@clisp.org>
69925
69926         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
69927
69928 2004-09-09  Bruno Haible  <bruno@clisp.org>
69929
69930         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
69931         modifications.
69932         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
69933
69934 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69935
69936         * modules/xvasprintf: New file.
69937         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
69938
69939 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69940
69941         * lib/xvasprintf.h: New file.
69942         * lib/xvasprintf.c: New file.
69943         * lib/xasprintf.c: New file.
69944
69945 2004-09-08  Bruno Haible  <bruno@clisp.org>
69946
69947         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
69948
69949 2004-09-08  Bruno Haible  <bruno@clisp.org>
69950
69951         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
69952         length is > INT_MAX.
69953         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
69954         more.
69955
69956 2004-09-08  Bruno Haible  <bruno@clisp.org>
69957
69958         * lib/stdint_.h: New file, taken from GNU clisp.
69959
69960 2004-09-08  Bruno Haible  <bruno@clisp.org>
69961             Oskar Liljeblad  <oskar@osk.mine.nu>
69962
69963         * modules/stdint: New file.
69964         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
69965
69966 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69967
69968         Import from coreutils.
69969         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
69970         strings on unbounded length.  alloca's performance benefits aren't
69971         that important here.
69972         (V_STRDUP): Remove.
69973         (parse_with_separator): New function, with most of the internals
69974         of the old parse_user_spec.  Allow user to omit both user and group,
69975         for compatibility with FreeBSD.
69976         Clone only the user name, not the entire spec.
69977         Do not set *uid, *gid unless entirely successful.
69978         Avoid memory leak in some failing cases.
69979         Fix regression for USER.GROUP reported by Dmitry V. Levin in
69980         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
69981         (parse_user_spec): Rewrite to use parse_with_separator.
69982
69983 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69984
69985         * modules/userspec: Don't depend on alloca.
69986
69987 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69988
69989         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
69990
69991 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69992
69993         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
69994         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
69995         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
69996
69997 2004-08-16  Simon Josefsson  <jas@extundo.com>
69998
69999         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
70000         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
70001         Add --dry-run for --import.
70002         Let user provided command line parameters override configure.ac
70003         settings.
70004
70005 2004-08-12  Simon Josefsson  <jas@extundo.com>
70006
70007         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
70008         as discussed with Paul Eggert in threads rooted at
70009         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
70010         and
70011         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
70012         Before, the test was empty, and relied on ELIDE_CODE in source
70013         code.)
70014         (gl_PREREQ_GETOPT): New macro.
70015         (gl_GETOPT): Use them.
70016
70017 2004-08-12  Simon Josefsson  <jas@extundo.com>
70018
70019         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
70020         * lib/getopt_.h: Renamed from getopt.h.
70021
70022 2004-08-12  Simon Josefsson  <jas@extundo.com>
70023
70024         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
70025         Change default library name from libfoo to libgnu.
70026         Now, if you have a configure.ac that says:
70027                 gl_SOURCE_BASE(gl)
70028                 gl_M4_BASE(gl/m4)
70029                 gl_MODULES(error getopt etcetera)
70030                 gl_INIT
70031         you can import all you need by running:
70032                 ../gnulib/gnulib-tool --import
70033
70034         * modules/getopt (Files): Rename getopt.h to getopt_.h.
70035         (Makefile.am): Rewrite, use logic from argz.
70036         (Include): Use <getopt.h> instead of "getopt.h".
70037
70038 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70039
70040         * modules/argp (Files): Add m4/unlocked-io.m4.
70041         (Depends-on): Add extensions.
70042
70043 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70044
70045         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
70046         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
70047         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
70048         Check for program_invocation_name, program_invocation_short_name,
70049         flockfile, funlockfile, features.h, _getopt_long_only_r.
70050
70051 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70052
70053         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
70054         its complicated substitute.
70055         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
70056         and program_invocation_name.
70057         (__argp_basename) [!_LIBC]: Remove; the only use was
70058         replaced by its body.
70059         (__argp_short_program_name): Change condition from
70060         !defined __argp_short_program_name to
70061         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
70062         to match argp-namefrob.h.
70063         (__argp_failure): Don't assume strerror_r returns char *.
70064         * lib/argp-parse.c (N_): Define unconditionally.
70065         (argp_default_options): Fill out initializers with 0 to avoid
70066         gcc warnings.
70067
70068 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70069
70070         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
70071         getopt1.c.
70072
70073 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70074
70075         Merge from coreutils.
70076
70077         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
70078
70079         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
70080         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
70081
70082 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70083
70084         Merge from coreutils.
70085
70086         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
70087         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
70088         for Reliant Unix 5.43.
70089
70090         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
70091         (union fooround): Use uintmax_t, not long int.
70092         The rest is a merge from libc:
70093         [defined _LIBC]: Include <shlib-compat.h>.
70094         (_obstack) [defined _LIBC]: Remove after 2.3.4.
70095
70096         * lib/settime.c (settime): Recode to avoid warning with
70097         Sun Forte C 6U2.
70098
70099         * lib/strverscmp.c: Convert to UTF-8.
70100
70101 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70102
70103         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70104         m4/uintmax_t.m4.
70105
70106 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70107
70108         * modules/xalloc-die: New file.
70109         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
70110
70111         * modules/md5 (Files): Add m4/uint32_t.m4.
70112         * modules/sha1: Renamed from modules/sha.
70113         (Files):
70114         Rename lib/sha.h to lib/sha1.h.
70115         Rename lib/sha.c to lib/sha1.c.
70116         Rename m4/sha.m4 to m4/sha1.m4.
70117         (lib_SOURCES): Likewise.
70118         (configure.ac): Rename gl_SHA to gl_SHA1.
70119         (Include): sha.h -> sha1.h.
70120
70121 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70122
70123         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
70124         * m4/sha1.m4: Renamed from sha.m4.
70125         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
70126
70127 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70128
70129         * lib/obstack.h (obstack_empty_p):
70130         Don't assume that chunk->contents is suitably aligned.
70131         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
70132         Likewise. Problem reported by Benno in
70133         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
70134
70135         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
70136         readable.  This could be improved further but it'd take some work.
70137
70138 2004-08-08  Simon Josefsson  <jas@extundo.com>
70139
70140         * modules/xgethostname (Depends-on): Remove exit and error (not
70141         used).
70142
70143         * modules/getpass-gnu: Add getpass.h.
70144         (Depends-on): Add stdbool.
70145         * modules/getpass: Add getpass.h.
70146
70147 2004-08-08  Simon Josefsson  <jas@extundo.com>
70148
70149         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
70150         Check getpass declaration.
70151
70152 2004-08-08  Simon Josefsson  <jas@extundo.com>
70153
70154         * lib/xgethostname.c: Don't include error.h (not used).
70155
70156         * lib/getpass.h: Add.
70157         * lib/getpass.c: Include getpass.h first.
70158
70159 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
70160
70161         * lib/xalloc-die.c: New file.
70162         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
70163         All uses removed.
70164         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
70165         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
70166         xalloc-die.c.
70167         (_, N_, xalloc_die): Move to xalloc-die.c.
70168         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
70169         so that we needn't mess with xalloc_msg_memory_exhausted.
70170
70171         * lib/sha1.h: Renamed from sha.h.
70172         (SHA1_H): Renamed from _SHA_H.
70173         (sha1_ctx): Renamed from sha_ctx.
70174         (sha1_init_ctx): Renamed from sha_init_ctx.
70175         (sha1_process_block): Renamed from sha_process_block.
70176         (sha1_process_bytes): Renamed from sha_process_bytes.
70177         (sha1_finish_ctx): Renamed from sha_finish_ctx.
70178         (sha1_read_ctx): Renamed from sha_read_ctx.
70179         (sha1_stream): Renamed from sha_stream.
70180         (sha1_buffer): Renamed from sha_buffer.
70181         * lib/sha1.c: Likewise; renamed from sha.c.
70182         Do not include <sys/types.h>.
70183         Include <stddef.h> rather than <stdlib.h>.
70184
70185 2004-08-08  Bruno Haible  <bruno@clisp.org>
70186
70187         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
70188         FILESYSTEM_PREFIX_LEN.
70189         * lib/progreloc.c: Likewise.
70190         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
70191
70192 2004-08-06  Simon Josefsson  <jas@extundo.com>
70193
70194         * modules/progname (Depends-on): Don't depend on stdbool.
70195
70196 2004-08-06  Simon Josefsson  <jas@extundo.com>
70197
70198         * modules/getsubopt: New file.
70199         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70200         getsubopt.
70201
70202 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70203
70204         More merge from coreutils.
70205
70206         * m4/utimens.m4, m4/utimecmp.m4: New files.
70207         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
70208         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
70209         prereq.m4, sha.m4: Import changes from coreutils.
70210
70211 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70212
70213         More merge from coreutils.
70214         * modules/raise, modules/readtokens0, modules/utimens:
70215         * modules/utimecmp, module/xnanosleep: New files.
70216         * modules/strftime: Add lib/strftime.h.
70217         Change include from <time.h> to "strftime.h".
70218         * modules/yesno: Add lib/yesno.h.
70219         * modules/backupfile: Remove lib/addext.c.
70220         * modules/euidaccess: Add stat-macros.h.
70221         * modules/canonicalize, modules/euidaccess,
70222         modules/filemode, modules/lchown, modules/makepath,
70223         modules/rmdir, modules/stat: Likewise.
70224
70225 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70226
70227         Merge from tar.
70228         * lib/argp-help.c (make_hol, hol_append): Don't assume that
70229         SIZE_MAX is a valid preprocessor constant.
70230         (__argp_basename): Change from "#ifndef _LIBC"
70231         to "#ifndef __argp_short_program_name", so that
70232         we don't compile these functions for tar.
70233
70234         More merges from coreutils.
70235         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
70236         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
70237         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
70238         * lib/addext.c: Remove; no longer needed.
70239         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
70240         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
70241         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
70242         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
70243         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
70244         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
70245         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
70246         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
70247         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
70248         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70249         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
70250         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
70251         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
70252         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
70253         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
70254         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
70255         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
70256         Import changes from coreutils.
70257
70258 2004-08-05  Simon Josefsson  <jas@extundo.com>
70259
70260         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
70261
70262 2004-08-05  Simon Josefsson  <jas@extundo.com>
70263
70264         * m4/getsubopt.m4: New file.
70265
70266 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70267
70268         Merge from coreutils.
70269
70270         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
70271         * m4/getcwd-path-max.m4: New files.
70272
70273         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
70274         FILESYSTEM_PREFIX_LEN ->
70275         FILE_SYSTEM_PREFIX_LEN.
70276         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
70277         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
70278         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
70279         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
70280
70281         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
70282         prerequisite modules now handle the DOS stuff.
70283         Don't check for unistd.h.
70284
70285 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70286
70287         Merge from coreutils.
70288
70289         * lib/.gdb-history: Remove; this doesn't belong here.
70290
70291         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
70292         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
70293         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
70294         * lib/getcwd.c: New files.
70295
70296         * lib/dirname.h: Include <stdbool.h>.
70297         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
70298         for consistency with POSIX terminology.  All uses changed.
70299         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
70300         (strip_trailing_slashes): Use bool for booleans.
70301         * lib/stripslash.c (strip_trailing_slashes): Likewise.
70302
70303         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
70304         sometimes returns a positive errno value even when it succeeds.
70305         (print_errno_message) [!LIBC]: Fall back on strerror if
70306         __strerror_r fails.
70307
70308         * lib/path-concat.c (mempcpy): Don't define if a system header defines
70309         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
70310         (longest_relative_suffix): New function.
70311         (path_concat): Use it.  Assume first argument is not NULL.
70312         Port to DOS.  Omit redundant separators.
70313         Report an error instead of returning NULL.
70314         Use mempcpy instead of memcpy.
70315         (xpath_concat): Remove: not declared or used.
70316
70317         * lib/same.h: Include <stdbool.h>
70318         (same_name): Return bool, not int.
70319         * lib/same.c (same_name): Likewise.
70320         (errno): Don't declare; we assume C89 or better now.
70321
70322         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
70323         if not already defined.
70324
70325         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
70326         * lib/dup-safer.c (errno): Likewise.
70327
70328 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70329
70330         Merge from coreutils.
70331         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
70332         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
70333         * modules/path-concat: Don't depend on strdup.
70334
70335 2004-08-03  Simon Josefsson  <jas@extundo.com>
70336
70337         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
70338         * lib/progname.h: Don't include stdbool.h.
70339
70340 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70341
70342         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
70343         * MODULES.html.sh (func_all_modules): Remove fatal.
70344
70345 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70346
70347         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
70348
70349 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70350
70351         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
70352         working.
70353
70354 2004-08-02  Simon Josefsson  <jas@extundo.com>
70355
70356         * lib/getsubopt.h: New file, with comments from Bruno Haible.
70357         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
70358         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
70359
70360 2004-08-01  Simon Josefsson  <jas@extundo.com>
70361
70362         * lib/xgetdomainname.c: Include stdlib.h, for free().
70363
70364 2004-07-19  Bruno Haible  <bruno@clisp.org>
70365
70366         * MODULES.html.sh (func_all_modules): Add dummy.
70367
70368 2004-07-16  Simon Josefsson  <jas@extundo.com>
70369
70370         * modules/dummy: New file.
70371
70372 2004-07-16  Simon Josefsson  <jas@extundo.com>
70373
70374         * lib/dummy.c: New file.
70375
70376 2004-07-16  Bruno Haible  <bruno@clisp.org>
70377
70378         * lib/backupfile.h: Add extern "C" for C++.
70379         * lib/closeout.h: Likewise.
70380         * lib/copy-file.h: Likewise.
70381         * lib/findprog.h: Likewise.
70382         * lib/full-write.h: Likewise.
70383         * lib/pathname.h: Likewise.
70384         * lib/progname.h: Likewise.
70385         * lib/stpcpy.h: Likewise.
70386         * lib/stpncpy.h: Likewise.
70387         * lib/strcase.h: Likewise.
70388         * lib/strstr.h: Likewise.
70389         * lib/xalloc.h: Likewise.
70390
70391         * lib/mbswidth.h: Add extern "C" for C++.
70392         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
70393
70394 2004-07-13  Robert Millan  <robertmh@gnu.org>
70395
70396         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
70397
70398 2004-07-09  Simon Josefsson  <jas@extundo.com>
70399
70400         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
70401         failed without this.)
70402
70403 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70404
70405         * modules/chown (Files): Add lib/fchown-stub.c, since
70406         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
70407
70408 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70409
70410         * lib/fchown-stub.c: New file.
70411
70412 2004-06-24  Jim Meyering  <jim@meyering.net>
70413
70414         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
70415
70416 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70417
70418         * modules/argz: Omit "#include".
70419
70420         * MODULES.html.sh (func_all_modules): Add calloc, to match
70421         2004-06-01 addition of calloc module.
70422
70423 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70424
70425         * m4/argz.m4: New file, which is autoupdated from libtool.
70426
70427 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70428
70429         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
70430         libtool.
70431
70432 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70433
70434         * config/srclist-update: Don't insist on "USA." before the
70435         close-comment, as libtool omits the period and puts the */ on a
70436         separate line.
70437         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
70438         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
70439
70440 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
70441
70442         * modules/argz: New file.
70443         * MODULES.html.sh (func_all_modules): Add argz.
70444
70445 2004-06-12  Jim Meyering  <jim@meyering.net>
70446         and  Paul Eggert  <eggert@cs.ucla.edu>
70447
70448         * modules/hash (Files): Add lib/xalloc.h.
70449         * modules/pipe (Depends-on): Add wait-process.
70450         * modules/stat (Depends-on): Add xalloc.
70451         * modules/userspec (Files): Add lib/userspec.h.
70452         * modules/xstrto
70453
70454         Upgrade from gettext-0.13.
70455         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
70456         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
70457         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
70458
70459 2004-06-10  Jim Meyering  <jim@meyering.net>
70460
70461         * lib/calloc.c: New file.
70462
70463 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
70464
70465         * lib/getdate.y (yylex): Allow space between sign and number.
70466         Problem reported by Dan Jacobson.
70467
70468 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70469
70470         Merge from coreutils CVS.
70471
70472         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
70473         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
70474         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
70475         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
70476         xstrtol.m4: Fix copyright date and/or serial number.
70477
70478         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
70479         See if we need an fchown replacement.
70480         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
70481         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
70482         and use the replacement function if we detect either defect.
70483
70484         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
70485         gl_UTIMECMP.
70486
70487 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70488         and  Jim Meyering  <jim@meyering.net>
70489
70490         Merge from coreutils CVS.
70491
70492         * lib/stat-macros.h: New file, with contents from file-type.h
70493         and coreutils' system.h.
70494         * lib/file-type.c: Include "stat-macros.h".
70495         * lib/file-type.h (file_type): Move all macro definitions to new file,
70496         stat-macros.h.
70497
70498         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
70499         Wrap old code with this conditional.
70500         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
70501         function that does not dereference symlinks.
70502         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
70503
70504         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
70505         dependency problems.
70506         (xreadlink): Accept new arg SIZE, for efficiency.
70507         All decls and uses changed.
70508         * lib/xreadlink.h: Include <stddef.h>, for size_t.
70509
70510         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
70511         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
70512
70513         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
70514         sysexits.h.
70515
70516 2004-06-01  Jim Meyering  <jim@meyering.net>
70517
70518         * m4/calloc.m4: New file.
70519
70520 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
70521
70522         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
70523         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
70524         Also, fix a typo in a diagnostic.
70525
70526 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70527
70528         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
70529         or AC_FUNC_REALLOC.
70530
70531 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70532
70533         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
70534         macros to be defined.
70535         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
70536         the allocator returns NULL because the requested size is zero.
70537
70538 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70539
70540         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
70541         var.  Add comment explaining why libc still defines it.  This
70542         merges the following patch from glibc:
70543         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
70544
70545 2004-05-20  Andreas Schwab  <schwab@suse.de>
70546
70547         * m4/free.m4: Replace free if it not known to work, not the other
70548         way round.
70549
70550 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70551
70552         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
70553         present in glibc since revision 1.1 of this file.
70554         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
70555         obstack_alignment_mask, obstack_alloc, obstack_base,
70556         obstack_blank, obstack_blank_fast, obstack_chunk_size,
70557         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
70558         obstack_grow0, obstack_init, obstack_int_grow,
70559         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
70560         obstack_next_free, obstack_object_size, obstack_ptr_grow,
70561         obstack_ptr_grow_fast, obstack_room): Remove declarations of
70562         nonexistent functions.
70563
70564 2004-05-18  Karl Berry  <karl@gnu.org>
70565
70566         * config/srclist.txt: break link for vasnprintf.c.
70567
70568 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70569
70570         Port obstack to the AS/400, where pointers are 16 bytes wide and
70571         you cannot cast an integer to a valid pointer.  This patch is
70572         currently waiting to be integrated into glibc; see
70573         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
70574
70575         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
70576         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
70577         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
70578         (struct obstack): temp member is now a union of a pointer and
70579         an integer, instead of an integer.  All integer uses changed.
70580         This does not affect the physical layout of struct obstack,
70581         except on hosts (like the AS/400) where the size or alignment of
70582         void * is greater than that of ptrdiff_t.
70583         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
70584         __STDC__)]: Store temporary in pointer member of union, not
70585         integer member.
70586         * lib/obstack.c: Include <stddef.h>, for offsetof.
70587         (struct fooalign): Remove; it doesn't need a name.
70588         (union fooround): Change double to long double, and add void *.
70589         (DEFAULT_ALIGNMENT): Use offsetof to compute.
70590         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
70591         not a macro.  Hence the values are always int; so remove all
70592         casts-to-int in uses.
70593
70594 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70595
70596         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
70597         we can get this patch merged into glibc.
70598
70599 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70600             Paul Eggert  <eggert@cs.ucla.edu>
70601
70602         * m4/argp: Depend on alloca.
70603
70604 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70605             Paul Eggert  <eggert@cs.ucla.edu>
70606
70607         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
70608         freecoding.
70609
70610 2004-05-17  Bruno Haible  <bruno@clisp.org>
70611
70612         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
70613         precision that consists of a '.' followed by an empty digit string.
70614         Patch by Tor Lillqvist <tml@iki.fi>.
70615
70616 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70617
70618         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
70619         for backward compatibility with older code.  We need our own
70620         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
70621         it under some other name, and our alloca.h will define it.
70622
70623 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70624             Derek Price  <derek@ximbiot.com>
70625
70626         * lib/alloca.c: Include <alloca.h>, to get our interface.
70627         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
70628         include <alloca.h> first.  Use C89 prototype for alloca; this
70629         requires including <stddef.h> for size_t.  Use extern "C" if C++.
70630         Use #elif for simplicity, since we can assume C89 now.
70631         Don't try to source the system alloca.h since it will not be found
70632         and to prevent recursively including its replacement.
70633         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
70634         * lib/regex.c: Likewise.
70635
70636 2004-05-16  Derek Price  <derek@ximbiot.com>
70637             Paul Eggert  <eggert@cs.ucla.edu>
70638
70639         getline cleanup.  This changes the getndelim2 API: both order of
70640         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
70641         no delimiter).
70642
70643         * lib/getline.c: Don't include stddef.h or stdio.h, since our
70644         interface does that.
70645         (getline): Always use getdelim, so that we don't have two
70646         copies of this code.
70647         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
70648         if available.
70649         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
70650         (GETNDELIM2_MAXIMUM): New macro.
70651         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
70652         instead of the old practice of delim2==0.  All callers changed.
70653         Return -1 on overflow, instead of returning junk.
70654         Do not set *linesize unless allocation succeeds.
70655         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
70656         that we include sys/types.h.
70657         * lib/getnline.h: Likewise.
70658         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
70659         (getndelim2): Reorder arguments.
70660         * lib/getnline.c (getnline, getndelim):
70661         Don't discard the NMAX argument.
70662         (getnline): Invoke getndelim, to avoid code duplication.
70663         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
70664         of (size_t) -1 by callers of the getnline family.
70665
70666 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70667
70668         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
70669         Check for gettimeofday.
70670         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
70671         Check for settimeofday, stime.
70672
70673 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70674
70675         * lib/nanosleep.c (suspended): Change its type from int to
70676         sig_atomic_t volatile.
70677         (first_call): Make it private to rpl_nanosleep, and have it
70678         be zero initially as that's a bit faster.
70679         (my_usleep): Round up fractional times instead of truncating them,
70680         as this is the usual meaning for 'sleep'.
70681
70682         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
70683         doesn't work.
70684         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
70685         (ENOSYS): Define if not defined.
70686         (settime): Fall back on stime if it exists and settimeofday fails.
70687         But don't bother with fallbacks if a method fails with errno == EPERM.
70688
70689 2004-05-11  Jim Meyering  <jim@meyering.net>
70690
70691         Prior to this change, the save_cwd caller required read access to the
70692         current directory on most systems (ones with the fchdir function).
70693
70694         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
70695         fails, try write-only, and finally, resort to using xgetcwd.
70696
70697 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70698
70699         * lib/obstack.c, obstack.h: Import changes from libc.
70700
70701 2004-04-28  Bruno Haible  <bruno@clisp.org>
70702
70703         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
70704         also implicitly appends .exe to executables.
70705         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
70706         accepts Windows pathnames.
70707         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70708         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70709         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70710         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70711         Reported by Derek Robert Price <derek@ximbiot.com>.
70712
70713 2004-04-21  Karl Berry  <karl@gnu.org>
70714
70715         * config/srclist.txt (localcharset.c): break sync.
70716
70717 2004-04-20  Paul Eggert  <eggert@twinsun.com>
70718
70719         * m4/host-os.m4: Add a copyright notice.
70720
70721 2004-04-20  Jim Meyering  <jim@meyering.net>
70722
70723         Change UTILS_ to gl_ in AC_DEFINE'd names.
70724         Change utils_- and jm_-prefixed variables, too.
70725         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
70726         UTILS_FUNC_MKDIR_TRAILING_SLASH.
70727         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
70728
70729         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
70730         Don't emit trailing blanks.
70731         Also rename jm_-prefixed variables to have gl_ prefix.
70732
70733         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
70734         Also rename jm_-prefixed variables to have gl_ prefix.
70735
70736         * m4/jm-macros.m4: Reflect the renamings.
70737         * m4/prereq.m4: Likewise.
70738
70739 2004-04-20  Jim Meyering  <jim@meyering.net>
70740
70741         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
70742         memory.
70743
70744 2004-04-20  Jim Meyering  <jim@meyering.net>
70745             Bruno Haible  <bruno@clisp.org>
70746
70747         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
70748         memory when realloc fails.
70749
70750 2004-04-19  Jim Meyering  <jim@meyering.net>
70751
70752         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
70753         now that readutmp.c may call `free (0)'.
70754
70755 2004-04-19  Bruno Haible  <bruno@clisp.org>
70756
70757         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
70758         * m4/inttypes_h.m4: Likewise.
70759         * m4/stdint_h.m4: Likewise.
70760         * m4/intmax_t.m4: Likewise.
70761         * m4/uintmax_t.m4: Likewise.
70762
70763 2004-04-18  Jim Meyering  <jim@meyering.net>
70764
70765         * m4/prereq.m4: Don't forbid jm_ prefix.
70766
70767         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
70768         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
70769         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
70770         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
70771         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
70772         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
70773         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
70774         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
70775         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
70776         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
70777         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
70778         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
70779         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
70780         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
70781         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
70782         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
70783         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
70784         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
70785         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
70786
70787 2004-04-18  Jim Meyering  <jim@meyering.net>
70788
70789         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
70790         failure, don't leak memory and do call END_UTMP_ENT.
70791
70792 2004-04-16  Jim Meyering  <jim@meyering.net>
70793
70794         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
70795         coreutils' stat program.
70796         (gl_PREREQ): Don't require jm_PREREQ_STAT.
70797
70798 2004-04-11  Paul Eggert  <eggert@twinsun.com>
70799
70800         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
70801         C89.
70802         (CHAR_BIT): Remove, since we assume C89.
70803         Include <stdint.h> if available, as per current Autoconf CVS advice.
70804
70805 2004-03-31  Jim Meyering  <jim@meyering.net>
70806
70807         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
70808         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
70809         * m4/xalloc.m4: Likewise.
70810
70811 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70812
70813         Merge from coreutils.
70814
70815         * m4/inttostr.m4: New file.
70816         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
70817         Require AM_STDBOOL_H and gl_TIMESPEC instead.
70818         Require gl_CLOCK_TIME.
70819         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
70820
70821 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70822
70823         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
70824         not bool, to be more consistent with Unix conventions.
70825         Suggested by Bruno Haible.
70826
70827         Merge from coreutils.
70828
70829         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
70830         * lib/umaxtostr.c: New files.
70831
70832         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
70833         the usual <time.h> dance.
70834         (get_date): Change signature to support fractional time stamps.
70835         All callers changed.
70836         * lib/getdate.y: Include "getdate.h" first, as we can now
70837         assume C89 and don't need to worry about 'const'.
70838         Similarly, include "unlocked-io.h" near start, not in middle.
70839         Include <limits.h>.
70840         (textint.value): Use long int rather than int.
70841         (textint.digits): Use size_t rather than int.
70842         (BILLION, LOG10_BILLION): New constants.
70843         (parser_control): New member rel_ns.  Members day_ordinal,
70844         time_zone, month, day, hour, minutes, rel_year, rel_month,
70845         rel_day, rel_hour, rel_minutes, rel_seconds
70846         are now long int, not int.  Member seconds is now struct timespec,
70847         not int.  New member timespec_seen.  Members dates_seen, days_seen,
70848         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
70849         not int.
70850         (%union.intval): Now long int, not int.
70851         New member timespec.
70852         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
70853         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
70854         (spec): Now is a timespec or an item list.
70855         (timespec, items): New nonterminals.
70856         (time, rel, relunit, number, get_date):
70857         Add support for fractional seconds.
70858         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
70859         (gmtime, localtime, mktime): Remove decls; not needed with C89.
70860         (to_hour): First arg is now long int, not int.
70861         (to_year): Returns long int, not int.
70862         Don't treat year -70 like 70.
70863         (tm_diff): Returns long int, not int.
70864         (lookup_word): Use bool instead of int when appropriate.
70865         (yylex): Use size_t for count, not int.
70866         Detect overflow when parsing large integer constants.
70867         Add support for fractions.
70868         (get_date): Make pointers 'const' if possible.
70869         Use more-portable code to detect integer overflow.
70870         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
70871         Don't use ctime; it's not reliable if the year has >4 digits.
70872
70873         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
70874         This is for compatibility with BSD.
70875
70876         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
70877         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
70878         From coreutils' system.h.
70879
70880         * lib/userspec.c: Don't include "posixver.h".
70881         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
70882         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
70883         compatible extension.  Simplify code by removing a boolean int
70884         that was always nonzero if a string was nonnull.
70885
70886 2004-03-30  Jim Meyering  <jim@meyering.net>
70887
70888         Merge from coreutils.
70889
70890         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
70891         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
70892         on some systems one must include <grp.h> before it.
70893         Reported by Christian Krackowizer.
70894
70895 2004-03-30  Jim Meyering  <jim@meyering.net>
70896
70897         Merge from coreutils.
70898
70899         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
70900
70901         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
70902         an empty input stream.
70903
70904         * lib/readtokens.c: Include <stdbool.h>.
70905         (readtoken): Use `size_t' rather than int/long.
70906         All callers adjusted.
70907         Use `bool' rather than `int' where appropriate.
70908         Use memset rather than an explicit loop.
70909         Use x2nrealloc rather than xrealloc.
70910         Allow the use of `\0' as a delimiter.
70911         (readtokens): Likewise.
70912         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
70913
70914 2004-03-30  Jim Meyering  <jim@meyering.net>
70915
70916         * m4/realloc.m4: Remove file, since now it does no more than
70917         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
70918         the `configure.ac' section of module/realloc.
70919         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
70920
70921 2004-03-30  Bruno Haible  <bruno@clisp.org>
70922
70923         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
70924         nonnull.
70925
70926 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70927
70928         Merge changes to getloadavg.c from coreutils and Emacs.
70929
70930         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
70931         Define to an expression, not to the empty string.
70932         Include cloexec.h and xalloc.h.
70933         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
70934         Use set_cloexec_flag rather than rolling our own.
70935         * lib/cloexec.c, lib/cloexec.h: New files.
70936
70937 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70938
70939         * m4/cloexec.m4: New file.
70940
70941 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70942
70943         * lib/getopt.h: Sync with libc CVS.
70944
70945 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70946             Bruno Haible  <bruno@clisp.org>
70947
70948         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
70949         mbswidth.
70950
70951 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70952             Bruno Haible  <bruno@clisp.org>
70953
70954         * lib/mbswidth.h: Include <wchar.h> only if
70955         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
70956         <wchar.h>.
70957         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
70958
70959 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70960
70961         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
70962         Sync with libc CVS.
70963         * lib/getopt_int.h: New file, also synced from libc.
70964
70965 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70966
70967         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
70968         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
70969         Bring back getopt.c, getopt.h, getopt1.c.
70970
70971 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70972
70973         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
70974         All uses changed.  Check for sa_sigaction member; this fixes
70975         a bug first reported by Jason Andrade in
70976         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70977
70978 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70979
70980         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
70981         '#if' expressions.  Unlike the code it replaces, it does not
70982         depend on (defined _SC_PAGESIZE).  However, it does depend on
70983         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
70984         first reported by Jason Andrade in
70985         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70986
70987 2004-02-25  Simon Josefsson  <jas@extundo.com>
70988
70989         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
70990
70991 2004-02-25  Simon Josefsson  <jas@extundo.com>
70992
70993         * lib/strdup.h: New file.
70994         * lib/strdup.c: Include it.
70995         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
70996         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
70997
70998 2004-02-23  Karl Berry  <karl@gnu.org>
70999
71000         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
71001         (from fencepost.gnu.org:/gd/gnuorg).
71002
71003 2004-02-23  Karl Berry  <karl@gnu.org>
71004
71005         * config/srclistvars.sh (GNUORG) [karl]: redefine.
71006         * config/srclist.txt: add maintain/standards documents.
71007
71008 2004-02-18  Bruno Haible  <bruno@clisp.org>
71009
71010         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
71011         Reported by Derek Robert Price <derek@ximbiot.com>.
71012
71013 2004-02-16  Karl Berry  <karl@gnu.org>
71014
71015         * config/mkinstalldirs, install-sh: update from automake.
71016
71017 2004-02-06  Karl Berry  <karl@gnu.org>
71018
71019         * m4/po.m4: update from gettext 0.14.1.
71020
71021 2004-02-06  Karl Berry  <karl@gnu.org>
71022
71023         * lib/config.charset: update from gettext 0.14.1.
71024
71025 2004-02-05  Paul Eggert  <eggert@twinsun.com>
71026
71027         Add comments and code, prompted by suggestions from Bruno Haible
71028         for sh-quote.
71029         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
71030         describing the enum quoting_style values.
71031         * lib/quotearg.c (quotearg_alloc): New function.
71032         (quotearg_buffer_restyled): Treat lone { and } as special.
71033         Treat = as special.  Work around bug with older shells
71034         that "see" a '\' that is really the 2nd byte of a multibyte char.
71035         Quote empty string with shell_quoting_style.
71036
71037 2004-02-03  Bruno Haible  <bruno@clisp.org>
71038
71039         * m4/pipe.m4: New file, from GNU gettext.
71040
71041 2004-02-03  Bruno Haible  <bruno@clisp.org>
71042
71043         * lib/pipe.h: New file, from GNU gettext.
71044         * lib/pipe.c: New file, from GNU gettext.
71045
71046 2004-01-27  Bruno Haible  <bruno@clisp.org>
71047
71048         * m4/execute.m4: New file, from GNU gettext.
71049
71050 2004-01-27  Bruno Haible  <bruno@clisp.org>
71051
71052         * lib/execute.h: New file, from GNU gettext.
71053         * lib/execute.c: New file, from GNU gettext.
71054         * lib/w32spawn.h: New file, from GNU gettext.
71055
71056 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71057
71058         Merge from diffutils.
71059
71060         * lib/file-type.c (file_type): Add typed memory objects.
71061         * lib/file-type.h (S_TYPEISTMO): New macro.
71062
71063         * lib/c-stack.h (c_stack_action): Remove argv argument.
71064         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
71065         (die): Don't calculate message unless segv_action returns.
71066         (get_stack_location, min_address_from_argv, max_address_from_argv,
71067         volatile stack_base, volatile_stack_size): Remove.
71068         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
71069         that every segmentation violation is a stack overflow.  (Ouch!)
71070         See Debian bug 136249 (still outstanding) for more info about why
71071         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
71072
71073 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71074
71075         Exit-status fix from coreutils.
71076
71077         Use exit_failure consistently in place of EXIT_FAILURE,
71078         so that program exit statuses are consistent on failure.
71079
71080         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
71081         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
71082         * lib/argmatch.h: Comment fix to match the above.
71083         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
71084         Now a macro referring to exit_failure, instead of a separate
71085         variable.  Include "exitfail.h" to get it.
71086         * lib/xstrtol.h: Include "exitfail.h".
71087         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
71088
71089         * lib/long-options.c (parse_long_options): Use prototype
71090         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
71091         for clarity.
71092
71093 2004-01-21  Jim Meyering  <jim@meyering.net>
71094
71095         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
71096         so as not to conflict with a different-sized __mktime_internal
71097         function in GNU libc.
71098         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
71099         Problem building statically-linked `ls' reported by Michael Brunnbauer.
71100
71101 2004-01-20  Karl Berry  <karl@gnu.org>
71102
71103         * config/config.guess: update from config.
71104
71105         * config/srclistvars.sh: GNUWWWLICENSES for karl.
71106
71107 2004-01-20  Bruno Haible  <bruno@clisp.org>
71108
71109         Safer stack allocation.
71110         * lib/setenv.c: Include allocsa.h.
71111         (alloca): Remove fallback definition.
71112         (freea): Remove macro.
71113         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
71114         instead of freea.
71115
71116 2004-01-20  Bruno Haible  <bruno@clisp.org>
71117
71118         * m4/eealloc.m4: New file, from GNU gettext.
71119
71120 2004-01-20  Bruno Haible  <bruno@clisp.org>
71121
71122         * m4/allocsa.m4: New file, from GNU gettext.
71123
71124 2004-01-20  Bruno Haible  <bruno@clisp.org>
71125
71126         * lib/xallocsa.h: New file, from GNU gettext.
71127         * lib/xallocsa.c: New file, from GNU gettext.
71128
71129 2004-01-20  Bruno Haible  <bruno@clisp.org>
71130
71131         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
71132
71133 2004-01-20  Bruno Haible  <bruno@clisp.org>
71134
71135         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
71136         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
71137         specially.
71138
71139 2004-01-20  Bruno Haible  <bruno@clisp.org>
71140
71141         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
71142         patch.
71143
71144 2004-01-20  Bruno Haible  <bruno@clisp.org>
71145
71146         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
71147
71148 2004-01-20  Bruno Haible  <bruno@clisp.org>
71149
71150         * lib/eealloc.h: New file.
71151
71152 2004-01-20  Bruno Haible  <bruno@clisp.org>
71153
71154         * lib/binary-io.h: Avoid warnings on Cygwin.
71155
71156 2004-01-20  Bruno Haible  <bruno@clisp.org>
71157
71158         * lib/allocsa.h: New file, from GNU gettext.
71159         * lib/allocsa.c: New file, from GNU gettext.
71160
71161 2004-01-18  Karl Berry  <karl@gnu.org>
71162
71163         * doc/gpl.texi, doc/lgpl.texi: new files.
71164
71165 2004-01-18  Karl Berry  <karl@gnu.org>
71166
71167         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
71168         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
71169
71170 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71171
71172         Merge from coreutils.
71173
71174         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
71175         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
71176         (gl_DEFAULT_POSIX2_VERSION): Move
71177         the documentation from 'configure' into 'config.hin',
71178         so that 'configure --help' isn't burdened by it and
71179         we don't have to worry about its formatting there.
71180         Reword the documentation so that it's more succinct
71181         and can be run together into a single paragraph.
71182         * m4/same.m4 (gl_SAME): Check for pathconf.
71183
71184 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71185
71186         Merge from coreutils.
71187
71188         * lib/posixver.c: Include posixver.h.
71189
71190         * lib/same.c: Include <stdbool.h>, <limits.h>.
71191         (_POSIX_NAME_MAX): Define if not defined.
71192         (MIN): New macro.
71193         (same_name): If file names are silently truncated, report
71194         that the file names are the same if they are the same after
71195         the silent truncation.
71196
71197         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
71198         conversion function.
71199         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
71200         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
71201         longer needed.
71202
71203 2004-01-15  Jim Meyering  <jim@meyering.net>
71204
71205         Merge from coreutils.
71206
71207         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
71208         if no library is required.
71209         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
71210         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
71211         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
71212         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
71213         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
71214         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
71215         value, $ac_cv_search_crypt, if it's "none required".
71216         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
71217         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
71218         not gl_FUNC_GETLOADAVG.
71219         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
71220         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
71221
71222 2004-01-15  Jim Meyering  <jim@meyering.net>
71223
71224         Merge from coreutils.
71225
71226         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
71227         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
71228         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
71229
71230         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
71231         optional configure-time default.
71232
71233         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71234
71235         * lib/xreadlink.c (xreadlink): Correct outdated comment.
71236
71237 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
71238
71239         Merge from coreutils.
71240
71241         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
71242         value, $ac_cv_search_nanosleep, if it's "none required".
71243
71244 2004-01-14  Paul Eggert  <eggert@twinsun.com>
71245
71246         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
71247         with like-named macro in fnmatch.c.
71248         (EXT): Use an internal constant instead.
71249
71250         Merge fnmatch patches from glibc.
71251         * lib/fnmatch.c (mbsinit): Remove define.
71252         Add libc_hidden_ver (__fnmatch, fnmatch).
71253         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
71254         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
71255
71256 2004-01-14  Karl Berry  <karl@gnu.org>
71257
71258         * config/install-sh: update from automake.
71259
71260 2004-01-13  Karl Berry  <karl@gnu.org>
71261
71262         * config/install-sh: update from automake.
71263
71264 2004-01-09  Karl Berry  <karl@gnu.org>
71265
71266         * config/install-sh: update from automake.
71267
71268 2004-01-05  Karl Berry  <karl@gnu.org>
71269
71270         * config/config.{sub,guess}: update from config.
71271
71272 2003-12-31  Karl Berry  <karl@gnu.org>
71273
71274         * config/depcomp: update from automake.
71275
71276 2003-12-14  Karl Berry  <karl@gnu.org>
71277
71278         * lib/config.charset: update from gettext-runtime.
71279
71280 2003-12-03  Paul Eggert  <eggert@twinsun.com>
71281
71282         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
71283         Bug reported by Alfred M. Szmidt.
71284
71285 2003-12-03  Bruno Haible  <bruno@clisp.org>
71286
71287         * m4/gettext.m4: Upgrade from gettext-0.13.
71288         * m4/po.m4: Upgrade from gettext-0.13.
71289         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
71290         * m4/intmax.m4: New file, from gettext-0.13.
71291         * m4/printf-posix.m4: New file, from gettext-0.13.
71292
71293 2003-11-29  Karl Berry  <karl@gnu.org>
71294
71295         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
71296
71297 2003-11-25  Paul Eggert  <eggert@twinsun.com>
71298             Bruno Haible  <bruno@clisp.org>
71299
71300         * lib/printf-parse.h: Don't include sys/types.h.
71301         (ARG_NONE): New macro.
71302         (char_directive): Change type of *arg_index fields to size_t.
71303         * lib/printf-parse.c: Don't include sys/types.h.
71304         (SSIZE_MAX): Remove macro.
71305         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
71306         Remove unnecessary overflow check.
71307         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
71308         fields.
71309
71310 2003-11-25  Bruno Haible  <bruno@clisp.org>
71311
71312         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
71313
71314 2003-11-25  Bruno Haible  <bruno@clisp.org>
71315
71316         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
71317         gt_TYPE_SSIZE_T.
71318
71319 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71320
71321         * modules/alloca: Remove dependency on xalloc.
71322
71323 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71324
71325         * lib/alloca.c: Remove dependency on xalloc module.
71326         (xalloc_die): Remove.
71327         (memory_full) [!defined emacs]: New macro.
71328         [!defined emacs]: Don't include xalloc.h.
71329         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
71330         address arithmetic overflows.  Change datatypes a bit to avoid
71331         unnecessary casts.
71332
71333 2003-11-22  Jim Meyering  <jim@meyering.net>
71334
71335         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
71336         s/size/size_t/.
71337
71338 2003-11-21  Karl Berry  <karl@gnu.org>
71339
71340         * config/config.{sub,guess}: update from config.
71341
71342 2003-11-18  Karl Berry  <karl@gnu.org>
71343
71344         * config/config.{sub,guess}: update from config.
71345
71346         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
71347
71348 2003-11-17  Paul Eggert  <eggert@twinsun.com>
71349
71350         * README: Mention that S+T cannot overflow if S is the size of
71351         an existing object and T is sufficiently small.
71352
71353 2003-11-17  Jim Meyering  <jim@meyering.net>
71354
71355         On systems without utime and without a utimes function capable of
71356         dealing with a NULL struct utimbuf* argument, this utime replacement
71357         could -- in unusual circumstances -- leak a file descriptor.
71358         * lib/utime.c: Include <unistd.h> and <errno.h>.
71359         (utime_null): Be sure to close `fd' and to preserve errno.
71360         Reported by Geoff Collyer via Arnold Robbins.
71361
71362 2003-11-17  Bruno Haible  <bruno@clisp.org>
71363
71364         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
71365         (Depends-on): Add xsize.
71366
71367 2003-11-17  Bruno Haible  <bruno@clisp.org>
71368
71369         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
71370
71371 2003-11-17  Bruno Haible  <bruno@clisp.org>
71372
71373         * lib/vasnprintf.c (alloca): Remove fallback definition.
71374         (freea): Remove definition.
71375         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
71376         Reported by Paul Eggert.
71377
71378 2003-11-16  Paul Eggert  <eggert@twinsun.com>
71379             Bruno Haible  <bruno@clisp.org>
71380
71381         Protect against address arithmetic overflow.
71382         * lib/printf-args.h: Include stddef.h.
71383         (arguments): Change type of field 'count' to size_t.
71384         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
71385         'unsigned int' where appropriate.
71386         * lib/printf-parse.h: Include sys/types.h.
71387         (char_directive): Change type of *arg_index fields to ssize_t.
71388         (char_directives): Change type of fields 'count', max_*_length to
71389         size_t.
71390         * lib/printf-parse.c: Include sys/types.h and xsize.h.
71391         (SSIZE_MAX): Define fallback value.
71392         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
71393         instead of 'int' where appropriate. Check a_allocated, d_allocated
71394         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
71395         * lib/vasnprintf.c: Include xsize.h.
71396         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
71397         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
71398         overflow. Avoid wraparound when converting a width or precision from
71399         decimal to binary.
71400
71401 2003-11-16  Bruno Haible  <bruno@clisp.org>
71402
71403         Update from GNU gettext.
71404         * lib/printf-parse.c: Generalize to it can be compiled for wide
71405         strings.
71406         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
71407         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
71408         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
71409         SNPRINTF): New macros.
71410         Don't include <alloca.h> if the file is used inside libintl.
71411         (local_wcslen): New function, for Solaris 2.5.1.
71412         (VASNPRINTF): Use it instead of wcslen.
71413
71414 2003-11-16  Bruno Haible  <bruno@clisp.org>
71415
71416         * lib/xsize.h (xmax): New function.
71417         (xsum, xsum3, xsum4): Declare as "pure" functions.
71418
71419 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71420
71421         * modules/xalloc (Files): Undo latest change, since xalloc.h
71422         no longer needs SIZE_MAX or PTRDIFF_MAX.
71423
71424 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71425
71426         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
71427         gl_PTRDIFF_MAX.
71428
71429 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71430
71431         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
71432         "return", to pacify some unknown compiler.  Problem reported
71433         by Joerg Schilling.
71434
71435 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71436
71437         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
71438         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
71439         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
71440         heuristic is just as accurate as far as we know, and it removes a
71441         dependency on size_max.m4 and ptrdiff_max.m4.
71442
71443 2003-11-11  Bruno Haible  <bruno@clisp.org>
71444
71445         * modules/xsize (Files): Add m4/size_max.m4.
71446         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
71447
71448 2003-11-11  Bruno Haible  <bruno@clisp.org>
71449
71450         * m4/size_max.m4: New file.
71451         * m4/ptrdiff_max.m4: New file.
71452         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
71453         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
71454         (gl_XALLOC): Invoke it.
71455
71456 2003-11-11  Bruno Haible  <bruno@clisp.org>
71457
71458         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
71459         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
71460         defined.
71461
71462 2003-11-10  Paul Eggert  <eggert@twinsun.com>
71463
71464         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
71465         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
71466         rejected some allocations of exactly SIZE_MAX - 2 bytes.
71467         From Bruno Haible.
71468         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
71469         not (size_t) -1, since it's defined here.
71470
71471 2003-11-09  Karl Berry  <karl@gnu.org>
71472
71473         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
71474
71475 2003-11-06  Paul Eggert  <eggert@twinsun.com>
71476
71477         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
71478         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
71479         Reject sizes of exactly SIZE_MAX bytes.
71480         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
71481         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
71482
71483 2003-11-05  Bruno Haible  <bruno@clisp.org>
71484
71485         * lib/xsize.h: Include limits.h, to avoid a possible collision with
71486         SIZE_MAX defined in <limits.h> on Solaris.
71487
71488 2003-11-04  Jim Meyering  <jim@meyering.net>
71489
71490         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
71491         variable names, rather than @VAR@.
71492         * modules/poll: Likewise.
71493
71494 2003-11-04  Bruno Haible  <bruno@clisp.org>
71495
71496         * modules/xsize: New file.
71497         * modules/linebreak: Depend on xsize.
71498         * MODULES.html.sh (func_all_modules): Add xsize.
71499
71500 2003-11-04  Bruno Haible  <bruno@clisp.org>
71501
71502         * m4/xsize.m4: New file.
71503
71504 2003-11-04  Bruno Haible  <bruno@clisp.org>
71505
71506         * lib/xsize.h: New file.
71507         * lib/linebreak.c: Include xsize.h.
71508         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
71509         argument for overflow.
71510         Suggested by Paul Eggert.
71511
71512 2003-11-03  Karl Berry  <karl@gnu.org>
71513
71514         * config/config.{guess,sub}: update from config.
71515
71516 2003-11-03  Jim Meyering  <jim@meyering.net>
71517
71518         * modules/userspec (lib_SOURCES): Add userspec.h.
71519         (Include): Add "userspec.h".
71520         Improve description.
71521
71522 2003-11-03  Jim Meyering  <jim@meyering.net>
71523
71524         * lib/userspec.c: Include "userspec.h".
71525         * lib/userspec.h: New file.
71526
71527 2003-11-03  Bruno Haible  <bruno@clisp.org>
71528
71529         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
71530
71531 2003-11-03  Bruno Haible  <bruno@clisp.org>
71532
71533         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
71534         available, to avoid (extremely rare) race condition.
71535         Suggested by Paul Eggert.
71536
71537 2003-11-02  Karl Berry  <karl@gnu.org>
71538
71539         * config/srclist.txt (vasprintf.c): sync broken, sigh.
71540
71541 2003-10-31  Paul Eggert  <eggert@twinsun.com>
71542
71543         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
71544         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
71545         (read_filesystem_list): Set and use me_type_malloced.
71546         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
71547         whatever the type happens to be), for brevity and consistency.
71548         Check for size calculation overflow on Alphas running OSF/1.
71549
71550 2003-10-31  Jim Meyering  <jim@meyering.net>
71551
71552         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
71553
71554         * lib/linebuffer.c: Include <string.h> for declaration of memset.
71555
71556 2003-10-30  Paul Eggert  <eggert@twinsun.com>
71557             Bruno Haible  <bruno@clisp.org>
71558
71559         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
71560         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
71561
71562 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71563
71564         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
71565         netbsd*-gnu*.  Suggested by Robert Millan.
71566
71567 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71568
71569         * modules/group-member: Depend on stdbool.
71570
71571 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71572
71573         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
71574
71575 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71576
71577         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
71578         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
71579         after the 'gnu' in these cases.  This fixes some bugs in the
71580         previous change, and is based on suggestions by Robert Millan.
71581
71582 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71583
71584         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
71585         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
71586         no longer needed.
71587         * lib/quotearg.c (quotearg_n_options): Use it.
71588         * lib/group-member.c: Include <stdbool.h>.
71589         (free_group_info): Arg is now const *; don't free arg.
71590         (get_group_info): Now returns bool and accepts struct group_info *,
71591         rather than returning a malloc'ed struct group_info *.
71592         All uses changed.  Check for overflow in internal size calculation.
71593
71594         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
71595         rather than xmalloc/xrealloc.
71596         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
71597         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
71598         conformance bug: the old code used a pointer after freeing the
71599         storage that it addressed.
71600         * lib/hash.c (hash_initialize): Simplify the code by using
71601         xalloc_oversized rather than doing it by hand.
71602         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
71603         the buffer preserved.  Use free and xmalloc instead.
71604         * lib/quotearg.c (quotearg_n_options): Likewise.
71605         Use a simpler test for size overflow.  Don't use xalloc_oversized
71606         because unsigned int might be wider than size_t (!); this suggests
71607         that we should switch from unsigned int to size_t for slot numbers.
71608
71609 2003-10-28  Paul Eggert  <eggert@twinsun.com>
71610
71611         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
71612         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
71613         NetBSD kernels.  Requested by Richard Stallman.
71614
71615 2003-10-27  Paul Eggert  <eggert@twinsun.com>
71616
71617         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
71618         to allocate the returned structure.  Do not allocate a subarray,
71619         as x2nrealloc will do that.
71620         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
71621         instead of xnrealloc.
71622         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
71623
71624 2003-10-27  Bruno Haible  <bruno@clisp.org>
71625
71626         * lib/stdbool_.h: Better support for BeOS.
71627
71628 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71629
71630         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
71631         now uses inline.
71632
71633 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71634
71635         * lib/xalloc.h (xalloc_oversized): New static inline function, for
71636         callers that want to do their own size-overflow checking.  Include
71637         <stdbool.h>, since xalloc_oversized returns bool.
71638         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
71639         to use xalloc_oversized.
71640
71641         Add two functions x2realloc, x2nrealloc, for programs that grow
71642         arrays dynamically by doubling their sizes.
71643         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
71644         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
71645         New functions.
71646
71647         Port to C99 semantics for 'inline' of external functions.
71648         Bug reported by Bruno Haible.
71649         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
71650         with the old contents of xnmalloc.
71651         (xnmalloc, xmalloc): Use it.
71652         (xnrealloc_inline): New static inline function,
71653         with the old contents of xnrealloc.
71654         (xnrealloc, xrealloc): Use it.
71655
71656         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
71657         that.
71658
71659 2003-10-26  Karl Berry  <karl@gnu.org>
71660
71661         * config/srclist.txt (COPYING.DOC): no longer available from
71662         /gd/gnuorg; don't know where the ultimate source is.
71663
71664 2003-10-25  Paul Eggert  <eggert@twinsun.com>
71665
71666         Fix several address-calculation bugs in the hash modules,
71667         plus some minor code cleanup.
71668
71669         * lib/hash.h: Include <stdbool.h>, for bool.
71670         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
71671         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
71672         hash_get_n_entries, hash_get_max_bucket_length,
71673         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
71674         hash_rehash): Use size_t rather than unsigned.
71675         * lib/hash.c (struct hash_table, hash_get_n_buckets,
71676         hash_get_n_buckets_used, hash_get_n_entries,
71677         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
71678         hash_get_entries, hash_do_for_each, hash_string, is_prime,
71679         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
71680         Likewise.
71681         (SIZE_MAX): Define if not defined.
71682         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
71683         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
71684         hash_print):
71685         Use const * when possible.
71686         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
71687         (check_tuning): Fix bug: if tuning parameters were very close to
71688         0 or 1, rounding errors could have caused subscript violations.
71689         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
71690         (hash_initialize): Add 'fail:' label
71691         to free table and return NULL, and use it to simplify code.
71692         Use calloc rather than clearing the storage ourself.
71693         (hash_initialize, hash_rehash): Check for arithmetic overflow in
71694         buffer size calculations.
71695         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
71696         Include <stddef.h>, for size_t.
71697         * lib/hash-pjw.c (hash_pjw): Likewise.
71698         Switch to method described by Bruno Haible.
71699         Include <limits.h>, for CHAR_BIT.
71700         (SIZE_BITS): New macro.
71701
71702 2003-10-23  Paul Eggert  <eggert@twinsun.com>
71703
71704         * m4/getline.m4 (AM_FUNC_GETLINE):
71705         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
71706         hosts.  Problem reported by Derek Robert Price in
71707         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
71708         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
71709         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
71710
71711 2003-10-21  Paul Eggert  <eggert@twinsun.com>
71712
71713         * lib/getndelim2.c (getndelim2): When size calculation overflows,
71714         ceiling the allocation at NMAX bytes rather than silently
71715         discarding input bytes before NMAX is reached.  This makes
71716         a difference only if NMAX exceeds SIZE_MAX / 2.
71717
71718         * lib/obstack.c: Merge from glibc.
71719         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
71720         Add libc_hidden_def (_obstack_newchunk).
71721         (_obstack_free) [! defined _LIBC]: Remove.
71722         [defined _LIBC]: Make a strong alias from obstack_free, rather than
71723         a clone of the function body.
71724         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
71725         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
71726
71727         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
71728         glibc.
71729         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
71730         arg to memcpy.
71731
71732         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
71733         (obstack_ptr_grow_fast, obstack_int_grow_fast):
71734         Don't use lvalue casts, as GCC plans to remove support for them
71735         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
71736         was also present in the non-GCC version, indicating that this
71737         code had always been buggy and had never been widely used.
71738         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
71739         Use the fast variant of each macro, rather than copying the
71740         definiens of the fast variant; that way, we'll be more likely to
71741         catch future bugs in the fast variants.
71742
71743 2003-10-20  Bruno Haible  <bruno@clisp.org>
71744
71745         * modules/wait-process: New file.
71746         * MODULES.html.sh (func_all_modules): Add wait-process.
71747
71748 2003-10-20  Bruno Haible  <bruno@clisp.org>
71749
71750         * m4/wait-process.m4: New file.
71751
71752 2003-10-20  Bruno Haible  <bruno@clisp.org>
71753
71754         * lib/wait-process.h: New file, from GNU gettext.
71755         * lib/wait-process.c: New file, from GNU gettext.
71756
71757 2003-10-19  Jim Meyering  <jim@meyering.net>
71758
71759         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
71760         HPUX 10.20.
71761
71762 2003-10-18  Karl Berry  <karl@gnu.org>
71763
71764         * config/config.guess: update from config.
71765
71766 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71767
71768         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
71769         (getgroups): First arg is int, not size_t.
71770         Don't let 'free' mangle errno.
71771
71772 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71773
71774         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
71775
71776 2003-10-16  Karl Berry  <karl@gnu.org>
71777
71778         * config/config.{guess,sub}: update from config.
71779
71780 2003-10-16  Jim Meyering  <jim@meyering.net>
71781
71782         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
71783         memcpy.
71784
71785 2003-10-15  Paul Eggert  <eggert@twinsun.com>
71786
71787         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
71788         (SIZE_MAX): Remove.
71789         (new_exclude, add_exclude_file): Initial size no longer needs to
71790         be a power of 2.
71791         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
71792         our own address arithmetic overflow checking.
71793
71794         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
71795         (fnmatch): Do not alloca more than 2000 wide characters;
71796         instead, use malloc for large buffers.
71797         Check for address arithmetic overflow, and return -1
71798         with errno set to ENOMEM in that case.
71799         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
71800         (NEW_PATTERN): Do not alloca more than 8000 bytes;
71801         instead, return -1.  Check for address arithmetic overflow.
71802
71803 2003-10-14  Paul Eggert  <eggert@twinsun.com>
71804
71805         Handle invalid suffixes and overflow independently, so that
71806         callers can treat them independently as needed.  Fix some bugs in
71807         suffix handling, e.g., "100k@" was not diagnosed as an invalid
71808         suffix for a human-readable blocksize.  The major caller-visible
71809         change is the addition of a new
71810         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
71811         that both overflow and suffix chars were found.
71812
71813         * lib/human.c (humblock): Don't check separately for invalid suffix
71814         char; that is xstrtoumax's job (now that its bug is fixed).
71815         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
71816         INTMAX_MAX]: New macros.
71817         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
71818         TYPE_MAXIMUM): New macros.
71819         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
71820         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
71821         if overflow occurs, as it's what __strtol does and it's more useful
71822         in practice.
71823         (__xstrtol): If __strtol reports some error other than ERANGE,
71824         reflect it to the caller as LONGINT_INVALID.  If it reports
71825         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
71826         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
71827         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
71828         value.
71829         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
71830         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
71831         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
71832         [defined UINTMAX_MAX]: New macros.
71833
71834 2003-10-14  Bruno Haible  <bruno@clisp.org>
71835
71836         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
71837
71838 2003-10-14  Bruno Haible  <bruno@clisp.org>
71839
71840         * m4/sig_atomic_t: New file, from GNU gettext.
71841         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
71842
71843 2003-10-14  Bruno Haible  <bruno@clisp.org>
71844
71845         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
71846         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
71847         Also use volatile where needed.
71848
71849 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71850
71851         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
71852         Change maintainer from Bruno Haible to 'all'.
71853
71854 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71855
71856         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
71857
71858 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71859
71860         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
71861         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
71862         and define in terms of the other primitives.
71863         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
71864         (SIZE_MAX): Define if not already defined.
71865         (array_size_overflow): New function.
71866         (xalloc_die): Abort instead of exiting if 'error' returns.
71867         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
71868         (xmalloc, xrealloc): Use them.
71869         (xcalloc): Check for address arithmetic overflow.
71870         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
71871         a bit faster than strcpy.
71872
71873 2003-10-10  Simon Josefsson  <jas@extundo.com>
71874
71875         * modules/argp (Depends-on): Add restrict and strcase.
71876
71877 2003-10-10  Simon Josefsson  <jas@extundo.com>
71878
71879         * m4/argp.m4: Add AC_C_INLINE.
71880
71881 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71882
71883         Merge getpass from libc, plus a few fixes.
71884
71885         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
71886         Include <stdbool.h>.
71887         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
71888         __fsetlocking to empty.
71889         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
71890         do include <bits/libc-lock.h>.
71891         Do not include <fcntl.h>; not needed.
71892         [_LIBC]: Include <wchar.h>.
71893         (NOTCANCEL_MODE): New macro.
71894         (flockfile, funlockfile) [_LIBC]: New macros.
71895         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
71896         [!_LIBC]: New macros.
71897         (call_fclose): New function.
71898         (getpass): Use it.  Save tty stream separately; this simplifies the
71899         code and makes it more reliable if stdin happens to equal stdout.
71900         Invoke __fsetlocking on tty.
71901         Handle thread cancellation if needed.
71902         Namespace cleanup (use __tcgetattr, __getline).
71903         Use bool for Booleans.
71904         [USE_IN_LIBIO]: Handle wide streams.
71905         [!_LIBC]: Unconditionally do the fseek, since we don't know what
71906         stream might go where.
71907
71908         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
71909         doesn't have to include <stdio.h> before us.
71910         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
71911         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
71912         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
71913         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
71914         if not declared, so that we can use getpass.c code from libc without
71915         rewriting it.
71916         (flockfile, ftrylockfile, funlockfile): New macros.
71917
71918 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71919
71920         * modules/getpass: Depend on stdbool.
71921
71922 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71923
71924         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
71925
71926 2003-10-07  Karl Berry  <karl@gnu.org>
71927
71928         * config/config.{guess,sub}: update from config.
71929
71930 2003-10-06  Jim Meyering  <jim@meyering.net>
71931             Bruno Haible  <bruno@clisp.org>
71932
71933         This lets translators provide better translations for the
71934         "Written by ..." part of --version output.
71935         * lib/version-etc.h: Include stdarg.h.
71936         (version_etc_copyright): Declare as readonly.
71937         (version_etc): Make this function variadic with a NULL-terminated list
71938         of author name strings.
71939         (version_etc_va): New declaration.
71940         * lib/version-etc.c: Include stdarg.h, stdlib.h.
71941         (version_etc_copyright): Declare as readonly.
71942         (version_etc_va): New function. Provide a different translatable string
71943         for each possible number of authors < 10. Abbreviate when there are 10
71944         authors or more.
71945         (version_etc): Make this function variadic. Call version_etc_va.
71946         Suggestion from Gary V. Vaughan.
71947
71948         * lib/long-options.h (parse_long_options): Change prototype: the
71949         authors string is moved to the end and becomes variadic.
71950         * lib/long-options.c: Include stdarg.h.
71951         (parse_long_options): Make this function variadic, too.
71952         Call version_etc_va, not version_etc.
71953
71954 2003-10-06  Bruno Haible  <bruno@clisp.org>
71955
71956         * modules/version-etc-2: Remove file.
71957         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
71958
71959 2003-10-06  Bruno Haible  <bruno@clisp.org>
71960
71961         * modules/fatal-signal: New file.
71962         * MODULES.html.sh (func_all_modules): Add fatal-signal.
71963
71964 2003-10-06  Bruno Haible  <bruno@clisp.org>
71965
71966         * m4/fatal-signal.m4: New file.
71967         * m4/signalblocking.m4: New file, from GNU gettext.
71968
71969 2003-10-06  Bruno Haible  <bruno@clisp.org>
71970
71971         * lib/version-etc-2.h: Remove file.
71972         * lib/version-etc-2.c: Remove file.
71973
71974 2003-10-06  Bruno Haible  <bruno@clisp.org>
71975
71976         * lib/fatal-signal.h: New file, from GNU gettext.
71977         * lib/fatal-signal.c: New file, from GNU gettext.
71978
71979 2003-10-05  Paul Eggert  <eggert@twinsun.com>
71980
71981         * README: Rework advice for preventing empty .o files.
71982         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
71983         not <sys/types.h>.
71984
71985 2003-10-04  Karl Berry  <karl@gnu.org>
71986
71987         * lib/argp*: update from libc.
71988
71989 2003-10-04  Karl Berry  <karl@gnu.org>
71990
71991         * config/config.{guess,sub}: update from config.
71992
71993 2003-10-02  Bruno Haible  <bruno@clisp.org>
71994
71995         * modules/lchown (Include): Add lchown.h.
71996         * modules/time_r (Include): Use "..." syntax.
71997         * modules/xgetdomainname (Include): Add xgetdomainname.h.
71998
71999 2003-10-01  Simon Josefsson  <jas@extundo.com>
72000
72001         * MODULES.html.sh (func_all_modules): Move gethostname from section
72002         'based on' to section 'lacking' POSIX:2001.
72003
72004 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
72005
72006         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
72007         to output mode on the same stream.
72008
72009 2003-09-29  Paul Eggert  <eggert@twinsun.com>
72010
72011         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
72012         Fix arg typo in previous patch.
72013
72014 2003-09-28  Jim Meyering  <jim@meyering.net>
72015
72016         * lib/error.c: Correct cpp indentation.
72017
72018 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72019
72020         * modules/free: New file.
72021
72022 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72023
72024         * m4/free.m4: New file.
72025
72026 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72027
72028         * lib/minmax.h (MIN, MAX)
72029         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
72030         Omit the special code that used __typeof__, since we worry that
72031         it could be more trouble than it's worth.  See:
72032         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
72033         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
72034
72035         * lib/free.c: New file.
72036
72037 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
72038
72039         Trivial fixes to Makefile.am parts of module listings.
72040         * modules/strstr: Append strstr.h to lib_SOURCES.
72041         * modules/strcase: Likewise, for strcase.h.
72042
72043 2003-09-27  Karl Berry  <karl@gnu.org>
72044
72045         * config/mkinstalldirs: update from automake.
72046
72047 2003-09-26  Paul Eggert  <eggert@twinsun.com>
72048
72049         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
72050         (error_tail): Do not loop, reallocating temporary buffer, since
72051         the output cannot contain more wide characters than the input
72052         contains bytes, the size must be big enough already.  This avoids
72053         one potential size overflow calculation.  Check for size overflow
72054         when calculating temporary buffer size.  Free temporary buffer
72055         when done, if it was allocated with malloc; this plugs a memory
72056         leak.  Remove casts from void * to pointers, that are no longer
72057         needed now that we're assuming C89 or better.
72058
72059         Merge error changes from glibc.
72060
72061         * lib/error.c, error.h: Update copyright notice header to match glibc.
72062         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
72063         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
72064         Disable cancellation while printing error.
72065         * lib/error.h: Prepend __ to parameter names.
72066
72067 2003-09-26  Jim Meyering  <jim@meyering.net>
72068
72069         * lib/error.c (error_tail): Move some declarations
72070         into inner scope where the local variables are used.
72071
72072 2003-09-26  Bruno Haible  <bruno@clisp.org>
72073
72074         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
72075         stpncpy().
72076         Don't define stpncpy through config.h; it's now done through stpncpy.h.
72077
72078 2003-09-26  Bruno Haible  <bruno@clisp.org>
72079
72080         * lib/stpncpy.h (gnu_stpncpy): New declaration.
72081         (stpncpy): Define as alias for gnu_stpncpy.
72082         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
72083
72084 2003-09-25  Simon Josefsson  <jas@extundo.com>
72085
72086         * lib/xgetdomainname.h: New file.
72087         * lib/xgetdomainname.c: New file.
72088
72089 2003-09-25  Simon Josefsson  <jas@extundo.com>
72090             Bruno Haible  <bruno@clisp.org>
72091
72092         * modules/getdomainname: New file.
72093         * modules/xgetdomainname: New file.
72094         * MODULES.html.sh (func_all_modules): Add getdomainname,
72095         xgetdomainname.
72096
72097 2003-09-25  Simon Josefsson  <jas@extundo.com>
72098             Bruno Haible  <bruno@clisp.org>
72099
72100         * m4/getdomainname.m4: New file.
72101
72102 2003-09-25  Simon Josefsson  <jas@extundo.com>
72103             Bruno Haible  <bruno@clisp.org>
72104
72105         * lib/getdomainname.h: New file.
72106         * lib/getdomainname.c: New file.
72107
72108 2003-09-25  Karl Berry  <karl@gnu.org>
72109
72110         * lib/argp-fmtstream.c, argp-help.c: update from libc.
72111
72112 2003-09-25  Karl Berry  <karl@gnu.org>
72113
72114         * config/install-sh: update from automake.
72115
72116 2003-09-25  Bruno Haible  <bruno@clisp.org>
72117
72118         * modules/version-etc-2: New file, from modules/version-etc with
72119         modifications.
72120         * MODULES.html.sh (func_all_modules): Add version-etc-2.
72121
72122 2003-09-25  Bruno Haible  <bruno@clisp.org>
72123
72124         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
72125         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
72126
72127 2003-09-24  Simon Josefsson  <jas@extundo.com>
72128
72129         * modules/xgethostname: Add xgethostname.h.
72130
72131 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72132
72133         * lib/linebuffer.c (freebuffer): Don't free the argument, just
72134         the buffer associated with the argument.  Bug reported by
72135         Simon Josefsson.
72136
72137 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72138
72139         * README: Document assumptions that 'int' is at least 32 bits
72140         wide, that integer arithmetic is 2's complement without overflow,
72141         that there are no holes in integer values, that adding sizes of
72142         two nonoverlapping objects can't overflow, and that all-bits-zero
72143         yields scalar zero.  Fix spelling and capitalization typos.
72144
72145 2003-09-19  Karl Berry  <karl@gnu.org>
72146
72147         * lib/argp.h: update from libc.
72148
72149 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72150
72151         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
72152         to avoid spurious warnings like "AC_RUN_IFELSE was called before
72153         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
72154
72155 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72156
72157         * gnulib-tool: Use "test -h", not "test -L", for portability
72158         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
72159         (tags_regexp): Remove, since \| doesn't conform to POSIX.
72160         (sed_extract_prog): Issue s commands one-by-one, rather than
72161         using \| in one s command.
72162
72163 2003-09-16  Paul Eggert  <eggert@twinsun.com>
72164
72165         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
72166         input error, instead of returning NULL the next time we are called
72167         (and therefore losing track of errno).
72168
72169 2003-09-16  Bruno Haible  <bruno@clisp.org>
72170
72171         * gnulib-tool (func_create_testdir): Warn about duplicated
72172         dependencies.
72173
72174 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72175
72176         * modules/argmatch, modules/fatal, modules/obstack,
72177         modules/xalloc, modules/xgethostname: Sort dependencies by
72178         importance, not alphabetically.
72179
72180 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72181
72182         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
72183         fails, so that the caller gets the proper errno.
72184
72185         * lib/readutmp.c (read_utmp): Likewise.
72186         Check for fstat error.  Close stream and free storage
72187         when failing.
72188
72189 2003-09-14  Karl Berry  <karl@gnu.org>
72190
72191         * config/srclist.txt (strdup.c): disable for c89 changes.
72192
72193 2003-09-14  Jim Meyering  <jim@meyering.net>
72194
72195         * lib/getloadavg.c: Correct cpp indentation.
72196         * lib/strdup.c: Likewise.
72197         * lib/vasnprintf.c: Likewise.
72198
72199 2003-09-14  Bruno Haible  <bruno@clisp.org>
72200
72201         * modules/fwriteerror: New file.
72202         * MODULES.html.sh (func_all_modules): Add fwriteerror.
72203
72204 2003-09-14  Bruno Haible  <bruno@clisp.org>
72205
72206         * lib/fwriteerror.h: New file.
72207         * lib/fwriteerror.c: New file.
72208
72209 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72210
72211         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
72212         modules/xgethostname, modules/xalloc: Depend on exit.
72213
72214 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72215
72216         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
72217
72218         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
72219         and AC_MINIX, too, so that their extensions are available.
72220
72221         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
72222         This macro has been superseded by gl_BACKUPFILE.
72223
72224         More patches to assume C89 or better.
72225
72226         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
72227
72228         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
72229         unconditionally.
72230         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
72231         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
72232         Include <string.h>, <stdlib.h> unconditionally.
72233         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
72234         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
72235         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
72236         headers or for string.h.
72237         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
72238         or strtoul.
72239
72240         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
72241         headers.
72242         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
72243         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72244         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
72245         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
72246         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72247         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
72248         memcpy, memset.
72249         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
72250         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
72251         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
72252         strtol.
72253         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
72254         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
72255         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
72256         strtoul.
72257
72258 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72259
72260         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
72261         * lib/obstack.c [!defined _LIBC]: Likewise.
72262         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
72263         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
72264         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
72265
72266         More changes to assume C89 or better.
72267
72268         * lib/error.c (error_tail): Assume vprintf.
72269
72270         * lib/argmatch.c (getenv): Remove decl.
72271         * lib/progreloc.c (get_full_program_name): Define via prototype.
72272         * lib/setenv.c (clearenv): Likewise.
72273         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
72274         needed.
72275         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
72276         (malloc, memcpy): Remove decls.
72277         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
72278         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
72279         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72280         (memcpy): Remove macro.
72281         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
72282         (__P): Remove.  All uses removed.
72283         (PTR): Remove.  All uses changed to void *.
72284         (CHAR_BIT, NULL): Remove.
72285         (spaces, zeros, memset_space, memset_zero)
72286         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
72287         Remove.
72288         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
72289         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
72290         Define with prototype.
72291         Remove now-unnecessary prototype decl.
72292         (extra_args_spec): Assume ANSI C.  All uses changed.
72293         (extra_args_spec_iso): Remove.
72294         (my_strftime, emacs_strftimeu): Define via prototype.
72295         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
72296         unconditionally.
72297         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
72298         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
72299         (strtoul, strtol): Remove decls.
72300         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
72301         LONG_MAX): Remove.
72302         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72303         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
72304         (LOCALE_PARAM_PROTO): New macro.
72305         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
72306         (INTERNAL (strtol), strtol): Define with a prototype.
72307         (PARAMS): Remove.  All uses removed.
72308         * lib/tempname.c: Include <string.h> unconditionally.
72309         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
72310         * lib/xgethostname.c (main): Define with a prototype.
72311         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
72312         Include <stdlib.h> unconditionally.
72313         (calloc, malloc, realloc, free): Remove decls.
72314         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
72315         Include <stdlib.h> unconditionally.  Sort include file names.
72316         (strtod): Remove.
72317         (xstrtod): Define with a prototype.
72318         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
72319         (strtol, strtoul): Remove decls.
72320
72321 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72322
72323         More patches to assume C89 or better.
72324         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
72325         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
72326         string.h, memchr, STDC_HEADERS.
72327
72328 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72329
72330         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
72331         Include <stdlib.h>, <string.h> unconditionally.
72332         Remove now-unnecessary cast to char *.
72333         * lib/strnlen.c: Include <string.h> unconditionally.
72334         * lib/yesno.c (yesno): Define with a prototype.
72335
72336 2003-09-11  Bruno Haible  <bruno@clisp.org>
72337
72338         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
72339
72340 2003-09-10  Jim Meyering  <jim@meyering.net>
72341
72342         * lib/error.c: Correct indentation of cpp directives.
72343
72344 2003-09-10  Bruno Haible  <bruno@clisp.org>
72345
72346         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
72347         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
72348         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
72349         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
72350         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
72351         <stdlib.h> and <string.h> checks.
72352         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
72353         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
72354
72355 2003-09-10  Bruno Haible  <bruno@clisp.org>
72356
72357         * lib/strcspn.c: Include <string.h> unconditionally.
72358         * lib/strpbrk.c: Include <string.h> unconditionally.
72359         * lib/strstr.c: Include <string.h> unconditionally.
72360         * lib/unicodeio.c: Include <string.h> unconditionally.
72361         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
72362         * lib/unsetenv.c: Likewise.
72363         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
72364         * lib/yesno.c: Include <stdlib.h> unconditionally.
72365         (rpmatch): Add prototype.
72366
72367 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72368
72369         More patches to assume C89 or better.
72370         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
72371         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
72372         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
72373         or for string.h.
72374         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
72375         stdlib.h.
72376         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
72377         C headers.
72378         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
72379         string.h.
72380         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
72381         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
72382         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
72383         or for string.h.
72384         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
72385         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
72386         C headers.
72387         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
72388         memcpy.
72389         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
72390         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
72391         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
72392         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
72393         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
72394         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
72395         string.h, free.
72396         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
72397         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
72398         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
72399         C headers, or for string.h.
72400         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
72401         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
72402         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
72403         headers, memory.h, stdlib.h, string.h, strings.h.
72404         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
72405         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
72406         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
72407         strchr.
72408         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
72409         headers, memory.h, string.h.
72410         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
72411         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
72412         free.
72413         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
72414         headers.
72415         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
72416         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
72417         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
72418         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
72419         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
72420
72421 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72422
72423         More K&R removal.
72424
72425         * lib/acosl.c (main): Use a prototype.
72426         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
72427         tanl.c: Likewise.
72428
72429         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
72430
72431         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
72432         (getopt, etopt_long, getopt_long_only, _getopt_internal)
72433         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
72434         with a prototype.
72435         * lib/getopt.c (const): Remove macro.
72436         Include <string.h> unconditionally.
72437         (my_index): Remove; all uses changed to strchr.
72438         (strlen): Remove decl.
72439         (exchange): Remove forward decl; no longer needed.
72440         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
72441         Define with prototype.
72442         * lib/getopt1.c (const): Remove macro.
72443         (getopt_long, getopt_long_only, main): Define with prototype.
72444
72445         * lib/getugroups.c: Include <string.h> unconditionally.
72446
72447         * lib/getusershell.c: Include <stdlib.h> unconditionally.
72448         (getusershell, setusershell, endusershell, readname, main):
72449         Define with prototypes.
72450
72451         * lib/group-member.c: Include group-member.h first.
72452         Include <stdlib.h> unconditionally.
72453
72454         * lib/hard-locale.c: Include hard-locale.h first.
72455         Include <stdlib.h>, <string.h> unconditionally.
72456
72457         * lib/hash.c (free, malloc): Remove decls.
72458         Include <stdlib.h> unconditionally.
72459
72460         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
72461         (getenv): Do not declare.
72462
72463         * lib/idcache.c: Include <string.h> unconditionally.
72464
72465         * lib/long-options.c: Include long-options.h first, to test interface.
72466         Include <stdlib.h> unconditionally.
72467
72468         * lib/makepath.c: Include makepath.h first, to test interface.
72469         Include <stdlib.h> and <string.h> unconditionally.
72470
72471         * lib/linebuffer.c: Include <stdlib.h>.
72472         (free): Remove decl.
72473
72474         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
72475         stddef.h. rpl_malloc returns void *, not char *.
72476         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
72477         prototype.
72478
72479         * lib/md5.h: Include <limits.h> unconditionally.
72480         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
72481         (__P): Remove; all uses removed.
72482         * lib/md5.c: Include "md5.h" first.
72483         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
72484         md5_buffer, md5_process_bytes, md5_process_block):
72485         Define with prototypes.
72486         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
72487         * lib/sha.c: Include "sha.h" first.
72488         Include <stdlib.h>, <string.h> unconditionally.
72489
72490         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
72491         * lib/memcmp.c (__ptr_t): Likewise.
72492         * lib/memrchr.c (__ptr_t): Likewise.
72493         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
72494         Include <string.h> unconditionally.
72495         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
72496         * lib/memchr.c: Include <stdlib.h> unconditionally.
72497         * lib/memchr.c (LONG_MAX): Remove.
72498         * lib/memrchr.c (LONG_MAX): Likewise.
72499         * lib/memchr.c (__memchr): Define via a prototype.
72500         * lib/memrchr.c (__memrchr): Likewise.
72501         * lib/memcmp.c (__P): Remove, and remove all uses.
72502         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
72503         Remove forward decls; no longer needed.
72504         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
72505         Use types required by C89 in prototype.
72506
72507         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
72508         * lib/savedir.c: Likewise.
72509         * lib/mkdir.c (free): Remove decl.
72510         * lib/rmdir.c (rmdir): Define with a prototype.
72511         * lib/savedir.c: Include savedir.h first, to test interface.
72512
72513         * lib/mktime.c (STDC_HEADERS): Remove.
72514         Include <stdlib.h>, <string.h> unconditionally.
72515
72516         * lib/modechange.c: Include <stdlib.h> unconditionally.
72517         (malloc): Remove decl.
72518
72519         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
72520         (free): Remove decl.
72521
72522         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
72523         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
72524         (This type really should be intptr_t, but that's a C99ism.)
72525         (_obstack_memcpy): Remove: all uses changed to memcpy.
72526         Include <string.h> unconditionally.
72527         (struct obstack): Assume __STDC__ for types of members
72528         chunkfun, freefun, extra_arg.
72529         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
72530         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
72531         obstack_begin, obstack_specify_allocation,
72532         obstack_specify_allocation_with_arg, obstack_chunkfun,
72533         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
72534         Remove unprototyped decls and the macros that use them.
72535         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
72536         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
72537         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
72538         (defined __STDC__ && __STDC__)]:
72539         Remove nonprototyped code.
72540         Include <stdlib.h> unconditionally.
72541         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
72542         _obstack_allocated_p, _obstack_free, obstack_free,
72543         _obstack_memory_used, print_and_abort):
72544         Define using prototypes.
72545         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
72546         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
72547         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
72548         obstack_next_free, obstack_object_size, obstack_room) [0]:
72549         Remove unused, unprototyped code.
72550
72551         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
72552
72553         * lib/physmem.c (physmem_total, physmem_available, main): Define
72554         with prototypes.
72555
72556         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
72557         (main): Define with a prototype.
72558
72559         * lib/posixver.c (getenv): Remove decl.
72560
72561         * lib/putenv.c (malloc): Returns void *, not char *.
72562         Include <string.h> unconditionally.
72563         (strchr, memcpy, NULL): Do not define.
72564
72565         * lib/readtokens.c: Include readtokens.h first, to test interface.
72566         Include <stdlib.h>, <string.h> unconditionally.
72567         (init_tokenbuffer): Define with a prototype.
72568
72569         * lib/regex.c (PARAMS): Remove.  All uses removed.
72570         All uses of _RE_ARGS removed, too.
72571         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72572         unconditionally.
72573         (bzero): Assume memset exists.
72574         (memcmp, memcpy, NULL): Remove.
72575         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
72576         char, or assignments to local vars of type signed char.
72577         (init_syntax_once, PREFIX(extract_number_and_incr),
72578         PREFIX(print_partial_compiled_pattern),
72579         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
72580         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
72581         PREFIX(regex_grow_registers), PREFIX(regex_compile),
72582         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
72583         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
72584         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
72585         wcs_compile_range, byte_compile_range, truncate_wchar,
72586         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
72587         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
72588         count_mbs_length, wcs_re_match_2_internal,
72589         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
72590         PREFIX(alt_match_null_string_p),
72591         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
72592         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
72593         regfree, PREFIX(extract_number)): Define with prototype.  Remove
72594         now-unnecessary declaration, if any.
72595         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
72596         regcomp, regexec):
72597         Remove now-unnecessary casts among pointer types.
72598         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
72599
72600         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
72601         (free): Remove decl.
72602
72603         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
72604
72605         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
72606         (free): Remove decl.
72607
72608         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
72609         * lib/xgetcwd.c: Likewise.
72610
72611         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
72612         (free): Remove decl.
72613
72614         * lib/strchrnul.c (strchrnul): Define with a prototype.
72615         Fix bug: c_in was not converted to char before searching.
72616
72617         The following changes are not K&R related:
72618
72619         * lib/group-member.h: Include <sys/types.h>, so that this file is
72620         self-contained.
72621         * lib/makepath.h: Likewise.
72622
72623         * lib/getusershell.c (readname, default_index, line_size, readname):
72624         Use size_t, not int, for sizes.
72625         (readname): If the size overflows, report an error instead of
72626         looping forever.
72627
72628 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72629
72630         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
72631         libc.
72632
72633 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72634
72635         * README: New section: portability guidelines.
72636
72637 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72638
72639         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
72640         C89 spec.
72641
72642 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72643
72644         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
72645
72646 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72647
72648         Assume C89 or better; remove K&R cruft.
72649         A few of these changes were first proposed by Derek Robert Price
72650         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
72651
72652         * lib/addext.c: Include <string.h> unconditionally.
72653         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
72654         Don't declare getenv or malloc.
72655
72656         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
72657         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
72658         (NULL): Remove.
72659         (find_stack_direction, alloca): Use prototypes.
72660
72661         * lib/atexit.c (atexit): Define using a prototype.
72662
72663         * lib/basename.c, dirname.c, stripslash.c:
72664         Include <string.h> unconditionally.
72665
72666         * lib/bcopy.c: Include <stddef.h>.
72667         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
72668
72669         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
72670
72671         * lib/error.h (error, error_at_line, error_print_progname)
72672         [! (defined (__STDC__) && __STDC__)]: Remove decls.
72673         * lib/error.c: Include error.h first, to check interface.
72674         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72675         (VA_START): Remove; all uses changeed to va_start.
72676         (exit, strerror): Remove decls.
72677         (error_print_progname): Prototype uncondionally.
72678         Don't include <errno.h>; no longer needed.
72679         (private_strerror): Remove.
72680         (error_tail): Always define.
72681         (error, error_at_line): Assume C89 or better; always use prototypes.
72682         * lib/fatal.c: Include "fatal.h" first, to test interface.
72683         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72684         (VA_START): Remove; all uses changed to va_start.
72685         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
72686         this case.
72687         (exit): Remove decl.
72688         (fatal): Prototype unconditionally.  Assume va_start works.
72689         Abort at end, to pacify gcc.
72690
72691         * lib/euidaccess.c (main): Define with a prototype.
72692
72693         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
72694
72695         * lib/exitfail.c: Include <stdlib.h> unconditionally.
72696
72697         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
72698         prototypes.
72699         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
72700         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
72701         (getenv): Remove decl.
72702         (fnmatch): Define using a prototype.
72703         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
72704         (FCT): Define using a prototype.
72705
72706         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
72707
72708         * lib/gethostname.c: Include <stddef.h>.
72709         (gethostname): Define with prototype.  Length is size_t, not int.
72710
72711 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72712
72713         Assume C89 or better; remove K&R cruft.
72714         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
72715         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
72716         string.h, getenv, malloc.
72717         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
72718         headers.
72719         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
72720         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
72721         do not check for strerror.
72722         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
72723         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
72724         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
72725         do not check for doprnt or vprintf.
72726         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
72727         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
72728
72729 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72730
72731         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
72732         getversion.c should have been removed then, but was accidentally
72733         preserved.
72734
72735         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
72736         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
72737
72738 2003-09-08  Karl Berry  <karl@gnu.org>
72739
72740         * config/config.sub, config.guess, srclistvars.sh: update from savannah
72741                 config, forget about prep.
72742
72743         * config/depcomp, missing: update from automake.
72744
72745 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72746
72747         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
72748         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72749
72750 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72751
72752         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
72753         copy_tm_result.  Bug reported by Simon Josefsson in
72754         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72755
72756 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72757
72758         * m4/time_r.m4: New file.
72759         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
72760         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
72761         is. Check for timegm declaration.
72762         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
72763         Do not check for gmtime_r.
72764         Replace mktime if __mktime_internal does not exist and if mktime
72765         hasn't been replaced already.
72766
72767 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72768
72769         * lib/time_r.c, lib/time_r.h: New files.
72770
72771         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
72772         __localtime_r.
72773         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
72774         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
72775
72776         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
72777         __gmtime_r.
72778         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
72779         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
72780         Include <time_r.h>.
72781
72782         * lib/timegm.c: Switch to glibc implementation, with the following
72783         changes:
72784         [defined HAVE_CONFIG_H]: Include <config.h>.
72785         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
72786         (__mktime_internal) [!defined _LIBC]: New decl.
72787         (__gmtime_r) [!defined _LIBC]: New macro and function.
72788         (timegm): Use a prototype, since gnulib assumes C89.
72789         Do not bother declaring tmp to be const, as it's not really usefu.
72790         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
72791         (timegm): Declare only if HAVE_DECL_TIMEGM.
72792
72793 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72794
72795         * MODULES.html.sh (func_all_modules): Add time_r.
72796         * modules/time_r: New file.
72797         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
72798         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
72799
72800 2003-09-03  Paul Eggert  <eggert@twinsun.com>
72801
72802         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
72803         Bug reported by Lute Kamstra in
72804         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
72805
72806         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
72807         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
72808         course with correspondingly smaller numbers for tomorrow and
72809         yesterday.  From Tadayoshi Funaba.  Originally installed into
72810         sh-utils on 1999-08-07, but the patch got lost (I guess during the
72811         coreutils merge?).
72812
72813 2003-08-31  Simon Josefsson  <jas@extundo.com>
72814
72815         * modules/timegm: New file.
72816         * MODULES.html.sh (func_all_modules): Add timegm.
72817
72818 2003-08-31  Simon Josefsson  <jas@extundo.com>
72819
72820         * m4/timegm.m4: New file.
72821
72822 2003-08-31  Simon Josefsson  <jas@extundo.com>
72823
72824         * lib/timegm.h: New file.
72825         * lib/timegm.c: New file.  Based on
72826         wget-1.8.2/src/http.c:mktime_from_utc.
72827
72828 2003-08-31  Karl Berry  <karl@gnu.org>
72829
72830         * lib/argp.h: update from libc.
72831
72832 2003-08-28  Bruno Haible  <bruno@clisp.org>
72833
72834         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
72835         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
72836         followed by '#define fnmatch fnmatch_posix' gives an error.
72837
72838 2003-08-28  Bruno Haible  <bruno@clisp.org>
72839
72840         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
72841         warning on QNX, which defines O_BINARY to 000000.
72842
72843 2003-08-27  Jim Meyering  <jim@meyering.net>
72844
72845         * m4/mkstemp.m4: Require that the system mkstemp be able to create
72846         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
72847         would fail after 32.  Reported by Danny Levinson.  Details here:
72848         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
72849
72850 2003-08-24  Bruno Haible  <bruno@clisp.org>
72851
72852         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
72853         MSVC7 <stdio.h> is included later.
72854
72855 2003-08-22  Simon Josefsson  <jas@extundo.com>
72856
72857         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
72858
72859 2003-08-20  Karl Berry  <karl@gnu.org>
72860
72861         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
72862
72863 2003-08-20  Bruno Haible  <bruno@clisp.org>
72864
72865         * modules/progname: New file.
72866         * MODULES.html.sh (func_all_modules): Add progname.
72867
72868 2003-08-20  Bruno Haible  <bruno@clisp.org>
72869
72870         * lib/progname.h: New file, from GNU gettext.
72871         * lib/progname.c: New file, from GNU gettext.
72872         * lib/progreloc.c: New file, from GNU gettext.
72873
72874 2003-08-19  Jim Meyering  <jim@meyering.net>
72875
72876         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
72877         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
72878
72879 2003-08-19  Bruno Haible  <bruno@clisp.org>
72880
72881         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
72882         more.
72883
72884 2003-08-19  Bruno Haible  <bruno@clisp.org>
72885
72886         * lib/xstrdup.c: Assume <string.h> exists.
72887
72888 2003-08-18  Paul Eggert  <eggert@twinsun.com>
72889
72890         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
72891         in makefile rules.
72892
72893 2003-08-18  Jim Meyering  <jim@meyering.net>
72894
72895         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
72896         * m4/lib-ld.m4: Likewise.
72897
72898 2003-08-18  Jim Meyering  <jim@meyering.net>
72899
72900         * lib/setenv.h: Indent nested cpp directive.
72901         * lib/vasnprintf.c: Remove trailing blanks.
72902
72903 2003-08-17  Simon Josefsson  <jas@extundo.com>
72904
72905         * modules/xstrndup: New file.
72906         * MODULES.html.sh (func_all_modules): Add xstrndup.
72907
72908 2003-08-17  Simon Josefsson  <jas@extundo.com>
72909
72910         * modules/argp: Fix autoconf macro name. Add more dependencies.
72911
72912 2003-08-17  Simon Josefsson  <jas@extundo.com>
72913
72914         * m4/xstrndup.m4: New file.
72915
72916 2003-08-17  Simon Josefsson  <jas@extundo.com>
72917
72918         * m4/argp.m4: New file.
72919
72920 2003-08-17  Simon Josefsson  <jas@extundo.com>
72921             Bruno Haible  <bruno@clisp.org>
72922
72923         * lib/xstrndup.h: New file.
72924         * lib/xstrndup.c: New file.
72925
72926 2003-08-17  Bruno Haible  <bruno@clisp.org>
72927
72928         * modules/strndup (Files, Include): Add lib/strndup.h.
72929
72930 2003-08-17  Bruno Haible  <bruno@clisp.org>
72931
72932         * modules/euidaccess (Files): Add lib/euidaccess.h.
72933
72934 2003-08-17  Bruno Haible  <bruno@clisp.org>
72935
72936         * lib/strndup.h: New file.
72937
72938 2003-08-17  Bruno Haible  <bruno@clisp.org>
72939
72940         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
72941         like AC_GNU_SOURCE.
72942         * modules/extensions (configure.ac): Comment out the invocation of
72943         gl_USE_SYSTEM_EXTENSIONS.
72944
72945 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72946
72947         Merges from coreutils, etc.
72948         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
72949         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
72950         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
72951         fixing a typo.
72952         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
72953         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
72954
72955 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72956
72957         Document merge from coreutils.
72958         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
72959         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
72960         * modules/utime: Add m4/utimes-null.m4.
72961
72962 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72963
72964         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
72965         space, undoing this 2003-08-12 change:
72966         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72967
72968 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72969
72970         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
72971         strtoul.c from libc, undoing this 2003-08-12 change:
72972         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72973
72974 2003-08-16  Jim Meyering  <jim@meyering.net>
72975
72976         Merges from coreutils.
72977         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
72978         prefix.  Adjust cache variables similarly.  Create 500 rather than
72979         just 300 files, to exercise bug on Darwin6.5, too.
72980         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
72981         $missing_dir.
72982         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
72983         AM_SYS_POSIX_TERMIOS.
72984         Reported by mkc@mathdogs.com.
72985         Also change use of $am_cv_sys_posix_termios
72986         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
72987         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
72988         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
72989         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
72990         in /proc/mounts until it finds one with matching device number.  This
72991         is unnecessary when the FILE argument *is* a mount point.  No stat call
72992         is necessary in that case.  So, disable the statvfs-testing code on
72993         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
72994         as RedHat bug# 84846.
72995         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72996         to 1MB, so as not to render systems with no stack size limit (e.g.,
72997         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72998         Include <unistd.h>.  On some systems,
72999         it is required for the definition of _SC_PAGESIZE.
73000
73001 2003-08-16  Jim Meyering  <jim@meyering.net>
73002
73003         Merge from coreutils.
73004         * lib/xstrtoimax.c: #else #if -> #elif.
73005         * lib/xstrtoumax.c: Likewise.
73006
73007 2003-08-16  Jim Meyering  <jim@meyering.net>
73008
73009         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
73010         * m4/utimes.m4: Removed.
73011         * m4/utimes-null.m4: Renamed from utimes.m4.
73012
73013         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73014         to 1MB, so as not to render systems with no stack size limit (e.g.,
73015         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73016         Include <unistd.h>.  On some systems,
73017         it is required for the definition of _SC_PAGESIZE.
73018
73019 2003-08-16  Jim Meyering  <jim@meyering.net>
73020         and Paul Eggert  <eggert@cs.ucla.edu>
73021
73022         Merges from coreutils, etc.
73023
73024         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
73025         using the latest version from cvs.  This avoids problems with #line
73026         directives using a vendor (Sun) compiler.
73027         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
73028         Don't set GETGROUPS_LIB here; now it's
73029         done via getgroups.m4's wrapper function.
73030         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
73031         rather than just in sh-util/configure.in, so that the
73032         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
73033         same.
73034         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
73035         AC_FUNC_GETLOADAVG where to find getloadavg.c.
73036         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
73037         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
73038         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
73039         Remove code that is now done by the newly-required macros.
73040         Append $(EXEEXT) to DF_PROG.
73041         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
73042         Do not invoke or require the following here,
73043         since prereq.m4 or some gnulib .m4 now does this for us:
73044         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
73045         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
73046         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
73047         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
73048         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
73049         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
73050         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
73051         AC_FUNC_OBSTACK.
73052         Do not replace the following functions, as this is now the job
73053         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
73054         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
73055         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
73056         atexit getpass, strdup, getpagesize.
73057         Replace 'raise'.
73058         Do not check for the following functions, as this is now the job
73059         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
73060         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
73061         setregid.
73062         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
73063         Check for sys/sysctl.h.
73064         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
73065         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
73066         of checking for ssize_t ourselves.
73067
73068         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
73069         Require every macro that gnulib/modules/* suggests for us.
73070         (jm_PREREQ_ADDEXT): New macro.
73071         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
73072         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
73073
73074         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
73075         (gl_PHYSMEM): Use it.
73076         Also check for `table' function.
73077         Check for new headers and functions.
73078         Add check for sys/sysmp.h.
73079         With suggestions from Kaveh Ghazi.
73080         Ignore headers that are present but cannot be compiled.  This
73081         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
73082         C 5.4.
73083
73084 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73085
73086         Document merge from coreutils.
73087         * modules/userspec: Depend on posixver.
73088         * modules/strftime: Depend on tzset.
73089
73090 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73091
73092         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
73093         rather than tab, after '#' in shell-script copyright notices.
73094         Suggested by Bruno Haible.
73095
73096 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73097
73098         * config/srclist-update: Use three spaces, rather than tab, after '#'
73099         in shell-script copyright notices.  Suggested by Bruno Haible.
73100         Remove unnecessary parenthesization in regular expression.
73101
73102 2003-08-15  Jim Meyering  <jim@meyering.net>
73103
73104         Merge from coreutils.
73105         * lib/xgethostname.c: Include <stdlib.h>.
73106         (xghostname): Don't exit for anything other than memory-related
73107         failure; just return NULL.
73108         * lib/userspec.c: Include "posixver.h".
73109         (parse_user_spec): Accept `.' as a separator only
73110         in pre-POSIX-200112 mode.
73111         * lib/strtoimax.c: Use #elif rather than #else #if.
73112         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
73113         Remove function, now that we can rely on a working tzset function.
73114         [!_LIBC]: Ensure that the required autoconf test has been run.
73115         [!defined _NL_CURRENT && HAVE_STRFTIME]:
73116         Use underlying_strftime for %r.
73117         * lib/sha.c: Merge in some clean-up and optimization changes from
73118         glibc.
73119         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
73120         Ensure that it is a multiple of 64.
73121         Rearrange loop exit tests so as to avoid performing an
73122         additional fread after encountering an error or EOF.
73123         * lib/realloc.c: Update copyright date.
73124
73125 2003-08-15  Jim Meyering  <jim@meyering.net>
73126         and Paul Eggert  <eggert@twinsun.com>
73127
73128         Merge from coreutils.
73129         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
73130         member but strut utmpx does not.  Needed for AIX 4.3.3.
73131         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
73132
73133 2003-08-15  Jim Meyering  <jim@meyering.net>
73134         and Paul Eggert  <eggert@cs.ucla.edu>
73135
73136         Merges from coreutils, etc.
73137         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
73138         Require gl_FUNC_TZSET_CLOBBER.
73139         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
73140         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
73141         members.
73142
73143 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73144
73145         Help the merge from coreutils.
73146         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
73147         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
73148         * m4/tzset.m4: Use it too.
73149
73150 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73151
73152         * modules/tzset: New file.
73153
73154 2003-08-14  Jim Meyering  <jim@meyering.net>
73155
73156         Merges from coreutils.
73157         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
73158         variable names, rather than @FNMATCH_H@.
73159         * modules/alloca: Likewise for $(ALLOCA_H).
73160
73161         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
73162         the three copies of the literal target, `fnmatch.h'.
73163         * modules/alloca (alloca.h): Likewise.
73164
73165 2003-08-14  Jim Meyering  <jim@meyering.net>
73166
73167         Merge from coreutils.
73168         * m4/tzset.m4: New file.
73169         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
73170         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
73171         otherwise, AIX 5.1 systems would end up using the latter.
73172         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
73173         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
73174         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
73175         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
73176
73177 2003-08-14  Jim Meyering  <jim@meyering.net>
73178
73179         Merge from coreutils.
73180         * lib/obstack.h: Whitespace changes.
73181         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
73182         and xcalloc return values.
73183         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
73184         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
73185         hang on OSF/1 5.1 for DIR on both local and remote file systems.
73186         Reported by (and fix confirmed by) Nelson H. F. Beebe.
73187         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73188         error from mntctl.
73189         Use mntctl's return value to drive the entry-processing loop, since
73190         we can't rely on the value of the vmt_length member in the last
73191         entry.  On some systems doing so could result in exhausting
73192         virtual memory.  Based in part on a patch from Mike Jetzer.
73193
73194 2003-08-14  Jim Meyering  <jim@meyering.net>
73195         and Paul Eggert  <eggert@twinsun.com>
73196
73197         Merges from coreutils, plus other fixes.
73198         * lib/physmem.c: Merge in portability changes from gcc/libiberty
73199         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
73200         for credits and details.  Thanks to Kaveh Ghazi for helping
73201         to keep these files in sync.
73202         (ARRAY_SIZE): Define it.
73203         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
73204         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
73205         (memcasecmp): Don't assume size_t fits in unsigned int.
73206         Remove casts and duplicate code.
73207         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
73208         (memcpy): Remove definition.
73209         Merge in some clean-up and optimization changes from glibc.
73210         [BLOCKSIZE]: Move definition to top of file.
73211         Ensure that it is a multiple of 64.
73212         Rearrange loop exit tests so as to avoid performing an
73213         additional fread after encountering an error or EOF.
73214         * lib/md5.h (md5_uintptr): Define.
73215         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
73216         return to the initial working directory.  Preserve errno
73217         for caller.
73218         * lib/idcache.c: Include "xalloc.h".
73219         (xmalloc, xrealloc): Remove decls.
73220         (getuser): Remove casts no longer required in C89.
73221         * lib/human.c: Include stdio.h, for sprintf.
73222         * lib/group-member.c: Include "xalloc.h".
73223         (xmalloc, xrealloc): Remove decls.
73224         (get_group_info): Remove casts no longer required in C89.
73225         * lib/getusershell.c (readname): Remove casts no longer required in
73226         C89.
73227         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
73228         * lib/getline.c: Whitespace fix, from coreutils.
73229
73230 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73231
73232         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
73233         Check for isascii.
73234
73235         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73236         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73237         Undo previous (whitespace-only) change.
73238
73239 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73240
73241         * lib/exclude.c: Include <ctype.h>
73242         (IN_CTYPE_DOMAIN): New macro.
73243         (is_space): New fn.
73244         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
73245         and empty lines.
73246
73247         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73248         Undo previous (whitespace-only) change.
73249
73250 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73251
73252         * config/srclist-update: Change update back to the old behavior,
73253         leaving whitespace alone.  Use one 'sed' command rather than a
73254         pipeline.
73255         (fixlicense): Now a variable, not a function.
73256         (remove_trailing_blanks): Remove.
73257         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
73258         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73259         Undo previous (whitespace-only) change.
73260
73261 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73262
73263         Merge from coreutils.
73264         * modules/euidaccess: Add lib_SOURCES, include for new
73265         file euidaccess.h
73266
73267 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73268
73269         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73270         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73271         Normalize leading white space and remove trailing white space.
73272
73273         Merge from coreutils
73274         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
73275
73276         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
73277         0.12.1.  These files are now being upgraded automatically by
73278         ../config/srclist-update.
73279
73280 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73281
73282         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73283         Normalize leading white space and remove trailing white space.
73284         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
73285         notice, as per ../config/srclist-update.
73286
73287         Merge from coreutils.
73288         * lib/euidaccess.h: New file.
73289         * lib/euidaccess.c: Include it.
73290         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
73291         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
73292         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
73293
73294 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73295
73296         * config/srclist-update: Add copyright notice.
73297         (remove_id_lines, remove_trailing_blanks): New constants.
73298         (fixfile): Use them to normalize spacing a bit in copied files.
73299         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73300         Normalize leading white space and remove trailing white space.
73301
73302         * config/texinfo.tex: Sync with texinfo.
73303
73304         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
73305         strtoul.c from libc, to merge coreutils whitespace changes.
73306
73307         * config/srclist.txt: Get the following m4 files from gettext:
73308         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
73309         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
73310         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
73311         wint_t.m4.
73312
73313 2003-08-12  Karl Berry  <karl@gnu.org>
73314
73315         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
73316         been made.
73317
73318 2003-08-11  Paul Eggert  <eggert@twinsun.com>
73319
73320         * modules/gnu-source, m4/gnu-source.m4:
73321         Remove; we're assuming Autoconf 2.54 or later now.
73322         Suggested by Bruno Haible.
73323         * MODULES.html.sh (func_all_modules): Remove gnu-source.
73324
73325 2003-08-11  Bruno Haible  <bruno@clisp.org>
73326
73327         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
73328
73329 2003-08-11  Bruno Haible  <bruno@clisp.org>
73330
73331         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
73332         (vasnprintf): Use it instead of wcslen.
73333
73334 2003-08-11  Bruno Haible  <bruno@clisp.org>
73335
73336         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
73337         value to ensure that _Bool promotes to int. Use #define for _Bool when
73338         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
73339
73340 2003-08-10  Karl Berry  <karl@gnu.org>
73341
73342         * lib/regex.h: update from libc (whitespace fix).
73343
73344 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73345
73346         Merge some files from coreutils.  These changes were
73347         originally made by Jim Meyering.
73348         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
73349         many older Unixes require this.
73350         * lib/alloca.c (alloca): Remove cast to argument of free;
73351         no longer needed in C89.
73352         * lib/alloca_.h, regex.h: Fix white space to match
73353         what GNU indent does.
73354
73355 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73356
73357         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
73358         apparently Emacs's Unicode mode got confused before my 2003-08-05
73359         checkin.
73360
73361 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73362
73363         * m4/extensions.m4: New file.
73364         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
73365         Require gl_USE_SYSTEM_EXTENSIONS.
73366         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
73367         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
73368
73369 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73370
73371         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
73372         * modules/extensions, modules/gnu-source: New files.
73373         * modules/timespec, modules/unlocked-io: Depend on extensions.
73374
73375 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73376
73377         * modules/restrict: New file.
73378         * MODULES.html.sh (func_all_modules): Add restrict.
73379         * modules/regex: Depend on restrict.
73380
73381 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73382
73383         * m4/restrict.m4: New file.
73384         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
73385
73386 2003-08-07  Bruno Haible  <bruno@clisp.org>
73387
73388         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
73389         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
73390
73391 2003-08-07  Bruno Haible  <bruno@clisp.org>
73392
73393         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
73394         makes the module 'getndelim2' compatible with the module 'getline'.
73395
73396 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73397
73398         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
73399         byte with "\201" to avoid glitches when editing that source file
73400         with multi-gnome-terminal.
73401
73402 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73403
73404         * lib/bumpalloc.h: Remove.
73405
73406 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73407
73408         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
73409         * modules/bumpalloc: Remove.
73410
73411 2003-08-04  Paul Eggert  <eggert@twinsun.com>
73412
73413         * lib/getloadavg.c: Change copyright notice and spacing to conform to
73414         GNU coding style.
73415
73416         Merge from coreutils.
73417         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
73418         1. From glibc.
73419         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
73420         from Karl Berry, implemented by Jim Meyering.
73421         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
73422         from Dmitry V. Levin.
73423         Remove anachronistic cast of xrealloc.
73424         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
73425         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
73426         type. Otherwise, it wouldn't compile with at least /bin/cc on
73427         ymp-cray-unicos9.0.2.X.
73428         Combine two mostly-identical uses of alloca into one.
73429         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
73430
73431 2003-08-04  Dave Love  <d.love@dl.ac.uk>
73432
73433         [From Emacs.]
73434
73435         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
73436         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
73437         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
73438         obsolete NLIST_NAME_UNION.
73439         [__GNU__]: Undef BSD and FSCALE.
73440         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
73441
73442 2003-08-03  Paul Eggert  <eggert@twinsun.com>
73443
73444         * lib/stdbool_.h (_Bool): Make it signed char, instead of
73445         an enum type, so that it's guaranteed to promote to int.  See:
73446         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
73447
73448 2003-08-03  Karl Berry  <karl@gnu.org>
73449
73450         * config/depcomp: update from automake.
73451
73452 2003-07-31  Paul Eggert  <eggert@twinsun.com>
73453
73454         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
73455         (strerror): Don't assume that a printable int fits in 14 bytes.
73456
73457 2003-07-31  Bruno Haible  <bruno@clisp.org>
73458
73459         * modules/getpass-gnu: New file.
73460         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
73461
73462 2003-07-31  Bruno Haible  <bruno@clisp.org>
73463
73464         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
73465
73466 2003-07-24  Karl Berry  <karl@gnu.org>
73467
73468         * config/missing: update from automake.
73469
73470 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
73471             Bruno Haible  <bruno@clisp.org>
73472
73473         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
73474         * lib/getline.c (getline, getdelim): Likewise.
73475         Remove _GNU_SOURCE define; now it's defined in config.h through
73476         m4/getline.m4.
73477
73478 2003-07-23  Karl Berry  <karl@gnu.org>
73479
73480         * config/config.sub: update from prep.
73481
73482 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73483
73484         * modules/xalloc (Depends-on): Add exitfail.
73485         * modules/xmemcoll: Likewise.
73486
73487 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73488
73489         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
73490         over-parenthesization in macros.
73491
73492         Sync with coreutils.
73493
73494         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
73495         required by C99.
73496
73497         Use `exit_failure' for xalloc and xmemcoll instead of their own
73498         private exit-failure variables.
73499         * lib/xalloc.h (xalloc_exit_failure): Remove.
73500         * lib/xmalloc.c: Likewise.  Include exitfail.h.
73501         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
73502         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
73503         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
73504         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
73505
73506 2003-07-20  Jim Meyering  <jim@meyering.net>
73507
73508         * modules/closeout (Depends-on): Add exitfail.
73509         Suggestion from Bruno Haible.
73510
73511 2003-07-19  Karl Berry  <karl@gnu.org>
73512
73513         * config/config.sub: update from prep.
73514
73515 2003-07-18  Paul Eggert  <eggert@twinsun.com>
73516
73517         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
73518         Remove.
73519         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
73520         to test that it can stand by itself.  Include "exitfail.h".
73521         Clients should set exit_failure instead.
73522         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
73523
73524 2003-07-18  Bruno Haible  <bruno@clisp.org>
73525
73526         * modules/getndelim2: New file.
73527         * modules/getline: Share files with module getndelim2.
73528         * modules/getnline: Depend on getndelim2 instead of sharing files with
73529         it. Add getnline.c to lib_SOURCES.
73530         * MODULES.html.sh (func_all_modules): Add getndelim2.
73531
73532 2003-07-18  Bruno Haible  <bruno@clisp.org>
73533
73534         * m4/getndelim2.m4: New file.
73535         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
73536         invoke gl_PREREQ_GETNDELIM2.
73537         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
73538         gl_PREREQ_GETNDELIM2.
73539         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
73540         gl_GETNDELIM2.
73541
73542 2003-07-18  Bruno Haible  <bruno@clisp.org>
73543
73544         * lib/getndelim2.h: New file.
73545         * lib/getndelim2.c: Make into a module of its own. Include config.h,
73546         getndelim2.h.
73547         (getndelim2): Make non-static. Change return type to ssize_t.
73548         * lib/getline.h: Change argument names.
73549         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
73550         * lib/getnline.c: Include getndelim2.h.
73551
73552 2003-07-18  Andreas Schwab  <schwab@suse.de>
73553
73554         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
73555
73556 2003-07-17  Karl Berry  <karl@gnu.org>
73557
73558         * config/config.sub: update from prep.
73559
73560 2003-07-17  Bruno Haible  <bruno@clisp.org>
73561
73562         * modules/getnline: New file.
73563         * modules/getline: Add lib/getndelim2.c to source file list.
73564         * MODULES.html.sh (func_all_modules): Add getnline.
73565
73566 2003-07-17  Bruno Haible  <bruno@clisp.org>
73567
73568         * m4/getnline.m4: New file.
73569
73570 2003-07-17  Bruno Haible  <bruno@clisp.org>
73571
73572         * m4/Makefile.am.in: Remove file.
73573         * m4/Makefile.am: Remove file.
73574         * m4/Makefile.in: Remove file.
73575
73576 2003-07-17  Bruno Haible  <bruno@clisp.org>
73577
73578         * lib/getnline.h: New file.
73579         * lib/getnline.c: New file.
73580         * lib/getndelim2.c: New file, extracted from getline.c.
73581         (getndelim2): Renamed from getdelim2, with added nmax argument.
73582         * lib/getline.c: Include getndelim2.c.
73583         (getdelim2): Moved out to getndelim2.c.
73584         (getline, getdelim): Update.
73585
73586 2003-07-17  Bruno Haible  <bruno@clisp.org>
73587
73588         * lib/Makefile.am: Remove file.
73589         * lib/Makefile.in: Remove file.
73590
73591 2003-07-17  Bruno Haible  <bruno@clisp.org>
73592
73593         * configure.in: Remove file.
73594         * Makefile.in: Remove file.
73595
73596 2003-07-17  Bruno Haible  <bruno@clisp.org>
73597
73598         * MODULES.html.sh: Put the </BODY> right before </HTML>.
73599
73600 2003-07-16  Karl Berry  <karl@gnu.org>
73601
73602         * config/srclist-update: was running fixlicense twice, which caused
73603                 texinfo.tex to be nullified for some reason.  Simplify,
73604                 $gplsrc is no longer needed as far as I can see?
73605
73606 2003-07-16  Jim Meyering  <jim@meyering.net>
73607
73608         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
73609
73610 2003-07-15  Paul Eggert  <eggert@twinsun.com>
73611
73612         * config/srclist.txt: Get the following files from gettext-runtime/intl
73613         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
73614         ref-del.sin.  From Bruno Haible.
73615         * config/srclist-update (fixfile): Change grep pattern again, since the
73616         previous fix didn't work (there was another trailing $).  Use
73617         '[$]' to escape the $s.
73618
73619 2003-07-15  Karl Berry  <karl@gnu.org>
73620
73621         * lib/vasnprintf.c: update from gettext.
73622
73623 2003-07-15  Karl Berry  <karl@gnu.org>
73624
73625         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
73626         gets expanded when surrounded by '$'.
73627
73628 2003-07-15  Jim Meyering  <jim@meyering.net>
73629
73630         * modules/save-cwd: Don't depend on error.  From Derek Price.
73631
73632 2003-07-15  Jim Meyering  <jim@meyering.net>
73633
73634         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
73635
73636 2003-07-14  Simon Josefsson  <jas@extundo.com>
73637
73638         * modules/mempcpy: New file.
73639         * MODULES.html.sh (func_all_modules): Add mempcpy.
73640
73641 2003-07-14  Simon Josefsson  <jas@extundo.com>
73642
73643         * m4/mempcpy.m4: New file.
73644
73645 2003-07-14  Simon Josefsson  <jas@extundo.com>
73646
73647         * lib/mempcpy.h: New file.
73648         * lib/mempcpy.c: New file.
73649
73650 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73651
73652         * modules/getdate, modules/posixtm: Depend on mktime.
73653
73654 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73655
73656         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
73657         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
73658         unicodeio.c, unicodeio.h, unlocked-io.h:
73659         Switch from LGPL to GPL.
73660
73661 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73662
73663         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
73664         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
73665         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
73666         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
73667         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
73668         updated automatically by ../config/srclist-update.  This changes
73669         their license from LPGL to GPL.
73670
73671 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73672
73673         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
73674         assumed to refer to the root of the most recent stable gettext version.
73675         * config/srclistvars.sh: Add defaults for eggert.
73676         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
73677         Match "This program" as well as "The program".  This is needed
73678         for gettext.
73679
73680 2003-07-14  Jim Meyering  <jim@meyering.net>
73681
73682         Don't emit diagnostics.  Let callers do that.
73683         * lib/save-cwd.c: Don't include "error.h".
73684         (save_cwd): Don't call error.  Ensure that errno is valid
73685         when returning nonzero.
73686
73687         * lib/save-cwd.h (restore_cwd): Update prototype.
73688         * lib/save-cwd.c (restore_cwd): Remove two parameters.
73689         Simplify.  Don't call error upon failure.  Let callers do that.
73690         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
73691         when auditing is enabled.  But don't bother updating the #if.
73692
73693 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
73694
73695         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
73696         it breaks C++ compilation.
73697         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
73698
73699 2003-07-10  Simon Josefsson  <jas@extundo.com>
73700
73701         * modules/strchrnul (Makefile.am): Add strchrnul.h.
73702
73703 2003-07-10  Jim Meyering  <jim@meyering.net>
73704
73705         * m4/clock_time.m4: Remove trailing blank.
73706         * m4/intmax_t.m4: Likewise.
73707
73708 2003-07-10  Jim Meyering  <jim@meyering.net>
73709
73710         * lib/vasnprintf.c: Remove trailing blanks.
73711         Make cpp indentation consistent.
73712
73713 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73714
73715         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
73716         posixver.c, strftime.c, strnlen.c, strverscmp.c:
73717         Switch from LGPL to GPL.
73718
73719 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73720
73721         * config/srclist.txt: Sort sublists.  Add
73722         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
73723         that differ from gnulib for one reason or another; we'd like this list
73724         to be smaller but for now let's document what we have.
73725
73726 2003-07-08  Paul Eggert  <eggert@twinsun.com>
73727
73728         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
73729         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
73730         and sweeter "eval x=$x".
73731         * config/srclist.txt: Get lib/argp* from glibc.
73732
73733 2003-07-07  Paul Eggert  <eggert@twinsun.com>
73734
73735         * lib/mktime.c: Fix some boundary cases and remove need for floating
73736         point.
73737
73738         Issue a compile-time diagnostic if time_t is floating point, or if
73739         two's complement arithmetic is not in effect, or if arithmetic
73740         right shift does not propagate the sign.  These assumptions were
73741         all in the original code but they weren't checked.
73742
73743         (TIME_T_MIDPOINT, verify): New macros.
73744         (__isleap): Remove; it has integer overflow problems.
73745         (leapyear): New function, without those problems.
73746         (ydhms_tm_diff): Remove; splitting into two parts.
73747         (ydhms_diff): New function, containing the arithmetic part of
73748         the old ydhms_tm_diff function.  Issue a compile-time
73749         diagnostic if we are not using C99 integer division.
73750         Avoid casts when possible.
73751         (guess_time_tm): New function, containing the checking part of
73752         the old ydhms_tm_diff function.  Return the new value, rather than
73753         the difference between it and the old.  Accept a new argument T
73754         so that *T specifies the old value.  Check for overflow in the result.
73755
73756         (__mktime_internal): Use a time_t offset, not a long int offset.
73757         This undoes the 2003-06-04 change, which is no longer needed now
73758         that we have better overflow checking.
73759         (localtime_offset): Likewise.
73760
73761         (__mktime_internal): Avoid harmful overflow on hosts where time_t
73762         and long are 64-bit but int is only 32-bit.
73763         (ydhms_diff): Use long int to store year1 and yday1.
73764         Issue a compile-time diagnostic if long int is not wide enough.
73765
73766         (__mktime_internal): Use long int to store adjusted year and yday.
73767         Use plain C rather than preprocessor commands, if that doesn't
73768         affect efficiency.
73769         Check for overflow (and try to repair) after each probe
73770         rather than checking only at the very end.  This avoids some bugs
73771         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
73772         does not equal GMT offset at maximum time).
73773         Use integer to check for overflow rather than floating point; this
73774         is more portable to non-IEEE hosts, and is a tad faster.
73775         When we detect that we are oscillating between two values,
73776         don't check whether tm_isdst has the requested value, since
73777         we already know the answer.  When tm_isdst has the wrong value,
73778         use a different heuristic to find the right one, based on the
73779         extreme values actually observed in practice in tz2003a,
73780         rather than the (overly optimistic) "previous 3 calendar quarters".
73781
73782         (not_equal_tm, print_tm, check_result): Use "const T" rather than
73783         "T const" to accommodate glibc style.
73784         (check_result): Use less-confusing report format.  "long" -> "long int.
73785         (main): Likewise.
73786         Don't loop if the iteration overflows time_t.
73787         Allow a negative step in the iteration.
73788
73789 2003-07-06  Karl Berry  <karl@gnu.org>
73790
73791         * config/depcomp: update from automake.
73792         * config/config.sub: update from prep.
73793
73794 2003-07-03  Karl Berry  <karl@gnu.org>
73795
73796         * config/config.guess: update from prep.
73797
73798 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73799
73800         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
73801         xreadlink.c now includes it unconditionally.
73802
73803 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73804
73805         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
73806         having it depend on HAVE_SYS_TYPES_H.
73807
73808 2003-07-01  Bruno Haible  <bruno@clisp.org>
73809
73810         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
73811         <sys/types.h> should be sufficient.
73812         Reported by Paul Eggert.
73813
73814 2003-06-26  Karl Berry  <karl@gnu.org>
73815
73816         * config/depcomp: update from automake.
73817
73818 2003-06-26  Bruno Haible  <bruno@clisp.org>
73819
73820         * modules/human: Depend on module stdbool.
73821
73822 2003-06-25  Bruno Haible  <bruno@clisp.org>
73823
73824         * modules/readlink: New file.
73825         * modules/xreadlink: Depend on it.
73826         * MODULES.html.sh (func_all_modules): Add readlink.
73827
73828 2003-06-25  Bruno Haible  <bruno@clisp.org>
73829
73830         * m4/readlink.m4: New file.
73831
73832 2003-06-25  Bruno Haible  <bruno@clisp.org>
73833
73834         * lib/readlink.c: New file.
73835
73836 2003-06-22  Karl Berry  <karl@gnu.org>
73837
73838         * config/srclist.txt: update mkinstalldirs from automake.
73839         * config/mkinstalldirs: update.
73840
73841 2003-06-22  Bruno Haible  <bruno@clisp.org>
73842
73843         Portability to mingw32.
73844         * m4/ssize_t.m4: New file, from GNU gettext.
73845         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
73846         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
73847
73848 2003-06-22  Bruno Haible  <bruno@clisp.org>
73849
73850         * modules/safe-read: Add m4/ssize_t.m4.
73851         * modules/xreadlink: Add m4/ssize_t.m4.
73852
73853 2003-06-20  Bruno Haible  <bruno@clisp.org>
73854
73855         Assume C89, so PARAMS isn't needed.
73856         * lib/unicodeio.h (PARAMS): Remove.
73857         * lib/unicodeio.c: Don't use PARAMS.
73858
73859 2003-06-18  Karl Berry  <karl@gnu.org>
73860
73861         * config/config.{guess,sub}: update from prep.
73862
73863 2003-06-18  Jim Meyering  <jim@meyering.net>
73864
73865         Merge changes from coreutils.
73866         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
73867         Remove explicit declarations of xmalloc and realloc.
73868         Include xalloc.h.
73869         (read_utmp): Remove anachronistic cast of xmalloc.
73870
73871 2003-06-17  Paul Eggert  <eggert@twinsun.com>
73872
73873         Assume C89, so PARAMS isn't needed.
73874         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
73875         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
73876         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
73877         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
73878         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
73879         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
73880         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
73881         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
73882         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
73883         lib/xstrtod.h, lib/xstrtol.h: Likewise.
73884         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
73885         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
73886         no longer needed. Anyway, config.h should always be included before any
73887         other file.
73888
73889 2003-06-11  Simon Josefsson  <jas@extundo.com>
73890
73891         * modules/sysexits: New file.
73892         * MODULES.html.sh (func_all_modules): Add sysexits.
73893
73894 2003-06-11  Simon Josefsson  <jas@extundo.com>
73895
73896         * lib/sysexit_.h: New file.
73897
73898 2003-06-11  Derek Price  <derek@ximbiot.com>
73899
73900         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
73901         necessary.
73902
73903 2003-06-11  Bruno Haible  <bruno@clisp.org>
73904
73905         * m4/sysexits.m4: New file.
73906
73907 2003-06-10  Simon Josefsson  <jas@extundo.com>
73908
73909         * lib/argp.h: New file, from glibc.
73910         * lib/argp-ba.c: New file, from glibc.
73911         * lib/argp-eexst.c: New file, from glibc.
73912         * lib/argp-fmtstream.c: New file, from glibc.
73913         * lib/argp-fmtstream.h: New file, from glibc.
73914         * lib/argp-fs-xinl.c: New file, from glibc.
73915         * lib/argp-help.c: New file, from glibc.
73916         * lib/argp-namefrob.h: New file, from glibc.
73917         * lib/argp-parse.c: New file, from glibc.
73918         * lib/argp-pv.c: New file, from glibc.
73919         * lib/argp-pvh.c: New file, from glibc.
73920         * lib/argp-xinl.c: New file, from glibc.
73921
73922 2003-06-10  Simon Josefsson  <jas@extundo.com>
73923
73924         * modules/strchrnul: New file.
73925
73926 2003-06-10  Simon Josefsson  <jas@extundo.com>
73927
73928         * modules/argp: New file.
73929
73930 2003-06-10  Simon Josefsson  <jas@extundo.com>
73931
73932         * m4/strchrnul.m4: New file.
73933
73934 2003-06-10  Simon Josefsson  <jas@extundo.com>
73935
73936         * lib/strchrnul.h: New file.
73937         * lib/strchrnul.c: New file.
73938
73939 2003-06-10  Bruno Haible  <bruno@clisp.org>
73940
73941         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
73942
73943 2003-06-07  Karl Berry  <karl@gnu.org>
73944
73945         * config/config.{guess,sub}: update from prep.
73946
73947 2003-06-07  Jim Meyering  <jim@meyering.net>
73948
73949         * modules/strtod: Use $(...) notation, not @...@ for
73950         AC_REPLACE'd variables.
73951         * modules/localcharset: Likewise.
73952
73953 2003-06-07  Jim Meyering  <jim@meyering.net>
73954
73955         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
73956         in place of my name in the copyright comment.
73957         Remove definition and uses of __P.
73958
73959         From coreutils.
73960         * lib/stat.c: Don't declare xmalloc explicitly.
73961         Instead, include "xalloc.h".
73962         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
73963         xrealloc, and xcalloc return values.
73964         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
73965         Improve comment.
73966         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
73967
73968 2003-06-07  Bruno Haible  <bruno@clisp.org>
73969
73970         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
73971         avoid AC_CONFIG_LINKS.
73972         * modules/fnmatch (Makefile.am): Use explicit creation rule for
73973         fnmatch.h, to avoid AC_CONFIG_LINKS.
73974         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
73975
73976 2003-06-07  Bruno Haible  <bruno@clisp.org>
73977
73978         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
73979         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
73980         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73981         directory.
73982         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
73983         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73984         directory.
73985
73986 2003-06-06  Jim Meyering  <jim@meyering.net>
73987
73988         Merge from coreutils.
73989         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
73990         Consolidate declarations and initializations of *_base* locals.
73991
73992         Merge from coreutils.
73993         This avoids a core dump on systems without GNU putenv,
73994         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
73995         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
73996         (unsetenv): New static function, from GNU libc.
73997         (rpl_putenv): Use it.
73998
73999         * lib/modechange.c: Remove trailing blanks.
74000
74001         Merge from coreutils.
74002         * lib/fsusage.c: Remove declaration of statfs.
74003         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
74004
74005         * lib/posixtm.c: Include <stdbool.h> unconditionally.
74006
74007 2003-06-06  Jim Meyering  <jim@meyering.net>
74008
74009         * lib/stdbool_.h: Renamed from stdbool.h.in.
74010
74011 2003-06-06  Jim Meyering  <jim@meyering.net>
74012             Bruno Haible  <bruno@clisp.org>
74013
74014         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
74015         Adjust Makefile.am snippet not to redirect directly to target.
74016         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
74017
74018 2003-06-05  Paul Eggert  <eggert@twinsun.com>
74019
74020         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
74021         mismatch, look in future quarters as well as past.  This fixes a
74022         bug when processing fall-backwards gaps immediately after a long
74023         period of daylight-saving time.
74024
74025         * lib/mktime.c: Assume freestanding C89 or better.
74026         (HAVE_LIMITS_H): Remove.  Assume it's 1.
74027         (__P): Remove; not used.
74028         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
74029         (mktime, not_equal_tm, print_tm, check_result,
74030         main): Use prototypes.  Use const * where appropriate.
74031         (main): Fix typo in testing code that uncovered by above changes.
74032         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
74033
74034 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74035
74036         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
74037         locale.h, localeconv.  This merges changes from coreutils.
74038
74039         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
74040         It can be removed after the next Autoconf is released.
74041         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
74042         needed.
74043
74044 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74045
74046         * lib/mktime.c: Fix Debian bug 177940
74047         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
74048         (localtime_offset): Now long int, not time_t, because we want it
74049         to be guaranteed to be signed.  All uses changed.
74050         (__mktime_internal): If overflow would occur when adding offset,
74051         don't add it.
74052
74053         Merge 'human' changes from coreutils.  Rewrite to support
74054         locale-specific notations like thousands separators.
74055         * lib/human.c: Simplify authorship notice.
74056         Include human.h immediately after config.h.
74057         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
74058         <limits.h>: Do not include, since human.h does.
74059         (SIZE_MAX, UINTMAX_MAX): New macros.
74060         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
74061         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
74062         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
74063         (power_letter): Renamed from suffixes.
74064         (generate_suffix_backwards): Remove.
74065         (adjust_value): Now takes int style (because of human.h changes)
74066         and long double value (for greater precision on some platforms).
74067         (group_number): New function.
74068         (human_readable): Use it.  Use integer options, not enum.
74069         Put the options before the sizes in the arg list.
74070         Support all the new options.
74071         The old human_readable function has been removed;
74072         use inttostr.h instead.
74073         (human_readable, default_block_size, humblock):
74074         Use uintmax_t, not int, for block sizes.
74075         (human_readable_inexact, block_size_types): Remove.
74076         (block_size_opts): New constant.
74077         (human_options): Renamed from human_block_size, with new signature
74078         that allows block sizes up to UINTMAX_MAX.  All callers changed.
74079         * lib/human.h: Add copyright and authorship notice.
74080         Include <limits.h> and <stdbool.h> unconditionally.
74081         (PARAMS): Remove.  All uses removed.
74082         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
74083         (enum human_inexact_style): Remove tag; now a nameless enum.
74084         (human_floor, human_ceiling, human_round_to_even): Now have
74085         values 2, 0, 1 rather than -1, 1, 0.
74086         (human_group_digits, human_suppress_point_zero, human_autoscale,
74087         human_base_1024, human_SI, human_B): New constants.
74088         (human_readable_inexact, human_block_size): Remove.
74089         (human_readable): Size args are now uintmax_t, not int.
74090         (human_options): New decl.
74091
74092         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
74093         unnecessary now that we assume C89 or better.  This change
74094         imported from coreutils.
74095
74096         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74097         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
74098         in the 2003-05-30 sync from glibc.
74099
74100         .h files should stand alone, but we shouldn't include <sys/types.h>
74101         if we can get away with just <stddef.h>.
74102
74103         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
74104         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
74105         rather than <sys/types.h>, as we merely need size_t.
74106         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
74107         to get size_t.
74108         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
74109         Include <stdio.h>, to get FILE.
74110         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
74111         memcasecmp.h has included <stddef.h> and all we need is size_t.
74112         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
74113         our interface, instead of including <sys/types.h>
74114
74115 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74116
74117         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
74118         now, as glibc mktime is buggy on non-glibc systems.
74119
74120 2003-06-03  Karl Berry  <karl@gnu.org>
74121
74122         * config/config.sub: update from prep.
74123
74124 2003-06-02  Paul Eggert  <eggert@twinsun.com>
74125
74126         [from coreutils]
74127         Fix some minor time-related bugs with POSIX time arguments.
74128         Some valid time stamps were being rejected (notably -1, and
74129         time stamps before 1900 on 64-bit hosts).  And some invalid
74130         time stamps were being accepted, e.g. September 31.
74131
74132         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
74133         that we can return (time_t) -1 successfully.
74134         * lib/posixtm.c: Likewise.
74135         [HAVE_STDBOOL_H]: Include <stdbool.h>.
74136         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
74137         (t): Remove static var.
74138         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
74139         of static var.  All uses changed.
74140         (year): Do not reject years before 1900; they can occur with
74141         64-bit time_t.
74142         (posix_time_parse): Do not check for out-of-range components;
74143         that is now the caller's responsibility, since our checks were
74144         only approximations.
74145         (posixtime): Use mktime to check for out-of-range components,
74146         since it knows them exactly.
74147         If mktime returns (time_t) -1, check whether an error actually occurred
74148         by invoking localtime on -1.
74149         (main) [TEST_POSIXTIME]: Check for input data errors, and report
74150         posixtime failures better.
74151         Improve the test data (in comments only).
74152
74153 2003-06-02  Karl Berry  <karl@gnu.org>
74154
74155         * config/mkinstalldirs (version): new variable.
74156         (--version): new option.
74157         (usage): improve message.
74158
74159 2003-05-30  Karl Berry  <karl@gnu.org>
74160
74161         * lib/mktime.c: update from libc.
74162
74163 2003-05-30  Bruno Haible  <bruno@clisp.org>
74164
74165         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
74166         * config/config.rpath: Upgrade to gettext-0.12.1.
74167
74168 2003-05-30  Bruno Haible  <bruno@clisp.org>
74169
74170         * m4/gettext.m4: Upgrade to gettext-0.12.1.
74171         * m4/nls.m4: New file, from gettext-0.12.1.
74172         * m4/po.m4: New file, from gettext-0.12.1.
74173         * m4/progtest.m4: Upgrade to gettext-0.12.1.
74174
74175 2003-05-30  Bruno Haible  <bruno@clisp.org>
74176
74177         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
74178         * lib/localcharset.h: Likewise.
74179         * lib/localcharset.c: Likewise.
74180
74181 2003-05-29  Karl Berry  <karl@gnu.org>
74182
74183         * config/config.rpath: update from gettext.
74184
74185 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74186
74187         Assume the headers required for C89 freestanding compilers.
74188         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
74189         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
74190         * m4/human.m4 (gl_HUMAN): Likewise.
74191         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
74192         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
74193         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74194         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
74195         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74196         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
74197
74198 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74199
74200         Assume the headers required for C89 freestanding compilers.
74201         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
74202         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
74203         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
74204         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
74205         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
74206         define, since <limits.h> is guaranteed to do that.
74207         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
74208         * lib/exclude.c: Include <stdbool.h> unconditionally.
74209         * lib/tempname.c: Include <stddef.h> unconditionally.
74210         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
74211         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
74212         <stddef.h> does that.
74213         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
74214         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
74215         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
74216         needed.
74217         * lib/xstrtol.c: Likewise.
74218         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
74219         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
74220
74221         * lib/addext.c (addext): Use assignment rather than cast, to avoid
74222         warnings on some platforms.
74223
74224         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74225         arbitrarily.
74226
74227 2003-05-26  Jim Meyering  <jim@meyering.net>
74228
74229         Merge in a change from coreutils:
74230         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
74231         that is guaranteed to be `no'.  Use `no_such_member' to indicate
74232         that condition, rather than `-1' which is slightly misleading.
74233         Change the name of the cache variable to have the gl_ prefix.
74234         Prompted by a patch from Richard Dawe for DJGPP.
74235
74236 2003-05-24  Karl Berry  <karl@gnu.org>
74237
74238         * config/config.guess: update from prep.
74239
74240 2003-05-22  Karl Berry  <karl@gnu.org>
74241
74242         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
74243
74244 2003-05-20  Karl Berry  <karl@gnu.org>
74245
74246         * config/config.guess: update from prep.
74247
74248 2003-05-18  Karl Berry  <karl@gnu.org>
74249
74250         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
74251         might actually be set by the user.
74252
74253         * config/depcomp, install-sh, mdate-sh: update from automake.
74254
74255 2003-05-17  Bruno Haible  <bruno@clisp.org>
74256
74257         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
74258         invalid expansion for AC_EGREP_CPP.
74259         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
74260         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
74261         Suggested by Akim Demaille <akim@epita.fr> in
74262         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
74263
74264 2003-05-12  Jim Meyering  <jim@meyering.net>
74265
74266         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
74267         the space-padded-by-default conversion specifiers, %e, %k, %l.
74268
74269 2003-05-12  Bruno Haible  <bruno@clisp.org>
74270
74271         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
74272         the string is longer than 4 KB.
74273
74274 2003-05-11  Karl Berry  <karl@gnu.org>
74275
74276         * config/config.{guess,sub}: update from prep.
74277
74278 2003-05-09  Bruno Haible  <bruno@clisp.org>
74279
74280         * modules/error: Add m4/strerror_r.m4 to file list.
74281
74282 2003-05-03  Bruno Haible  <bruno@clisp.org>
74283
74284         Upgrade to Unicode-4.0.
74285         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
74286         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
74287         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
74288         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
74289         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
74290         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
74291         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
74292         Change width of U+E0100..U+E01EF from 1 to 0.
74293
74294 2003-04-25  Jim Meyering  <jim@meyering.net>
74295
74296         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
74297         of type size_t, not int.
74298
74299 2003-04-25  Bruno Haible  <bruno@clisp.org>
74300
74301         * lib/copy-file.c: Include <stddef.h>, for size_t.
74302
74303 2003-04-21  Paul Eggert  <eggert@twinsun.com>
74304
74305         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
74306         code which expansion is under static control.  Patch imported from
74307         Akim Demaille's patch to Bison; see
74308         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
74309
74310 2003-04-14  Bruno Haible  <bruno@clisp.org>
74311
74312         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
74313
74314 2003-04-11  Jim Meyering  <jim@meyering.net>
74315
74316         Merge changes from Coreutils.
74317
74318         2003-03-22  Jim Meyering  <jim@meyering.net>
74319
74320         * lib/strftime.c (widen): Cast alloca return value to proper type.
74321
74322         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
74323
74324         From GNU libc.
74325         * lib/strftime.c (my_strftime): Handle very large width
74326         specifications for numeric values correctly.  Improve checks for
74327         overflow.
74328
74329         2003-01-19  Jim Meyering  <jim@meyering.net>
74330
74331         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
74332         definitions.
74333         (nl_get_alt_digit) [! defined my_strftime]: Define.
74334         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
74335         _nl_get_alt_digit and _nl_get_walt_digit.
74336
74337         * lib/strftime.c (my_strftime): Merge in locale-related changes from
74338         libc. These changes have no effect outside of _LIBC.
74339
74340 2003-04-10  Bruno Haible  <bruno@clisp.org>
74341
74342         * modules/findprog: New file.
74343         * MODULES.html.sh (func_all_modules): Add it.
74344
74345 2003-04-10  Bruno Haible  <bruno@clisp.org>
74346
74347         * m4/findprog.m4: New file.
74348         * m4/eaccess.m4: New file.
74349
74350 2003-04-10  Bruno Haible  <bruno@clisp.org>
74351
74352         * lib/findprog.h: New file, from GNU gettext.
74353         * lib/findprog.c: New file, from GNU gettext.
74354
74355 2003-04-05  Jim Meyering  <jim@meyering.net>
74356
74357         Merge changes from Coreutils.
74358
74359         * lib/exclude.h (PARAMS): Remove definition and uses.
74360         * lib/exclude.c: Remove uses of `PARAMS'.
74361
74362         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
74363         Add test-cases for DOS filenames. Declare program_name.
74364         (main): Set up program_name.  Patch by Rich Dawe.
74365
74366         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74367         error from mntctl.
74368         Use mntctl's return value to drive the entry-processing loop, since
74369         we can't rely on the value of the vmt_length member in the last
74370         entry.  On some systems doing so could result in exhausting
74371         virtual memory.  Based in part on a patch from Mike Jetzer.
74372
74373 2003-04-04  Bruno Haible  <bruno@clisp.org>
74374
74375         * modules/linebreak: New file.
74376         * MODULES.html.sh (func_all_modules): Add it.
74377
74378 2003-04-04  Bruno Haible  <bruno@clisp.org>
74379
74380         * m4/linebreak.m4: New file.
74381
74382 2003-04-04  Bruno Haible  <bruno@clisp.org>
74383
74384         * lib/linebreak.h: New file, from GNU gettext.
74385         * lib/linebreak.c: New file, from GNU gettext with slight
74386         modifications.
74387         * lib/lbrkprop.h: New file, from GNU gettext.
74388
74389 2003-04-03  Bruno Haible  <bruno@clisp.org>
74390
74391         * modules/utf8-ucs4: New file.
74392         * modules/utf16-ucs4: New file.
74393         * modules/ucs4-utf8: New file.
74394         * modules/ucs4-utf16: New file.
74395         * MODULES.html.sh (func_all_modules): Add them.
74396
74397 2003-04-03  Bruno Haible  <bruno@clisp.org>
74398
74399         * m4/utf-ucs4.m4: New file.
74400         * m4/ucs4-utf.m4: New file.
74401
74402 2003-04-03  Bruno Haible  <bruno@clisp.org>
74403
74404         * lib/utf8-ucs4.h: New file, from GNU gettext.
74405         * lib/utf16-ucs4.h: New file, from GNU gettext.
74406         * lib/ucs4-utf8.h: New file, from GNU gettext.
74407         * lib/ucs4-utf16.h: New file, from GNU gettext.
74408
74409 2003-04-02  Bruno Haible  <bruno@clisp.org>
74410
74411         * modules/binary-io: New file.
74412         * MODULES.html.sh (func_all_modules): Add it.
74413
74414 2003-04-02  Bruno Haible  <bruno@clisp.org>
74415
74416         * lib/binary-io.h: New file, from GNU gettext.
74417
74418 2003-04-01  Bruno Haible  <bruno@clisp.org>
74419
74420         * modules/pathname: New file.
74421         * MODULES.html.sh (func_all_modules): Add it.
74422
74423 2003-04-01  Bruno Haible  <bruno@clisp.org>
74424
74425         * lib/pathname.h: New file, from GNU gettext.
74426         * lib/concatpath.c: New file, from GNU gettext.
74427
74428 2003-03-30  Bruno Haible  <bruno@clisp.org>
74429
74430         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
74431
74432 2003-03-30  Bruno Haible  <bruno@clisp.org>
74433
74434         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
74435         function chown() doesn't exist.
74436
74437 2003-03-28  Bruno Haible  <bruno@clisp.org>
74438
74439         * modules/copy-file: New file.
74440         * MODULES.html.sh (func_all_modules): Add it.
74441
74442 2003-03-28  Bruno Haible  <bruno@clisp.org>
74443
74444         * m4/copy-file.m4: New file.
74445
74446 2003-03-28  Bruno Haible  <bruno@clisp.org>
74447
74448         * lib/copy-file.h: New file, from GNU gettext.
74449         * lib/copy-file.c: New file, from GNU gettext.
74450
74451 2003-03-18  Jim Meyering  <jim@meyering.net>
74452
74453         * lib/quote.c (quote_n): Fix typo in comment.
74454
74455 2003-03-18  Bruno Haible  <bruno@clisp.org>
74456
74457         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
74458         checking.
74459         * m4/onceonly_2_57.m4: Likewise.
74460
74461 2003-03-17  Bruno Haible  <bruno@clisp.org>
74462
74463         * m4/onceonly.m4: Require autoconf 2.54 or newer.
74464         (m4_quote): Remove macro.
74465         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
74466
74467 2003-03-14  Jim Meyering  <jim@meyering.net>
74468
74469         Merge changes from Coreutils.
74470         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
74471         to be const, in order to avoid warnings.
74472         (obstack_room): Likewise.
74473         (obstack_empty_p): Likewise.
74474
74475 2003-03-14  Bruno Haible  <bruno@clisp.org>
74476
74477         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
74478         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
74479
74480 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74481
74482         Merge changes from Bison.
74483         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
74484         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
74485         when compiling Bison 1.875's `bitset bset = obstack_alloc
74486         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
74487         * lib/hash.c: Include <stdbool.h> unconditionally.
74488
74489 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74490
74491         * m4/onceonly.m4 (m4_quote): New macro.
74492         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
74493         Quote AC_FOREACH variable-expansions properly.
74494
74495 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74496
74497         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
74498
74499 2003-03-09  Paul Eggert  <eggert@twinsun.com>
74500
74501         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
74502         Reported by Bruce Becker; see:
74503         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
74504
74505 2003-03-03  Paul Eggert  <eggert@twinsun.com>
74506             Bruno Haible  <bruno@clisp.org>
74507
74508         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
74509         Reported by John Hughes, see
74510         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
74511
74512 2003-02-20  Bruno Haible  <bruno@clisp.org>
74513
74514         * MODULES.html.sh (func_all_modules): Add poll.
74515
74516 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74517
74518         * modules/poll: New file.
74519
74520 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74521
74522         * lib/poll_.h: New file.
74523         * lib/poll.c: New file.
74524
74525 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74526
74527         * m4/poll.m4: New file.
74528
74529 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74530
74531         * modules/mathl: New file.
74532
74533 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74534
74535         * lib/mathl.h: New file.
74536         * lib/acosl.c: New file.
74537         * lib/asinl.c: New file.
74538         * lib/atanl.c: New file.
74539         * lib/ceill.c: New file.
74540         * lib/cosl.c: New file.
74541         * lib/expl.c: New file.
74542         * lib/floorl.c: New file.
74543         * lib/frexpl.c: New file.
74544         * lib/ldexpl.c: New file.
74545         * lib/logl.c: New file.
74546         * lib/sincosl.c: New file.
74547         * lib/sinl.c: New file.
74548         * lib/sqrtl.c: New file.
74549         * lib/tanl.c: New file.
74550         * lib/trigl.c: New file.
74551         * lib/trigl.h: New file.
74552
74553 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74554
74555         * m4/mathl.m4: New file.
74556
74557 2003-02-18  Bruno Haible  <bruno@clisp.org>
74558
74559         * MODULES.html.sh (func_all_modules): Add mathl.
74560
74561 2003-02-17  Bruno Haible  <bruno@clisp.org>
74562
74563         * modules/mkdtemp: New module.
74564         * MODULES.html.sh (func_all_modules): Add it.
74565
74566 2003-02-17  Bruno Haible  <bruno@clisp.org>
74567
74568         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
74569
74570 2003-02-17  Bruno Haible  <bruno@clisp.org>
74571
74572         * lib/mkdtemp.h: New file, from GNU gettext.
74573         * lib/mkdtemp.c: New file, from GNU gettext.
74574
74575 2003-02-02  Jim Meyering  <jim@meyering.net>
74576
74577         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
74578         e.g. glibc-2.2.93.
74579
74580 2003-01-31  Bruno Haible  <bruno@clisp.org>
74581
74582         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
74583         'rpl_rename'.
74584         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
74585         'rpl_strnlen'.
74586         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
74587         'rpl_strtod'.
74588         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
74589         'rpl_utime'.
74590
74591 2003-01-31  Bruno Haible  <bruno@clisp.org>
74592
74593         * lib/rename.c: #undef rename before defining rpl_rename.
74594         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
74595
74596 2003-01-30  Bruno Haible  <bruno@clisp.org>
74597
74598         * modules/vasnprintf, modules/vasprintf: New modules.
74599         * MODULES.html.sh (func_all_modules): Add them.
74600
74601 2003-01-30  Bruno Haible  <bruno@clisp.org>
74602
74603         * m4/signed.m4: New file, from GNU gettext.
74604         * m4/longdouble.m4: New file, from GNU gettext.
74605         * m4/wchar_t.m4: New file, from GNU gettext.
74606         * m4/wint_t.m4: New file, from GNU gettext.
74607         * m4/vasnprintf.m4: New file.
74608         * m4/vasprintf.m4: New file.
74609
74610 2003-01-30  Bruno Haible  <bruno@clisp.org>
74611
74612         * lib/printf-args.h: New file, from GNU gettext.
74613         * lib/printf-args.c: New file, from GNU gettext.
74614         * lib/printf-parse.h: New file, from GNU gettext.
74615         * lib/printf-parse.c: New file, from GNU gettext.
74616         * lib/vasnprintf.h: New file, from GNU gettext.
74617         * lib/vasnprintf.c: New file, from GNU gettext.
74618         * lib/asnprintf.c: New file, from GNU gettext.
74619         * lib/vasprintf.h: New file, from GNU gettext with modifications.
74620         * lib/vasprintf.c: New file, from GNU gettext.
74621         * lib/asprintf.c: New file, from GNU gettext.
74622
74623 2003-01-29  Bruno Haible  <bruno@clisp.org>
74624
74625         * modules/stpncpy: New module.
74626         * MODULES.html.sh (func_all_modules): Add it.
74627
74628 2003-01-29  Bruno Haible  <bruno@clisp.org>
74629
74630         * m4/stpncpy.m4: New file.
74631
74632 2003-01-29  Bruno Haible  <bruno@clisp.org>
74633
74634         * lib/stpncpy.h: New file, from GNU gettext with modifications.
74635         * lib/stpncpy.c: New file, from GNU gettext with modifications.
74636
74637 2003-01-28  Bruno Haible  <bruno@clisp.org>
74638
74639         * modules/c-ctype: New module.
74640         * MODULES.html.sh (func_all_modules): Add it.
74641
74642 2003-01-28  Bruno Haible  <bruno@clisp.org>
74643
74644         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
74645         Paul Eggert.
74646         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
74647         Paul Eggert.
74648
74649 2003-01-27  Bruno Haible  <bruno@clisp.org>
74650
74651         * modules/xsetenv: New module.
74652         * MODULES.html.sh (func_all_modules): Add it.
74653
74654 2003-01-27  Bruno Haible  <bruno@clisp.org>
74655
74656         * lib/xsetenv.h: New file, from GNU gettext.
74657         * lib/xsetenv.c: New file, from GNU gettext.
74658
74659 2003-01-23  Jim Meyering  <jim@meyering.net>
74660
74661         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
74662         from working on systems without dirfd (at least Irix and OSF1/Tru64).
74663
74664 2003-01-23  Bruno Haible  <bruno@clisp.org>
74665
74666         * modules/minmax: New module.
74667         * MODULES.html.sh (func_all_modules): Add it.
74668
74669 2003-01-23  Bruno Haible  <bruno@clisp.org>
74670
74671         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
74672         Eggert.
74673
74674 2003-01-22  Bruno Haible  <bruno@clisp.org>
74675
74676         * modules/exit: New module.
74677         * MODULES.html.sh (func_all_modules): Add it.
74678
74679 2003-01-22  Bruno Haible  <bruno@clisp.org>
74680
74681         * lib/exit.h: New file, from GNU gettext.
74682
74683 2003-01-19  Bruno Haible  <bruno@clisp.org>
74684
74685         * gnulib-tool: Recognize option --extract-maintainer.
74686         (func_get_maintainer): New function.
74687         * modules/*: Add Maintainer entry.
74688
74689 2003-01-16  Jim Meyering  <jim@meyering.net>
74690
74691         * m4/regex.m4: The `regex' struct is both input and output.
74692         Initialize it before each use.  Patch by Tim Waugh.
74693
74694 2003-01-16  Bruno Haible  <bruno@clisp.org>
74695
74696         * MODULES.html.sh: Add a table of contents. Add the module name as
74697         leftmost column. Add hyperlinks.
74698
74699 2003-01-15  Bruno Haible  <bruno@clisp.org>
74700
74701         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
74702
74703 2003-01-15  Bruno Haible  <bruno@clisp.org>
74704
74705         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
74706         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
74707         suffix.
74708
74709 2003-01-15  Bruno Haible  <bruno@clisp.org>
74710
74711         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
74712
74713 2003-01-15  Bruno Haible  <bruno@clisp.org>
74714
74715         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
74716         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
74717
74718 2003-01-14  Jim Meyering  <jim@meyering.net>
74719
74720         * lib/same.c (same_name): Tweak a comment.
74721
74722 2003-01-14  Bruno Haible  <bruno@clisp.org>
74723
74724         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
74725         when a string comparison is sufficient.
74726
74727 2003-01-14  Bruno Haible  <bruno@clisp.org>
74728
74729         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
74730         'unsigned int'.
74731
74732 2003-01-14  Bruno Haible  <bruno@clisp.org>
74733
74734         * lib/hash-pjw.c: Add comment about low quality of this function.
74735
74736 2003-01-13  Bruno Haible  <bruno@clisp.org>
74737
74738         * modules/stpcpy: Distribute lib/stpcpy.h.
74739         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
74740
74741 2003-01-13  Bruno Haible  <bruno@clisp.org>
74742
74743         * modules/*: Add a description.
74744         * modules/strpbrk: Fix Makefile.am snippet.
74745         * modules/strtoimax: Fix dependencies.
74746         * modules/strtoumax: Likewise.
74747
74748 2003-01-13  Bruno Haible  <bruno@clisp.org>
74749
74750         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
74751         * modules/alloca (Makefile.am): All object files depend on alloca.h.
74752         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
74753
74754 2003-01-13  Bruno Haible  <bruno@clisp.org>
74755
74756         * gnulib-tool (func_create_testdir): Store config/* files in the main
74757         directory.
74758         * config.rpath: Move to ...
74759         * config/config.rpath: ... here.
74760         * modules/gettext: Contains config/config.rpath, not config.rpath.
74761         * modules/iconv: Likewise.
74762
74763 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74764
74765         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74766         to avoid collisions with libcurses and libreadline.
74767
74768         * m4/getstr.m4: Remove.
74769         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
74770
74771 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74772
74773         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74774         to avoid collisions with libcurses and libreadline.
74775
74776         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
74777         * lib/getstr.h, getstr.c: Remove.
74778         * lib/getline.c: Include "getline.h", to check interface.
74779         Move body of old getstr.c here: this defines MIN_CHUNK and
74780         declares getdelim2, which is renamed from getstr.
74781         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
74782
74783         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
74784         All uses changed.
74785         * lib/linebuffer.h: Likewise.
74786         (readline): Remove backward-compatibility macro.
74787
74788 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74789
74790         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74791         to avoid collisions with libcurses and libreadline.
74792         * getstr: Remove.
74793         * MODULES.html.sh: Remove getstr.
74794         * modules/getline: Depend on unlocked-io, not getstr.
74795
74796 2003-01-12  Jim Meyering  <jim@meyering.net>
74797
74798         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
74799
74800 2003-01-10  Bruno Haible  <bruno@clisp.org>
74801
74802         * modules/alloca: Change Makefile.am requirements. Simplify Include
74803         requirements. Add lib/alloca_.h to file list.
74804
74805 2003-01-10  Bruno Haible  <bruno@clisp.org>
74806
74807         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
74808
74809 2003-01-10  Bruno Haible  <bruno@clisp.org>
74810
74811         * lib/alloca_.h: New file.
74812         * lib/getdate.y: Unconditionally include alloca.h.
74813         * lib/makepath.c: Likewise.
74814         * lib/setenv.c: Likewise.
74815         * lib/userspec.c: Likewise.
74816
74817 2003-01-09  Karl Berry  <karl@gnu.org>
74818
74819         * MODULES.html.sh: include `dirname $0` in PATH, to find
74820         gnulib-tool.
74821
74822 2003-01-09  Bruno Haible  <bruno@clisp.org>
74823
74824         * modules/stdbool: Change configure.ac, Makefile.am requirements.
74825         Simplify Include requirements. Add lib/stdbool.h.in to file list.
74826
74827 2003-01-09  Bruno Haible  <bruno@clisp.org>
74828
74829         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
74830
74831 2003-01-09  Bruno Haible  <bruno@clisp.org>
74832
74833         * lib/stdbool.h.in: New file.
74834
74835 2003-01-09  Bruno Haible  <bruno@clisp.org>
74836
74837         * gnulib-tool (func_all_modules): Ignore files ending in ~.
74838         * MODULES.html.sh: Likewise.
74839
74840 2003-01-08  Jim Meyering  <jim@meyering.net>
74841
74842         * lib/full-write.c: Undefine and define-away `const' after inclusion
74843         of errno.h, not before.  Suggestion from Bruno Haible.
74844
74845 2003-01-08  Bruno Haible  <bruno@clisp.org>
74846
74847         * modules/full-read: Depend on full-write.
74848
74849 2003-01-08  Bruno Haible  <bruno@clisp.org>
74850
74851         * lib/safe-read.c: Include specification header first, to ensure its
74852         selfcontainedness.
74853         * lib/full-write.c: Likewise.
74854
74855 2003-01-07  Jim Meyering  <jim@meyering.net>
74856
74857         * lib/full-write.c: Rework so that it may serve to define full_read,
74858         too.
74859         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
74860
74861 2003-01-07  Bruno Haible  <bruno@clisp.org>
74862
74863         * lib/strtoimax.c: Include <stdint.h> as an alternative to
74864         <inttypes.h>.
74865         * lib/xstrtol.h: Likewise.
74866         * lib/xstrtoimax.c: Likewise.
74867         * lib/xstrtoumax.c: Likewise.
74868         * lib/human.h: Likewise.
74869
74870         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
74871         on systems that have <inttypes.h> but not <stdint.h>.
74872
74873 2003-01-07  Bruno Haible  <bruno@clisp.org>
74874
74875         * MODULES.html.sh: Add copyright notice.
74876         (missed_files): Omit CVS directory entries.
74877         (func_module): Make it work with sed-3.02.
74878         * MODULES.txt: Remove file.
74879
74880 2003-01-06  Jim Meyering  <jim@meyering.net>
74881
74882         * lib/version-etc.c: Update year in translatable copyright string.
74883
74884 2003-01-03  Karl Berry  <karl@gnu.org>
74885
74886         * config/config.{guess,sub}: update from prep.
74887
74888 2003-01-02  Karl Berry  <karl@gnu.org>
74889
74890         * doc/COPYING.DOC: belatedly updated to 1.2.
74891
74892 2003-01-01  Karl Berry  <karl@gnu.org>
74893
74894         * gnulib-tool (func_verify_module): report module name $module in
74895         error message, not $1.
74896         * gnulib-tool (create-testdir): don't complain if destdir couldn't
74897         be created, only if it doesn't exist.
74898         * gnulib-tool (last_checkin_date): don't expand the $Date here.
74899
74900 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74901
74902         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
74903
74904 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74905
74906         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
74907         memcmp if strcoll doesn't work.
74908
74909 2002-12-31  Bruno Haible  <bruno@clisp.org>
74910
74911         * lib/utime.c (utime_null): No need to call ftruncate if the file was
74912         nonempty.
74913
74914 2002-12-31  Bruno Haible  <bruno@clisp.org>
74915
74916         * lib/memcoll.c (STRCOLL): New macro.
74917         (memcoll): Use it.
74918
74919 2002-12-31  Bruno Haible  <bruno@clisp.org>
74920
74921         * lib/localcharset.h: New file.
74922         * lib/localcharset.c: Include it.
74923         * lib/unicodeio.c: Likewise.
74924
74925 2002-12-31  Bruno Haible  <bruno@clisp.org>
74926
74927         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
74928         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
74929
74930 2002-12-31  Bruno Haible  <bruno@clisp.org>
74931
74932         * lib/getline.h: Include <stddef.h>, for size_t.
74933
74934         * lib/unicodeio.h: Include <stddef.h>, for size_t.
74935         * lib/unicodeio.c: Don't include <stddef.h>.
74936
74937 2002-12-31  Bruno Haible  <bruno@clisp.org>
74938
74939         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
74940         HAVE_TM_ZONE.
74941
74942 2002-12-24  Karl Berry  <karl@gnu.org>
74943
74944         * config/config.guess: update from prep.
74945
74946 2002-12-24  Bruno Haible  <bruno@clisp.org>
74947
74948         General infrasructure.
74949         * m4/README: Rewritten.
74950         * m4/onceonly.m4: New file.
74951         * m4/onceonly_2_57.m4: New file.
74952
74953         Module atexit.
74954         * m4/atexit.m4: New file.
74955
74956         Module strtod.
74957         * m4/strtod.m4: New file.
74958
74959         Module strtol.
74960         * m4/strtol.m4: New file.
74961
74962         Module strtoul.
74963         * m4/strtoul.m4: New file.
74964
74965         Module memchr.
74966         * m4/memchr.m4: New file.
74967
74968         Module memcmp.
74969         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
74970         (jm_FUNC_MEMCMP): Invoke it.
74971
74972         Module memcpy.
74973         * m4/memcpy.m4: New file.
74974
74975         Module memmove.
74976         * m4/memmove.m4: New file.
74977
74978         Module memset.
74979         * m4/memset.m4: New file.
74980
74981         Module strcspn.
74982         * m4/strcspn.m4: New file.
74983
74984         Module strpbrk.
74985         * m4/strpbrk.m4: New file.
74986
74987         Module strstr.
74988         * m4/strstr.m4: New file.
74989
74990         Module strerror.
74991         * m4/strerror.m4: New file.
74992
74993         Module mktime.
74994         * m4/mktime.m4: Renamed from jm-mktime.m4.
74995         (gl_PREREQ_MKTIME): New macro.
74996         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
74997
74998         Module malloc.
74999         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
75000         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
75001         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
75002
75003         Module realloc.
75004         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
75005         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
75006         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
75007
75008         Module strftime.
75009         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
75010         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
75011         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
75012         gl_TM_GMTOFF.
75013         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
75014
75015         Module xalloc.
75016         * m4/xalloc.m4: New file.
75017
75018         Module alloca.
75019         * m4/alloca.m4: New file.
75020
75021         Module putenv.
75022         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
75023         (jm_FUNC_PUTENV): Invoke it.
75024
75025         Module setenv.
75026         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
75027         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
75028         when invoked twice.
75029         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
75030         gt_FUNC_SETENV.
75031
75032         Module memrchr.
75033         * m4/memrchr.m4: New file.
75034
75035         Module stpcpy.
75036         * m4/stpcpy.m4: New file.
75037
75038         Module strcase.
75039         * m4/strcase.m4: New file.
75040
75041         Module strdup.
75042         * m4/strdup.m4: New file.
75043
75044         Module strnlen.
75045         * m4/strnlen.m4: New file.
75046
75047         Module strndup.
75048         * m4/strndup.m4: New file.
75049
75050         Module xstrtod.
75051         * m4/xstrtod.m4: New file.
75052
75053         Module xstrtol.
75054         * m4/xstrtol.m4: New file.
75055
75056         Module getdate.
75057         * m4/getdate.m4: New file.
75058
75059         Module unlocked-io.
75060         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
75061         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
75062         * m4/jm-glibc-io.m4n: Remove file.
75063
75064         Module long-options.
75065         * m4/long-options.m4: New file.
75066
75067         Module md5.
75068         * m4/md5.m4: New file.
75069
75070         Module sha.
75071         * m4/sha.m4: New file.
75072
75073         Module getstr.
75074         * m4/getstr.m4: New file.
75075
75076         Module getline.
75077         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
75078         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
75079         <sys/types.h>, for size_t. Use the function name gnu_getline, not
75080         simply getline. Infoke gl_PREREQ_GETLINE.
75081
75082         Module obstack.
75083         * m4/obstack.m4: New file.
75084
75085         Module hash.
75086         * m4/hash.m4: New file.
75087
75088         Module readtokens.
75089         * m4/readtokens.m4: New file.
75090
75091         Module strverscmp.
75092         * m4/strverscmp.m4: New file.
75093
75094         Module stdbool.
75095         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
75096         OSF/1.
75097
75098         Module strtoll.
75099         * m4/strtoll.m4: New file.
75100
75101         Module strtoull.
75102         * m4/strtoull.m4: New file.
75103
75104         Module strtoimax.
75105         * m4/strtoimax.m4: New file.
75106
75107         Module strtoumax.
75108         * m4/strtoumax.m4: New file.
75109
75110         Module xstrtoimax.
75111         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
75112         jm_AC_PREREQ_XSTRTOIMAX.
75113         Moved the strtol prerequisites to strtol.m4.
75114         Moved the strtoll prerequisites to strtoll.m4.
75115         Moved the strtoimax prerequisites to strtoimax.m4.
75116
75117         Module xstrtoumax.
75118         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
75119         jm_AC_PREREQ_XSTRTOUMAX.
75120         Moved the strtoul prerequisites to strtoul.m4.
75121         Moved the strtoull prerequisites to strtoull.m4.
75122         Moved the strtoumax prerequisites to strtoumax.m4.
75123
75124         Module chown.
75125         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
75126         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
75127
75128         Module dup2.
75129         * m4/dup2.m4: New file.
75130
75131         Module ftruncate.
75132         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
75133         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
75134
75135         Module getgroups.
75136         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
75137         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
75138
75139         Module gettimeofday.
75140         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
75141         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
75142         gl_PREREQ_GETTIMEOFDAY.
75143
75144         Module mkdir.
75145         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
75146         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
75147
75148         Module mkstemp.
75149         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
75150         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
75151         jm_AC_TYPE_UINTMAX_T.
75152         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
75153
75154         Module stat.
75155         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
75156         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
75157
75158         Module lstat.
75159         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
75160         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
75161
75162         Module timespec.
75163         * m4/timespec.m4 (gl_TIMESPEC): New macro.
75164         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
75165         * m4/st_mtim.m4: Indentation.
75166
75167         Module nanosleep.
75168         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
75169         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
75170         gl_PREREQ_NANOSLEEP.
75171
75172         Module regex.
75173         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
75174         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
75175         (gl_REGEX): New macro.
75176
75177         Module rename.
75178         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
75179         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
75180
75181         Module rmdir.
75182         * m4/rmdir.m4: New file.
75183
75184         Module utime.
75185         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
75186         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
75187         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
75188
75189         Module dirname.
75190         * m4/dirname.m4: New file.
75191
75192         Module getopt.
75193         * m4/getopt.m4: New file.
75194
75195         Module unistd-safer.
75196         * m4/unistd-safer.m4: New file.
75197
75198         Module fnmatch.
75199         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
75200         declaration.
75201         (gl_PREREQ_FNMATCH_EXTRA): New macro.
75202         (gl_FUNC_FNMATCH_POSIX): New macro.
75203         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
75204         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
75205         simply fnmatch.
75206
75207         Module exclude.
75208         * m4/exclude.m4: New file.
75209
75210         Module human.
75211         * m4/human.m4: New file.
75212
75213         Module acl.
75214         * m4/acl.m4: Nop.
75215
75216         Module backupfile.
75217         * m4/backupfile.m4: New file.
75218         * m4/d-ino.m4: Indentation.
75219
75220         Module fsusage.
75221         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
75222         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
75223         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
75224
75225         Module dirfd.
75226         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
75227         requirements.
75228
75229         Module euidaccess.
75230         * m4/euidaccess.m4: New file.
75231
75232         Module file-type.
75233         * m4/file-type.m4: New file.
75234
75235         Module fileblocks.
75236         * m4/fileblocks.m4: New file.
75237
75238         Module filemode.
75239         * m4/filemode.m4: New file.
75240
75241         Module isdir.
75242         * m4/isdir.m4: New file.
75243
75244         Module lchown.
75245         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
75246         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
75247
75248         Module makepath.
75249         * m4/makepath.m4: New file.
75250
75251         Module modechange.
75252         * m4/modechange.m4: New file.
75253
75254         Module mountlist.
75255         * m4/mountlist.m4: New file.
75256         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
75257         Indentation.
75258
75259         Module path-concat.
75260         * m4/path-concat.m4: New file.
75261
75262         Module pathmax.
75263         * m4/pathmax.m4: New file.
75264
75265         Module same.
75266         * m4/same.m4: New file.
75267
75268         Module save-cwd.
75269         * m4/save-cwd.m4: New file.
75270
75271         Module savedir.
75272         * m4/savedir.m4: New file.
75273
75274         Module xgetcwd.
75275         * m4/xgetcwd.m4: New file.
75276         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
75277
75278         Module xreadlink.
75279         * m4/xreadlink.m4: New file.
75280
75281         Module safe-read.
75282         * m4/safe-read.m4: New file.
75283
75284         Module safe-write.
75285         * m4/safe-write.m4: New file.
75286
75287         Module closeout.
75288         * m4/closeout.m4: New file.
75289
75290         Module stdio-safer.
75291         * m4/stdio-safer.m4: New file.
75292
75293         Module getpass.
75294         * m4/getpass.m4: New file.
75295
75296         Module getugroups.
75297         * m4/getugroups.m4: New file.
75298
75299         Module group-member.
75300         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
75301         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
75302
75303         Module idcache.
75304         * m4/idcache.m4: New file.
75305
75306         Module userspec.
75307         * m4/userspec.m4: New file.
75308
75309         Module gettime.
75310         * m4/clock_time.m4: New file.
75311         * m4/gettime.m4: New file.
75312
75313         Module settime.
75314         * m4/settime.m4: New file.
75315
75316         Module posixtm.
75317         * m4/posixtm.m4: New file.
75318
75319         Module gethostname.
75320         * m4/gethostname.m4: New file.
75321
75322         Module canon-host.
75323         * m4/canon-host.m4: New file.
75324
75325         Module gettext.
75326         * m4/codeset.m4: New file, from gettext-0.11.5.
75327         * m4/gettext.m4: New file, from gettext-0.11.5.
75328         * m4/glibc21.m4: New file, from gettext-0.11.5.
75329         * m4/iconv.m4: New file, from gettext-0.11.5.
75330         * m4/intdiv0.m4: New file, from gettext-0.11.5.
75331         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
75332         * m4/inttypes.m4: New file, from gettext-0.11.5.
75333         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
75334         * m4/isc-posix.m4: New file, from gettext-0.11.5.
75335         * m4/lcmessage.m4: New file, from gettext-0.11.5.
75336         * m4/lib-ld.m4: New file, from gettext-0.11.5.
75337         * m4/lib-link.m4: New file, from gettext-0.11.5.
75338         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
75339         * m4/progtest.m4: New file, from gettext-0.11.5.
75340         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
75341         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
75342         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
75343
75344         Module localcharset.
75345         * m4/localcharset.m4: New file.
75346
75347         Module hard-locale.
75348         * m4/hard-locale.m4: New file.
75349
75350         Module mbswidth.
75351         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
75352         onceonly macros.
75353         * m4/mbrtowc.m4: Add comment.
75354
75355         Module memcasecmp.
75356         * m4/memcasecmp.m4: New file.
75357
75358         Module memcoll.
75359         * m4/memcoll.m4: New file.
75360
75361         Module unicodeio.
75362         * m4/unicodeio.m4: New file.
75363
75364         Module rpmatch.
75365         * m4/rpmatch.m4: New file.
75366
75367         Module yesno.
75368         * m4/yesno.m4: New file.
75369
75370         Module exitfail.
75371         * m4/exitfail.m4: New file.
75372
75373         Module c-stack.
75374         * m4/c-stack.m4 (gl_C_STACK): New macro.
75375         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
75376
75377         Module error.
75378         * m4/error.m4 (gl_ERROR): New macro.
75379         (jm_PREREQ_ERROR): Use onceonly macros.
75380
75381         Module fatal.
75382         * m4/fatal.m4: New file.
75383
75384         Module getloadavg.
75385         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
75386         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
75387
75388         Module getpagesize.
75389         * m4/getpagesize.m4: New file.
75390
75391         Module getusershell.
75392         * m4/getusershell.m4: New file.
75393
75394         Module physmem.
75395         * m4/physmem.m4: New file.
75396
75397         Module posixver.
75398         * m4/posixver.m4: New file.
75399
75400         Module quotearg.
75401         * m4/quotearg.m4: New file.
75402
75403         Module quote.
75404         * m4/quote.m4: New file.
75405
75406         Module readutmp.
75407         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
75408
75409         Module sig2str.
75410         * m4/sig2str.m4: New file.
75411
75412         Other.
75413         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
75414         ulonglong.m4.
75415         * m4/intmax_t.m4: New file.
75416         * m4/d-type.m4: Indentation.
75417         * m4/jm-macros.m4: Update.
75418         * m4/prereq.m4 (jm_PREREQ): Update.
75419         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
75420         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
75421         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
75422         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
75423         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
75424         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
75425         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
75426         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
75427         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
75428         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
75429         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
75430         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
75431         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
75432         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
75433         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
75434         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
75435         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
75436         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
75437         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
75438
75439 2002-12-24  Bruno Haible  <bruno@clisp.org>
75440
75441         * MODULES.txt: Update according to m4/ changes.
75442
75443         Module gettext.
75444         * config.rpath: New file, from gettext-0.11.5.
75445
75446         * modules/*: New module descriptions.
75447         * gnulib-tool: New file.
75448         * MODULES.html.sh: New file.
75449
75450 2002-12-21  Karl Berry  <karl@gnu.org>
75451
75452         * doc/fdl.texi: update to version 1.2.
75453
75454 2002-12-19  Karl Berry  <karl@gnu.org>
75455
75456         * config/config.guess: update from prep.
75457
75458 2002-12-18  Bruno Haible  <bruno@clisp.org>
75459
75460         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
75461         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
75462
75463 2002-12-17  Bruno Haible  <bruno@clisp.org>
75464
75465         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
75466         stdlib.h, string.h.
75467
75468 2002-12-17  Bruno Haible  <bruno@clisp.org>
75469
75470         * lib/canon-host.c (strdup): Remove unused declaration.
75471
75472         * lib/fsusage.c: Include full_read.h.
75473         (get_fs_usage): Use full_read instead of safe_read.
75474
75475         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
75476
75477 2002-12-12  Karl Berry  <karl@gnu.org>
75478
75479         * config/config.guess: update from prep.
75480
75481 2002-12-11  Bruno Haible  <bruno@clisp.org>
75482
75483         * m4/setenv.m4: New file, from gettext-0.11.5.
75484
75485 2002-12-11  Bruno Haible  <bruno@clisp.org>
75486
75487         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
75488         not unsetenv().
75489         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
75490         modifications:
75491
75492         2002-12-11  Bruno Haible  <bruno@clisp.org>
75493
75494                 * setenv.c (alloca): Fall back to malloc.
75495                 (freea): New macro.
75496                 (setenv): Use freea() to free memory allocated with alloca().
75497
75498         2002-11-13  Bruno Haible  <bruno@clisp.org>
75499
75500                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
75501                 function declarations.
75502                 * unsetenv.c (unsetenv): Likewise.
75503
75504         2002-03-04  Bruno Haible  <bruno@clisp.org>
75505
75506                 Portability to AIX 4.3.3.
75507                 * unsetenv.c: New file, extracted from setenv.c.
75508                 * setenv.c: Move the unsetenv() function to unsetenv.c.
75509
75510         2001-12-20  Bruno Haible  <bruno@clisp.org>
75511
75512                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
75513                 use malloc instead. For SunOS 4.
75514
75515         2001-12-11  Bruno Haible  <bruno@clisp.org>
75516
75517                 * setenv.c: Declare alloca.
75518                 (compar_fn_t): New typedef.
75519                 (KNOWN_VALUE, STORE_VALUE): Use it.
75520
75521         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
75522         setenv.h.
75523
75524 2002-12-10  Paul Eggert  <eggert@twinsun.com>
75525
75526         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
75527         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
75528         Choose values that are less likely to collide with system fnmatch
75529         options.
75530         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
75531         defined (e.g., a pure POSIX system).
75532         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
75533         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
75534
75535 2002-12-06  Paul Eggert  <eggert@twinsun.com>
75536
75537         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
75538         a pain in practice to deal with generated m4 files.  This change
75539         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
75540
75541         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
75542         and jm-glibc-io.m4, as they are no longer a special case.
75543         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
75544         kludge and the auto-generation stuff.  Check only whether the
75545         functions are declared, not whether they exist, since older hosts
75546         that don't declare the functions can't use the optimization anyway.
75547
75548 2002-12-06  Jim Meyering  <jim@meyering.net>
75549
75550         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
75551
75552         Merge in changes from libc's misc/error.c, in preparation
75553         for the merge of gnulib's changes back into libc.
75554
75555         * lib/error.c (_): Define only if not already defined.
75556         Move definition to follow all #include directives.
75557         Include unlocked-io.h only if !_LIBC.
75558         [_LIBC]: Include <libio/libioP.h>.
75559         [USE_IN_LIBIO]: Include <libio/iolibio.h>
75560         (fflush): Tweak definition to use INTUSE.
75561         (putc): Define.
75562
75563 2002-12-05  Paul Eggert  <eggert@twinsun.com>
75564
75565         * lib/alloca.c [defined emacs]: Include "lisp.h".
75566         (xalloc_die) [defined emacs]: New macro.
75567         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
75568         [! defined emacs]: Include <xalloc.h>.
75569         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
75570         (pointer): Typedef to POINTER_TYPE *.
75571         (malloc): Remove decl; we now always use xmalloc.
75572         (alloca): Use old-style definition, since Emacs needs this.
75573         Check for arithmetic overflow when computing combined size.
75574
75575 2002-12-04  Paul Eggert  <eggert@twinsun.com>
75576
75577         Do not generate unlocked-io.h automatically, since it's easier to
75578         maintain it by hand.
75579
75580         * lib/unlocked-io.h: New file, from GNU diffutils,
75581         but with proper copyright notice and attribution.
75582         * lib/gen-uio: Remove.
75583         * lib/Makefile.am: Add copyright notice.
75584         (libfetish_a_SOURCES): Add unlocked-io.h.
75585         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
75586         (DISTCLEANFILES, io_functions): Remove macros.
75587         (EXTRA_DIST): Remove gen_uio.
75588         (unlocked-io.h): Remove rule.
75589
75590 2002-12-04  Jim Meyering  <jim@meyering.net>
75591
75592         Reflect the fact that stat.c and lstat.c are no longer generated.
75593         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
75594         (DISTCLEANFILES): Likewise.
75595         (EXTRA_DIST): Likewise.
75596         (all_local): Don't depend on stat.c or lstat.c.
75597         (stat.c, lstat.c): Remove rules.
75598         (EXTRA_DIST): Remove xstat.in.
75599
75600         * lib/xstat.in: Remove file.  Contents moved into stat.c.
75601         * lib/stat.c: New file.  Contents mostly from xstat.in.
75602         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
75603         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
75604
75605         * lib/safe-read.c: Rework so that it may serve to define safe_write,
75606         too.
75607         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
75608
75609 2002-12-03  Jim Meyering  <jim@meyering.net>
75610
75611         * lib/safe-read.c, safe-write.c: Change variable names and comments,
75612         but not semantics, to minimize the differences between these two files.
75613         (safe_read): Change comment to mention SAFE_READ_ERROR.
75614
75615         * lib/safe-read.c (IS_EINTR): Define.
75616         (safe_read): Use IS_EINTR in place of in-function cpp directives.
75617
75618 2002-12-02  Jim Meyering  <jim@meyering.net>
75619
75620         * lib/safe-read.c (EINTR): Define.
75621         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75622         (INT_MAX): Provide fallback.
75623         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
75624
75625         * lib/safe-read.h (SAFE_READ_ERROR): Define.
75626
75627 2002-12-02  Bruno Haible  <bruno@clisp.org>
75628
75629         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
75630         Define, taken from safe-read.c.
75631         (INT_MAX): Provide fallback.
75632         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
75633         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
75634
75635         * lib/safe-read.c (EINTR): Remove definition.
75636         (safe_read): Don't use EINTR if it is absent.
75637
75638 2002-12-01  Jim Meyering  <jim@meyering.net>
75639
75640         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
75641         zero.
75642         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
75643
75644 2002-11-27  Paul Eggert  <eggert@twinsun.com>
75645
75646         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
75647         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
75648         with `if (! (value < limit)) abort ();', for readability.
75649
75650 2002-11-26  Karl Berry  <karl@gnu.org>
75651
75652         * lib/strdup.c: copy from libc again, with jim's ok.
75653         * lib/.cppi-disable: re-add strdup.c
75654
75655 2002-11-25  Karl Berry  <karl@gnu.org>
75656
75657         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
75658         instead of "strtol.c".
75659
75660 2002-11-25  Karl Berry  <karl@gnu.org>
75661
75662         * config/install-sh: update from automake for variable quoting, $0 in
75663         error msgs, etc.
75664
75665         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
75666         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
75667         entry.
75668
75669 2002-11-25  Jim Meyering  <jim@meyering.net>
75670
75671         * lib/mktime.c: Sync from libc, now that it has the latest fix.
75672
75673 2002-11-24  Karl Berry  <karl@gnu.org>
75674
75675         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
75676         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
75677
75678 2002-11-24  Jim Meyering  <jim@meyering.net>
75679
75680         Update from coreutils:
75681
75682         * lib/mktime.c: Merge in changes from libc.
75683
75684         Avoid a link-time failure on some Linux systems.
75685         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
75686         (otherwise).
75687         (__mon_yday): Declare with the STATIC attribute.
75688         (__mktime_internal): Likewise.
75689         Based on a report from Greg Schafer.
75690
75691 2002-11-23  Jim Meyering  <jim@meyering.net>
75692
75693         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
75694         Use `unsigned', not `int', as type of index.
75695
75696         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
75697
75698         * lib/fsusage.c: Remove unneeded parentheses around operands of
75699         `defined'.
75700
75701 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75702
75703         * lib/quotearg.h: Allow multiple inclusion by surrounding with
75704         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
75705         so that we can be included first.
75706         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
75707         * lib/quotearg.c: Include quotearg.h immediately after config.h.
75708         No need to include stddef.h or sys/types.h any more.
75709         Surround local include files with "", not "<>".
75710         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
75711         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
75712         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
75713         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
75714         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
75715         (ISPRINT): Remove; no longer needed now that we assume C89.
75716
75717         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
75718         Preserve errno.
75719
75720         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
75721         quotearg_char): Use SIZE_MAX rather than
75722         (size_t) -1 when we are talking about "infinity".
75723
75724         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
75725
75726 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75727
75728         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
75729         hint that one should use `if (! x) abort ();' rather than `assert
75730         (x);', and anyway it's one less thing to worry about configuring.
75731         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
75732         hash_rehash, hash_insert): Use abort rather than assert.
75733
75734 2002-11-22  Bruno Haible  <bruno@clisp.org>
75735
75736         * lib/safe-read.h: Assume C89. Add comments.
75737         (safe_read): Change return type to size_t.
75738         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
75739         byte counts > SSIZE_MAX correctly.
75740         * lib/safe-write.h: New file.
75741         * lib/safe-write.c: New file.
75742         * lib/full-read.h: New file.
75743         * lib/full-read.c: New file.
75744         * lib/full-write.h: Assume C89. Add comments.
75745         * lib/full-write.c: Include safe-write.h.
75746         (full_write): Rewritten to use safe_write.
75747         Suggested by Jim Meyering and Paul Eggert.
75748
75749 2002-11-21  Jim Meyering  <jim@meyering.net>
75750
75751         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
75752
75753         Merge in changes from the coreutils.
75754
75755         2002-09-25  Paul Eggert  <eggert@twinsun.com>
75756         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
75757         <stdint.h>.
75758         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
75759         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
75760         int.  Work more efficiently if X is the same width as uintmax_t.
75761         Do not compare X to -1, to avoid bogus compiler warning.
75762         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
75763         Don't assume that f_frsize and f_bsize are the same type.
75764
75765         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
75766         warning on FreeBSD.
75767
75768         * lib/makepath.c (make_path): Restore umask *before* creating the final
75769         component.
75770         (make_path): Minor reformatting.
75771
75772         * lib/xmalloc.c: Adjust to work with new autoconf macros,
75773         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
75774         HAVE_MALLOC/HAVE_REALLOC.
75775
75776         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
75777         dummy ones.  At least on GNU/Linux systems, `auto' means something
75778         else.
75779         From Michael Stone.
75780
75781 2002-11-21  Bruno Haible  <bruno@clisp.org>
75782
75783         Remove case insensitive option matching.
75784         * lib/argmatch.h (argcasematch): Remove declaration.
75785         (ARGCASEMATCH): Remove macro.
75786         (__xargmatch_internal): Remove case_sensitive argument.
75787         (XARGMATCH): Update.
75788         (XARGCASEMATCH): Remove macro.
75789         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
75790         case_sensitive argument.
75791         (argcasematch): Remove function.
75792         (__xargmatch_internal): Remove case_sensitive argument.
75793         (main): Use XARGMATCH instead of XARGCASEMATCH.
75794
75795         * lib/xmalloc.c: Change compile-time error message. Add comment about
75796         required autoconf version.
75797
75798 2002-11-20  Paul Eggert  <eggert@twinsun.com>
75799
75800         Merge argmatch cleanups from Bison.  Assume C89.
75801
75802         * lib/argmatch.c: Include config.h here, not in argmatch.h.
75803         Include stdlib.h, for EXIT_FAILURE.
75804         Always include <string.h>, since we assume C89.
75805         (EXIT_FAILURE): Remove pre-C89 bug workaround.
75806         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
75807         Include <stddef.h> instead, since it's all we need for size_t.
75808         (PARAMS): Remove.  All uses removed.
75809         (ARRAY_CARDINALITY): Do not bother to #undef.
75810         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
75811         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75812         Remove unnecessary parentheses.
75813         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75814         Insert necessary parentheses.
75815         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
75816         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
75817
75818 2002-11-19  Bruno Haible  <bruno@clisp.org>
75819
75820         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
75821         * lib/mbswidth.h: Include <stddef.h>, for size_t.
75822
75823         * lib/mbswidth.h (PARAMS): Remove macro.
75824         (mbswidth, mbsnwidth): Use ANSI C function declarations.
75825         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
75826
75827         * lib/gcd.h (PARAMS): Remove macro.
75828         (gcd): Use ANSI C function declarations.
75829         * lib/gcd.c (gcd): Likewise.
75830
75831 2002-11-15  Bruno Haible  <bruno@clisp.org>
75832
75833         * lib/strcspn.c: Include <stddef.h>.
75834         (strcspn): Use ANSI C function declaration. Change return type to
75835         size_t. Use NULL.
75836         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
75837         (strpbrk): Use NULL.
75838         * lib/strpbrk.h (PARAMS): Remove macro.
75839         (strpbrk): Use ANSI C function declaration.
75840         * lib/strstr.c: Don't include <sys/types.h>.
75841         * lib/strstr.h (PARAMS): Remove macro.
75842         (strstr): Use ANSI C function declarations.
75843
75844 2002-11-14  Karl Berry  <karl@gnu.org>
75845
75846         * config/mkinstalldirs: `do' on separate line, instead of
75847         `for var; do'.
75848
75849 2002-11-06  Bruno Haible  <bruno@clisp.org>
75850
75851         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
75852         * lib/gcd.c (gcd): Likewise.
75853
75854 2002-11-05  Bruno Haible  <bruno@clisp.org>
75855
75856         * lib/gcd.h: New file, from gettext-0.11.5.
75857         * lib/gcd.c: New file, from gettext-0.11.5.
75858
75859 2002-11-05  Bruno Haible  <bruno@clisp.org>
75860
75861         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75862         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75863         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75864         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75865
75866         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
75867         <libintl.h>.
75868         * lib/makepath.c: Include gettext.h instead of <locale.h> and
75869         <libintl.h>.
75870
75871         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
75872         * lib/human.c: Include gettext.h instead of <libintl.h>.
75873         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
75874         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
75875         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
75876         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
75877         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
75878         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
75879         (textdomain): Remove definition.
75880         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
75881
75882         * lib/long-options.c: Remove include of <libintl.h> and definition of
75883         _.
75884         * lib/same.c: Remove include of <libintl.h> and definition of _.
75885
75886 2002-11-04  Owen Taylor  <otaylor@redhat.com>
75887
75888         * lib/config.charset: A few additions for Solaris.
75889
75890 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75891
75892         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
75893         * lib/localcharset.c (locale_charset): Declare as extern "C".
75894
75895 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75896
75897         * lib/config.charset: msdos in uk_UA uses CP1125.
75898
75899 2002-11-04  Bruno Haible  <bruno@clisp.org>
75900
75901         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
75902         * lib/strcase.h: New file, from GNU gettext-0.11.5.
75903         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
75904         * lib/strstr.h: New file, from GNU gettext-0.11.5.
75905         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
75906
75907 2002-11-04  Bruno Haible  <bruno@clisp.org>
75908
75909         * lib/localcharset.c (locale_charset): Don't return an empty string.
75910
75911 2002-11-04  Bruno Haible  <bruno@clisp.org>
75912
75913         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
75914         aliases.
75915
75916 2002-11-04  Bruno Haible  <bruno@clisp.org>
75917
75918         * lib/config.charset: Update for newest glibc. Add canonical names
75919         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
75920
75921 2002-11-04  Bruno Haible  <bruno@clisp.org>
75922
75923         * lib/config.charset: Add support for NetBSD.
75924
75925 2002-11-04  Bruno Haible  <bruno@clisp.org>
75926
75927         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
75928
75929 2002-11-01  Bruno Haible  <bruno@clisp.org>
75930
75931         * configure.in: Add AC_CONFIG_AUX_DIR call.
75932         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
75933         test/Makefile.
75934         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
75935
75936 2002-09-28  Karl Berry  <karl@gnu.org>
75937
75938         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
75939         installed automake until the next release, since changes have been
75940         made.
75941
75942 2002-09-25  Karl Berry  <karl@gnu.org>
75943
75944         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
75945         * lib/getopt*: copy from libc/posix.
75946         * lib/gettext.h: copy from gettext.
75947         * lib/.cppi-disable: add strdup.c, gettext.h.
75948
75949 2002-09-25  Karl Berry  <karl@gnu.org>
75950
75951         * config/srclist.txt: enable gettext.h check.
75952         * config/config.{guess,sub}: update from prep.
75953         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
75954                 from automake 1.6.3.
75955         See srclist*.
75956
75957 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
75958
75959         * regex.c (PATFETCH): Remove the translating fetch.
75960         (PATFETCH_RAW): Rename to PATFETCH.
75961         (set_image_of_range): New fun.
75962         (SET_RANGE_TABLE_WORK_AREA): Use it.
75963         (regex_compile): Don't translate the pattern chars so eagerly.
75964         Only do it when inserting an `exactn' bytecode or when handling
75965         a char-range.
75966         (mutually_exclusive_p): Avoid empty statement.
75967
75968 2002-07-06  Jim Meyering  <meyering@lucent.com>
75969
75970         * m4/README: Don't mention Makefile.am.in.
75971         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
75972
75973 2002-07-01  Jim Meyering  <meyering@lucent.com>
75974
75975         * lib/c-stack.c: Include sys/time.h.
75976         From Volker Borchert.
75977
75978 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75979
75980         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
75981
75982 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75983
75984         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
75985         New macro.  Use it uniformly instead of
75986         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
75987         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
75988         reported by Vin Shelton.
75989
75990 2002-06-22  Paul Eggert  <eggert@twinsun.com>
75991
75992         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
75993         Do not assume SA_SIGINFO behavior.
75994         Bug reported by Jim Meyering on NetBSD 1.5.2.
75995
75996 2002-06-22  Jim Meyering  <meyering@lucent.com>
75997
75998         * m4/c-stack.m4: New file, from diffutils-2.8.2.
75999         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
76000
76001         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
76002         now that configure.ac uses AC_GNU_SOURCE.
76003         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
76004         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
76005
76006         Update to latest tools.  Suggestions from Paul Eggert.
76007         * m4/stdbool.m4: New file, from diffutils-2.8.2.
76008         * m4/gnu-source.m4: Update from diffutils-2.8.2.
76009         * m4/fnmatch.m4: Likewise.
76010         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
76011         to AC_HEADER_STDBOOL
76012
76013 2002-06-22  Jim Meyering  <meyering@lucent.com>
76014
76015         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
76016         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
76017
76018 2002-06-22  Jim Meyering  <meyering@lucent.com>
76019
76020         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
76021
76022         * lib/exitfail.c, exitfail.h: Likewise.
76023         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
76024
76025         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
76026         of fnmatch.h.
76027         (EXTRA_DIST): Add fnmatch_loop.c.
76028         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
76029
76030         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
76031         * lib/fnmatch.c: Update from diffutils-2.8.2.
76032         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
76033         * lib/fnmatch.h: Remove file.
76034
76035 2002-06-21  Jim Meyering  <meyering@lucent.com>
76036
76037         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
76038         * m4/mbrtowc.m4: Likewise.
76039
76040         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
76041         * m4/mbswidth.m4: Reflect name change:
76042         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
76043         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76044
76045         * m4/lib-link.m4: Update from gettext-0.11.2.
76046         * m4/gettext.m4: Likewise.
76047
76048         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
76049         From Alfred M. Szmidt.
76050
76051 2002-06-18  Paul Eggert  <eggert@twinsun.com>
76052
76053         * lib/file-type.h: Report an error if neither S_ISREG nor
76054         S_IFREG is defined, instead of using a test specific to glibc
76055         2.2.  This should be safe, since POSIX requires S_ISREG and
76056         Unix Version 7 had S_IFREG.  We don't need to check for
76057         <sys/types.h> since we don't use any symbols that it defines.
76058
76059 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
76060
76061         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
76062         $@-t, so that each temporary file name is unique and valid in the first
76063         8 characters, for operation under DOS.
76064
76065 2002-06-15  Paul Eggert  <eggert@twinsun.com>
76066
76067         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
76068
76069 2002-06-15  Jim Meyering  <meyering@lucent.com>
76070
76071         Work even with DJGPP 2.03, which lacks support for symlinks.
76072         From Richard Dawe.
76073         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
76074         is defined.
76075         * lib/lchown.c (S_ISLNK): Likewise.
76076
76077 2002-06-15  Jim Meyering  <meyering@lucent.com>
76078
76079         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
76080         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
76081         have been included before this file.
76082
76083 2002-06-14  Jim Meyering  <meyering@lucent.com>
76084
76085         * lib/file-type.h: Use the version from diffutils-2.8.2.
76086         * lib/file-type.c: Likewise.
76087
76088 2002-06-07  Jim Meyering  <meyering@lucent.com>
76089
76090         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
76091         They're needed at least for NetBSD 1.5.2.
76092         ($statxfs_includes): Include those same headers.
76093         ($statxfs_includes): Include sys/vfs.h if available.
76094         ($statxfs_includes): Likewise for sys/statvfs.h.
76095         Check for the following members in both structs statfs and statvfs:
76096         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
76097
76098 2002-06-01  Jim Meyering  <meyering@lucent.com>
76099
76100         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
76101         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
76102
76103 2002-05-28  Jim Meyering  <meyering@lucent.com>
76104
76105         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
76106         Reported by Volker Borchert.
76107
76108 2002-05-27  Jim Meyering  <meyering@lucent.com>
76109
76110         Fix a problem seen only on nonconforming systems whereby ls.c's
76111         use of localtime, and then of gettimeofday would cause trouble:
76112         the localtime call used to initialize rpl_gettimeofday's save
76113         mechanism would clobber ls's current local time information so
76114         that in any long listing the first file would always be listed
76115         with date 1970-01-01.  Analysis by Volker Borchert.
76116
76117         * lib/gettimeofday.c (localtime): Undefine.
76118         (rpl_localtime): New function.
76119
76120 2002-05-27  Jim Meyering  <meyering@lucent.com>
76121
76122         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
76123         localtime.
76124
76125         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
76126         use the replacement function; it wouldn't resolve at link time.
76127         Reported by Volker Borchert.
76128
76129 2002-05-22  Jim Meyering  <meyering@lucent.com>
76130
76131         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
76132         file-type.h.
76133         * lib/file-type.h: New file.
76134         * lib/file-type.c (file_type): New file/function.  Extracted from
76135         diffutils.
76136
76137 2002-04-30  Jim Meyering  <meyering@lucent.com>
76138
76139         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
76140
76141 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76142
76143         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
76144
76145 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76146
76147         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
76148         Do not check for alloca.h (no longer used) or stdbool.h (was never
76149         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
76150
76151 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76152
76153         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
76154
76155 2002-04-29  Jim Meyering  <meyering@lucent.com>
76156
76157         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
76158         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
76159         Use AC_FUNC_STRNLEN here instead.
76160
76161         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
76162         With autoconf-2.53a, it's part of AC_PROG_CC.
76163
76164 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76165
76166         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
76167         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
76168
76169 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76170
76171         * lib/sig2str.h, lib/sig2str.c: New files.
76172         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
76173
76174 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76175
76176         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
76177         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
76178         of 127, since 64 is the largest conceivable number for ancient
76179         nonstandard hosts.
76180         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
76181
76182 2002-04-28  Jim Meyering  <meyering@lucent.com>
76183
76184         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
76185
76186 2002-04-24  Jim Meyering  <meyering@lucent.com>
76187
76188         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
76189         (jm_PREREQ): Use it.
76190
76191         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
76192         mach/mach.h fcntl.h.
76193         Check for this function: setlocale.
76194
76195 2002-04-24  Jim Meyering  <meyering@lucent.com>
76196
76197         * lib/gettext.h: New file, from Gettext.
76198         * lib/Makefile.am (INCLUDES): Remove -I../intl.
76199         (libfetish_a_SOURCES): Add gettext.h.
76200
76201 2002-04-16  Jim Meyering  <meyering@lucent.com>
76202
76203         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
76204         ut_pid, ut_id, ut_exit.
76205
76206 2002-04-16  Jim Meyering  <meyering@lucent.com>
76207
76208         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
76209         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
76210         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
76211
76212 2002-04-12  Jim Meyering  <meyering@lucent.com>
76213
76214         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
76215         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
76216         existence of the getmntinfo function.  Needed for Darwin 5.3.
76217
76218         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
76219         This is necessary at least on Darwin 5.3.
76220
76221         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
76222         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
76223         strnlen.o in the library, and that makes some versions of ranlib
76224         object.
76225
76226 2002-04-12  Jim Meyering  <meyering@lucent.com>
76227
76228         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
76229
76230 2002-04-09  Jim Meyering  <meyering@lucent.com>
76231
76232         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
76233         to be more precise.  Rather than saying we're checking whether the
76234         function `works', say what we're testing.
76235         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
76236         Reported by Bruno Haible.
76237
76238 2002-03-10  Jim Meyering  <meyering@lucent.com>
76239
76240         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
76241         Suggestion from Santiago Vila.
76242
76243 2002-03-08  Jim Meyering  <meyering@lucent.com>
76244
76245         * lib/rename.c: Mention that this wrapper is needed also on
76246         mips-dec-ultrix4.4 systems.
76247
76248 2002-03-02  Jim Meyering  <meyering@lucent.com>
76249
76250         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
76251         not HAVE_CLOCK_SETTIME.
76252
76253 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76254
76255         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
76256         Check for clock_settime.
76257
76258 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76259
76260         * lib/nanosleep.h: Rename to....
76261         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
76262
76263         * lib/gettime.c: New file.
76264         * lib/settime.c: New file.
76265         * lib/stime.c: Remove.
76266
76267         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
76268         timespec.h.  Remove nanosleep.h.
76269
76270 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76271
76272         * m4/acl.m4: New file.
76273         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
76274         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
76275
76276 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76277
76278         * lib/acl.c, lib/acl.h: New files.
76279         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
76280
76281 2002-02-24  Jim Meyering  <meyering@lucent.com>
76282
76283         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
76284         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
76285         cause trouble.  Reported by Nelson Beebe.
76286
76287 2002-02-23  Paul Eggert  <eggert@twinsun.com>
76288
76289         * lib/path-concat.c (xpath_concat): Reorder code to pacify
76290         compilers that don't know that xalloc_die never returns.
76291
76292 2002-02-20  Jim Meyering  <meyering@lucent.com>
76293
76294         * lib/getdate.c: Regenerate using bison-1.33.
76295
76296 2002-02-17  Jim Meyering  <meyering@lucent.com>
76297
76298         * config/config.guess (main): Don't use `head -1'; it's no longer
76299         portable. Use `sed 1q' instead.
76300
76301 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
76302
76303         * m4/codeset.m4: Upgrade to gettext-0.11.
76304         * m4/gettext.m4: Upgrade to gettext-0.11.
76305         * m4/glibc21.m4: Upgrade to gettext-0.11.
76306         * m4/iconv.m4: Upgrade to gettext-0.11.
76307         * m4/isc-posix.m4: Upgrade to gettext-0.11.
76308         * m4/lcmessage.m4: Upgrade to gettext-0.11.
76309         * m4/lib-ld.m4: New file, from gettext-0.11.
76310         * m4/lib-link.m4: New file, from gettext-0.11.
76311         * m4/lib-prefix.m4: New file, from gettext-0.11.
76312         * m4/progtest.m4: Upgrade to gettext-0.11.
76313
76314 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76315
76316         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
76317         (jm_PREREQ): Use it.
76318
76319 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76320
76321         * lib/posixver.c, lib/posixver.h: New files.
76322         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76323
76324 2002-02-02  Paul Eggert  <eggert@twinsun.com>
76325             Bruno Haible  <bruno@clisp.org>
76326
76327         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
76328         (fwrite_success_callback): New declaration.
76329         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
76330         print_unicode_char. Call failure callback instead of error.
76331         (fwrite_success_callback): New function.
76332         (exit_failure_callback): New function.
76333         (fallback_failure_callback): New function.
76334         (print_unicode_char): Call unicode_to_mb.
76335
76336 2002-01-26  Jim Meyering  <meyering@lucent.com>
76337
76338         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
76339         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
76340
76341 2002-01-26  Jim Meyering  <meyering@lucent.com>
76342
76343         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
76344
76345 2002-01-22  Paul Eggert  <eggert@twinsun.com>
76346
76347         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
76348
76349 2002-01-22  Jim Meyering  <meyering@lucent.com>
76350
76351         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
76352         Otherwise, some versions of automake would omit the rule that makes
76353         Makefile from Makefile.in.
76354
76355 2002-01-21  Paul Eggert  <eggert@twinsun.com>
76356
76357         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
76358         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76359         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
76360         (memcoll): Set errno to zero if there is no error.
76361
76362         * lib/quotearg.c (quotearg_buffer_restyled):
76363         Fix bug with quoting buffers containing NUL when backslashing escapes.
76364         This bug was exposed by the other changes in this patch.
76365         (quotearg_n_options): New arg ARGSIZE.
76366         All callers changed.
76367         (quoting_options_from_style): New function.
76368         (quotearg_n_style): Use it.
76369         (quotearg_n_style_mem): New function.
76370
76371         * lib/quotearg.h (quotearg_n_style_mem): New function.
76372
76373 2002-01-19  Jim Meyering  <meyering@lucent.com>
76374
76375         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
76376         Remove useless quotes: DF_PROG="df".
76377         * m4/strnlen.m4: New file.
76378
76379 2002-01-16  Paul Eggert  <eggert@twinsun.com>
76380
76381         * lib/backupfile.c (ISDIGIT): Comment fix.
76382         * lib/getdate.y (ISDIGIT): Likewise.
76383         * lib/posixtm.c (ISDIGIT, year): Likewise.
76384         * lib/strverscmp.c (ISDIGIT): Likewise.
76385         * lib/userspec.c (ISDIGIT): Likewise.
76386
76387 2002-01-16  Jim Meyering  <meyering@lucent.com>
76388
76389         * lib/getdate.y: Add three semicolons, each just before a closing
76390         brace. Bison (as of version 1.31) no longer papers over that mistake.
76391
76392 2002-01-05  Jim Meyering  <meyering@lucent.com>
76393
76394         * lib/version-etc.c (version_etc_copyright): Update copyright year.
76395
76396 2001-12-19  Paul Eggert  <eggert@twinsun.com>
76397
76398         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
76399         not silently exit merely because the output buffer happens to
76400         have nothing pending.
76401
76402 2001-12-18  Paul Eggert  <eggert@twinsun.com>
76403
76404         See the big note in ../ChangeLog.
76405         * lib/human.c (suffixes): Prefer K to k for 1024.
76406         (generate_suffix_backwards): New function.
76407         (human_readable_inexact): Use it.
76408         * lib/xstrtol.c (__xstrtol): If there is no number but there
76409         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
76410         Accept 'K' as well as 'k'.
76411
76412 2001-12-15  Jim Meyering  <meyering@lucent.com>
76413
76414         * lib/regex.h (__restrict_arr): Update from libc.
76415
76416         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
76417         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
76418         (STREQ): Define.
76419
76420 2001-12-14  Jim Meyering  <meyering@lucent.com>
76421
76422         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
76423         Suggestion from Bruno Haible.
76424
76425 2001-12-10  Jim Meyering  <meyering@lucent.com>
76426
76427         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
76428         xrealloc, Instead, include "xalloc.h".
76429         (initbuffer): Don't cast xmalloc return value to char*.
76430         (readline): Reword comment.
76431         Don't cast xrealloc return value to char*
76432         Return NULL, not 0.
76433
76434 2001-12-09  Jim Meyering  <meyering@lucent.com>
76435
76436         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
76437         about `signed and unsigned type in conditional expression'.
76438         * lib/posixtm.c (posix_time_parse): Likewise.
76439
76440         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
76441
76442         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
76443         to avoid a pedantic warning.
76444
76445         * lib/getstr.c: Don't include assert.h.
76446         (getstr): Remove warning-evoking assertions.
76447         Return -1 if offset parameter is out of bounds.
76448         Change the type of a local from int to size_t.
76449
76450         * lib/strftime.c (my_strftime_localtime_r): Include this function
76451         definition in the `#if ! HAVE_TM_GMTOFF' block.
76452
76453         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
76454         Include xalloc.h instead.
76455
76456 2001-12-02  Jim Meyering  <meyering@lucent.com>
76457
76458         * lib/tempname.c: Don't declare getenv, thus reverting the change of
76459         2001-11-18.  It's no longer necessary, now that stdlib.h is always
76460         included.
76461
76462         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
76463         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
76464
76465 2001-11-30  Akim Demaille  <akim@epita.fr>
76466
76467         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
76468         before being defined.
76469
76470 2001-11-27  Paul Eggert  <eggert@twinsun.com>
76471
76472         * lib/quotearg.h (quotearg_n, quotearg_n_style):
76473         First arg is int, not unsigned.
76474         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
76475         (SIZE_MAX, UINT_MAX): New macros.
76476         (quotearg_n_options): Abort if N is negative.
76477         Avoid overflow check on hosts where size_t is 64 bits and int
76478         is 32 bits, as overflow is impossible there.
76479         Fix off-by-one typo that caused unnecessary reallocation.
76480
76481 2001-11-27  Jim Meyering  <meyering@lucent.com>
76482
76483         * lib/tempname.c: Merge with version from libc.
76484         * lib/regex.c: Likewise.
76485
76486         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
76487         systems for which STDC_HEADERS is 0, it was not included, resulting in
76488         a warning about an integer-to-pointer conversion problem with getenv.
76489         Reported by Volker Borchert.
76490
76491 2001-11-26  Jim Meyering  <meyering@lucent.com>
76492
76493         * lib/gtod.h: Remove file.
76494         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
76495         * lib/gettimeofday.c: Don't include gtod.h.
76496         (GTOD_init): Remove function.
76497         (rpl_gettimeofday): Do its job here instead, rather than aborting.
76498         Suggestion from Volker Borchert.
76499
76500 2001-11-23  Jim Meyering  <meyering@lucent.com>
76501
76502         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
76503         it.
76504         * lib/hash.c (struct hash_table): Define it here instead.
76505
76506 2001-11-22  Jim Meyering  <meyering@lucent.com>
76507
76508         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
76509
76510 2001-11-20  Jim Meyering  <meyering@lucent.com>
76511
76512         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
76513         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
76514
76515 2001-11-19  Jim Meyering  <meyering@lucent.com>
76516
76517         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
76518         directory.  Use "conftestXXXXXX" as the template.
76519         Suggestion from Paul Eggert.
76520
76521         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
76522         immediately, so the test doesn't mistakenly hit the max-open-files
76523         limit.
76524
76525 2001-11-18  Paul Eggert  <eggert@twinsun.com>
76526
76527         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
76528         (TEMPORARIES): New macro.
76529         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
76530         removes an artificial limitation (e.g. HP-UX 10.20, where
76531         TMP_MAX is 17576).
76532
76533 2001-11-18  Jim Meyering  <meyering@lucent.com>
76534
76535         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
76536
76537 2001-11-18  Jim Meyering  <meyering@lucent.com>
76538
76539         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
76540         on SunOS 4.
76541
76542         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
76543         files will be created before anything else.
76544
76545 2001-11-17  Paul Eggert  <eggert@twinsun.com>
76546
76547         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
76548         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
76549
76550 2001-11-17  Jim Meyering  <meyering@lucent.com>
76551
76552         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
76553         Prompted by a report from Bob Proulx.
76554
76555         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
76556         Instead, require UTILS_FUNC_MKSTEMP.
76557
76558 2001-11-17  Jim Meyering  <meyering@lucent.com>
76559
76560         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
76561         Now, that's done as part of AC_FUNC_STRTOD.
76562
76563 2001-11-17  Jim Meyering  <meyering@lucent.com>
76564
76565         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
76566         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
76567         rather than group writable.  Patch by Juan F. Codagnone.
76568
76569         * lib/readtokens.c: Remove explicit declarations of xmalloc and
76570         xrealloc, Instead, include "xalloc.h".
76571
76572         * lib/mountlist.c: Include unlocked-io.h after all system headers.
76573         Remove explicit declarations of xmalloc, xrealloc,
76574         and xstrdup.  Instead, include "xalloc.h".
76575
76576         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
76577         unlocked-io.h.
76578         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
76579         Likewise.
76580         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
76581
76582         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
76583         Reported by Padraig Brady.
76584
76585         * lib/mkstemp.c: #undef mkstemp.
76586         Include config.h.
76587         (rpl_mkstemp): Rename from mkstemp.
76588         Protoize.
76589
76590 2001-11-16  Jim Meyering  <meyering@lucent.com>
76591
76592         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
76593         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
76594         determine the amount of total physical memory, use pstat_getstatic.
76595         HPUX-11 doesn't define _SC_PHYS_PAGES.
76596         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
76597         If sysconf couldn't be used to determine the amount of available
76598         physical memory, use both pstat_getstatic and pstat_getdynamic.
76599         Based on a patch from Bob Proulx.
76600
76601 2001-11-10  Jim Meyering  <meyering@lucent.com>
76602
76603         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
76604         (jm_PREREQ): Use it.
76605
76606 2001-11-09  Jim Meyering  <meyering@lucent.com>
76607
76608         * m4/jm-macros.m4: Require autoconf-2.52f.
76609         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
76610         Use these AC_-prefixed names, not the AM_-prefixed ones.
76611
76612         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
76613
76614 2001-11-05  Jim Meyering  <meyering@lucent.com>
76615
76616         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
76617
76618 2001-11-04  Jim Meyering  <meyering@lucent.com>
76619
76620         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
76621         $DEFS.
76622
76623 2001-11-03  Jim Meyering  <meyering@lucent.com>
76624
76625         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
76626         of AC_DEFUN.
76627
76628         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
76629         know the name of the variable in the macro definition.
76630
76631 2001-11-03  Jim Meyering  <meyering@lucent.com>
76632
76633         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
76634         in argmatch_to_argument call.
76635
76636         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
76637         argument.
76638
76639         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
76640         e.g., a fault due to an attempt to free a NULL pointer.
76641
76642 2001-11-01  Jim Meyering  <meyering@lucent.com>
76643
76644         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
76645         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
76646
76647 2001-11-01  Jim Meyering  <meyering@lucent.com>
76648
76649         * lib/dirfd.c, lib/dirfd.h: New files.
76650         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
76651
76652         * lib/hash.c (hash_print) [TESTING]: Clean up.
76653
76654 2001-10-22  Paul Eggert  <eggert@twinsun.com>
76655
76656         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
76657         to avoid a warning if -Wall.
76658
76659 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
76660
76661         * README: New file
76662         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
76663         (per RMS's instructions, this is now the canonical source)
76664         * lgpl/, gpl/: New directories.
76665
76666 2001-10-21  Paul Eggert  <eggert@twinsun.com>
76667
76668         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
76669
76670 2001-10-21  Jim Meyering  <meyering@lucent.com>
76671
76672         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
76673         this code would end up calling gettext even in packages built
76674         with --disable-nls.
76675         * lib/getopt.c (_): Likewise.
76676         * lib/regex.c (_): Likewise.
76677
76678 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76679
76680         * m4/error.m4 (jm_PREREQ_ERROR):
76681         Do not invoke AC_CHECK_FUNCS with strerror_r, as
76682         AC_FUNC_STRERROR_R does that.
76683         Check for strerror declaration.
76684
76685         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
76686         are supposed to have them these days.
76687         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
76688         Merge changes from latest Autoconf CVS.
76689         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
76690         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
76691         POSIX decided to standardize on the int flavor of strerror_r.
76692
76693 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76694
76695         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
76696         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
76697         Use strerror_r that is only a macro, even if it is not a function.
76698         (strerror): Check for HAVE_DECL_STRERROR before declaring.
76699         (private_strerror): Use prototypes, not old-style function definition.
76700         (print_errno_message): New function.
76701         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
76702         char*-flavored one.
76703         (error_tail, error, error_at_line): Use it.
76704
76705 2001-10-11  Jim Meyering  <meyering@lucent.com>
76706
76707         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
76708         and quote_n (1, ... to avoid clobbering a buffer.
76709
76710 2001-10-05  Jim Meyering  <meyering@lucent.com>
76711
76712         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
76713         hash-pjw.h.
76714         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
76715         * lib/hash-pjw.h: New file.
76716
76717 2001-09-30  Jim Meyering  <meyering@lucent.com>
76718
76719         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
76720         `struct fsstat' has the `f_fstypename' member.
76721         Use that to define FS_TYPE, which is now used to make
76722         the getfsstat link test tighter.
76723
76724 2001-09-30  Jim Meyering  <meyering@lucent.com>
76725
76726         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
76727         Include <sys/ucred.h>, for Apple Darwin.
76728         Include sys/mount.h and sys/fs_types.h only if available.
76729         (FS_TYPE): Define.
76730         (read_filesystem_list): Use FS_TYPE.
76731
76732 2001-09-29  Paul Eggert  <eggert@twinsun.com>
76733
76734         * lib/exclude.c (excluded_filename): 0 -> false, since it's
76735         a boolean context.
76736
76737 2001-09-29  Jim Meyering  <meyering@lucent.com>
76738
76739         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76740         [one-argument getmntent function]): Include stdio.h before mntent.h.
76741         SunOS 4.1.x needs it for the declaration of `FILE'.
76742         Patch by Volker Borchert.
76743
76744         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76745         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
76746         sys/fs_types.h, and make the link-test for getfsstat guard #include
76747         directives with appropriate #if HAVE_*_H tests so that we can
76748         detect getfsstat on Apple Darwin1.3.7 systems.
76749         Reported by Nelson Beebe.
76750         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
76751
76752 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76753
76754         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76755         #defines strtoimax.  Also treat the other strto* functions
76756         like strtoimax.
76757
76758         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76759         Check for strtoul and strtoumax,
76760         as those declarations are made even in the signed case.
76761         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
76762         Likewise, for strtol and strtoimax.
76763
76764 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76765
76766         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76767         #defines strtoimax.  Also treat the other strto* functions
76768         like strtoimax.
76769
76770         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
76771         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
76772         (strtoimax, strtoumax): Do not declare if already defined as a macro.
76773
76774 2001-09-26  Jim Meyering  <meyering@lucent.com>
76775
76776         Most macros in unlocked-io.h had the wrong number of arguments.
76777         * lib/gen-uio: New script.
76778         (USE_UNLOCKED_IO): Define to 1 if not already defined.
76779         * lib/unlocked-io.hin: Remove file.
76780         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
76781         rather than trying to embed it here.
76782         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
76783         Reported by Padraig Brady.
76784
76785 2001-09-25  Volker Borchert  <bt@teknon.de>
76786
76787         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
76788         `result'.
76789
76790 2001-09-24  Jim Meyering  <meyering@lucent.com>
76791
76792         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
76793
76794 2001-09-23  Jim Meyering  <meyering@lucent.com>
76795
76796         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
76797         instead of the mere test for existence of mntent.h.  The latter
76798         would get a false-positive on AIX 3.4 systems.
76799         In the outer getmntent if-block, don't die if neither of the getmntent
76800         tests succeeds.  Instead, just fall through and continue with the
76801         remaining tests.
76802
76803 2001-09-23  Jim Meyering  <meyering@lucent.com>
76804
76805         * lib/mountlist.c: Remove useless parentheses in #if directives.
76806         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
76807         the deprecated MOUNTED symbol is no longer defined in mntent.h.
76808
76809 2001-09-22  Jim Meyering  <meyering@lucent.com>
76810
76811         * m4/gettext.m4: New file.  From gettext.
76812         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
76813         * m4/progtest.m4: Likewise
76814         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
76815         * m4/glibc21.m4: Likewise.
76816
76817         * m4/libintl.m4: Remove.  No longer used.
76818
76819 2001-09-22  Jim Meyering  <meyering@lucent.com>
76820
76821         * lib/localcharset.c: Update from latest gettext.
76822         * lib/config.charset: Likewise.
76823
76824 2001-09-20  Jim Meyering  <meyering@lucent.com>
76825
76826         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
76827         strtoimax.
76828         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
76829         strtoumax.
76830
76831 2001-09-20  Jim Meyering  <meyering@lucent.com>
76832
76833         * lib/xstrtol.c (strtoimax): Guard declaration with
76834         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
76835         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
76836         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
76837         (strtoumax): Likewise, for completeness (it wasn't necessary).
76838
76839 2001-09-17  Paul Eggert  <eggert@twinsun.com>
76840
76841         * lib/strtoimax.c (HAVE_LONG_LONG):
76842         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
76843         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
76844         to work around bug in IBM C compiler.
76845
76846 2001-09-17  Jim Meyering  <meyering@lucent.com>
76847
76848         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
76849         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
76850         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
76851         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
76852         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
76853         whenever the right hand side need not be expanded by the shell.
76854
76855 2001-09-16  Paul Eggert  <eggert@twinsun.com>
76856
76857         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
76858         library.  It's not correct, as some older glibcs are buggy.
76859         fnmatch wasn't fixed until glibc 2.2.
76860
76861         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
76862         special shell magic here.
76863
76864 2001-09-16  Jim Meyering  <meyering@lucent.com>
76865
76866         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
76867         * m4/jm-macros.m4: Require it.
76868
76869 2001-09-16  Jim Meyering  <meyering@lucent.com>
76870
76871         * lib/mkdir.c: New file.
76872
76873 2001-09-15  Jim Meyering  <meyering@lucent.com>
76874
76875         * m4/jm-macros.m4: Check for help2man.
76876
76877 2001-09-11  Jim Meyering  <meyering@lucent.com>
76878
76879         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
76880         The body, by Paul Eggert, was moved here from configure.in.
76881         * m4/jm-macros.m4: Require UTILS_HOST_OS.
76882
76883 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76884
76885         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
76886         (jm_PREREQ): Use it.
76887
76888 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76889
76890         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
76891         Use ssize_t, not int, to store result of readlink.
76892         Check for ssize_t overflow as well as size_t overflow,
76893         as POSIX says the result of readlink is implementation-defined
76894         when ssize_t overflows.
76895         Remove unnecessary cast to char*.
76896         Use free+malloc instead of realloc, as the storage doesn't need
76897         to be preserved and it's clearer and can be more efficient that way.
76898         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
76899         * lib/xreadlink.h (xreadlink): Update prototype.
76900
76901 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76902
76903         * lib/xgetcwd.c: Revert some of the previous change; intead,
76904         fix the HAVE_GETCWD_NULL code to behave more like the
76905         !HAVE_GETCWD_NULL code used to.
76906
76907         Include "xalloc.h".
76908         (xgetcwd): Do not return NULL when memory is exhausted; instead,
76909         invoke xalloc_die.
76910
76911 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76912
76913         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
76914         sys/param.h, as pathmax.h includes them.
76915
76916 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76917
76918         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
76919         (jm_PREREQ_XGETCWD): New macro.
76920
76921         * m4/getcwd.m4: New file.
76922
76923 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76924
76925         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
76926         like the HAVE_GETCWD_NULL code.
76927         Include pathmax.h if not HAVE_GETCWD.
76928         Do not include xalloc.h.
76929         (INITIAL_BUFFER_SIZE): New symbol.
76930         Do not use xmalloc / xrealloc, since the caller is responsible for
76931         handling errors.  Preserve errno around `free' during failure.
76932         Do not overrun buffer when using getwd.
76933
76934 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76935
76936         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
76937         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
76938         getcwd (NULL, 0).
76939
76940 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76941
76942         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
76943         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
76944         spotted by Jim Meyering.
76945
76946 2001-09-03  Jim Meyering  <meyering@lucent.com>
76947
76948         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
76949         failure.
76950
76951 2001-09-02  Jim Meyering  <meyering@lucent.com>
76952
76953         * lib/error.c: Update from GNU libc.
76954
76955 2001-09-01  Jim Meyering  <meyering@lucent.com>
76956
76957         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
76958         Used by df.
76959
76960 2001-09-01  Jim Meyering  <meyering@lucent.com>
76961
76962         * lib/xreadlink.c: New file.
76963         * lib/xreadlink.h: New file.
76964         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
76965         xreadlink.h.
76966
76967         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
76968         doesn't conflict with sparc Solaris 7's definition in
76969         /usr/include/sys/int_types.h.
76970
76971         * lib/exclude.c: Use `""', not `<>' to #include non-system header
76972         files.
76973         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
76974         and strncasecmp as r-values.  Unixware didn't have declarations.
76975
76976 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76977
76978         * lib/xstrtol.h: Add copyright notice.
76979         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
76980         LONGINT_INVALID_SUFFIX_CHAR.
76981
76982 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76983
76984         * lib/xstrtol.c (strtoimax): New decl.
76985
76986 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76987
76988         * lib/xgetcwd.c: Don't include pathmax.h.
76989         Include stdlib.h and unistd.h if available.
76990         Include xalloc.h.
76991         (xmalloc, xstrdup, free): Remove decls.
76992         (xgetcwd): Don't assume sizes fit in unsigned.
76993         Check for overflow when computing sizes.
76994         Simplify reallocation code.
76995
76996 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76997
76998         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
76999         a directory's st_size can have an arbitrary value, so the old
77000         usage could waste an arbitrary amount of memory.  All uses
77001         changed.
77002         * lib/savedir.h: Update prototype.
77003
77004 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77005
77006         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
77007
77008         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
77009         old strtoimax.c.
77010
77011         Also, make the following further changes to make this file's
77012         configuration more similar to that of strtol.c:
77013         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
77014         (strtoumax, uintmax_t, strtoull, strtol): Remove.
77015         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
77016         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
77017         changed to signed values.
77018
77019         And make the following changes as well:
77020         Fix copyright notice, as 1999 was missing.
77021         (verify): New macro.
77022         (strtoimax): Check sizes at compile-time, not run-time.
77023         Prefer strtol to strtoll if both work.
77024         (main): Remove; it was not that useful and was a pain to maintain.
77025
77026         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
77027
77028 2001-08-31  Jim Meyering  <meyering@lucent.com>
77029
77030         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
77031         Use an initial, malloc'd, buffer of length 128 rather than
77032         a statically allocated one of length 1024.
77033
77034 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77035
77036         Simplify code, partly by assuming autoconf 2.52 semantics.
77037
77038         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
77039
77040         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
77041         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
77042         All uses removed.
77043         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
77044         Move AC_REQUIRE to next-to-top level, to avoid confusion.
77045         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
77046         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
77047         jm_AC_HEADER_INTTYPES_H.
77048         * m4/jm-macros.m4 (jm_MACROS): Likewise.
77049
77050         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
77051
77052         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77053         Quote first arg of AC_DEFUN.
77054         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
77055         since they are needed to parse the include file even if we need
77056         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
77057         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
77058         but with opposite signedness.
77059
77060 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77061
77062         Merge 'exclude' changes from tar 1.13.22.
77063         This fixes one or two unlikely storage allocation overflow bugs,
77064         but doesn't change user-visible behavior otherwise.
77065
77066 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77067
77068         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
77069         (jm_PREREQ_EXCLUDE): New macro.
77070
77071 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77072
77073         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
77074         tm to be declared.
77075
77076 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77077
77078         * lib/hash.c: Remove '2001' from copyright notice.
77079
77080 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77081
77082         * lib/full-write.h: New file.
77083         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
77084         * lib/full-write.c: Correct credits, as cccp.c no longer
77085         exists and anyway it was so heavily changed from the old cccp
77086         code as to be unrecognizable.  Include full-write.h.
77087         (full_write): Return size_t, with short writes meaning failure.
77088         All callers changed.  This fixes a bug with large buffers
77089         on 64-bit hosts.
77090         * lib/utime.c: Include full-write.h.
77091
77092 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77093
77094         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
77095         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
77096         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
77097         Include if available.
77098         (<xalloc.h>): Include
77099         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
77100         (verify): New macro.  Use it to verify that EXCLUDE macros do not
77101         collide with FNM macros.
77102         (struct patopts): New struct.
77103         (struct exclude): Use it, as exclude patterns now come with options.
77104         (new_exclude): Support above changes.
77105         (new_exclude, add_exclude_file):
77106         Initial size must now be a power of two to simplify overflow checking.
77107         (free_exclude, fnmatch_no_wildcards): New function.
77108         (excluded_filename): No longer requires options arg, as the options
77109         are determined by add_exclude.  Now returns bool, not int.
77110         (excluded_filename, add_exclude):
77111         Add support for the fancy new exclusion options.
77112         (add_exclude, add_exclude_file): Now takes int options arg.
77113         Check for arithmetic overflow when computing sizes.
77114         (add_exclude_file): xrealloc might modify errno, so don't
77115         realloc until after errno might be used.
77116
77117         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
77118         New macros.
77119         (free_exclude): New decl.
77120         (add_exclude, add_exclude_file): Now takes int options arg.
77121         (excluded_filename): No longer requires options arg, as the options
77122         are determined by add_exclude.  Now returns bool, not int.
77123
77124 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77125
77126         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
77127
77128 2001-08-27  Jim Meyering  <meyering@lucent.com>
77129
77130         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
77131
77132         * lib/version-etc.c (N_): Remove definition.
77133         Revert most of last change.
77134         Instead, simply don't mark the `Copyright...' string for translation.
77135         Based on advice from Paul Eggert.
77136
77137         * lib/strtoxmax.c: Tweak comment.
77138
77139 2001-08-26  Jim Meyering  <meyering@lucent.com>
77140
77141         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
77142
77143         * m4/xstrtoimax.m4: New file.
77144         * m4/xstrtoumax.m4: Add comments explaining why we
77145         AC_REPLACE_FUNCS(strtol).
77146
77147 2001-08-26  Jim Meyering  <meyering@lucent.com>
77148
77149         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
77150         of copyright with `%s' so translators don't get an untranslated
77151         message in 2002.
77152         (COPYRIGHT_YEAR): Define.
77153         (version_etc): Use fprintf rather than fputs.
77154         Suggestion from Ulrich Drepper.
77155
77156         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
77157
77158         * lib/strtoll.c: New file, from GNU libc.
77159         * lib/xstrtoimax.c: New file.
77160
77161         * lib/xstrtol.h: Add xstrtoimax.
77162         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
77163         * lib/strtoimax.c: New file.  Likewise, but first define
77164         STRTOUXMAX_SIGNED.
77165
77166         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
77167         ...
77168         * lib/strtoxmax.c: ... then renamed to this.
77169
77170 2001-08-18  Paul Eggert  <eggert@twinsun.com>
77171
77172         * m4/inttypes.m4: Add AC_PREREQ(2.13).
77173         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
77174         (jm_AC_TYPE_INTMAX_T): New macro.
77175         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
77176
77177         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
77178
77179         * m4/longlong.m4: Renamed from ulonglong.m4.
77180         * m4/inttypes.m4: Renamed from inttypes_h.m4.
77181         * m4/uintmax_t.m4: Removed.
77182
77183 2001-08-13  Paul Eggert  <eggert@twinsun.com>
77184
77185         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
77186         Port to Solaris 8, where 'sed' requires a space after the 'r'
77187         command, and where sh dislikes "$/".  Clean up the spacing a bit.
77188         Redirect output to $tmp just once.
77189
77190 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
77191
77192         * lib/addext.c (<errno.h>): Include.
77193         (errno): Declare if not defined.
77194         (addext): Work correctly when pathconf returns -1 and leaves
77195         errno alone because there is no limit.  Also, work even if
77196         pathconf returns a value greater than SIZE_MAX.
77197
77198 2001-08-12  Jim Meyering  <meyering@lucent.com>
77199
77200         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
77201         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
77202         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
77203         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
77204         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
77205         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
77206         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
77207         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
77208         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
77209         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
77210         utime.m4, utimes.m4, xstrtoumax.m4:
77211         Quote the first argument in each use of AC_DEFUN.
77212
77213 2001-08-12  Jim Meyering  <meyering@lucent.com>
77214
77215         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
77216         Simply `return getcwd (NULL, 0);'.
77217         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
77218         Use 1300 as initial value for length, not PATH_MAX.
77219
77220         * lib/pathmax.h: Clean up cpp syntax.
77221
77222 2001-08-12  Jim Meyering  <meyering@lucent.com>
77223
77224         * lib/gettimeofday.c: New file.
77225         * lib/gtod.h: New file.
77226         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
77227
77228 2001-08-05  Jim Meyering  <meyering@lucent.com>
77229
77230         * m4/jm-macros.m4: Require autoconf-2.52.
77231
77232 2001-08-04  Jim Meyering  <meyering@lucent.com>
77233
77234         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
77235         stmt, to get in sync with glibc.
77236
77237 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77238
77239         The following changes are from gettext 0.10.39 as maintained by
77240         Bruno Haible.
77241
77242         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
77243         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
77244         with inverted sense.  All uses changed.
77245
77246         * lib/mbswidth.c: Don't include <limits.h>.
77247         Include <stdlib.h> and <string.h> unconditionally.
77248         (iswcntrl, mbsinit, ISCNTRL): New macros.
77249         (mbsnwidth): Use K&R style function declarations.
77250         Don't bother checking for MB_LEN_MAX == 1, since the compiler
77251         can optimize it when MB_CUR_MAX == 1.
77252         The width of control characters is zero, not 1.
77253
77254 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77255
77256         The following changes are from gettext 0.10.39 as maintained by
77257         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
77258
77259         * m4/codeset.m4: Upgrade to serial AM1.
77260         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
77261         all uses changed.  Quote first arg of AC_DEFUN.
77262         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
77263
77264         * m4/iconv.m4: Upgrade to serial AM2.
77265         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
77266         Add --with-libconv-prefix.
77267         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
77268         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
77269         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
77270         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
77271         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
77272
77273         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
77274         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
77275         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
77276         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
77277         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
77278         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
77279         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
77280         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
77281         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77282
77283         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
77284         string.h any more.
77285
77286         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
77287         not the default value.
77288
77289         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
77290         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
77291         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
77292         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
77293         Also check for iswcntrl, used for wcwidth fallback.
77294         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
77295         to Autoconf 2.13.
77296
77297 2001-08-03  Jim Meyering  <meyering@lucent.com>
77298
77299         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
77300         as it was in the original.  Reported by Paul Eggert.
77301
77302 2001-07-16  Jim Meyering  <meyering@lucent.com>
77303
77304         * m4/gettimeofday.m4: New file.
77305         Prompted by a report from Bernhard Baehr.
77306
77307 2001-07-15  Jim Meyering  <meyering@lucent.com>
77308
77309         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
77310         stuff. Now it's in ../Makefile.cfg.
77311
77312 2001-07-15  Jim Meyering  <meyering@lucent.com>
77313
77314         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
77315         (BUILT_SOURCES): Add unlocked-io.h.
77316         (io_functions): Define.
77317         (unlocked-io.h): New rule.
77318         (DISTCLEANFILES): Add unlocked-io.h.
77319         (all-local): Depend on unlocked-io.h, to ensure it is created.
77320
77321         * lib/unlocked-io.hin: New file
77322
77323         * lib/regex.c: Update from glibc.
77324
77325 2001-07-05  Jim Meyering  <meyering@lucent.com>
77326
77327         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
77328         recommendation.
77329         (libfetish_a_SOURCES): Put all .h files here instead.
77330         Remove a thus-exposed (better checks in automake) duplicate and
77331         two unnecessary .h files.
77332
77333 2001-07-04  Jim Meyering  <meyering@lucent.com>
77334
77335         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
77336         that generates jm-glibc-io.m4 so that it doesn't trigger any make
77337         distcheck failure.
77338
77339 2001-07-02  Jim Meyering  <meyering@lucent.com>
77340
77341         The following changes were prompted by suggestions from Bruno Haible.
77342
77343         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
77344         is now generated.
77345         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
77346         definition of EXTRA_DIST.
77347         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
77348         ensure that the generated file is created/updated whenever the list
77349         of $(unlocked_functions) is changed.
77350         (jm-glibc-io.m4): New rule.
77351         (unlocked-io.h): New rule -- currently unused.
77352
77353 2001-06-24  Jim Meyering  <meyering@lucent.com>
77354
77355         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
77356         unmatched right bracket, rather than kludging it with an extra,
77357         falsely-matching quote in a comment.  Patch by Akim Demaille.
77358
77359 2001-06-11  Jim Meyering  <meyering@lucent.com>
77360
77361         * lib/regex.c: Update from GNU libc.
77362
77363 2001-05-27  Jim Meyering  <meyering@lucent.com>
77364
77365         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
77366         Check for ut_type in struct utmp.
77367
77368 2001-05-27  Jim Meyering  <meyering@lucent.com>
77369
77370         * lib/readutmp.h (UT_TYPE): Define.
77371
77372 2001-05-24  Jim Meyering  <meyering@lucent.com>
77373
77374         * lib/argmatch.c: Include "quote.h".
77375         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
77376         quote function.  Reported by Göran Uddeborg.
77377
77378 2001-05-22  Jim Meyering  <meyering@lucent.com>
77379
77380         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
77381         now that we use the package-supplied version unconditionally.
77382         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
77383
77384 2001-05-21  Jim Meyering  <meyering@lucent.com>
77385
77386         * m4/regex.m4: Change a couple backticks to single quotes to avoid
77387         shell syntax errors.
77388
77389 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77390
77391         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
77392
77393 2001-05-20  Paul Eggert  <eggert@twinsun.com>
77394
77395         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
77396         Don't bother to check library strftime, since
77397         we'll be using our own my_strftime function anyway.
77398         Define my_strftime instead of strftime.
77399
77400 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
77401
77402         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
77403         which is not yet declared.
77404
77405 2001-05-15  Jim Meyering  <meyering@lucent.com>
77406
77407         * m4/regex.m4: Use proper quoting so brackets appear in the test
77408         program.
77409         Reported by, and with help from, Bruno Haible.
77410
77411 2001-05-13  Jim Meyering  <meyering@lucent.com>
77412
77413         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
77414         undefined.
77415
77416 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77417
77418         dirname code cleanup.  base_name now behaves more compatibly
77419         with POSIX basename when given file names that have trailing
77420         slashes, and similarly for dir_name.  Add new primitives
77421         base_len and dir_len.  Put the directory-name-related decls
77422         into dirname.h.
77423
77424         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
77425         * lib/backupfile.c (base_name): Likewise.
77426         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
77427         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
77428         * lib/makepath.c (strip_trailing_slashes): Likewise.
77429         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
77430         ISSLASH): Likewise.
77431         * lib/rename.c (strip_trailing_slashes): Likewise.
77432         * lib/same.c (base_name): Likewise.
77433         * lib/stripslash.c (ISSLASH): Likewise.
77434
77435         * lib/addext.c: Include <dirname.h> after size_t is defined.
77436         * lib/backupfile.c: Likewise.
77437
77438         * lib/addext.c (addext): Use base_len to trim redundant
77439         trailing slashes instead of doing it ourselves.
77440         But do not trim the last slash if it is not redundant.
77441
77442         * lib/backupfile.c (find_backup_file_name,
77443         max_backup_version): Use base_len instead of rolling it ourselves.
77444         Handle the case of "" and (on DOS) "C:" correctly.
77445
77446         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
77447         needed. Include <string.h>, <dirname.h>.
77448         (base_name): Allow file names ending in slashes, other than names
77449         that are all slashes.  In this case, return the basename followed
77450         by the slashes.  This is more general, and can be used in places
77451         where the original base_name purposely had an assertion failure.
77452         (base_len): New function.
77453
77454         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
77455         Do not include <assert.h>; no longer needed.
77456         Include xalloc.h.
77457         (memrchr): Remove decl.
77458         (dir_name_r): Remove.
77459         (dir_len): Renamed from dirlen.  All callers changed.
77460         Rewrite in terms of base_name, for simplicity and consistency.
77461         (dir_name): Never return NULL.  All callers changed.
77462         Do not include <stdlib.h> in test program; no longer needed.
77463         return 0; is fine for test program.
77464
77465         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
77466         New macros.
77467         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
77468
77469         * lib/path-concat.c (path_concat): Use base_len to compute
77470         base length, not strlen; this means we cannot rely on memcpy
77471         to null-terminate.
77472
77473         * lib/same.c (STREQ): Remove.
77474         (same_name): Handle the case where the basename ends in trailing '/'.
77475
77476         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
77477         a slash was stripped.  Do not strip the last slash after a
77478         file system prefix.
77479
77480 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77481
77482         * lib/Makefile.am (libfetish_a_SOURCES):
77483         Add strftime.c, since we now compile it on all hosts.
77484
77485         * lib/strftime.c (my_strftime):
77486         Define to nstrftime if emacs, but only if my_strftime is not defined.
77487         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
77488         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
77489         Add one more extra argument: a nanoseconds value.
77490         All uses changed.
77491         (ns): New macro.
77492         (my_strftime function): Add %N format.
77493         (emacs_strftimeu): Renamed from emacs_strftime,
77494         with extra ut argument.
77495
77496 2001-05-09  Paul Eggert  <eggert@twinsun.com>
77497
77498         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
77499
77500 2001-04-21  Jim Meyering  <meyering@lucent.com>
77501
77502         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
77503         doesn't interfere.
77504
77505 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77506
77507         * m4/ftruncate.m4: Check for chsize.
77508         Link with ftruncate.o unconditionally if ftruncate is missing.
77509         This was required when cross-compiling to i586-mingw32msvc.
77510
77511 2001-04-08  Jim Meyering  <meyering@lucent.com>
77512
77513         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
77514         recomputed; that's necessary when the offset spans a DST transition.
77515         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
77516
77517 2001-04-02  Jim Meyering  <meyering@lucent.com>
77518
77519         * lib/regex.h, regex.c: Update from GNU libc.
77520
77521 2001-03-24  Jim Meyering  <meyering@lucent.com>
77522
77523         * m4/jm-macros.m4: Require autoconf-2.49d.
77524
77525 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
77526
77527         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
77528
77529 2001-03-19  Paul Eggert  <eggert@twinsun.com>
77530
77531         * lib/version-etc.c (version_etc_copyright): Update to 2001.
77532
77533 2001-03-17  Jim Meyering  <meyering@lucent.com>
77534
77535         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
77536         now that the version in autoconf is equivalent.
77537         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
77538
77539         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
77540         Suggestion from Akim Demaille.
77541
77542         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
77543         (jm_PREREQ_TEMPNAME): New function.
77544
77545 2001-03-16  Paul Eggert  <eggert@twinsun.com>
77546
77547         * lib/tempname.c (uint64_t): Define to uintmax_t if
77548         not defined, and if UINT64_MAX is not defined.
77549         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
77550         Reported by John David Anglin.
77551
77552 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
77553
77554         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
77555         resolve alias if codeset is empty.
77556         * lib/config.charset (BeOS): Use wildcard syntax.
77557
77558 2001-03-13  Jim Meyering  <meyering@lucent.com>
77559
77560         * lib/path-concat.c (path_concat)
77561         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
77562         concatenating e.g., `C:' and `foo'.
77563         From Bruno Haible.
77564
77565 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77566
77567         * lib/localcharset.c (locale_charset): Don't use
77568         setlocale(LC_CTYPE,NULL). Don't return NULL.
77569         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
77570
77571 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77572
77573         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
77574         support for DOS/DJGPP.
77575
77576 2001-03-01  Paul Eggert  <eggert@twinsun.com>
77577
77578         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
77579         lacks mkstemp.  Compile our own tempname.c if we compile our own
77580         mkstemp.c, as mkstemp relies on tempname.
77581
77582 2001-03-01  Jim Meyering  <meyering@lucent.com>
77583
77584         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
77585         AH_VERBATIM really does output its argument verbatim.
77586
77587 2001-02-28  Paul Eggert  <eggert@twinsun.com>
77588
77589         * lib/Makefile.am (libfetish_a_SOURCES):
77590         Add dup-safer.c, fopen-safer.c.
77591         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
77592
77593         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
77594         * lib/unistd-safer.h: New files.
77595
77596 2001-02-25  Paul Eggert  <eggert@twinsun.com>
77597
77598         The mkstemp replacement is taken from glibc 2.2.2, with some
77599         portability fixes for use outside glibc, as follows:
77600
77601         * lib/tempname.c (struct_stat64): New macro.
77602         (direxists, __gen_tempname): Use it.
77603         This avoids a portability problem with Solaris 8.
77604
77605         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
77606         (<stddef.h>, <stdint.h>, <string.h>):
77607         Include only if STDC_HEADERS || _LIBC.
77608         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
77609         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
77610         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
77611         (__set_errno): Define this macro if <errno.h> doesn't.
77612         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
77613         Define these macros if <stdio.h> doesn't.
77614         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
77615         Define these macros if <sys/stat.h>
77616         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
77617         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
77618         __xstat64): Define if not _LIBC.
77619         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
77620         (__gen_tempname): Invoke gettimeofday only if
77621         HAVE_GETTIMEOFDAY || _LIBC;
77622         otherwise, fall back on plain "time".
77623         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
77624
77625         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
77626
77627         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
77628
77629 2001-02-18  Paul Eggert  <eggert@twinsun.com>
77630
77631         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
77632
77633 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77634
77635         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
77636         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
77637         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
77638         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77639
77640 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77641
77642         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
77643         Remove workaround macros for hosts that have mbrtowc but not
77644         mbstate_t, as we now insist on proper declarations for both
77645         before using mbrtowc.
77646
77647 2001-02-17  Jim Meyering  <meyering@lucent.com>
77648
77649         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
77650         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
77651         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
77652         UnixWare 7.1.1.
77653
77654         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
77655         rather than AC_CACHE_VAL.
77656
77657 2001-02-17  Jim Meyering  <meyering@lucent.com>
77658
77659         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
77660         around included file name.
77661
77662         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
77663
77664         * lib/strftime.c: Update from GNU libc (the only changes were to
77665         comments).
77666
77667 2001-02-17  Jim Meyering  <meyering@lucent.com>
77668
77669         * lib/regex.c: Update from libc.
77670
77671 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
77672
77673         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
77674         clash.
77675
77676 2001-02-16  Paul Eggert  <eggert@twinsun.com>
77677
77678         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
77679         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
77680         Reported by Mark Hounschell via Paul Eggert.
77681
77682 2001-02-07  Jim Meyering  <meyering@lucent.com>
77683
77684         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
77685
77686 2001-02-05  Jim Meyering  <meyering@lucent.com>
77687
77688         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
77689         it includes the patch required for `large file' support with at least
77690         HP-UX's 10.20 /bin/cc.
77691
77692 2001-02-03  Jim Meyering  <meyering@lucent.com>
77693
77694         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
77695         AS_IF, now that it works once again (mysteriously).
77696         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77697
77698 2001-01-30  Jim Meyering  <meyering@lucent.com>
77699
77700         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
77701         * m4/chown.m4: Rename conftestchown to conftest.chown.
77702         * m4/rename.m4: s/conftestdir/conftest.d1/ and
77703         s/conftestdir2/conftest.d2/.
77704         * m4/utimes.m4: s/conftestdata/conftest.data/
77705         Inspired by Pavel Roskin's change in autoconf.
77706
77707 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
77708
77709         * lib/config.charset: Update for FreeBSD 4.2.
77710
77711 2001-01-27  Jim Meyering  <meyering@lucent.com>
77712
77713         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
77714         a use of AS_IF.
77715         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77716
77717 2001-01-26  Jim Meyering  <meyering@lucent.com>
77718
77719         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
77720         quotearg.c includes it.
77721
77722 2001-01-26  Jim Meyering  <meyering@lucent.com>
77723
77724         * lib/quotearg.c: Include stddef.h.
77725         * lib/quote.c: Include stddef.h.
77726         Reported by Axel Kittenberger.
77727
77728         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
77729         line in double quotes so that it evokes a better diagnostic.
77730         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
77731         Reported by Axel Kittenberger.
77732
77733 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
77734
77735         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
77736         as if it was a `charset'.
77737
77738 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77739
77740         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
77741         has const.
77742
77743 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77744
77745         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
77746         to avoid a warning.  Add back 'const' to inptr.
77747
77748 2001-01-20  Jim Meyering  <meyering@lucent.com>
77749
77750         Be sure that headers are checked before used in code compiled
77751         for the type checks.
77752         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
77753         In place of that, invoke jm_CHECK_ALL_TYPES.
77754         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
77755         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
77756         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
77757         The check for ssize_t was mistakenly run before the test for unistd.h.
77758
77759         The configure-time check for stdbool.h was missing.
77760         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
77761         (jm_PREREQ_HASH): New function.
77762
77763 2001-01-17  Jim Meyering  <meyering@lucent.com>
77764
77765         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
77766         for autoconf-2.49c.
77767         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
77768
77769 2001-01-16  Jim Meyering  <meyering@lucent.com>
77770
77771         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
77772         From Bruno Haible.
77773
77774 2001-01-14  Jim Meyering  <meyering@lucent.com>
77775
77776         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
77777         foo and bar.  Create conftestdir/ in the script, not in the C code.
77778         Remove directories in the script, not in the C code.
77779         Remove conftestdir{,2} before trying to create the directory.
77780         Make the entire configure script fail if the mkdir fails.
77781
77782 2001-01-14  Jim Meyering  <meyering@lucent.com>
77783
77784         * lib/rename.c: New file.  From Volker Borchert.
77785         Include stdlib.h, string.h or strings.h, and xalloc.h.
77786         Use strip_trailing_slashes rather than open-coding it.
77787
77788 2001-01-03  Paul Eggert  <eggert@twinsun.com>
77789
77790         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
77791
77792 2001-01-03  Jim Meyering  <meyering@lucent.com>
77793
77794         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
77795         of local `inptr' to avoid warning with some system declarations of
77796         iconv.
77797
77798 2001-01-02  Volker Borchert  <bt@teknon.de>
77799
77800         * m4/rename.m4: New file.
77801         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
77802
77803 2001-01-01  Jim Meyering  <meyering@lucent.com>
77804
77805         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
77806         even on systems with utmpx.h.  It's necessary for the declaration of
77807         utmp's ut_user member.  Reported by Andreas Jaeger.
77808
77809         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
77810         available. They are required for the declarations of getgrgid and
77811         getpwuid resp.
77812         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
77813         Reported by Andreas Jaeger.
77814
77815 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
77816
77817         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
77818         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
77819         so `make install' also works in VPATH builds.
77820
77821 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
77822
77823         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
77824         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
77825         can be used in subdirectories.
77826
77827 2000-12-29  Paul Eggert  <eggert@twinsun.com>
77828
77829         * lib/modechange.c: Do not assume that mode_t uses the
77830         traditional octal encoding.  E.g. "chmod 1 FOO" should set
77831         the other-execute bit of FOO even if S_IXOTH != 1.
77832
77833         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
77834         WOTH, XOTH, ALLM): New macros.
77835         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
77836          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
77837         Use them.
77838         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
77839         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
77840         (mode_compile):
77841         No need to use uintmax_t; unsigned long is long enough.
77842         Don't bother to get suffix since we don't use it.
77843
77844 2000-12-26  Jim Meyering  <meyering@lucent.com>
77845
77846         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
77847         better with autoheader.
77848
77849 2000-12-24  Jim Meyering  <meyering@lucent.com>
77850
77851         * lib/hash.c (is_prime): Return explicit boolean values.
77852         (hash_get_first): Return NULL to appease Irix5.6's 89.
77853         Reported by Nelson Beebe.
77854
77855 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
77856
77857         * lib/localcharset.c (locale_charset): Add support for Win32.
77858
77859 2000-12-18  Paul Eggert  <eggert@twinsun.com>
77860
77861         * lib/physmem.h, lib/physmem.c: New files.
77862
77863         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
77864         (noinst_HEADERS): Add physmem.h.
77865
77866         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
77867         't' for compatibility with Solaris 8 sort.
77868
77869 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
77870
77871         * lib/config.charset: Add support for BeOS.
77872
77873 2000-12-17  Jim Meyering  <meyering@lucent.com>
77874
77875         * m4/dos.m4 (jm_AC_DOS): New file and macro.
77876         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
77877
77878 2000-12-16  Jim Meyering  <meyering@lucent.com>
77879
77880         This bug had a serious impact on chown: `chown N:M FILE' (for integer
77881         N and M) would have treated it like `chown N:N FILE'.
77882
77883         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
77884
77885 2000-12-16  Jim Meyering  <meyering@lucent.com>
77886
77887         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
77888         SHELLS_FILE to a file name that's useful on djgpp systems.
77889         Include stdlib.h.
77890         (ADDITIONAL_DEFAULT_SHELLS): Define.
77891         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
77892         Based mostly on a patch from Prashant TR.
77893
77894 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
77895
77896         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
77897         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
77898         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
77899
77900 2000-12-08  Andreas Schwab  <schwab@suse.de>
77901
77902         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
77903         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
77904
77905 2000-12-07  Jim Meyering  <meyering@lucent.com>
77906
77907         * lib/stripslash.c (ISSLASH): Define.
77908         (strip_trailing_slashes): Use ISSLASH rather than comparing against
77909         `/'.
77910         From Prashant TR.
77911
77912         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
77913         (dir_name_r): Declare this function as static.
77914         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
77915         manifest itself on a name containing a mix of slashes and
77916         backslashes.
77917         Make this function work with names starting with a DOS-style
77918         drive letter and colon prefix.
77919         (dir_name): Append `.' if necessary.
77920         Based mostly on patches from Prashant TR and Eli Zaretskii.
77921
77922         * lib/dirname.h (dir_name_r): Remove prototype.
77923
77924 2000-12-06  Paul Eggert  <eggert@twinsun.com>
77925
77926         * m4/off_t-format.m4: Remove this file.
77927         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
77928
77929 2000-12-06  Jim Meyering  <meyering@lucent.com>
77930
77931         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
77932         replacement strtoull, we may well need the replacement strtoul, too.
77933         Check for declarations of strtoul and strtoull.
77934         Check for strtol.  Mainly as a cue to cause automake to include
77935         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
77936         Check for limits.h -- strtol.c needs it.
77937
77938 2000-12-05  Jim Meyering  <meyering@lucent.com>
77939
77940         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
77941
77942 2000-12-04  Jim Meyering  <meyering@lucent.com>
77943
77944         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
77945         Also include memory.h, stdlib.h, unistd.h if appropriate.
77946         Reported by Andreas Jaeger (conflicting declaration of malloc).
77947
77948 2000-12-02  Jim Meyering  <meyering@lucent.com>
77949
77950         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
77951         * m4/jm-macros.m4 (jm_MACROS): require it.
77952
77953 2000-12-02  Jim Meyering  <meyering@lucent.com>
77954
77955         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
77956
77957 2000-12-01  Paul Eggert  <eggert@twinsun.com>
77958
77959         * lib/memrchr.c: Include <config.h> before any system include file.
77960
77961 2000-11-30  Jim Meyering  <meyering@lucent.com>
77962
77963         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
77964
77965 2000-11-30  Jim Meyering  <meyering@lucent.com>
77966
77967         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
77968
77969 2000-11-29  Paul Eggert  <eggert@twinsun.com>
77970
77971         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
77972
77973 2000-11-26  Jim Meyering  <meyering@lucent.com>
77974
77975         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
77976
77977 2000-11-22  Paul Eggert  <eggert@twinsun.com>
77978
77979         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
77980         size of (size_t) -1; it's not portable.
77981
77982 2000-11-17  Jim Meyering  <meyering@lucent.com>
77983
77984         * lib/strstr.c: Update from GNU libc.
77985
77986 2000-11-17  Akim Demaille  <akim@epita.fr>
77987
77988         * lib/obstack.h: Formatting changes.
77989         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
77990         prevent type checking.
77991         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
77992         cast the value to (void *): assigning a `foo *' to a `void *'
77993         variable is valid.
77994         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
77995
77996 2000-11-16  Jim Meyering  <meyering@lucent.com>
77997
77998         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
77999
78000 2000-11-11  Jim Meyering  <meyering@lucent.com>
78001
78002         * lib/error.c: Add a couple #includes, merging from GNU libc version.
78003
78004 2000-11-10  Jim Meyering  <meyering@lucent.com>
78005
78006         * lib/obstack.h: Update from GNU libc.
78007         * lib/obstack.c: Likewise.
78008
78009 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
78010
78011         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
78012
78013 2000-11-06  Paul Eggert  <eggert@twinsun.com>
78014
78015         * lib/getusershell.c (setusershell): Use rewind rather than
78016         fseek/fseeko, to avoid configuration hassles with fseeko.
78017         Don't bother opening SHELLS_FILE if shellstream is NULL;
78018         it's not necessary.
78019
78020 2000-11-05  Jim Meyering  <meyering@lucent.com>
78021
78022         * lib/makepath.h (make_dir): Declare.
78023         * lib/makepath.c (make_dir): Remove `static' attribute.
78024         Tweak a comment.
78025
78026 2000-11-04  Jim Meyering  <meyering@lucent.com>
78027
78028         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
78029
78030 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
78031
78032         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
78033         last one in a bucket, advance to the next bucket.
78034
78035 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
78036
78037         * lib/fnmatch.c: Do not comment out all the code if we are using
78038         the GNU C library, because in some cases we are replacing buggy
78039         code in the GNU C library itself.
78040
78041 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
78042
78043         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
78044         (regex_compile): Catch bogus \(\1\).
78045
78046 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78047
78048         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
78049         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
78050         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
78051
78052 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78053
78054         * lib/error.h, getline.h, modechange.h:
78055         Remove "2000" from Copyright line, as the file hasn't been
78056         changed this year other than in the copyright notice.
78057
78058         * lib/xalloc.h: Add "2000" to Copyright line, as this file
78059         was changed this year.
78060
78061 2000-10-29  Jim Meyering  <meyering@lucent.com>
78062
78063         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
78064         renaming.
78065         * m4/ls-mntd-fs.m4: Likewise
78066
78067 2000-10-29  Jim Meyering  <meyering@lucent.com>
78068
78069         * lib/xstat.in: Fix grammar in comment.
78070
78071 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
78072
78073         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
78074         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
78075         doesn't define __restrict_arr.
78076
78077 2000-10-28  Jim Meyering  <meyering@lucent.com>
78078
78079         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
78080         (jm_PREREQ_MEMCHR): New function.
78081
78082 2000-10-28  Jim Meyering  <meyering@lucent.com>
78083
78084         * lib/memchr.c: Update from libc.
78085         Adjust for portability:
78086         [HAVE_STDLIB_H]: Include stdlib.h.
78087         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
78088         Undef __memchr, too.
78089         [!weak_alias]: Define __memchr to memchr.
78090
78091         * lib/regex.c: Update from libc.
78092         * lib/regex.h: Likewise.
78093         * lib/getopt1.c: Likewise.
78094         * lib/memcmp.c: Likewise.
78095
78096         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
78097         Avoid using fseek, when possible -- it's broken by design.
78098         Patch by Ulrich Drepper.
78099
78100 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
78101
78102         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
78103         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
78104         Giving in to popular pressure to shut up the compiler with casts.
78105
78106 2000-10-26  Jim Meyering  <meyering@lucent.com>
78107
78108         * lib/strftime.c: Update from libc.
78109
78110 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
78111
78112         * regex.c: More `unsigned char' -> `re_char' changes.
78113         Also change several `int' into `re_wchar_t'.
78114         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
78115         (PUSH_FAILURE_POINTER): Don't cast any more.
78116         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
78117         We want GCC to complain, since this piece of code makes
78118         re_match non-reentrant, which *should* be fixed.
78119         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
78120         (EXTEND_BUFFER): Use RETALLOC.
78121         (SET_LIST_BIT): Don't cast.
78122         (re_wchar_t): New type.
78123         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
78124         that those two functions will always properly return.
78125         (IMMEDIATE_QUIT_CHECK): Cast to void.
78126         (analyse_first): Use recursion rather than an explicit stack.
78127         (re_compile_fastmap): Can't fail anymore.
78128         (re_search_2): Don't check re_compile_fastmap for failure.
78129         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
78130         Now also sets the new value (passed in a new argument).
78131         (re_match_2_internal): Use it.
78132         Also, use a new var `reg' of type size_t when looping through regs
78133         rather than reuse the inappropriate `mcnt'.
78134
78135 2000-10-25  Jim Meyering  <meyering@lucent.com>
78136
78137         * lib/obstack.c: Update from libc.
78138
78139 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
78140
78141         * regex.c (regex_compile): Change the way of handling a range from
78142         a char less than 256 to a char not less than 256.
78143
78144 2000-10-24  Andrew Innes  <andrewi@gnu.org>
78145
78146         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
78147         NT-Emacs only.
78148         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
78149         so that re_search functions only quit when callers expect them to.
78150
78151 2000-10-23  Jim Meyering  <meyering@lucent.com>
78152
78153         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
78154         wrong.  That set_locale call must not have any side effects.
78155         From Paul Eggert.
78156
78157 2000-10-22  Jim Meyering  <meyering@lucent.com>
78158
78159         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
78160         [CYCLIC]: Remove now-unused definition.
78161
78162         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
78163         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
78164         Suggestion from Ulrich Drepper.
78165
78166 2000-10-21  Jim Meyering  <meyering@lucent.com>
78167
78168         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
78169         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
78170         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
78171
78172 2000-10-21  Jim Meyering  <meyering@lucent.com>
78173
78174         * lib/dirname.c (memrchr): Declare if necessary.
78175         (dir_name): Remove the restriction that there be no
78176         trailing slashes.  Now, this code skips past them, effectively
78177         ignoring them.
78178         [TEST_DIRNAME] (main): New unit tests.
78179
78180         * lib/memrchr.c: New file from GNU libc.
78181         Undef __memrchr, too.
78182         [!weak_alias]: Define __memrchr to memrchr.
78183         Guard weak_alias use with `#ifdef weak_alias'.
78184
78185 2000-10-21  Jim Meyering  <meyering@lucent.com>
78186
78187         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
78188         (dir_name): Use dir_name_r.
78189         * lib/dirname.h (dir_name_r): Declare it.
78190
78191 2000-10-17  Jim Meyering  <meyering@lucent.com>
78192
78193         * lib/quote.h (PARAMS): Define and use.
78194         Reported by Akim Demaille.
78195
78196         * lib/getopt.c: Update from libc.
78197
78198 2000-10-16  Jim Meyering  <meyering@lucent.com>
78199
78200         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
78201         setlocale.
78202         From Jan Fedak.
78203
78204 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
78205
78206         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
78207
78208 2000-09-25  Jim Meyering  <meyering@lucent.com>
78209
78210         * lib/md5.h (rol): Define (from GnuPG).
78211
78212         * lib/sha.c: Give credit (GnuPG) where due.
78213         (M): Use rol rather than open-coding it.
78214         Add a FIXME comment.
78215
78216 2000-09-21  Jim Meyering  <meyering@lucent.com>
78217
78218         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
78219         Reported by Michael Stone.
78220
78221 2000-09-20  Jim Meyering  <meyering@lucent.com>
78222
78223         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
78224         (noinst_HEADERS): Add sha.h.
78225         Based on code from Scott G. Miller and from GnuPG.
78226
78227 2000-09-18  Jim Meyering  <meyering@lucent.com>
78228
78229         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
78230         LIBS. Otherwise, everyone ends up linking with -lelf for some
78231         configurations.
78232         Reported by Mike Stone.
78233
78234 2000-09-15  Jim Meyering  <meyering@lucent.com>
78235
78236         * lib/regex.c: Update from libc.
78237
78238 2000-09-10  Jim Meyering  <meyering@lucent.com>
78239
78240         * lib/getopt.c (_getopt_internal): Update from glibc.
78241
78242 2000-09-09  Jim Meyering  <meyering@lucent.com>
78243
78244         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
78245         think it should be used as a general replacement for isascii.
78246         * lib/fnmatch.c: Likewise.
78247         * lib/mbswidth.c: Likewise
78248         * lib/regex.c: Likewise.
78249
78250         Don't use atoi.
78251         * lib/userspec.c: Include sys/param.h and limits.h.
78252         Include xstrtol.h.
78253         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78254         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
78255         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
78256         UID, GID.  Check range.
78257
78258 2000-09-06  Jim Meyering  <meyering@lucent.com>
78259
78260         * lib/getopt.c (_getopt_internal): Update from glibc.
78261
78262 2000-08-30  Jim Meyering  <meyering@lucent.com>
78263
78264         * lib/strftime.c: Merge in changes from GNU libc.
78265
78266 2000-08-26  Jim Meyering  <meyering@lucent.com>
78267
78268         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
78269         * m4/fpending.m4: New file.
78270
78271 2000-08-26  Jim Meyering  <meyering@lucent.com>
78272
78273         * lib/closeout.c: Include "__fpending.h".
78274         (close_stdout_status): Return right away if there's nothing to flush.
78275
78276         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
78277         * lib/__fpending.c: New file.
78278         * lib/__fpending.h: New file.
78279
78280 2000-08-20  Jim Meyering  <meyering@lucent.com>
78281
78282         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
78283         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
78284         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
78285
78286 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
78287
78288         Improve fileutils installation on systems where running
78289         programs (like install) can't be unlinked.
78290         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
78291         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
78292
78293 2000-08-07  Paul Eggert  <eggert@twinsun.com>
78294
78295         Standardize on "memory exhausted" instead of "Memory exhausted"
78296         or "virtual memory exhausted".
78297         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
78298         "virtual memory exhausted".
78299         * lib/same.c (same_name): Invoke xalloc_die instead of printing
78300         our own message.
78301         * lib/userspec.c (parse_user_spec): Likewise.
78302         * lib/bumpalloc.h: comment fix
78303         * lib/same.c, userspec.c: Include xalloc.h.
78304
78305         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
78306         not char *const and pointing to a constant array.
78307         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
78308         (xrealloc): Comment fix.
78309
78310         * lib/userspec.c (parse_user_spec):
78311         Don't translate a message until just before returning,
78312         to avoid unnecessary translation.
78313
78314 2000-08-07  Jim Meyering  <meyering@lucent.com>
78315
78316         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
78317         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
78318         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
78319         getgroups.c, gethostname.c, getopt.h, group-member.c,
78320         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
78321         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
78322         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
78323         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
78324         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
78325         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
78326         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
78327         yesno.c: Back out Copyright date changes for each file with no change
78328         this year.  This eases coordination with other programs using the same
78329         source code modules.  From Paul Eggert.
78330
78331 2000-08-06  Paul Eggert  <eggert@twinsun.com>
78332
78333         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
78334         not char, for compatibility with glibc 2.1.3 strftime.c.
78335
78336 2000-08-03  Greg McGary  <greg@mcgary.org>
78337
78338         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
78339         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
78340         (EXTEND_BUFFER): Use them.
78341
78342 2000-08-01  Jim Meyering  <meyering@lucent.com>
78343
78344         * lib/dirname.c (ISSLASH): Define.
78345         (BACKSLASH_IS_PATH_SEPARATOR): Define.
78346         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
78347         both `\' and `/' may be use as path separators.
78348         Based on a patch from Prashant TR.
78349
78350 2000-07-31  Paul Eggert  <eggert@twinsun.com>
78351
78352         * lib/quotearg.c (quotearg_n_options): Don't make the initial
78353         slot vector a constant, since it might get modified.
78354
78355 2000-07-31  Jim Meyering  <meyering@lucent.com>
78356
78357         * lib/xmalloc.c: Use `virtual memory exhausted', not
78358         `Memory exhausted'.
78359         * lib/obstack.c (print_and_abort): Likewise.
78360
78361 2000-07-30  Paul Eggert  <eggert@twinsun.com>
78362
78363         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
78364         buffer, so that the caller can always quote one small
78365         component of a "memory exhausted" message in slot 0.
78366         From a suggestion by Jim Meyering.
78367
78368 2000-07-30  Jim Meyering  <meyering@lucent.com>
78369
78370         * lib/makepath.c (make_path): Quote the other instance, too.
78371
78372         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
78373         (STATIC_BUF_SIZE): Define.
78374         (quotearg_n_options): Use only statically allocated storage when
78375         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
78376         than STATIC_BUF_SIZE.
78377
78378 2000-07-29  Jim Meyering  <meyering@lucent.com>
78379
78380         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
78381         * lib/dirname.c (dir_name): Likewise.
78382
78383         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
78384         `/'.
78385
78386         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
78387         (dir_name): Assert that there are no trailing slashes.
78388
78389 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
78390
78391         * lib/mbswidth.h (mbswidth): Add a flags argument.
78392         (mbswidth): New declaration.
78393         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
78394         * lib/mbswidth.c (mbswidth): Add a flags argument.
78395         (mbsnwidth): New function.
78396
78397 2000-07-24  Jim Meyering  <meyering@lucent.com>
78398
78399         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
78400
78401 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78402
78403         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
78404
78405 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78406
78407         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
78408         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
78409         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
78410         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
78411         invoke multibyte primitives.
78412
78413 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78414
78415         * lib/quotearg.c:
78416         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
78417         so that mbstate_t is always defined.
78418
78419         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
78420         be 1 in at least one GCC installation, and this configuration
78421         error is likely to be common.  Ignoring MB_LEN_MAX hurts
78422         performance on hosts that have mbrtowc but have only unibyte
78423         locales, but I assume these hosts are rare.
78424
78425 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78426
78427         * lib/mbswidth.c (_XOPEN_SOURCE):
78428         Don't define; this causes problems on Solaris 7.
78429         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
78430
78431 2000-07-23  Jim Meyering  <meyering@lucent.com>
78432
78433         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
78434         too: getgrgid, getpwuid, getuid.
78435
78436 2000-07-23  Jim Meyering  <meyering@lucent.com>
78437
78438         * lib/basename.c (base_name): Add an assertion.
78439
78440 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
78441
78442         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
78443         shadow its mbsinit function.
78444
78445 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78446
78447         * lib/mbswidth.h: New file.
78448         * lib/mbswidth.c: New file.
78449         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
78450         (noinst_HEADERS): Add mbswidth.h.
78451
78452 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78453
78454         * lib/config.charset: Add support for FreeBSD. Improve support for
78455         HP-UX and IRIX 6.
78456
78457 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
78458
78459         * m4/mbswidth.m4: New file.
78460         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
78461
78462 2000-07-15  Jim Meyering  <meyering@lucent.com>
78463
78464         * lib/makepath.c: Include quote.h.
78465         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
78466         corresponding argument in a `quote (...)' call.
78467         Give better diagnostics.
78468
78469         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
78470         (noinst_HEADERS): Add quote.h.
78471
78472         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
78473         from tar's src/misc.c.
78474         * lib/quote.h: New file.  Prototypes for same.
78475
78476 2000-07-14  Paul Eggert  <eggert@twinsun.com>
78477
78478         From a suggestion by Bruno Haible.
78479         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
78480         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
78481         to decide whether to define the BeOS workaround macro;
78482         this adjusts to the change to AC_MBSTATE_T.
78483
78484 2000-07-14  Jim Meyering  <meyering@lucent.com>
78485
78486         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
78487         jm_AC_TYPE_UINTMAX_T.
78488
78489 2000-07-13  Paul Eggert  <eggert@twinsun.com>
78490
78491         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
78492
78493         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
78494         quotearg_buffer_restyled): Add support for
78495         clocale_quoting_style.  Undo previous change to
78496         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
78497         and "{RIGHT QUOTATION MARK}" msgids.
78498
78499 2000-07-10  Paul Eggert  <eggert@twinsun.com>
78500
78501         From a suggestion by Bruno Haible.
78502         * m4/mbstate_t.m4 (AC_MBSTATE_T):
78503         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
78504         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
78505         and mbstate_t, to a single-part test that simply defines mbstate_t.
78506         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
78507         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
78508
78509 2000-07-10  Jim Meyering  <meyering@lucent.com>
78510
78511         * m4/strerror_r.m4: Mirror the correction made in autoconf.
78512
78513         * m4/gnu-source.m4: Output to confdefs.h directly.
78514         Suggestion from Akim Demaille.
78515
78516 2000-07-09  Paul Eggert  <eggert@twinsun.com>
78517
78518         The old behavior of quoting `like this' doesn't look good with
78519         newer, ISO-style fonts.  See:
78520         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
78521
78522         Instead, quote "like this" by default.  Let the translator
78523         tailor the locale-specific quoting behavior by providing
78524         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
78525
78526         * lib/quotearg.c (N_): New macro.
78527         (gettext_default): New function.
78528         (quotearg_buffer_restyled): Use
78529         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
78530         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
78531
78532 2000-07-09  Jim Meyering  <meyering@lucent.com>
78533
78534         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
78535         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
78536
78537         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
78538         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
78539
78540 2000-07-09  Jim Meyering  <meyering@lucent.com>
78541
78542         * lib/Most files: Update copyright dates to include 2000.
78543
78544 2000-07-08  Jim Meyering  <meyering@lucent.com>
78545
78546         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
78547         if not defined.
78548         (xgethostname): Remove now-unnecessary #ifdef.
78549         Move declaration of `err' into loop where it's used.
78550
78551 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78552         and Bruno Haible  <haible@clisp.cons.org>
78553
78554         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
78555         only if the test for an object-type mbstate_t fails.  This
78556         prevents us from mistakenly reporting that mbstate_t is a
78557         system object type after we "#define mbstate_t int" to work
78558         around its lack.
78559
78560 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78561         and Bruno Haible  <haible@clisp.cons.org>
78562
78563         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
78564
78565 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78566
78567         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
78568         to strerror_r.
78569         Include <ctype.h> for use of isalpha.
78570
78571 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78572
78573         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
78574         by allocating a larger buffer. Test the gethostname return value for
78575         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
78576         returns an error and ENAMETOOLONG isn't defined.
78577
78578 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78579
78580         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
78581         dimension.
78582
78583 2000-07-04  Jim Meyering  <meyering@lucent.com>
78584
78585         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
78586         of the deprecated AC_CHECKING.
78587
78588 2000-07-04  Jim Meyering  <meyering@lucent.com>
78589
78590         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
78591         Reported by Bruno Haible.
78592
78593 2000-07-04  Jim Meyering  <meyering@lucent.com>
78594
78595         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
78596         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
78597         lacks mbrtowc.
78598
78599 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78600
78601         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
78602         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
78603
78604 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78605         and Bruno Haible  <haible@clisp.cons.org>
78606
78607         * lib/quotearg.c (mbrtowc):
78608         Assign to *pwc, and return 1 only if result is nonzero.
78609         (iswprint): Use ISPRINT when substituting our own mbrtowc.
78610
78611 2000-07-03  Jim Meyering  <meyering@lucent.com>
78612
78613         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
78614
78615 2000-07-03  Jim Meyering  <meyering@lucent.com>
78616
78617         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
78618         This is necessary to get a definition of e.g., UTMP_FILE on
78619         HP-UX 10.20.
78620         From Bob Proulx.
78621
78622 2000-07-02  Jim Meyering  <meyering@lucent.com>
78623
78624         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
78625
78626         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
78627         AC_LIBOBJ(function_name).
78628         * m4/chown.m4: Likewise.
78629         * m4/fnmatch.m4: Likewise.
78630         * m4/ftruncate.m4: Likewise.
78631         * m4/getgroups.m4: Likewise.
78632         * m4/getline.m4: Likewise.
78633         * m4/group-member.m4: Likewise.
78634         * m4/jm-macros.m4: Likewise.
78635         * m4/lstat.m4: Likewise.
78636         * m4/malloc.m4: Likewise.
78637         * m4/memcmp.m4: Likewise.
78638         * m4/nanosleep.m4: Likewise.
78639         * m4/putenv.m4: Likewise.
78640         * m4/realloc.m4: Likewise.
78641         * m4/regex.m4: Likewise.
78642         * m4/stat.m4: Likewise.
78643         * m4/strftime.m4: Likewise.
78644
78645 2000-07-02  Jim Meyering  <meyering@lucent.com>
78646
78647         * lib/quotearg.c (mbstate_t): Don't define here.
78648
78649 2000-07-02  Jim Meyering  <meyering@lucent.com>
78650
78651         * lib/nanosleep.c (SIGCONT): Define if not already defined.
78652
78653 2000-07-01  Jim Meyering  <meyering@lucent.com>
78654
78655         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
78656
78657 2000-07-01  Jim Meyering  <meyering@lucent.com>
78658
78659         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
78660         problem.
78661
78662 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78663
78664         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
78665         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
78666
78667 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78668
78669         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
78670         per change in ../m4/ls-mntd-fs.m4.
78671         (read_filesystem_list): Ignore symbolic links.
78672
78673 2000-06-29  Jim Meyering  <meyering@lucent.com>
78674
78675         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
78676         for declaration of strcmp.
78677
78678         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
78679
78680         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
78681         Avoid warning by casting result to `char *' to remove `const'.
78682
78683 2000-06-28  Jim Meyering  <meyering@lucent.com>
78684
78685         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
78686         included by quotearg.c, for which we perform this test.  From
78687         Bruno Haible.
78688
78689 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78690
78691         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
78692         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
78693         <utmpx.h> exists, put readutmp.o into LIBOBJS.
78694
78695 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78696
78697         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
78698
78699 2000-06-26  Paul Eggert  <eggert@twinsun.com>
78700
78701         savedir now sets errno on failure and invokes xmalloc to get memory.
78702         Fix a couple of other minor bugs while we're at it.
78703
78704         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
78705         (NAMLEN): Remove macro.
78706         (malloc, realloc): Remove decls.
78707         (stpcpy): Likewise.
78708         ("xalloc.h"): Include.
78709         (NAME_SIZE_DEFAULT): New macro.
78710         (savedir): Use xmalloc / xrealloc to allocate memory.
78711         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
78712         Skip "" directory entries.
78713         Use strlen to calculate directory entry length, since the old method
78714         is rarely used these days and isn't worth supporting.
78715         Don't use a pointer after freeing it.
78716         Check for integer overflow when calculating allocation size.
78717         Use memcpy to copy entries, instead of stpcpy.
78718         Set errno properly when returning NULL.
78719         Check for readdir error.
78720
78721 2000-06-26  Jim Meyering  <meyering@lucent.com>
78722
78723         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
78724
78725 2000-06-25  Jim Meyering  <meyering@lucent.com>
78726
78727         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
78728         Linux header bug when _XOPEN_SOURCE is defined to 500.
78729
78730 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78731
78732         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
78733         deficiency.
78734
78735 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78736
78737         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
78738         Include xalloc.h.
78739         Don't include <stdlib.h>.  Don't declare malloc, realloc.
78740
78741 2000-06-24  Jim Meyering  <meyering@lucent.com>
78742
78743         * m4/strerror_r.m4: Revive this file -- to try out an experimental
78744         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
78745         for which strerror does return char*, but which lacks a conveniently
78746         accessible declaration of the function.  If the compile-test says
78747         strerror_r doesn't work, then resort to a `run'-test that works on
78748         BeOS and segfaults on DEC Unix.
78749
78750 2000-06-24  Jim Meyering  <meyering@lucent.com>
78751
78752         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
78753
78754 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78755
78756         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
78757         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
78758
78759 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78760
78761         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
78762         (mbrtowc, mbstate_t): Define substitutes if
78763         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
78764         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
78765         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
78766
78767 2000-06-23  Jim Meyering  <meyering@lucent.com>
78768
78769         * m4/afs.m4: Add missing AC_MSG_RESULT.
78770         Reported by Bruno Haible.
78771
78772         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
78773         Suggestion from Bruno Haible.
78774
78775 2000-06-23  Jim Meyering  <meyering@lucent.com>
78776
78777         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
78778
78779 2000-06-21  Jim Meyering  <meyering@lucent.com>
78780
78781         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
78782
78783 2000-06-21  Jim Meyering  <meyering@lucent.com>
78784
78785         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
78786         (noinst_HEADERS): Add getstr.h.
78787
78788         * lib/getline.c (getstr): Move into a separate file.
78789         * lib/getstr.c (getstr): New file, extracted from getline.c, with
78790         the following changes: new parameter, delim2; both delim[12]
78791         parameters have type `int', not `char'.  The latter would lose
78792         with 8-bit delimiters.
78793         * lib/getstr.h: New file.
78794
78795 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78796
78797         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
78798         than 1024, return a memory chunk of least possible size, instead
78799         of size PATH_MAX + 2. In the loop, increment the size proportionally.
78800         Use free/xmalloc instead of xrealloc to avoid copying for very long
78801         paths.
78802
78803 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78804
78805         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
78806         the empty string.
78807
78808 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78809
78810         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
78811         address, not strdup.  Include <stdlib.h> and don't declare free().
78812
78813 2000-06-19  Jim Meyering  <meyering@lucent.com>
78814
78815         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
78816
78817 2000-06-18  Jim Meyering  <meyering@lucent.com>
78818
78819         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
78820
78821         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
78822         `checking whether...' message to be consistent with that of the
78823         lstat test.
78824
78825 2000-06-18  Jim Meyering  <meyering@lucent.com>
78826
78827         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
78828         Besides, these days every porting target provides a mkdir function.
78829
78830         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
78831         needed. (this snippet comes from src/system.h).
78832
78833 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
78834
78835         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
78836
78837 2000-06-15  Paul Eggert  <eggert@twinsun.com>
78838
78839         * lib/human.c (adjust_value): New function.
78840         (human_readable_inexact): Apply rounding style even when
78841         printing approximate values.
78842
78843 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78844
78845         * lib/human.c (human_readable_inexact): Allow an input block
78846         size that is not a multiple of the output block size, and vice versa.
78847         Reported by Piergiorgio Sartor.
78848
78849 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78850
78851         * lib/getdate.y (get_date): Apply relative times after time
78852         zone indicator, not before.  Reported by Todd A. Jacobs.
78853
78854 2000-06-13  Jim Meyering  <meyering@lucent.com>
78855
78856         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
78857
78858         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
78859
78860 2000-06-12  Paul Eggert  <eggert@twinsun.com>
78861
78862         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
78863
78864 2000-06-12  Jim Meyering  <meyering@lucent.com>
78865
78866         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
78867         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
78868         optional argument.
78869         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
78870         the optional argument, `lib'.
78871
78872 2000-06-08  Jim Meyering  <meyering@lucent.com>
78873
78874         * m4/largefile.m4: Remove file (now that it's part of autoconf).
78875
78876 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78877
78878         Rewrite largefile configuration so that we don't need to run
78879         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
78880         AC_CANONICAL_HOST in configure.in -- jmm]
78881
78882         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
78883         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
78884         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
78885         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
78886         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
78887         All uses changed.
78888         Instead of inspecting the output of getconf, try to compile the
78889         test program without and with the macro definition.
78890         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
78891         for getconf.  Instead, check for the needed flags by compiling
78892         test programs.
78893
78894 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78895
78896         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
78897
78898 2000-06-04  Jim Meyering  <meyering@lucent.com>
78899
78900         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
78901         SunOS 4.1.4 for which gid_t is an unsigned type.
78902
78903 2000-06-03  Jim Meyering  <meyering@lucent.com>
78904
78905         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
78906         now that autoconf requires that.
78907
78908         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
78909         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
78910         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
78911
78912 2000-06-03  Jim Meyering  <meyering@lucent.com>
78913
78914         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
78915
78916 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78917
78918         * m4/glibc21.m4: New file.
78919         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
78920
78921 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78922
78923         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
78924         newer, don't install charset.alias.
78925         * lib/config.charset: Change the Linux/glibc rules so they become empty
78926         on glibc-2.1 or newer.
78927
78928 2000-06-02  Jim Meyering  <meyering@lucent.com>
78929
78930         * lib/mountlist.c: Back out last change.  Instead, do this...
78931         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
78932         me_dummy member using the same `ignore'-testing code.
78933         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
78934         fs_type strings.
78935         From Mark D. Roth.
78936
78937 2000-05-29  Jim Meyering  <meyering@lucent.com>
78938
78939         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
78940         mounts with the `ignore' attribute.  Based on a patch from
78941         Mark D. Roth.
78942
78943 2000-05-28  Jim Meyering  <meyering@lucent.com>
78944
78945         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
78946         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78947         * m4/stat.m4: Likewise.
78948         * m4/lstat.m4: Likewise.
78949         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
78950
78951         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
78952         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
78953
78954 2000-05-26  Jim Meyering  <meyering@lucent.com>
78955
78956         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
78957
78958 2000-05-24  Jim Meyering  <meyering@lucent.com>
78959
78960         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
78961         autoconf requires that.
78962         * m4/lib-check.m4: Likewise.
78963         * m4/jm-macros.m4: Likewise.
78964         * m4/strftime.m4: Likewise.
78965
78966         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
78967         AC_CHECK_DECLS, now that autoconf requires that.
78968
78969 2000-05-22  Jim Meyering  <meyering@lucent.com>
78970
78971         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78972         * m4/lstat.m4: Likewise.
78973
78974 2000-05-22  Jim Meyering  <meyering@lucent.com>
78975
78976         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
78977
78978 2000-05-20  Jim Meyering  <meyering@lucent.com>
78979
78980         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
78981         (jm_PREREQ): Use it.
78982
78983 2000-05-18  Jim Meyering  <meyering@lucent.com>
78984
78985         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
78986         back, too, since it may have been modified by allocate_entry.
78987         (hash_delete): Rewrite to use neither the assignment operator
78988         nor the comma operator in an if-expression.
78989
78990 2000-05-15  Paul Eggert  <eggert@twinsun.com>
78991
78992         * lib/closeout.c:
78993         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
78994         Remove; no longer needed.
78995         "quotearg.h": Add include.
78996         (file_name): Do not bother to explicitly initialize to NULL; it's less
78997         efficient on some hosts.
78998         (close_stdout_status): Remove test as to whether stdout was already
78999         closed; it breaks for the case "echo x | sort >&-".
79000         Quote file name colons.
79001         Do not assume that _("write error") lacks format strings.
79002
79003 2000-05-15  Jim Meyering  <meyering@lucent.com>
79004
79005         * lib/version-etc.c (version_etc_copyright): Update the copyright
79006         string used in all --version output.
79007
79008 2000-05-14  Jim Meyering  <meyering@lucent.com>
79009
79010         * lib/closeout.c (close_stdout_set_file_name): New function.
79011         (close_stdout_status): Use new file-scoped global.
79012         Return right away if fstat says the stdout file descriptor is invalid.
79013         * lib/closeout.h (close_stdout_set_file_name): Declare.
79014
79015 2000-05-10  Jim Meyering  <meyering@lucent.com>
79016
79017         * lib/closeout.c [default_exit_status]: New file-scoped variable.
79018         (close_stdout_set_status): New function.
79019         * lib/closeout.h (close_stdout_set_status): Declare.
79020
79021 2000-05-09  Jim Meyering  <meyering@lucent.com>
79022
79023         * m4/gettext.m4: Rename this...
79024         * m4/libintl.m4: ...to this.
79025
79026 2000-05-08  Jim Meyering  <meyering@lucent.com>
79027
79028         * lib/long-options.c: Don't include closeout.h.
79029         (parse_long_options): Don't call close_stdout for --version.
79030
79031 2000-05-06  Paul Eggert  <eggert@twinsun.com>
79032
79033         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
79034         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
79035         2.1.3 bug.  This avoids a clash when files like regex.c define
79036         _GNU_SOURCE.
79037
79038 2000-05-06  Jim Meyering  <meyering@lucent.com>
79039
79040         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
79041         (AC_REPLACE_FUNCS): Add strnlen.
79042
79043         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
79044         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
79045
79046         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
79047         AC_SEARCH_LIBS call for nanosleep.
79048         (LIB_NANOSLEEP): Set and AC_SUBST.
79049
79050 2000-05-06  Jim Meyering  <meyering@lucent.com>
79051
79052         * lib/strnlen.c: Undefine __strnlen and strnlen.
79053         [!weak_alias]: Define __strnlen to strnlen.
79054
79055         * lib/atexit.c: New file, from libiberty.
79056
79057 2000-05-06  Jim Meyering  <meyering@lucent.com>
79058
79059         * lib/closeout.c (close_stdout_status): Also check for errors on the
79060         stderr stream.
79061
79062 2000-05-05  Jim Meyering  <meyering@lucent.com>
79063
79064         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
79065         AC_SEARCH_LIBS call for clock_gettime.
79066         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
79067
79068         * m4/search-libs.m4: Update from autoconf.
79069
79070         su doesn't work on Solaris 2.6.
79071         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
79072         <shadow.h>.  Reported by Dragos Harabor.
79073
79074 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
79075
79076         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
79077         memcpy instead of xmalloc, xrealloc, path_concat.
79078         (locale_charset): Treat empty environment variables as absent.
79079         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
79080
79081 2000-05-04  Jim Meyering  <meyering@lucent.com>
79082
79083         * lib/getopt.c: Update from glibc.
79084         * lib/obstack.c: Likewise.
79085         * lib/obstack.h: Likewise.
79086         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
79087         file
79088
79089         * lib/regex.h: Likewise.
79090         * lib/strndup.c: Likewise.
79091         * lib/strnlen.c: New file, from glibc.
79092
79093 2000-05-03  Jim Meyering  <meyering@lucent.com>
79094
79095         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
79096
79097 2000-05-02  Paul Eggert  <eggert@twinsun.com>
79098
79099         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
79100         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
79101         compile-time test, rather than inspecting host and OS, to
79102         decide whether to define _LARGEFILE_SOURCE.
79103
79104 2000-05-01  Jim Meyering  <meyering@lucent.com>
79105
79106         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
79107
79108         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
79109         Based on a patch from Bruno Haible.
79110
79111 2000-05-01  Jim Meyering  <meyering@lucent.com>
79112
79113         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
79114
79115 2000-04-29  Jim Meyering  <meyering@lucent.com>
79116
79117         * lib/path-concat.c: Declare strdup only if it's not defined.
79118         * lib/canon-host.c: Likewise.
79119
79120 2000-04-28  Jim Meyering  <meyering@lucent.com>
79121
79122         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
79123         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
79124         is included first, then limits.h is included by locale.h by libintl.h.
79125         From John David Anglin.
79126
79127 2000-04-25  Jim Meyering  <meyering@lucent.com>
79128
79129         * lib/makepath.c (S_IRWXUGO): Define.
79130         (make_path): Always perform explicit chmod if MODE specifies any
79131         of the `special' permission bits.  Prompted by a bug report against
79132         install from Mate Wierdl and Joost van Baal.
79133
79134 2000-04-18  Jim Meyering  <meyering@lucent.com>
79135
79136         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
79137         (jm_PREREQ): Use it.
79138
79139 2000-04-18  Jim Meyering  <meyering@lucent.com>
79140
79141         * lib/README: New file.
79142
79143         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
79144         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
79145
79146 2000-04-17  Jim Meyering  <meyering@lucent.com>
79147
79148         Get it right :-)
79149         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
79150         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
79151         Suggestion from Akim Demaille.
79152
79153 2000-04-17  Jim Meyering  <meyering@lucent.com>
79154
79155         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
79156         the definition of it to rpl_strftime also defined-away the system's
79157         declaration.
79158
79159 2000-04-15  Jim Meyering  <meyering@lucent.com>
79160
79161         Use `C' to denote so-called `contiguous' files, the same way
79162         that tar does.
79163         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
79164         (ftypelet): Use S_ISCTG.
79165         From Michael Deutschmann.
79166
79167 2000-04-14  Jim Meyering  <meyering@lucent.com>
79168
79169         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
79170         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
79171         clobbered.
79172
79173 2000-04-14  Jim Meyering  <meyering@lucent.com>
79174
79175         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
79176
79177 2000-04-13  Jim Meyering  <meyering@lucent.com>
79178
79179         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
79180         AH_VERBATIM to insert required #ifndef into config.h.in.
79181         Suggestion from Akim Demaille.
79182
79183 2000-04-12  Jim Meyering  <meyering@lucent.com>
79184
79185         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
79186         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
79187         Christian Krackowizer.
79188
79189         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
79190         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
79191         (AC_SYS_LARGEFILE): Require.
79192         (AM_C_PROTOTYPES): Require.
79193
79194 2000-04-08  Jim Meyering  <meyering@lucent.com>
79195
79196         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
79197         names don't conflict.  Reported by Eli Zaretskii.
79198
79199 2000-04-07  Jim Meyering  <meyering@lucent.com>
79200
79201         * lib/putenv.c: Move inclusion of errno.h so it follows that of
79202         sys/types.h, to work around system header problems on AIX 3.2.5.
79203         From Bruno Haible.
79204
79205 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
79206
79207         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
79208         bug.  Deal with the different error behavior of Irix iconv.
79209
79210 2000-04-05  Paul Eggert  <eggert@twinsun.com>
79211
79212         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
79213         IRIX if the installer said otherwise.
79214
79215 2000-04-05  Jim Meyering  <meyering@lucent.com>
79216
79217         Portability tweaks required for ultrix4.3.
79218         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
79219         (jm_CHECK_DECLS): Add getutent to the list of functions.
79220         (_jm_DECL_HEADERS): Add utmpx.h.
79221         From John David Anglin.
79222
79223         * m4/strftime.m4: Back out the 2000-04-02 change.
79224         Instead of that change, simply undefine putenv in the test program.
79225
79226 2000-04-05  Jim Meyering  <meyering@lucent.com>
79227
79228         Portability tweaks required for ultrix4.3.
79229         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
79230         getutent.
79231         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
79232         * lib/canon-host.c: Declare strdup.
79233         * lib/path-concat.c: Likewise.
79234         From John David Anglin.
79235
79236 2000-04-04  Jim Meyering  <meyering@lucent.com>
79237
79238         Be more DOS 8.3-friendly.
79239         * lib/ref-add.sin: Renamed from ref-add.sed.in.
79240         * lib/ref-del.sin: Renamed from ref-del.sed.in.
79241         * lib/Makefile.am: Reflect renaming.
79242         Reported by Eli Zaretskii.
79243
79244         Use a temporary file name that won't clash with `charset.alias'
79245         in the DOS 8.3 name space.
79246         * lib/Makefile.am (charset_tmp): Define.
79247         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
79248         (uninstall-local): Likewise.
79249         Reported by Eli Zaretskii.
79250
79251 2000-04-03  Jim Meyering  <meyering@lucent.com>
79252
79253         * m4/gettext.m4: Fix typo in comment.
79254
79255         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
79256         textutils/configure.in).  Suggestion from Paul Eggert.
79257         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
79258
79259 2000-04-02  Paul Eggert  <eggert@twinsun.com>
79260
79261         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
79262         variable in the shell rather than using putenv, which isn't
79263         portable.  This avoids the configure-time inter-test dependency
79264         on the potentially-renamed putenv function.
79265
79266 2000-03-30  Paul Eggert  <eggert@twinsun.com>
79267
79268         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
79269         before checking struct stat.st_blksize, so that
79270         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
79271
79272 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79273
79274         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
79275         since strftime.c uses HAVE_STRFTIME to decide whether to use
79276         the underlying strftime.
79277
79278 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79279
79280         * lib/time/strftime.c (my_strftime): Make sure we call the system
79281         strftime, not ourselves, when invoking the underlying strftime.
79282
79283 2000-03-24  Jim Meyering  <meyering@lucent.com>
79284
79285         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
79286         (charset_alias): Define.
79287         (install-exec-local): Factor out common code.
79288         (uninstall-local): Split lines longer than 80.
79289         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
79290         (SUFFIXES): Define.
79291         (.sed.in.sed): New rule.  Don't redirect directly to $@.
79292         (CLEANFILES): Add ref-add.sed and ref-del.sed.
79293
79294 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
79295
79296         * lib/config.charset: Output a line containing "Packages using this
79297         file".
79298         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
79299         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
79300         ref-del.sed): New rules.
79301
79302 2000-03-17  Jim Meyering  <meyering@lucent.com>
79303
79304         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
79305         Otherwise, include <strings.h>
79306
79307 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
79308
79309         * lib/unicodeio.c (utf8_wctomb): New function.
79310         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
79311         format instead of in UCS-4 with platform dependent endianness.
79312
79313 2000-03-10  Jim Meyering  <meyering@lucent.com>
79314
79315         * m4/lib-check.m4: Look for getspnam in -lgen, too.
79316         From Marco Franzen.
79317
79318 2000-03-07  Paul Eggert  <eggert@twinsun.com>
79319
79320         * lib/savedir.c (savedir): Work even if directory size is
79321         negative; this can happen with some screwy NFS configurations.
79322
79323 2000-03-06  Jim Meyering  <meyering@lucent.com>
79324
79325         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
79326         if it's NULL (because we ran out of memory).  From Bruno Haible.
79327
79328 2000-03-05  Jim Meyering  <meyering@lucent.com>
79329
79330         * lib/localcharset.c ("path-concat.h"): Include.
79331         (get_charset_aliases): Use path_concat instead of ANSI string
79332         concatenation.
79333
79334         * lib/unicodeio.h (PARAMS): Define.
79335         Use it to guard prototype.
79336
79337 2000-03-04  Jim Meyering  <meyering@lucent.com>
79338
79339         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
79340         for lib/localcharset.c.
79341
79342 2000-03-04  Jim Meyering  <meyering@lucent.com>
79343
79344         * lib/Makefile.am (install-exec-local): Create $(libdir) before
79345         installing into it.
79346         (uninstall-local): Uncomment this rule so `make distcheck' works
79347         once again.
79348
79349         * lib/unicodeio.c (<errno.h>): Include it.
79350         (errno): Declare if not defined.
79351
79352         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
79353
79354         * lib/config.charset: New version, incorporating remarks from a linux
79355         i18n mailing list.  From Bruno Haible.
79356
79357 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
79358
79359         * m4/codeset.m4: New file.
79360         * m4/iconv.m4: New file.
79361         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
79362
79363 2000-03-03  Jim Meyering  <meyering@lucent.com>
79364
79365         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
79366
79367 2000-03-02  Jim Meyering  <meyering@lucent.com>
79368
79369         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
79370         the messages come out on separate lines.
79371
79372         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
79373         rather than jm_CHECK_DECLARATIONS.
79374         * m4/decl.m4: Remove now-unused file.
79375
79376         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
79377         geteuid.
79378
79379 2000-03-02  Jim Meyering  <meyering@lucent.com>
79380
79381         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
79382
79383 2000-03-01  Jim Meyering  <meyering@lucent.com>
79384
79385         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
79386         * lib/unicodeio.c: Likewise.
79387
79388 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
79389
79390         * lib/config.charset: New file.
79391         * lib/localcharset.c: New file.
79392         * lib/unicodeio.h, lib/unicodeio.c: New files.
79393         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
79394         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
79395         (noinst_HEADERS): Add unicodeio.h.
79396         (all-local, install-exec-local, charset.alias): New targets.
79397
79398 2000-02-28  Paul Eggert  <eggert@twinsun.com>
79399
79400         * lib/quotearg.c (ALERT_CHAR): New macro.
79401         (quotearg_buffer_restyled): Use it.
79402
79403 2000-02-27  Jim Meyering  <meyering@lucent.com>
79404
79405         * m4/check-decl.m4: Add getenv to the list.
79406
79407 2000-02-27  Jim Meyering  <meyering@lucent.com>
79408
79409         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
79410         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
79411
79412         * lib/backupfile.c: Guard inclusion of stdlib.h with
79413         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
79414         Declare malloc if needed.
79415
79416         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
79417         `#ifndef HAVE_DECL..'
79418         now that autoconf always defines the HAVE_DECL_ symbols.
79419         * lib/human.c: Likewise.
79420         * lib/same.c: Likewise.
79421         * lib/strtoumax.c: Likewise.
79422
79423         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
79424         declaration check was not run.
79425         * lib/hash.c: Likewise.
79426         * lib/human.c: Likewise.
79427         * lib/same.c: Likewise.
79428         * lib/strtoumax.c: Likewise.
79429
79430         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
79431         `.', then first look up the entire `.'-containing string as a login
79432         name.
79433
79434 2000-02-23  Jim Meyering  <meyering@lucent.com>
79435
79436         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
79437         in place of my hack.
79438
79439 2000-02-18  Paul Eggert  <eggert@twinsun.com>
79440
79441         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
79442         (textint): New typedef.
79443         (parser_control): Member year changed from int to textint.
79444         All uses changed.
79445         (YYSTYPE): Removed; replaced by %union with int and textint members.
79446         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
79447         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
79448         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
79449         (tSNUMBER, tUNUMBER): Now of type <textintval>.
79450         (date, number, to_year): Use width of number in digits, not its value,
79451         to determine whether it's a 2-digit year, or a 2-digit time.
79452         (yylex): Store number of digits of numeric tokens.
79453         Reported by John Kendall.
79454
79455         (parser_control): Changed from struct parser_control to typedef (for
79456         consistency).  All uses changed.
79457
79458         (tID): Removed; not used.
79459         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
79460
79461 2000-02-14  Paul Eggert  <eggert@twinsun.com>
79462
79463         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
79464         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
79465
79466 2000-02-12  Jim Meyering  <meyering@lucent.com>
79467
79468         * lib/userspec.c (ISDIGIT): Define it.
79469         (isdigit): Remove definition.
79470         (is_number): Use ISDIGIT, not isdigit.
79471         <libintl.h>: Include.
79472         (_ and N_): Define.
79473         (parse_user_spec): Mark translatable strings.
79474
79475 2000-02-10  Jim Meyering  <meyering@lucent.com>
79476
79477         With these changes, nanosleep.[ch] are finally enough like the other
79478         lib/* replacement files to compile on a few more losing systems.
79479
79480         * lib/nanosleep.h: Don't include config.h.
79481         Remove prototype from declaration of nanosleep.
79482         (PARAMS): Remove now-unneeded definition.
79483         * lib/nanosleep.c: #undef nanosleep.
79484         (rpl_nanosleep): Rename from nanosleep.
79485
79486 2000-02-10  Jim Meyering  <meyering@lucent.com>
79487
79488         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
79489         gnu_nanosleep to rpl_nanosleep.
79490
79491 2000-02-09  Jim Meyering  <meyering@lucent.com>
79492
79493         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
79494         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
79495
79496 2000-02-08  Akim Demaille  <akim@epita.fr>
79497
79498         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
79499         `[' and `]' and remove uses of `changequote'.
79500         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
79501         (AC_SYS_LARGEFILE): Likewise.
79502         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
79503         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
79504         of changequote.
79505         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
79506         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
79507         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
79508         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
79509
79510 2000-02-05  Jim Meyering  <meyering@lucent.com>
79511
79512         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
79513         Remove explicit use of AC_HEADER_TIME.  It is required by
79514         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
79515         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
79516         in autoconf whereby the expansion of the latter ended up preceding
79517         the expansion of its prerequisite, AC_HEADER_TIME.
79518         Reported by Volker Borchert.
79519
79520 2000-02-03  Jim Meyering  <meyering@lucent.com>
79521
79522         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
79523
79524 2000-02-03  Jim Meyering  <meyering@lucent.com>
79525
79526         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
79527         rather than with `#if HAVE_UTMPNAME'.
79528
79529 2000-02-02  Jim Meyering  <meyering@lucent.com>
79530
79531         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
79532         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
79533         Reported by Eli Zaretskii.
79534
79535 2000-02-01  Jim Meyering  <meyering@lucent.com>
79536
79537         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
79538
79539 2000-01-31  Jim Meyering  <meyering@lucent.com>
79540
79541         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
79542         functions.  Add the time.h and sys/time.h headers along with the
79543         AC_REQUIRE'ment of AC_HEADER_TIME.
79544
79545 2000-01-31  Jim Meyering  <meyering@lucent.com>
79546
79547         * lib/nanosleep.h (nanosleep): Guard declaration with
79548         `#if ! HAVE_DECL_NANOSLEEP'.
79549         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
79550         the declaration in that vendor's sys/timers.h.
79551         Reported by Christian Krackowizer.
79552
79553         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
79554         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
79555         (ISPRINT): Likewise.
79556         Reported by Tom Tromey.
79557
79558 2000-01-30  Jim Meyering  <meyering@lucent.com>
79559
79560         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
79561
79562         * m4/prereq.m4 (utmp_includes): Define.
79563         Check for ut_user and ut_name members in both struct utmpx
79564         and struct utmp.
79565
79566 2000-01-30  Jim Meyering  <meyering@lucent.com>
79567
79568         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
79569         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
79570         header files where only utmpx.ut_user is declared.
79571
79572         * lib/readutmp.h (UT_USER): Define.
79573
79574 2000-01-29  Jim Meyering  <meyering@lucent.com>
79575
79576         * m4/lib-check.m4: New file containing library-related checks from
79577         fileutils and sh-utils (textutils had none).
79578
79579 2000-01-28  Jim Meyering  <meyering@lucent.com>
79580
79581         * m4/perl.m4: Change format of warning message to look more like that
79582         from the missing script.  Suggestion from François Pinard.
79583
79584 2000-01-25  Jim Meyering  <meyering@lucent.com>
79585
79586         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
79587         well as time.h in the compile check.
79588         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
79589         Fix typo in cross-compiling case: s/yes/no/.
79590
79591 2000-01-23  Jim Meyering  <meyering@lucent.com>
79592
79593         * m4/jm-macros.m4: Move df-related tests here from
79594         fileutils/configure.in
79595
79596         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
79597         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
79598
79599         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
79600         s/space/ac_fsusage_space/.
79601         (jm_FILE_SYSTEM_USAGE): Take two parameters.
79602
79603         * m4/ftruncate.m4: New file (derived from part of
79604         fileutils/configure.in).
79605         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
79606         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
79607
79608         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
79609         AC_SUBST these here, rather than just in sh-util/configure.in, so
79610         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
79611         all the same.
79612         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
79613         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
79614         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
79615         (AC_SUBST(POW_LIBM)): Likewise.
79616         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
79617
79618 2000-01-23  Jim Meyering  <meyering@lucent.com>
79619
79620         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
79621         obstack.c.
79622
79623 2000-01-22  Jim Meyering  <meyering@lucent.com>
79624
79625         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
79626
79627         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
79628
79629         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
79630         configure.in
79631         (AC_CHECK_HEADERS): Likewise for sh-utils.
79632         (AC_CHECK_HEADERS): Likewise for textutils.
79633         Merge the three lists of headers.
79634
79635         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
79636         from fileutils' configure.in.
79637
79638         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
79639         code. Moved tests into their own function (_jm_DECL_HEADERS) in
79640         check-decl.m4.
79641
79642         * m4/check-decl.m4: Use #if rather than #ifdef.
79643         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
79644         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
79645         (_jm_DECL_HEADERS): Define new function.
79646         (jm_CHECK_DECLARATIONS): Require it.
79647
79648 2000-01-22  Jim Meyering  <meyering@lucent.com>
79649
79650         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
79651         [! HAVE_DECL_STRTOULL]: Declare strtoull.
79652         Required for some AIX systems.  Reported by Christian Krackowizer.
79653         [TESTING] (main): New function.
79654
79655         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
79656         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
79657         letters.
79658
79659         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
79660         iswprint.
79661
79662         * lib/strverscmp.c (ISDIGIT): Define.
79663         (strverscmp): Use ISDIGIT, not isdigit.
79664
79665 2000-01-19  Jim Meyering  <meyering@lucent.com>
79666
79667         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
79668         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
79669         defines `struct timespec' in <sys/time.h>
79670
79671         * m4/c-bs-a.m4: Remove uses of changequote altogether.
79672         Thanks to Akim for explaining.
79673
79674 2000-01-17  Paul Eggert  <eggert@twinsun.com>
79675
79676         * lib/nanosleep.c (nanosleep):
79677         Don't use SA_INTERRUPT to decide whether to call sigaction, as
79678         POSIX.1 doesn't require SA_INTERRUPT and some systems
79679         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
79680         it's been part of POSIX.1 since day 1 (in 1988).
79681
79682 2000-01-17  Jim Meyering  <meyering@lucent.com>
79683
79684         * lib/interlock: Remove unused file.  Reported by François Pinard.
79685
79686 2000-01-16  Paul Eggert  <eggert@twinsun.com>
79687
79688         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
79689         alert, backslash, formfeed, and vertical tab unnecessarily in
79690         shell quoting style.
79691
79692 2000-01-16  Jim Meyering  <meyering@lucent.com>
79693
79694         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
79695         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
79696         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
79697         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
79698
79699 2000-01-16  Jim Meyering  <meyering@lucent.com>
79700
79701         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
79702         because the latter didn't work.
79703
79704 2000-01-15  Jim Meyering  <meyering@lucent.com>
79705
79706         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
79707         (AC_REPLACE_FUNCS): Add memcpy and memset.
79708         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
79709         Add strpbrk.
79710         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
79711
79712 2000-01-12  Jim Meyering  <meyering@lucent.com>
79713
79714         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
79715         (jm_PREREQ): Use it.
79716         (jm_PREREQ_READUTMP): New macro.
79717         (jm_PREREQ): Use it.
79718
79719 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79720
79721         Quote multibyte characters correctly.
79722         * m4/c-bs-a.m4: New file.
79723         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
79724         (jm_PREREQ): Use it.
79725
79726 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79727
79728         * m4/uintmax_t.m4: Port to autoconf 2.13.
79729
79730 2000-01-08  Jim Meyering  <meyering@ascend.com>
79731
79732         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
79733         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
79734
79735 2000-01-04  Jim Meyering  <meyering@ascend.com>
79736
79737         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
79738         jm_STRUCT_DIRENT_D_TYPE.
79739         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
79740         jm_STRUCT_DIRENT_D_INO.
79741         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
79742         jm_STRUCT_UTIMBUF.
79743         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
79744         renamings.
79745         * m4/utime.m4: Likewise.
79746
79747         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
79748         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
79749
79750 2000-01-03  Paul Eggert  <eggert@twinsun.com>
79751
79752         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
79753         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
79754
79755 2000-01-02  Jim Meyering  <meyering@ascend.com>
79756
79757         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
79758         remember if this is necessary.
79759
79760 1999-12-26  Jim Meyering  <meyering@ascend.com>
79761
79762         * m4/jm-macros.m4: Use it here.
79763         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
79764
79765 1999-12-23  Jim Meyering  <meyering@ascend.com>
79766
79767         * m4/jm-macros.m4: Check for clock_gettime (moved from
79768         fileutils/configure.in)
79769         Check for gettimeofday.
79770
79771 1999-12-20  Jim Meyering  <meyering@ascend.com>
79772
79773         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
79774         autoconf-2.14a-1999-12-20.
79775
79776 1999-12-19  Jim Meyering  <meyering@ascend.com>
79777
79778         * m4/lstat-slash.m4: New file.
79779         * m4/jm-macros.m4: Use the new macro:
79780         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79781
79782 1999-12-07  Jim Meyering  <meyering@ascend.com>
79783
79784         * m4/perl.m4: Require that File::Compare be available, too.
79785         Too many systems seem to lack it.
79786
79787         * m4/strftime.m4: Add checks for most of the cpp macros tested in
79788         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
79789
79790 1999-11-18  Paul Eggert  <eggert@twinsun.com>
79791
79792         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
79793         problem with the QNX 4.25 shell, which doesn't propagate exit
79794         status of failed commands inside shell assignments.
79795
79796 1999-11-17  Jim Meyering  <meyering@ascend.com>
79797
79798         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
79799
79800 1999-11-07  Jim Meyering  <meyering@ascend.com>
79801
79802         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
79803
79804 1999-11-06  Jim Meyering  <meyering@ascend.com>
79805
79806         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
79807         * m4/jm-macros.m4 (jm_MACROS): Use it here.
79808
79809 1999-11-05  Jim Meyering  <meyering@ascend.com>
79810
79811         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
79812         configure.in of textutils, fileutils, and sh-utils into this one
79813         (shared between those packages) file.
79814         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
79815         AC_STRUCT_ST_BLKSIZE.
79816
79817 1999-11-03  Jim Meyering  <meyering@ascend.com>
79818
79819         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
79820         of AC_CHECK_TYPE checks includes unistd.h.
79821         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
79822         Suggestion from Akim Demaille.
79823
79824 1999-10-30  Jim Meyering  <meyering@ascend.com>
79825
79826         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
79827         m4-quoted string.
79828         * m4/ls-mntd-fs.m4: Likewise.
79829         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
79830         * m4/jm-winsz1.m4: Likewise.
79831
79832         * m4/const.m4: Remove file, since the fix made it into the experimental
79833         version of autoconf.
79834         * m4/mktime.m4: Likewise.
79835
79836         * m4/check-type.m4: Remove file, now that the latest version of
79837         AC_CHECK_TYPE takes a third arg to specify additional #includes.
79838
79839         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
79840         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
79841         AC_CHECK_TYPE.
79842
79843 1999-10-04  Jim Meyering  <meyering@ascend.com>
79844
79845         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
79846
79847 1999-09-22  Paul Eggert  <eggert@twinsun.com>
79848
79849         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
79850         2.95.1 bug with HP-UX 10.20.
79851
79852 1999-09-17  Jim Meyering  <meyering@ascend.com>
79853
79854         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
79855         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
79856         due to missing strdup (against sh-utils-2.0).
79857
79858 1999-08-29  Jim Meyering  <meyering@ascend.com>
79859
79860         * m4/jm-macros.m4: Require jm_BISON.
79861         * m4/bison.m4: New file.
79862
79863 1999-08-17  Paul Eggert  <eggert@twinsun.com>
79864
79865         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
79866         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
79867
79868 1999-08-05  Jim Meyering  <meyering@ascend.com>
79869
79870         * m4/getline.m4: Rename test file from conftestdata to conftest.data
79871         to avoid conflicts with `conftest' on 8+3 filesystems.
79872         Suggestion from Eli Zaretskii.
79873
79874 1999-08-04  Jim Meyering  <meyering@ascend.com>
79875
79876         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
79877         fileutils and sh-utils (textutils's getline test was inadequate).
79878         (AM_FUNC_GETLINE): Run this test.
79879         (AC_CHECK_FUNCS): Check for getdelim.
79880         Reported by Bob Proulx.
79881
79882 1999-08-02  Jim Meyering  <meyering@ascend.com>
79883
79884         * m4/jm-macros.m4: Add a comment.
79885
79886 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79887
79888         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
79889         <inttypes.h> defines strtoumax as a macro (and not as a
79890         function).
79891
79892 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79893
79894         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
79895         that we can shift, multiply and divide unsigned long long
79896         values; Ultrix cc can't do it.
79897
79898 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79899
79900         * m4/mktime.m4: New file, which is a preview of what should appear
79901         in the next public autoconf release.
79902
79903 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79904
79905         * m4/lfs.m4: Remove this file.
79906         * m4/largefile.m4: New file.  It contains the old contents of
79907         lfs.m4, except that all names with prefix AC_LFS have been
79908         changed to use the prefix AC_SYS_LARGEFILE instead, to be
79909         compatible with future autoconf versions.  Also, some minor m4
79910         quoting problems have been fixed.
79911
79912 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79913
79914         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
79915         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
79916         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
79917         and simplify the shell code.
79918
79919 1999-08-01  Jim Meyering  <meyering@ascend.com>
79920
79921         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
79922         m4.
79923
79924 1999-07-20  Jim Meyering  <meyering@ascend.com>
79925
79926         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
79927
79928 1999-07-15  Jim Meyering  <meyering@ascend.com>
79929
79930         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
79931
79932 1999-05-22  Jim Meyering  <meyering@ascend.com>
79933
79934         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
79935
79936 1999-05-20  Jim Meyering  <meyering@ascend.com>
79937
79938         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
79939         Add a colon after each `then' in case $4 is empty.
79940
79941 1999-05-16  Jim Meyering  <meyering@ascend.com>
79942
79943         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
79944
79945 1999-05-10  Jim Meyering  <meyering@ascend.com>
79946
79947         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
79948
79949         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
79950         AC_FUNC_MKTIME.
79951
79952 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
79953
79954         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
79955
79956 1999-05-04  Paul Eggert  <eggert@twinsun.com>
79957
79958         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
79959         not CPPFLAGS, so that linking works correctly in IRIX.
79960
79961 1999-04-30  Paul Eggert  <eggert@twinsun.com>
79962
79963         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
79964
79965 1999-04-20  Paul Eggert  <eggert@twinsun.com>
79966
79967         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
79968         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
79969         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
79970         jm_AC_TYPE_UNSIGNED_LONG_LONG.
79971         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
79972
79973         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
79974
79975 1999-04-20  Jim Meyering  <meyering@ascend.com>
79976
79977         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
79978         AC_REPLACE xstroull if necessary.  From Paul Eggert.
79979         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
79980
79981 1999-04-18  Jim Meyering  <meyering@ascend.com>
79982
79983         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
79984         * m4/jm-macros.m4: Use it.
79985
79986 1999-04-06  Jim Meyering  <meyering@ascend.com>
79987
79988         * m4/strftime.m4: Remove test for %f.
79989
79990 1999-03-29  Jim Meyering  <meyering@ascend.com>
79991
79992         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
79993         superset of the AC_TYPE_* checks in the textutils, fileutils,
79994         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
79995         AC_TYPE_PID_T.
79996
79997 1999-03-28  Jim Meyering  <meyering@ascend.com>
79998
79999         * m4/jm-macros.m4: Define GNU_PACKAGE here.
80000         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
80001         replaced e.g., in the *.sh files of the sh-utils.
80002
80003 1999-03-20  Jim Meyering  <meyering@ascend.com>
80004
80005         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
80006         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
80007         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
80008
80009 1999-03-19  Jim Meyering  <meyering@ascend.com>
80010
80011         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
80012
80013 1999-03-12  Jim Meyering  <meyering@ascend.com>
80014
80015         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
80016
80017 1999-03-07  Jim Meyering  <meyering@ascend.com>
80018
80019         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
80020         declared.
80021
80022 1999-02-17  Jim Meyering  <meyering@ascend.com>
80023
80024         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
80025         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
80026
80027 1999-02-07  Jim Meyering  <meyering@ascend.com>
80028
80029         * m4/group-member.m4: New file -- extracted from sh-utils'
80030         configure.in.
80031
80032         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
80033         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
80034
80035 1999-02-06  Jim Meyering  <meyering@ascend.com>
80036
80037         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
80038         * m4/fnmatch.m4: Likewise.
80039         * m4/getgroups.m4: Likewise.
80040         * m4/lstat.m4: Likewise.
80041         * m4/malloc.m4: Likewise.
80042         * m4/putenv.m4: Likewise.
80043         * m4/realloc.m4: Likewise.
80044         * m4/regex.m4: Likewise.
80045         * m4/stat.m4: Likewise.
80046         * m4/strftime.m4: Likewise.
80047         Suggestion from Alain Magloire.
80048
80049         * m4/chown.m4: Use `.$ac_objext', not `.o'.
80050         * m4/fnmatch.m4: Likewise.
80051         * m4/getgroups.m4: Likewise.
80052         * m4/getline.m4: Likewise.
80053         * m4/lstat.m4: Likewise.
80054         * m4/malloc.m4: Likewise.
80055         * m4/memcmp.m4: Likewise.
80056         * m4/putenv.m4: Likewise.
80057         * m4/realloc.m4: Likewise.
80058         * m4/regex.m4: Likewise.
80059         * m4/stat.m4: Likewise.
80060         * m4/strftime.m4: Likewise.
80061         Suggestion from Alain Magloire.
80062
80063         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
80064         an argument.
80065
80066         * m4/regex.m4: Add a run-time Test for proper operation of
80067         re_compile_pattern.
80068
80069 1999-01-31  Jim Meyering  <meyering@ascend.com>
80070
80071         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
80072
80073 1999-01-30  Jim Meyering  <meyering@ascend.com>
80074
80075         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
80076
80077         * m4/jm-mktime.m4: Make this a wrapper around the official
80078         AM_FUNC_MKTIME rather than my private copy, now that the official one
80079         is up to date.
80080         * m4/mktime.m4: Remove file.
80081
80082         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
80083         * m4/uptime.m4: Likewise.
80084         * m4/uintmax_t.m4: Likewise.
80085
80086 1999-01-28  Jim Meyering  <meyering@ascend.com>
80087
80088         * m4/jm-macros.m4: Use jm_AFS.
80089         * m4/afs.m4: New file (from fileutils' configure.in).
80090
80091         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
80092         * m4/chown.m4: Likewise.
80093         * m4/d-ino.m4: Likewise.
80094         * m4/d-type.m4: Likewise.
80095         * m4/fnmatch.m4: Likewise.
80096         * m4/getgroups.m4: Likewise.
80097         * m4/gettext.m4: Likewise.
80098         * m4/jm-mktime.m4: Likewise.
80099         * m4/jm-winsz2.m4: Likewise.
80100         * m4/lcmessage.m4: Likewise.
80101         * m4/ls-mntd-fs.m4: Likewise.
80102         * m4/malloc.m4: Likewise.
80103         * m4/memcmp.m4: Likewise.
80104         * m4/putenv.m4: Likewise.
80105         * m4/realloc.m4: Likewise.
80106         * m4/st_mtim.m4: Likewise.
80107         * m4/strftime.m4: Likewise.
80108
80109 1999-01-16  Jim Meyering  <meyering@ascend.com>
80110
80111         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
80112         (ARGMATCH_DIE_DECL): Define.
80113
80114 1999-01-12  Jim Meyering  <meyering@ascend.com>
80115
80116         * m4/Makefile.am.in: Rewrite to avoid using fmt.
80117         Reported by Lars Hecking.
80118
80119 1999-01-10  Jim Meyering  <meyering@ascend.com>
80120
80121         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
80122         gross kludge.
80123         * m4/inttypes_h.m4: Likewise.
80124         * m4/lstat.m4: Likewise.
80125         * m4/malloc.m4: Likewise.
80126         * m4/readdir.m4: Likewise.
80127         * m4/realloc.m4: Likewise.
80128         * m4/st_dm_mode.m4: Likewise.
80129         * m4/stat.m4: Likewise.
80130         * m4/utimbuf.m4: Likewise.
80131         * m4/utimes.m4: Likewise.
80132
80133         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
80134         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
80135         comments in config.h.in are meaningful.
80136
80137         * m4/jm-macros.m4: Require autoconf-2.13 here.
80138
80139         * m4/regex.m4: By default, don't use the included regex.c on systems
80140         with glibc 2.  Suggestion from Uli Drepper.
80141
80142 1999-01-02  Jim Meyering  <meyering@ascend.com>
80143
80144         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
80145
80146 1998-12-18  Jim Meyering  <meyering@ascend.com>
80147
80148         * m4/Makefile.am.in (Makefile.am): Simplify rule.
80149         Based on a suggestion from Lars Hecking.
80150
80151 1998-11-16  Paul Eggert  <eggert@twinsun.com>
80152
80153         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
80154
80155 1998-11-16  Jim Meyering  <meyering@ascend.com>
80156
80157         * m4/lfs.m4: Double-quote the `uname...` expression.
80158
80159 1998-11-14  Jim Meyering  <meyering@ascend.com>
80160
80161         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
80162         * m4/stat.m4: Likewise.
80163
80164 1998-11-03  Jim Meyering  <meyering@ascend.com>
80165
80166         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
80167         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
80168
80169 1998-10-18  Jim Meyering  <meyering@ascend.com>
80170
80171         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
80172
80173 1998-10-17  Jim Meyering  <meyering@ascend.com>
80174
80175         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
80176         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
80177         calls for those previously hard-coded headers.  Instead, take a new
80178         parameter.
80179         (jm_CHECK_DECLARATIONS): Reflect interface change.
80180         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
80181         (jm_CHECK_DECL_LOCALTIME_R): New macro.
80182
80183         * m4/mktime.m4: Test for spring-forward gap before long-running test.
80184
80185 1998-10-14  Jim Meyering  <meyering@ascend.com>
80186
80187         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
80188         instead of "TZ=America/Vancouver".  From Paul Eggert.
80189
80190 1998-10-11  Jim Meyering  <meyering@ascend.com>
80191
80192         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
80193         This adds a test for a recently added compatibility fix for mktime.c.
80194         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
80195
80196 1998-09-27  Jim Meyering  <meyering@ascend.com>
80197
80198         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
80199
80200         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
80201         ../configure.in, including a change from Gordon Matzigkeit to allow
80202         cross-compiling for the Hurd.
80203
80204         * m4/glibc.m4: New file/macro to test for the GNU C Library
80205         versions 1 and 2.  From Gordon Matzigkeit.
80206         Indent.
80207
80208 1998-09-21  Jim Meyering  <meyering@ascend.com>
80209
80210         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
80211
80212 1998-08-18  Paul Eggert  <eggert@twinsun.com>
80213
80214         Port nanosecond-resolution times to UnixWare 2.1.2 and
80215         pedantic Solaris 2.6.
80216
80217         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
80218         AC_STRUCT_ST_MTIM.
80219         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
80220         Generate name of ns member, instead of just 1 or undef.
80221         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
80222
80223 1998-08-15  Jim Meyering  <meyering@ascend.com>
80224
80225         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
80226         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
80227         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
80228         instead of jm_TYPE_SSIZE_T.
80229
80230 1998-08-12  Jim Meyering  <meyering@ascend.com>
80231
80232         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
80233
80234 1998-08-02  Jim Meyering  <meyering@ascend.com>
80235
80236         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
80237         in acconfig.h manually.
80238
80239 1998-07-31  Paul Eggert  <eggert@twinsun.com>
80240
80241         * m4/st_mtim.m4: New file.
80242
80243 1998-07-28  Jim Meyering  <meyering@ascend.com>
80244
80245         * m4/utimes.m4: Undef stat.
80246
80247 1998-07-25  Jim Meyering  <meyering@ascend.com>
80248
80249         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
80250         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
80251
80252 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
80253
80254         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
80255         uid and gid actually remain unchanged.
80256
80257 1998-07-07  Jim Meyering  <meyering@ascend.com>
80258
80259         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
80260
80261 1998-07-04  Jim Meyering  <meyering@ascend.com>
80262
80263         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
80264         to prove that this macro can be used in packages without regex.c.
80265
80266 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
80267
80268         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
80269         is to be used.
80270
80271 1998-07-03  Jim Meyering  <meyering@ascend.com>
80272
80273         * m4/gettext.m4: Add -lintl if it's found to be necessary.
80274
80275         * m4/gettext.m4: New file -- from gettext-0.10.35.
80276         * m4/lcmessage.m4: Likewise.
80277         * m4/progtest.m4: Likewise.
80278
80279         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
80280         * m4/jm-macros.m4: Require the new macro.
80281
80282 1998-06-29  Jim Meyering  <meyering@ascend.com>
80283
80284         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
80285         for the definition of NGROUPS (used in a system header included
80286         by sys/mount.h).
80287
80288 1998-06-28  Jim Meyering  <meyering@ascend.com>
80289
80290         * m4/ls-mntd-fs.m4: New file.
80291         * m4/fstypename.m4: New file.
80292
80293         * m4/jm-macros.m4: Require the new macro.
80294         * m4/jm-glibc-io.m4: New file.
80295
80296 1998-05-19  Jim Meyering  <meyering@ascend.com>
80297
80298         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
80299         * m4/lchown.m4: New file.
80300
80301         * m4/Makefile.am.in: New file.
80302         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
80303
80304 1998-05-14  Jim Meyering  <meyering@ascend.com>
80305
80306         * m4/Makefile.am (EXTRA_DIST): Add them.
80307         * m4/jm-macros.m4: New file.
80308         * m4/utimbuf.m4: New file.
80309
80310 1998-05-12  Jim Meyering  <meyering@ascend.com>
80311
80312         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
80313
80314 1998-05-11  Jim Meyering  <meyering@ascend.com>
80315
80316         * m4/isc-posix.m4: New file.
80317
80318 1998-05-10  Jim Meyering  <meyering@ascend.com>
80319
80320         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
80321
80322 1998-05-09  Jim Meyering  <meyering@ascend.com>
80323
80324         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
80325         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
80326         with automake.
80327
80328         * m4/ssize_t.m4: New file.
80329         * m4/mktime.m4: Remove file -- the new automake has this now.
80330
80331 1998-04-26  Jim Meyering  <meyering@ascend.com>
80332
80333         * m4/assert.m4: New file.
80334         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
80335
80336 1998-04-05  Jim Meyering  <meyering@ascend.com>
80337
80338         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
80339         (jm_PREREQ): Use it here.
80340
80341 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
80342
80343         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
80344         in acconfig.h.
80345
80346 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
80347
80348         * m4/prereq.m4: New file.
80349         * m4/error.m4: New file.
80350         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
80351
80352 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
80353
80354         * m4/getline.m4: Don't set am_cv_func_working_getline before the
80355         cache-check for the same variable -- that defeated the purpose of
80356         the test; the test program was never run.  This was a problem only
80357         on systems with losing getline functions -- HP-UX 10.20 is one.
80358         Reported by Bjorn Helgaas.
80359
80360 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
80361
80362         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
80363
80364 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
80365
80366         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
80367
80368         * m4/const.m4: New file.  Use an initializer in this declaration
80369         typedef int charset[2]; const charset x;
80370         Reported by Bob Glickstein.
80371
80372 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
80373
80374         * m4/chown.m4: Fix reversed types on -1 args to chown.
80375         From Kaveh Ghazi.
80376
80377 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
80378
80379         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
80380         Add lseek and memchr.
80381
80382         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
80383         T.E.Dickey <dickey@clark.net> said that some older preprocessors
80384         have a 20-character limit on names.
80385
80386 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
80387
80388         * m4/inttypes_h.m4: New file.
80389         * m4/uintmax_t.m4: New file.
80390         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
80391
80392
80393         -----
80394
80395         Local Variables:
80396         coding: utf-8
80397         End:
80398
80399         Copyright (C) 1997-2011 Free Software Foundation, Inc.
80400
80401         Copying and distribution of this file, with or without
80402         modification, are permitted provided the copyright notice
80403         and this notice are preserved.