strerror-override: Don't disable symbol renamings.
[gnulib.git] / ChangeLog
1 2011-06-04  Bruno Haible  <bruno@clisp.org>
2
3         strerror-override: Don't disable symbol renamings.
4         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
5         * lib/strerror-override.c: Include config.h.
6         (strerror_override): Don't undefine.
7
8 2011-06-03  Bruno Haible  <bruno@clisp.org>
9
10         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
11         * lib/localename.h: Update copyright header.
12         * lib/localename.c: Likewise.
13         * lib/relocatable.h: Likewise.
14         * lib/relocatable.c: Likewise.
15
16 2011-06-02  Bruno Haible  <bruno@clisp.org>
17
18         doc: Fix a module name.
19         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20
21 2011-06-02  Bruno Haible  <bruno@clisp.org>
22
23         pipe2: Remove dependency on 'nonblocking' module.
24         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
25         O_NONBLOCK is defined by gnulib.
26         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
27         is zero.
28         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
29         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
30         defined by gnulib.
31         (get_nonblocking_flag): New function.
32         (main): Test O_NONBLOCK flag only if it is nonzero.
33         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
34
35 2011-06-03  Jim Meyering  <meyering@redhat.com>
36
37         maint: three new prohibit-header-without-use rules
38         Prohibit use of cloexec.h, posixver.h, same.h without use.
39         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
40         (sc_prohibit_posixver_without_use): Likewise.
41         (sc_prohibit_same_without_use): Likewise.
42
43 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
44
45         allocator: 'die' routine is now given requested size
46         * lib/allocator.h (struct allocator.die): New size arg.
47         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
48         If the actual problem is an ssize_t limitation, not a size_t or
49         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
50
51 2011-06-01  Eric Blake  <eblake@redhat.com>
52
53         strerror: drop strerror_r dependency
54         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
55         * lib/strerror-override.c (strerror_override): ...to new file.
56         * lib/strerror-override.h: Add prototype.
57         * lib/strerror-impl.h: Delete.
58         * lib/strerror.c (strerror): New implementation.
59         * modules/errno (Files): Add new files.
60         (configure.ac): Compile new file as appropriate.
61         * modules/strerror (Files): Drop unused file.
62         (Depends-on): Drop strerror_r-posix.
63         * MODULES.html.sh: Document strerror_r-posix.
64         Requested by Sam Steingold.
65
66         perror: call strerror_r directly
67         * modules/perror (Files): Drop strerror-impl.h.
68         * lib/perror.c (perror): Use our own stack buffer, rather than
69         calling a wrapper that uses static storage.
70         * doc/posix-functions/perror.texi (perror): Document a limitation
71         of our replacement.
72
73         strerror_r: fix includes for FreeBSD
74         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
75         since we use abort on some platforms.
76         Reported by Matthias Bolte.
77
78 2011-05-31  Bruno Haible  <bruno@clisp.org>
79
80         Fix link errors in tests: openat-die uses gettext-h.
81         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
82         against $(LIBINTL).
83         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
84         against $(LIBINTL).
85         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
86         $(LIBINTL).
87         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
88         against $(LIBINTL).
89         * modules/linkat-tests (Makefile.am): Link test-linkat against
90         $(LIBINTL).
91         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
92         $(LIBINTL).
93         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
94         against $(LIBINTL).
95         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
96         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
97         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
98         $(LIBINTL).
99         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
100         $(LIBINTL).
101         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
102         $(LIBINTL).
103         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
104
105 2011-05-31  Bruno Haible  <bruno@clisp.org>
106
107         Fix link errors in tests: wait-process uses gettext-h.
108         * modules/nonblocking-pipe-tests (Makefile.am): Set
109         test_nonblocking_pipe_main_LDADD.
110         * modules/nonblocking-socket-tests (Makefile.am): Link
111         test-nonblocking-socket-main against $(LIBINTL).
112         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
113
114 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
115
116         assert-h: work around 'verify' incompatibility
117         * lib/verify.h: Use @...@ directives, not ifdef.
118         * modules/assert-h (assert.h): Implement the directives.
119         (assert.h): Substitute the symbol-prefix more consistently.
120
121 2011-05-29  Jim Meyering  <meyering@redhat.com>
122
123         trim: remove three superfluous assignments
124         * lib/trim.c (trim2): Remove three superfluous assignments
125         and correct brace positioning.
126
127 2011-05-29  Bruno Haible  <bruno@clisp.org>
128
129         wctype-h: Avoid namespace pollution on Solaris 2.6.
130         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
131         identifiers.
132         * doc/posix-headers/wctype.texi: Mention the problem.
133         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
134
135 2011-05-28  Jim Meyering  <meyering@redhat.com>
136
137         parse-datetime.y: accommodate -Wstrict-overflow
138         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
139         placate -Wstrict-overflow.
140
141         trim: avoid a warning from -O2 -Wstrict-overflow
142         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
143
144 2011-05-29  Bruno Haible  <bruno@clisp.org>
145
146         gnulib-tool: Fix bug in yesterday's commit.
147         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
148         twice.
149
150 2011-05-29  Bruno Haible  <bruno@clisp.org>
151
152         Allow multiple gnulib generated include files to be combined.
153         * gnulib-tool (func_compute_include_guard_prefix): New function.
154         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
155         ${gl_include_guard_prefix} references.
156         (func_import, func_create_testdir): Invoke
157         func_compute_include_guard_prefix.
158         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
159         * lib/ctype.in.h: Likewise.
160         * lib/dirent.in.h: Likewise.
161         * lib/errno.in.h: Likewise.
162         * lib/fcntl.in.h: Likewise.
163         * lib/float.in.h: Likewise.
164         * lib/getopt.in.h: Likewise.
165         * lib/iconv.in.h: Likewise.
166         * lib/langinfo.in.h: Likewise.
167         * lib/locale.in.h: Likewise.
168         * lib/math.in.h: Likewise.
169         * lib/netdb.in.h: Likewise.
170         * lib/netinet_in.in.h: Likewise.
171         * lib/poll.in.h: Likewise.
172         * lib/pthread.in.h: Likewise.
173         * lib/pty.in.h: Likewise.
174         * lib/sched.in.h: Likewise.
175         * lib/se-selinux.in.h: Likewise.
176         * lib/search.in.h: Likewise.
177         * lib/signal.in.h: Likewise.
178         * lib/spawn.in.h: Likewise.
179         * lib/stdarg.in.h: Likewise.
180         * lib/stddef.in.h: Likewise.
181         * lib/stdint.in.h: Likewise.
182         * lib/stdio.in.h: Likewise.
183         * lib/stdlib.in.h: Likewise.
184         * lib/string.in.h: Likewise.
185         * lib/strings.in.h: Likewise.
186         * lib/sys_file.in.h: Likewise.
187         * lib/sys_ioctl.in.h: Likewise.
188         * lib/sys_select.in.h: Likewise.
189         * lib/sys_socket.in.h: Likewise.
190         * lib/sys_stat.in.h: Likewise.
191         * lib/sys_time.in.h: Likewise.
192         * lib/sys_times.in.h: Likewise.
193         * lib/sys_uio.in.h: Likewise.
194         * lib/sys_utsname.in.h: Likewise.
195         * lib/sys_wait.in.h: Likewise.
196         * lib/sysexits.in.h: Likewise.
197         * lib/termios.in.h: Likewise.
198         * lib/time.in.h: Likewise.
199         * lib/unistd.in.h: Likewise.
200         * lib/wchar.in.h: Likewise.
201         * lib/wctype.in.h: Likewise.
202         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
203         * modules/ctype (Makefile.am): Likewise.
204         * modules/dirent (Makefile.am): Likewise.
205         * modules/errno (Makefile.am): Likewise.
206         * modules/fcntl-h (Makefile.am): Likewise.
207         * modules/float (Makefile.am): Likewise.
208         * modules/getopt-posix (Makefile.am): Likewise.
209         * modules/iconv-h (Makefile.am): Likewise.
210         * modules/langinfo (Makefile.am): Likewise.
211         * modules/locale (Makefile.am): Likewise.
212         * modules/math (Makefile.am): Likewise.
213         * modules/netdb (Makefile.am): Likewise.
214         * modules/netinet_in (Makefile.am): Likewise.
215         * modules/poll-h (Makefile.am): Likewise.
216         * modules/pthread (Makefile.am): Likewise.
217         * modules/pty (Makefile.am): Likewise.
218         * modules/sched (Makefile.am): Likewise.
219         * modules/search (Makefile.am): Likewise.
220         * modules/selinux-h (Makefile.am): Likewise.
221         * modules/signal (Makefile.am): Likewise.
222         * modules/spawn (Makefile.am): Likewise.
223         * modules/stdarg (Makefile.am): Likewise.
224         * modules/stddef (Makefile.am): Likewise.
225         * modules/stdint (Makefile.am): Likewise.
226         * modules/stdio (Makefile.am): Likewise.
227         * modules/stdlib (Makefile.am): Likewise.
228         * modules/string (Makefile.am): Likewise.
229         * modules/strings (Makefile.am): Likewise.
230         * modules/sys_file (Makefile.am): Likewise.
231         * modules/sys_ioctl (Makefile.am): Likewise.
232         * modules/sys_select (Makefile.am): Likewise.
233         * modules/sys_socket (Makefile.am): Likewise.
234         * modules/sys_stat (Makefile.am): Likewise.
235         * modules/sys_time (Makefile.am): Likewise.
236         * modules/sys_times (Makefile.am): Likewise.
237         * modules/sys_uio (Makefile.am): Likewise.
238         * modules/sys_utsname (Makefile.am): Likewise.
239         * modules/sys_wait (Makefile.am): Likewise.
240         * modules/sysexits (Makefile.am): Likewise.
241         * modules/termios (Makefile.am): Likewise.
242         * modules/time (Makefile.am): Likewise.
243         * modules/unistd (Makefile.am): Likewise.
244         * modules/wchar (Makefile.am): Likewise.
245         * modules/wctype-h (Makefile.am): Likewise.
246         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
247
248 2011-05-29  Bruno Haible  <bruno@clisp.org>
249
250         assert-h: Allow multiple gnulib generated replacements to coexist.
251         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
252
253 2011-05-29  Bruno Haible  <bruno@clisp.org>
254
255         argp: Allow coexistence with strerror_r-posix module.
256         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
257         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
258         by gnulib's <string.h> replacement), assume it has the POSIX signature,
259         not the glibc signature.
260
261 2011-05-28  Bruno Haible  <bruno@clisp.org>
262
263         gnulib-tool: Alternative structure of testdirs, similar to --import.
264         * gnulib-tool: New option --single-configure.
265         (func_usage): Document it.
266         (single_configure): New variable.
267         (func_modules_transitive_closure_separately,
268         func_modules_transitive_closure_separately,
269         func_determine_use_libtests, func_modules_add_dummy_separately,
270         func_modules_to_filelist_separately): New functions, extracted from
271         func_import.
272         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
273         (func_import): Use the new functions.
274         (func_create_testdir): Set final_modules. Handle $single_configure =
275         true case.
276
277 2011-05-28  Bruno Haible  <bruno@clisp.org>
278
279         getloadavg: Remove an unreliable safety check.
280         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
281         getloadavg.c is in place.
282         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
283         Reported by Sam Steingold <sds@gnu.org>.
284
285 2011-05-28  Bruno Haible  <bruno@clisp.org>
286
287         doc: Cleanup yet another file produced by texinfo.tex.
288         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
289
290 2011-05-28  Bruno Haible  <bruno@clisp.org>
291
292         Finish the conditional dependencies mechanism.
293         * gnulib-tool: New option --no-conditional-dependencies.
294         (func_usage): Document it. Don't mark --conditional-dependencies as
295         experimental.
296         (cond_dependencies): The possible values can now be true, false, empty.
297         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
298         (func_import): Store setting in gnulib-cache.m4 and read it from there.
299         * doc/gnulib-tool.texi (Conditional dependencies): New section.
300
301 2011-05-28  Bruno Haible  <bruno@clisp.org>
302
303         doc: Use a recent texinfo.tex.
304         * doc/Makefile (tex_opts): New variable.
305         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
306
307 2011-05-28  Jim Meyering  <meyering@redhat.com>
308
309         intprops.h: adjust comment to match code change
310         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
311         only once, it *may* have side effects.  Also fix an unrelated typo.
312         (_GL_INT_SIGNED): Likewise.
313
314 2011-05-26  Simon Josefsson  <simon@josefsson.org>
315
316         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
317
318 2011-05-26  Bruno Haible  <bruno@clisp.org>
319
320         mbsrchr: Avoid collision with system function on Interix.
321         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
322         Reported by Markus Duft <mduft@gentoo.org>.
323
324 2011-05-15  James Youngman  <jay@gnu.org>
325
326         getopt: for ambiguous options, enumerate the possibilities.
327         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
328         the ambiguous options when an ambiguous prefix is given. This was
329         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
330         glibc change was
331         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
332
333 2011-05-25  Eric Blake  <eblake@redhat.com>
334
335         getcwd: work around mingw bug
336         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
337         * doc/posix-functions/getcwd.texi (getcwd): Document it.
338         Reported by Matthias Bolte.
339
340 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
341
342         test-intprops: disable -Wtype-limits diagnostics
343         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
344         diagnostics.  Otherwise, the integer overflow macros generate many
345         diagnostics.  Reported by Jim Meyering in
346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
347
348         intprops: shorten, to pacify gcc -Woverlength-strings
349         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
350         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
351         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
352         likely to run afoul of C compiler limits for string constant lengths.
353         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
354
355 2011-05-24  Eric Blake  <eblake@redhat.com>
356
357         docs: document recently fixed glibc printf bug
358         * doc/posix-functions/fprintf.texi (fprintf): Document it.
359         * doc/posix-functions/printf.texi (printf): Likewise.
360         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
361         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
362
363         closein-tests: convert to init.sh
364         * modules/closein-tests (Files): Add init.sh
365         * tests/test-closein.sh Use it.
366
367         yesno-tests: convert to init.sh
368         * modules/yesno-tests (Files): Add init.sh.
369         * tests/test-yesno.sh: Use it.
370
371         atexit-tests: ensure reliable exit status
372         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
373         Reported by Bruno Haible.
374
375 2011-05-24  Bruno Haible  <bruno@clisp.org>
376
377         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
378         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
379         gl_PREREQ_STRERROR_R invocations from here...
380         * modules/strerror_r-posix (configure.ac): ... to here.
381
382 2011-05-24  Eric Blake  <eblake@redhat.com>
383
384         strerror_r: fix missing header
385         * lib/strerror_r.c: Avoid compiler warning about snprintf.
386
387         strerror_r: fix AIX test failures
388         * lib/strerror_r.c (strerror_r): Convert silent truncation to
389         ERANGE failure.
390
391         strerror_r: fix Solaris test failures
392         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
393         failures.
394         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
395
396         strerror_r: enforce POSIX recommendations
397         * lib/strerror_r.c (safe_copy): New helper method.
398         (strerror_r): Guarantee a non-empty string.
399         * tests/test-strerror_r.c (main): Enhance tests to incorporate
400         recent POSIX rulings and to match our strerror guarantees.
401         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
402
403 2011-05-24  Jim Meyering  <meyering@redhat.com>
404
405         test-perror2.c: avoid warning about unused variable
406         * tests/test-perror2.c (main): Remove declaration of unused "fp".
407
408 2011-05-24  Eric Blake  <eblake@redhat.com>
409
410         perror: avoid spurious test failure on HP-UX
411         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
412
413         tests: fix logic bug in init.sh
414         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
415         shell.
416
417 2011-05-24  Jim Meyering  <meyering@redhat.com>
418
419         utimensat: do not reference an out-of-scope buffer
420         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
421         declared in an inner scope, yet "times" would be dereferenced outside
422         the scope in which "ts" was valid.
423         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
424         of ts[2] "out/up", so that the use of aliased "times" (via
425         "times = ts;") does not end up referencing an out-of-scope "ts"
426
427         opendir-safer.c: don't clobber errno; don't close negative FD
428         * lib/opendir-safer.c (opendir_safer):
429         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
430         file descriptor, and more importantly, don't clobber the
431         offending errno value with EINVAL.  Before, upon failure
432         of dup_safer, we would pass the negative file descriptor to
433         fdopendir, which would clobber errno.
434
435 2011-05-23  Bruno Haible  <bruno@clisp.org>
436
437         idcache: Fix module description.
438         * modules/idcache (Include): Set to "idcache.h".
439
440 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
441
442         gnulib-tool: fix portability problem with MacOS sed
443         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
444         before the "}".  Problem reported by Leo in
445         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
446         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
447         sed_extract_condition1, sed_extract_condition2.
448
449 2011-05-23  Bruno Haible  <bruno@clisp.org>
450
451         hash: Simplify autoconf macro.
452         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
453
454 2011-05-23  Bruno Haible  <bruno@clisp.org>
455
456         getugroups: Fix module description.
457         * modules/getugroups (Include): Set to "getugroups.h".
458
459 2011-05-23  Bruno Haible  <bruno@clisp.org>
460
461         linkat: Simplify autoconf macro.
462         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
463
464 2011-05-23  Bruno Haible  <bruno@clisp.org>
465             Eric Blake  <eblake@redhat.com>
466
467         linkat, renameat: Update dependencies.
468         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
469         * modules/linkat (Depends-on): Likewise. Remove also readlink,
470         symlinkat.
471
472 2011-05-23  Jim Meyering  <meyering@redhat.com>
473
474         maint.mk: more tight_scope improvements
475         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
476         (_gl_TS_headers): Define only in if-0'd block.
477         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
478         sometimes we must *not* use it.  Adjust uses accordingly.
479         (sc_tight_scope): Use much simpler grep-based test to determine
480         whether we skip this rule.
481
482         maint.mk: generalize/improve the tight-scope rule
483         * top/maint.mk: Emit a warning when the test is skipped.
484         (_gl_TS_dir): Add $(srcdir)/ prefix.
485         (_gl_TS_function_match): Simplify, rather than trying
486         to enumerate common types.  Otherwise, it would fail to match an
487         "extern unsigned char const *" declaration in idutils.
488         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
489         a way to support use of that type of macro.
490         (_gl_TS_var_match): Simplify regexp.
491         (_gl_TS_obj_files): New configurable variable.
492         (_gl_TS_headers): Likewise.
493
494 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
495
496         verify: fix bug when gnulib <assert.h> is also included
497         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
498         is defined, not if _GL_STATIC_ASSERT_H is not defined.
499         Perhaps there's a better way, but this fixes the immediate problem.
500         Problem reported by Bruno Haible in
501         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
502
503 2011-05-22  Bruno Haible  <bruno@clisp.org>
504
505         xgetcwd: Simplify autoconf macro.
506         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
507
508 2011-05-22  Bruno Haible  <bruno@clisp.org>
509
510         New module 'mktime-internal'.
511         * modules/mktime-internal: New file.
512         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
513         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
514         mktime_internal as a C macro if libc has __mktime_internal.
515         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
516         conditions.
517         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
518
519 2011-05-22  Bruno Haible  <bruno@clisp.org>
520
521         timegm: Correct mktime replacement statements.
522         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
523         defining mktime as a C macro. This completes a 2009-07-28 commit.
524
525 2011-05-22  Bruno Haible  <bruno@clisp.org>
526
527         timegm: Simplify autoconf macro.
528         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
529
530 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
531
532         clock-time: change to LGPLv2+.
533         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
534         BSD-like but we have no mark for that; this is good enough for now.
535
536 2011-05-21  Bruno Haible  <bruno@clisp.org>
537
538         strerror_r: Fix comments.
539         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
540
541 2011-05-21  Bruno Haible  <bruno@clisp.org>
542
543         relocatable-prog-wrapper: Fix possible link error.
544         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
545         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
546         (gl_FUNC_SETENV): ... to here.
547         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
548         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
549
550 2011-05-21  Bruno Haible  <bruno@clisp.org>
551
552         relocatable-prog-wrapper: Assume strerror() exists.
553         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
554         m4/strerror.m4.
555         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
556         * lib/relocwrapper.c: Remove mention of strerror module.
557         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
558         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
559         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
560         C macro.
561
562 2011-05-21  Bruno Haible  <bruno@clisp.org>
563
564         select: Simplify replacement idiom.
565         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
566         Win32 platforms.
567         * lib/sys_select.in.h (select): Simplify accordingly.
568         * modules/select (Depends-on): Likewise.
569
570 2011-05-21  Bruno Haible  <bruno@clisp.org>
571
572         mkdir-p: Simplify autoconf macro.
573         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
574         gl_FUNC_LCHOWN.
575
576 2011-05-21  Eric Blake  <eblake@redhat.com>
577
578         strerror_r: avoid clobbering strerror on cygwin
579         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
580         fall back instead to sys_errlist.
581         * modules/strerror (configure.ac): Add witness.
582         * tests/test-strerror_r.c (main): Enhance test.
583         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
584         * tests/test-perror2.c (main): Free memory before exit.
585
586 2011-05-21  Bruno Haible  <bruno@clisp.org>
587
588         mkdtemp: Use gnulib naming conventions.
589         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
590         * modules/mkdtemp (configure.ac): Update.
591
592 2011-05-20  Eric Blake  <eblake@redhat.com>
593
594         strerror_r: avoid corrupting errno on Solaris
595         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
596         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
597
598         strerror_r: avoid compiler warning
599         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
600
601         strerror_r: simplify AIX code
602         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
603
604         test-perror: avoid spurious failure on FreeBSD
605         * modules/perror-tests (Depends-on): Add strerror, now that
606         strerror_r no longer pulls it in.
607
608 2011-05-20  Bruno Haible  <bruno@clisp.org>
609
610         strerror_r-posix: Remove unused dependencies.
611         * modules/strerror_r-posix (Depends-on): Remove strerror.
612         Reported by Eric Blake.
613
614 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
615
616         intprops: remove assumption about A|B representation
617         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
618         is a valid integer if both A and B are.  Although this is true for
619         all known practical hosts, the C standard doesn't guarantee it,
620         and the code need not assume it.  Also, this change may work around
621         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
622         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
623
624 2011-05-20  Eric Blake  <eblake@redhat.com>
625
626         perror: work around FreeBSD bug
627         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
628         is broken.  Move AC_LIBOBJ...
629         * modules/perror (configure.ac): Here.
630         * doc/posix-functions/perror.texi (perror): Document this.
631         * tests/test-perror2.c (main): Enhance test.
632
633         test-perror: check for strerror interactions
634         * tests/macros.h (STREQ): Add macro.
635         * modules/perror-tests (Files): Add second test.
636         * tests/test-perror2.c (main): New file.
637         * doc/posix-functions/perror.texi (perror): Document glibc bug.
638
639         test-perror: rewrite to use init script
640         * modules/perror-tests (Files): Add init.sh.
641         * tests/test-perror.sh: Use temporary directory.
642
643 2011-05-20  Jim Meyering  <meyering@redhat.com>
644
645         maint: replace misused "a" with "an"
646         * doc/intprops.texi: "a integer"
647         * doc/regex.texi: "a explanation"
648         * lib/alignof.h: "a object"
649         * lib/argmatch.h: "a explanation"
650         * lib/argp-help.c: "a option" and "a OPTION_DOC"
651         * lib/stdint.in.h: "a integer"
652         * lib/userspec.c: "a owner"
653         * doc/gnulib.texi: Fix "a idea", and reword.
654
655 2011-05-19  Jim Meyering  <meyering@redhat.com>
656
657         maint: correct misuse of "a" and "an"
658         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
659         * lib/argp-help.c: "an docum...": s/an/a/
660         * lib/argp-parse.c: "An vector": s/An/A/
661         * lib/execute.c: "an native": s/an/a/
662         * lib/spawn-pipe.c: Likewise.
663         * lib/gc.h: "an Gc_rc": s/an/a/
664         * lib/unigbrk.in.h: "an grapheme": s/an/a/
665         * lib/fts.c: "an stat.st_dev": s/an/a/
666
667 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
668
669         intprops-tests: work around HP-UX 11.23 cc bug with constants
670         * tests/test-intprops.c (VERIFY): New macro.
671         (main): Use it, instead of verify, to work around the compiler bug; see
672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
673
674         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
675         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
676         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
677         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
678         (_GL_REMAINDER_OVERFLOW): Use it.
679
680         intprops-tests: revert unsigned part of previous change
681         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
682         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
683         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
685
686 2011-05-19  Bruno Haible  <bruno@clisp.org>
687
688         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
689         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
690         strerror_r() returned without filling the buffer.
691         Reported by Eric Blake.
692
693 2011-05-19  Eric Blake  <eblake@redhat.com>
694
695         strerror_r: guarantee unchanged errno
696         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
697         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
698         failure.
699         * tests/test-strerror_r.c (main): Enhance test.
700
701 2011-05-19  Bruno Haible  <bruno@clisp.org>
702
703         strerror_r: Reorder #if blocks.
704         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
705         for consistency with the previous commit.
706
707 2011-05-19  Bruno Haible  <bruno@clisp.org>
708
709         perror: Avoid clobbering the strerror buffer when possible.
710         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
711         * lib/strerror.c: Include it.
712         * modules/strerror (Files): Add lib/strerror-impl.h.
713         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
714         (my_strerror): New function, defined through lib/strerror-impl.h.
715         (perror): Use it instead of strerror.
716         * modules/perror (Files): Add lib/strerror-impl.h.
717         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
718
719 2011-05-19  Eric Blake  <eblake@redhat.com>
720
721         strerror_r: fix on newer cygwin
722         * lib/strerror_r.c (strerror_r): Cygwin now has
723         __xpg_strerror_r, use it.
724
725 2011-05-19  Bruno Haible  <bruno@clisp.org>
726
727         strerror_r: Avoid clobbering the strerror buffer when possible.
728         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
729         (sys_nerr, sys_errlist): New declarations.
730         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
731         HP-UX, native Win32, IRIX, and 32-bit Solaris.
732         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
733
734 2011-05-19  Bruno Haible  <bruno@clisp.org>
735
736         strerror_r: Fix test failure on mingw.
737         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
738         EXTEND_STRERROR_R.
739         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
740         macros from errno.in.h instead.
741
742 2011-05-19  Eric Blake  <eblake@redhat.com>
743
744         strerror: relax test for Solaris
745         * tests/test-strerror.c (main): Permit Solaris behavior.
746         * tests/test-strerror_r.c (main): Likewise.
747
748         strerror: enforce POSIX ruling on strerror(0)
749         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
750         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
751         * lib/strerror_r.c (rpl_strerror_r): Work around it.
752         * doc/posix-functions/strerror.texi (strerror): Document it.
753         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
754         * tests/test-strerror.c (main): Strengthen test.
755         * tests/test-strerror_r.c (main): Likewise.
756
757 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
758
759         intprop-tests: port to older and more-pedantic compilers
760         * modules/intprops-tests (Files): Add tests/macros.h.
761         * tests/test-intprops.c: Include macros.h.
762         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
763         it's no longer documented to expand to an integer constant expression.
764         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
765         argument is floating point, as it's no longer documented to expand
766         to an integer constant expression in that case.
767         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
768         compiler bugs reported by Bruno Haible.  See
769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
770         (U0, U1): New constants, to work around the same bugs.  Also,
771         in tests, use e.g., "(unsigned int) 39" rather than "39u".
772
773         intprops: work around C compiler bugs
774         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
775         bug in Sun C 5.11 2010/08/13 and other compilers; see
776         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
777
778         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
779         * doc/intprops.texi (Integer Type Determination): Fix
780         documentation for TYPE_IS_INTEGER: it returns an constant
781         expression, not an integer constant expression.  Fix doc for
782         TYPE_SIGNED: it returns an integer constant expression only if its
783         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
784         hardly worth documented that way....)
785
786 2011-05-18  Bruno Haible  <bruno@clisp.org>
787
788         strerror_r: Avoid clobbering the strerror buffer when possible.
789         * lib/strerror_r.c (strerror_r): Merge the three implementations.
790         Handle gnulib defined errno values here. When strerror() returns NULL
791         or an empty string, return EINVAL.
792         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
793         gnulib defined errno values here.
794         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
795
796 2011-05-18  Eric Blake  <eblake@redhat.com>
797
798         fnmatch: avoid compiler warning
799         * lib/fnmatch_loop.c (FCT): Use correct type.
800         Reported by Matthias Bolte.
801
802 2011-05-13  Jim Meyering  <meyering@redhat.com>
803
804         maint.mk: three new prohibit_<HDR>_without_use rules
805         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
806         (sc_prohibit_stdio-safer_without_use): Likewise.
807         (sc_prohibit_xfreopen_without_use): Likewise.
808
809 2011-05-17  Jim Meyering  <meyering@redhat.com>
810
811         announce-gen: fail if the NEWS delta is empty
812         If there's nothing noteworthy in NEWS, then either you forgot
813         or you shouldn't be releasing.
814         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
815
816 2011-05-17  Pádraig Brady <P@draigBrady.com>
817
818         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
819         reserved symbols starting with double underscore from the check.
820
821 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
822
823         intprops: add doc
824         * doc/intprops.texi: New file, documenting intprops.
825         * doc/gnulib.texi (Particular Modules): Include it.
826
827         verify: add doc to gnulib manual and fix example
828         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
829         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
830         (Compile-time Assertions): Fix example so it can't overflow.
831
832 2011-05-17  Jim Meyering  <meyering@redhat.com>
833
834         warnings.m4: don't usurp save_CPPFLAGS variable name
835         * m4/warnings.m4: Prefix local temporary variable name with gl_.
836
837         doc: fix typo
838         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
839
840 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
841             Bruno Haible  <bruno@clisp.org>
842
843         doc: Tweak recent change.
844         * README (Portability guidelines): Tweak new text.
845         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
846         Interix 6.1.
847
848 2011-05-16  Eric Blake  <eblake@redhat.com>
849
850         inttypes: avoid autoconf warning
851         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
852         * m4/stdint.m4 (gl_STDINT_H): Likewise.
853
854 2011-05-16  Sam Steingold <sds@gnu.org>
855         and Eric Blake  <eblake@redhat.com>
856
857         vc-list-files: accept multiple directory operands
858         * build-aux/vc-list-files: Iterate over all remaining operands.
859
860 2011-05-16  Bruno Haible  <bruno@clisp.org>
861
862         Fix confusion regarding deprecated modules.
863         * modules/calloc (Status, Notice): Mark module as deprecated, not
864         obsolete.
865         * modules/fnmatch-posix (Status, Notice): Likewise.
866         * modules/getdate (Status, Notice): Likewise.
867         * modules/getopt (Status, Notice): Likewise.
868         * modules/malloc (Status, Notice): Likewise.
869         * modules/pipe (Status, Notice): Likewise.
870         * modules/realloc (Status, Notice): Likewise.
871         * modules/rename-dest-slash (Status, Notice): Likewise.
872         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
873         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
874         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
875         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
876         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
877
878 2011-05-16  Bruno Haible  <bruno@clisp.org>
879
880         doc: List the target platforms.
881         * doc/gnulib-intro.texi (Target Platforms): New section.
882         * doc/gnulib.texi (Introduction): Update menu.
883         * README (Portability guidelines): Refer to the new section. Update
884         statement about oldest supported environment. Remove rationale why
885         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
886         unportable C89 function.
887         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
888         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
889
890 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
891
892         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
893
894 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
895
896         intprops-tests: new module
897         * modules/intprops-tests, tests/test-intprops.c: New files.
898
899         intprops: add safe, portable integer overflow checking
900         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
901         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
902         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
903         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
904         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
905         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
906         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
907         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
908         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
909         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
910         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
911
912 2011-05-12  James Youngman  <jay@gnu.org>
913
914         Add a test for glibc's Bugzilla bug #12378.
915         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
916         doesn't allow the literal matching of a lone "[" (which is
917         required by POSIX).
918         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
919
920 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
921
922         Sync glibc change fixing Bugzilla bug #12378.
923         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
924         beginning and fall back to matching as normal character if the
925         string ends before the matching ']' is found.  This is what POSIX
926         requires.
927
928 2011-05-13  Eric Blake  <eblake@redhat.com>
929
930         getcwd-lgpl: relax test for FreeBSD
931         * doc/posix-functions/getcwd.texi (getcwd): Document portability
932         issue.
933         * tests/test-getcwd-lgpl.c (main): Relax test.
934         Reported by Matthias Bolte.
935
936 2011-05-11  Eric Blake  <eblake@redhat.com>
937
938         test-fflush: silence compiler warning
939         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
940
941 2011-05-11  Bruno Haible  <bruno@clisp.org>
942
943         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
944         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
945         * modules/canonicalize (Depends-on): Add 'nocrash'.
946         * modules/canonicalize-lgpl (Depends-on): Likewise.
947         * doc/posix-functions/realpath.texi: Update platforms list.
948         Reported by Ryan Schmidt <ryandesign@macports.org>.
949
950 2011-05-11  Bruno Haible  <bruno@clisp.org>
951
952         group-member: Declare function in <unistd.h>.
953         * lib/unistd.in.h (group_member): New declaration.
954         * lib/group-member.h: Remove file.
955         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
956         * tests/test-unistd-c++.cc: Check signature of group_member.
957         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
958         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
959         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
960         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
961         HAVE_GROUP_MEMBER.
962         * modules/group-member (Files): Remove lib/group-member.h.
963         (Depends-on): Add unistd. Specify conditions.
964         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
965         (Include): Change to <unistd.h>.
966         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
967         HAVE_GROUP_MEMBER.
968         * NEWS: Mention the change.
969         * lib/euidaccess.c: Don't include group-member.h.
970
971 2011-05-11  Bruno Haible  <bruno@clisp.org>
972
973         group-member: Document module.
974         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
975         module.
976
977 2011-05-11  Bruno Haible  <bruno@clisp.org>
978
979         fclose: Fix mistake earlier today.
980         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
981
982 2011-05-11  Eric Blake  <eblake@redhat.com>
983
984         fclose: preserve fflush errors
985         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
986         Reported by Jim Meyering.
987
988         bootstrap: support a prereq of 'rpcgen -' on RHEL5
989         * build-aux/bootstrap (check_versions): When no specific version
990         is required, merely check that the app produces an exit status
991         that indicates its existence.
992
993         maint.mk: drop redundant check
994         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
995         the same but better.
996
997 2011-05-11  Bruno Haible  <bruno@clisp.org>
998
999         fclose: Fix possible link error.
1000         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
1001         unregister_shadow_fd. Improve comments.
1002         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
1003         Eric Blake.
1004
1005 2011-05-11  Jim Meyering  <meyering@redhat.com>
1006
1007         maint.mk: improve "can not" detection and generalize rule name
1008         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
1009         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
1010         Use the same technique as in sc_prohibit_doubled_word, so that
1011         we recognize "can not" also when the words are separated by a newline.
1012         Suggested by Eric Blake.
1013         (perl_filename_lineno_text_): Define.  Factored out of...
1014         (prohibit_doubled_word_): ...here.  Use the new definition.
1015         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
1016         (prohibit_undesirable_word_seq_RE_): New overridable variable.
1017         (ignore_undesirable_word_sequence_RE_): New overridable variable.
1018
1019 2011-05-10  Eric Blake  <eblake@redhat.com>
1020
1021         fclose: avoid double close race when possible
1022         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
1023         all but WINDOWS_SOCKETS.
1024
1025 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
1026
1027         openat: correct new comment
1028         * lib/openat-proc.c (openat_proc_name): Correct the comment.
1029
1030 2011-05-10  Jim Meyering  <meyering@redhat.com>
1031
1032         openat: add comments
1033         * lib/openat-proc.c (openat_proc_name): Add comments,
1034         mostly from Eric Blake.
1035
1036 2011-05-09  Eric Blake  <eblake@redhat.com>
1037
1038         openat: reduce syscalls in first probe of /proc
1039         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
1040         be a directory.  Simplify the probe for .. bugs.
1041         * modules/openat (Depends-on): Drop same-inode.
1042         Reported by Bastien ROUCARIES.
1043
1044 2011-05-09  Jim Meyering  <meyering@redhat.com>
1045
1046         maint.mk: change semantics/name of tight_scope variables
1047         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
1048         Rename variables to align with semantics that make them more useful.
1049
1050         maint.mk: tweak new rule's name not to impinge
1051         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
1052         (sc_tight_scope): Use new rule name rather than $@-0.
1053
1054         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
1055         * top/maint.mk (sc_tight_scope): New rule.
1056         (sc_tight_scope-0): New rule, ifdef'd out.
1057         (_gl_TS_dir): Default.
1058         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
1059         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
1060
1061 2011-05-09  Simon Josefsson  <simon@josefsson.org>
1062
1063         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
1064         Haible <bruno@clisp.org>.
1065
1066 2011-05-08  Bruno Haible  <bruno@clisp.org>
1067
1068         Comments.
1069         * m4/isnanf.m4: Add comment.
1070         * m4/isnanl.m4: Likewise.
1071
1072 2011-05-08  Bruno Haible  <bruno@clisp.org>
1073
1074         glob: Remove obsolete macro.
1075         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
1076
1077 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
1078
1079         intprops: Sun C 5.11 supports __typeof__
1080         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
1081         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
1082         which is new.
1083         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
1084
1085         intprops: switch to usual gnulib indenting and naming
1086         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
1087         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
1088
1089         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
1090
1091 2011-05-08  Jim Meyering  <meyering@redhat.com>
1092
1093         maint.mk: suppress "Entering/Leaving directory" diag in announcement
1094         * top/maint.mk (release-prep): Use make's --no-print-directory
1095         option when generating the announcement.  This eliminates the
1096         pesky "make[2]: Entering/Leaving directory" diagnostics in the
1097         generated announcement template.
1098
1099 2011-05-08  Bruno Haible  <bruno@clisp.org>
1100
1101         tzset: Fix gettimeofday wrapper on Solaris 2.6.
1102         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
1103         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
1104
1105 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1106
1107         ignore-value, verify: Omit include files from lib_SOURCES.
1108         * modules/ignore-value, modules/verify (Makefile.am):
1109         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
1110         that leads Automake to duplicate use of am__objects_... variables
1111         in Makefile.in.  See
1112         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
1113
1114 2011-05-07  Bruno Haible  <bruno@clisp.org>
1115
1116         fclose: Simplify autoconf macro.
1117         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
1118         defined.
1119
1120 2011-05-07  Bruno Haible  <bruno@clisp.org>
1121
1122         canonicalize-lgpl: Fix autoconf macro ordering bug.
1123         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
1124         gl_STDLIB_H_DEFAULTS.
1125
1126 2011-05-06  Eric Blake  <eblake@redhat.com>
1127
1128         maintainer-makefile: make sc_po_check easier to tune
1129         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
1130         to probe for strings, such as an alternate location for gnulib.
1131
1132         fclose: guarantee behavior on seekable stdin
1133         * modules/fclose (Depends-on): Add fflush.
1134         * doc/posix-functions/fclose.texi (fclose): Document this.
1135         * tests/test-fclose.c (main): Make test for this unconditional.
1136
1137 2011-05-06  Bruno Haible  <bruno@clisp.org>
1138
1139         fflush, fpurge: Relicense under LGPLv2+.
1140         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
1141         * modules/fpurge (License): Likewise.
1142         With permission from Eric Blake and Jim Meyering.
1143         Suggested by Eric Blake.
1144
1145 2011-05-06  Karl Berry  <karl@gnu.org>
1146
1147         * MODULES.html.sh (func_all_modules): remove exit.
1148
1149 2011-05-06  Jim Meyering  <meyering@redhat.com>
1150
1151         maint.mk: use info-gnu@ as the default only for a stable release
1152         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
1153         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
1154         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
1155         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
1156
1157 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1158
1159         assert-h: new module, which supports C1X-style static_assert
1160         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
1161         * lib/verify.h: Revamp so that this can be copied into assert.h,
1162         while retaining the ability to use it standalone as before.
1163         Rename private identifiers so as not to encroach on the
1164         standard C namespace, since this is now used by assert.h.
1165         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
1166         the old verify_true.
1167         (_GL_VERIFY_TRUE): New macro, with much of the contents of
1168         the old verify_true.  Use _GL_VERIFY_TYPE.
1169         (_GL_VERIFY): New macro, with much of the contents of the old verify.
1170         (static_assert): New macro, if _GL_STATIC_ASSERT_H
1171         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
1172         defined when this file is copied into the replacement assert.h.
1173         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
1174         and _Static_assert is not built in.
1175         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
1176         defined, and use the new macros mentioned above.
1177         * doc/posix-headers/assert.texi: Document this.
1178
1179 2011-05-05  Bruno Haible  <bruno@clisp.org>
1180
1181         fclose, fflush: Respect rules for use of AC_LIBOBJ.
1182         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
1183         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
1184         gl_REPLACE_FCLOSE here.
1185         * modules/fflush (Depends-on): Remove fclose.
1186         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
1187         combination with module 'fclose'.
1188
1189 2011-05-05  Bruno Haible  <bruno@clisp.org>
1190
1191         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
1192         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
1193         gl_FUNC_FFLUSH.
1194         (gl_FUNC_FFLUSH): Use it.
1195         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
1196         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
1197         gl_REPLACE_FSEEKO here.
1198
1199 2011-05-05  Bruno Haible  <bruno@clisp.org>
1200
1201         tzset: Relicense under LGPL.
1202         * modules/tzset (License): Change to LGPL.
1203         No agreement needed; it's a no-op.
1204
1205         strtoimax, strtoumax: Relicense under LGPL.
1206         * modules/strtoimax (License): Change to LGPL.
1207         * modules/strtoumax (License): Likewise.
1208         With permission from Jim Meyering, Paul Eggert:
1209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
1210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
1211
1212         getgroups: Relicense under LGPL.
1213         * modules/getgroups (License): Change to LGPL.
1214         With permission from Jim Meyering, Paul Eggert, Eric Blake:
1215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1218
1219         nanosleep: Relicense under LGPL.
1220         * modules/nanosleep (License): Change to LGPL.
1221         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
1222         Haible:
1223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1227
1228         futimens: Relicense under LGPL.
1229         * modules/futimens (License): Change to LGPL.
1230         With permission from Eric Blake:
1231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1232
1233         fflush: Relicense under LGPL.
1234         * modules/fflush (License): Change to LGPL.
1235         With permission from Eric Blake, Bruno Haible, Jim Meyering:
1236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1238         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
1239
1240         tmpfile: Relicense under LGPL.
1241         * modules/tmpfile (License): Change to LGPL.
1242         With permission from Ben Pfaff:
1243         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1244
1245         isfinite: Relicense under LGPL.
1246         * modules/isfinite (License): Change to LGPL.
1247         With permission from Ben Pfaff, Bruno Haible:
1248         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
1250
1251         acosl..tanl: Relicense under LGPL.
1252         * modules/acosl (License): Change to LGPL.
1253         * modules/asinl (License): Likewise.
1254         * modules/atanl (License): Likewise.
1255         * modules/cosl (License): Likewise.
1256         * modules/expl (License): Likewise.
1257         * modules/logl (License): Likewise.
1258         * modules/sinl (License): Likewise.
1259         * modules/sqrtl (License): Likewise.
1260         * modules/tanl (License): Likewise.
1261         Source code originally from glibc and Paolo Bonzini. Agreements:
1262         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
1263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
1264
1265 2011-05-05  Bruno Haible  <bruno@clisp.org>
1266
1267         signal: Define sighandler_t.
1268         * lib/signal.in.h (sighandler_t): New type.
1269         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
1270         whether sighandler_t is defined.
1271         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
1272         * modules/signal (Depends-on): Add extensions.
1273         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
1274         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
1275         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
1276
1277 2011-05-05  Eric Blake  <eblake@redhat.com>
1278
1279         maint: remove useless REPLACE_*_H macros
1280         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
1281         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
1282         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
1283         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
1284         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
1285         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
1286         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
1287         * m4/btowc.m4: Update callers.
1288         * m4/dirfd.m4: Likewise.
1289         * m4/duplocale.m4: Likewise.
1290         * m4/fchdir.m4: Likewise.
1291         * m4/fdopendir.m4: Likewise.
1292         * m4/inet_ntop.m4: Likewise.
1293         * m4/inet_pton.m4: Likewise.
1294         * m4/ioctl.m4: Likewise.
1295         * m4/mbrlen.m4: Likewise.
1296         * m4/mbrtowc.m4: Likewise.
1297         * m4/mbsinit.m4: Likewise.
1298         * m4/mbsnrtowcs.m4: Likewise.
1299         * m4/mbsrtowcs.m4: Likewise.
1300         * m4/poll.m4: Likewise.
1301         * m4/setlocale.m4: Likewise.
1302         * m4/wcrtomb.m4: Likewise.
1303         * m4/wcsnrtombs.m4: Likewise.
1304         * m4/wcsrtombs.m4: Likewise.
1305         * m4/wctob.m4: Likewise.
1306         * m4/wcwidth.m4: Likewise.
1307         * modules/posix_spawn: Likewise.
1308         * modules/posix_spawn_file_actions_addclose: Likewise.
1309         * modules/posix_spawn_file_actions_adddup2: Likewise.
1310         * modules/posix_spawn_file_actions_addopen: Likewise.
1311         * modules/posix_spawn_file_actions_destroy: Likewise.
1312         * modules/posix_spawn_file_actions_init: Likewise.
1313         * modules/posix_spawnattr_destroy: Likewise.
1314         * modules/posix_spawnattr_getflags: Likewise.
1315         * modules/posix_spawnattr_getpgroup: Likewise.
1316         * modules/posix_spawnattr_getschedparam: Likewise.
1317         * modules/posix_spawnattr_getschedpolicy: Likewise.
1318         * modules/posix_spawnattr_getsigdefault: Likewise.
1319         * modules/posix_spawnattr_getsigmask: Likewise.
1320         * modules/posix_spawnattr_init: Likewise.
1321         * modules/posix_spawnattr_setflags: Likewise.
1322         * modules/posix_spawnattr_setpgroup: Likewise.
1323         * modules/posix_spawnattr_setschedparam: Likewise.
1324         * modules/posix_spawnattr_setschedpolicy: Likewise.
1325         * modules/posix_spawnattr_setsigdefault: Likewise.
1326         * modules/posix_spawnattr_setsigmask: Likewise.
1327         * modules/posix_spawnp: Likewise.
1328
1329 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
1330
1331         Add option to do-release-commit-and-tag to specify branch.
1332         * build-aux/do-release-commit-and-tag: Add --branch.
1333
1334 2011-05-03  Bruno Haible  <bruno@clisp.org>
1335
1336         Avoid unnecessary compilation units, through conditional dependencies.
1337         * modules/accept (Depends-on): Add conditions to the dependencies.
1338         * modules/acosl (Depends-on): Likewise.
1339         * modules/argz (Depends-on): Likewise.
1340         * modules/asinl (Depends-on): Likewise.
1341         * modules/atanl (Depends-on): Likewise.
1342         * modules/atoll (Depends-on): Likewise.
1343         * modules/bind (Depends-on): Likewise.
1344         * modules/btowc (Depends-on): Likewise.
1345         * modules/canonicalize-lgpl (Depends-on): Likewise.
1346         * modules/ceil (Depends-on): Likewise.
1347         * modules/ceilf (Depends-on): Likewise.
1348         * modules/ceill (Depends-on): Likewise.
1349         * modules/chdir-long (Depends-on): Likewise.
1350         * modules/chown (Depends-on): Likewise.
1351         * modules/close (Depends-on): Likewise.
1352         * modules/connect (Depends-on): Likewise.
1353         * modules/cosl (Depends-on): Likewise.
1354         * modules/dirfd (Depends-on): Likewise.
1355         * modules/dprintf (Depends-on): Likewise.
1356         * modules/dprintf-posix (Depends-on): Likewise.
1357         * modules/error (Depends-on): Likewise.
1358         * modules/euidaccess (Depends-on): Likewise.
1359         * modules/expl (Depends-on): Likewise.
1360         * modules/faccessat (Depends-on): Likewise.
1361         * modules/fchdir (Depends-on): Likewise.
1362         * modules/fclose (Depends-on): Likewise.
1363         * modules/fcntl (Depends-on): Likewise.
1364         * modules/fdopendir (Depends-on): Likewise.
1365         * modules/fflush (Depends-on): Likewise.
1366         * modules/floor (Depends-on): Likewise.
1367         * modules/floorf (Depends-on): Likewise.
1368         * modules/floorl (Depends-on): Likewise.
1369         * modules/fnmatch (Depends-on): Likewise.
1370         * modules/fopen (Depends-on): Likewise.
1371         * modules/fprintf-posix (Depends-on): Likewise.
1372         * modules/frexp (Depends-on): Likewise.
1373         * modules/frexp-nolibm (Depends-on): Likewise.
1374         * modules/frexpl (Depends-on): Likewise.
1375         * modules/frexpl-nolibm (Depends-on): Likewise.
1376         * modules/fseek (Depends-on): Likewise.
1377         * modules/fsusage (Depends-on): Likewise.
1378         * modules/ftell (Depends-on): Likewise.
1379         * modules/ftello (Depends-on): Likewise.
1380         * modules/futimens (Depends-on): Likewise.
1381         * modules/getcwd (Depends-on): Likewise.
1382         * modules/getcwd-lgpl (Depends-on): Likewise.
1383         * modules/getdelim (Depends-on): Likewise.
1384         * modules/getdomainname (Depends-on): Likewise.
1385         * modules/getgroups (Depends-on): Likewise.
1386         * modules/gethostname (Depends-on): Likewise.
1387         * modules/getline (Depends-on): Likewise.
1388         * modules/getlogin_r (Depends-on): Likewise.
1389         * modules/getopt-posix (Depends-on): Likewise.
1390         * modules/getpeername (Depends-on): Likewise.
1391         * modules/getsockname (Depends-on): Likewise.
1392         * modules/getsockopt (Depends-on): Likewise.
1393         * modules/getsubopt (Depends-on): Likewise.
1394         * modules/getusershell (Depends-on): Likewise.
1395         * modules/glob (Depends-on): Likewise.
1396         * modules/grantpt (Depends-on): Likewise.
1397         * modules/iconv_open (Depends-on): Likewise.
1398         * modules/iconv_open-utf (Depends-on): Likewise.
1399         * modules/inet_ntop (Depends-on): Likewise.
1400         * modules/inet_pton (Depends-on): Likewise.
1401         * modules/ioctl (Depends-on): Likewise.
1402         * modules/isapipe (Depends-on): Likewise.
1403         * modules/isfinite (Depends-on): Likewise.
1404         * modules/isinf (Depends-on): Likewise.
1405         * modules/lchown (Depends-on): Likewise.
1406         * modules/ldexpl (Depends-on): Likewise.
1407         * modules/link (Depends-on): Likewise.
1408         * modules/linkat (Depends-on): Likewise.
1409         * modules/listen (Depends-on): Likewise.
1410         * modules/logl (Depends-on): Likewise.
1411         * modules/lstat (Depends-on): Likewise.
1412         * modules/mbrlen (Depends-on): Likewise.
1413         * modules/mbrtowc (Depends-on): Likewise.
1414         * modules/mbsinit (Depends-on): Likewise.
1415         * modules/mbsnrtowcs (Depends-on): Likewise.
1416         * modules/mbsrtowcs (Depends-on): Likewise.
1417         * modules/mbtowc (Depends-on): Likewise.
1418         * modules/memcmp (Depends-on): Likewise.
1419         * modules/mkdir (Depends-on): Likewise.
1420         * modules/mkdtemp (Depends-on): Likewise.
1421         * modules/mkfifo (Depends-on): Likewise.
1422         * modules/mkfifoat (Depends-on): Likewise.
1423         * modules/mknod (Depends-on): Likewise.
1424         * modules/mkostemp (Depends-on): Likewise.
1425         * modules/mkostemps (Depends-on): Likewise.
1426         * modules/mkstemp (Depends-on): Likewise.
1427         * modules/mkstemps (Depends-on): Likewise.
1428         * modules/mktime (Depends-on): Likewise.
1429         * modules/nanosleep (Depends-on): Likewise.
1430         * modules/open (Depends-on): Likewise.
1431         * modules/openat (Depends-on): Likewise.
1432         * modules/perror (Depends-on): Likewise.
1433         * modules/poll (Depends-on): Likewise.
1434         * modules/popen (Depends-on): Likewise.
1435         * modules/posix_spawn (Depends-on): Likewise.
1436         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
1437         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1438         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1439         * modules/posix_spawnp (Depends-on): Likewise.
1440         * modules/pread (Depends-on): Likewise.
1441         * modules/printf-posix (Depends-on): Likewise.
1442         * modules/ptsname (Depends-on): Likewise.
1443         * modules/putenv (Depends-on): Likewise.
1444         * modules/pwrite (Depends-on): Likewise.
1445         * modules/readline (Depends-on): Likewise.
1446         * modules/readlink (Depends-on): Likewise.
1447         * modules/readlinkat (Depends-on): Likewise.
1448         * modules/recv (Depends-on): Likewise.
1449         * modules/recvfrom (Depends-on): Likewise.
1450         * modules/regex (Depends-on): Likewise.
1451         * modules/remove (Depends-on): Likewise.
1452         * modules/rename (Depends-on): Likewise.
1453         * modules/renameat (Depends-on): Likewise.
1454         * modules/rmdir (Depends-on): Likewise.
1455         * modules/round (Depends-on): Likewise.
1456         * modules/roundf (Depends-on): Likewise.
1457         * modules/roundl (Depends-on): Likewise.
1458         * modules/rpmatch (Depends-on): Likewise.
1459         * modules/select (Depends-on): Likewise.
1460         * modules/send (Depends-on): Likewise.
1461         * modules/sendto (Depends-on): Likewise.
1462         * modules/setenv (Depends-on): Likewise.
1463         * modules/setlocale (Depends-on): Likewise.
1464         * modules/setsockopt (Depends-on): Likewise.
1465         * modules/shutdown (Depends-on): Likewise.
1466         * modules/sigaction (Depends-on): Likewise.
1467         * modules/signbit (Depends-on): Likewise.
1468         * modules/sigprocmask (Depends-on): Likewise.
1469         * modules/sinl (Depends-on): Likewise.
1470         * modules/sleep (Depends-on): Likewise.
1471         * modules/snprintf (Depends-on): Likewise.
1472         * modules/snprintf-posix (Depends-on): Likewise.
1473         * modules/socket (Depends-on): Likewise.
1474         * modules/sprintf-posix (Depends-on): Likewise.
1475         * modules/sqrtl (Depends-on): Likewise.
1476         * modules/stat (Depends-on): Likewise.
1477         * modules/strchrnul (Depends-on): Likewise.
1478         * modules/strdup-posix (Depends-on): Likewise.
1479         * modules/strerror (Depends-on): Likewise.
1480         * modules/strerror_r-posix (Depends-on): Likewise.
1481         * modules/strndup (Depends-on): Likewise.
1482         * modules/strnlen (Depends-on): Likewise.
1483         * modules/strptime (Depends-on): Likewise.
1484         * modules/strsep (Depends-on): Likewise.
1485         * modules/strsignal (Depends-on): Likewise.
1486         * modules/strstr-simple (Depends-on): Likewise.
1487         * modules/strtod (Depends-on): Likewise.
1488         * modules/strtoimax (Depends-on): Likewise.
1489         * modules/strtok_r (Depends-on): Likewise.
1490         * modules/strtoumax (Depends-on): Likewise.
1491         * modules/symlink (Depends-on): Likewise.
1492         * modules/symlinkat (Depends-on): Likewise.
1493         * modules/tanl (Depends-on): Likewise.
1494         * modules/tcgetsid (Depends-on): Likewise.
1495         * modules/tmpfile (Depends-on): Likewise.
1496         * modules/trunc (Depends-on): Likewise.
1497         * modules/truncf (Depends-on): Likewise.
1498         * modules/truncl (Depends-on): Likewise.
1499         * modules/uname (Depends-on): Likewise.
1500         * modules/unlink (Depends-on): Likewise.
1501         * modules/unlockpt (Depends-on): Likewise.
1502         * modules/unsetenv (Depends-on): Likewise.
1503         * modules/usleep (Depends-on): Likewise.
1504         * modules/utimensat (Depends-on): Likewise.
1505         * modules/vasprintf (Depends-on): Likewise.
1506         * modules/vdprintf (Depends-on): Likewise.
1507         * modules/vdprintf-posix (Depends-on): Likewise.
1508         * modules/vfprintf-posix (Depends-on): Likewise.
1509         * modules/vprintf-posix (Depends-on): Likewise.
1510         * modules/vsnprintf (Depends-on): Likewise.
1511         * modules/vsnprintf-posix (Depends-on): Likewise.
1512         * modules/vsprintf-posix (Depends-on): Likewise.
1513         * modules/wcrtomb (Depends-on): Likewise.
1514         * modules/wcscasecmp (Depends-on): Likewise.
1515         * modules/wcscspn (Depends-on): Likewise.
1516         * modules/wcsdup (Depends-on): Likewise.
1517         * modules/wcsncasecmp (Depends-on): Likewise.
1518         * modules/wcsnrtombs (Depends-on): Likewise.
1519         * modules/wcspbrk (Depends-on): Likewise.
1520         * modules/wcsrtombs (Depends-on): Likewise.
1521         * modules/wcsspn (Depends-on): Likewise.
1522         * modules/wcsstr (Depends-on): Likewise.
1523         * modules/wcstok (Depends-on): Likewise.
1524         * modules/wcswidth (Depends-on): Likewise.
1525         * modules/wctob (Depends-on): Likewise.
1526         * modules/wctomb (Depends-on): Likewise.
1527         * modules/wctype (Depends-on): Likewise.
1528         * modules/wcwidth (Depends-on): Likewise.
1529         * modules/write (Depends-on): Likewise.
1530
1531 2011-05-03  Bruno Haible  <bruno@clisp.org>
1532
1533         Support for conditional dependencies.
1534         * doc/gnulib.texi (Module description): Document the syntax of
1535         conditional dependencies.
1536         * gnulib-tool: New option --conditional-dependencies.
1537         (func_usage): Document it.
1538         (cond_dependencies): New variable.
1539         (func_get_automake_snippet_conditional,
1540         func_get_automake_snippet_unconditional): New functions, extracted from
1541         func_get_automake_snippet.
1542         (func_get_automake_snippet): Use them.
1543         (sed_first_32_chars): New variable.
1544         (func_module_shellfunc_name): New function.
1545         (func_module_shellvar_name): New function.
1546         (func_module_conditional_name): New function.
1547         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
1548         func_cond_module_condition): New functions.
1549         (func_modules_transitive_closure): Add support for conditional
1550         dependencies.
1551         (func_emit_lib_Makefile_am): For a conditional module, enclose the
1552         conditional automake snippet in an automake conditional.
1553         (func_emit_autoconf_snippets): Emit shell functions that contain the
1554         code for conditional modules.
1555         (func_import, func_create_testdir): Update specification.
1556
1557 2011-05-03  Eric Blake  <eblake@redhat.com>
1558
1559         test-getaddrinfo: report error information
1560         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
1561
1562 2011-05-03  Jim Meyering  <meyering@redhat.com>
1563
1564         bootstrap: avoid build failure when $GZIP is set
1565         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
1566         program name.  If defined at all, it is supposed to list gzip options.
1567         Reported by Alan Curry in http://debbugs.gnu.org/8609
1568
1569 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
1570
1571         readme-release: new module with release instructions
1572         * modules/readme-release: New module.
1573         * top/README-release: New file, from coreutils, grep, diffutils.
1574         * MODULES.html.sh (Support for maintaining and releasing): Add it.
1575
1576 2011-05-02  Eric Blake  <eblake@redhat.com>
1577
1578         fflush: also replace fclose when fixing fflush
1579         * modules/fflush (Depends-on): Add fclose.
1580         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
1581         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
1582         memstreams with no backing fd.
1583         * doc/posix-functions/fclose.texi (fclose): Document the use of
1584         fflush module to fix the bug.
1585         * tests/test-fclose.c (main): Relax test when fclose is used in
1586         isolation.
1587
1588         fclose: add some tests
1589         * modules/fclose-tests: New test module.
1590         * tests/test-fclose.c: New file.
1591         * doc/posix-functions/fclose.texi (fclose): Document the bug.
1592
1593         fclose: reduced dependencies
1594         * modules/fclose (Depends-on): Switch from fflush/fseeko to
1595         simpler lseek.
1596         * lib/fclose.c (rpl_fclose): Likewise.
1597         Reported by Simon Josefsson.
1598
1599         exit: drop remaining clients
1600         * modules/argmatch (Depends-on): Replace exit with stdlib.
1601         * modules/copy-file (Depends-on): Likewise.
1602         * modules/execute (Depends-on): Likewise.
1603         * modules/exitfail (Depends-on): Likewise.
1604         * modules/obstack (Depends-on): Likewise.
1605         * modules/pagealign_alloc (Depends-on): Likewise.
1606         * modules/pipe-filter-gi (Depends-on): Likewise.
1607         * modules/pipe-filter-ii (Depends-on): Likewise.
1608         * modules/savewd (Depends-on): Likewise.
1609         * modules/spawn-pipe (Depends-on): Likewise.
1610         * modules/wait-process (Depends-on): Likewise.
1611         * modules/xsetenv (Depends-on): Likewise.
1612         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
1613         * modules/git-merge-changelog (Depends-on): Likewise.
1614         * modules/long-options (Depends-on): Likewise.
1615         * modules/pt_chown (Depends-on): Likewise.
1616         * modules/sysexits (Depends-on): Likewise.
1617
1618         freading: relax license from LGPLv3+ to LGPLv2+
1619         * modules/freading (License): Relax LGPL version.
1620
1621 2011-05-02  Bruno Haible  <bruno@clisp.org>
1622
1623         fchdir: Remove unused dependencies.
1624         * modules/fchdir (Depends-on): Remove include_next.
1625
1626 2011-05-02  Bruno Haible  <bruno@clisp.org>
1627
1628         gnulib-tool: Refactor.
1629         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
1630         from func_emit_autoconf_snippets.
1631         (func_emit_autoconf_snippets): Use it.
1632
1633 2011-05-02  Simon Josefsson  <simon@josefsson.org>
1634
1635         * NEWS: Document removal of 'exit'.
1636         * modules/exit: Remove file.
1637
1638 2011-05-01  Bruno Haible  <bruno@clisp.org>
1639
1640         Update DEPENDENCIES.
1641         * DEPENDENCIES (gettext): Recommend the newest release.
1642         Reported by Simon Josefsson.
1643
1644 2011-05-01  Bruno Haible  <bruno@clisp.org>
1645
1646         gnulib-tool: Reduce code duplication.
1647         * gnulib-tool (func_emit_autoconf_snippets): New function.
1648         (func_import, func_create_testdir): Use it.
1649
1650 2011-04-30  Eric Blake  <eblake@redhat.com>
1651
1652         fclose: don't fail on non-seekable input stream
1653         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
1654         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
1655         since fflush is allowed to fail in that case.
1656
1657 2011-04-30  Bruno Haible  <bruno@clisp.org>
1658
1659         dup3: cleanup
1660         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
1661
1662 2011-04-30  Bruno Haible  <bruno@clisp.org>
1663
1664         netdb: Make it work in C++ mode.
1665         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
1666         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
1667         module.
1668         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
1669         gl_MODULE_INDICATOR_FOR_TESTS.
1670         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
1671         * modules/netdb-c++-tests: New file.
1672         * tests/test-netdb-c++.cc: New file.
1673
1674 2011-04-30  Bruno Haible  <bruno@clisp.org>
1675
1676         New modules 'vfscanf', 'vscanf'.
1677         * modules/vfscanf: New file.
1678         * modules/vscanf: New file.
1679         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
1680         here.
1681         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
1682         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
1683
1684 2011-04-30  Bruno Haible  <bruno@clisp.org>
1685
1686         passfd: Add comments.
1687         * lib/passfd.c: Add comments about platforms.
1688
1689 2011-04-30  Bruno Haible  <bruno@clisp.org>
1690
1691         sys_uio: Make <sys/uio.h> self-contained.
1692         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
1693         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
1694
1695 2011-04-30  Bruno Haible  <bruno@clisp.org>
1696
1697         sys_socket: Ensure 'struct iovec' definition.
1698         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
1699         <sys/socket.h>.
1700         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
1701
1702 2011-04-30  Bruno Haible  <bruno@clisp.org>
1703
1704         sys_uio: Protect definition of 'struct iovec'.
1705         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
1706         it as a C struct.
1707
1708 2011-04-30  Bruno Haible  <bruno@clisp.org>
1709
1710         manywarnings: fix indentation
1711         * m4/manywarnings.m4: Indent by 2 spaces consistently.
1712
1713 2011-04-30  Pádraig Brady <P@draigBrady.com>
1714
1715         manywarnings: add -Wno-missing-field-initializers if needed.
1716         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
1717         option if it's needed to allow initialization with { 0, }
1718
1719 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
1720
1721         announce-gen: cosmetic improvement
1722         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
1723
1724 2011-04-29  Jim Meyering  <meyering@redhat.com>
1725
1726         vc-list-files: indent with spaces, not TABs
1727         * build-aux/vc-list-files: Convert leading TABs to spaces,
1728         to match the style of most other files in gnulib.
1729
1730         announce-gen: indent with spaces, not TABs
1731         * build-aux/announce-gen: Convert all TABs to spaces, to match
1732         the style of most other files in gnulib.
1733
1734 2011-04-29  Eric Blake  <eblake@redhat.com>
1735
1736         quotearg: avoid uninitialized variable use
1737         * lib/quotearg.c (quoting_options_from_style): Initialize
1738         remaining fields, and ensure that custom styles are only used via
1739         quoting_options rather than quoting_style.
1740
1741 2011-04-29  Jim Meyering  <meyering@redhat.com>
1742
1743         maint.mk: remove unused VC-tag variable
1744         * top/maint.mk (VC-tag): Remove unused variable.
1745
1746 2011-04-29  Bruno Haible  <bruno@clisp.org>
1747
1748         netdb: fix gai_strerror replacements
1749         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
1750         * modules/netdb: Substitute it.
1751
1752 2011-04-29  Jim Meyering  <meyering@redhat.com>
1753
1754         test-getcwd.c: avoid new set-but-not-used warning
1755         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
1756         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
1757         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
1758         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
1759
1760         test-hash.c: avoid a new shadowing warning
1761         * tests/test-hash.c (main): Don't shadow "dup".
1762
1763 2011-04-28  Eric Blake  <eblake@redhat.com>
1764
1765         getaddrinfo: fix gai_strerror signature
1766         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
1767         and work around mingw with UNICODE defined.
1768         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
1769         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
1770         * modules/netdb (Makefile.am): Substitute it.
1771         * lib/netdb.in.h (gai_strerror): Declare replacement.
1772         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
1773         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
1774         the fix.
1775
1776         getsockopt: avoid compiler warning
1777         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
1778         Reported by Matthias Bolte.
1779
1780         tests: drop unused link dependency
1781         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
1782         * modules/dirent-safer-tests (Makefile.am): Likewise.
1783         * modules/fdopendir-tests (Makefile.am): Likewise.
1784         * modules/mkfifoat-tests (Makefile.am): Likewise.
1785         * modules/openat-safer-tests (Makefile.am): Likewise.
1786         * modules/openat-tests (Makefile.am): Likewise.
1787         * modules/readlinkat-tests (Makefile.am): Likewise.
1788         * modules/symlinkat-tests (Makefile.am): Likewise.
1789         * modules/linkat-tests (Makefile.am): Likewise.
1790         (Depends-on): Switch to filenamecat-lgpl.
1791         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
1792         LIBINTL.
1793         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
1794         * tests/test-linkat.c (main): Don't require xalloc.
1795
1796         hash, mgetgroups: drop xalloc dependency
1797         * lib/hash.c (includes): Adjust includes.
1798         * lib/mgetgroups.c (includes): Likewise.
1799         (xgetgroups): Move...
1800         * lib/xgetgroups.c: ...to new file.
1801         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
1802         * modules/xgetgroups: New file, split from...
1803         * modules/mgetgroups: ...here.
1804         (Depends-on): Add xalloc-oversized.
1805         * modules/hash (Depends-on): Likewise.
1806         * modules/hash-tests (Depends-on): Drop xalloc.
1807         (test_hash_LDADD): Drop unused library.
1808         * tests/test-hash.c (main): Break xalloc dependency.
1809         (includes): Drop unused include.
1810
1811         xalloc-oversized: new module
1812         * modules/xalloc-oversized: New module.
1813         * modules/xalloc (Depends-on): Add it.
1814         * lib/xalloc.h (xalloc_oversized): Move...
1815         * lib/xalloc-oversized.h: ...into new file.
1816
1817         utimecmp: drop dependency on xmalloc
1818         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
1819         due to memory pressure.
1820         * modules/utimecmp (Depends-on): Drop xalloc.
1821
1822 2011-04-27  Eric Blake  <eblake@redhat.com>
1823
1824         getcwd: fix mingw bugs
1825         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
1826         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
1827         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
1828
1829 2011-04-27  Bruno Haible  <bruno@clisp.org>
1830
1831         mkstemps: Ensure declaration on MacOS X 10.5.
1832         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
1833         * doc/glibc-functions/mkstemps.texi: Document header file problem on
1834         MacOS X.
1835
1836 2011-04-27  Bruno Haible  <bruno@clisp.org>
1837
1838         mkstemp: More documentation.
1839         * doc/posix-functions/mkstemp.texi: Document header file problem on
1840         MacOS X.
1841
1842 2011-04-27  Bruno Haible  <bruno@clisp.org>
1843
1844         mkstemp: Tweak configure message when cross-compiling.
1845         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
1846         result as a guess.
1847
1848 2011-04-27  Bruno Haible  <bruno@clisp.org>
1849
1850         clean-temp: Clarify what it does.
1851         * lib/clean-temp.h: Add more comments.
1852         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
1853         module.
1854         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
1855         * doc/glibc-functions/mkstemps.texi: Likewise.
1856         * doc/glibc-functions/mkostemps.texi: Likewise.
1857
1858 2011-04-27  Eric Blake  <eblake@redhat.com>
1859
1860         fchdir: avoid extra chdir and fix test
1861         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
1862         getcwd-lgpl.
1863         * lib/fchdir.c (get_name): Any absolute name will do; it does not
1864         have to be canonical.
1865         (canonicalize_file_name): Drop unused macro.
1866         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
1867
1868         filenamecat-lgpl: fix licence
1869         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
1870         when it was first created.
1871
1872         linkat, renameat: add missing dependency
1873         * modules/linkat (Depends-on): Require getcwd-lgpl.
1874         * modules/renameat (Depends-on): Likewise.
1875
1876         tests: reduce dependencies
1877         * tests/test-linkat.c (main): Use lighter-weight getcwd.
1878         * tests/test-renameat.c (main): Likewise.
1879         * modules/linkat-tests (Depends-on): Relax dependency.
1880         * modules/renameat-tests (Depends-on): Likewise.
1881         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
1882         dependency explicit.
1883
1884         save-cwd: reduce default dependency
1885         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
1886         * lib/save-cwd.c: Update comments.
1887         * NEWS: Document the semantic change.
1888
1889         getcwd: enhance tests
1890         * tests/test-getcwd-lgpl.c: New file, taken from...
1891         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
1892         repeat long path stress tests from m4 probe.
1893         * modules/getcwd-lgpl-tests: New module.
1894         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
1895         * m4/getcwd-abort-bug.m4: Update comment.
1896         * m4/getcwd-path-max.m4: Likewise.
1897
1898         getcwd-lgpl: new module
1899         * modules/getcwd-lgpl: New module.
1900         * lib/getcwd-lgpl.c: New file.
1901         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1902         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1903         * modules/getcwd (configure.ac): Set C witness.
1904         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
1905
1906         getcwd: tweak comments
1907         * m4/getcwd-abort-bug.m4: Fix comments.
1908         * m4/getcwd-path-max.m4: Likewise.
1909         * m4/getcwd.m4: Likewise.
1910
1911 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1912         and Eric Blake  <eblake@redhat.com>
1913
1914         mkstemp: replace if system version uses wrong permissions
1915         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
1916         read/write mode bits set in file created by mkstemp.
1917         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
1918
1919 2011-04-27  Eric Blake  <eblake@redhat.com>
1920
1921         passfd: avoid compiler warning
1922         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
1923         Reported by Laine Stump.
1924
1925 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
1926
1927         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
1928         required by the NetBSD (and perhaps other 4.4BSD derived) join.
1929
1930 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1931         and Eric Blake  <eblake@redhat.com>
1932
1933         mkstemp: mention clean-temp module
1934         * lib/mkstemp.c: Add comment.
1935         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
1936
1937 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1938
1939         inttypes: also provide default values for 32-bit tests
1940         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
1941         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
1942
1943 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1944
1945         strtoumax: remove dependency on strtoimax
1946         This is like the strtoull change of yesterday.
1947         * modules/strtoumax (Files): Add lib/strtoimax.c.
1948         (Depends-on): Remove strtoimax and add verify.
1949
1950         inttypes-incomplete: new module
1951         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
1952         all but the PRI* and SCN* parts of gl_INTTYPES_H.
1953         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
1954         of gl_INTTYPES_H.
1955         (gl_INTTYPES_H): Rewrite in terms of these new macros.
1956         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
1957         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
1958         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
1959         * modules/strtoumax, modules/xstrtol (Depends-on):
1960         Depend on inttypes-incomplete, not inttypes.
1961         * modules/inttypes-incomplete: New module, containing the contents
1962         of the old modules/inttypes module, except that the Files: section
1963         omits m4/inttypes-pri.m4, and the configure.ac section invokes
1964         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
1965         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
1966         (Depends-on): Depend only on inttypes-incomplete.
1967         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
1968
1969         inttypes: omit now-redundant strtoimax and strtoumax work
1970         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
1971         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
1972
1973         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
1974         This supports apps that need pointers to strtoimax and strtoumax,
1975         and ports to HP-UX 11.00 64.bit, which has macros that expand to
1976         nonexistent functions.  See
1977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
1978         et seq.
1979         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
1980         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
1981         a macro.
1982         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1983
1984 2011-04-25  Simon Josefsson  <simon@josefsson.org>
1985
1986         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
1987
1988 2011-04-25  Bruno Haible  <bruno@clisp.org>
1989
1990         strtol, strtoul: Mark modules as obsolete.
1991         * modules/strtol (Status, Notice): New sections.
1992         * modules/strtoul (Status, Notice): New sections.
1993
1994 2011-04-25  Bruno Haible  <bruno@clisp.org>
1995
1996         strtod: Remove check for strtod, unless supporting old platforms.
1997         * modules/strtod-obsolete: New file.
1998         * m4/strtod-obsolete.m4: New file.
1999         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
2000         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
2001         * modules/strtod (Depends-on): Add strtod-obsolete.
2002         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
2003
2004 2011-04-25  Bruno Haible  <bruno@clisp.org>
2005
2006         strcase: Make module obsolete.
2007         * modules/strcase (Status, Notice): New sections.
2008
2009 2011-04-25  Bruno Haible  <bruno@clisp.org>
2010
2011         dup2: Remove check for dup2, unless supporting old obsolete platforms.
2012         * modules/dup2-obsolete: New file.
2013         * m4/dup2-obsolete.m4: New file.
2014         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
2015         gl_FUNC_DUP2_OBSOLETE is not also defined.
2016         * modules/dup2 (Depends-on): Add dup2-obsolete.
2017         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
2018
2019 2011-04-25  Bruno Haible  <bruno@clisp.org>
2020
2021         strnlen: Avoid memchr related link error on old obsolete platforms.
2022         * modules/memchr-obsolete: New file.
2023         * m4/memchr-obsolete.m4: New file.
2024         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
2025         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
2026         * modules/memchr (Depends-on): Add memchr-obsolete.
2027         * modules/strnlen (Depends-on): Likewise.
2028         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
2029
2030 2011-04-25  Jim Meyering  <meyering@redhat.com>
2031
2032         maint.mk: makefile_at_at_check extend and clean up
2033         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
2034         in addition to */Makefile.am.
2035         Exempt legitimate uses of @VAR@ notation, e.g.,
2036         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
2037         Remove obsolete coreutils-specific comment.
2038         Prompted by discussion here:
2039         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
2040
2041 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
2042
2043         strtoul: remove dependency on strtol
2044         This is so that 'configure' need not check for strtol merely because
2045         the application needs strtoul.
2046         * modules/strtoul (Files): Add lib/strtol.c.
2047         (Depends-on): Remove strtol.
2048
2049         strtoull: remove dependency on strtoul
2050         This is like the strtoll change.
2051         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
2052         (Depends-on): Remove strtoul.
2053
2054         strtoll: remove dependency on strtol
2055         This is so that 'configure' need not check for strtol merely because
2056         the application needs strtoll.
2057         * modules/strtoll (Files): Add lib/strtol.c.
2058         (Depends-on): Remove strtol.
2059
2060 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2061
2062         inttypes: Move some configure check to module 'imaxdiv'.
2063         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
2064         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
2065         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
2066
2067 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2068
2069         inttypes: Move some configure check to module 'imaxabs'.
2070         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
2071         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
2072         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
2073
2074 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2075
2076         inttypes: Remove configure tests that are not needed since 2009-12-31.
2077         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
2078         gl_cv_header_working_inttypes_h.
2079
2080 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2081
2082         * modules/strnlen (Depends-on): Remove memchr.
2083         The strnlen implementation doesn't need the memchr module's fixes; see
2084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
2085
2086         strtol: remove dependency on wchar
2087         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
2088         * modules/strtol (Depends-on): Remove wchar.
2089
2090 2011-04-21  Eric Blake  <eblake@redhat.com>
2091
2092         passfd: fix test regression on Linux
2093         * modules/passfd-tests (configure.ac): Correct socketpair check.
2094
2095         passfd: speed up configure and drop unused code
2096         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
2097         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
2098         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
2099         Instead of probing at configure for unix_scm_rights_bsd44_way,
2100         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
2101         check to a struct member probe.
2102         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
2103         (sendfd, recvfd): Update preprocessor checks.
2104         * modules/passfd (Files): Reflect rename, and drop unused file.
2105         (Depends-on): Drop unused dependency.
2106
2107         passfd: allow compilation on mingw
2108         * modules/sys_socket (Depends-on): Add sys_uio.
2109         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
2110         iovec and a minimal struct msghdr.
2111         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
2112         * tests/test-sys_socket.c (main): Enhance test.
2113         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
2114         guaranteed to provide what we need.
2115         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
2116         * modules/passfd-tests (Depends-on): Add sys_wait.
2117         * tests/test-passfd.c (main): Skip test on mingw, for now.
2118         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
2119         partial 'struct msghdr' implementation.
2120
2121         sys_uio: new module
2122         * modules/sys_uio: New module.
2123         * modules/sys_uio-tests: Likewise.
2124         * lib/sys_uio.in.h: New file.
2125         * m4/sys_uio_h.m4: Likewise.
2126         * tests/test-sys_uio.c: Likewise.
2127         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
2128         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
2129
2130 2011-04-20  Jim Meyering  <meyering@redhat.com>
2131
2132         useless-if-before-free: avoid false-positive
2133         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
2134         disjunct so that it too requires a terminating ";".  Without that,
2135         this script would identify as useless one statement from gcc that
2136         was not:
2137           if (aligned_ptr)
2138             free (((void **) aligned_ptr) [-1]);
2139
2140 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
2141
2142         doc: update users.txt.
2143         * users.txt: Add barcode.
2144
2145 2011-04-19  Bruno Haible  <bruno@clisp.org>
2146
2147         ioctl: Remove link dependency on native Windows.
2148         * lib/fd-hook.h: Renamed from lib/close-hook.h.
2149         (gl_close_fn, gl_ioctl_fn): New types.
2150         (struct fd_hook): Renamed from struct close_hook. Change type of
2151         private_close_fn field. Add private_ioctl_fn field.
2152         (close_hook_fn): Add parameter for primary close method.
2153         (execute_close_hooks, execute_all_close_hooks): Likewise.
2154         (ioctl_hook_fn): New type.
2155         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
2156         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2157         argument.
2158         (unregister_fd_hook): Renamed from unregister_close_hook.
2159         * lib/fd-hook.c: Renamed from lib/close-hook.c.
2160         Don't include <unistd.h>.
2161         (close): Remove undef.
2162         (anchor): Update.
2163         (execute_close_hooks): Add argument for primary close method.
2164         (execute_all_close_hooks): Likewise.
2165         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
2166         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2167         argument. Allow each argument to be NULL.
2168         (unregister_fd_hook): Renamed from unregister_close_hook.
2169         * lib/close.c (rpl_close): Pass 'close' function pointer to
2170         execute_all_close_hooks.
2171         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
2172         (primary_ioctl): New function.
2173         (ioctl): Don't call ioctlsocket here. Instead, call
2174         execute_all_ioctl_hooks.
2175         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
2176         close method.
2177         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
2178         (fd_sockets_hook): Renamed from close_sockets_hook.
2179         (gl_sockets_startup, gl_sockets_cleanup): Update.
2180         * modules/fd-hook: Renamed from modules/close-hook. Update.
2181         * modules/close (Depends-on): Add fd-hook, remove close-hook.
2182         * modules/sockets (Depends-on): Likewise.
2183         * modules/ioctl (Depends-on): Add fd-hook.
2184         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
2185         GNULIB_SOCKET.
2186
2187 2011-04-19  Bruno Haible  <bruno@clisp.org>
2188
2189         Move the support of O_NONBLOCK in open() to the 'open' module.
2190         * modules/nonblocking (Depends-on): Remove 'open'.
2191         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
2192         gl_cv_have_open_O_NONBLOCK.
2193         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
2194         O_NONBLOCK support.
2195         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
2196
2197 2011-04-17  Bruno Haible  <bruno@clisp.org>
2198
2199         pipe2: Simplify code.
2200         * lib/pipe2.c (pipe2): Reduce code duplication.
2201
2202 2011-04-17  Bruno Haible  <bruno@clisp.org>
2203
2204         nonblocking: Add comment.
2205         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
2206
2207 2011-04-17  Bruno Haible  <bruno@clisp.org>
2208
2209         nonblocking: Add tests for sockets.
2210         * tests/test-nonblocking-socket.sh: New file.
2211         * tests/test-nonblocking-socket-main.c: New file.
2212         * tests/test-nonblocking-socket-child.c: New file.
2213         * tests/test-nonblocking-socket.h: New file.
2214         * tests/socket-server.h: New file.
2215         * tests/socket-client.h: New file.
2216         * modules/nonblocking-socket-tests: New file.
2217         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
2218
2219 2011-04-17  Bruno Haible  <bruno@clisp.org>
2220
2221         nonblocking: Add tests for pipes.
2222         * tests/test-nonblocking-pipe.sh: New file.
2223         * tests/test-nonblocking-pipe-main.c: New file.
2224         * tests/test-nonblocking-pipe-child.c: New file.
2225         * tests/test-nonblocking-pipe.h: New file.
2226         * tests/test-nonblocking-writer.h: New file.
2227         * tests/test-nonblocking-reader.h: New file.
2228         * tests/test-nonblocking-misc.h: New file.
2229         * modules/nonblocking-pipe-tests: New file.
2230         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
2231
2232 2011-04-16  Bruno Haible  <bruno@clisp.org>
2233
2234         gettext: Clarify the needed programmer actions.
2235         * modules/gettext (Notice): New field.
2236         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2237
2238 2011-04-16  Bruno Haible  <bruno@clisp.org>
2239
2240         strchrnul: Tweak last commit.
2241         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
2242         bug.
2243         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
2244         as in _GL_FUNCDECL_SYS.
2245         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
2246         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
2247
2248 2011-04-15  Eric Blake  <eblake@redhat.com>
2249
2250         strchrnul: work around cygwin bug
2251         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
2252         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
2253         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
2254         * modules/string (Makefile.am): Substitute it.
2255         * lib/string.in.h (strchrnul): Use it.
2256
2257 2011-04-15  Bruno Haible  <bruno@clisp.org>
2258
2259         Don't require lib/stdio-write.c when only module 'stdio' is used.
2260         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
2261         invocation.
2262         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
2263
2264 2011-04-14  Bruno Haible  <bruno@clisp.org>
2265
2266         Support non-blocking pipe I/O in read() on native Windows.
2267         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
2268         (read): New declaration.
2269         * lib/read.c: New file.
2270         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
2271         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
2272         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
2273         vscanf): New declarations.
2274         * lib/stdio-read.c: New file.
2275         * m4/read.m4: New file.
2276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
2277         REPLACE_READ.
2278         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
2279         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2280         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
2281         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
2282         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
2283         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2284         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2285         * modules/read: New file.
2286         * modules/nonblocking (Files): Add lib/stdio-read.c.
2287         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
2288         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
2289         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2290         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2291         * modules/pread (Depends-on): Add read.
2292         * modules/safe-read (Depends-on): Likewise.
2293         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
2294         gets, scanf, vfscanf, vscanf): Verify signatures.
2295         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
2296         problem with non-blocking pipes.
2297         * doc/posix-functions/fgetc.texi: Likewise.
2298         * doc/posix-functions/fgets.texi: Likewise.
2299         * doc/posix-functions/fread.texi: Likewise.
2300         * doc/posix-functions/fscanf.texi: Likewise.
2301         * doc/posix-functions/getc.texi: Likewise.
2302         * doc/posix-functions/getchar.texi: Likewise.
2303         * doc/posix-functions/gets.texi: Likewise.
2304         * doc/posix-functions/scanf.texi: Likewise.
2305         * doc/posix-functions/vfscanf.texi: Likewise.
2306         * doc/posix-functions/vscanf.texi: Likewise.
2307
2308 2011-04-14  Bruno Haible  <bruno@clisp.org>
2309
2310         Support non-blocking pipe I/O in write() on native Windows.
2311         * lib/write.c (rpl_write): Split a write request that failed merely
2312         because the byte count was larger than the pipe buffer's size.
2313         * doc/posix-functions/write.texi: Mention the problem with large byte
2314         counts.
2315
2316 2011-04-14  Bruno Haible  <bruno@clisp.org>
2317
2318         wchar: Ensure that wchar_t gets defined on uClibc.
2319         * lib/wchar.in.h: On uClibc, include <stddef.h>.
2320         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
2321
2322 2011-04-13  Bruno Haible  <bruno@clisp.org>
2323
2324         safe-write, full-read: Avoid unnecessary compilation units.
2325         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
2326         (Depends-on): Remove safe-read. Add ssize_t.
2327         * modules/full-read (Files): Add lib/full-write.c.
2328         (Depends-on): Add full-write.
2329
2330 2011-04-13  Bruno Haible  <bruno@clisp.org>
2331
2332         Support non-blocking pipe I/O and SIGPIPE in pwrite().
2333         * modules/pwrite (Depends-on): Add 'write'.
2334
2335 2011-04-13  Bruno Haible  <bruno@clisp.org>
2336
2337         Support non-blocking pipe I/O in write() on native Windows.
2338         * lib/unistd.in.h (write): Enable replacement also if
2339         GNULIB_UNISTD_H_NONBLOCKING is 1.
2340         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
2341         (rpl_write): When failing to write on a non-blocking pipe, change
2342         errno from ENOSPC to EAGAIN.
2343         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
2344         putchar, puts, vfprintf, vprintf): Enable replacement also if
2345         GNULIB_STDIO_H_NONBLOCKING is 1.
2346         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
2347         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
2348         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
2349         CALL_WITH_SIGPIPE_EMULATION.
2350         (CALL_WITH_SIGPIPE_EMULATION): Use them.
2351         * m4/nonblocking.m4: New file.
2352         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
2353         for non-blocking I/O support.
2354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2355         GNULIB_UNISTD_H_NONBLOCKING.
2356         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
2357         required for non-blocking I/O support.
2358         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
2359         * modules/nonblocking (Files): Add m4/nonblocking.m4,
2360         lib/stdio-write.c, m4/asm-underscore.m4.
2361         (Depends-on): Add stdio, unistd.
2362         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
2363         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
2364         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
2365         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
2366         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
2367         problem with non-blocking pipes.
2368         * doc/posix-functions/fputc.texi: Likewise.
2369         * doc/posix-functions/fputs.texi: Likewise.
2370         * doc/posix-functions/fwrite.texi: Likewise.
2371         * doc/posix-functions/printf.texi: Likewise.
2372         * doc/posix-functions/putc.texi: Likewise.
2373         * doc/posix-functions/putchar.texi: Likewise.
2374         * doc/posix-functions/puts.texi: Likewise.
2375         * doc/posix-functions/vfprintf.texi: Likewise.
2376         * doc/posix-functions/vprintf.texi: Likewise.
2377         * doc/posix-functions/write.texi: Likewise.
2378
2379 2011-04-10  Jim Meyering  <meyering@redhat.com>
2380
2381         maint.mk: prohibit doubled words
2382         Detect them also when they're separated by a newline.
2383         There are 3 ways to customize it:
2384           - disable the test on a per file basis, as usual with rules using
2385             $(VC_LIST_EXCEPT)
2386           - replace the default doubled-word-selecting regexp (affects all files)
2387           - ignore a particular file-vs-doubled-word match
2388         I nearly used that last one to ignore the "is is" match in
2389         coreutils' NEWS file, since the text was "ls -is is ..."
2390         To do that, I would have added this line to cfg.mk:
2391           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
2392         but it would have ignored any "is is" match in NEWS.
2393         Low probability, but still...
2394         Instead, I changed the text, slightly:
2395           -  ls -is is now consistent with ls -lis in ignoring values returned
2396           +  "ls -is" is now consistent with ls -lis in ignoring values returned
2397         * top/maint.mk (prohibit_double_word_RE_): Provide default.
2398         (prohibit_doubled_word_): Define.
2399         (sc_prohibit_doubled_word): New rule.
2400         (sc_prohibit_the_the): Remove.  Subsumed by the above.
2401
2402 2011-04-10  Jim Meyering  <meyering@redhat.com>
2403
2404         maint: fix doubled-word typo in comment
2405         * m4/gethostname.m4: s/is is/it is/
2406         * m4/getdomainname.m4: Likewise.
2407
2408 2011-04-10  Jim Meyering  <meyering@redhat.com>
2409
2410         maint: remove doubled word: s/it it/it/
2411         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
2412
2413 2011-04-10  Jim Meyering  <meyering@redhat.com>
2414
2415         maint.mk: remove useless semicolon and backslash
2416         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
2417         semicolon and backslash.
2418
2419 2011-04-10  Bruno Haible  <bruno@clisp.org>
2420
2421         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
2422         * modules/stdint-tests (Depends-on): Add wchar.
2423
2424 2011-04-10  Jim Meyering  <meyering@redhat.com>
2425
2426         maint: remove doubled words in comments, e.g., s/a a/a/
2427         * lib/strptime.c (day_of_the_week): s/the the/the/
2428         * tests/test-chown.h (test_chown): s/a a/a/
2429
2430         test-chown.h: correct a cast
2431         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
2432         when the destination is a stat.st_gid.
2433
2434 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
2435
2436         getaddrinfo: Fix test for sa_len member.
2437         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
2438         include <sys/types.h> before <sys/socket.h>.
2439
2440 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
2441
2442         maint: change "can not" to "cannot"
2443         * doc/posix-functions/iconv.texi (iconv): This one crossed line
2444         boundaries.
2445
2446 2011-04-09  Jim Meyering  <meyering@redhat.com>
2447
2448         maint: change "a a" to "a"
2449         * tests/test-lchown.h (test_lchown): s/a a/a/
2450
2451         maint.mk: prohibit \<the the\>
2452         * top/maint.mk (sc_prohibit_the_the): New rule.
2453
2454         maint: fix "the the" in comment
2455         * lib/count-one-bits.h: s/the the/the/
2456
2457         maint: change "can not" to "cannot"
2458         But do not change the occurrences in maintain.texi or in
2459         build-aux/po/Makefile.in.in, which I presume comes from gettext.
2460         * doc/gnulib-tool.texi: s/can not/cannot/
2461         * doc/posix-functions/accept.texi (accept): Likewise.
2462         * doc/posix-functions/socket.texi (socket): Likewise.
2463         * lib/mbrtowc.c: Likewise.
2464
2465         maint.mk: prohibit use of "can not"
2466         * top/maint.mk (sc_prohibit_can_not): New rule.
2467         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
2468
2469 2011-04-09  Bruno Haible  <bruno@clisp.org>
2470
2471         careadlinkat: Guard against misuse of careadlinkatcwd.
2472         * lib/careadlinkat.c: Include <stdlib.h>.
2473         (careadlinkatcwd): Check that the fd argument is as expected.
2474
2475 2011-04-09  Bruno Haible  <bruno@clisp.org>
2476
2477         careadlinkat: Use common coding style.
2478         * lib/careadlinkat.c: Move gnulib includes after system includes.
2479
2480 2011-04-09  Bruno Haible  <bruno@clisp.org>
2481
2482         careadlinkat: Clarify specification.
2483         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
2484         (careadlinkatcwd): Add comment.
2485         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
2486
2487 2011-04-09  Bruno Haible  <bruno@clisp.org>
2488
2489         areadlinkat: Avoid link error on many platforms.
2490         * modules/areadlinkat (Depends-on): Add areadlink.
2491
2492 2011-04-09  Bruno Haible  <bruno@clisp.org>
2493
2494         allocator, careadlinkat: Fix double-inclusion guard.
2495         * lib/allocator.h: Fix double-inclusion guard.
2496         * lib/careadlinkat.h: Likewise.
2497
2498 2011-04-09  Bruno Haible  <bruno@clisp.org>
2499
2500         relocatable-prog-wrapper: Update after module 'areadlink' changed.
2501         * lib/relocwrapper.c: Update dependencies hierarchy.
2502         * build-aux/install-reloc: Update list of files to be compiled.
2503         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
2504         lib/allocator.[hc].
2505
2506 2011-04-08  Eric Blake  <eblake@redhat.com>
2507
2508         strftime: silence gnulib-tool warning
2509         * modules/strftime-tests (Depends-on): Drop automatic dependency.
2510
2511 2011-04-08  Bruno Haible  <bruno@clisp.org>
2512
2513         verify: Fix syntax error with GCC 4.6 in C++ mode.
2514         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
2515         (HAVE_STATIC_ASSERT): New macro.
2516         (verify_true, verify): Use 'static_assert' if it is supported and
2517         '_Static_assert' is not supported.
2518
2519 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2520
2521         allocator: New module.
2522         * modules/allocator, lib/allocator.c: New files.
2523         * lib/allocator.h (stdlib_allocator): New decl.
2524         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
2525         Remove.  Do not include <stdlib.h>.
2526         (careadlinkat): Use stdlib_allocator instead of rolling our own.
2527         * modules/careadlinkat (Files): Remove lib/allocator.h.
2528         (Depends-on): Add allocator.
2529
2530         stdlib: let modules use system malloc, realloc
2531         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
2532         if !_GL_USE_STDLIB_ALLOC.
2533         (malloc, realloc): Limit this change to a smaller scope.
2534
2535         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
2536         (malloc, realloc): Don't #undef; no longer needed.
2537         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2538         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2539         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2540         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2541         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2542         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2543         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2544         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2545
2546         careadlinkat: rename members to avoid problem
2547         * lib/allocator.h (struct allocator): Rename members from
2548         malloc/realloc to allocate/reallocate, to avoid problems if malloc
2549         and realloc are #define'd.  Reported by Eric Blake in
2550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
2551         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
2552
2553 2011-04-08  Eric Blake  <eblake@redhat.com>
2554
2555         nonblocking: reduce dependency
2556         * tests/test-nonblocking.c: Only test sockets when in use.
2557         * modules/nonblocking-tests (Depends-on): Drop socket.
2558         (Makefile.am): Link even if sockets are not present.
2559         * modules/pipe2-tests (Makefile.am): Likewise.
2560         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
2561
2562         pipe2: fix O_NONBLOCK support on mingw
2563         * modules/pipe2 (Depends-on): Add nonblocking.
2564         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
2565         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
2566         * tests/test-nonblocking.c (main): Likewise.
2567         * modules/pipe2-tests (Makefile.am): Avoid link failure.
2568
2569         fcntl-h: fix O_ACCMODE on cygwin
2570         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
2571         * lib/fcntl.in.h (O_ACCMODE): Fix it.
2572
2573         pipe-filter: drop O_NONBLOCK workarounds
2574         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
2575         * modules/pipe-filter-ii (Depends-on): Likewise.
2576         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
2577
2578         nonblocking: provide O_NONBLOCK for mingw
2579         * modules/nonblocking (Depends-on): Add open.
2580         (configure.ac): Set new witness macro.
2581         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
2582         * modules/fcntl-h (Makefile.am): Substitute it.
2583         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
2584         nonblocking module is in use.
2585         * lib/nonblocking.c: Adjust portability test.
2586         * lib/open.c (open): Don't let native open see gnulib flag.
2587         * tests/test-fcntl-h.c (main): Enhance test.
2588         * tests/test-open.h (test_open): Likewise.
2589         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
2590
2591         careadlinkat: fix compilation error on mingw
2592         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
2593         within struct allocator.
2594
2595 2011-04-06  Eric Blake  <eblake@redhat.com>
2596
2597         binary-io: relicense under LGPLv2+
2598         * modules/binary-io (License): Relax to LGPLv2+.
2599         Requested for libvirt, and required by pipe2.
2600
2601 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2602
2603         verify: use _Static_assert if available
2604         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
2605         (verify_true, verify): Use it if available.  This generates better
2606         diagnostics with GCC 4.6.0 and later.
2607
2608 2011-04-05  Bruno Haible  <bruno@clisp.org>
2609
2610         Remove leftover generated .h files after config.status changed.
2611
2612         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
2613         GL_GENERATE_ALLOCA_H.
2614         * modules/alloca-opt (Makefile.am): Remove alloca.h if
2615         GL_GENERATE_ALLOCA_H evaluates to false.
2616
2617         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
2618         GL_GENERATE_ARGZ_H.
2619         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
2620         evaluates to false.
2621
2622         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
2623         GL_GENERATE_BYTESWAP_H.
2624         * modules/byteswap (Makefile.am): Remove byteswap.h if
2625         GL_GENERATE_BYTESWAP_H evaluates to false.
2626
2627         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
2628         GL_GENERATE_ERRNO_H.
2629         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
2630         evaluates to false.
2631
2632         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
2633         GL_GENERATE_FLOAT_H.
2634         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
2635         evaluates to false.
2636
2637         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
2638         GL_GENERATE_FNMATCH_H.
2639         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
2640         GL_GENERATE_FNMATCH_H evaluates to false.
2641
2642         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
2643         GL_GENERATE_GLOB_H.
2644         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
2645         evaluates to false.
2646
2647         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
2648         automake conditional GL_GENERATE_ICONV_H.
2649         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
2650         evaluates to false.
2651
2652         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
2653         GL_GENERATE_NETINET_IN_H.
2654         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
2655         GL_GENERATE_NETINET_IN_H evaluates to false.
2656
2657         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
2658         conditional GL_GENERATE_PTHREAD_H.
2659         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
2660         * modules/pthread (Makefile.am): Remove pthread.h if
2661         GL_GENERATE_PTHREAD_H evaluates to false.
2662
2663         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
2664         GL_GENERATE_SCHED_H.
2665         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
2666         evaluates to false.
2667
2668         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
2669         conditional GL_GENERATE_SELINUX_CONTEXT_H.
2670         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
2671         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
2672
2673         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
2674         GL_GENERATE_STDARG_H.
2675         * modules/stdarg (Makefile.am): Remove stdarg.h if
2676         GL_GENERATE_STDARG_H evaluates to false.
2677
2678         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
2679         GL_GENERATE_STDBOOL_H.
2680         * modules/stdbool (Makefile.am): Remove stdbool.h if
2681         GL_GENERATE_STDBOOL_H evaluates to false.
2682
2683         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
2684         conditional GL_GENERATE_STDDEF_H.
2685         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
2686         * modules/stddef (Makefile.am): Remove stddef.h if
2687         GL_GENERATE_STDDEF_H evaluates to false.
2688
2689         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
2690         GL_GENERATE_STDINT_H.
2691         * modules/stdint (Makefile.am): Remove stdint.h if
2692         GL_GENERATE_STDINT_H evaluates to false.
2693
2694         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
2695         GL_GENERATE_SYSEXITS_H.
2696         * modules/sysexits (Makefile.am): Remove sysexits.h if
2697         GL_GENERATE_SYSEXITS_H evaluates to false.
2698
2699         Reported by Karl Berry and Ralf Wildenhues.
2700
2701 2011-04-05  Bruno Haible  <bruno@clisp.org>
2702
2703         Ensure to rebuild generated .h files when config.status has changed.
2704         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
2705         config.status.
2706         * modules/ctype (Makefile.am): Likewise.
2707         * modules/dirent (Makefile.am): Likewise.
2708         * modules/errno (Makefile.am): Likewise.
2709         * modules/fcntl-h (Makefile.am): Likewise.
2710         * modules/float (Makefile.am): Likewise.
2711         * modules/getopt-posix (Makefile.am): Likewise.
2712         * modules/glob (Makefile.am): Likewise.
2713         * modules/iconv-h (Makefile.am): Likewise.
2714         * modules/inttypes (Makefile.am): Likewise.
2715         * modules/langinfo (Makefile.am): Likewise.
2716         * modules/locale (Makefile.am): Likewise.
2717         * modules/math (Makefile.am): Likewise.
2718         * modules/netdb (Makefile.am): Likewise.
2719         * modules/netinet_in (Makefile.am): Likewise.
2720         * modules/poll-h (Makefile.am): Likewise.
2721         * modules/pthread (Makefile.am): Likewise.
2722         * modules/pty (Makefile.am): Likewise.
2723         * modules/sched (Makefile.am): Likewise.
2724         * modules/search (Makefile.am): Likewise.
2725         * modules/selinux-h (Makefile.am): Likewise.
2726         * modules/signal (Makefile.am): Likewise.
2727         * modules/spawn (Makefile.am): Likewise.
2728         * modules/stdarg (Makefile.am): Likewise.
2729         * modules/stdbool (Makefile.am): Likewise.
2730         * modules/stddef (Makefile.am): Likewise.
2731         * modules/stdint (Makefile.am): Likewise.
2732         * modules/stdio (Makefile.am): Likewise.
2733         * modules/stdlib (Makefile.am): Likewise.
2734         * modules/string (Makefile.am): Likewise.
2735         * modules/strings (Makefile.am): Likewise.
2736         * modules/sys_file (Makefile.am): Likewise.
2737         * modules/sys_ioctl (Makefile.am): Likewise.
2738         * modules/sys_select (Makefile.am): Likewise.
2739         * modules/sys_socket (Makefile.am): Likewise.
2740         * modules/sys_stat (Makefile.am): Likewise.
2741         * modules/sys_time (Makefile.am): Likewise.
2742         * modules/sys_times (Makefile.am): Likewise.
2743         * modules/sys_utsname (Makefile.am): Likewise.
2744         * modules/sys_wait (Makefile.am): Likewise.
2745         * modules/sysexits (Makefile.am): Likewise.
2746         * modules/termios (Makefile.am): Likewise.
2747         * modules/time (Makefile.am): Likewise.
2748         * modules/unistd (Makefile.am): Likewise.
2749         * modules/wchar (Makefile.am): Likewise.
2750         * modules/wctype-h (Makefile.am): Likewise.
2751         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
2752
2753 2011-04-05  Bruno Haible  <bruno@clisp.org>
2754
2755         pipe2: Relicense under LGPLv2+.
2756         * modules/pipe2 (License): Change to LGPLv2+.
2757         Requested by Eric Blake, for libvirt.
2758
2759 2011-04-05  Bruce Korb  <bkorb@gnu.org>
2760
2761         bootstrap: compute gnulib_extra_files after updating build_aux
2762         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
2763         change build_aux or also supply gnulib_extra_files.  Handle correctly.
2764
2765 2011-04-05  Eric Blake  <eblake@redhat.com>
2766
2767         bootstrap: preserve git whitelist item sorting
2768         * build-aux/bootstrap (sort_patterns): New function.
2769         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
2770
2771 2011-04-05  Simon Josefsson  <simon@josefsson.org>
2772
2773         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
2774         sc_space_tab check.
2775
2776 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
2777
2778         areadlink, areadlinkat: rewrite in terms of careadlinkat
2779         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
2780         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
2781         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
2782         (malloc, realloc): Remove #undefs.
2783         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
2784         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
2785         readlink, ssize_t, stdint, unistd.
2786         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
2787         areadlink, stdint.
2788
2789         careadlinkat: new module
2790         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
2791         * modules/careadlinkat: New files, written by me with
2792         a review and feedback from Ben Pfaff in
2793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
2794
2795 2011-04-01  Bruno Haible  <bruno@clisp.org>
2796
2797         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
2798         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
2799         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
2800         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2801         Reported by Bruce Korb <bruce.korb@gmail.com>.
2802
2803 2011-04-01  Bruno Haible  <bruno@clisp.org>
2804
2805         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
2806         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
2807         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
2808         * modules/wcpcpy (Depends-on): Add extensions.
2809         * modules/wcpncpy (Depends-on): Likewise.
2810         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
2811         systems.
2812         * doc/posix-functions/wcpncpy.texi: Likewise.
2813         * doc/posix-functions/wcwidth.texi: Likewise.
2814
2815 2011-03-31  Eric Blake  <eblake@redhat.com>
2816
2817         nonblocking: fix mingw test failures
2818         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
2819         non-blocking flag on regular file.
2820         (get_nonblocking_flag): Set errno on invalid fd.
2821         * tests/test-nonblocking.c (main): Avoid test failure on
2822         directories if fchdir is not active.
2823         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
2824
2825 2011-03-31  Bruno Haible  <bruno@clisp.org>
2826
2827         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
2828         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
2829         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
2830         Reported by Simon Josefsson <simon@josefsson.org>.
2831
2832 2011-03-31  Bruno Haible  <bruno@clisp.org>
2833         and Eric Blake  <eblake@redhat.com>
2834
2835         nonblocking: new module
2836         * modules/nonblocking: New module.
2837         * modules/nonblocking-tests: Likewise.
2838         * lib/nonblocking.h: New file.
2839         * lib/nonblocking.c: Likewise.
2840         * tests/test-nonblocking.c: New test.
2841         * lib/ioctl.c (ioctl) [mingw]: Update comment.
2842
2843 2011-03-30  Bruno Haible  <bruno@clisp.org>
2844
2845         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
2846         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
2847         instead of 'printf' format for GCC >= 4.4.
2848         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
2849         (fprintf, printf, vfprintf, vprintf): Declare with
2850         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
2851         the system's vfprintf() function.
2852         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
2853
2854 2011-03-30  Eric Blake  <eblake@redhat.com>
2855
2856         passfd: fix scoping bug
2857         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
2858         before sendmsg/recvmsg.
2859
2860         passfd: standardize coding conventions
2861         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
2862         can be learned at compile time.
2863         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
2864         ifdefs.
2865         (sendfd, recvfd): Follow gnulib code conventions.
2866
2867         passfd: fix incorrect sendmsg arguments
2868         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
2869         incorrect msg_controllen value.
2870         * modules/passfd-tests (Depends-on): Check for alarm.
2871         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
2872         Reported by Bastien ROUCARIES.
2873
2874 2011-03-30  Bruno Haible  <bruno@clisp.org>
2875
2876         c-strcasestr: Relicense under LGPLv2+.
2877         * modules/c-strcasestr (License): Change to LGPLv2+.
2878         Requested by Eric Blake, for libvirt.
2879
2880 2011-03-30  Simon Josefsson  <simon@josefsson.org>
2881
2882         * users.txt: Add libidn2.  Fix libtasn1 link.
2883
2884 2011-03-30  Jim Meyering  <meyering@redhat.com>
2885
2886         tests: readlink* ("",... fails with EINVAL on newer kernels
2887         readlink and readlinkat have typically failed with ENOENT for
2888         the invalid, empty file name,  "".  However, with the advent
2889         of linux-2.6.39, they fail with EINVAL.
2890         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
2891         when operating on the empty file name.
2892         * tests/test-readlink.h (test_readlink): Likewise.
2893
2894 2011-03-29  Bruno Haible  <bruno@clisp.org>
2895
2896         Relicense some modules under LGPLv2+, for libidn2.
2897         * modules/array-mergesort (License): Change to LGPLv2+.
2898         * modules/c-strcaseeq (License): Likewise.
2899         * modules/striconveh (License): Likewise.
2900         * modules/striconveha (License): Likewise.
2901         * modules/uniconv/base (License): Likewise.
2902         * modules/uniconv/u8-conv-from-enc (License): Likewise.
2903         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
2904         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
2905         * modules/unictype/base (License): Likewise.
2906         * modules/unictype/bidiclass-of (License): Likewise.
2907         * modules/unictype/category-M (License): Likewise.
2908         * modules/unictype/category-none (License): Likewise.
2909         * modules/unictype/category-of (License): Likewise.
2910         * modules/unictype/category-test (License): Likewise.
2911         * modules/unictype/category-test-withtable (License): Likewise.
2912         * modules/unictype/combining-class (License): Likewise.
2913         * modules/unictype/joiningtype-of (License): Likewise.
2914         * modules/unictype/scripts (License): Likewise.
2915         * modules/uninorm/base (License): Likewise.
2916         * modules/uninorm/canonical-decomposition (License): Likewise.
2917         * modules/uninorm/composition (License): Likewise.
2918         * modules/uninorm/decompose-internal (License): Likewise.
2919         * modules/uninorm/decomposition-table (License): Likewise.
2920         * modules/uninorm/nfc (License): Likewise.
2921         * modules/uninorm/nfd (License): Likewise.
2922         * modules/uninorm/u32-normalize (License): Likewise.
2923         * modules/unistr/base (License): Likewise.
2924         * modules/unistr/u32-cpy (License): Likewise.
2925         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
2926         * modules/unistr/u32-to-u8 (License): Likewise.
2927         * modules/unistr/u32-uctomb (License): Likewise.
2928         * modules/unistr/u8-check (License): Likewise.
2929         * modules/unistr/u8-mblen (License): Likewise.
2930         * modules/unistr/u8-mbtouc (License): Likewise.
2931         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
2932         * modules/unistr/u8-mbtoucr (License): Likewise.
2933         * modules/unistr/u8-prev (License): Likewise.
2934         * modules/unistr/u8-strlen (License): Likewise.
2935         * modules/unistr/u8-to-u32 (License): Likewise.
2936         * modules/unistr/u8-uctomb (License): Likewise.
2937         * modules/unitypes (License): Likewise.
2938         Requested by Simon Josefsson.
2939
2940 2011-03-29  Simon Josefsson  <simon@josefsson.org>
2941
2942         lib-symbol-visibility: Add a notice.
2943         * modules/lib-symbol-visibility (Notice): New field.
2944
2945 2011-03-29  Bruno Haible  <bruno@clisp.org>
2946
2947         getaddrinfo: Doc fix.
2948         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
2949         section "fixed in Gnulib".
2950
2951 2011-03-28  Simon Josefsson  <simon@josefsson.org>
2952
2953         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
2954         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
2955
2956 2011-03-26  Bruno Haible  <bruno@clisp.org>
2957
2958         unictype/property-byname: Reduce the number of load-time relocations.
2959         * lib/unictype/pr_byname.c: Include <stdlib.h>.
2960         (UC_PROPERTY_INDEX_*): New enumeration values.
2961         (uc_property_byname): Convert an index from the lookup table to an
2962         uc_property_t.
2963         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
2964         values.
2965
2966 2011-03-26  Bruno Haible  <bruno@clisp.org>
2967
2968         unictype/property-byname: Allow omitted word separators and aliases.
2969         * lib/unictype/pr_byname.gperf: Add property names without word
2970         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
2971         for 'space'.
2972
2973 2011-03-26  Bruno Haible  <bruno@clisp.org>
2974
2975         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
2976         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
2977         also hyphens to space.
2978         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
2979         without spaces.
2980         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
2981
2982 2011-03-26  Bruno Haible  <bruno@clisp.org>
2983
2984         unictype/joiningtype-byname: Recognize long names as well.
2985         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
2986         a long name.
2987         * lib/unictype/joiningtype_byname.c: Include <string.h>,
2988         unictype/joiningtype_byname.h.
2989         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
2990         * lib/unictype/joiningtype_byname.gperf: New file.
2991         * modules/unictype/joiningtype-byname (Files): Add
2992         lib/unictype/joiningtype_byname.gperf.
2993         (Depends-on): Add gperf.
2994         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
2995         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
2996         long names.
2997
2998         Tests for module 'unictype/joiningtype-longname'.
2999         * modules/unictype/joiningtype-longname-tests: New file.
3000         * tests/unictype/test-joiningtype_longname.c: New file.
3001
3002         New module 'unictype/joiningtype-longname'.
3003         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
3004         * lib/unictype/joiningtype_longname.c: New file.
3005         * modules/unictype/joiningtype-longname: New file.
3006         * modules/unictype/joiningtype-all (Depends-on): Add
3007         unictype/joiningtype-longname.
3008
3009 2011-03-26  Bruno Haible  <bruno@clisp.org>
3010
3011         unictype/bidiclass-byname: Recognize long names as well.
3012         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
3013         name.
3014         * lib/unictype/bidi_byname.c: Include <string.h>,
3015         unictype/bidi_byname.h.
3016         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
3017         * lib/unictype/bidi_byname.gperf: New file.
3018         * modules/unictype/bidiclass-byname (Files): Add
3019         lib/unictype/bidi_byname.gperf.
3020         (Depends-on): Add gperf.
3021         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
3022         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
3023         long names.
3024
3025         Tests for module 'unictype/bidiclass-longname'.
3026         * modules/unictype/bidiclass-longname-tests: New file.
3027         * tests/unictype/test-bidi_longname.c: New file.
3028
3029         New module 'unictype/bidiclass-longname'.
3030         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
3031         * lib/unictype/bidi_longname.c: New file.
3032         * modules/unictype/bidiclass-longname: New file.
3033         * modules/unictype/bidiclass-all (Depends-on): Add
3034         unictype/bidiclass-longname.
3035
3036 2011-03-26  Bruno Haible  <bruno@clisp.org>
3037
3038         unictype/bidi*: Rename modules.
3039         * modules/unictype/bidiclass-all: Renamed from
3040         modules/unictype/bidicategory-all.
3041         * modules/unictype/bidiclass-name: Renamed from
3042         modules/unictype/bidiclass-name.
3043         (Description): Update.
3044         * modules/unictype/bidiclass-name-tests: Renamed from
3045         modules/unictype/bidicategory-name-tests.
3046         * modules/unictype/bidiclass-byname: Renamed from
3047         modules/unictype/bidicategory-byname.
3048         (Description): Update.
3049         * modules/unictype/bidiclass-byname-tests: Renamed from
3050         modules/unictype/bidicategory-byname-tests.
3051         * modules/unictype/bidiclass-of: Renamed from
3052         modules/unictype/bidicategory-of.
3053         (Description): Update.
3054         * modules/unictype/bidiclass-of-tests: Renamed from
3055         modules/unictype/bidicategory-of-tests.
3056         * modules/unictype/bidiclass-test: Renamed from
3057         modules/unictype/bidicategory-test.
3058         (Description): Update.
3059         * modules/unictype/bidiclass-test-tests: Renamed from
3060         modules/unictype/bidicategory-test-tests.
3061         * modules/unictype/bidicategory-all: New file, a simple redirection.
3062         * modules/unictype/bidicategory-name: Likewise.
3063         * modules/unictype/bidicategory-byname: Likewise.
3064         * modules/unictype/bidicategory-of: Likewise.
3065         * modules/unictype/bidicategory-test: Likewise.
3066         * modules/unictype/property-bidi-* (Dependencies): Update.
3067         * lib/unictype/bidi_*.c: Update comment.
3068
3069 2011-03-26  Bruno Haible  <bruno@clisp.org>
3070
3071         unictype/bidi*: Rename functions, part 2.
3072         * modules/unictype/bidicategory-name (configure.ac): Update required
3073         libunistring version.
3074         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
3075
3076 2011-03-25  Bruno Haible  <bruno@clisp.org>
3077
3078         New module 'unictype/combining-class-all'.
3079         * modules/unictype/combining-class-all: New file.
3080
3081         Tests for module 'unictype/combining-class-byname'.
3082         * modules/unictype/combining-class-byname-tests: New file.
3083         * tests/unictype/test-combiningclass_byname.c: New file.
3084
3085         New module 'unictype/combining-class-byname'.
3086         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
3087         * lib/unictype/combiningclass_byname.c: New file.
3088         * lib/unictype/combiningclass_byname.gperf: New file.
3089         * modules/unictype/combining-class-byname: New file.
3090
3091         Tests for module 'unictype/combining-class-longname'.
3092         * modules/unictype/combining-class-longname-tests: New file.
3093         * tests/unictype/test-combiningclass_longname.c: New file.
3094
3095         New module 'unictype/combining-class-longname'.
3096         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
3097         * lib/unictype/combiningclass_longname.c: New file.
3098         * modules/unictype/combining-class-longname: New file.
3099
3100         Tests for module 'unictype/combining-class-name'.
3101         * modules/unictype/combining-class-name-tests: New file.
3102         * tests/unictype/test-combiningclass_name.c: New file.
3103
3104         New module 'unictype/combining-class-name'.
3105         * lib/unictype.in.h (uc_combining_class_name): New declaration.
3106         * lib/unictype/combiningclass_name.c: New file.
3107         * modules/unictype/combining-class-name: New file.
3108
3109 2011-03-25  Bruno Haible  <bruno@clisp.org>
3110
3111         unictype/combining-class: Rename source files.
3112         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
3113         of unictype/combining.h.
3114         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
3115         Update.
3116         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
3117         * modules/unictype/combining-class (Description): Fix.
3118         (Files, Makefile.am): Update.
3119         * tests/unictype/test-combiningclass.c: Renamed from
3120         tests/unictype/test-combining.c.
3121         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
3122
3123 2011-03-25  Bruno Haible  <bruno@clisp.org>
3124
3125         unictype: Update list of canonical combining classes.
3126         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
3127
3128 2011-03-25  Bruno Haible  <bruno@clisp.org>
3129
3130         unictype/category-byname: Recognize long names as well.
3131         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
3132         a long name.
3133         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
3134         unictype/categ_byname.h.
3135         (UC_CATEGORY_INDEX_*): New enumeration values.
3136         (uc_general_category_byname): Use uc_general_category_lookup and
3137         convert from index to value.
3138         * lib/unictype/categ_byname.gperf: New file.
3139         * modules/unictype/category-byname (Files): Add
3140         lib/unictype/categ_byname.gperf.
3141         (Depends-on): Add gperf.
3142         (Makefile.am): Add rule for generating unictype/categ_byname.h.
3143         * tests/unictype/test-categ_byname.c (main): Test the recognition of
3144         long names.
3145
3146         Tests for module 'unictype/category-longname'.
3147         * modules/unictype/category-longname-tests: New file.
3148         * tests/unictype/test-categ_longname.c: New file.
3149
3150         New module 'unictype/category-longname'.
3151         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
3152         * lib/unictype/categ_longname.c: New file.
3153         * modules/unictype/category-longname: New file.
3154         * modules/unictype/category-all (Depends-on): Add it.
3155
3156 2011-03-25  Bruno Haible  <bruno@clisp.org>
3157
3158         Tests for module 'unictype/category-LC'.
3159         * modules/unictype/category-LC-tests: New file.
3160         * tests/unictype/test-categ_LC.c: New file, automatically generated.
3161
3162         New module 'unictype/category-LC'.
3163         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
3164         (UC_CATEGORY_LC): New declaration.
3165         (UC_CASED_LETTER): New macro.
3166         * lib/gen-uni-tables.c (is_category_LC): New function.
3167         (output_categories): Also handle category LC.
3168         (UC_CATEGORY_MASK_LC): New enumeration value.
3169         (general_category_byname): Also handle category LC.
3170         * lib/unictype/categ_LC.c: New file.
3171         * lib/unictype/categ_LC.h: New file, automatically generated.
3172         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
3173         category LC.
3174         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
3175         * modules/unictype/category-LC: New file.
3176         * modules/unictype/category-byname (Depends-on): Add
3177         unictype/category-LC.
3178         * modules/unictype/category-all (Depends-on): Likewise.
3179
3180 2011-03-25  Eric Blake  <eblake@redhat.com>
3181
3182         xmalloc: revert yesterday's regression
3183         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
3184         realloc's underlying behavior (allowing allocation of zero-size
3185         objects, especially if malloc-gnu is also in use).
3186
3187 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
3188
3189         maint.mk: add missing version to VC-tag
3190         * top/maint.mk: git tag was missing actual tag name; add it.
3191
3192         valgrind: do leak checking, and exit with code 1 on error (not 0)
3193         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
3194         to VALGRIND.
3195
3196 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
3197
3198         posix-modules: say what it does.
3199         * posix-modules: Add a line to the --help output saying what it does.
3200
3201 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3202
3203         xmalloc: Do not leak if underlying realloc is C99 compatible.
3204         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
3205         This avoids a leak on C99-based systems.  See
3206         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
3207
3208 2011-03-24  Eric Blake  <eblake@redhat.com>
3209
3210         realloc: document portability problem
3211         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
3212         passing 0 size to realloc.
3213
3214 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
3215
3216         doc: update users.txt
3217         * users.txt: Add cvsps, tmpwatch
3218
3219 2011-03-23  Matt Rice  <ratmice@gmail.com>
3220
3221         doc: update users.txt
3222         * users.txt: Add gdb.
3223
3224 2011-03-23  Jim Meyering  <meyering@redhat.com>
3225
3226         doc: update users.txt
3227         Looking through matches up to the following URL (there are still
3228         several more pages), I found several projects that use gnulib:
3229         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
3230         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
3231         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
3232
3233 2011-03-22  Bruno Haible  <bruno@clisp.org>
3234
3235         unictype/bidi*: Rename functions.
3236         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
3237         uc_bidi_class, uc_is_bidi_class): New declarations.
3238         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
3239         uc_bidi_category_byname.
3240         (uc_bidi_category_byname): New function.
3241         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
3242         u_bidi_category_name.
3243         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
3244         (uc_bidi_category_name): New function.
3245         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
3246         uc_bidi_category.
3247         (uc_bidi_category): New function.
3248         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
3249         uc_is_bidi_category. Invoke uc_bidi_class.
3250         (uc_is_bidi_category): New function.
3251         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
3252         instead of uc_bidi_category_byname.
3253         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
3254         instead of uc_bidi_category_name.
3255         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
3256         uc_bidi_category.
3257         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
3258         instead of uc_is_bidi_category.
3259
3260 2011-03-21  Bruno Haible  <bruno@clisp.org>
3261
3262         New module 'unictype/joininggroup-all'.
3263         * modules/unictype/joininggroup-all: New file.
3264
3265         Tests for module 'unictype/joininggroup-of'.
3266         * modules/unictype/joininggroup-of-tests: New file.
3267         * tests/unictype/test-joininggroup_of.c: New file.
3268         * tests/unictype/test-joininggroup_of.h: New file, automatically
3269         generated by gen-uni-tables.
3270
3271         New module 'unictype/joininggroup-of'.
3272         * modules/unictype/joininggroup-of: New file.
3273         * lib/unictype/joininggroup_of.c: New file.
3274         * lib/unictype/joininggroup_of.h: New file, automatically generated by
3275         gen-uni-tables.
3276
3277         Tests for module 'unictype/joininggroup-byname'.
3278         * modules/unictype/joininggroup-byname-tests: New file.
3279         * tests/unictype/test-joininggroup_byname.c: New file.
3280
3281         New module 'unictype/joininggroup-byname'.
3282         * modules/unictype/joininggroup-byname: New file.
3283         * lib/unictype/joininggroup_byname.c: New file.
3284         * lib/unictype/joininggroup_byname.gperf: New file.
3285
3286         Tests for module 'unictype/joininggroup-name'.
3287         * modules/unictype/joininggroup-name-tests: New file.
3288         * tests/unictype/test-joininggroup_name.c: New file.
3289
3290         New module 'unictype/joininggroup-name'.
3291         * modules/unictype/joininggroup-name: New file.
3292         * lib/unictype/joininggroup_name.c: New file.
3293         * lib/unictype/joininggroup_name.h: New file.
3294
3295         New module 'unictype/joiningtype-all'.
3296         * modules/unictype/joiningtype-all: New file.
3297
3298         Tests for module 'unictype/joiningtype-of'.
3299         * modules/unictype/joiningtype-of-tests: New file.
3300         * tests/unictype/test-joiningtype_of.c: New file.
3301         * tests/unictype/test-joiningtype_of.h: New file, automatically
3302         generated by gen-uni-tables.
3303
3304         New module 'unictype/joiningtype-of'.
3305         * modules/unictype/joiningtype-of: New file.
3306         * lib/unictype/joiningtype_of.c: New file.
3307         * lib/unictype/joiningtype_of.h: New file, automatically generated by
3308         gen-uni-tables.
3309
3310         Tests for module 'unictype/joiningtype-byname'.
3311         * modules/unictype/joiningtype-byname-tests: New file.
3312         * tests/unictype/test-joiningtype_byname.c: New file.
3313
3314         New module 'unictype/joiningtype-byname'.
3315         * modules/unictype/joiningtype-byname: New file.
3316         * lib/unictype/joiningtype_byname.c: New file.
3317
3318         Tests for module 'unictype/joiningtype-name'.
3319         * modules/unictype/joiningtype-name-tests: New file.
3320         * tests/unictype/test-joiningtype_name.c: New file.
3321
3322         New module 'unictype/joiningtype-name'.
3323         * modules/unictype/joiningtype-name: New file.
3324         * lib/unictype/joiningtype_name.c: New file.
3325
3326         unictype: Add support for Arabic shaping properties.
3327         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
3328         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
3329         declarations.
3330         (UC_JOINING_GROUP_*): New enumeration values.
3331         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
3332         declarations.
3333         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
3334         (unicode_joining_type): New variable.
3335         (UC_JOINING_GROUP_*): New enumeration values.
3336         (unicode_joining_group): New variable.
3337         (fill_arabicshaping, joining_type_as_c_identifier,
3338         output_joining_type_test, output_joining_type,
3339         joining_group_as_c_identifier, output_joining_group_test,
3340         output_joining_group): New functions.
3341         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
3342         fill_arabicshaping and output_joining_type_test, output_joining_type,
3343         output_joining_group_test, output_joining_group.
3344         Reported by Simon Josefsson.
3345
3346 2011-03-21  Jim Meyering  <meyering@redhat.com>
3347
3348         strftime: fix a bug in yesterday's change
3349         * lib/strftime.c (add): Accommodate width's initial value of -1.
3350         Otherwise, nstrftime would copy uninitialized data into
3351         the result buffer.
3352
3353 2011-03-21  Jim Meyering  <meyering@redhat.com>
3354
3355         tests: add strftime-tests module
3356         * tests/test-strftime.c: New file.
3357         * modules/strftime-tests: New module.
3358
3359 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3360
3361         strftime: don't assume a byte count fits in 'int'
3362         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
3363         found this problem by static analysis, using gcc -Wstrict-overflow
3364         (GCC 4.5.2, x86-64).  This reported an optimization that depended
3365         on an integer overflow having undefined behavior, but it turns out
3366         that the argument is a size, which might not fit in 'int' anyway,
3367
3368 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3369
3370         stdio: don't require ignore_value around fwrite
3371
3372         This patch works around libc bug 11959
3373         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
3374         Without this patch, applications must often write
3375         ignore_value (fwrite (...)) even though the ignore_value is
3376         not helpful here.  It's common to write many objects, using
3377         fwrite/printf/etc., and then use ferror to detect output error.
3378
3379         I considered making this patch optional, but decided against it,
3380         because libc is obviously being inconsistent here: there is no
3381         reason libc should insist that user code must inspect fwrite
3382         return's value without also insisting that it inspect printf's,
3383         putchar's, etc.  If user code wants to have a strict style where
3384         all these functions' values are checked (so that ferror need not
3385         be checked), we could add support for that style in a new gnulib
3386         module, but in the meantime it's better to be consistent and to
3387         support common usage.
3388
3389         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
3390         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
3391         that we are compiling in checking mode, and if not C++, and
3392         if not already wrapping fwrite for some other reason.
3393         (fwrite): #define to rpl_fwrite if the latter is defined.
3394
3395 2011-03-20  Bruno Haible  <bruno@clisp.org>
3396
3397         verror: Fix compilation error introduced on 2011-02-13.
3398         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
3399         instead of __attribute__.
3400         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3401
3402 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3403             Bruno Haible  <bruno@clisp.org>
3404
3405         socklen: do not depend on sys_socket
3406         While trying to modify Emacs to use gnulib's socklen module,
3407         I discovered a circular dependency: socklen depends on sys_socket
3408         and vice versa.  Emacs can use socklen, but it does not need
3409         sys_socket because it has its own substitute for sys/socket.h.
3410         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
3411         gl_TYPE_SOCKLEN_T.
3412         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
3413         gl_PREREQ_SYS_H_SOCKET.
3414         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
3415         gl_PREREQ_SYS_H_SOCKET.
3416         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
3417         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
3418         * modules/socklen (Depends-on): Do not depend on sys_socket.
3419         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
3420
3421 2011-03-20  Jim Meyering  <meyering@redhat.com>
3422
3423         maint.mk: sort file names *after* new transformation
3424         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
3425         prefix would have led to an unwarranted failure in GNU parted.
3426         Sort after that transformation.
3427
3428 2011-03-19  Jim Meyering  <meyering@redhat.com>
3429
3430         maint.mk: fix po-file syntax-check rule
3431         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
3432         Patch by Bruno Haible.
3433
3434 2011-03-19  Bruno Haible  <bruno@clisp.org>
3435
3436         socklen: Update comment.
3437         * m4/socklen.m4: Update comment about platforms.
3438
3439 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3440             Bruno Haible  <bruno@clisp.org>
3441
3442         inet_ntop, inet_pton: Simplify.
3443         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
3444         documented to provide socklen_t and we already depend on sys_socket.
3445         * modules/inet_pton (Depends-on): Likewise.
3446         * lib/arpa_inet.in.h: Adjust comment.
3447
3448 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3449             Bruno Haible  <bruno@clisp.org>
3450
3451         netdb: Simplify.
3452         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
3453         documented to provide socklen_t and we already depend on sys_socket.
3454         * lib/netdb.in.h: Adjust comment.
3455
3456 2011-03-19  Bruno Haible  <bruno@clisp.org>
3457
3458         sys_socket, netdb: Document problem with socklen_t.
3459         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
3460         platforms.
3461         * doc/posix-headers/netdb.texi: Likewise.
3462
3463 2011-03-18  Eric Blake  <eblake@redhat.com>
3464
3465         maint.mk: let po check work in VPATH build
3466         * top/maint.mk (po_file): Allow cfg.mk override.
3467         (sc_po_check): Allow VPATH use.
3468         Reported by Jiri Denemark.
3469
3470 2011-03-16  Jim Meyering  <meyering@redhat.com>
3471
3472         maint.mk: allow fine-grained syntax-check exclusion via Make variables
3473         Before, you would have had to create one .x-sc_ file per rule in order
3474         to exempt offending files.  Now, you may instead use a Make variable --
3475         usually defined in cfg.mk -- whose name identifies the affected rule.
3476         * top/maint.mk (_sc_excl): Define.
3477         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
3478         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
3479
3480 2011-03-13  Bruno Haible  <bruno@clisp.org>
3481
3482         ignore-value tests: Avoid warnings.
3483         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
3484         empty for gcc < 3.4.
3485
3486 2011-03-13  Bruno Haible  <bruno@clisp.org>
3487
3488         passfd: Fix link error on Solaris.
3489         * modules/passfd (Description): Correct.
3490         (Depends-on): Add socketlib.
3491         (Link): New section.
3492         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
3493
3494 2011-03-13  Bruno Haible  <bruno@clisp.org>
3495
3496         passfd: Fix link error on AIX 5.2.
3497         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
3498
3499 2011-03-13  Bruno Haible  <bruno@clisp.org>
3500
3501         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
3502         * lib/sys_socket.in.h: Include <stddef.h>.
3503         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
3504         CMSG_FIRSTHDR. Remove unused variable.
3505
3506 2011-03-13  Bruno Haible  <bruno@clisp.org>
3507
3508         passfd: Fix compilation error on OpenBSD.
3509         * lib/passfd.c: Include <sys/uio.h>.
3510
3511 2011-03-13  Bruno Haible  <bruno@clisp.org>
3512
3513         passfd test: Fix warnings.
3514         * tests/test-passfd.c: Include <sys/wait.h>.
3515         (main): Fix typo.
3516
3517 2011-03-13  Bruno Haible  <bruno@clisp.org>
3518
3519         passfd module, part 4, tweaks.
3520         * tests/test-passfd.c: Reorder includes.
3521         (main): Fix perror and printf calls.
3522
3523 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3524
3525         passfd module, part 4.
3526         * modules/passfd-tests: New file.
3527         * tests/test-passfd.c: New file.
3528
3529 2011-03-13  Jim Meyering  <meyering@redhat.com>
3530
3531         Makefile: rely on GNU make; derive syntax-check rule names
3532         Rather than requiring that each sc_ rule be listed as a dependent
3533         of "check", use features of GNU make to derive the list.
3534         * Makefile (syntax-check-rules): Define.
3535         (check): Depend on the new variable, not the hard-coded list.
3536
3537 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
3538             Bruno Haible  <bruno@clisp.org>
3539
3540         passfd module, part 3.
3541         * lib/passfd.h (recvfd): Add a flags argument.
3542         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
3543         (recvfd): Add a flags argument.
3544         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
3545         exists.
3546         * modules/passfd (Depends-on): Add cloexec.
3547         Suggested by Eric Blake.
3548
3549 2011-03-13  Bruno Haible  <bruno@clisp.org>
3550
3551         passfd module, part 2, tweaks.
3552         * modules/passfd (Files): Reorder.
3553         (Depends-on): Remove errno.
3554         (Include): Remove <sys/socket.h>, <sys/un.h>.
3555         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
3556         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
3557         specification header. Include <sys/socket.h> always. Don't include
3558         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
3559         (sendfd): Clarify that it sets errno when it fails.
3560         (recvfd): Fix specification.
3561
3562 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3563
3564         passfd module, part 2.
3565         * modules/passfd: New file.
3566         * lib/passfd.h: New file.
3567         * lib/passfd.c: New file.
3568
3569 2011-03-12  Bruno Haible  <bruno@clisp.org>
3570
3571         wcswidth, mbswidth: Avoid integer overflow.
3572         * lib/wcswidth.c: Include <limits.h>.
3573         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
3574         * lib/mbswidth.c: Include <limits.h>.
3575         (mbsnwidth): Avoid 'int' overflow.
3576         Reported by Jim Meyering.
3577
3578 2011-03-12  Bruno Haible  <bruno@clisp.org>
3579
3580         futimens, utimensat: Avoid endless recursion on Solaris 10.
3581         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
3582         Solaris.
3583         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
3584         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
3585
3586 2011-03-11  Jim Meyering  <meyering@redhat.com>
3587
3588         maint.mk: relax a regexp to accommodate other formatting styles
3589         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
3590         between "ngettext" and the following "(".
3591
3592 2011-03-11  Pádraig Brady <P@draigBrady.com>
3593
3594         maint.mk: suppress a false positive warning
3595         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
3596         diagnostics are marked with ngettext.
3597
3598 2011-03-10  Eric Blake  <eblake@redhat.com>
3599
3600         wchar: add explicit dependencies, for Tru64
3601         * modules/mbmemcasecoll (Depends-on): Add wchar.
3602         * modules/mbtowc (Depends-on): Likewise.
3603         * modules/vasnprintf (Depends-on): Likewise.
3604         * modules/unistdio/u-printf-args (Depends-on): Likewise.
3605         * modules/wctomb (Depends-on): Likewise.
3606         Reported by Peter O'Gorman.
3607
3608 2011-03-08  Bruno Haible  <bruno@clisp.org>
3609
3610         passfd module, part 1, tweaks.
3611         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
3612         Improve indentation. Improve AC_MSG_CHECKING messages.
3613         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
3614         gl_SOCKET_FAMILIES.
3615
3616 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3617
3618         passfd module, part 1.
3619         * m4/afunix.m4: New file.
3620         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
3621         sockets.
3622
3623 2011-03-08  Bruno Haible  <bruno@clisp.org>
3624
3625         regex-quote: New API.
3626         * lib/regex-quote.h: Include <stdbool.h>.
3627         (struct regex_quote_spec): New type.
3628         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3629         New declarations.
3630         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3631         'const struct regex_quote_spec *' argument.
3632         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
3633         (pcre_special): New constant.
3634         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3635         New functions.
3636         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3637         'const struct regex_quote_spec *' argument.
3638         * modules/regex-quote (Depends-on): Add stdbool.
3639         * tests/test-regex-quote.c (check): Update for new API. Add test for
3640         anchored results.
3641         * NEWS: Mention the API change.
3642         Reported by Reuben Thomas and Eric Blake.
3643
3644 2011-03-06  Bruno Haible  <bruno@clisp.org>
3645
3646         regex-quote: Fix creation of POSIX extended regular expressions.
3647         * lib/regex-quote.c (ere_special): Add grouping and alternation
3648         operators.
3649
3650 2011-03-05  Bruno Haible  <bruno@clisp.org>
3651
3652         doc: Improve doc regarding autopoint vs. gnulib.
3653         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
3654         disable autopoint while running autoreconf.
3655         Suggested by Ralf Wildenhues.
3656
3657 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3658
3659         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
3660         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
3661
3662 2011-03-03  Bruce Korb  <bkorb@gnu.org>
3663
3664         parse-duration: remove xalloc.h dependency
3665         * lib/parse-duration.c (parse_period): handle NULL return from
3666         strdup instead of calling xstrdup().
3667         * modules/parse-duration: remove "xalloc" dependency
3668
3669 2011-03-03  Matthew Booth  <mbooth@redhat.com>
3670
3671         bootstrap: honor m4_base when running aclocal
3672         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
3673
3674 2011-03-02  Jim Meyering  <meyering@redhat.com>
3675
3676         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
3677         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
3678         on request from Matt Booth.
3679
3680 2011-03-01  Eric Blake  <eblake@redhat.com>
3681
3682         test-link: work on Hurd
3683         * tests/test-link.h (test_link): Hurd rejects linking directories
3684         with EISDIR instead of the POSIX-mandated EPERM.
3685
3686 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
3687
3688         stdio: simplify by moving files to printf-posix, sigpipe
3689         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
3690         since this symbol is needed only if printf is replaced.
3691         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
3692         Require gl_ASM_SYMBOL_PREFIX.
3693         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
3694         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
3695         (Depends-on): Add 'raise'.
3696         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
3697         * modules/stdio (Files): Remove lib/stdio-write.c,
3698         m4/asm-underscore.m4.
3699         (Depends-on): Remove 'raise'.
3700
3701         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
3702         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
3703         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
3704         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
3705
3706 2011-02-28  Bruno Haible  <bruno@clisp.org>
3707
3708         localcharset: Assume ANSI C behaviour of free().
3709         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
3710         calling free().
3711         Suggested by Simon Josefsson <simon@josefsson.org>.
3712
3713 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
3714             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
3715             Bruno Haible  <bruno@clisp.org>  (tiny change)
3716
3717         On Cygwin, use /proc file system instead of win32 API.
3718         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
3719         Win32 file names.
3720         (DllMain): Simplify by removing Cygwin specific code.
3721         (find_shared_library_fullname): Use Linux specific implementation also
3722         for Cygwin.
3723         (get_shared_library_fullname): Update accordingly.
3724         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
3725         Win32 file names.
3726         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
3727         Cygwin specific code.
3728
3729 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
3730             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
3731
3732         Fix OpenMP flag detection for various Fortran compilers.
3733         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
3734         OpenMP-conditional compilation construct, to force compile
3735         failure with missing OpenMP flag.
3736         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
3737
3738 2011-02-25  Eric Blake  <eblake@redhat.com>
3739
3740         strstr: expand test coverage
3741         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
3742         compilation.
3743         * tests/test-memmem.c (main): Duplicate tests.
3744         * tests/test-strcasestr.c (main): Likewise.
3745         * tests/test-c-strcasestr.c (main): Likewise.
3746
3747 2011-02-25  Jim Meyering  <meyering@redhat.com>
3748
3749         maint.mk: detect missing-NL-at-EOF, too
3750         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
3751         it also detects when a file lacks a newline at EOF.
3752         (require_exactly_one_NL_at_EOF_): Renamed from
3753         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
3754         since people may well have .x-sc_... file names tied to the
3755         existing name.  Suggested by Eric Blake.
3756
3757 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
3758
3759         dirname: move m4/dos.m4 functionality into lib/dosname.h
3760
3761         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
3762         extracts symbols from it, puts them into config.h; but it's much
3763         easier to use the symbols directly.  filename.h already does this,
3764         but it disagrees with dos.m4 in some respects.  This patch
3765         introduces a different include file dosname.h that packages up
3766         dos.m4, and then later we can work on merging filename.h and
3767         dosname.h.  Applications that need only the easy-to-configure
3768         symbols should consider including dosname.h rather than dirname.h.
3769         * NEWS: Mention incompatible changes.
3770         * m4/dos.m4: Remove.
3771         * lib/dosname.h, modules/dosname: New files.
3772         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
3773         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
3774         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
3775         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
3776         Include dosname.h, not dirname.h.
3777         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
3778         Include dosname.h, for definitions of symbols like ISSLASH
3779         that used to be in config.h.
3780         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
3781         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3782         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3783         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3784         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
3785         * modules/rmdir (Files): Likewise.
3786         * modules/stat (Files): Likewise.
3787         * modules/unlink (Files): Likewise.
3788         * modules/dirname-lgpl (Depends-on): Add dosname.
3789         * modules/lstat (Depends-on): Likewise.
3790         * modules/openat (Depends-on): Likewise.
3791         * modules/rmdir (Depends-on): Likewise.
3792         * modules/savewd (Depends-on): Likewise.
3793         * modules/stat (Depends-on): Likewise.
3794         * modules/unlink (Depends-on): Likewise.
3795         * modules/openat (Depends-on): Remove dirname-lgpl.
3796         * modules/savewd (Depends-on): Likewise.
3797         * tests/test-dirname.c: Do not use removed symbols like
3798         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
3799         the remaining symbols, e.g., ISSLASH ('\\').
3800
3801 2011-02-25  Eric Blake  <eblake@redhat.com>
3802
3803         strstr: revert patches that introduced bug and pessimization
3804         * lib/str-two-way.h: Add another reference.
3805         (two_way_short_needle, two_way_long_needle): Revert changes from
3806         2011-02-24; they pessimize search speed.
3807         (critical_factorization): Partially revert changes from
3808         2010-06-22; they violate the requirement that the left half of the
3809         needle be smaller than the period of the needle.
3810
3811 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3812
3813         filenamecat: remove unnecessary dependency on dirname-lgpl
3814         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
3815         is no direct dependency, just an indirect one via filenamecat-lgpl.
3816
3817         remove: remove unnecessary use of m4/dos.m4
3818         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
3819         * modules/remove (FILES): Remove m4/dos.m4.
3820
3821         * lib/openat-proc.c: Don't include dirname.h; not needed.
3822
3823         backupfile: remove unnecessary use of m4/dos.m4
3824         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
3825         of its symbols are used by the backupfile code.  backupfile.c does
3826         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
3827         for the rare case of programs that want all their backup file
3828         names to live within 8+3 limits, and dos.m4 doesn't address that.
3829         * modules/backupfile (Files): Remove m4/dos.m4.
3830
3831 2011-02-24  Jim Meyering  <meyering@redhat.com>
3832
3833         strstr: fix a bug whereby strstr would mistakenly return NULL
3834         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
3835         in period calculation.
3836         (two_way_long_needle): Likewise.
3837         The original problem was reported by Mike Stump in
3838         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
3839         Ralf Wildenhues provided the short needle and haystack.
3840         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
3841         Add a more involved test to trigger the bug in two_way_long_needle.
3842
3843 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3844
3845         gnulib-tool: remove use of bold display in help screen
3846         * gnulib-tool (func_usage): Do not use bold display anymore in the
3847         help screen.  That was just meant to be a temporary emphasis for a
3848         backward-incompatible change.
3849
3850 2011-02-23  Bruno Haible  <bruno@clisp.org>
3851
3852         Fix misindentation of preprocessor directives.
3853         * lib/argp-namefrob.h: Reindent preprocessor directives.
3854         * lib/getopt_int.h (struct _getopt_data): Likewise.
3855         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
3856         * lib/vasnprintf.c (decode_long_double): Likewise.
3857         * tests/test-argmatch.c: Insert blank lines, for clarity.
3858         * tests/test-exclude.c: Likewise.
3859
3860 2011-02-22  Bruno Haible  <bruno@clisp.org>
3861
3862         ioctl: Fix for MacOS X in 64-bit mode.
3863         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
3864         value.
3865         Suggested by Eric Blake.
3866         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
3867
3868 2011-02-22  Jim Meyering  <meyering@redhat.com>
3869
3870         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
3871         * Makefile (sc_cpp_indent_check): Don't limit the check to files
3872         in lib/.
3873
3874 2011-02-22  Eric Blake  <eblake@redhat.com>
3875
3876         maint: avoid any CDPATH issue
3877         * Makefile (sc_cpp_indent_check): Anchor cd argument.
3878
3879         maint: adjust cpp indentation for my modules, as well
3880         * Makefile (sc_cpp_indent_check): Add my name.
3881         * lib/fbufmode.c: Filter through cppi.
3882         * lib/fpurge.c: Likewise.
3883         * lib/freadable.c: Likewise.
3884         * lib/freading.c: Likewise.
3885         * lib/fwritable.c: Likewise.
3886         * lib/fwriting.c: Likewise.
3887         * lib/sigaction.c: Likewise.
3888
3889 2011-02-22  Jim Meyering  <meyering@redhat.com>
3890
3891         maint: adjust cpp indentation to reflect nesting depth
3892         I.e., in a block of code that begins with an unnested "#if",
3893         put one space between the "#" in column 1 and following token.
3894         For example,
3895         -#include <sys/vfs.h>
3896         +# include <sys/vfs.h>
3897         Do this only in .c files that are part of a module I maintain.
3898         * lib/linkat.c: Filter through cppi.
3899         * lib/nanosleep.c: Likewise.
3900         * lib/openat.c: Likewise.
3901         * lib/openat-die.c: Likewise.
3902         * lib/dup3.c: Likewise.
3903         * lib/fchownat.c: Likewise.
3904         * lib/flock.c: Likewise.
3905         * lib/fsync.c: Likewise.
3906         * lib/fts.c: Likewise.
3907         * lib/getpass.c: Likewise.
3908         * lib/gettimeofday.c: Likewise.
3909         * lib/userspec.c: Likewise.
3910         * Makefile (sc_cpp_indent_check): New rule, to check this.
3911
3912 2011-02-22  Bruno Haible  <bruno@clisp.org>
3913
3914         New module 'wctomb'.
3915         * lib/stdlib.in.h (wctomb): New declaration.
3916         * lib/wctomb.c: New file.
3917         * lib/wctomb-impl.h: New file.
3918         * m4/wctomb.m4: New file.
3919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
3920         REPLACE_WCTOMB.
3921         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
3922         REPLACE_WCTOMB.
3923         * modules/wctomb: New file.
3924         * tests/test-stdlib-c++.cc: Test signature of wctomb.
3925         * doc/posix-functions/wctomb.texi: Mention the new module.
3926         * modules/wctob (Depends-on): Add wctomb.
3927
3928 2011-02-22  Bruno Haible  <bruno@clisp.org>
3929
3930         New module 'mbtowc'.
3931         * lib/stdlib.in.h (mbtowc): New declaration.
3932         * lib/mbtowc.c: New file.
3933         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
3934         * m4/mbtowc.m4: New file.
3935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
3936         REPLACE_MBTOWC.
3937         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
3938         REPLACE_MBTOWC.
3939         * modules/mbtowc: New file.
3940         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
3941         * doc/posix-functions/mbtowc.texi: Mention the new module.
3942         * modules/btowc (Depends-on): Add mbtowc.
3943
3944 2011-02-22  Bruno Haible  <bruno@clisp.org>
3945
3946         wcrtomb: Add more tests for native Windows platforms.
3947         * tests/test-wcrtomb-w32-1.sh: New file.
3948         * tests/test-wcrtomb-w32-2.sh: New file.
3949         * tests/test-wcrtomb-w32-3.sh: New file.
3950         * tests/test-wcrtomb-w32-4.sh: New file.
3951         * tests/test-wcrtomb-w32-5.sh: New file.
3952         * tests/test-wcrtomb-w32.c: New file.
3953         * modules/wcrtomb-tests (Files): Add them.
3954         (Makefile.am): Arrange to run these tests.
3955         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
3956         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
3957
3958 2011-02-20  Bruno Haible  <bruno@clisp.org>
3959
3960         wcrtomb: Enhance test.
3961         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
3962
3963 2011-02-20  Bruno Haible  <bruno@clisp.org>
3964
3965         mbrtowc: Tiny optimization.
3966         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
3967
3968 2011-02-20  Jim Meyering  <meyering@redhat.com>
3969
3970         test-exclude.c: remove unmatched #endif
3971         * tests/test-exclude.c: Remove stray #endif, left over from
3972         the change of a week ago.
3973
3974 2011-02-19  Jim Meyering  <meyering@redhat.com>
3975
3976         git-version-gen: skip "-dirty" check when appropriate
3977         * build-aux/git-version-gen: Don't run any git commands when the
3978         version string comes from .tarball-version.  Prior to this, we
3979         would run git update-index --refresh even from a just-unpacked
3980         tarball directory, and that could affect a .git/ directory in a
3981         parent of the build directory.  Reported by Mike Frysinger.
3982
3983 2011-02-19  Bruno Haible  <bruno@clisp.org>
3984
3985         unictype/property-byname: Reduce the size of the 'data' segment.
3986         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
3987
3988 2011-02-19  Bruno Haible  <bruno@clisp.org>
3989
3990         unictype/scripts: Reduce the size of the 'data' segment.
3991         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
3992         '%pic'.
3993         * lib/unictype/scripts_byname.gperf: Regenerated.
3994
3995 2011-02-19  Bruno Haible  <bruno@clisp.org>
3996
3997         stdint: Update documentation.
3998         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
3999
4000 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
4001
4002         stdint: omit redundant check for wchar.h
4003         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
4004         always tests whether wchar.h exists, so remove the now-redundant test.
4005
4006 2011-02-18  Bruno Haible  <bruno@clisp.org>
4007
4008         stdint: Cut dependency to module 'wchar'.
4009         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
4010         include the necessary prerequisites.
4011         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
4012         * modules/stdint (Depends-on): Remove wchar.
4013         (Makefile.am): Substitute HAVE_WCHAR_H.
4014         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
4015
4016 2011-02-18  Eric Blake  <eblake@redhat.com>
4017
4018         longlong: skip, rather than fail, on cross-compilation
4019         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
4020         when cross-compiling; regression from 2011-02-16.
4021
4022 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4023
4024         * NEWS: Mention 2011-02-08 change to stdlib.
4025
4026 2011-02-17  Bruno Haible  <bruno@clisp.org>
4027
4028         getloadavg: Add comments about platforms.
4029         * m4/getloadavg.m4: Add comment.
4030         * lib/getloadavg.c: Likewise.
4031
4032 2011-02-17  Bruno Haible  <bruno@clisp.org>
4033
4034         getloadavg: Fix link error on Solaris 2.6.
4035         * modules/getloadavg (Link): New section.
4036         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
4037         linking test-getloadavg.
4038         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
4039         getloadavg.
4040
4041 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4042
4043         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
4044         It was 'int', but this doesn't match the IRIX 6.5 manual.
4045         Suggested by Bruno Haible in
4046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
4047
4048 2011-02-17  Bruno Haible  <bruno@clisp.org>
4049
4050         havelib: Fix comments.
4051         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
4052         change.
4053
4054 2011-02-17  Bruno Haible  <bruno@clisp.org>
4055
4056         havelib: Update config.rpath.
4057         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
4058
4059 2011-02-17  Bruno Haible  <bruno@clisp.org>
4060
4061         getloadavg test: Add some plausibility checks.
4062         * tests/test-getloadavg.c (check_avg): Print a warning when the value
4063         is improbable.
4064
4065 2011-02-16  Eric Blake  <eblake@redhat.com>
4066
4067         maintainer-makefile: make syntax-check a no-op from tarballs
4068         * top/maint.mk (no-vc-detected): New rule.
4069         (local-checks-available): Use it to avoid hanging if someone tries
4070         'make syntax-check' from a tarball.  Also append to any non-syntax
4071         checks already defined in cfg.mk.
4072
4073 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4074
4075         longlong: tune, particularly for common case of c99
4076
4077         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
4078         or running anything if c99, or if unsigned long long int does not
4079         work.  In either case, we know the answer without further tests.
4080         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
4081         it at most once, and use its results for both long long int and
4082         unsigned long long int.  This is more likely to be efficient in
4083         the common case where the program wants to check for both long
4084         long int and unsigned long long int.
4085         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
4086         since the answer is already known.
4087
4088 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
4089
4090         getloadavg: set errno
4091         * lib/getloadavg.c: Set errno when returning -1.  If no other
4092         error number looks appropriate, set it to ENOSYS if the getloadavg
4093         looks like it can't possibly ever work, ENOTSUP otherwise.
4094         Suggested by Bruno Haible in
4095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
4096
4097         getloadavg: trim unused parts and speed up 'configure'
4098         * NEWS: Document this.
4099         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
4100         always compiled if getloadavg is absent.
4101         Move test code to ...
4102         * tests/test-getloadavg.c: New file, containing previous
4103         contents of test from lib/getloadavg.c.  It also contains
4104         suggestions by Bruno Haible in
4105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
4106         * modules/getloadavg-tests: New file.
4107         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
4108         Do tests in the same order as they're needed for getloadavg.c.
4109         Omit setgid-related tests that generate symbols KMEM_GROUP,
4110         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
4111         Do only the tests that are needed to see whether the system has
4112         getloadavg, moving the other tests into ...
4113         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
4114         NLIST_NAME_UNION; nobody should be using it.  Do not define
4115         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
4116         relevant, as the user of this module shouldn't care how getloadavg
4117         is implemented.
4118
4119         getloadavg: omit unused var
4120         * lib/getloadavg.c (getloadavg): Omit unused local variable.
4121
4122 2011-02-15  Jim Meyering  <meyering@redhat.com>
4123
4124         doc: update users.txt
4125         * users.txt: Update iwhd's URL.
4126
4127 2011-02-13  Bruno Haible  <bruno@clisp.org>
4128
4129         Consistent macro naming for macros that use GCC __attribute__.
4130         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
4131         _ATTRIBUTE_NONNULL_.
4132         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
4133         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
4134         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
4135         ATTRIBUTE_DEPRECATED.
4136         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
4137         ATTRIBUTE_NORETURN.
4138         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4139         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4140         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4141         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4142         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
4143         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
4144         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
4145         ATTRIBUTE_SENTINEL.
4146         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
4147         ATTRIBUTE_RETURN_CHECK.
4148         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
4149         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
4150         ATTRIBUTE_NORETURN.
4151         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
4152         Reported by Paul Eggert.
4153
4154 2011-02-13  Bruno Haible  <bruno@clisp.org>
4155
4156         Don't interfere with a program's definition of __attribute__.
4157         * lib/argp.h (__attribute__): Remove definition.
4158         (_GL_ATTRIBUTE_FORMAT): New macro.
4159         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
4160         * lib/argp-fmtstream.h (__attribute__): Remove definition.
4161         (_GL_ATTRIBUTE_FORMAT): New macro.
4162         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
4163         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
4164         GCC 3 or newer.
4165         * lib/error.h (__attribute__): Remove definition.
4166         (_GL_ATTRIBUTE_FORMAT): New macro.
4167         (error, error_at_line): Use it.
4168         * lib/hash.h (__attribute__): Remove definition.
4169         (ATTRIBUTE_WUR): Update definition. Define always.
4170         * lib/openat.h (__attribute__): Remove definition.
4171         (ATTRIBUTE_NORETURN): Update definition. Define always.
4172         * lib/sigpipe-die.h (__attribute__): Remove definition.
4173         (ATTRIBUTE_NORETURN): Update definition. Define always.
4174         * lib/vasnprintf.h (__attribute__): Remove definition.
4175         (_GL_ATTRIBUTE_FORMAT): New macro.
4176         (asnprintf, vasnprintf): Use it.
4177         * lib/xalloc.h (__attribute__): Remove definition.
4178         (ATTRIBUTE_NORETURN): Update definition. Define always.
4179         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
4180         * lib/xmemdup0.h (__attribute__): Remove definition.
4181         (ATTRIBUTE_NORETURN): Update definition. Define always.
4182         * lib/xprintf.h (__attribute__): Remove definition.
4183         (_GL_ATTRIBUTE_FORMAT): New macro.
4184         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
4185         * lib/xstrtol.h (__attribute__): Remove definition.
4186         (ATTRIBUTE_NORETURN): Update definition. Define always.
4187         * lib/xvasprintf.h (__attribute__): Remove definition.
4188         (_GL_ATTRIBUTE_FORMAT): New macro.
4189         (xasprintf, xvasprintf): Use it.
4190         * tests/test-argmatch.c (__attribute__): Remove definition.
4191         (ATTRIBUTE_NORETURN): Update definition. Define always.
4192         * tests/test-exclude.c (__attribute__): Remove definition.
4193         (ATTRIBUTE_NORETURN): Update definition. Define always.
4194         Reported by Paul Eggert.
4195
4196 2011-02-13  Bruno Haible  <bruno@clisp.org>
4197
4198         mbrtowc: Add more tests for native Windows platforms.
4199         * tests/test-mbrtowc-w32-1.sh: New file.
4200         * tests/test-mbrtowc-w32-2.sh: New file.
4201         * tests/test-mbrtowc-w32-3.sh: New file.
4202         * tests/test-mbrtowc-w32-4.sh: New file.
4203         * tests/test-mbrtowc-w32-5.sh: New file.
4204         * tests/test-mbrtowc-w32.c: New file.
4205         * modules/mbrtowc-tests (Files): Add them.
4206         (Makefile.am): Arrange to run these tests.
4207         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
4208         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
4209
4210 2011-02-13  Bruno Haible  <bruno@clisp.org>
4211
4212         mbrtowc: Work around native Windows bug.
4213         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
4214         guess when no suitable locale for testing was found.
4215         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
4216
4217 2011-02-13  Bruno Haible  <bruno@clisp.org>
4218
4219         mbsinit: Work around mingw bug.
4220         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
4221         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
4222         Windows.
4223         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
4224
4225 2011-02-13  Bruno Haible  <bruno@clisp.org>
4226
4227         mbsinit: Don't crash for a NULL argument.
4228         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
4229         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
4230
4231 2011-02-13  Bruno Haible  <bruno@clisp.org>
4232
4233         Don't interfere with a program's definition of __attribute__.
4234         * lib/stdio.in.h (__attribute__): Remove definition.
4235         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
4236         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
4237         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
4238         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
4239         * lib/string.in.h (__attribute__): Remove definition.
4240         Reported by Paul Eggert.
4241
4242 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4243
4244         stdlib: don't get in the way of non-GCC __attribute__
4245         See thread starting at
4246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
4247         Revert previous stdlib change, installing the following instead:
4248         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
4249         to get in the way of a non-GCC compiler that supports __attribute__.
4250         (_GL_ATTRIBUTE_RETURN): New macro.
4251         (_Exit): Use it instead of __attribute__.
4252
4253 2011-02-12  Bruno Haible  <bruno@clisp.org>
4254
4255         quotearg test: Avoid test failure on mingw.
4256         * tests/test-quotearg.sh: Convert the locale identifier from native
4257         Windows syntax to Unix syntax.
4258
4259 2011-02-12  Bruno Haible  <bruno@clisp.org>
4260
4261         setlocale: Prefer gnulib's override over libintl's override.
4262         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
4263         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
4264         GNULIB_defined_setlocale is set.
4265
4266 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4267
4268         stdlib: support non-GCC __attribute__
4269
4270         Fix a serious and tricky problem encountered when attempting to
4271         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
4272         5.5, but it crashed due to memory corruption on Solaris 10 with
4273         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
4274         bits that are otherwise zero.  This tagging is optional inside
4275         Emacs but is preferred and is used when __attribute__ ((__aligned
4276         (8))) works, as it does with both recent-enough GCC and with Sun C
4277         5.11.  However, Sun C 5.11 is not GCC and does not #define
4278         __GNUC__ and __GNUC_MINOR__.
4279
4280         When I added the getloadavg module to Emacs, it brought in
4281         stdlib.in.h, which contained this fragment:
4282
4283            #ifndef __attribute__
4284            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
4285            #  define __attribute__(Spec)   /* empty */
4286            # endif
4287            #endif
4288
4289         When files that include <stdlib.h> were compiled with Sun C 5.11,
4290         the above code disabled __attribute__ ((__aligned (8))), which
4291         caused variables to not be properly aligned, which eventually led
4292         to the pointer corruption mentioned above.  (This was a bit hard
4293         to diagnose, unfortunately.)
4294
4295         Several "#define __attribute__(X) /* empty */" code snippets need
4296         to be eradicated from Gnulib to work with non-GCC compilers that
4297         support __attribute__.  The Autoconf way to do this is to test for
4298         each kind of attribute that we want support for, and selectively
4299         enable that in source code.
4300
4301         Fix this problem just for stdlib.h, by adding a test for the
4302         __noreturn__ attribute, and change stdlib.in.h to use that test
4303         when needed.  This technique can be easily generalized to the
4304         other *.in.h files and attributes, and a similar technique can be
4305         used for *.h and *.c files.  This patch is enough to solve the
4306         problem for Emacs + getloadavg, and I thought I'd publish it for
4307         feedback before undertaking further, similar fixes in other
4308         modules.
4309
4310         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
4311         because it's not needed for stdlib.h.  It merely substitutes the
4312         value directly into stdlib.h.  We may well need to #define it, or
4313         similar symbols, for other modules, but it's nice to also have an
4314         option to not #define it for applications like Emacs that do not
4315         need it.
4316
4317         * lib/stdlib.in.h (__attribute__): Do not #define.
4318         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
4319         be defined only if the _Exit module is also used.
4320         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
4321         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
4322         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
4323         platforms.
4324         * modules/_Exit (Files): Add m4/attribute.m4.
4325         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
4326         * m4/attribute.m4: New file.
4327
4328 2011-02-12  Bruno Haible  <bruno@clisp.org>
4329
4330         wcsrtombs: Work around bug on native Windows.
4331         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
4332         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
4333         instead of len.
4334         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
4335
4336 2011-02-12  Bruno Haible  <bruno@clisp.org>
4337
4338         mbsrtowcs: Work around bug on native Windows.
4339         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
4340         against mingw bug.
4341         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
4342
4343 2011-02-12  Bruno Haible  <bruno@clisp.org>
4344
4345         Avoid setlocale bugs in tests.
4346         * modules/btowc (Dependencies): Add setlocale.
4347         * modules/c-strcase (Dependencies): Likewise.
4348         * modules/mbmemcasecmp (Dependencies): Likewise.
4349         * modules/mbmemcasecoll (Dependencies): Likewise.
4350         * modules/mbrtowc (Dependencies): Likewise.
4351         * modules/mbscasecmp (Dependencies): Likewise.
4352         * modules/mbscasestr (Dependencies): Likewise.
4353         * modules/mbschr (Dependencies): Likewise.
4354         * modules/mbscspn (Dependencies): Likewise.
4355         * modules/mbsinit (Dependencies): Likewise.
4356         * modules/mbsncasecmp (Dependencies): Likewise.
4357         * modules/mbsnrtowcs (Dependencies): Likewise.
4358         * modules/mbspbrk (Dependencies): Likewise.
4359         * modules/mbspcasecmp (Dependencies): Likewise.
4360         * modules/mbsrchr (Dependencies): Likewise.
4361         * modules/mbsrtowcs (Dependencies): Likewise.
4362         * modules/mbsspn (Dependencies): Likewise.
4363         * modules/mbsstr (Dependencies): Likewise.
4364         * modules/nl_langinfo (Dependencies): Likewise.
4365         * modules/quotearg (Dependencies): Likewise.
4366         * modules/unicase/locale-language (Dependencies): Likewise.
4367         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
4368         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
4369         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
4370         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
4371         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
4372         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
4373         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
4374         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
4375         * modules/vasnprintf-posix (Dependencies): Likewise.
4376         * modules/wcrtomb (Dependencies): Likewise.
4377         * modules/wcsnrtombs (Dependencies): Likewise.
4378         * modules/wcsrtombs (Dependencies): Likewise.
4379
4380 2011-02-12  Bruno Haible  <bruno@clisp.org>
4381
4382         setlocale: Workaround native Windows bug.
4383         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
4384         succeeds but sets LC_CTYPE to "C", report a failure.
4385         * tests/test-setlocale2.sh: New file.
4386         * tests/test-setlocale2.c: New file.
4387         * modules/setlocale-tests (Files): Add the new files.
4388         (Makefile.am): Enable test-setlocale2.sh test.
4389         * doc/posix-functions/setlocale.texi: Mention workaround.
4390
4391 2011-02-11  Bruno Haible  <bruno@clisp.org>
4392
4393         Tests for module 'setlocale'.
4394         * modules/setlocale-tests: New file.
4395         * tests/test-setlocale1.sh: New file.
4396         * tests/test-setlocale1.c: New file.
4397
4398         New module 'setlocale'.
4399         * lib/locale.in.h (setlocale): New declaration.
4400         * lib/setlocale.c: New file, based on
4401         gettext/gettext-runtime/intl/setlocale.c.
4402         * m4/setlocale.m4: New file.
4403         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
4404         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
4405         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
4406         REPLACE_SETLOCALE.
4407         * modules/setlocale: New file.
4408         * tests/test-locale-c++.cc: Test the declaration of setlocale.
4409         * doc/posix-functions/setlocale.texi: Mention the new module.
4410
4411 2011-02-11  Bruno Haible  <bruno@clisp.org>
4412
4413         Prepare for locale dependent tests on mingw.
4414         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
4415         because it has the wrong locale encoding.
4416         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
4417         French_France.1252 instead of "fr".
4418         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
4419         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
4420         because it has the wrong locale encoding.
4421         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
4422         native Windows, try Turkish_Turkey.65001.
4423         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
4424         Chinese_China.54936.
4425
4426         Prepare for locale dependent tests on mingw.
4427         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
4428         differently.
4429         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4430         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4431         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4432         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4433
4434 2011-02-11  Eric Blake  <eblake@redhat.com>
4435
4436         strptime: avoid compiler warnings
4437         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
4438         compiler warnings about dead code.
4439         Reported by Daniel P. Berrange.
4440
4441 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
4442
4443         doc: update users.txt
4444         * users.txt: Add rcs.
4445
4446 2011-02-10  John W. Eaton  <jwe@gnu.org>
4447
4448         doc: update users.txt
4449         * users.txt: Add octave.
4450
4451 2011-02-10  Jim Meyering  <meyering@redhat.com>
4452
4453         doc: update users.txt
4454         * users.txt: Add iwhd.
4455
4456 2011-02-09  Bruno Haible  <bruno@clisp.org>
4457
4458         gnulib-tool: Make copyright notice adjustment more robust.
4459         * gnulib-tool (func_import): In sed_transform_main_lib_file,
4460         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
4461         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
4462         License".
4463         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
4464
4465 2011-02-06  Bruno Haible  <bruno@clisp.org>
4466
4467         New module 'towctrans'.
4468         * modules/towctrans: New file.
4469         * lib/wctype.in.h (towctrans): New declaration.
4470         * lib/towctrans.c: New file.
4471         * lib/towctrans-impl.h: New file.
4472         * m4/towctrans.m4: New file.
4473         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
4474         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
4475         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
4476         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
4477         * doc/posix-functions/towctrans.texi: Mention the new module.
4478
4479 2011-02-06  Bruno Haible  <bruno@clisp.org>
4480
4481         New module 'wctrans'.
4482         * modules/wctrans: New file.
4483         * lib/wctype.in.h (wctrans): New declaration.
4484         * lib/wctrans.c: New file.
4485         * lib/wctrans-impl.h: New file.
4486         * m4/wctrans.m4: New file.
4487         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
4488         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
4489         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
4490         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
4491         * doc/posix-functions/wctrans.texi: Mention the new module.
4492
4493 2011-02-06  Bruno Haible  <bruno@clisp.org>
4494
4495         New module 'iswctype'.
4496         * modules/iswctype: New file.
4497         * lib/wctype.in.h (iswctype): New declaration.
4498         * lib/iswctype.c: New file.
4499         * lib/iswctype-impl.h: New file.
4500         * m4/iswctype.m4: New file.
4501         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
4502         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
4503         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
4504         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
4505         * doc/posix-functions/iswctype.texi: Mention the new module and the
4506         HP-UX 11.00 problem.
4507
4508 2011-02-06  Bruno Haible  <bruno@clisp.org>
4509
4510         New module 'wctype'.
4511         * modules/wctype: Change to represent the wctype() substitute.
4512         * lib/wctype.in.h (wctype): New declaration.
4513         * lib/wctype.c: New file.
4514         * lib/wctype-impl.h: New file.
4515         * m4/wctype.m4: New file.
4516         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
4517         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
4518         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
4519         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
4520         * doc/posix-functions/wctype.texi: Mention the new module and the
4521         HP-UX 11.00 problem.
4522
4523 2011-02-06  Bruno Haible  <bruno@clisp.org>
4524
4525         wctype-h: Ensure wctype_t and wctrans_t are defined.
4526         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
4527         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4528         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4529         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
4530         HAVE_WCTRANS_T.
4531         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
4532
4533 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4534
4535         flock: fix license typo
4536
4537         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
4538         omitted.
4539
4540 2011-02-08  Bruno Haible  <bruno@clisp.org>
4541
4542         Split large sed scripts, for HP-UX sed.
4543         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
4544         to avoid HP-UX limit of 99 commands, in the near future.
4545         * modules/stdlib (Makefile.am): Likewise.
4546         * modules/unistd (Makefile.am): Likewise.
4547         * modules/wchar (Makefile.am): Likewise.
4548         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4549         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
4550         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
4551
4552 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4553             Bruno Haible  <bruno@clisp.org>
4554
4555         stdlib: improve random_r modularization
4556         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
4557         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
4558         you also need the random_r module to get this material right.
4559         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
4560         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
4561         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
4562
4563 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4564
4565         stdlib: don't depend on stdint
4566         * lib/stdlib.in.h: Don't include <stdint.h> merely because
4567         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
4568         be independent of whether stdint.h is needed.
4569         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
4570         here, instead of ...
4571         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
4572         struct random_data should be using the random_r module, not just
4573         the stdlib module (which wouldn't make sense: what package needs
4574         just struct random_data without also needing random_r?).
4575         * modules/stdlib (Depends-on): Remove stdint.
4576
4577         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
4578         See the thread rooted at
4579         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
4580         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
4581         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
4582         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
4583         __VMS)); previously it was always included (via fcntl--.h).
4584         (getloadavg): Do not use c_strtod.  Instead, approximate it by
4585         hand; this is good enough for load averages.  Also, do not use
4586         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
4587         flags directly if available and don't bother otherwise.  (Packages
4588         that need the extra reliability should use the modules that define
4589         these flags on older platforms that lack them.)
4590         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
4591         fcntl-safer.
4592
4593 2011-02-08  Jim Meyering  <meyering@redhat.com>
4594
4595         di-set.h, ino-map.h: add multiple-inclusion guard
4596         Technically, the guard is required only for ino-map.h, due to its
4597         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
4598         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
4599         * lib/ino-map.h: Likewise.
4600
4601 2011-02-06  Bruno Haible  <bruno@clisp.org>
4602
4603         iswblank: Ensure declaration on glibc systems.
4604         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
4605         * modules/iswblank (Dependencies): Add 'extensions'.
4606         * doc/posix-functions/iswblank.texi: Document the glibc problem.
4607
4608 2011-02-06  Bruno Haible  <bruno@clisp.org>
4609
4610         New module 'iswblank'.
4611         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
4612         * modules/iswblank: New file.
4613         * modules/wctype-h (Files): Remove lib/iswblank.c.
4614         (Makefile.am): Substitute GNULIB_ISWBLANK.
4615         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
4616         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
4617         (gl_WCTYPE_H_DEFAULTS): New macro.
4618         (gl_WCTYPE_H): Require it. Remove iswblank related code.
4619         * modules/iswblank-tests: New file.
4620         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
4621         * tests/test-wctype-h.c (main): Remove iswblank tests.
4622         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
4623         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
4624         of 'wctype-h'.
4625         * NEWS: Mention the change.
4626         * modules/mbchar (Depends-on): Add iswblank.
4627
4628 2011-02-08  Bruno Haible  <bruno@clisp.org>
4629
4630         di-set tests: Refactor.
4631         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
4632         unnecessary includes.
4633         (ASSERT): Remove macro.
4634         (main): Make C90 compliant by avoiding variable declaration after
4635         statement.
4636         * modules/di-set-tests (Files): Add tests/macros.h.
4637
4638 2011-02-08  Bruno Haible  <bruno@clisp.org>
4639
4640         ino-map tests: Refactor.
4641         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
4642         unnecessary includes.
4643         (ASSERT): Remove macro.
4644         (main): Make C90 compliant by avoiding variable declaration after
4645         statement.
4646         * modules/ino-map-tests (Files): Add tests/macros.h.
4647
4648 2011-02-08  Jim Meyering  <meyering@redhat.com>
4649
4650         di-set: add "const" to a cast
4651         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
4652         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
4653
4654 2011-02-06  Bruno Haible  <bruno@clisp.org>
4655
4656         Rename module 'wctype' to 'wctype-h'.
4657         * modules/wctype-h: Renamed from modules/wctype.
4658         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
4659         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
4660         (Files, Depends-on, Makefile.am): Update.
4661         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
4662         (Files, Makefile.am): Update.
4663         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
4664         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
4665         * doc/posix-headers/wctype.texi: Update.
4666         * doc/posix-functions/iswalnum.texi: Update.
4667         * doc/posix-functions/iswalpha.texi: Update.
4668         * doc/posix-functions/iswblank.texi: Update.
4669         * doc/posix-functions/iswcntrl.texi: Update.
4670         * doc/posix-functions/iswdigit.texi: Update.
4671         * doc/posix-functions/iswgraph.texi: Update.
4672         * doc/posix-functions/iswlower.texi: Update.
4673         * doc/posix-functions/iswprint.texi: Update.
4674         * doc/posix-functions/iswpunct.texi: Update.
4675         * doc/posix-functions/iswspace.texi: Update.
4676         * doc/posix-functions/iswupper.texi: Update.
4677         * doc/posix-functions/iswxdigit.texi: Update.
4678         * doc/posix-functions/towlower.texi: Update.
4679         * doc/posix-functions/towupper.texi: Update.
4680         * NEWS: Mention the change.
4681         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
4682         * modules/mbchar (Dependencies): Likewise.
4683         * modules/mbswidth (Dependencies): Likewise.
4684         * modules/quotearg (Dependencies): Likewise.
4685         * modules/regex (Dependencies): Likewise.
4686         * modules/wcscasecmp (Dependencies): Likewise.
4687         * modules/wcsncasecmp (Dependencies): Likewise.
4688         * modules/wcwidth (Dependencies): Likewise.
4689
4690 2011-02-06  Bruno Haible  <bruno@clisp.org>
4691
4692         New module 'wcswidth'.
4693         * modules/wcswidth: New file.
4694         * lib/wchar.in.h (wcswidth): New declaration.
4695         * lib/wcswidth.c: New file.
4696         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
4697         * m4/wcswidth.m4: New file.
4698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
4699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
4700         REPLACE_WCSWIDTH.
4701         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
4702         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
4703         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
4704         * doc/posix-functions/wcswidth.texi: Mention the new module.
4705
4706 2011-02-06  Bruno Haible  <bruno@clisp.org>
4707
4708         New module 'wcstok'.
4709         * modules/wcstok: New file.
4710         * lib/wchar.in.h (wcstok): New declaration.
4711         * lib/wcstok.c: New file.
4712         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
4713         * m4/wcstok.m4: New file.
4714         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
4715         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
4716         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
4717         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
4718         * doc/posix-functions/wcstok.texi: Mention the new module.
4719
4720 2011-02-06  Bruno Haible  <bruno@clisp.org>
4721
4722         New module 'wcsstr'.
4723         * modules/wcsstr: New file.
4724         * lib/wchar.in.h (wcsstr): New declaration.
4725         * lib/wcsstr.c: New file.
4726         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
4727         * m4/wcsstr.m4: New file.
4728         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
4729         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
4730         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
4731         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
4732         * doc/posix-functions/wcsstr.texi: Mention the new module.
4733
4734 2011-02-06  Bruno Haible  <bruno@clisp.org>
4735
4736         New module 'wcspbrk'.
4737         * modules/wcspbrk: New file.
4738         * lib/wchar.in.h (wcspbrk): New declaration.
4739         * lib/wcspbrk.c: New file.
4740         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
4741         * m4/wcspbrk.m4: New file.
4742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
4743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
4744         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
4745         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
4746         * doc/posix-functions/wcspbrk.texi: Mention the new module.
4747
4748 2011-02-06  Bruno Haible  <bruno@clisp.org>
4749
4750         New module 'wcsspn'.
4751         * modules/wcsspn: New file.
4752         * lib/wchar.in.h (wcsspn): New declaration.
4753         * lib/wcsspn.c: New file.
4754         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
4755         * m4/wcsspn.m4: New file.
4756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
4757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
4758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
4759         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
4760         * doc/posix-functions/wcsspn.texi: Mention the new module.
4761
4762 2011-02-06  Bruno Haible  <bruno@clisp.org>
4763
4764         New module 'wcscspn'.
4765         * modules/wcscspn: New file.
4766         * lib/wchar.in.h (wcscspn): New declaration.
4767         * lib/wcscspn.c: New file.
4768         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
4769         * m4/wcscspn.m4: New file.
4770         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
4771         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
4772         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
4773         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
4774         * doc/posix-functions/wcscspn.texi: Mention the new module.
4775
4776 2011-02-06  Bruno Haible  <bruno@clisp.org>
4777
4778         New module 'wcsrchr'.
4779         * modules/wcsrchr: New file.
4780         * lib/wchar.in.h (wcsrchr): New declaration.
4781         * lib/wcsrchr.c: New file.
4782         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
4783         * m4/wcsrchr.m4: New file.
4784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
4785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
4786         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
4787         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
4788         * doc/posix-functions/wcsrchr.texi: Mention the new module.
4789
4790 2011-02-06  Bruno Haible  <bruno@clisp.org>
4791
4792         New module 'wcschr'.
4793         * modules/wcschr: New file.
4794         * lib/wchar.in.h (wcschr): New declaration.
4795         * lib/wcschr.c: New file.
4796         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
4797         * m4/wcschr.m4: New file.
4798         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
4799         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
4800         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
4801         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
4802         * doc/posix-functions/wcschr.texi: Mention the new module.
4803
4804 2011-02-06  Bruno Haible  <bruno@clisp.org>
4805
4806         New module 'wcsdup'.
4807         * modules/wcsdup: New file.
4808         * lib/wchar.in.h (wcsdup): New declaration.
4809         * lib/wcsdup.c: New file.
4810         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
4811         * m4/wcsdup.m4: New file.
4812         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
4813         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
4814         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
4815         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
4816         * doc/posix-functions/wcsdup.texi: Mention the new module.
4817
4818 2011-02-06  Bruno Haible  <bruno@clisp.org>
4819
4820         New module 'wcsxfrm'.
4821         * modules/wcsxfrm: New file.
4822         * lib/wchar.in.h (wcsxfrm): New declaration.
4823         * lib/wcsxfrm.c: New file.
4824         * lib/wcsxfrm-impl.h: New file.
4825         * m4/wcsxfrm.m4: New file.
4826         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
4827         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
4828         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
4829         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
4830         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
4831
4832 2011-02-06  Bruno Haible  <bruno@clisp.org>
4833
4834         New module 'wcscoll'.
4835         * modules/wcscoll: New file.
4836         * lib/wchar.in.h (wcscoll): New declaration.
4837         * lib/wcscoll.c: New file.
4838         * lib/wcscoll-impl.h: New file.
4839         * m4/wcscoll.m4: New file.
4840         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
4841         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
4842         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
4843         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
4844         * doc/posix-functions/wcscoll.texi: Mention the new module.
4845
4846 2011-02-06  Bruno Haible  <bruno@clisp.org>
4847
4848         New module 'wcsncasecmp'.
4849         * modules/wcsncasecmp: New file.
4850         * lib/wchar.in.h (wcsncasecmp): New declaration.
4851         * lib/wcsncasecmp.c: New file.
4852         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
4853         * m4/wcsncasecmp.m4: New file.
4854         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
4855         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
4856         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
4857         HAVE_WCSNCASECMP.
4858         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
4859         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
4860
4861 2011-02-06  Bruno Haible  <bruno@clisp.org>
4862
4863         New module 'wcscasecmp'.
4864         * modules/wcscasecmp: New file.
4865         * lib/wchar.in.h (wcscasecmp): New declaration.
4866         * lib/wcscasecmp.c: New file.
4867         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
4868         * m4/wcscasecmp.m4: New file.
4869         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
4870         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
4871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
4872         HAVE_WCSCASECMP.
4873         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
4874         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
4875
4876 2011-02-05  Bruno Haible  <bruno@clisp.org>
4877
4878         New module 'wcsncmp'.
4879         * modules/wcsncmp: New file.
4880         * lib/wchar.in.h (wcsncmp): New declaration.
4881         * lib/wcsncmp.c: New file.
4882         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
4883         * m4/wcsncmp.m4: New file.
4884         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
4885         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
4886         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
4887         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
4888         * doc/posix-functions/wcsncmp.texi: Mention the new module.
4889
4890 2011-02-05  Bruno Haible  <bruno@clisp.org>
4891
4892         New module 'wcscmp'.
4893         * modules/wcscmp: New file.
4894         * lib/wchar.in.h (wcscmp): New declaration.
4895         * lib/wcscmp.c: New file.
4896         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
4897         * m4/wcscmp.m4: New file.
4898         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
4899         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
4900         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
4901         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
4902         * doc/posix-functions/wcscmp.texi: Mention the new module.
4903
4904 2011-02-05  Bruno Haible  <bruno@clisp.org>
4905
4906         New module 'wcsncat'.
4907         * modules/wcsncat: New file.
4908         * lib/wchar.in.h (wcsncat): New declaration.
4909         * lib/wcsncat.c: New file.
4910         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
4911         * m4/wcsncat.m4: New file.
4912         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
4913         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
4914         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
4915         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
4916         * doc/posix-functions/wcsncat.texi: Mention the new module.
4917
4918 2011-02-05  Bruno Haible  <bruno@clisp.org>
4919
4920         New module 'wcscat'.
4921         * modules/wcscat: New file.
4922         * lib/wchar.in.h (wcscat): New declaration.
4923         * lib/wcscat.c: New file.
4924         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
4925         * m4/wcscat.m4: New file.
4926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
4927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
4928         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
4929         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
4930         * doc/posix-functions/wcscat.texi: Mention the new module.
4931
4932 2011-02-05  Bruno Haible  <bruno@clisp.org>
4933
4934         New module 'wcpncpy'.
4935         * modules/wcpncpy: New file.
4936         * lib/wchar.in.h (wcpncpy): New declaration.
4937         * lib/wcpncpy.c: New file.
4938         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
4939         * m4/wcpncpy.m4: New file.
4940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
4941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
4942         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
4943         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
4944         * doc/posix-functions/wcpncpy.texi: Mention the new module.
4945
4946 2011-02-05  Bruno Haible  <bruno@clisp.org>
4947
4948         New module 'wcsncpy'.
4949         * modules/wcsncpy: New file.
4950         * lib/wchar.in.h (wcsncpy): New declaration.
4951         * lib/wcsncpy.c: New file.
4952         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
4953         * m4/wcsncpy.m4: New file.
4954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
4955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
4956         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
4957         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
4958         * doc/posix-functions/wcsncpy.texi: Mention the new module.
4959
4960 2011-02-05  Bruno Haible  <bruno@clisp.org>
4961
4962         New module 'wcpcpy'.
4963         * modules/wcpcpy: New file.
4964         * lib/wchar.in.h (wcpcpy): New declaration.
4965         * lib/wcpcpy.c: New file.
4966         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
4967         * m4/wcpcpy.m4: New file.
4968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
4969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
4970         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
4971         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
4972         * doc/posix-functions/wcpcpy.texi: Mention the new module.
4973
4974 2011-02-05  Bruno Haible  <bruno@clisp.org>
4975
4976         New module 'wcscpy'.
4977         * modules/wcscpy: New file.
4978         * lib/wchar.in.h (wcscpy): New declaration.
4979         * lib/wcscpy.c: New file.
4980         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
4981         * m4/wcscpy.m4: New file.
4982         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
4983         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
4984         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
4985         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
4986         * doc/posix-functions/wcscpy.texi: Mention the new module.
4987
4988 2011-02-05  Bruno Haible  <bruno@clisp.org>
4989
4990         New module 'wcsnlen'.
4991         * modules/wcsnlen: New file.
4992         * lib/wchar.in.h (wcsnlen): New declaration.
4993         * lib/wcsnlen.c: New file.
4994         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
4995         * m4/wcsnlen.m4: New file.
4996         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
4997         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
4998         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
4999         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
5000         * doc/posix-functions/wcsnlen.texi: Mention the new module.
5001
5002 2011-02-05  Bruno Haible  <bruno@clisp.org>
5003
5004         New module 'wcslen'.
5005         * modules/wcslen: New file.
5006         * lib/wchar.in.h (wcslen): New declaration.
5007         * lib/wcslen.c: New file.
5008         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
5009         * m4/wcslen.m4: New file.
5010         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
5011         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
5012         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
5013         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
5014         * doc/posix-functions/wcslen.texi: Mention the new module.
5015
5016 2011-02-05  Bruno Haible  <bruno@clisp.org>
5017
5018         New module 'wmemset'.
5019         * modules/wmemset: New file.
5020         * lib/wchar.in.h (wmemset): New declaration.
5021         * lib/wmemset.c: New file.
5022         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
5023         * m4/wmemset.m4: New file.
5024         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
5025         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
5026         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
5027         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
5028         * doc/posix-functions/wmemset.texi: Mention the new module.
5029
5030 2011-02-05  Bruno Haible  <bruno@clisp.org>
5031
5032         New module 'wmemmove'.
5033         * modules/wmemmove: New file.
5034         * lib/wchar.in.h (wmemmove): New declaration.
5035         * lib/wmemmove.c: New file.
5036         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
5037         * m4/wmemmove.m4: New file.
5038         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
5039         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
5040         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
5041         HAVE_WMEMMOVE.
5042         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
5043         * doc/posix-functions/wmemmove.texi: Mention the new module.
5044
5045 2011-02-05  Bruno Haible  <bruno@clisp.org>
5046
5047         New module 'wmemcpy'.
5048         * modules/wmemcpy: New file.
5049         * lib/wchar.in.h (wmemcpy): New declaration.
5050         * lib/wmemcpy.c: New file.
5051         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
5052         * m4/wmemcpy.m4: New file.
5053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
5054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
5055         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
5056         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
5057         * doc/posix-functions/wmemcpy.texi: Mention the new module.
5058
5059 2011-02-05  Bruno Haible  <bruno@clisp.org>
5060
5061         New module 'wmemcmp'.
5062         * modules/wmemcmp: New file.
5063         * lib/wchar.in.h (wmemcmp): New declaration.
5064         * lib/wmemcmp.c: New file.
5065         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
5066         * m4/wmemcmp.m4: New file.
5067         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
5068         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
5069         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
5070         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
5071         * doc/posix-functions/wmemcmp.texi: Mention the new module.
5072
5073 2011-02-07  Jim Meyering  <meyering@redhat.com>
5074
5075         di-set, ino-map: new modules, from coreutils
5076         * lib/di-set.c: New file.
5077         * lib/di-set.h: Likewise.
5078         * lib/ino-map.c: Likewise.
5079         * lib/ino-map.h: Likewise.
5080         * modules/di-set: Likewise.
5081         * modules/di-set-tests: Likewise.
5082         * modules/ino-map: Likewise.
5083         * modules/ino-map-tests: Likewise.
5084         * tests/test-di-set.c: Likewise.
5085         * tests/test-ino-map.c: Likewise.
5086
5087 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
5088
5089         getloadavg: merge minor changes from Emacs
5090
5091         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
5092         (getloadavg): Use memset, not bzero.
5093
5094         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
5095         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5096         clash (bug#86).
5097
5098 2010-11-14  Bruno Haible  <bruno@clisp.org>
5099
5100         Allow multiple gnulib generated replacements to coexist.
5101         * lib/getopt.in.h (struct option): Avoid identical redefinition.
5102         * lib/inttypes.in.h (imaxdiv_t): Likewise.
5103         * lib/langinfo.in.h (nl_item): Likewise.
5104         * lib/math.in.h (_NaN, NAN): Likewise.
5105         * lib/netdb.in.h (struct addrinfo): Likewise.
5106         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
5107         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
5108         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
5109         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
5110         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
5111         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
5112         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
5113         pthread_mutexattr_init, pthread_mutexattr_settype,
5114         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
5115         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
5116         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
5117         pthread_spin_trylock, pthread_spin_unlock): Likewise.
5118         * lib/sched.in.h (struct sched_param): Likewise.
5119         * lib/se-selinux.in.h (security_class_t, security_context_t,
5120         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
5121         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
5122         lsetfilecon, fsetfilecon, security_check_context,
5123         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
5124         Likewise.
5125         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
5126         Likewise.
5127         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
5128         _gl_function_taking_int_returning_void_t, union sigval,
5129         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
5130         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
5131         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5132         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
5133         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
5134         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
5135         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
5136         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
5137         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
5138         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
5139         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
5140         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
5141         socklen_t, rpl_fd_isset): Likewise.
5142         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
5143         * lib/sys_time.in.h (struct timeval): Likewise.
5144         * lib/sys_times.in.h (struct tms): Likewise.
5145         * lib/sys_utsname.in.h (struct utsname):
5146         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
5147         * lib/unistd.in.h (getpagesize): Likewise.
5148         * lib/wchar.in.h (mbstate_t): Likewise.
5149         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5150         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
5151         towlower, towupper): Likewise.
5152         Reported by Sam Steingold <sds@gnu.org>.
5153
5154 2011-02-05  Eric Blake  <eblake@redhat.com>
5155
5156         unsetenv: work around Haiku issues
5157         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
5158         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
5159
5160 2010-12-30  Bruce Korb  <bkorb@gnu.org>
5161
5162         libposix: avoid calling error() within libposix
5163         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
5164         is defined.
5165
5166 2011-02-05  Eric Blake  <eblake@redhat.com>
5167
5168         strerror_r-posix: port to cygwin
5169         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
5170         implementation.
5171         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
5172         * tests/test-strerror_r.c (main): Fix test.
5173         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5174         issue.
5175
5176 2011-02-05  Bruno Haible  <bruno@clisp.org>
5177
5178         New module 'wmemchr'.
5179         * modules/wmemchr: New file.
5180         * lib/wchar.in.h (wmemchr): New declaration.
5181         * lib/wmemchr.c: New file.
5182         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
5183         * m4/wmemchr.m4: New file.
5184         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
5185         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
5186         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
5187         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
5188         * doc/posix-functions/wmemchr.texi: Mention the new module.
5189
5190 2011-02-04  Eric Blake  <eblake@redhat.com>
5191
5192         fdopendir: detect FreeBSD bug
5193         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
5194         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
5195
5196 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5197
5198         stdbool: do not define HAVE_STDBOOL_H
5199         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
5200         AC_HEADER_STDBOOL.  All uses changed.  Do not define
5201         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
5202         imported from the latest Autoconf git.  It was motivated by Emacs,
5203         which uses gnulib but does not need HAVE_STDBOOL_H.
5204
5205 2011-02-04  Bruno Haible  <bruno@clisp.org>
5206
5207         wcsnrtombs: Prepare for new module wwcsnrtombs.
5208         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
5209         * lib/wcsnrtombs.c: Include it.
5210         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
5211
5212         wcsrtombs: Prepare for new module wwcsrtombs.
5213         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
5214         * lib/wcsrtombs.c: Include it.
5215         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
5216
5217         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
5218         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
5219         * lib/mbsnrtowcs.c: Include it.
5220         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
5221
5222         mbsrtowcs: Prepare for new module mbsrtowwcs.
5223         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
5224         * lib/mbsrtowcs.c: Include it.
5225         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
5226
5227 2011-02-04  Bruno Haible  <bruno@clisp.org>
5228
5229         vasnprintf: Reduce use of malloc for small format strings.
5230         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
5231         (arguments): Add room for the first 7 arguments.
5232         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
5233         (char_directives, u8_directives, u16_directives, u32_directives): Add
5234         room for the first 7 directives.
5235         * lib/printf-parse.c: Include <string.h>.
5236         (PRINTF_PARSE): Change memory handling code so that it uses the first
5237         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
5238         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
5239         Reported by Pádraig Brady <P@draigbrady.com>.
5240
5241 2011-01-31  Eric Blake  <eblake@redhat.com>
5242
5243         dup2: work around Haiku bug
5244         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
5245         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
5246         * doc/posix-functions/dup2.texi (dup2): Document the bug.
5247         * tests/test-dup2.c (main): Enhance test.
5248
5249 2011-01-31  Simon Josefsson  <simon@josefsson.org>
5250
5251         doc: off_t is not available in eglibc 2.11.2 stdio.h.
5252         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
5253         declared by eglibc 2.11.2.
5254         * lib/stdio.in.h: Likewise.
5255
5256 2011-01-31  Eric Blake  <eblake@redhat.com>
5257
5258         ignore-value: add missing test dependency
5259         * tests/test-ignore-value.c: Revert previous change; stdio.h
5260         provides off_t.
5261         * modules/ignore-value-tests (Depends-on): Add missing dependency.
5262
5263 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
5264
5265         mktime: clarify long_int width checking
5266         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
5267         the top level, to make it clearer that the assumption about
5268         long_int width is being checked.  See
5269         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
5270
5271 2011-01-30  Simon Josefsson  <simon@josefsson.org>
5272
5273         ignore-value: Fix self-test.
5274         * tests/test-ignore-value.c: Include sys/types.h for off_t.
5275
5276 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5277
5278         TYPE_MAXIMUM: avoid theoretically undefined behavior
5279         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
5280         negative number, which the C Standard says has undefined behavior.
5281         In practice this is not a problem, but might as well do it by the book.
5282         Reported by Rich Felker and Eric Blake; see
5283         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
5284         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
5285         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5286         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5287         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
5288         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5289         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
5290
5291         mktime: #undef mktime before #defining it
5292         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
5293
5294         mktime: systematically normalize tm_isdst comparisons
5295         * lib/mktime.c (isdst_differ): New function.
5296         (__mktime_internal): Use it systematically for all isdst comparisons.
5297         This completes the fix for libc BZ #6723, and removes the need for
5298         normalizing tm_isdst.  See
5299         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
5300         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
5301
5302         mktime: fix some integer overflow issues and sidestep the rest
5303
5304         This was prompted by a bug report by Benjamin Lindner for MinGW
5305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
5306         His bug is due to signed integer overflow (0 - INT_MIN), and I
5307         I scanned through mktime.c looking for other integer overflow
5308         problems, fixing all the bugs I found.
5309
5310         Although the C Standard says the resulting code is still not safe
5311         in the presence of integer overflow, in practice it should be good
5312         enough for all real-world two's-complement implementations, except
5313         for debugging environments that deliberately trap on integer
5314         overflow (e.g., gcc -ftrapv).
5315
5316         * lib/mktime.c (WRAPV): New macro.
5317         (SHR): Also check that long_int and time_t shift right in the
5318         usual way, before using the fast-but-unportable method.
5319         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
5320         used.  The code already assumed two's complement, so there's
5321         no need to test for alternatives.  All uses removed.
5322         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
5323         the C standard.  Problem reported by Rich Felker in
5324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
5325         (twos_complement_arithmetic): Also check long_int and time_t.
5326         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
5327         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
5328         (__mktime_internal): Avoid integer overflow with unary subtraction
5329         in two instances where -1 - X is an adequate replacement for -X,
5330         since the calculations are approximate.
5331
5332 2011-01-29  Eric Blake  <eblake@redhat.com>
5333
5334         mktime: avoid infinite loop
5335         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
5336         type; behavior is still undefined but portable to all known targets.
5337         Reported by Rich Felker.
5338
5339 2011-01-29  Simon Josefsson  <simon@josefsson.org>
5340
5341         rename, unlink, same-inode: Relicense.
5342         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
5343         * modules/unlink (License): Likewise.
5344         * modules/same-inode (License): Likewise.
5345
5346 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5347
5348         mktime: avoid problems on NetBSD 5 / i386
5349         * lib/mktime.c (long_int): New type.  This works around a problem
5350         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
5351         but time_t is 64 bits, and where I expect the existing code is
5352         wrong in some cases.
5353         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
5354         (ydhms_diff): Bring back the compile-time check for wide-enough
5355         year and yday.
5356
5357         mktime: fix misspelling in comment
5358         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
5359         This merges all recent glibc changes of importance.
5360
5361 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5362
5363         move-if-change: cope with concurrent mv of identical file.
5364         * build-aux/move-if-change (CMPPROG): Accept environment
5365         variable as an override for `cmp'.
5366         (usage): Document CMPPROG.
5367         Adjust comparison to drop stdout.  Cope with failure of mv if
5368         the target file exists and is identical to the source, for
5369         parallel builds.
5370         Report from H.J. Lu against binutils in PR binutils/12283.
5371
5372 2011-01-28  Bruce Korb  <bkorb@gnu.org>
5373
5374         * users.txt: Mention sharutils.
5375
5376 2011-01-28  Simon Josefsson  <simon@josefsson.org>
5377
5378         * users.txt: Mention OATH Toolkit.
5379
5380 2011-01-27  Bruno Haible  <bruno@clisp.org>
5381
5382         Prepare for supporting FreeBSD 10.
5383         * build-aux/config.libpath: Remove handling of freebsd1*.
5384
5385 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
5386
5387         Prepare for supporting FreeBSD 10.
5388         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
5389         match FreeBSD 10.0.
5390
5391 2011-01-27  Bruno Haible  <bruno@clisp.org>
5392
5393         vma-iter, get-rusage-as: Add OpenBSD support.
5394         * modules/vma-iter (configure.ac): Test for mquery.
5395         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
5396         * lib/vma-iter.c: Include <sys/mman.h>.
5397         (vma_iterate): Add an implementation based on mquery().
5398         * lib/resource-ext.h (get_rusage_as): Update comments.
5399         * lib/get-rusage-as.c: Likewise.
5400         * lib/get-rusage-data.c: Likewise.
5401
5402 2011-01-26  Karl Berry  <karl@gnu.org>
5403
5404         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
5405         variables to make it easier to override the makeinfo program used.
5406
5407 2011-01-26  Eric Blake  <eblake@redhat.com>
5408
5409         fcntl: work around Haiku F_DUPFD bugs
5410         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
5411         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
5412         cloexec bit on duplication.
5413         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
5414
5415 2011-01-26  Bruno Haible  <bruno@clisp.org>
5416
5417         Enable memory leak tests on AIX.
5418         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
5419         * tests/test-fprintf-posix3.c (main): Likewise.
5420
5421 2011-01-26  Bruno Haible  <bruno@clisp.org>
5422
5423         Tests for module 'get-rusage-data'.
5424         * modules/get-rusage-data-tests: New file.
5425         * tests/test-get-rusage-data.c: New file.
5426
5427         New module 'get-rusage-data'.
5428         * lib/resource-ext.h (get_rusage_data): New declaration.
5429         * lib/get-rusage-data.c: New file.
5430         * modules/get-rusage-data: New file.
5431
5432 2011-01-25  Bruno Haible  <bruno@clisp.org>
5433
5434         get-rusage-as: Allow for easier testing.
5435         * lib/resource-ext.h (get_rusage_as): Add comment.
5436         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
5437         (main): New function for interactive testing.
5438
5439 2011-01-25  Bruno Haible  <bruno@clisp.org>
5440
5441         vma-iter: Treat Haiku like BeOS.
5442         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
5443         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
5444
5445 2011-01-25  Eric Blake  <eblake@redhat.com>
5446
5447         c-stack: fix regression on cygwin when libsigsegv is present
5448         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
5449
5450 2011-01-24  Bruno Haible  <bruno@clisp.org>
5451
5452         vma-iter: Avoid empty intervals.
5453         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
5454         on an empty interval.
5455
5456 2011-01-24  Jim Meyering  <meyering@redhat.com>
5457
5458         u64: remove unnecessary #include
5459         * lib/u64.h: Don't include <stddef.h>.  It was not used.
5460
5461 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5462
5463         Allow the user to avoid the HAVE_RAW_DECL_* macros.
5464         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
5465
5466 2011-01-23  Bruno Haible  <bruno@clisp.org>
5467
5468         New module 'vma-iter'.
5469         * lib/vma-iter.h: New file.
5470         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
5471         * modules/vma-iter: New file.
5472         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
5473         for get_rusage_as_via_iterator.
5474         (vma_iterate_callback): New function.
5475         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
5476         * modules/get-rusage-as (Depends-on): Add vma-iter.
5477
5478 2011-01-23  Bruno Haible  <bruno@clisp.org>
5479
5480         uninorm: Tweak includes.
5481         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
5482         Reported by Jim Meyering.
5483
5484 2011-01-23  Bruno Haible  <bruno@clisp.org>
5485
5486         get-rusage-as: Improve on NetBSD.
5487         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
5488         /proc, like on FreeBSD.
5489
5490 2011-01-23  Jim Meyering  <meyering@redhat.com>
5491
5492         xreadlink.h: remove unnecessary #include
5493         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
5494
5495         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
5496         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
5497
5498 2011-01-23  Bruno Haible  <bruno@clisp.org>
5499
5500         get-rusage-as: Fix bug.
5501         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
5502         original limit when aborting the first loop.
5503
5504 2011-01-23  Bruno Haible  <bruno@clisp.org>
5505
5506         wctype: Ensure valid C syntax.
5507         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
5508         unconditionally, instead of gl_NEXT_HEADERS conditionally.
5509
5510 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5511
5512         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
5513         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
5514         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
5515         as they are needed only for configure's test case.
5516         This removes two unnecessary symbols from config.h.
5517
5518         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
5519         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
5520         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
5521         AC_CHECK_HEADERS_ONCE on a header that we also invoke
5522         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
5523         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
5524         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
5525         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5526         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5527         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5528         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5529         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5530         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5531         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5532         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5533         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5534         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5535         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5536
5537 2011-01-21  Eric Blake  <eblake@redhat.com>
5538
5539         maintainer-makefile: work with older git for submodule check
5540         * top/maint.mk (public-submodule-commit): Rewrite to avoid
5541         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
5542         Reported by Matthias Bolte.
5543
5544         bootstrap: minor portability fixes
5545         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
5546         (usage): Omit leading capital and trailing . on help phrases, per
5547         GNU Coding Standards.
5548         (check_versions, top level): Prefix messages with script name.
5549
5550 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
5551
5552         bootstrap: support --no-git option
5553         * build-aux/bootstrap: Add --no-git option, to be used when
5554         --gnulib-srcdir points to the exact desired checkout.
5555
5556 2011-01-21  Eric Blake  <eblake@redhat.com>
5557
5558         strerror_r-posix: work with glibc 2.13
5559         * lib/strerror_r.c (strerror_r): Fix return type.
5560
5561 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5562             Bruno Haible  <bruno@clisp.org>
5563
5564         uN_strstr: New unit tests.
5565         * modules/unistr/u8-strstr-tests: New file.
5566         * modules/unistr/u16-strstr-tests: New file.
5567         * modules/unistr/u32-strstr-tests: New file.
5568         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
5569         * tests/unistr/test-u8-strstr.c: New file.
5570         * tests/unistr/test-u16-strstr.c: New file.
5571         * tests/unistr/test-u32-strstr.c: New file.
5572
5573 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5574             Bruno Haible  <bruno@clisp.org>
5575
5576         Make uN_strstr functions O(n) worst-case.
5577         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
5578         16-bit and 32-bit unit cases, use the unibyte algorithm from
5579         lib/mbsstr.c.
5580         * lib/unistr/u8-strstr.c: Include <string.h>.
5581         (UNIT_IS_UINT8_T): New macro.
5582         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
5583         (U_STRLEN, U_STRNLEN): New macros.
5584         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
5585         (U_STRLEN, U_STRNLEN): New macros.
5586         * modules/unistr/u8-strstr (Depends-on): Add strstr.
5587         (configure.ac): Update required libunistring version.
5588         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
5589         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
5590         malloca.
5591         (configure.ac): Update required libunistring version.
5592         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
5593         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
5594         malloca.
5595         (configure.ac): Update required libunistring version.
5596
5597 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5598             Bruno Haible  <bruno@clisp.org>
5599
5600         Prepare for faster uN_strstr functions.
5601         * lib/str-kmp.h: Support definable UNITs.
5602         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
5603         needle_len argument.
5604         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
5605         * lib/mbscasestr.c (mbscasestr): Likewise.
5606
5607 2011-01-21  Pádraig Brady <P@draigBrady.com>
5608
5609         malloca-tests: make faster by unsetting MALLOC_PERTURB_
5610         * tests/test-malloca.c (main): Unset the environment variable
5611         to greatly speed up the test.
5612         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
5613         * modules/malloca-tests: Depend on unsetenv.
5614
5615 2011-01-21  Pádraig Brady <P@draigBrady.com>
5616
5617         ignore-value: remove stdint dependency
5618         * lib/ignore-value.h: Remove <stdint.h>
5619         * modules/ignore-value: Remove stdint dependency.
5620
5621 2011-01-21  Jim Meyering  <meyering@redhat.com>
5622
5623         maint.mk: adjust variable name to be consistent with other gl_ vars
5624         * top/maint.mk (gl_public_submodule_commit): Rename the variable
5625         to be lower case.
5626
5627 2011-01-20  Jim Meyering  <meyering@redhat.com>
5628
5629         maint.mk: make "check" depend on public-submodule-commit by default
5630         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
5631
5632 2011-01-20  Bruno Haible  <bruno@clisp.org>
5633
5634         mbfile, mbiter: Complete change from 2008-12-21.
5635         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
5636         * m4/mbiter.m4 (gl_MBITER): Likewise.
5637
5638 2011-01-20  Jim Meyering  <meyering@redhat.com>
5639
5640         init.sh: insert space between each function name and "()"
5641         * tests/init.sh: Make it a little easier to see that a function's
5642         name is "warn_", and not "warn" when looking at the first part of
5643         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
5644
5645 2011-01-20  Jim Meyering  <meyering@redhat.com>
5646
5647         mountlist: clean up code formatting
5648         * lib/mountlist.c (read_file_system_list): Split a long line,
5649         correct bracing style, use NULL in place of "(struct statfs *)0",
5650         don't parenthesize return value, add spaces around "=" and after
5651         ";-in-for-stmt".
5652
5653 2011-01-14  Markus Duft <mduft@gentoo.org>
5654
5655         mountlist: add support for Interix
5656         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
5657         Apply statvfs to all entries of /dev/fs.
5658         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
5659         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
5660
5661 2011-01-20  Jim Meyering  <meyering@redhat.com>
5662
5663         maint.mk: improve the public-submodule-commit rule
5664         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
5665         to suppress printing of its commands... unless V=1.
5666         Add git submodule's --quiet option to suppress printing of e.g.,
5667         "Entering gnulib" output.
5668         "cd" into $(srcdir) before running git submodule.
5669
5670 2011-01-20  Bruno Haible  <bruno@clisp.org>
5671
5672         include_next: Fix bug introduced on 2011-01-18.
5673         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
5674         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
5675         ac_cv_header_... variable if the second argument is not 'check'.
5676         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
5677         gl_NEXT_HEADERS_INTERNAL.
5678
5679 2011-01-20  Bruno Haible  <bruno@clisp.org>
5680
5681         Allow the user to avoid the GNULIB_TEST_* macros.
5682         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
5683         Suggested by Paul Eggert.
5684
5685 2011-01-14  Jim Meyering  <meyering@redhat.com>
5686
5687         bootstrap: avoid failure when there is no .gitmodules file
5688         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
5689         has been assigned to, even when its value is the empty string.
5690         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
5691         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
5692         Reported by John W. Eaton <jwe@gnu.org>.
5693
5694 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
5695
5696         assume <ctype.h>, ..., <time.h> exist
5697         For years gnulib has been assuming the existence of the headers
5698         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
5699         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
5700         them, since they don't appear to be needed.
5701         * README (Portability guidelines): Document this.
5702         * lib/flock.c: Assume <fcntl.h> exists.
5703         * lib/regex_internal.h: Assume <locale.h> exists.
5704         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
5705         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
5706         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
5707         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
5708         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
5709         * m4/regex.m4 (gl_REGEX): Likewise.
5710         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
5711         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
5712         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
5713         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
5714         * tests/test-argp.c: Likewise.
5715         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
5716
5717         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
5718         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
5719         AA_APPLE_UNIVERSAL_BUILD.  See
5720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
5721         * NEWS: Document this.
5722
5723 2011-01-19  Eric Blake  <eblake@redhat.com>
5724
5725         c-stack: assume stack overflow if SA_SIGINFO unsupported
5726         * lib/c-stack.c (SIGACTION_WORKS): Rename...
5727         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
5728         sigaction will work.
5729         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
5730         behavior match Linux.
5731         * tests/test-c-stack.c (main): Prefer NULL for pointers.
5732
5733         stdbool-tests: accomodate Haiku
5734         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
5735
5736         binary-io: fix O_TEXT on Haiku
5737         * modules/binary-io (Depends-on): Add fcntl-h.
5738         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
5739         than blindly undefining O_TEXT.
5740         Reported by Scott McCreary.
5741
5742 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5743
5744         include_next: do not check for standard headers like stddef.h
5745
5746         I found this problem when modifying Emacs to use gnulib.
5747         I noticed that it added HAVE_STDDEF_H to config.h, even though
5748         gnulib always assumes <stddef.h> exists as per README and this
5749         symbol is unnecessary.
5750         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
5751         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
5752         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
5753         faster for headers like stddef.h that are known to exist.
5754         (gl_CHECK_NEXT_HEADERS): Use it.
5755         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
5756         rather than gl_CHECK_NEXT_HEADERS.
5757         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
5758         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
5759
5760 2011-01-18  Eric Blake  <eblake@redhat.com>
5761
5762         ansi-c++-opt: skip C++ dependency style if C++ is unused
5763         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
5764         tests when we know C++ compilation is not desired.
5765         Reported by Scott McCreary.
5766
5767 2011-01-18  Bruno Haible  <bruno@clisp.org>
5768
5769         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
5770         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
5771         (main): Perform test also when getrlimit and setrlimit don't exist or
5772         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
5773         limiting the address space size using setrlimit, compare the address
5774         space size before and after the the test.
5775         * tests/test-dprintf-posix2.c: Likewise.
5776         * tests/test-fprintf-posix3.sh: Update skip messages.
5777         * tests/test-dprintf-posix2.sh: Likewise.
5778         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
5779         * modules/dprintf-posix-tests (Depends-on): Likewise.
5780         Reported by Bruce Korb <bkorb@gnu.org> and
5781         Gary V. Vaughan <gary@gnu.org>.
5782
5783 2011-01-18  Bruno Haible  <bruno@clisp.org>
5784
5785         get-rusage-as: Improvement for Cygwin.
5786         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
5787         areas that are merely reserved.
5788
5789 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5790
5791         strftime: remove dependencies on multibyte modules
5792
5793         strftime depended on mbrlen, mbsinit, and wchar, but these modules
5794         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
5795         only if __osf__ is defined, and I suspect OSF doesn't need these
5796         other modules.  If my guess is wrong, we'll need to come up with a
5797         variant of strftime that doesn't need the multibyte modules.
5798
5799         I discovered this problem when attempting modify Emacs to use the
5800         strftime module.  With the previous gnulib, this caused Emacs to
5801         need 31 new files, ranging from lib/config.charset to
5802         m4/wint_t.m4.  This was overkill and I expect would be offputting
5803         to the Emacs maintainers.  After this change, only 6 new files are
5804         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
5805         stdbool.m4, and tm_gmtoff.m4.
5806
5807         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
5808         Suggested by Bruno Haible in
5809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
5810         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
5811         and do not check for wchar.h.
5812         * modules/strftime (Files): Remove m4/mbstate_t.m4.
5813         (Depends-on): Remove mbrlen, mbsinit, wchar.
5814
5815 2011-01-18  Bruno Haible  <bruno@clisp.org>
5816
5817         Tests for module 'get-rusage-as'.
5818         * modules/get-rusage-as-tests: New file.
5819         * tests/test-get-rusage-as.c: New file.
5820
5821         New module 'get-rusage-as'.
5822         * modules/get-rusage-as: New file.
5823         * lib/resource-ext.h: New file.
5824         * lib/get-rusage-as.c: New file.
5825
5826 2011-01-17  Eric Blake  <eblake@redhat.com>
5827
5828         sigaction: relax license from LGPLv3+ to LGPLv2+
5829         * modules/sigaction (License): Relax to LGPLv2+.
5830
5831 2011-01-14  Bruno Haible  <bruno@clisp.org>
5832
5833         filemode: Make function declarations usable in C++ mode.
5834         * lib/filemode.h: Enclose function declarations in extern "C" block.
5835         Reported by John W. Eaton <jwe@gnu.org>.
5836
5837 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
5838
5839         save-cwd: no longer include "xgetcwd.h"
5840         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
5841         This avoids a compilation failure in projects that use save-cwd
5842         without also using the xgetcwd module.
5843
5844 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5845
5846         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
5847         This is so that a program like Emacs, which needs only dtoastr,
5848         does not have to bother with distributing and compiling ftoastr
5849         and ldtoastr.
5850         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
5851         * modules/dtoastr, modules/ldtoastr: New files.
5852         * modules/ftoastr: Now works just for 'float'.
5853         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
5854         (Makefile.am): Remove ftoastr.h (not needed and no effect),
5855         dtoastr.c, ldtoastr.c.
5856
5857 2011-01-11  Jim Meyering  <meyering@redhat.com>
5858
5859         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
5860         There is no need to work around the lack of the fchdir function,
5861         since gnulib can now provide a replacement when required.
5862         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
5863         * modules/save-cwd (Depends-on): Add fchdir.
5864
5865 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5866
5867         openat, save-cwd: avoid xmalloc
5868
5869         This removes a direct (but undocumented) dependency of openat on
5870         xalloc, along with an indirect dependency via save-cwd.  It also
5871         removes a dependency of save-cwd on xgetcwd, and thereby
5872         indirectly on xalloc.  This change causes the openat substitute
5873         to fall back on save_cwd when memory is tight, and for save_cwd to
5874         fail instead of dying when memory is tight, but that's good enough.
5875         Problem and initial idea for fix reported by Bastien Roucaries in
5876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
5877
5878         * lib/openat-proc.c: Include stdlib.h (for malloc), not
5879         xalloc.h (for xmalloc).
5880         (openat_proc_name): Use malloc, not xmalloc.
5881         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
5882         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
5883
5884         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
5885         This avoids heap allocation for file names whose lengths are in
5886         the range 512..1023, with the upper bound increasing to at most
5887         4031 depending on the platform's PATH_MAX.  (We do not want
5888         pathmax.h here as it might supply a non-constant PATH_MAX.)
5889         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
5890         Perhaps they should be moved to malloca.h?
5891         (OPENAT_BUFFER_SIZE): Use them.
5892
5893 2011-01-10  Bruno Haible  <bruno@clisp.org>
5894
5895         doc: Update users.txt.
5896         * users.txt: Add recutils.
5897
5898 2011-01-09  Karl Berry  <karl@gnu.org>
5899
5900         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
5901
5902         * doc/configmake.texi: New file.
5903         * doc/gnulib.texi: Include it.
5904         * modules/configmake: Move documentation from here.
5905
5906 2011-01-09  Bruno Haible  <bruno@clisp.org>
5907
5908         Update to Unicode 6.0.0.
5909         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
5910         (get_lbp): Update for Unicode 6.0.0.
5911         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
5912         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
5913         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
5914         U+11001, U+11038..U+11046. Remove U+06DE.
5915         (uc_width): Fix bounds of planes.
5916         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5917         lib/uniwidth/width.c.
5918         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
5919         trailing whitespace removed.
5920         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
5921         without comments, but with the original copyright notice.
5922         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
5923         * lib/unicase/ignorable.h: Likewise.
5924         * lib/unicase/tocasefold.h: Likewise.
5925         * lib/unicase/tolower.h: Likewise.
5926         * lib/unicase/totitle.h: Likewise.
5927         * lib/unicase/toupper.h: Likewise.
5928         * lib/unictype/bidi_of.h: Likewise.
5929         * lib/unictype/blocks.h: Likewise.
5930         * lib/unictype/categ_C.h: Likewise.
5931         * lib/unictype/categ_Cn.h: Likewise.
5932         * lib/unictype/categ_L.h: Likewise.
5933         * lib/unictype/categ_Ll.h: Likewise.
5934         * lib/unictype/categ_Lm.h: Likewise.
5935         * lib/unictype/categ_Lo.h: Likewise.
5936         * lib/unictype/categ_Lu.h: Likewise.
5937         * lib/unictype/categ_M.h: Likewise.
5938         * lib/unictype/categ_Mc.h: Likewise.
5939         * lib/unictype/categ_Me.h: Likewise.
5940         * lib/unictype/categ_Mn.h: Likewise.
5941         * lib/unictype/categ_N.h: Likewise.
5942         * lib/unictype/categ_Nd.h: Likewise.
5943         * lib/unictype/categ_No.h: Likewise.
5944         * lib/unictype/categ_P.h: Likewise.
5945         * lib/unictype/categ_Po.h: Likewise.
5946         * lib/unictype/categ_S.h: Likewise.
5947         * lib/unictype/categ_Sc.h: Likewise.
5948         * lib/unictype/categ_Sk.h: Likewise.
5949         * lib/unictype/categ_Sm.h: Likewise.
5950         * lib/unictype/categ_So.h: Likewise.
5951         * lib/unictype/categ_of.h: Likewise.
5952         * lib/unictype/combining.h: Likewise.
5953         * lib/unictype/ctype_alnum.h: Likewise.
5954         * lib/unictype/ctype_alpha.h: Likewise.
5955         * lib/unictype/ctype_graph.h: Likewise.
5956         * lib/unictype/ctype_lower.h: Likewise.
5957         * lib/unictype/ctype_print.h: Likewise.
5958         * lib/unictype/ctype_punct.h: Likewise.
5959         * lib/unictype/ctype_upper.h: Likewise.
5960         * lib/unictype/decdigit.h: Likewise.
5961         * lib/unictype/digit.h: Likewise.
5962         * lib/unictype/numeric.h: Likewise.
5963         * lib/unictype/pr_alphabetic.h: Likewise.
5964         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5965         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5966         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5967         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5968         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5969         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5970         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5971         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5972         * lib/unictype/pr_case_ignorable.h: Likewise.
5973         * lib/unictype/pr_cased.h: Likewise.
5974         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
5975         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
5976         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
5977         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
5978         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
5979         * lib/unictype/pr_combining.h: Likewise.
5980         * lib/unictype/pr_composite.h: Likewise.
5981         * lib/unictype/pr_currency_symbol.h: Likewise.
5982         * lib/unictype/pr_decimal_digit.h: Likewise.
5983         * lib/unictype/pr_deprecated.h: Likewise.
5984         * lib/unictype/pr_format_control.h: Likewise.
5985         * lib/unictype/pr_grapheme_base.h: Likewise.
5986         * lib/unictype/pr_grapheme_extend.h: Likewise.
5987         * lib/unictype/pr_grapheme_link.h: Likewise.
5988         * lib/unictype/pr_id_continue.h: Likewise.
5989         * lib/unictype/pr_id_start.h: Likewise.
5990         * lib/unictype/pr_ideographic.h: Likewise.
5991         * lib/unictype/pr_lowercase.h: Likewise.
5992         * lib/unictype/pr_math.h: Likewise.
5993         * lib/unictype/pr_numeric.h: Likewise.
5994         * lib/unictype/pr_other_alphabetic.h: Likewise.
5995         * lib/unictype/pr_other_id_continue.h: Likewise.
5996         * lib/unictype/pr_other_math.h: Likewise.
5997         * lib/unictype/pr_punctuation.h: Likewise.
5998         * lib/unictype/pr_sentence_terminal.h: Likewise.
5999         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6000         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6001         * lib/unictype/pr_unified_ideograph.h: Likewise.
6002         * lib/unictype/pr_uppercase.h: Likewise.
6003         * lib/unictype/pr_xid_continue.h: Likewise.
6004         * lib/unictype/pr_xid_start.h: Likewise.
6005         * lib/unictype/scripts.h: Likewise.
6006         * lib/unictype/scripts_byname.gperf: Likewise.
6007         * lib/unictype/sy_java_ident.h: Likewise.
6008         * lib/unigbrk/gbrkprop.h: Likewise.
6009         * lib/unilbrk/lbrkprop1.h: Likewise.
6010         * lib/unilbrk/lbrkprop2.h: Likewise.
6011         * lib/uninorm/decomposition-table2.h: Likewise.
6012         * lib/uniwbrk/wbrkprop.h: Likewise.
6013         * tests/unicase/test-cased.c: Likewise.
6014         * tests/unicase/test-ignorable.c: Likewise.
6015         * tests/unicase/test-uc_tolower.c: Likewise.
6016         * tests/unicase/test-uc_totitle.c: Likewise.
6017         * tests/unicase/test-uc_toupper.c: Likewise.
6018         * tests/unictype/test-categ_C.c: Likewise.
6019         * tests/unictype/test-categ_Cn.c: Likewise.
6020         * tests/unictype/test-categ_L.c: Likewise.
6021         * tests/unictype/test-categ_Ll.c: Likewise.
6022         * tests/unictype/test-categ_Lm.c: Likewise.
6023         * tests/unictype/test-categ_Lo.c: Likewise.
6024         * tests/unictype/test-categ_Lu.c: Likewise.
6025         * tests/unictype/test-categ_M.c: Likewise.
6026         * tests/unictype/test-categ_Mc.c: Likewise.
6027         * tests/unictype/test-categ_Me.c: Likewise.
6028         * tests/unictype/test-categ_Mn.c: Likewise.
6029         * tests/unictype/test-categ_N.c: Likewise.
6030         * tests/unictype/test-categ_Nd.c: Likewise.
6031         * tests/unictype/test-categ_No.c: Likewise.
6032         * tests/unictype/test-categ_P.c: Likewise.
6033         * tests/unictype/test-categ_Po.c: Likewise.
6034         * tests/unictype/test-categ_S.c: Likewise.
6035         * tests/unictype/test-categ_Sc.c: Likewise.
6036         * tests/unictype/test-categ_Sk.c: Likewise.
6037         * tests/unictype/test-categ_Sm.c: Likewise.
6038         * tests/unictype/test-categ_So.c: Likewise.
6039         * tests/unictype/test-ctype_alnum.c: Likewise.
6040         * tests/unictype/test-ctype_alpha.c: Likewise.
6041         * tests/unictype/test-ctype_graph.c: Likewise.
6042         * tests/unictype/test-ctype_lower.c: Likewise.
6043         * tests/unictype/test-ctype_print.c: Likewise.
6044         * tests/unictype/test-ctype_punct.c: Likewise.
6045         * tests/unictype/test-ctype_upper.c: Likewise.
6046         * tests/unictype/test-decdigit.h: Likewise.
6047         * tests/unictype/test-digit.h: Likewise.
6048         * tests/unictype/test-numeric.h: Likewise.
6049         * tests/unictype/test-pr_alphabetic.c: Likewise.
6050         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6051         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6052         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6053         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6054         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6055         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6056         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6057         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6058         * tests/unictype/test-pr_case_ignorable.c: Likewise.
6059         * tests/unictype/test-pr_cased.c: Likewise.
6060         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
6061         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
6062         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
6063         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
6064         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
6065         * tests/unictype/test-pr_combining.c: Likewise.
6066         * tests/unictype/test-pr_composite.c: Likewise.
6067         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6068         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6069         * tests/unictype/test-pr_deprecated.c: Likewise.
6070         * tests/unictype/test-pr_format_control.c: Likewise.
6071         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6072         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6073         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6074         * tests/unictype/test-pr_id_continue.c: Likewise.
6075         * tests/unictype/test-pr_id_start.c: Likewise.
6076         * tests/unictype/test-pr_ideographic.c: Likewise.
6077         * tests/unictype/test-pr_lowercase.c: Likewise.
6078         * tests/unictype/test-pr_math.c: Likewise.
6079         * tests/unictype/test-pr_numeric.c: Likewise.
6080         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6081         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6082         * tests/unictype/test-pr_other_math.c: Likewise.
6083         * tests/unictype/test-pr_punctuation.c: Likewise.
6084         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6085         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6086         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6087         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6088         * tests/unictype/test-pr_uppercase.c: Likewise.
6089         * tests/unictype/test-pr_xid_continue.c: Likewise.
6090         * tests/unictype/test-pr_xid_start.c: Likewise.
6091         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6092         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6093         changes.
6094         * lib/unictype/categ_Cc.h: Likewise.
6095         * lib/unictype/categ_Cf.h: Likewise.
6096         * lib/unictype/categ_Co.h: Likewise.
6097         * lib/unictype/categ_Cs.h: Likewise.
6098         * lib/unictype/categ_Lt.h: Likewise.
6099         * lib/unictype/categ_Nl.h: Likewise.
6100         * lib/unictype/categ_Pc.h: Likewise.
6101         * lib/unictype/categ_Pd.h: Likewise.
6102         * lib/unictype/categ_Pe.h: Likewise.
6103         * lib/unictype/categ_Pf.h: Likewise.
6104         * lib/unictype/categ_Pi.h: Likewise.
6105         * lib/unictype/categ_Ps.h: Likewise.
6106         * lib/unictype/categ_Z.h: Likewise.
6107         * lib/unictype/categ_Zl.h: Likewise.
6108         * lib/unictype/categ_Zp.h: Likewise.
6109         * lib/unictype/categ_Zs.h: Likewise.
6110         * lib/unictype/ctype_blank.h: Likewise.
6111         * lib/unictype/ctype_cntrl.h: Likewise.
6112         * lib/unictype/ctype_digit.h: Likewise.
6113         * lib/unictype/ctype_space.h: Likewise.
6114         * lib/unictype/ctype_xdigit.h: Likewise.
6115         * lib/unictype/mirror.h: Likewise.
6116         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6117         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6118         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6119         * lib/unictype/pr_bidi_control.h: Likewise.
6120         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6121         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6122         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6123         * lib/unictype/pr_bidi_pdf.h: Likewise.
6124         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6125         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6126         * lib/unictype/pr_dash.h: Likewise.
6127         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6128         * lib/unictype/pr_diacritic.h: Likewise.
6129         * lib/unictype/pr_extender.h: Likewise.
6130         * lib/unictype/pr_hex_digit.h: Likewise.
6131         * lib/unictype/pr_hyphen.h: Likewise.
6132         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6133         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6134         * lib/unictype/pr_ignorable_control.h: Likewise.
6135         * lib/unictype/pr_iso_control.h: Likewise.
6136         * lib/unictype/pr_join_control.h: Likewise.
6137         * lib/unictype/pr_left_of_pair.h: Likewise.
6138         * lib/unictype/pr_line_separator.h: Likewise.
6139         * lib/unictype/pr_logical_order_exception.h: Likewise.
6140         * lib/unictype/pr_non_break.h: Likewise.
6141         * lib/unictype/pr_not_a_character.h: Likewise.
6142         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6143         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6144         * lib/unictype/pr_other_id_start.h: Likewise.
6145         * lib/unictype/pr_other_lowercase.h: Likewise.
6146         * lib/unictype/pr_other_uppercase.h: Likewise.
6147         * lib/unictype/pr_paired_punctuation.h: Likewise.
6148         * lib/unictype/pr_paragraph_separator.h: Likewise.
6149         * lib/unictype/pr_pattern_syntax.h: Likewise.
6150         * lib/unictype/pr_pattern_white_space.h: Likewise.
6151         * lib/unictype/pr_private_use.h: Likewise.
6152         * lib/unictype/pr_quotation_mark.h: Likewise.
6153         * lib/unictype/pr_radical.h: Likewise.
6154         * lib/unictype/pr_soft_dotted.h: Likewise.
6155         * lib/unictype/pr_space.h: Likewise.
6156         * lib/unictype/pr_titlecase.h: Likewise.
6157         * lib/unictype/pr_variation_selector.h: Likewise.
6158         * lib/unictype/pr_white_space.h: Likewise.
6159         * lib/unictype/pr_zero_width.h: Likewise.
6160         * lib/unictype/sy_c_ident.h: Likewise.
6161         * lib/unictype/sy_c_whitespace.h: Likewise.
6162         * lib/unictype/sy_java_whitespace.h: Likewise.
6163         * lib/uninorm/composition-table.gperf: Likewise.
6164         * lib/uninorm/decomposition-table1.h: Likewise.
6165         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
6166         LB8.
6167         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6168         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6169         * modules/unictype/*: Bump version number of expected libunistring
6170         version.
6171
6172 2011-01-09  Bruno Haible  <bruno@clisp.org>
6173
6174         Update to Unicode 5.2.0.
6175         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
6176         trailing whitespace removed.
6177
6178 2011-01-09  Bruno Haible  <bruno@clisp.org>
6179
6180         New Unicode character properties, from Unicode 5.2.0.
6181         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
6182         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
6183         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
6184         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
6185         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
6186         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
6187         uc_is_property_cased, uc_is_property_case_ignorable,
6188         uc_is_property_changes_when_lowercased,
6189         uc_is_property_changes_when_uppercased,
6190         uc_is_property_changes_when_titlecased,
6191         uc_is_property_changes_when_casefolded,
6192         uc_is_property_changes_when_casemapped): New declarations.
6193         * lib/unictype/pr_byname.gperf: Add the new properties.
6194         * modules/unictype/property-byname (Depends-on): Depend on the new
6195         properties modules.
6196         * modules/unictype/property-all (Depends-on): Likewise.
6197         * MODULES.html.sh (Unicode string functions): Add
6198         unictype/property-case-ignorable, unictype/property-cased,
6199         unictype/property-changes-when-casefolded,
6200         unictype/property-changes-when-casemapped,
6201         unictype/property-changes-when-lowercased,
6202         unictype/property-changes-when-titlecased,
6203         unictype/property-changes-when-uppercased.
6204
6205         New module 'unictype/property-changes-when-casemapped'.
6206         * modules/unictype/property-changes-when-casemapped: New file.
6207         * lib/unictype/pr_changes_when_casemapped.c: New file.
6208         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
6209         generated by gen-uni-tables.
6210         * modules/unictype/property-changes-when-casemapped-tests: New file.
6211         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
6212         automatically generated by gen-uni-tables.
6213
6214         New module 'unictype/property-changes-when-casefolded'.
6215         * modules/unictype/property-changes-when-casefolded: New file.
6216         * lib/unictype/pr_changes_when_casefolded.c: New file.
6217         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
6218         generated by gen-uni-tables.
6219         * modules/unictype/property-changes-when-casefolded-tests: New file.
6220         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
6221         automatically generated by gen-uni-tables.
6222
6223         New module 'unictype/property-changes-when-titlecased'.
6224         * modules/unictype/property-changes-when-titlecased: New file.
6225         * lib/unictype/pr_changes_when_titlecased.c: New file.
6226         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
6227         generated by gen-uni-tables.
6228         * modules/unictype/property-changes-when-titlecased-tests: New file.
6229         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
6230         automatically generated by gen-uni-tables.
6231
6232         New module 'unictype/property-changes-when-uppercased'.
6233         * modules/unictype/property-changes-when-uppercased: New file.
6234         * lib/unictype/pr_changes_when_uppercased.c: New file.
6235         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
6236         generated by gen-uni-tables.
6237         * modules/unictype/property-changes-when-uppercased-tests: New file.
6238         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
6239         automatically generated by gen-uni-tables.
6240
6241         New module 'unictype/property-changes-when-lowercased'.
6242         * modules/unictype/property-changes-when-lowercased: New file.
6243         * lib/unictype/pr_changes_when_lowercased.c: New file.
6244         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
6245         generated by gen-uni-tables.
6246         * modules/unictype/property-changes-when-lowercased-tests: New file.
6247         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
6248         automatically generated by gen-uni-tables.
6249
6250         New module 'unictype/property-case-ignorable'.
6251         * modules/unictype/property-case-ignorable: New file.
6252         * lib/unictype/pr_case_ignorable.c: New file.
6253         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
6254         by gen-uni-tables.
6255         * modules/unictype/property-case-ignorable-tests: New file.
6256         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
6257         generated by gen-uni-tables.
6258
6259         New module 'unictype/property-cased'.
6260         * modules/unictype/property-cased: New file.
6261         * lib/unictype/pr_cased.c: New file.
6262         * lib/unictype/pr_cased.h: New file, automatically generated by
6263         gen-uni-tables.
6264         * modules/unictype/property-cased-tests: New file.
6265         * tests/unictype/test-pr_cased.c: New file, automatically generated by
6266         gen-uni-tables.
6267
6268 2011-01-09  Bruno Haible  <bruno@clisp.org>
6269
6270         Update to Unicode 5.2.0.
6271         * lib/gen-uni-tables.c (output_predicate, output_category,
6272         output_combclass, output_bidi_category, output_decimal_digit_test,
6273         output_decimal_digit, output_digit_test, output_digit,
6274         output_numeric_test, output_numeric, output_mirror, output_scripts,
6275         output_scripts_byname, output_blocks, output_ident_category): Fix
6276         comment header.
6277         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
6278         get_wbp.
6279         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
6280         items.
6281         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
6282         Changes_When_Lowercased, Changes_When_Uppercased,
6283         Changes_When_Titlecased, Changes_When_Casefolded,
6284         Changes_When_Casemapped.
6285         (is_property_alphabetic, is_property_default_ignorable_code_point):
6286         Update for Unicode 5.2.0.
6287         (is_property_cased, is_property_case_ignorable,
6288         is_property_changes_when_lowercased,
6289         is_property_changes_when_uppercased,
6290         is_property_changes_when_titlecased,
6291         is_property_changes_when_casefolded,
6292         is_property_changes_when_casemapped): New functions.
6293         (output_properties): Output also the properties cased, case_ignorable,
6294         changes_when_lowercased, changes_when_uppercased,
6295         changes_when_titlecased, changes_when_casefolded,
6296         changes_when_casemapped.
6297         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
6298         Unicode TR#11 revision 17 -> 19.
6299         (LBP_CP): New enumeration value.
6300         (LBP_*): Adjust values accordingly.
6301         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6302         TR#14 revision 22 -> 24.
6303         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
6304         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
6305         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6306         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
6307         is_WBP_MIDLETTER.
6308         (output_composition_tables): Allow for 24 bits instead of 16 bits in
6309         the code1 and code2 of each composition rule.
6310         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
6311         * lib/unicase/ignorable.h: Likewise.
6312         * lib/unicase/tocasefold.h: Likewise.
6313         * lib/unicase/tolower.h: Likewise.
6314         * lib/unicase/totitle.h: Likewise.
6315         * lib/unicase/toupper.h: Likewise.
6316         * lib/unictype/bidi_of.h: Likewise.
6317         * lib/unictype/blocks.h: Likewise.
6318         * lib/unictype/categ_C.h: Likewise.
6319         * lib/unictype/categ_Cf.h: Likewise.
6320         * lib/unictype/categ_Cn.h: Likewise.
6321         * lib/unictype/categ_L.h: Likewise.
6322         * lib/unictype/categ_Ll.h: Likewise.
6323         * lib/unictype/categ_Lm.h: Likewise.
6324         * lib/unictype/categ_Lo.h: Likewise.
6325         * lib/unictype/categ_Lu.h: Likewise.
6326         * lib/unictype/categ_M.h: Likewise.
6327         * lib/unictype/categ_Mc.h: Likewise.
6328         * lib/unictype/categ_Mn.h: Likewise.
6329         * lib/unictype/categ_N.h: Likewise.
6330         * lib/unictype/categ_Nd.h: Likewise.
6331         * lib/unictype/categ_Nl.h: Likewise.
6332         * lib/unictype/categ_No.h: Likewise.
6333         * lib/unictype/categ_P.h: Likewise.
6334         * lib/unictype/categ_Pd.h: Likewise.
6335         * lib/unictype/categ_Po.h: Likewise.
6336         * lib/unictype/categ_S.h: Likewise.
6337         * lib/unictype/categ_Sc.h: Likewise.
6338         * lib/unictype/categ_So.h: Likewise.
6339         * lib/unictype/categ_of.h: Likewise.
6340         * lib/unictype/combining.h: Likewise.
6341         * lib/unictype/ctype_alnum.h: Likewise.
6342         * lib/unictype/ctype_alpha.h: Likewise.
6343         * lib/unictype/ctype_graph.h: Likewise.
6344         * lib/unictype/ctype_lower.h: Likewise.
6345         * lib/unictype/ctype_print.h: Likewise.
6346         * lib/unictype/ctype_punct.h: Likewise.
6347         * lib/unictype/ctype_upper.h: Likewise.
6348         * lib/unictype/decdigit.h: Likewise.
6349         * lib/unictype/digit.h: Likewise.
6350         * lib/unictype/numeric.h: Likewise.
6351         * lib/unictype/pr_alphabetic.h: Likewise.
6352         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6353         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6354         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6355         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6356         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6357         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6358         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6359         * lib/unictype/pr_combining.h: Likewise.
6360         * lib/unictype/pr_composite.h: Likewise.
6361         * lib/unictype/pr_currency_symbol.h: Likewise.
6362         * lib/unictype/pr_dash.h: Likewise.
6363         * lib/unictype/pr_decimal_digit.h: Likewise.
6364         * lib/unictype/pr_deprecated.h: Likewise.
6365         * lib/unictype/pr_diacritic.h: Likewise.
6366         * lib/unictype/pr_extender.h: Likewise.
6367         * lib/unictype/pr_grapheme_base.h: Likewise.
6368         * lib/unictype/pr_grapheme_extend.h: Likewise.
6369         * lib/unictype/pr_grapheme_link.h: Likewise.
6370         * lib/unictype/pr_id_continue.h: Likewise.
6371         * lib/unictype/pr_id_start.h: Likewise.
6372         * lib/unictype/pr_ideographic.h: Likewise.
6373         * lib/unictype/pr_ignorable_control.h: Likewise.
6374         * lib/unictype/pr_logical_order_exception.h: Likewise.
6375         * lib/unictype/pr_lowercase.h: Likewise.
6376         * lib/unictype/pr_numeric.h: Likewise.
6377         * lib/unictype/pr_other_alphabetic.h: Likewise.
6378         * lib/unictype/pr_punctuation.h: Likewise.
6379         * lib/unictype/pr_sentence_terminal.h: Likewise.
6380         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6381         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6382         * lib/unictype/pr_unified_ideograph.h: Likewise.
6383         * lib/unictype/pr_uppercase.h: Likewise.
6384         * lib/unictype/pr_xid_continue.h: Likewise.
6385         * lib/unictype/pr_xid_start.h: Likewise.
6386         * lib/unictype/pr_zero_width.h: Likewise.
6387         * lib/unictype/scripts.h: Likewise.
6388         * lib/unictype/scripts_byname.gperf: Likewise.
6389         * lib/unictype/sy_java_ident.h: Likewise.
6390         * lib/unigbrk/gbrkprop.h: Likewise.
6391         * lib/unilbrk/lbrkprop1.h: Likewise.
6392         * lib/unilbrk/lbrkprop2.h: Likewise.
6393         * lib/unilbrk/lbrktables.h: Likewise.
6394         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
6395         LBP_CP. Implement rule LB30.
6396         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
6397         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
6398         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
6399         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
6400         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
6401         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
6402         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
6403         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
6404         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
6405         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
6406         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
6407         bits instead of 16 bits in the code1 and code2 of each composition
6408         rule.
6409         (uc_composition): Update for Unicode 5.2.0.
6410         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
6411         * lib/uninorm/decomposition-table2.h: Likewise.
6412         * lib/uniwbrk/wbrkprop.h: Likewise.
6413         * tests/unicase/test-cased.c: Likewise.
6414         * tests/unicase/test-ignorable.c: Likewise.
6415         * tests/unicase/test-uc_tolower.c: Likewise.
6416         * tests/unicase/test-uc_totitle.c: Likewise.
6417         * tests/unicase/test-uc_toupper.c: Likewise.
6418         * tests/unictype/test-categ_C.c: Likewise.
6419         * tests/unictype/test-categ_Cf.c: Likewise.
6420         * tests/unictype/test-categ_Cn.c: Likewise.
6421         * tests/unictype/test-categ_L.c: Likewise.
6422         * tests/unictype/test-categ_Ll.c: Likewise.
6423         * tests/unictype/test-categ_Lm.c: Likewise.
6424         * tests/unictype/test-categ_Lo.c: Likewise.
6425         * tests/unictype/test-categ_Lu.c: Likewise.
6426         * tests/unictype/test-categ_M.c: Likewise.
6427         * tests/unictype/test-categ_Mc.c: Likewise.
6428         * tests/unictype/test-categ_Mn.c: Likewise.
6429         * tests/unictype/test-categ_N.c: Likewise.
6430         * tests/unictype/test-categ_Nd.c: Likewise.
6431         * tests/unictype/test-categ_Nl.c: Likewise.
6432         * tests/unictype/test-categ_No.c: Likewise.
6433         * tests/unictype/test-categ_P.c: Likewise.
6434         * tests/unictype/test-categ_Pd.c: Likewise.
6435         * tests/unictype/test-categ_Po.c: Likewise.
6436         * tests/unictype/test-categ_S.c: Likewise.
6437         * tests/unictype/test-categ_Sc.c: Likewise.
6438         * tests/unictype/test-categ_So.c: Likewise.
6439         * tests/unictype/test-ctype_alnum.c: Likewise.
6440         * tests/unictype/test-ctype_alpha.c: Likewise.
6441         * tests/unictype/test-ctype_graph.c: Likewise.
6442         * tests/unictype/test-ctype_lower.c: Likewise.
6443         * tests/unictype/test-ctype_print.c: Likewise.
6444         * tests/unictype/test-ctype_punct.c: Likewise.
6445         * tests/unictype/test-ctype_upper.c: Likewise.
6446         * tests/unictype/test-decdigit.h: Likewise.
6447         * tests/unictype/test-digit.h: Likewise.
6448         * tests/unictype/test-numeric.h: Likewise.
6449         * tests/unictype/test-pr_alphabetic.c: Likewise.
6450         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6451         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6452         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6453         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6454         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6455         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6456         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6457         * tests/unictype/test-pr_combining.c: Likewise.
6458         * tests/unictype/test-pr_composite.c: Likewise.
6459         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6460         * tests/unictype/test-pr_dash.c: Likewise.
6461         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6462         * tests/unictype/test-pr_deprecated.c: Likewise.
6463         * tests/unictype/test-pr_diacritic.c: Likewise.
6464         * tests/unictype/test-pr_extender.c: Likewise.
6465         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6466         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6467         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6468         * tests/unictype/test-pr_id_continue.c: Likewise.
6469         * tests/unictype/test-pr_id_start.c: Likewise.
6470         * tests/unictype/test-pr_ideographic.c: Likewise.
6471         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6472         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6473         * tests/unictype/test-pr_lowercase.c: Likewise.
6474         * tests/unictype/test-pr_numeric.c: Likewise.
6475         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6476         * tests/unictype/test-pr_punctuation.c: Likewise.
6477         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6478         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6479         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6480         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6481         * tests/unictype/test-pr_uppercase.c: Likewise.
6482         * tests/unictype/test-pr_xid_continue.c: Likewise.
6483         * tests/unictype/test-pr_xid_start.c: Likewise.
6484         * tests/unictype/test-pr_zero_width.c: Likewise.
6485         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6486         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
6487         changed behaviour: line breaking is now disallowed between a letter
6488         or '=' and '('.
6489         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6490         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6491         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
6492         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
6493         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6494         lib/uniwidth/width.c.
6495         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
6496         without comments, but with the original copyright notice.
6497         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6498         changes.
6499         * lib/unictype/categ_Cc.h: Likewise.
6500         * lib/unictype/categ_Co.h: Likewise.
6501         * lib/unictype/categ_Cs.h: Likewise.
6502         * lib/unictype/categ_Lt.h: Likewise.
6503         * lib/unictype/categ_Me.h: Likewise.
6504         * lib/unictype/categ_Pc.h: Likewise.
6505         * lib/unictype/categ_Pe.h: Likewise.
6506         * lib/unictype/categ_Pf.h: Likewise.
6507         * lib/unictype/categ_Pi.h: Likewise.
6508         * lib/unictype/categ_Ps.h: Likewise.
6509         * lib/unictype/categ_Sk.h: Likewise.
6510         * lib/unictype/categ_Sm.h: Likewise.
6511         * lib/unictype/categ_Z.h: Likewise.
6512         * lib/unictype/categ_Zl.h: Likewise.
6513         * lib/unictype/categ_Zp.h: Likewise.
6514         * lib/unictype/categ_Zs.h: Likewise.
6515         * lib/unictype/ctype_blank.h: Likewise.
6516         * lib/unictype/ctype_cntrl.h: Likewise.
6517         * lib/unictype/ctype_digit.h: Likewise.
6518         * lib/unictype/ctype_space.h: Likewise.
6519         * lib/unictype/ctype_xdigit.h: Likewise.
6520         * lib/unictype/mirror.h: Likewise.
6521         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6522         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6523         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6524         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6525         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6526         * lib/unictype/pr_bidi_control.h: Likewise.
6527         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6528         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6529         * lib/unictype/pr_bidi_pdf.h: Likewise.
6530         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6531         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6532         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6533         * lib/unictype/pr_format_control.h: Likewise.
6534         * lib/unictype/pr_hex_digit.h: Likewise.
6535         * lib/unictype/pr_hyphen.h: Likewise.
6536         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6537         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6538         * lib/unictype/pr_iso_control.h: Likewise.
6539         * lib/unictype/pr_join_control.h: Likewise.
6540         * lib/unictype/pr_left_of_pair.h: Likewise.
6541         * lib/unictype/pr_line_separator.h: Likewise.
6542         * lib/unictype/pr_math.h: Likewise.
6543         * lib/unictype/pr_non_break.h: Likewise.
6544         * lib/unictype/pr_not_a_character.h: Likewise.
6545         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6546         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6547         * lib/unictype/pr_other_id_continue.h: Likewise.
6548         * lib/unictype/pr_other_id_start.h: Likewise.
6549         * lib/unictype/pr_other_lowercase.h: Likewise.
6550         * lib/unictype/pr_other_math.h: Likewise.
6551         * lib/unictype/pr_other_uppercase.h: Likewise.
6552         * lib/unictype/pr_paired_punctuation.h: Likewise.
6553         * lib/unictype/pr_paragraph_separator.h: Likewise.
6554         * lib/unictype/pr_pattern_syntax.h: Likewise.
6555         * lib/unictype/pr_pattern_white_space.h: Likewise.
6556         * lib/unictype/pr_private_use.h: Likewise.
6557         * lib/unictype/pr_quotation_mark.h: Likewise.
6558         * lib/unictype/pr_radical.h: Likewise.
6559         * lib/unictype/pr_soft_dotted.h: Likewise.
6560         * lib/unictype/pr_space.h: Likewise.
6561         * lib/unictype/pr_titlecase.h: Likewise.
6562         * lib/unictype/pr_variation_selector.h: Likewise.
6563         * lib/unictype/pr_white_space.h: Likewise.
6564         * lib/unictype/sy_c_ident.h: Likewise.
6565         * lib/unictype/sy_c_whitespace.h: Likewise.
6566         * lib/unictype/sy_java_whitespace.h: Likewise.
6567         * modules/uni*/*: Bump version number of expected libunistring version.
6568         Reported by Simon Josefsson.
6569
6570 2011-01-09  Karl Heuer  <kwzh@gnu.org>
6571
6572         useless-if-before-free: fix typo in --help and make the internal,
6573         automatic version date update process work once again.
6574         --help output contained a NUL character instead of the
6575         backslash-zero that was intended.  Also, the "must lie within
6576         the first 8 lines" line is on line 9, and hence not getting
6577         automatically updated.
6578         * build-aux/useless-if-before-free: Fix the former by adding a
6579         backslash, and the latter by condensing the three lines of what-it-does
6580         to a single line, leaving one line of slack for the future.
6581
6582 2011-01-09  Bruno Haible  <bruno@clisp.org>
6583
6584         uniwidth/width: Fix width of U+1D173..U+1D17A.
6585         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
6586         symbolic_width, output_width_property_test): New functions.
6587         (main): Invoke output_nonspacing_property, output_width_property_test.
6588         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
6589         U+1D173..U+1D17A.
6590         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
6591         1.
6592         * modules/uniwidth/*: Bump version number of expected libunistring
6593         version.
6594         * modules/unilbrk/*: Likewise.
6595
6596 2011-01-08  Bruno Haible  <bruno@clisp.org>
6597
6598         uninorm tests: Preserve copyright of Unicode data file.
6599         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
6600         Mention modifications.
6601
6602 2011-01-08  Bruno Haible  <bruno@clisp.org>
6603
6604         gen-uni-tables: Prepare for Unicode 5.2.0.
6605         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
6606         (debug_output_lbp, output_lbp): Update.
6607
6608 2011-01-08  Bruno Haible  <bruno@clisp.org>
6609
6610         unilbrk: Clarify gen-uni-tables.c code.
6611         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
6612         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
6613         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
6614
6615 2011-01-07  Bruno Haible  <bruno@clisp.org>
6616
6617         strtod: Restore errno when successfully parsing Infinity or NaN.
6618         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
6619         restore the original errno.
6620
6621 2011-01-07  Bruno Haible  <bruno@clisp.org>
6622
6623         remove test: Avoid failure on HP-UX 11.
6624         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
6625
6626 2011-01-07  Bruno Haible  <bruno@clisp.org>
6627
6628         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
6629         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
6630         error code.
6631
6632 2011-01-07  Pádraig Brady <P@draigBrady.com>
6633
6634         ignore-value: fixup comments, and add Eric Blake
6635         as an author since he rewrote the macros.
6636         * lib/ignore-value.h (ignore_value):  State that
6637         we now support aggregates.  Also specify exactly
6638         when the GCC warn_unused_result feature was added.
6639
6640 2011-01-06  Eric Blake  <eblake@redhat.com>
6641
6642         ignore-value: support aggregate types
6643         * lib/ignore-value.h (ignore_value): Provide separate gcc
6644         definition.
6645         * modules/ignore-value-tests: New test module.
6646         * tests/test-ignore-value.c: New test.
6647
6648         maint.mk: improve sc_prohibit_strcmp regex
6649         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
6650         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
6651         definition of STRNEQ.
6652
6653         signal: work around Haiku issue with SIGBUS
6654         * lib/siglist.h: Add comment.
6655         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
6656         strsignal's favoring of SIGSEGV.
6657         * tests/test-signal.c (main): Avoid test failure.
6658         * doc/posix-headers/signal.texi (signal.h): Document the issue.
6659         Reported by Scott McCreary.
6660
6661         maint.mk: add pre-release check to ensure submodule commits are public
6662         * top/maint.mk (public-submodule-commit): New rule.
6663         (submodule-checks): New variable.
6664         (alpha beta stable): Depend on the variable.
6665
6666 2011-01-05  Pádraig Brady <P@draigBrady.com>
6667         and Jim Meyering  <meyering@redhat.com>
6668
6669         ignore-value: make ignore_value more generic; deprecate ignore_ptr
6670         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
6671         (ATTRIBUTE_DEPRECATED): Define.
6672         (_ignore_case): New function.
6673         (ignore_value): New macro, to replace the old function.
6674         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
6675         * modules/ignore-value (Depends-on): Add stdint.
6676
6677 2011-01-04  Eric Blake  <eblake@redhat.com>
6678
6679         doc: regenerate INSTALL
6680         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
6681         @firstparagraphindent support, now that autoconf dropped it.
6682         (INSTALL_PRELUDE): Reinstate old macro.
6683         * doc/install.texi: Resync from autoconf.
6684         * doc/INSTALL: Reflect recent autoconf update.
6685         * doc/INSTALL.ISO: Likewise.
6686         * doc/INSTALL.UTF-8: Likewise.
6687         Reported by Karl Berry.
6688
6689 2011-01-04  Bruce Korb  <address@hidden>
6690
6691         git-version-gen: avoid a sub-shell
6692         * build-aux/git-version-gen: Redirect stderr in `...` via
6693         "exec 2>...", rather than via an added sub-shell.
6694
6695 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
6696
6697         git-version-gen: use (...) rather than sh -c '...'
6698         * build-aux/git-version-gen: Rather than hard-coding a shell's name
6699         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
6700
6701 2011-01-03  Jim Meyering  <meyering@redhat.com>
6702
6703         git-version-gen: convert leading TABs to spaces
6704         * build-aux/git-version-gen: Expand leading TABs.
6705
6706         git-version-gen: handle failed "git rev-list"
6707         * build-aux/git-version-gen: Rather than leaking a "fatal" error
6708         from git and proceeding as if it had succeeded but printed no SHA1
6709         checksums, suppress the diagnostic and handle the failure.
6710         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
6711
6712         git-version-gen: include command name in one more diagnostic
6713         * build-aux/git-version-gen: When the required .tarball-version file
6714         was missing or unreadable, you might see the diagnostic from "cat",
6715         but no trace of the name of the invoking script.  Now, you still see
6716         the diagnostic from cat, but also get one from "git-version-gen: ".
6717         Inspired by a patch from Bruce Korb.
6718
6719         update-copyright: adjust test to match changed code
6720         * tests/test-update-copyright.sh: Change test's expected output
6721         to match new actual output.
6722
6723 2011-01-02  Bruno Haible  <bruno@clisp.org>
6724
6725         getlogin_r: Avoid test failure on HP-UX 11.
6726         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
6727         ERANGE when the second argument is zero.
6728         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
6729         portability problem.
6730
6731 2011-01-02  Bruce Korb  <bkorb@gnu.org>
6732
6733         * build-aux/update-copyright: doc Simon's changes
6734
6735 2011-01-02  Simon Josefsson  <simon@josefsson.org>
6736
6737         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
6738         environment variable.
6739
6740 2011-01-02  Bruno Haible  <bruno@clisp.org>
6741
6742         unigbrk: Avoid gcc warnings.
6743         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
6744         unused variable.
6745         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
6746         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
6747         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
6748         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
6749         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
6750         Change type of first argument to 'const char *'.
6751         (main): Remove unused variable.
6752         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
6753         type of first argument to 'const char *'.
6754         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
6755         Likewise.
6756         (main): Change type of variable 's'.
6757         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
6758         to 'int'.
6759
6760 2011-01-02  Bruno Haible  <bruno@clisp.org>
6761
6762         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
6763         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
6764         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
6765         bug.
6766         * lib/pwrite.c: Undo 2010-12-31 patch.
6767         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
6768
6769 2011-01-02  Bruno Haible  <bruno@clisp.org>
6770
6771         pread: Fix test whether it works.
6772         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
6773
6774 2011-01-02  Bruno Haible  <bruno@clisp.org>
6775
6776         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
6777         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
6778         ends in "6". Don't require a specific month name. Try also the locale
6779         names found on HP-UX 11 and Solaris 7.
6780
6781 2011-01-02  Bruno Haible  <bruno@clisp.org>
6782
6783         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
6784         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
6785         C linkage.
6786         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
6787
6788 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6789
6790         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
6791         for consistency, since the "cluster" term is not used elsewhere.
6792         * lib/unigbrk.in.h: Update name.
6793         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
6794         * lib/unigbrk/u16-grapheme-next.c: Update name.
6795         * lib/unigbrk/u16-grapheme-prev.c: Update name.
6796         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
6797         * lib/unigbrk/u32-grapheme-next.c: Update name.
6798         * lib/unigbrk/u32-grapheme-prev.c: Update name.
6799         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
6800         * lib/unigbrk/u8-grapheme-next.c: Update name.
6801         * lib/unigbrk/u8-grapheme-prev.c: Update name.
6802         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
6803         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
6804         Suggested by Bruno Haible.
6805
6806 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6807
6808         Remove module 'u8-grapheme-len' as too redundant with
6809         'u8-grapheme-next'.
6810         * modules/unigbrk/u8-grapheme-len: Delete file.
6811         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
6812         * lib/unigbrk.in.h: Remove prototype for deleted function.
6813         * lib/unigbrk/u8-grapheme-len.c: Delete file.
6814         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
6815
6816         Remove module 'u16-grapheme-len' as too redundant with
6817         'u16-grapheme-next'.
6818         * modules/unigbrk/u16-grapheme-len: Delete file.
6819         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
6820         * lib/unigbrk.in.h: Remove prototype for deleted function.
6821         * lib/unigbrk/u16-grapheme-len.c: Delete file.
6822         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
6823
6824         Remove module 'u32-grapheme-len' as too redundant with
6825         'u32-grapheme-next'.
6826         * modules/unigbrk/u32-grapheme-len: Delete file.
6827         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
6828         * lib/unigbrk.in.h: Remove prototype for deleted function.
6829         * lib/unigbrk/u32-grapheme-len.c: Delete file.
6830         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
6831
6832         Suggested by Bruno Haible.
6833
6834 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6835
6836         * unigbrk.in.h: Fix typo: "ben" => "been".
6837         Reported by Bruno Haible.
6838
6839 2011-01-01  Jim Meyering  <meyering@redhat.com>
6840
6841         maint: update almost all copyright ranges to include 2011
6842         Run the new "make update-copyright" rule.
6843
6844 2011-01-01  Jim Meyering  <meyering@redhat.com>
6845
6846         maint: update-copyright: exempt doc/INSTALL*
6847         * Makefile (update-copyright): Also exclude doc/INSTALL*,
6848         since they are generated.  Suggested by Bruno Haible.
6849
6850 2011-01-01  Jim Meyering  <meyering@redhat.com>
6851
6852         maint: refine the update-copyright rule
6853         * Makefile (update-copyright): Also exclude any file that includes
6854         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
6855         code that merely generates the comment.
6856
6857 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6858
6859         New module 'u8-grapheme-len'.
6860         * modules/unigbrk/u8-grapheme-len: New file.
6861         * modules/unigbrk/u8-grapheme-len-tests: New file.
6862         * lib/unigbrk.in.h: Add prototype for new function.
6863         * lib/unigbrk/u8-grapheme-len.c: New file.
6864         * tests/unigbrk/test-u8-grapheme-len.c: New file.
6865
6866         New module 'u16-grapheme-len'.
6867         * modules/unigbrk/u16-grapheme-len: New file.
6868         * modules/unigbrk/u16-grapheme-len-tests: New file.
6869         * lib/unigbrk.in.h: Add prototype for new function.
6870         * lib/unigbrk/u16-grapheme-len.c: New file.
6871         * tests/unigbrk/test-u16-grapheme-len.c: New file.
6872
6873         New module 'u32-grapheme-len'.
6874         * modules/unigbrk/u32-grapheme-len: New file.
6875         * modules/unigbrk/u32-grapheme-len-tests: New file.
6876         * lib/unigbrk.in.h: Add prototype for new function.
6877         * lib/unigbrk/u32-grapheme-len.c: New file.
6878         * tests/unigbrk/test-u32-grapheme-len.c: New file.
6879
6880         New module 'u8-grapheme-next'.
6881         * modules/unigbrk/u8-grapheme-next: New file.
6882         * modules/unigbrk/u8-grapheme-next-tests: New file.
6883         * lib/unigbrk.in.h: Add prototype for new function.
6884         * lib/unigbrk/u8-grapheme-next.c: New file.
6885         * tests/unigbrk/test-u8-grapheme-next.c: New file.
6886
6887         New module 'u16-grapheme-next'.
6888         * modules/unigbrk/u16-grapheme-next: New file.
6889         * modules/unigbrk/u16-grapheme-next-tests: New file.
6890         * lib/unigbrk.in.h: Add prototype for new function.
6891         * lib/unigbrk/u16-grapheme-next.c: New file.
6892         * tests/unigbrk/test-u16-grapheme-next.c: New file.
6893
6894         New module 'u32-grapheme-next'.
6895         * modules/unigbrk/u32-grapheme-next: New file.
6896         * modules/unigbrk/u32-grapheme-next-tests: New file.
6897         * lib/unigbrk.in.h: Add prototype for new function.
6898         * lib/unigbrk/u32-grapheme-next.c: New file.
6899         * tests/unigbrk/test-u32-grapheme-next.c: New file.
6900
6901         New module 'u8-grapheme-prev'.
6902         * modules/unigbrk/u8-grapheme-prev: New file.
6903         * modules/unigbrk/u8-grapheme-prev-tests: New file.
6904         * lib/unigbrk.in.h: Add prototype for new function.
6905         * lib/unigbrk/u8-grapheme-prev.c: New file.
6906         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
6907
6908         New module 'u16-grapheme-prev'.
6909         * modules/unigbrk/u16-grapheme-prev: New file.
6910         * modules/unigbrk/u16-grapheme-prev-tests: New file.
6911         * lib/unigbrk.in.h: Add prototype for new function.
6912         * lib/unigbrk/u16-grapheme-prev.c: New file.
6913         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
6914
6915         New module 'u32-grapheme-prev'.
6916         * modules/unigbrk/u32-grapheme-prev: New file.
6917         * modules/unigbrk/u32-grapheme-prev-tests: New file.
6918         * lib/unigbrk.in.h: Add prototype for new function.
6919         * lib/unigbrk/u32-grapheme-prev.c: New file.
6920         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
6921
6922         New module 'u8-grapheme-breaks'.
6923         * modules/unigbrk/u8-grapheme-breaks: New file.
6924         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
6925         * lib/unigbrk.in.h: Add prototype for new function.
6926         * lib/unigbrk/u8-grapheme-breaks.c: New file.
6927         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
6928
6929         New module 'u16-grapheme-breaks'.
6930         * modules/unigbrk/u16-grapheme-breaks: New file.
6931         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
6932         * lib/unigbrk.in.h: Add prototype for new function.
6933         * lib/unigbrk/u16-grapheme-breaks.c: New file.
6934         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
6935
6936         New module 'u32-grapheme-breaks'.
6937         * modules/unigbrk/u32-grapheme-breaks: New file.
6938         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
6939         * lib/unigbrk.in.h: Add prototype for new function.
6940         * lib/unigbrk/u32-grapheme-breaks.c: New file.
6941         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
6942
6943         New module 'ulc-grapheme-breaks'.
6944         * modules/unigbrk/ulc-grapheme-breaks: New file.
6945         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
6946         * m4/locale-ar.m4: New file.
6947         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
6948         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
6949         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
6950
6951 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6952
6953         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
6954         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
6955         modified how this file was generated before I initially submitted
6956         the module, but failed to regenerate it.  This meant that several
6957         of the level2 entries were wrong.
6958         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
6959         Remove the division-by-2 that is folded into the table now that
6960         gbrkprop.h has been regenerated properly.  Now -1 entries are
6961         handled correctly.
6962
6963         New module 'unigbrk/uc-gbrk-prop-tests'.
6964         * modules/unigbrk/uc-gbrk-prop-tests: New file.
6965         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
6966         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
6967         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
6968
6969 2011-01-01  Bruno Haible  <bruno@clisp.org>
6970
6971         Avoid use of hexadecimal escapes.
6972         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
6973         instead of hexadecimal escapes.
6974
6975 2011-01-01  Jim Meyering  <meyering@redhat.com>
6976
6977         maint: new rule to update copyright year ranges
6978         * Makefile (update-copyright): New rule.
6979
6980         maint: indent with TABs in Makefile
6981         * Makefile: Expand leading sequences of spaces to TABs
6982
6983         version-etc: update the copyright year it reports
6984         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
6985
6986 2010-12-31  Bruno Haible  <bruno@clisp.org>
6987
6988         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
6989         * lib/isfinite.c (zerof, zerod, zerol): New variables.
6990         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
6991         zero.
6992
6993 2010-12-31  Bruno Haible  <bruno@clisp.org>
6994
6995         pwrite: Work around HP-UX 11.11 bug.
6996         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
6997         works and set REPLACE_PWRITE if not.
6998         * lib/pwrite.c (pwrite): Add an implementation that uses the system
6999         function.
7000         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
7001
7002 2010-12-31  Bruno Haible  <bruno@clisp.org>
7003
7004         pread: Work around HP-UX 11 bugs.
7005         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
7006         and set REPLACE_PREAD if not.
7007         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
7008
7009 2010-12-31  Eric Blake  <eblake@redhat.com>
7010
7011         nl_langinfo: fix YESEXPR on Irix 6.5
7012         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
7013         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
7014         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
7015         it.
7016
7017 2010-12-31  Bruno Haible  <bruno@clisp.org>
7018
7019         iconv: Document HP-UX 11 bug.
7020         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
7021
7022 2010-12-31  Bruno Haible  <bruno@clisp.org>
7023
7024         ldexpl: Fix link error on HP-UX 11.
7025         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
7026         LDEXPL_LIBM, using $ISNANL_LIBM.
7027
7028 2010-12-31  Eric Blake  <eblake@redhat.com>
7029
7030         ftello: avoid compilation failure with SunStudio c89
7031         * lib/ftello.c (ftello): Use lseek, not llseek.
7032
7033         tests: avoid failing coreutils tests on cygwin
7034         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
7035         (create_exe_shims_): Return 0 when skipping.
7036
7037 2010-12-31  Bruno Haible  <bruno@clisp.org>
7038
7039         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
7040         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
7041
7042 2010-12-31  Bruno Haible  <bruno@clisp.org>
7043
7044         waitpid: Fix link error in C++ mode.
7045         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
7046
7047 2010-12-31  Bruno Haible  <bruno@clisp.org>
7048
7049         isnan: Use GCC built-ins when possible.
7050         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
7051         __builtin_isnan.
7052         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
7053         (isnan): Define using GCC built-ins for GCC >= 4.0.
7054
7055 2010-12-31  Bruno Haible  <bruno@clisp.org>
7056
7057         isnand: Fix mistake.
7058         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
7059         __builtin_isnand.
7060
7061 2010-12-31  Bruno Haible  <bruno@clisp.org>
7062
7063         open: Avoid C++ error on HP-UX 11.
7064         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
7065
7066 2010-12-31  Bruno Haible  <bruno@clisp.org>
7067
7068         time_r: Add missing declarations on HP-UX 11.
7069         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
7070         instead of HAVE_LOCALTIME_R.
7071         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
7072         HAVE_LOCALTIME_R always.
7073         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
7074         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
7075         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
7076         HAVE_LOCALTIME_R.
7077         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
7078         * doc/posix-functions/localtime_r.texi: Likewise.
7079
7080 2010-12-29  Eric Blake  <eblake@redhat.com>
7081
7082         mountlist: tweak previous commit
7083         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
7084         Reported by Paul Eggert.
7085
7086         mountlist: fix local drive detection on cygwin
7087         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
7088         that works for cygwin.
7089
7090 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7091
7092         ftoastr, snprintf: ftoastr + snprintf module
7093         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
7094         since the snprintf module now should be good enough here.
7095         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
7096         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
7097         and gl_MODULE_INDICATOR([snprintf]), but the former enables
7098         GNULIB_SNPRINTF only for the test directory, and the latter
7099         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
7100         seems to suffice by itself.
7101
7102 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7103
7104         alloca: one step towards thread-safety
7105         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
7106         need for a static variable.  All callers changed.  This does not
7107         make the alloca replacement thread-safe, but it's one step.
7108
7109         tests: minor indenting change
7110         * tests/init.sh: Sync from coreutils housekeeping patch
7111         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
7112         to keep lines within 80 columns.
7113
7114 2010-12-28  Jim Meyering  <meyering@redhat.com>
7115
7116         regex: don't infloop on persistent failing calloc
7117         * lib/regexec.c (build_trtable): Return failure indication upon
7118         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
7119         In glibc, this was fixed for version 2.13:
7120         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
7121
7122 2010-12-28  Bruno Haible  <bruno@clisp.org>
7123             Paul Eggert <eggert@cs.ucla.edu>
7124
7125         linkat: Make implementation robust against system behaviour variations.
7126         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
7127         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
7128         way, and to -2 if it needs a generic runtime test.
7129         * lib/linkat.c (solaris_optimized_link_immediate,
7130         solaris_optimized_link_follow): New functions.
7131         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
7132         (check_same_link): Use it.
7133
7134 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
7135
7136         New module 'unigbrk/base'.
7137         * modules/unigbrk/base: New file.
7138         * lib/unigbrk.in.h: New file.
7139
7140         New module 'unigbrk/uc-gbrk-prop'.
7141         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
7142         * modules/unigbrk/uc-gbrk-prop: New file.
7143         * lib/unigbrk/gbrkprop.h: New file.
7144         * lib/unigbrk/uc-gbrk-prop.c: New file.
7145
7146         New module 'unigbrk/uc-is-grapheme-break'.
7147         * modules/unigbrk/uc-is-grapheme-break: New file.
7148         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
7149         * lib/unigbrk/uc-is-grapheme-break.c: New file.
7150         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
7151         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
7152         * tests/unigbrk/GraphemeBreakTest.txt: New file.
7153
7154         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
7155
7156 2010-12-27  Bruno Haible  <bruno@clisp.org>
7157
7158         linkat test: Avoid failure on Solaris 11 2010-11.
7159         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
7160
7161 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7162
7163         utimens: work around glibc rounding bug on more platforms
7164         * lib/utimens.c (fdutimens): Work around rounding bug even if
7165         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
7166         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
7167
7168 2010-12-27  Bruno Haible  <bruno@clisp.org>
7169
7170         select tests: Improve comments.
7171         * tests/test-select.c (do_select): Add comments.
7172
7173 2010-12-27  Bruno Haible  <bruno@clisp.org>
7174
7175         select tests: Safer way of handling timeout.
7176         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
7177         at every invocation.
7178
7179 2010-12-27  Bruno Haible  <bruno@clisp.org>
7180
7181         select tests: Use 'bool' where appropriate.
7182         * tests/test-select.c (connect_to_socket): Change argument type to
7183         'bool'.
7184
7185 2010-12-27  Bruno Haible  <bruno@clisp.org>
7186
7187         select tests: Use existing modules.
7188         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
7189         (configure.ac): Don't test for unistd.h.
7190         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
7191         declared in <unistd.h>.
7192
7193 2010-12-27  Bruno Haible  <bruno@clisp.org>
7194
7195         mbrtowc: Work around a Solaris 7 bug.
7196         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
7197         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
7198         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
7199         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
7200         MBRTOWC_NULL_ARG1_BUG.
7201         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
7202         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
7203         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
7204         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
7205
7206 2010-12-27  Jim Meyering  <meyering@redhat.com>
7207
7208         read-file.c: tweak syntax
7209         * lib/read-file.c (fread_file): Remove space after "*" in function
7210         definitions.
7211
7212 2010-12-27  Bruno Haible  <bruno@clisp.org>
7213
7214         times test: Avoid gcc warnings on OSF/1.
7215         * tests/test-times.c (main): Cast printf arguments from clock_t to
7216         'long int'.
7217
7218 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7219
7220         utimens: work around glibc rounding bug on older Linux kernels
7221         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
7222         on Linux with a glibc whose utimes might not work, then work
7223         around a longstanding glibc bug involving rounding rather than
7224         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
7225         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7226
7227 2010-12-26  Bruno Haible  <bruno@clisp.org>
7228
7229         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
7230         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
7231         _GL_CXXALIAS_SYS.
7232         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7233
7234 2010-12-26  Bruno Haible  <bruno@clisp.org>
7235
7236         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
7237         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
7238         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7239         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
7240         looking for the declaration.
7241         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7242         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
7243         problem.
7244         * doc/posix-functions/inet_pton.texi: Likewise.
7245
7246 2010-12-26  Bruno Haible  <bruno@clisp.org>
7247
7248         arpa_inet: Use the common idioms with C++ support.
7249         * lib/arpa_inet.in.h: Include c++defs.h.
7250         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
7251         support.
7252         * modules/arpa_inet (Depends-on): Add c++defs.
7253         (Makefile.am): Substitute the contents of c++defs.h.
7254         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
7255         * modules/arpa_inet-c++-tests: New file.
7256         * tests/test-arpa_inet-c++.cc: New file.
7257
7258 2010-12-25  Bruno Haible  <bruno@clisp.org>
7259
7260         Fix more C++ link errors on Solaris 8.
7261         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
7262         $(LIB_EACCESS).
7263         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
7264         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
7265         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
7266         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
7267         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
7268
7269 2010-12-25  Bruno Haible  <bruno@clisp.org>
7270
7271         printf-posix: Fix link error when a non-GCC compiler is used.
7272         * lib/stdio.in.h (printf): When not using GCC, override printf
7273         correctly.
7274         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7275
7276 2010-12-25  Bruno Haible  <bruno@clisp.org>
7277
7278         strerror_r-posix: Update doc.
7279         * doc/posix-functions/strerror_r.texi: Update doc about the return
7280         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
7281
7282 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7283
7284         utimens: simplify the logic of the previous change
7285         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
7286         This should not affect whether the test succeeds or fails.
7287
7288         utimens: configure better on hosts with NFS clock skew
7289         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
7290         uses the clock of the local host.  It might use the clock of the
7291         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
7292         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7293
7294 2010-12-25  Bruno Haible  <bruno@clisp.org>
7295
7296         ptsname test: Avoid failure on Solaris.
7297         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
7298         open a pseudo-terminal; don't use BSD-style ptys.
7299         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
7300
7301 2010-12-25  Bruno Haible  <bruno@clisp.org>
7302
7303         ptsname: Avoid ERANGE failure on some systems.
7304         * lib/ptsname.c (buffer): Increase size.
7305
7306 2010-12-25  Bruno Haible  <bruno@clisp.org>
7307
7308         rename, renameat: Avoid test failures at NFS mounted locations.
7309         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
7310         so that subsequent mkdir calls succeed.
7311
7312 2010-12-25  Bruno Haible  <bruno@clisp.org>
7313
7314         iswblank: Fix C++ link error on Solaris 8.
7315         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
7316         _GL_FUNCDECL_SYS.
7317
7318 2010-12-25  Bruno Haible  <bruno@clisp.org>
7319
7320         unistd: Fix C++ link error on Solaris 8.
7321         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
7322
7323 2010-12-25  Bruno Haible  <bruno@clisp.org>
7324
7325         readlink doc: Mention an old glibc bug.
7326         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
7327
7328 2010-12-25  Bruno Haible  <bruno@clisp.org>
7329
7330         fcntl-h: Fix for use of C++ on glibc systems.
7331         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7332         also on glibc systems in C++ mode.
7333         Reported by Gary V. Vaughan <gary@gnu.org>.
7334
7335 2010-12-25  Bruno Haible  <bruno@clisp.org>
7336
7337         roundl-ieee: Make it work on OSF/1 5.1 with cc.
7338         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
7339
7340 2010-12-25  Bruno Haible  <bruno@clisp.org>
7341
7342         truncl-ieee: Make it work on OSF/1 5.1 with cc.
7343         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
7344         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
7345         test whether truncl works according to ISO C 99 with IEC 60559.
7346         * m4/truncl-ieee.m4: New file.
7347         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
7348         m4/signbit.m4.
7349         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
7350
7351 2010-12-25  Bruno Haible  <bruno@clisp.org>
7352
7353         ceill-ieee: Make it work on OSF/1 5.1 with cc.
7354         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
7355         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
7356         test whether ceill works according to ISO C 99 with IEC 60559.
7357         * m4/ceill-ieee.m4: New file.
7358         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
7359         m4/signbit.m4.
7360         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
7361
7362 2010-12-25  Bruno Haible  <bruno@clisp.org>
7363
7364         Ensure all prerequisites of <wchar.h> are included.
7365         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
7366         before <wchar.h>.
7367         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
7368         gl_MBRLEN_NUL_RETVAL): Likewise.
7369         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7370         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
7371         AC_FUNC_MBRTOWC): Likewise.
7372         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7373         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
7374         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7375         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
7376         Likewise.
7377         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7378         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
7379         (gl_WCHAR_H): Improve comments.
7380         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7381
7382 2010-12-25  Bruno Haible  <bruno@clisp.org>
7383
7384         strtok_r: Fix C syntax error in autoconf macro.
7385         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
7386         characters in test program.
7387
7388 2010-12-24  Bruno Haible  <bruno@clisp.org>
7389
7390         ceil, trunc, round: Fix gcc warnings.
7391         * lib/ceil.c (MIN): Undefine before redefining.
7392         * lib/trunc.c (MIN): Likewise.
7393         * lib/round.c (MIN): Likewise.
7394         Include <math.h> first.
7395
7396 2010-12-24  Bruno Haible  <bruno@clisp.org>
7397
7398         select tests: Avoid failures on OSF/1 5.1.
7399         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
7400         failure of closing the last socket; it may fail with ECONNRESET.
7401
7402 2010-12-24  Eric Blake  <eblake@redhat.com>
7403
7404         stdint: avoid HP-UX 10.20 preprocessor bug
7405         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
7406         than #if.
7407         * tests/test-floor2.c (main): Likewise.
7408         Reported by Peter O'Gorman.
7409
7410         pipe: make obsoletion transition easier
7411         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
7412         * modules/pipe (Files): Include revived file.
7413         (Include): Drop reference, to mirror getdate's behavior.
7414
7415 2010-12-24  Bruno Haible  <bruno@clisp.org>
7416
7417         sys_socket: Hide mismatch of declarations on NonStop Kernel.
7418         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
7419         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7420         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7421
7422 2010-12-24  Bruno Haible  <bruno@clisp.org>
7423
7424         gethostname: Ensure declaration on NonStop Kernel.
7425         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
7426         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7427
7428 2010-12-24  Bruno Haible  <bruno@clisp.org>
7429
7430         sys_select: Ensure all necessary types on NonStop Kernel.
7431         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
7432         include <sys/time.h>.
7433         * doc/posix-headers/sys_select.texi: Mention that it's missing on
7434         NonStop Kernel.
7435         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7436
7437 2010-12-24  Bruno Haible  <bruno@clisp.org>
7438
7439         sys_select: Remove unneeded include.
7440         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
7441         have <sys/select.h>.
7442
7443 2010-12-24  Bruno Haible  <bruno@clisp.org>
7444
7445         gethostname: Provide a fallback for HOST_NAME_MAX.
7446         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
7447         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
7448         instead.
7449         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7450
7451 2010-12-24  Bruno Haible  <bruno@clisp.org>
7452
7453         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
7454         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
7455         (SA_RESTART): Likewise.
7456         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7457
7458 2010-12-24  Bruno Haible  <bruno@clisp.org>
7459
7460         signal: Define NSIG.
7461         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
7462         * tests/test-signal.c (nsig): New variable.
7463         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7464
7465 2010-12-24  Bruno Haible  <bruno@clisp.org>
7466
7467         rename, renameat: Avoid test failures on OSF/1 5.1.
7468         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
7469         alternative error codes.
7470         * tests/test-renameat.c (main): Likewise.
7471
7472 2010-12-24  Bruno Haible  <bruno@clisp.org>
7473
7474         *printf: Detect large precisions bug on Solaris 10/SPARC.
7475         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
7476         by Paul Eggert.
7477         * tests/test-snprintf-posix.h (test_function): Add this test code here
7478         too.
7479         * tests/test-sprintf-posix.h (test_function): Likewise.
7480         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7481         * tests/test-vasprintf-posix.c (test_function): Likewise.
7482         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
7483         around by gnulib.
7484         * doc/posix-functions/printf.texi: Likewise.
7485         * doc/posix-functions/snprintf.texi: Likewise.
7486         * doc/posix-functions/sprintf.texi: Likewise.
7487         * doc/posix-functions/vfprintf.texi: Likewise.
7488         * doc/posix-functions/vprintf.texi: Likewise.
7489         * doc/posix-functions/vsnprintf.texi: Likewise.
7490         * doc/posix-functions/vsprintf.texi: Likewise.
7491         * doc/posix-functions/dprintf.texi: Undo last commit.
7492         * doc/posix-functions/vdprintf.texi: Likewise.
7493
7494 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7495
7496         tests: port test-fdutimensat.c to Solaris 8
7497         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
7498         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
7499         On Solaris 8, it fails with errno == ENOSYS, because there is no
7500         futimens (so it can't use the fd), and there is no lutimens (so it
7501         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
7502
7503         vsnprintf: make more consistent with snprintf; doc fixes
7504
7505         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
7506         the byte count return problem was promoted from the snprintf-posix
7507         to the snprintf module.
7508         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7509         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
7510         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
7511         * tests/test-snprintf.c (main): Check the byte count returned.
7512         * tests/test-vsnprintf.c (main): Likewise.
7513
7514 2010-12-23  Eric Blake  <eblake@redhat.com>
7515
7516         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
7517         * modules/sigpipe (License): Relax license.
7518
7519 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7520
7521         doc: document Solaris printf bug with large float precisions
7522         * doc/posix-functions/dprintf.texi (dprintf):
7523         * doc/posix-functions/fprintf.texi (fprintf):
7524         * doc/posix-functions/printf.texi (printf):
7525         * doc/posix-functions/snprintf.texi (snprintf):
7526         * doc/posix-functions/sprintf.texi (sprintf):
7527         * doc/posix-functions/vdprintf.texi (vdprintf):
7528         * doc/posix-functions/vfprintf.texi (vfprintf):
7529         * doc/posix-functions/vprintf.texi (vprintf):
7530         * doc/posix-functions/vsnprintf.texi (vsnprintf):
7531         * doc/posix-functions/vsprintf.texi (vsprintf):
7532         Mention that these functions mishandle large floating point
7533         precisions on Solaris 10.  The same bug is also present in Solaris
7534         8, and I assume earlier.  This causes "cd gnulib-tests; make
7535         check" to fail on Solaris 8 (and I assume, later) when building
7536         the latest coreutils, in test-vasprintf-posix's call to
7537         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
7538         the wide flavors (e.g., wprintf) so this patch just updates the
7539         documentation for the narrow ones.
7540
7541         test-posixtm.c: add two tests
7542         * tests/test-posixtm.c: Add two tests, to highlight the
7543         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
7544         around this bug; this is merely to document it.
7545
7546 2010-12-22  Bruno Haible  <bruno@clisp.org>
7547
7548         getlogin_r: Work around portability problem on OSF/1.
7549         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
7550         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
7551         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
7552         test for a truncated result.
7553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
7554         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
7555         * modules/getlogin_r (Depends-on): Add memchr.
7556         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
7557
7558 2010-12-22  Bruno Haible  <bruno@clisp.org>
7559
7560         ptsname: Avoid test failure on OSF/1 5.1.
7561         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
7562         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
7563         (same_slave): New function.
7564         (main): Use it to compare ptsname's result with the expected file name.
7565
7566 2010-12-22  Bruno Haible  <bruno@clisp.org>
7567
7568         Port extended stdio modules to HP NonStop Kernel.
7569         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
7570         macros.
7571         * lib/fbufmode.c: Update comments.
7572         * lib/fflush.c: Likewise.
7573         * lib/fpurge.c: Likewise.
7574         * lib/freadable.c: Likewise.
7575         * lib/freadahead.c: Likewise.
7576         * lib/freading.c: Likewise.
7577         * lib/freadptr.c: Likewise.
7578         * lib/freadseek.c: Likewise.
7579         * lib/fseeko.c: Likewise.
7580         * lib/fseterr.c: Likewise.
7581         * lib/fwritable.c: Likewise.
7582         * lib/fwriting.c: Likewise.
7583         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7584
7585 2010-12-22  Bruno Haible  <bruno@clisp.org>
7586
7587         ttyname_r: Work around bug on OSF/1 5.1.
7588         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
7589         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
7590         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
7591         present.
7592         * lib/ttyname_r.c (ttyname_r): Update comments.
7593
7594 2010-12-22  Bruno Haible  <bruno@clisp.org>
7595
7596         round: Implement result sign according to IEEE 754.
7597         * lib/round.c (MIN, MINUS_ZERO): New macros.
7598         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
7599         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
7600         * tests/test-round-ieee.c (main): Likewise.
7601         * tests/test-roundl-ieee.c (main): Likewise.
7602
7603         trunc: Implement result sign according to IEEE 754.
7604         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
7605         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
7606         * tests/test-trunc2.c: Include minus-zero.h.
7607         (MINUS_ZERO): New macro.
7608         (trunc_reference): Keep in sync with lib/trunc.c.
7609         * tests/test-truncf2.c: Include minus-zero.h.
7610         (MINUS_ZERO): New macro.
7611         (truncf_reference): Keep in sync with lib/trunc.c.
7612         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
7613         * tests/test-trunc-ieee.c (main): Likewise.
7614         * tests/test-truncl-ieee.c (main): Likewise.
7615
7616         ceil: Implement result sign according to IEEE 754.
7617         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
7618         (FUNC): Return -0.0 for -1 < x < 0.
7619         * tests/test-ceil2.c: Include minus-zero.h.
7620         (MINUS_ZERO): New macro.
7621         (ceil_reference): Keep in sync with lib/ceil.c.
7622         * tests/test-ceilf2.c: Include minus-zero.h.
7623         (MINUS_ZERO): New macro.
7624         (ceilf_reference): Keep in sync with lib/ceil.c.
7625         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
7626         * tests/test-ceil-ieee.c (main): Likewise.
7627         * tests/test-ceill-ieee.c (main): Likewise.
7628
7629         floor: Implement result sign according to IEEE 754.
7630         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
7631         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
7632         * tests/test-floorf2.c (floorf_reference): Likewise.
7633         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
7634         * tests/test-floor-ieee.c (main): Likewise.
7635         * tests/test-floorl-ieee.c (main): Likewise.
7636
7637 2010-12-22  Bruno Haible  <bruno@clisp.org>
7638
7639         getaddrinfo: Update doc.
7640         * doc/posix-functions/gai_strerror.texi: Return type is also different
7641         on AIX and HP-UX.
7642
7643 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7644
7645         getaddrinfo, inet_ntop: Update doc for Solaris.
7646         * doc/posix-functions/gai_strerror.texi: Return type is also an
7647         issue on Solaris 9 and earlier.
7648         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
7649         on Solaris 10 and earlier.
7650
7651 2010-12-21  Bruno Haible  <bruno@clisp.org>
7652
7653         New module 'roundl-ieee'.
7654         * modules/roundl-ieee: New file.
7655         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
7656         test whether roundl works according to ISO C 99 with IEC 60559.
7657         * m4/roundl-ieee.m4: New file.
7658         * modules/roundl-ieee-tests: New file.
7659         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
7660         * tests/test-roundl.c (main): Remove signbit tests.
7661         * modules/roundl-tests (Depends-on): Remove signbit.
7662         * doc/posix-functions/roundl.texi: Mention the new module.
7663
7664 2010-12-21  Bruno Haible  <bruno@clisp.org>
7665
7666         New module 'truncl-ieee'.
7667         * modules/truncl-ieee: New file.
7668         * modules/truncl-ieee-tests: New file.
7669         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
7670         * tests/test-truncl.c (main): Remove signbit tests.
7671         * modules/truncl-tests (Depends-on): Remove signbit.
7672         * doc/posix-functions/truncl.texi: Mention the new module.
7673
7674 2010-12-21  Bruno Haible  <bruno@clisp.org>
7675
7676         New module 'ceill-ieee'.
7677         * modules/ceill-ieee: New file.
7678         * modules/ceill-ieee-tests: New file.
7679         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
7680         * tests/test-ceill.c (main): Remove signbit tests.
7681         * modules/ceill-tests (Depends-on): Remove signbit.
7682         * doc/posix-functions/ceill.texi: Mention the new module.
7683
7684 2010-12-21  Bruno Haible  <bruno@clisp.org>
7685
7686         New module 'floorl-ieee'.
7687         * modules/floorl-ieee: New file.
7688         * modules/floorl-ieee-tests: New file.
7689         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
7690         * tests/test-floorl.c (main): Remove signbit tests.
7691         * modules/floorl-tests (Depends-on): Remove signbit.
7692         * doc/posix-functions/floorl.texi: Mention the new module.
7693
7694 2010-12-21  Bruno Haible  <bruno@clisp.org>
7695
7696         New module 'round-ieee'.
7697         * modules/round-ieee: New file.
7698         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
7699         whether round works according to ISO C 99 with IEC 60559.
7700         * m4/round-ieee.m4: New file.
7701         * modules/round-ieee-tests: New file.
7702         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
7703         * tests/test-round1.c (main): Remove signbit tests.
7704         * modules/round-tests (Depends-on): Remove 'signbit'.
7705         * doc/posix-functions/round.texi: Mention the new module.
7706
7707 2010-12-21  Bruno Haible  <bruno@clisp.org>
7708
7709         New module 'trunc-ieee'.
7710         * modules/trunc-ieee: New file.
7711         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
7712         whether trunc works according to ISO C 99 with IEC 60559.
7713         * m4/trunc-ieee.m4: New file.
7714         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
7715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
7716         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
7717         * modules/trunc-ieee-tests: New file.
7718         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
7719         * tests/test-trunc1.c (main): Remove signbit tests.
7720         * modules/trunc-tests (Depends-on): Remove 'signbit'.
7721         * doc/posix-functions/trunc.texi: Mention the new module.
7722
7723 2010-12-21  Bruno Haible  <bruno@clisp.org>
7724
7725         New module 'ceil-ieee'.
7726         * modules/ceil-ieee: New file.
7727         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
7728         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
7729         ISO C 99 with IEC 60559.
7730         * m4/ceil-ieee.m4: New file.
7731         * modules/ceil (Files): Add lib/ceil.c.
7732         (Depends-on): Add 'float'.
7733         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7734         * lib/math.in.h (ceil): New declaration.
7735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
7736         REPLACE_CEIL.
7737         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
7738         * modules/ceil-ieee-tests: New file.
7739         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
7740         * tests/test-math-c++.cc: Check the signature of 'ceil'.
7741         * doc/posix-functions/ceil.texi: Mention the new module.
7742
7743 2010-12-21  Bruno Haible  <bruno@clisp.org>
7744
7745         New module 'floor-ieee'.
7746         * modules/floor-ieee: New file.
7747         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
7748         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
7749         ISO C 99 with IEC 60559.
7750         * m4/floor-ieee.m4: New file.
7751         * modules/floor (Files): Add lib/floor.c.
7752         (Depends-on): Add 'float'.
7753         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7754         * lib/math.in.h (floor): New declaration.
7755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
7756         REPLACE_FLOOR.
7757         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
7758         * modules/floor-ieee-tests: New file.
7759         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
7760         * tests/test-math-c++.cc: Check the signature of 'floor'.
7761         * doc/posix-functions/floor.texi: Mention the new module.
7762
7763 2010-12-21  Bruno Haible  <bruno@clisp.org>
7764
7765         New module 'roundf-ieee'.
7766         * modules/roundf-ieee: New file.
7767         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
7768         test whether roundf works according to ISO C 99 with IEC 60559.
7769         * m4/roundf-ieee.m4: New file.
7770         * modules/roundf-ieee-tests: New file.
7771         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
7772         * tests/test-roundf1.c (main): Remove signbit tests.
7773         * modules/roundf-tests (Depends-on): Remove 'signbit'.
7774         * doc/posix-functions/roundf.texi: Mention the new module.
7775
7776 2010-12-21  Bruno Haible  <bruno@clisp.org>
7777
7778         New module 'truncf-ieee'.
7779         * modules/truncf-ieee: New file.
7780         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
7781         test whether truncf works according to ISO C 99 with IEC 60559.
7782         * m4/truncf-ieee.m4: New file.
7783         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
7784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
7785         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
7786         * modules/truncf-ieee-tests: New file.
7787         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
7788         * tests/test-truncf1.c (main): Remove signbit tests.
7789         * modules/truncf-tests (Depends-on): Remove 'signbit'.
7790         * doc/posix-functions/truncf.texi: Mention the new module.
7791
7792 2010-12-21  Bruno Haible  <bruno@clisp.org>
7793
7794         New module 'ceilf-ieee'.
7795         * modules/ceilf-ieee: New file.
7796         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
7797         test whether ceilf works according to ISO C 99 with IEC 60559.
7798         * m4/ceilf-ieee.m4: New file.
7799         * modules/ceilf-ieee-tests: New file.
7800         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
7801         * tests/test-ceilf1.c (main): Remove signbit tests.
7802         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
7803         * doc/posix-functions/ceilf.texi: Mention the new module.
7804
7805 2010-12-21  Bruno Haible  <bruno@clisp.org>
7806
7807         New module 'floorf-ieee'.
7808         * modules/floorf-ieee: New file.
7809         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
7810         test whether floorf works according to ISO C 99 with IEC 60559.
7811         * m4/floorf-ieee.m4: New file.
7812         * modules/floorf-ieee-tests: New file.
7813         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
7814         * tests/test-floorf1.c (main): Remove signbit tests.
7815         * modules/floorf-tests (Depends-on): Remove 'signbit'.
7816         * doc/posix-functions/floorf.texi: Mention the new module.
7817
7818 2010-12-21  Bruno Haible  <bruno@clisp.org>
7819
7820         Support for minus zero in autoconf macros.
7821         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
7822         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
7823         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
7824         * tests/minus-zero.h: Update comments.
7825
7826 2010-12-21  Bruno Haible  <bruno@clisp.org>
7827
7828         Tests for module 'ceil'.
7829         * modules/ceil-tests: New file.
7830         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
7831         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
7832
7833 2010-12-21  Bruno Haible  <bruno@clisp.org>
7834
7835         Tests for module 'floor'.
7836         * modules/floor-tests: New file.
7837         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
7838         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
7839
7840 2010-12-21  Bruno Haible  <bruno@clisp.org>
7841
7842         math: Fix indentation.
7843         * lib/math.in.h (floorf): Fix indentation.
7844
7845 2010-12-21  Bruno Haible  <bruno@clisp.org>
7846
7847         Fix cross-compilation guesses on Solaris.
7848         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
7849         not match "solaris2.10".
7850         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7851         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
7852         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
7853
7854 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
7855
7856         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
7857         This fixes a problem observed with the latest coreutils snapshot
7858         that caused a test to fail on Solaris 8.  src/csplit.c's call
7859         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
7860         earlier, instead of returning the number of bytes that would have
7861         been generated; this causes csplit to incorrectly report memory
7862         exhaustion.
7863         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
7864         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
7865         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
7866         comments to match.
7867         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
7868         Fix typo in matching older versions of Solaris: "solaris2.10"
7869         is matched by the shell pattern "solaris2.[0-9]*".  This matters
7870         only for guessing while cross-compiling.
7871         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
7872
7873 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
7874
7875         ftoastr: fix comment again
7876         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7877         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
7878         Also, simplify example a bit by using flags = 0.
7879
7880 2010-12-20  Bruno Haible  <bruno@clisp.org>
7881
7882         round*, trunc*: Update documentation regarding glibc.
7883         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
7884         * doc/posix-functions/round.texi: Likewise.
7885         * doc/posix-functions/roundl.texi: Likewise.
7886         * doc/posix-functions/truncf.texi: Likewise.
7887         * doc/posix-functions/trunc.texi: Likewise.
7888         * doc/posix-functions/truncl.texi: Likewise.
7889
7890 2010-12-20  Bruno Haible  <bruno@clisp.org>
7891
7892         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
7893         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
7894         * doc/posix-functions/round.texi: Likewise.
7895         * doc/posix-functions/roundl.texi: Likewise.
7896
7897 2010-12-20  Bruno Haible  <bruno@clisp.org>
7898
7899         ttyname_r: Add missing declaration on HP-UX 11.
7900         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
7901         HAVE_TTYNAME_R.
7902         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
7903         declared. Set HAVE_TTYNAME_R always.
7904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7905         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
7906         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
7907         HAVE_TTYNAME_R.
7908         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
7909
7910 2010-12-20  Bruno Haible  <bruno@clisp.org>
7911
7912         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
7913         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
7914         * doc/posix-functions/getlogin_r.texi: Likewise.
7915         * tests/test-getlogin.c: Include <errno.h>.
7916         (main): Avoid test failure on HP-UX 11.11.
7917         * tests/test-getlogin_r.c (main): Likewise.
7918
7919 2010-12-20  Bruno Haible  <bruno@clisp.org>
7920
7921         getlogin_r: Add missing declaration on HP-UX 11.
7922         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
7923         declared also when it exists as a function.
7924         * doc/posix-functions/getlogin_r.texi: Document this workaround.
7925
7926 2010-12-20  Bruno Haible  <bruno@clisp.org>
7927
7928         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
7929         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
7930         through wcrtomb.
7931
7932 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7933
7934         ftoastr: fix comment
7935         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7936         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
7937
7938 2010-12-19  Bruno Haible  <bruno@clisp.org>
7939
7940         isnan: Ensure it is a macro.
7941         * lib/math.in.h (isnan): Define as a macro if not already a macro.
7942         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
7943         Solaris.
7944
7945 2010-12-19  Bruno Haible  <bruno@clisp.org>
7946
7947         ldexpl test: Fix link error on OSF/1 5.1.
7948         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
7949
7950 2010-12-19  Bruno Haible  <bruno@clisp.org>
7951
7952         wctype: Make it work in C++ mode on OSF/1 5.1.
7953         * lib/wctype.in.h (iswblank): Declare but not define here.
7954         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
7955         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
7956         * modules/wctype (Files): Add lib/iswblank.c.
7957
7958 2010-12-19  Bruno Haible  <bruno@clisp.org>
7959
7960         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
7961         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
7962         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
7963
7964 2010-12-19  Bruno Haible  <bruno@clisp.org>
7965
7966         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
7967         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
7968         _POSIX_PII_SOCKET.
7969         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
7970         * doc/posix-functions/recvfrom.texi: Likewise.
7971         * doc/posix-functions/send.texi: Likewise.
7972         * doc/posix-functions/sendto.texi: Likewise.
7973
7974 2010-12-19  Bruno Haible  <bruno@clisp.org>
7975
7976         tcgetsid: Add missing declaration on OSF/1 5.1.
7977         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
7978         HAVE_TCGETSID.
7979         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
7980         Don't set HAVE_TCGETSID.
7981         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
7982         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
7983         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
7984         HAVE_TCGETSID.
7985         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
7986
7987 2010-12-19  Bruno Haible  <bruno@clisp.org>
7988
7989         stdio: Fix problem with popen() declaration on OSF/1 5.1.
7990         * lib/stdio.in.h: During the include_next statement, let recursive
7991         includes of this file include only the system header file.
7992
7993 2010-12-19  Bruno Haible  <bruno@clisp.org>
7994
7995         iconv_open: Fix regression from 2010-12-04.
7996         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
7997         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
7998
7999 2010-12-19  Bruno Haible  <bruno@clisp.org>
8000
8001         stdbool test: Avoid a gcc warning.
8002         * tests/test-stdbool.c (main): Fail if e1 is false.
8003         Reported by Jim Meyering.
8004
8005 2010-12-19  Jim Meyering  <meyering@redhat.com>
8006
8007         setenv: restore to working order
8008         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
8009         mistakenly removed.
8010         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
8011         HAVE_SETENV.
8012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
8013         HAVE_SETENV.
8014
8015 2010-12-19  Bruno Haible  <bruno@clisp.org>
8016
8017         Document some different function declarations on OSF/1 5.1.
8018         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
8019         * doc/posix-functions/inet_ntop.texi: Likewise.
8020         * doc/posix-functions/gethostname.texi: Likewise.
8021         * lib/unistd.in.h (gethostname): Update comment.
8022
8023 2010-12-19  Bruno Haible  <bruno@clisp.org>
8024
8025         doc: Mention vasprintf-posix module.
8026         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
8027         the 'vasprintf-posix' module.
8028         * doc/glibc-functions/vasprintf.texi: Likewise.
8029
8030 2010-12-19  Bruno Haible  <bruno@clisp.org>
8031
8032         unsetenv: Add missing declaration on OSF/1 5.1.
8033         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
8034         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
8035         Don't set HAVE_UNSETENV. In the test program, set _BSD.
8036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
8037         not HAVE_UNSETENV.
8038         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
8039         HAVE_UNSETENV.
8040         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
8041
8042 2010-12-19  Bruno Haible  <bruno@clisp.org>
8043
8044         setenv: Add missing declaration on OSF/1 5.1.
8045         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
8046         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
8047         declared. Don't set HAVE_SETENV.
8048         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
8049         not HAVE_SETENV.
8050         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
8051         HAVE_SETENV.
8052         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
8053
8054 2010-12-19  Bruno Haible  <bruno@clisp.org>
8055
8056         nl_langinfo tests: Avoid gcc warning.
8057         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
8058
8059 2010-12-19  Bruno Haible  <bruno@clisp.org>
8060
8061         mknod: Avoid error in C++ mode on OSF/1 with GCC.
8062         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
8063         _GL_CXXALIAS_SYS.
8064
8065 2010-12-19  Bruno Haible  <bruno@clisp.org>
8066
8067         stdbool: Relax test.
8068         * tests/test-stdbool.c (e): Don't require that casts from a variable's
8069         address to 'bool' work in static initializer, for compilers other than
8070         GCC.
8071
8072 2010-12-19  Bruno Haible  <bruno@clisp.org>
8073
8074         ftello: Add missing declaration on OSF/1 5.1.
8075         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
8076         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
8077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
8078         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
8079         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
8080
8081 2010-12-19  Bruno Haible  <bruno@clisp.org>
8082
8083         fseeko: Add missing declaration on OSF/1 5.1.
8084         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
8085         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
8086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
8087         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
8088         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
8089
8090 2010-12-19  Bruno Haible  <bruno@clisp.org>
8091
8092         fchdir: Add missing declaration on OSF/1 5.1.
8093         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
8094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
8095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
8096         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
8097         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
8098
8099 2010-12-19  Bruno Haible  <bruno@clisp.org>
8100
8101         relocatable-prog-wrapper: Separate from relocatable-prog.
8102         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
8103         uninstall-relocwrapper rule here.
8104         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
8105         Reported by Ian Beckwith <ianb@erislabs.net>.
8106
8107 2010-12-19  Bruno Haible  <bruno@clisp.org>
8108
8109         unistr/u8-mbsnlen: Add missing dependency.
8110         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
8111         Reported by Ian Beckwith <ianb@erislabs.net>.
8112
8113 2010-12-19  Bruno Haible  <bruno@clisp.org>
8114
8115         iconv: Make it possible again to use this module without 'iconv-h'.
8116         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
8117         if it is not defined.
8118         Reported by Ian Beckwith <ianb@erislabs.net>.
8119
8120 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8121
8122         acl: port to Solaris 8 when copying from tmpfs to ufs
8123         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
8124         error number.  Problem observed on Solaris 8 with latest
8125         coreutils, with "mv A B", where A is on a tmpfs file system and B
8126         is on a ufs file system.  This caused coreutils' mv/part-symlink
8127         test to fail.
8128
8129         tests: set fail=0 at start
8130         * tests/init.sh (setup_): Move fail=0 initialization here ...
8131         (mktempd_): ... from here, so that tests can rely on fail being
8132         set to 0 initially.  This fixes a problem in coreutils; see:
8133         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
8134
8135 2010-12-18  Bruno Haible  <bruno@clisp.org>
8136
8137         memmem-simple: Stylistic changes.
8138         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
8139         Fix preprocessor directive indentation.
8140
8141 2010-12-15  Pádraig Brady <P@draigBrady.com>
8142
8143         memmem, memmem-simple: reorganize and expand empty needle check
8144         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
8145         functional checks to memmem-simple so that one has a fully functional
8146         memmem by using just this module.
8147         Restrict the performance only check to the memmem module.
8148         Also expand the empty needle check to ensure the correct
8149         pointer is returned, not just a non NULL pointer.
8150         * doc/glibc-functions/memmem.texi: Rearrange the portability
8151         documentation to correlate with the rearranged checks.
8152         Clarify exactly how the memmem and memmem-simple modules
8153         relate to each other.
8154
8155 2010-12-15  Pádraig Brady <P@draigBrady.com>
8156             Bruno Haible  <bruno@clisp.org>
8157
8158         Improve cross-compilation guesses for uClibc.
8159         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
8160         that uClibc does not have the glibc bug.
8161         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
8162         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
8163
8164 2010-12-14  Eric Blake  <eblake@redhat.com>
8165
8166         configmake: provide fallbacks for oldest supported autotools
8167         * m4/configmake.m4: New file.
8168         * modules/configmake (Files): Ship it.
8169         (configure.ac): Use it to guarantee fallbacks.
8170
8171 2010-12-13  Pádraig Brady <P@draigBrady.com>
8172
8173         read-file: Improve handling of large files
8174         * lib/read-file.c (fread_file): Minimize realloc()s
8175         for regular files, and better manage sizes around SIZE_MAX.
8176
8177 2010-12-13  Eric Blake  <eblake@redhat.com>
8178
8179         cloexec, fcntl: relax license
8180         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
8181         consent from all contributors.
8182         * modules/fcntl (License): Likewise.
8183
8184 2010-12-10  Bruno Haible  <bruno@clisp.org>
8185
8186         Tests for module 'pipe-posix'.
8187         * modules/pipe-posix-tests: New file.
8188         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
8189
8190 2010-12-10  Bruno Haible  <bruno@clisp.org>
8191
8192         pipe-posix: Make it work in C++ mode.
8193         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
8194         (pipe): Use common idiom, not a macro definition.
8195         * lib/pipe.c: New file.
8196         * m4/pipe.m4: New file.
8197         * modules/pipe-posix (Description): Enhance.
8198         (Files): Add lib/pipe.c, m4/pipe.m4.
8199         (configure.ac): Invoke gl_FUNC_PIPE.
8200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
8201         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
8202         * tests/test-unistd-c++.cc: Check the signature of pipe.
8203
8204 2010-12-10  Bruno Haible  <bruno@clisp.org>
8205
8206         Rename module 'pipe' to 'spawn-pipe'.
8207         * modules/spawn-pipe: New file, renamed from modules/pipe.
8208         (Files, configure.ac, Makefile.am): Update.
8209         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
8210         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
8211         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
8212         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
8213         "spawn-pipe.h" instead of "pipe.h".
8214         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
8215         to gl_SPAWN_PIPE.
8216         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
8217         (Files, Makefile.am): Update.
8218         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
8219         Update.
8220         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
8221         Include "spawn-pipe.h" instead of "pipe.h".
8222         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
8223         * lib/javacomp.c: Likewise.
8224         * lib/javaversion.c: Likewise.
8225         * lib/pipe-filter-gi.c: Likewise.
8226         * lib/pipe-filter-ii.c: Likewise.
8227         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
8228         * modules/javacomp (Depends-on): Likewise.
8229         * modules/javaversion (Depends-on): Likewise.
8230         * modules/pipe-filter-gi (Depends-on): Likewise.
8231         * modules/pipe-filter-ii (Depends-on): Likewise.
8232         * MODULES.html.sh (Executing programs): Update.
8233         * NEWS: Mention the change.
8234
8235 2010-12-10  Eric Blake  <eblake@redhat.com>
8236
8237         pipe-posix: new module
8238         * modules/pipe-posix: New file.
8239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
8240         (gl_UNISTD_H): Check for declaration.
8241         * modules/unistd (Makefile.am): Substitute it.
8242         * lib/unistd.in.h (pipe): Provide it for mingw.
8243         * doc/posix-functions/pipe.texi (pipe): Update documentation.
8244         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
8245
8246 2010-12-07  Bruno Haible  <bruno@clisp.org>
8247
8248         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
8249         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
8250         u8_strcmp_gnu.
8251         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
8252
8253 2010-12-06  Bruno Haible  <bruno@clisp.org>
8254
8255         Update internal documentation.
8256         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
8257
8258 2010-12-04  Bruno Haible  <bruno@clisp.org>
8259
8260         Put more information about failed tests into the test return codes.
8261         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
8262         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
8263         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8264         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8265         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
8266         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8267         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8268         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8269         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
8270         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8271         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
8272         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8273         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8274         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8275         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
8276         returns a bit mask.
8277         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
8278         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
8279         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
8280         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
8281         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8282         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8283         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8284         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8285         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8286         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8287         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8288         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8289         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8290         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8291         * m4/link.m4 (gl_FUNC_LINK): Likewise.
8292         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8293         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
8294         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
8295         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8296         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
8297         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8298         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8299         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
8300         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8301         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8302         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8303         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
8304         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8305         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8306         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
8307         gl_PRINTF_PRECISION): Likewise.
8308         * m4/regex.m4 (gl_REGEX): Likewise.
8309         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8310         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8311         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
8312         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8313         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8314         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8315         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8316         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
8317         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8318         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8319         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8320         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8321         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8322         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
8323         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8324         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8325         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
8326         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8327         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8328         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
8329         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
8330         enumerated value.
8331         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
8332
8333 2010-12-04  Bruno Haible  <bruno@clisp.org>
8334
8335         Update for Solaris 11 2010-11.
8336         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
8337         Express, released in November 2010.
8338
8339 2010-12-04  Bruno Haible  <bruno@clisp.org>
8340
8341         nproc: Relax license.
8342         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
8343         and Paul Eggert.
8344         Requested by Ludovic Courtès <ludo@gnu.org>.
8345
8346 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
8347
8348         utimecmp: fine-grained src to nearby coarse-grained dest
8349
8350         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
8351         and the source is on a file system with higher-resolution time
8352         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
8353         not work, and the time stamps are close together, the algorithm to
8354         determine the exact resolution from the read-back mtime was buggy:
8355         it had a "!=" where it should have had an "==".  This bug has been
8356         in the code ever since it was introduced to gnulib.
8357         Problem reported by Dan Jacobson in
8358         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
8359
8360 2010-11-30  Bruno Haible  <bruno@clisp.org>
8361
8362         strerror_r-posix: Fix autoconf test.
8363         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
8364
8365 2010-11-28  Bruno Haible  <bruno@clisp.org>
8366             Paul Eggert  <eggert@cs.ucla.edu>
8367
8368         Tests for module 'getdomainname'.
8369         * modules/getdomainname-tests: New file.
8370         * tests/test-getdomainname.c: New file, based on
8371         tests/test-gethostname.c.
8372
8373 2010-11-28  Bruno Haible  <bruno@clisp.org>
8374             Paul Eggert  <eggert@cs.ucla.edu>
8375
8376         getdomainname: Use the system function when possible.
8377         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
8378         (getdomainname): Replace if needed. Provide the declaration if it is
8379         missing. Don't use _GL_CXXALIAS_SYS_CAST.
8380         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
8381         (getdomainname): When the system has getdomainname, call the system
8382         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
8383         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
8384         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
8385         found in libnsl. Look for the declaration also in <netdb.h>. Replace
8386         the function if its second argument is of type 'int' or if it is found
8387         in libnsl.
8388         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
8389         <sys/systeminfo.h> and sysinfo().
8390         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
8391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8392         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
8393         HAVE_GETDOMAINNAME.
8394         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
8395         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
8396         * doc/glibc-functions/getdomainname.texi: Document the problems with
8397         the getdomainname declaration.
8398
8399 2010-11-28  Bruno Haible  <bruno@clisp.org>
8400
8401         sys_socket: Ensure ss_family field on AIX.
8402         * lib/sys_socket.in.h (ss_family): New macro definition.
8403         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
8404         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
8405         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8406         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8407         * modules/sys_socket (Makefile.am): Substitute
8408         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8409         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
8410
8411 2010-11-27  Bruno Haible  <bruno@clisp.org>
8412
8413         readline: Improve configure output.
8414         * m4/readline.m4 (gl_FUNC_READLINE): Make the
8415         "checking for readline..." result understandable.
8416
8417 2010-11-27  Bruno Haible  <bruno@clisp.org>
8418
8419         *printf-posix: Detect a bug on Solaris 10/x86.
8420         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
8421         for floating-point output.
8422         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
8423         directive.
8424         * tests/test-snprintf-posix.h (test_function): Likewise.
8425         * tests/test-sprintf-posix.h (test_function): Likewise.
8426         * tests/test-vasprintf-posix.c (test_function): Likewise.
8427         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
8428         * doc/posix-functions/printf.texi: Likewise.
8429         * doc/posix-functions/snprintf.texi: Likewise.
8430         * doc/posix-functions/sprintf.texi: Likewise.
8431         * doc/posix-functions/vfprintf.texi: Likewise.
8432         * doc/posix-functions/vprintf.texi: Likewise.
8433         * doc/posix-functions/vsnprintf.texi: Likewise.
8434         * doc/posix-functions/vsprintf.texi: Likewise.
8435         * doc/glibc-functions/obstack_printf.texi: Likewise.
8436         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8437
8438 2010-11-27  Bruno Haible  <bruno@clisp.org>
8439
8440         Fix link error when module libunistring-optional is in use.
8441         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
8442         * modules/striconveha-tests (Makefile.am): Likewise.
8443
8444 2010-11-27  Bruno Haible  <bruno@clisp.org>
8445
8446         regex: Mention link dependencies.
8447         * modules/regex (Link): New section.
8448         * modules/rpmatch (Link): Likewise.
8449         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
8450
8451 2010-11-27  Bruno Haible  <bruno@clisp.org>
8452
8453         ftoastr: Fix compilation error on Solaris.
8454         * lib/ftoastr.c: Include <config.h>.
8455
8456 2010-11-27  Bruno Haible  <bruno@clisp.org>
8457
8458         getloadavg: Update documentation.
8459         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
8460
8461 2010-11-27  Bruno Haible  <bruno@clisp.org>
8462
8463         sys_socket: Fix test whether the functions are declared.
8464         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
8465         not <sys/select.h>.
8466
8467 2010-11-27  Bruno Haible  <bruno@clisp.org>
8468
8469         getpass: Make sure to get system declaration on some platforms.
8470         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
8471         gl_USE_SYSTEM_EXTENSIONS.
8472         * modules/getpass (Depends-on): Add extensions.
8473
8474 2010-11-26  Bruno Haible  <bruno@clisp.org>
8475
8476         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
8477         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
8478         'iconv' module is present.
8479         (ICONV_CONST): New macro.
8480         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
8481         ICONV_CONST.
8482         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
8483         set ICONV_CONST.
8484         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
8485         here.
8486         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
8487         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
8488         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
8489         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
8490         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
8491         present.
8492
8493 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8494
8495         ftoastr: comment fix
8496         * lib/ftoastr.c: "little" -> "little or no" in comment
8497
8498 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
8499
8500         stdint: port to GCC 4.3 + OSX + Octave
8501         On this platform, stdint.h is buggy and defines int64_t to long
8502         long int.  The replacement defined it to long int, causing
8503         problems with C++ style name mangling.  Instead, trust the system
8504         definition if INT64_MAX is defined, and likewise for the unsigned
8505         variant.   Problem reported by Jarno Rajahalme in
8506         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
8507         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
8508         and don't mess with int64_t and INT64_MAX in this case.
8509         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
8510
8511 2010-11-24  Bruno Haible  <bruno@clisp.org>
8512
8513         doc: Corrections regarding MacOS X 10.4 and 10.5.
8514         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
8515         MacOS X.
8516         Reported by Simon Josefsson.
8517
8518 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
8519
8520         Uninstall ".bin" files installed by relocwrapper.
8521         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
8522         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
8523         unless it is already there.
8524
8525 2010-11-21  Bruno Haible  <bruno@clisp.org>
8526
8527         Update for NetBSD 5.0.
8528         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8529         NetBSD; the test fails on NetBSD 5.0.
8530         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8531         about NetBSD.
8532
8533 2010-11-21  Bruno Haible  <bruno@clisp.org>
8534
8535         Update for HP-UX 11.23 and HP-UX 11.31.
8536         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
8537         HP-UX.
8538
8539 2010-11-21  Bruno Haible  <bruno@clisp.org>
8540
8541         Update for MacOS X 10.5.
8542         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8543         MacOS X; the test fails on MacOS X 10.5.8.
8544         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8545         about MacOS X.
8546
8547 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
8548
8549         bootstrap: add bootstrap_sync option.
8550         See discussion at
8551         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
8552         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
8553         * build-aux/bootstrap: Accept --bootstrap-sync to update
8554         bootstrap if it is not identical to the local gnulib's
8555         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
8556         enable this by default.  Accept --no-bootstrap-sync to disable
8557         it.
8558
8559 2010-11-20  Bruno Haible  <bruno@clisp.org>
8560
8561         Ensure that <features.h> is included before __GLIBC__ is tested.
8562         * lib/printf-parse.h: Include <features.h>.
8563         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
8564         Reported by Mike Frysinger <vapier@gentoo.org>.
8565
8566         Ensure that <features.h> is included before __GLIBC__ is tested.
8567         * lib/wchar.in.h: Include <features.h>.
8568         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
8569         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
8570         Reported by Mike Frysinger <vapier@gentoo.org>.
8571
8572         Ensure that <features.h> is included before __GLIBC__ is tested.
8573         * lib/arpa_inet.in.h: Include <features.h>.
8574         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
8575         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
8576         Reported by Mike Frysinger <vapier@gentoo.org>.
8577
8578         Ensure that <features.h> is included before __GLIBC__ is tested.
8579         * build-aux/link-warning.h: Include <features.h>.
8580         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
8581         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
8582         Reported by Mike Frysinger <vapier@gentoo.org>.
8583
8584         Ensure that <features.h> is included before __GLIBC__ is tested.
8585         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
8586         Reported by Mike Frysinger <vapier@gentoo.org>.
8587
8588 2010-11-20  Bruno Haible  <bruno@clisp.org>
8589
8590         memmem: Fix autoconf test.
8591         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
8592
8593 2010-11-20  Bruno Haible  <bruno@clisp.org>
8594
8595         Port to uClibc.
8596         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
8597         * lib/fcntl.in.h: Likewise.
8598         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
8599         * lib/mbrtowc.c (mbrtowc): Likewise.
8600         * lib/relocatable.c (find_shared_library_fullname): Likewise.
8601         * lib/strerror_r.c: Likewise.
8602         * lib/unistr/u8-strnlen.c: Likewise.
8603         * lib/vasnprintf.c (decimal_point_char): Likewise.
8604         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8605         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8606         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8607         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8608         * tests/test-sigaction.c (handler, main): Likewise.
8609         * lib/freading.h: Treat uClibc like a non-glibc platform.
8610         * lib/freading.c: Likewise.
8611         * lib/gettext.h: Likewise.
8612         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
8613         Likewise.
8614         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
8615         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8616         * lib/propername.c (proper_name_utf8): Likewise.
8617         * lib/spawn.in.h: Likewise.
8618         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
8619         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
8620         mem_cd_iconveh_internal): Likewise.
8621         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
8622         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8623         strstr, strcasestr): Likewise.
8624         * lib/unicodeio.c (unicode_to_mb): Likewise.
8625         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
8626         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
8627         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
8628         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
8629         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
8630         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
8631         * lib/unistr/u8-stpncpy.c: Likewise.
8632         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8633         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
8634         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8635         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8636         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8637         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
8638         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
8639         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
8640         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8641         Likewise.
8642         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8643         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8644         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8645         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8646         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8647         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8648         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8649         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8650         * tests/test-getopt.h (OPTIND_MIN): Likewise.
8651         * tests/test-striconveha.c (main): Likewise.
8652         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8653         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
8654         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
8655         * doc/posix-functions/getline.texi: Likewise.
8656         Reported by Mike Frysinger <vapier@gentoo.org>.
8657
8658 2010-11-20  Bruno Haible  <bruno@clisp.org>
8659
8660         nproc: Fix condition.
8661         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
8662         HAVE_PTHREAD_AFFINITY_NP.
8663
8664 2010-11-20  Bruno Haible  <bruno@clisp.org>
8665
8666         Fix a comment.
8667         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
8668
8669 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8670
8671         ftoastr: don't assume snprintf
8672         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
8673         Implement a subset of snprintf here, by using sprintf safely.
8674         * modules/ftoastr (Depends-on): Remove snprintf.
8675
8676 2010-11-19  Jim Meyering  <meyering@redhat.com>
8677
8678         test-rename.h: fix compilation failure
8679         * tests/test-rename.h (test_rename): Add omitted "}".
8680
8681 2010-11-17  Jim Meyering  <meyering@redhat.com>
8682
8683         maint.mk: add a URL discussing the no-@acronym policy
8684         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
8685
8686 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8687
8688         ftoastr: depend on snprintf, improve comments
8689         * lib/ftoastr.c: Also mention Loitsch's draft.
8690         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
8691         needed in the current implementation, but it might simplify
8692         speeding up the code later.
8693         * modules/ftoastr: Depend on snprintf; this improves portability.
8694         Suggested by Bruno Haible in the same email.
8695
8696         ftoastr: port to hosts lacking strtof and strtold
8697         Problem reported by Bruno Haible in
8698         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
8699         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
8700         environment and strtold (and presumably strtof) are not available.
8701         * modules/ftoastr (Files): Add m4/c-strtod.m4.
8702         (configure.ac): Require gl_C99_STRTOLD.
8703
8704 2010-11-18  Bruno Haible  <bruno@clisp.org>
8705
8706         c-strtold: Avoid link error on AIX 7.
8707         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
8708         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
8709         (gl_C_STRTOLD): Test whether strtold_l exists.
8710         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8711
8712 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8713
8714         intprops: new macro INT_BITS_STRLEN_BOUND
8715         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
8716         ftoastr.h.  This exposes an internal of intprops.h that was formerly
8717         not exposed.  Also, it uses a slightly tighter bound than before;
8718         though this makes no practical difference, we might as well be as
8719         tight as we easily can.
8720
8721         ftoastr: new module, for lossless conversion of floats to short strings
8722         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
8723         * modules/ftoastr: New files.
8724
8725 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8726
8727         bootstrap: port to Solaris sed
8728         * build-aux/bootstrap (get_version): Port to Solaris sed.
8729         See Ralf Wildenhues's note in
8730         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
8731
8732 2010-11-14  Jim Meyering  <meyering@redhat.com>
8733
8734         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
8735         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
8736         and move definition closer to sole use.
8737
8738 2010-11-13  Jim Meyering  <meyering@redhat.com>
8739
8740         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
8741         Now we require at least autoconf-2.59, which means the work-around
8742         is no longer needed.
8743         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
8744         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8745         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8746         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
8747         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8748
8749 2010-11-13  Bruno Haible  <bruno@clisp.org>
8750
8751         rename, renameat: Avoid test failures at NFS mounted locations.
8752         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
8753         functions.
8754         (test_rename): Use assert_nonexistent.
8755         * tests/test-rename.c: Include <dirent.h>.
8756         * tests/test-renameat.c: Likewise.
8757         Reported by Gary V. Vaughan <gary@gnu.org>.
8758
8759         rename, renameat: Document Linux bug with NFS
8760         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
8761         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
8762         * doc/posix-functions/renameat.texi: Likewise.
8763         Suggested by Eric Blake.
8764
8765 2010-11-13  Bruno Haible  <bruno@clisp.org>
8766
8767         rename test: Add comments.
8768         * tests/test-rename.h (test_rename): Add structure and comments.
8769
8770 2010-11-13  Eric Blake  <eblake@redhat.com>
8771
8772         maintainer-makefile: cover a few more files
8773         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
8774         scripts generated within C files, for libvirt.
8775
8776 2010-11-13  Bruno Haible  <bruno@clisp.org>
8777
8778         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
8779         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
8780         character, return the number of bytes that belong together, not always
8781         1.
8782         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8783         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8784         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8785         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
8786         number of bytes of an invalid character.
8787         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
8788         (main): Invoke it.
8789         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
8790         results.
8791         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
8792         malformed byte sequences.
8793         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
8794         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
8795         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
8796         Reported by Ben Pfaff and Paolo Bonzini.
8797
8798 2010-11-13  Bruno Haible  <bruno@clisp.org>
8799
8800         openat: Work around glibc bug with fchownat() and empty file names.
8801         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
8802         (gl_FUNC_FCHOWNAT): Invoke it.
8803         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
8804         * doc/posix-functions/fchownat.texi: Document the glibc bug.
8805         Reported by Gary V. Vaughan <gary@gnu.org>.
8806
8807 2010-11-13  Bruno Haible  <bruno@clisp.org>
8808
8809         openat: Ensure autoconf macro ordering.
8810         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
8811         gl_USE_SYSTEM_EXTENSIONS.
8812         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
8813
8814 2010-11-13  Bruno Haible  <bruno@clisp.org>
8815
8816         Update comments.
8817         * lib/unistr/u8-check.c: Update file name in comments.
8818         * lib/unistr/u8-mblen.c: Likewise.
8819         * lib/unistr/u8-prev.c: Likewise.
8820         * lib/unistr/u8-strmblen.c: Likewise.
8821         * lib/unistr/u8-strmbtouc.c: Likewise.
8822
8823 2010-11-13  Jim Meyering  <meyering@redhat.com>
8824
8825         tests: avoid test failure on Solaris 10 due to lack of PATH export
8826         * tests/test-update-copyright.sh: Don't forget to export PATH.
8827
8828         init.sh: ensure that IFS is defined, just in case...
8829         * tests/init.sh (setup_): Ensure that IFS is defined,
8830         so that saving and restoring it works as expected.  This
8831         appears to be useful at least for an old version of dash
8832         from a long time ago (RH 6).  See here for details:
8833         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
8834
8835         maint.mk: tighten "test a == b" check
8836         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
8837         test to files that contain something like #!/bin/sh.
8838         Without this, coreutils would get two false positives in
8839         the comments of C source files.
8840
8841 2010-11-12  Eric Blake  <eblake@redhat.com>
8842
8843         bootstrap: fix typo in previous attempt
8844         * build-aux/bootstrap (buildreq): Correct the grouping.
8845         Reported by Paul Eggert.
8846
8847         maintainer-makefile: prohibit test x == x
8848         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
8849         Based on a report by Matthias Bolte.
8850
8851         bootstrap: allow FreeBSD gzip
8852         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
8853         which has no '.' and goes to stderr.
8854         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
8855         Reported by Matthias Bolte.
8856
8857         maintainer-makefile: check for i18n setup
8858         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
8859         will likely work.
8860
8861 2010-11-12  Bruno Haible  <bruno@clisp.org>
8862
8863         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
8864         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
8865         * lib/nanosleep.c (nanosleep): Likewise.
8866
8867 2010-11-11  Bruno Haible  <bruno@clisp.org>
8868
8869         fcntl-h: Fix for use of C++ on glibc systems.
8870         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8871         also on glibc systems in C++ mode.
8872         Reported by Gary V. Vaughan <gary@gnu.org>.
8873
8874 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8875
8876         mknod: avoid false failure with dash
8877         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
8878
8879 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
8880
8881         unlink: Fix "is it should" typo in diagnostic.
8882         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
8883         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
8884
8885 2010-11-11  Bruno Haible  <bruno@clisp.org>
8886
8887         Tests for module 'strerror_r-posix'.
8888         * modules/strerror_r-posix-tests: New file.
8889         * tests/test-strerror_r.c: New file.
8890         * tests/test-string-c++.cc: Check the signature of strerror_r.
8891
8892         New module 'strerror_r-posix'.
8893         * lib/string.in.h (strerror_r): New declaration.
8894         * lib/strerror_r.c: New file.
8895         * m4/strerror_r.m4: New file.
8896         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
8897         of strerror_r.
8898         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
8899         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8900         * modules/strerror_r-posix: New file.
8901         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
8902         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8903         * doc/posix-functions/strerror_r.texi: Mention the new module and the
8904         portability problems.
8905
8906 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
8907
8908         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
8909         line is also considered for output. Quoted function name in shell
8910         command, so temporary files for functions like MyClass::operator()
8911         are removed correctly without errors.
8912
8913 2010-11-09  Bruno Haible  <bruno@clisp.org>
8914
8915         * doc/posix-functions/strerror.texi: List more failing platforms.
8916
8917         * doc/posix-functions/strerror.texi: Add a comment.
8918
8919 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8920
8921         fdopendir: fix bug on MacOS X when low on file descriptors
8922
8923         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
8924         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
8925         All callers changed.
8926         (fdopendir): Invoke save_cwd at the top level, not after using
8927         multiple dup() calls to use up file descriptors.  Then retry
8928         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
8929         less than the maximum number of open file descriptors, because
8930         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
8931         on Mac OS X 10.6.4 for tar 1.24
8932         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
8933         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
8934         and for tar 1.25
8935         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
8936
8937 2010-11-07  Bruno Haible  <bruno@clisp.org>
8938
8939         vasnprintf: Support I flag on glibc systems.
8940         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
8941         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
8942         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
8943         snprintf function.
8944         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
8945         glibc systems.
8946         * tests/test-vasnprintf-posix3.c: New file.
8947         * modules/vasnprintf-posix-tests (Files): Add it.
8948         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
8949
8950 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8951
8952         [html] Fix copy/paste bug: Use unique name for compiler warnings.
8953         * MODULES.html.sh: For compiler warnings, use name
8954         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
8955
8956 2010-11-05  Eric Blake  <eblake@redhat.com>
8957
8958         ceil, floor: avoid spurious failure with icc
8959         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
8960         [denormals-as-zero] when optimizing without -mieee-fp option.
8961         * tests/test-floorf2.c (floorf_reference): Likewise.
8962         * tests/test-ceilf1.c (dummy): New function.
8963         (main): Use it to outsmart icc's optimization.
8964         * tests/test-floorf1.c (dummy, main): Likewise.
8965
8966         tests: require working signbit
8967         * modules/ceilf-tests (Depends-on): Add signbit.
8968         * modules/ceill-tests (Depends-on): Likewise.
8969         * modules/floorf-tests (Depends-on): Likewise.
8970         * modules/floorl-tests (Depends-on): Likewise.
8971         * modules/round-tests (Depends-on): Likewise.
8972         * modules/roundf-tests (Depends-on): Likewise.
8973         * modules/roundl-tests (Depends-on): Likewise.
8974         * modules/trunc-tests (Depends-on): Likewise.
8975         * modules/truncf-tests (Depends-on): Likewise.
8976         * modules/truncl-tests (Depends-on): Likewise.
8977
8978         strtod: work around icc bug
8979         * lib/strtod.c (minus_zero): Define to working value.
8980         (strtod): Use it to avoid icc bug.
8981
8982         copysign: enhance tests
8983         * modules/copysign-tests (Files): Add minus-zero.h.
8984         * tests/test-copysign.c (main): Also test zeros.
8985
8986 2010-11-04  Eric Blake  <eblake@redhat.com>
8987
8988         ceil, floor, round, trunc: enhance tests of -0
8989         * tests/test-ceilf1.c (main): Ensure correct sign of result.
8990         * tests/test-ceill.c (main): Likewise.
8991         * tests/test-floorf1.c (main): Likewise.
8992         * tests/test-floorl.c (main): Likewise.
8993         * tests/test-round1.c (main): Likewise.
8994         * tests/test-roundf1.c (main): Likewise.
8995         * tests/test-roundl.c (main): Likewise.
8996         * tests/test-trunc1.c (main): Likewise.
8997         * tests/test-truncf1.c (main): Likewise.
8998         * tests/test-truncl.c (main): Likewise.
8999
9000 2010-11-04  Eric Blake  <eblake@redhat.com>
9001
9002         frexp, tests: work around ICC bug with -zero
9003         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
9004         works with more compilers.
9005         * tests/minus-zero.h: New file.
9006         * modules/ceilf-tests (Files): Include it.
9007         * modules/ceill-tests (Files): Likewise.
9008         * modules/floorf-tests (Files): Likewise.
9009         * modules/floorl-tests (Files): Likewise.
9010         * modules/frexp-nolibm-tests (Files): Likewise.
9011         * modules/frexp-tests (Files): Likewise.
9012         * modules/frexpl-nolibm-tests (Files): Likewise.
9013         * modules/frexpl-tests (Files): Likewise.
9014         * modules/isnan-tests (Files): Likewise.
9015         * modules/isnand-nolibm-tests (Files): Likewise.
9016         * modules/isnand-tests (Files): Likewise.
9017         * modules/isnanf-nolibm-tests (Files): Likewise.
9018         * modules/isnanf-tests (Files): Likewise.
9019         * modules/isnanl-nolibm-tests (Files): Likewise.
9020         * modules/isnanl-tests (Files): Likewise.
9021         * modules/round-tests (Files): Likewise.
9022         * modules/roundf-tests (Files): Likewise.
9023         * modules/roundl-tests (Files): Likewise.
9024         * modules/ldexpl-tests (Files): Likewise.
9025         * modules/signbit-tests (Files): Likewise.
9026         * modules/snprintf-posix-tests (Files): Likewise.
9027         * modules/sprintf-posix-tests (Files): Likewise.
9028         * modules/strtod-tests (Files): Likewise.
9029         * modules/trunc-tests (Files): Likewise.
9030         * modules/truncf-tests (Files): Likewise.
9031         * modules/truncl-tests (Files): Likewise.
9032         * modules/vsnprintf-posix-tests (Files): Likewise.
9033         * modules/vsprintf-posix-tests (Files): Likewise.
9034         * modules/vasnprintf-posix-tests (Files): Likewise.
9035         * modules/vasprintf-posix-tests (Files): Likewise.
9036         * tests/test-ceilf1.c (main): Use it.
9037         * tests/test-ceill.c (main): Likewise.
9038         * tests/test-floorf1.c (main): Likewise.
9039         * tests/test-floorl.c (main): Likewise.
9040         * tests/test-frexp.c (main): Likewise.
9041         * tests/test-frexpl.c (main): Likewise.
9042         * tests/test-isnan.c (main): Likewise.
9043         * tests/test-isnand.h (main): Likewise.
9044         * tests/test-isnanf.h (main): Likewise.
9045         * tests/test-isnanl.h (main): Likewise.
9046         * tests/test-ldexpl.c (main): Likewise.
9047         * tests/test-round.c (main): Likewise.
9048         * tests/test-roundf.c (main): Likewise.
9049         * tests/test-roundl.c (main): Likewise.
9050         * tests/test-signbit.c (test_signbitf, test_signbitd)
9051         (test_signbitl): Likewise.
9052         * tests/test-snprintf-posix.h (test_function): Likewise.
9053         * tests/test-sprintf-posix.h (test_function): Likewise.
9054         * tests/test-strtod.c (main): Likewise.
9055         * tests/test-trunc1.c (main): Likewise.
9056         * tests/test-truncf1.c (main): Likewise.
9057         * tests/test-truncl.c (main): Likewise.
9058
9059         isnanl: work around icc bug
9060         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
9061
9062 2010-11-03  Eric Blake  <eblake@redhat.com>
9063
9064         tests: fix compiler warnings
9065         * tests/test-getopt.h (test_getopt): Fix condition.
9066         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9067         * tests/test-pipe2.c (main): Likewise.
9068         * tests/test-quotearg-simple.c (main): Avoid icc warning.
9069
9070         utimens: fix broken m4 test
9071         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
9072
9073 2010-10-28  Bruno Haible  <bruno@clisp.org>
9074
9075         posix_spawn*, getdtablesize: Relax license.
9076         * modules/posix_spawn (License): Change to LGPLv2+.
9077         * modules/posix_spawnp (License): Likewise.
9078         * modules/posix_spawn-internal (License): Likewise.
9079         * modules/posix_spawnattr_init (License): Likewise.
9080         * modules/posix_spawnattr_getflags (License): Likewise.
9081         * modules/posix_spawnattr_setflags (License): Likewise.
9082         * modules/posix_spawnattr_getpgroup (License): Likewise.
9083         * modules/posix_spawnattr_setpgroup (License): Likewise.
9084         * modules/posix_spawnattr_getschedparam (License): Likewise.
9085         * modules/posix_spawnattr_setschedparam (License): Likewise.
9086         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
9087         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
9088         * modules/posix_spawnattr_getsigdefault (License): Likewise.
9089         * modules/posix_spawnattr_setsigdefault (License): Likewise.
9090         * modules/posix_spawnattr_getsigmask (License): Likewise.
9091         * modules/posix_spawnattr_setsigmask (License): Likewise.
9092         * modules/posix_spawnattr_destroy (License): Likewise.
9093         * modules/posix_spawn_file_actions_init (License): Likewise.
9094         * modules/posix_spawn_file_actions_addclose (License): Likewise.
9095         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
9096         * modules/posix_spawn_file_actions_addopen (License): Likewise.
9097         * modules/posix_spawn_file_actions_destroy (License): Likewise.
9098         * modules/getdtablesize (License): Likewise.
9099         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
9100
9101 2010-10-26  Bruno Haible  <bruno@clisp.org>
9102
9103         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
9104         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
9105         Cygwin and mingw.
9106         Suggested by Eric Blake.
9107
9108 2010-10-26  Bruno Haible  <bruno@clisp.org>
9109
9110         stdio: Work around compilation error due to renameat() on Solaris 10.
9111         * lib/stdio.in.h: Include <unistd.h> on Solaris.
9112         * lib/renameat.c: Don't include <unistd.h> here.
9113         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
9114         Reported by Paul Eggert and Eric Blake.
9115
9116 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9117
9118         renameat: port to Solaris 10, which declares renameat in unistd.h
9119
9120         * lib/renameat.c: Include unistd.h before stdio.h, because
9121         Solaris 10 declares renameat in unistd.h.  Problem encountered
9122         when building GNU tar 1.24 on Solaris 10.
9123
9124 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9125
9126         fdopendir: fix C89 compilation
9127         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
9128         compilers.
9129
9130 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9131
9132         inttostr: simplify by removing unnecessary redundancy
9133         * lib/anytostr.c: Don't include verify.h.
9134         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
9135         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
9136         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
9137         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
9138         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
9139         Likewise.
9140         * modules/inttostr (Depends-on): Remove 'verify'.
9141
9142 2010-10-23  Bruno Haible  <bruno@clisp.org>
9143
9144         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
9145         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
9146         Reported by Eric Blake.
9147
9148 2010-10-23  Bruno Haible  <bruno@clisp.org>
9149
9150         Tests: Fix LOCALE_JA on MirBSD 10.
9151         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
9152         to an UTF-8 locale.
9153         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
9154         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9155         Reported by Eric Blake.
9156
9157 2010-10-21  Bruno Haible  <bruno@clisp.org>
9158
9159         nl_langinfo test: Avoid test failure on NetBSD 5.
9160         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
9161         Reported by Eric Blake.
9162
9163 2010-10-21  Eric Blake  <eblake@redhat.com>
9164
9165         c-stack: work around libsigsegv 2.8 bug
9166         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
9167         overflow on at least PowerPC64.
9168
9169 2010-10-17  Bruno Haible  <bruno@clisp.org>
9170
9171         userspec: Drop redundant file.
9172         * modules/userspec (Files): Remove lib/inttostr.h.
9173
9174 2010-10-17  Bruno Haible  <bruno@clisp.org>
9175
9176         nl_langinfo tests: Silence some warnings.
9177         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
9178         Reported by Jim Meyering.
9179
9180 2010-10-17  Bruno Haible  <bruno@clisp.org>
9181
9182         Make use of GCC's attribute __alloc_size__.
9183         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
9184         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
9185         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
9186         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
9187         __alloc_size__.
9188         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9189         Suggested by Jim Meyering.
9190
9191 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
9192
9193         bootstrap: anchor .gitignore entries.
9194         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
9195         with...
9196         (insert_vc_ignore): ... this new function, which prepends `/' to
9197         all .gitignore entries before passing them to
9198         insert_sorted_if_absent.
9199
9200 2010-10-16  Bruno Haible  <bruno@clisp.org>
9201
9202         nextafter: Fix configure check.
9203         * modules/nextafter (configure.ac): Correct expected prototype.
9204
9205 2010-10-16  Bruno Haible  <bruno@clisp.org>
9206
9207         termios: Update documentation.
9208         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
9209
9210 2010-10-16  Bruno Haible  <bruno@clisp.org>
9211
9212         tests: Make them compile with TinyCC.
9213         * tests/test-strstr.c (main): Remove parentheses around array
9214         initializer.
9215
9216 2010-10-15  Eric Blake  <eblake@redhat.com>
9217
9218         ignore-value: make header idempotent
9219         * lib/ignore-value.h: Add double-inclusion guards.
9220         Reported by Stefan Berger.
9221
9222 2010-10-15  Jim Meyering  <meyering@redhat.com>
9223
9224         GNUmakefile: handle "stable" target, not "major"
9225         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
9226         lists in maint.mk and announce-gen.  Without this, "make stable"
9227         would fail to ensure that $(VERSION) is up to date.
9228
9229 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
9230
9231         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
9232         & co.
9233
9234 2010-10-14  Bruno Haible  <bruno@clisp.org>
9235
9236         vasnprintf: Don't set errno to 0.
9237         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
9238         block that sets it to 0.
9239         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
9240
9241 2010-10-14  Bruno Haible  <bruno@clisp.org>
9242
9243         socketlib: Fix.
9244         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
9245         gl_PREREQ_SYS_H_WINSOCK2.
9246         Reported by Ian Beckwith <ianb@erislabs.net>.
9247
9248 2010-10-13  Jim Meyering  <meyering@redhat.com>
9249
9250         test-select-stdin.c: avoid warn_unused_result warnings
9251         * tests/test-select-stdin.c: Include "macros.h".
9252         ASSERT that read and fflush succeed.
9253
9254 2010-10-13  Jim Meyering  <meyering@redhat.com>
9255
9256         git-version-gen: do require git-VC'd files in cwd
9257         * build-aux/git-version-gen: Reject a git version string
9258         if there are no commits associated with the current directory.
9259         This avoids an unlikely false-positive (unrelated dir whose parent
9260         repository also contains a tag matching v*), as pointed out
9261         by Giuseppe Scrivano in
9262         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
9263
9264 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9265
9266         argv-iter: omit nonconforming declaration
9267         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
9268         enum arg_iter_err declaration, which doesn't conform to C99.
9269         Solaris 10 cc warns about this.
9270
9271 2010-10-13  Eric Blake  <eblake@redhat.com>
9272
9273         termios: fix compilation on mingw
9274         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
9275         (gl_TERMIOS_H): Adjust it on mingw.
9276         * modules/termios (Makefile.am): Substitute new key.
9277         * lib/termios.in.h (includes): Make include_next conditional.
9278         * doc/posix-headers/termios.texi (termios.h): Update
9279         documentation.
9280         Reported by Daniel P. Berrange.
9281
9282 2010-10-13  Jim Meyering  <meyering@redhat.com>
9283
9284         git-version-gen: don't require that .git/ be in the current dir
9285         * build-aux/git-version-gen: Adjust this script so that it works
9286         when run from any working directory beneath the top-level .git/-
9287         containing directory.  Inspired by a patch from Giuseppe Scrivano,
9288         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
9289
9290         test-select: avoid warn_unused_result warnings
9291         * tests/test-select.c: Include "macros.h".
9292         ASSERT that each call to read, write, and pipe succeeds.
9293         While not technically required, also check each "close".
9294         * modules/select-tests (Files): Add tests/macros.h.
9295
9296         test-symlinkat: remove declaration of unused local
9297         * tests/test-symlinkat.c (main): Remove unused local, "buf".
9298
9299         test-inttostr: avoid shadowing warnings
9300         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
9301         and use malloc rather than the stack for the same reason as
9302         mentioned in the comment justifying the other allocation.
9303
9304 2010-10-11  Bruno Haible  <bruno@clisp.org>
9305
9306         stdlib: Allow multiple gnulib generated replacements to coexist.
9307         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
9308         Reported by Sam Steingold <sds@gnu.org>.
9309
9310 2010-10-11  Jim Meyering  <meyering@redhat.com>
9311
9312         fix a documentation typo
9313         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
9314
9315 2010-10-11  Eric Blake  <eblake@redhat.com>
9316
9317         futimens: work around Solaris 11 bug
9318         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
9319         * tests/test-futimens.h (test_futimens): Enhance, rather than
9320         weaken test.
9321         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9322
9323 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9324
9325         Indentation.
9326         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
9327         higher-level operators more to the left.
9328
9329 2010-10-11  Jim Meyering  <meyering@redhat.com>
9330
9331         test-futimens: avoid unwarranted test failure on Solaris 5.11
9332         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
9333         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
9334         because it tries to dereference the NULL name argument.
9335
9336 2010-10-11  Bruno Haible  <bruno@clisp.org>
9337
9338         Indentation.
9339         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
9340         indentation.
9341
9342 2010-10-11  Jim Meyering  <meyering@redhat.com>
9343
9344         spawn.in.h: make indentation consistent with parentheses
9345         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
9346         Make indentation consistent with parentheses.
9347
9348 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
9349
9350         Fix mismatched parens in previous commit
9351         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
9352         parens.
9353
9354 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
9355
9356         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
9357
9358         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
9359         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
9360         * lib/malloca.c: Include "verify.h".
9361         (verify1): Remove, replacing with a verify call.
9362         * lib/relocwrapper.c (verify1): Likewise.
9363         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
9364         Likewise.
9365         * modules/malloca (Depends-on): Add 'verify'.
9366         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
9367         * modules/vasnprintf (Depends-on): Add 'verify'.
9368         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9369         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9370         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9371         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9372         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9373         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9374         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9375
9376         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
9377
9378         Formerly the style was sometimes 2*X - 1, because the C standard
9379         was wrongly thought to disallow ?: in integral constant expressions.
9380         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
9381         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
9382         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9383         * lib/stdint.in.h (_verify_intmax_size): Likewise.
9384         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
9385         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
9386         verify that time_t cannot be floating.
9387
9388 2010-10-08  Eric Blake  <eblake@redhat.com>
9389
9390         time: enforce recent POSIX ruling that time_t is integral
9391         * lib/time.in.h (__time_t_must_be_integral): Detect any
9392         problematic systems, allowing the rest of gnulib to assume POSIX.
9393
9394 2010-10-08  Jim Meyering  <meyering@redhat.com>
9395
9396         fdopendir: fix a bug on systems lacking openat and /proc support
9397         OpenBSD 4.7 is one such system.  The most noticeable effect was
9398         failure of any application making nontrivial use of fts: rm, du,
9399         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
9400           ./rm: traversal failed: `a': Bad file descriptor
9401         Debugging that, you see that even though FD 6 was closed just
9402         prior to the opendir call in fd_clone_opendir, its resulting
9403         dir->dd_fd was 8, rather than the expected value of 6:
9404
9405         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
9406         93                close (fd);
9407         (gdb) n
9408         94                dir = fd_clone_opendir (dupfd);
9409         (gdb) n
9410         95                saved_errno = errno;
9411         (gdb) p dir->dd_fd
9412         $11 = 8
9413
9414         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
9415         The problem is that on OpenBSD, fd_clone_opendir has to resort
9416         to using the old-style save/restore CWD mechanism, due to its
9417         lack of openat/proc support, and *that* would steal the FD (6)
9418         that opendir was supposed to use.
9419
9420         The fix is to squirrel away the desired FD so that save_cwd uses a
9421         different one, and then free the dest FD right before calling opendir.
9422         That guarantees opendir will use the required file descriptor.
9423
9424         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
9425
9426 2010-10-08  Bruno Haible  <bruno@clisp.org>
9427
9428         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
9429         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
9430
9431 2010-10-08  Bruno Haible  <bruno@clisp.org>
9432
9433         nanosleep: Make replacement POSIX compliant.
9434         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
9435         is out of range.
9436         Reported by Jim Meyering.
9437
9438 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9439
9440         bootstrap: add hook for altering gnulib.mk, for Bison
9441         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
9442         the Bison bootstrapping process can rewrite file names and variables
9443         in this file before later parts of 'bootstrap' use the file.
9444         Bison wants to include lib/gnulib.mk from the top-level makefile,
9445         so it needs the file names in this file to be relative to the top
9446         level, not relative to lib; plus it needs variable names to be
9447         rewritten.
9448         (slurp): Use the new function.
9449
9450         bootstrap: reformat for readability
9451         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
9452
9453 2010-10-08  Eric Blake  <eblake@redhat.com>
9454
9455         docs: update cygwin progress
9456         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
9457         1.7.7.
9458         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
9459         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
9460         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
9461         * doc/posix-functions/carg.texi (carg): Likewise.
9462         * doc/posix-functions/cargf.texi (cargf): Likewise.
9463         * doc/posix-functions/casin.texi (casin): Likewise.
9464         * doc/posix-functions/casinf.texi (casinf): Likewise.
9465         * doc/posix-functions/casinh.texi (casinh): Likewise.
9466         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
9467         * doc/posix-functions/catan.texi (catan): Likewise.
9468         * doc/posix-functions/catanf.texi (catanf): Likewise.
9469         * doc/posix-functions/catanh.texi (catanh): Likewise.
9470         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
9471         * doc/posix-functions/ccos.texi (ccos): Likewise.
9472         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
9473         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
9474         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
9475         * doc/posix-functions/cexp.texi (cexp): Likewise.
9476         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
9477         * doc/posix-functions/cimag.texi (cimag): Likewise.
9478         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
9479         * doc/posix-functions/clog.texi (clog): Likewise.
9480         * doc/posix-functions/clogf.texi (clogf): Likewise.
9481         * doc/posix-functions/conj.texi (conj): Likewise.
9482         * doc/posix-functions/conjf.texi (conjf): Likewise.
9483         * doc/posix-functions/cpow.texi (cpow): Likewise.
9484         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
9485         * doc/posix-functions/cproj.texi (cproj): Likewise.
9486         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
9487         * doc/posix-functions/creal.texi (creal): Likewise.
9488         * doc/posix-functions/crealf.texi (crealf): Likewise.
9489         * doc/posix-functions/csin.texi (csin): Likewise.
9490         * doc/posix-functions/csinf.texi (csinf): Likewise.
9491         * doc/posix-functions/csinh.texi (csinh): Likewise.
9492         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
9493         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
9494         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
9495         * doc/posix-functions/ctan.texi (ctan): Likewise.
9496         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
9497         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
9498         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
9499         * doc/posix-headers/complex.texi (complex.h): Likewise.
9500
9501 2010-10-07  Jim Meyering  <meyering@redhat.com>
9502
9503         parse-datetime: avoid compilation failure on OpenBSD 4.7
9504         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
9505         This works around a compilation failure on OpenBSD 4.7:
9506         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
9507
9508 2010-10-07  Eric Blake  <eblake@redhat.com>
9509
9510         docs: update cygwin progress
9511         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
9512         1.7.6.
9513         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9514         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
9515         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
9516         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
9517         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
9518         Likewise.
9519         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
9520         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
9521         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
9522         Likewise.
9523         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
9524         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
9525         Likewise.
9526         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
9527         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
9528         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
9529         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
9530         Likewise.
9531         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
9532         Likewise.
9533         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
9534
9535         docs: update parse-datetime history
9536         * doc/parse-datetime.texi (Authors of parse_datetime): Better
9537         documentation of this function's history and alternatives.
9538
9539         cygwin: use more robust version check
9540         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
9541         exclude an eventual cygwin 1.9.1.
9542         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9543         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9544         (gl_FUNC_STRCASESTR): Likewise.
9545         Reported by Bruno Haible.
9546
9547 2010-10-06  Bruno Haible  <bruno@clisp.org>
9548
9549         string, sys_select: Avoid #including large headers unless necessary.
9550         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
9551         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
9552         OSF/1, BeOS, Haiku.
9553         Reported by Jim Meyering.
9554
9555 2010-10-05  Eric Blake  <eblake@redhat.com>
9556
9557         memmem, strstr, strcasestr: fix bug with long periodic needle
9558         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
9559         periodic needle having false positive.
9560         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
9561         and cygwin 1.7.7.
9562         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
9563         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9564         (gl_FUNC_STRCASESTR): Likewise.
9565         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9566         * tests/test-memmem.c (main): Expose the bug.
9567         * tests/test-strcasestr.c (main): Likewise.
9568         * tests/test-strstr.c (main): Likewise.
9569         * tests/test-c-strcasestr.c (main): Likewise.
9570         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
9571         * doc/posix-functions/strstr.texi (strstr): Likewise.
9572         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9573         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
9574
9575 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9576
9577         parse-datetime: do some more renaming
9578         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
9579         parse_datetime, not get_date.  Mention the renaming.
9580         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
9581         in comments.
9582         * m4/bison.m4: Likewise.
9583
9584 2010-10-05  Eric Blake  <eblake@redhat.com>
9585
9586         parse-datetime: better name than get_date
9587         * NEWS: Reword the deprecation notice.
9588         * modules/get_date: Rename to modules/parse-datetime.
9589         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
9590         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
9591         * lib/get_date.y: Rename to lib/parse-datetime.y.
9592         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
9593         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
9594         * doc/getdate.texi: Provide fallback wrapper.
9595         * lib/getdate.h: Move guts, and wrap...
9596         * lib/parse-datetime.h: ...new file.
9597         * lib/parse-datetime.y (get_date): Rename...
9598         (parse_datetime): ...to this.
9599         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
9600         (gl_PARSE_DATETIME): ...to this.
9601         * doc/posix-functions/getdate.texi (get_date): Provide fallback
9602         documentation.
9603         * modules/getdate (Files): Provide fallback docs and header.
9604         (Notice, Depends-on): Update references.
9605         * tests/test-parse-datetime.c: Likewise.
9606         * DEPENDENCIES: Likewise.
9607         * MODULES.html.sh (Date and time <time.h>): Likewise.
9608         * doc/parse-datetime.texi (Date input formats)
9609         (Authors of parse_datetime): Likewise.
9610         * modules/parse-datetime (Files, configure.ac, Makefile.am)
9611         (Include): Likewise.
9612         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
9613         * gnulib-tool: Likewise.
9614         * m4/bison.m4 (gl_BISON): Likewise.
9615         Suggested by Bruno Haible.
9616
9617 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9618
9619         more ports to Solaris tr, which needs [] around ranges
9620         * gnulib-tool: Solaris tr needs [] around ranges.
9621         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9622         * tests/test-pipe-filter-gi1.c (main): Likewise.
9623         * tests/test-pipe-filter-ii1.c (main): Likewise.
9624
9625 2010-10-05  Eric Blake  <eblake@redhat.com>
9626
9627         bootstrap: fix Solaris regression
9628         * build-aux/bootstrap (check_versions): Solaris tr still needs []
9629         around ranges.
9630         Reported by Pádraig Brady.
9631
9632         bootstrap: work with pkg-config
9633         * build-aux/bootstrap (check_versions): Also transliterate - in
9634         prerequisite name.
9635         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
9636         prerequisites that were already found, to avoid confusion.
9637         Reported by Justin Clift.
9638
9639         faccessat: remove unused wrappers
9640         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
9641         presence of these wrappers dragged in -lgen on Solaris.
9642         Reported by Clemens Brogi; fix suggested by Paul Eggert.
9643
9644 2010-10-05  Jim Meyering  <meyering@redhat.com>
9645
9646         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
9647         * Makefile (sc_pragma_columns): New syntax-check rule.
9648
9649 2010-10-04  Bruno Haible  <bruno@clisp.org>
9650
9651         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
9652         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
9653         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
9654         Reported by Bruce Korb and Eric Blake.
9655
9656 2010-10-04  Bruno Haible  <bruno@clisp.org>
9657
9658         threadlib: Make option --with-libpth-prefix work.
9659         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
9660         use $LIBPTH, not just -lpth.
9661
9662 2010-10-04  Bruno Haible  <bruno@clisp.org>
9663
9664         Avoid line length limitation from HP NonStop system header files.
9665         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
9666         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
9667         * lib/ctype.in.h: Likewise.
9668         * lib/dirent.in.h: Likewise.
9669         * lib/errno.in.h: Likewise.
9670         * lib/fcntl.in.h: Likewise.
9671         * lib/float.in.h: Likewise.
9672         * lib/getopt.in.h: Likewise.
9673         * lib/iconv.in.h: Likewise.
9674         * lib/inttypes.in.h: Likewise.
9675         * lib/langinfo.in.h: Likewise.
9676         * lib/locale.in.h: Likewise.
9677         * lib/math.in.h: Likewise.
9678         * lib/netdb.in.h: Likewise.
9679         * lib/netinet_in.in.h: Likewise.
9680         * lib/poll.in.h: Likewise.
9681         * lib/pthread.in.h: Likewise.
9682         * lib/pty.in.h: Likewise.
9683         * lib/sched.in.h: Likewise.
9684         * lib/se-selinux.in.h: Likewise.
9685         * lib/search.in.h: Likewise.
9686         * lib/signal.in.h: Likewise.
9687         * lib/spawn.in.h: Likewise.
9688         * lib/stdarg.in.h: Likewise.
9689         * lib/stddef.in.h: Likewise.
9690         * lib/stdint.in.h: Likewise.
9691         * lib/stdio.in.h: Likewise.
9692         * lib/stdlib.in.h: Likewise.
9693         * lib/string.in.h: Likewise.
9694         * lib/strings.in.h: Likewise.
9695         * lib/sys_file.in.h: Likewise.
9696         * lib/sys_ioctl.in.h: Likewise.
9697         * lib/sys_select.in.h: Likewise.
9698         * lib/sys_socket.in.h: Likewise.
9699         * lib/sys_stat.in.h: Likewise.
9700         * lib/sys_time.in.h: Likewise.
9701         * lib/sys_times.in.h: Likewise.
9702         * lib/sys_utsname.in.h: Likewise.
9703         * lib/sys_wait.in.h: Likewise.
9704         * lib/sysexits.in.h: Likewise.
9705         * lib/termios.in.h: Likewise.
9706         * lib/time.in.h: Likewise.
9707         * lib/unistd.in.h: Likewise.
9708         * lib/wchar.in.h: Likewise.
9709         * lib/wctype.in.h: Likewise.
9710         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
9711         * modules/ctype (Makefile.am): Likewise.
9712         * modules/dirent (Makefile.am): Likewise.
9713         * modules/errno (Makefile.am): Likewise.
9714         * modules/fcntl-h (Makefile.am): Likewise.
9715         * modules/float (Makefile.am): Likewise.
9716         * modules/getopt-posix (Makefile.am): Likewise.
9717         * modules/iconv-h (Makefile.am): Likewise.
9718         * modules/inttypes (Makefile.am): Likewise.
9719         * modules/langinfo (Makefile.am): Likewise.
9720         * modules/locale (Makefile.am): Likewise.
9721         * modules/math (Makefile.am): Likewise.
9722         * modules/netdb (Makefile.am): Likewise.
9723         * modules/netinet_in (Makefile.am): Likewise.
9724         * modules/poll-h (Makefile.am): Likewise.
9725         * modules/pthread (Makefile.am): Likewise.
9726         * modules/pty (Makefile.am): Likewise.
9727         * modules/sched (Makefile.am): Likewise.
9728         * modules/search (Makefile.am): Likewise.
9729         * modules/selinux-h (Makefile.am): Likewise.
9730         * modules/signal (Makefile.am): Likewise.
9731         * modules/spawn (Makefile.am): Likewise.
9732         * modules/stdarg (Makefile.am): Likewise.
9733         * modules/stddef (Makefile.am): Likewise.
9734         * modules/stdint (Makefile.am): Likewise.
9735         * modules/stdio (Makefile.am): Likewise.
9736         * modules/stdlib (Makefile.am): Likewise.
9737         * modules/string (Makefile.am): Likewise.
9738         * modules/strings (Makefile.am): Likewise.
9739         * modules/sys_file (Makefile.am): Likewise.
9740         * modules/sys_ioctl (Makefile.am): Likewise.
9741         * modules/sys_select (Makefile.am): Likewise.
9742         * modules/sys_socket (Makefile.am): Likewise.
9743         * modules/sys_stat (Makefile.am): Likewise.
9744         * modules/sys_time (Makefile.am): Likewise.
9745         * modules/sys_times (Makefile.am): Likewise.
9746         * modules/sys_utsname (Makefile.am): Likewise.
9747         * modules/sys_wait (Makefile.am): Likewise.
9748         * modules/sysexits (Makefile.am): Likewise.
9749         * modules/termios (Makefile.am): Likewise.
9750         * modules/time (Makefile.am): Likewise.
9751         * modules/unistd (Makefile.am): Likewise.
9752         * modules/wchar (Makefile.am): Likewise.
9753         * modules/wctype (Makefile.am): Likewise.
9754
9755 2010-10-04  Bruno Haible  <bruno@clisp.org>
9756
9757         read-file tests: Avoid a test failure on NonStop Kernel.
9758         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
9759         a regular file.
9760         Reported by Joachim Schmitz <schmitz@hp.com>.
9761
9762 2010-10-03  Bruno Haible  <bruno@clisp.org>
9763
9764         gnulib-tool: Fixes for --create-testdir with --libtool.
9765         * gnulib-tool (func_get_automake_snippet): Don't augment
9766         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
9767         an executable.
9768         (func_create_testdir): Handle module 'alloca' like func_import.
9769         Reported by Bruce Korb <bruce.korb@gmail.com>.
9770
9771 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
9772
9773         Avoid some lines longer than 80 characters.
9774         * lib/stdint.in.h: Break long comment lines.
9775         * lib/math.in.h: Likewise.
9776         (_GL_NUM_UINT_WORDS): New macro, for readability.
9777         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
9778         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
9779         * lib/stdlib.in.h: Likewise.
9780         * lib/spawn.in.h: Likewise.
9781         * lib/sys_socket.in.h: Update an URL.
9782         * lib/sys_stat.in.h: Break long line.
9783
9784 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
9785
9786         Improve pmccabe2html.
9787         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
9788         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
9789         when the sources change. Remove the line in the HTML about "Used
9790         ranges" (which implied that there might be other unused ranges),
9791         rename "Resume" to "Summary" (easier to understand for more users).
9792         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
9793         styles, and some unnecessary blank lines.
9794
9795 2010-10-03  Bruno Haible  <bruno@clisp.org>
9796             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9797
9798         acl: Add support for ACLs on NonStop Kernel.
9799         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
9800         Check whether the function aclsort() exists.
9801         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
9802         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
9803         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9804         (acl_nontrivial [HAVE_ACLSORT]: New function.
9805         (file_has_acl): Implement for NonStop Kernel.
9806         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9807         (qset_acl): Implement for NonStop Kernel.
9808         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
9809         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9810         (main): Implement for NonStop Kernel.
9811         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
9812         Kernel. Handle this flavor.
9813         * tests/test-set-mode-acl.sh: Likewise.
9814         * tests/test-copy-acl.sh: Likewise.
9815         * tests/test-copy-file.sh: Likewise.
9816
9817 2010-10-03  Bruno Haible  <bruno@clisp.org>
9818
9819         Info about ACLs on NonStop Kernel.
9820         * doc/acl-resources.txt: Add info about NonStop Kernel.
9821         References by Joachim Schmitz <schmitz@hp.com>.
9822
9823 2010-10-02  Bruno Haible  <bruno@clisp.org>
9824
9825         Define missing EDQUOT on NonStop Kernel.
9826         * lib/errno.in.h (EDQUOT): Assign a value if missing.
9827         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
9828         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
9829         missing.
9830         * doc/posix-headers/errno.texi: Mention the NSK bug.
9831         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
9832         Reported by Joachim Schmitz <schmitz@hp.com>.
9833
9834 2010-10-02  Bruno Haible  <bruno@clisp.org>
9835
9836         Update doc for POSIX:2008.
9837         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
9838         Update URL of POSIX specification.
9839
9840 2010-10-02  Bruno Haible  <bruno@clisp.org>
9841
9842         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
9843         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
9844         from gnulib, not from Automake.
9845
9846 2010-10-02  Bruno Haible  <bruno@clisp.org>
9847
9848         New module 'system-posix'.
9849         * modules/system-posix: New file.
9850         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
9851         module is present.
9852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9853         GNULIB_SYSTEM_POSIX.
9854         * modules/stdlib (Depends-on): Remove sys_wait.
9855         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
9856         * doc/posix-functions/system.texi: Mention the new module.
9857         * doc/posix-headers/stdlib.texi: Likewise.
9858         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
9859         define test_sys_wait_macros to a no-op.
9860         Reported by Sam Steingold <sds@gnu.org>.
9861
9862 2010-09-30  Bruno Haible  <bruno@clisp.org>
9863
9864         More renaming from 'getdate' to 'get_date'.
9865         * doc/get_date.texi: Renamed from doc/getdate.texi.
9866         * modules/get_date (Files): Update.
9867         * MODULES.html.sh (Date and time <time.h>): Update.
9868         * DEPENDENCIES: Update.
9869         * gnulib-tool: Update comment.
9870         * m4/bison.m4 (gl_BISON): Likewise.
9871         * m4/get_date.m4 (gl_GET_DATE): Likewise.
9872
9873 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
9874
9875         bootstrap: support ACLOCAL_FLAGS during aclocal
9876         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
9877         can add additional -I dir for third-party .m4 files.
9878
9879 2010-09-30  Eric Blake  <eblake@redhat.com>
9880
9881         bootstrap: use glibtoolize on MacOS
9882         * build-aux/bootstrap (check_versions): Convert libtool into
9883         libtoolize.
9884         (tool search): Move libtool check earlier, and look for
9885         glibtoolize for MacOS.
9886         (gnulib_tool_options): Auto-add --libtool when appropriate.
9887         Reported by Justin Clift.
9888
9889         poll: fix typo that broke test on MacOS
9890         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
9891         Reported by Justin Clift.
9892
9893         getdate: rename to get_date
9894         Note: getdate.h is not renamed, to minimize client impact.
9895         * modules/getdate: Mark obsolete.  Move old contents...
9896         * modules/get_date: ...to new module name.
9897         * modules/getdate-tests: Move...
9898         * modules/get_date-tests: ...here.
9899         * m4/getdate.m4: Move...
9900         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
9901         * lib/getdate.y: Move...
9902         * lib/get_date.y: ...here.
9903         * tests/test-getdate.c: Move...
9904         * tests/test-get_date.c: ...here.
9905         * doc/posix-functions/getdate.texi (getdate): Update name.
9906         * NEWS: Mention the change.
9907
9908 2010-09-29  Bruno Haible  <bruno@clisp.org>
9909
9910         Separate the module 'waitpid' from the module 'sys_wait'.
9911         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
9912         present.
9913         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
9914         gl_MODULE_INDICATOR_FOR_TESTS.
9915         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
9916         * modules/sys_wait (Depends-on): Remove waitpid.
9917         (Makefile.am): Substitute GNULIB_WAITPID.
9918         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
9919         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
9920         signature only if the 'waitpid' module is present.
9921         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
9922         * NEWS: Mention the change.
9923         * modules/grantpt (Depends-on): Add waitpid.
9924         * modules/wait-process (Depends-on): Likewise.
9925
9926 2010-09-29  Bruno Haible  <bruno@clisp.org>
9927
9928         More tests for module 'sys_wait'.
9929         * modules/sys_wait-c++-tests: New file.
9930         * tests/test-sys_wait-c++.cc: New file.
9931         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
9932         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9933
9934 2010-09-29  Bruno Haible  <bruno@clisp.org>
9935
9936         New module 'waitpid'.
9937         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
9938         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
9939         Don't include <process.h>.
9940         (waitpid): Declare only, using modern idiom.
9941         * m4/waitpid.m4: New file.
9942         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
9943         * modules/waitpid: New file.
9944         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
9945         (Makefile.am): Update.
9946         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9947
9948 2010-09-28  Bruno Haible  <bruno@clisp.org>
9949
9950         poll: Assume ANSI C.
9951         * lib/poll.c (poll): Use an ANSI C declaration.
9952
9953 2010-09-28  Bruno Haible  <bruno@clisp.org>
9954
9955         poll-h: Create poll.h on all platforms.
9956         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
9957         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
9958         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
9959         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
9960         (gl_REPLACE_POLL_H): Don't set POLL_H.
9961         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
9962         * modules/poll-h (Depends-on): Add include_next.
9963         (Makefile.am): Create poll.h unconditionally. Substitute also
9964         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
9965
9966 2010-09-28  Bruno Haible  <bruno@clisp.org>
9967
9968         Tests for module 'poll-h'.
9969         * modules/poll-h-c++-tests: New file.
9970         * tests/test-poll-h-c++.cc: New file.
9971
9972         Tests for module 'poll-h'.
9973         * modules/poll-h-tests: New file.
9974         * tests/test-poll-h.c: New file.
9975
9976 2010-09-28  Bruno Haible  <bruno@clisp.org>
9977
9978         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
9979         * modules/poll-h (Depends-on): Add 'extensions'.
9980
9981 2010-09-28  Bruno Haible  <bruno@clisp.org>
9982
9983         New module 'poll-h'.
9984         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
9985         (poll): Use modern idiom.
9986         * modules/poll-h: New file.
9987         * modules/poll (Files): Remove lib/poll.in.h.
9988         (Depends-on): Add poll-h.
9989         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
9990         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
9991         * m4/poll_h.m4: New file.
9992         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
9993         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
9994         and invoke gl_REPLACE_POLL_H.
9995         * lib/poll.c: Use common idiom.
9996         * tests/test-poll.c: Likewise.
9997         * doc/posix-headers/poll.texi: Mention the poll-h module.
9998         Suggested by Eric Blake.
9999
10000 2010-09-26  Bruno Haible  <bruno@clisp.org>
10001
10002         sys_wait: Implement WSTOPSIG.
10003         * lib/sys_wait.in.h (WSTOPSIG): New macro.
10004         Reported by Simon Josefsson.
10005
10006 2010-09-26  Simon Josefsson  <simon@josefsson.org>
10007
10008         stdlib, sys_wait: Avoid compilation error on mingw.
10009         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
10010
10011 2010-09-26  Bruno Haible  <bruno@clisp.org>
10012
10013         stdlib tests: Avoid code duplication.
10014         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
10015         * modules/sys_wait-tests (Files): Likewise.
10016         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
10017         * tests/test-stdlib.c: Include test-sys_wait.h.
10018         (main): Invoke test_sys_wait_macros.
10019         * tests/test-sys_wait.c: Include test-sys_wait.h.
10020         (main): Invoke test_sys_wait_macros.
10021
10022 2010-09-25  Simon Josefsson  <simon@josefsson.org>
10023
10024         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
10025         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
10026         sure Windows sockets are working before calling getaddrinfo.
10027         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
10028         * doc/gnulib.texi (Windows sockets): Fix typo.
10029
10030 2010-09-25  Bruno Haible  <bruno@clisp.org>
10031
10032         Tests for module 'regex-quote'.
10033         * modules/regex-quote-tests: New file.
10034         * tests/test-regex-quote.c: New file.
10035
10036         New module 'regex-quote'.
10037         * lib/regex-quote.h: New file.
10038         * lib/regex-quote.c: New file.
10039         * modules/regex-quote: New file.
10040         Suggested by Reuben Thomas <rrt@sc3d.org>.
10041
10042 2010-09-24  Bruno Haible  <bruno@clisp.org>
10043
10044         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
10045         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
10046
10047 2010-09-23  Bruno Haible  <bruno@clisp.org>
10048
10049         setenv: Relax license.
10050         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
10051         Blake.
10052         Requested by Eric Blake.
10053
10054 2010-09-22  Bruno Haible  <bruno@clisp.org>
10055
10056         termios: Relax license.
10057         * modules/termios (License): Change to LGPLv2+.
10058         Requested by Eric Blake.
10059
10060 2010-09-22  Bruno Haible  <bruno@clisp.org>
10061
10062         threadlib: Allow the package to change the default to 'no'.
10063         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
10064         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
10065         Reported by Paul Eggert.
10066
10067 2010-09-22  Pádraig Brady  <P@draigbrady.com>
10068             Bruno Haible  <bruno@clisp.org>
10069
10070         Fix endless loop in mbmemcasecoll.
10071         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
10072         byte.
10073         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
10074
10075 2010-09-22  Bruno Haible  <bruno@clisp.org>
10076
10077         Tests for module 'memcoll'.
10078         * modules/memcoll-tests: New file.
10079         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
10080
10081         memcoll, xmemcoll: Clarify size vs. length.
10082         * modules/memcoll.c (memcoll0): Clarify specification.
10083         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
10084         passed to collate_error.
10085
10086 2010-09-22  Bruno Haible  <bruno@clisp.org>
10087
10088         Tests for module 'memcasecmp'.
10089         * modules/memcasecmp-tests: New file.
10090         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
10091
10092 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10093
10094         * lib/pthread.in.h: Add split double-inclusion guard, and include
10095         system <pthread.h> if there is one.  Use @@-style as in other
10096         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
10097         pthread.h doesn't.
10098         (pthread_mutexattr_destroy, pthread_mutexattr_init):
10099         (pthread_mutexattr_settype, pthread_mutex_trylock):
10100         New static inline functions, if there's no system <pthread.h>.
10101         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
10102         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
10103         Approximate with mutexes if the system lacks spinlocks, as in
10104         MacOS.
10105         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
10106         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
10107         @@-style.  Check for spinlocks separately.
10108         (gl_PTHREAD_DEFAULTS): New macro.
10109         * modules/pthread: Redo to use a more typical style for in.h files.
10110
10111 2010-09-21  Eric Blake  <eblake@redhat.com>
10112
10113         net_if: enhance tests
10114         * tests/test-net_if.c (main): Move signature checks earlier.
10115         Print failures to stderr.
10116         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
10117         Document the bug that we do not yet fix.
10118
10119 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10120
10121         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
10122         about gnulib, not GSS.
10123
10124 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10125
10126         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
10127         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
10128         for Emacs.
10129         * build-aux/pmccabe2html: Make Makefile.am example code more
10130         cut-and-paste friendly.
10131
10132 2010-09-21  Simon Josefsson  <simon@josefsson.org>
10133
10134         * tests/test-net_if.c: New file.
10135         * modules/net_if-tests: New file.
10136
10137 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10138
10139         pthread: add pthread_spin_destroy
10140         * lib/pthread.in.h (pthread_spin_destroy): New function.
10141
10142 2010-09-19  Bruno Haible  <bruno@clisp.org>
10143
10144         gnulib-tool: Fix --help output.
10145         * gnulib-tool (func_usage): Fix help message.
10146         Reported by Reuben Thomas <rrt@sc3d.org>.
10147
10148 2010-09-18  Jim Meyering  <meyering@redhat.com>
10149
10150         maint.mk: avoid unexpanded \n in two diagnostics
10151         * top/maint.mk (sc_prohibit_always_true_header_tests):
10152         Don't use a literal \n in a halt=... assignment.  It would not be
10153         expanded, and the two \n bytes would appear in the diagnostic output
10154         rather than the desired newline.  Use halt=$$(printf ... instead.
10155         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10156
10157 2010-09-18  Bruno Haible  <bruno@clisp.org>
10158
10159         netinet_in: Doc tweak.
10160         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
10161         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10162
10163 2010-09-18  Jim Meyering  <meyering@redhat.com>
10164
10165         init.sh: correct an outdated comment
10166         * tests/init.sh (create_exe_shims_):  s/function/alias/
10167
10168         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
10169         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
10170         a file named "*.exe" is removed between the glob expansion and the
10171         processing of that oddly named file.
10172
10173 2010-09-17  Eric Blake  <eblake@redhat.com>
10174
10175         mirbsd: add some more support
10176         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
10177         in BSD family.
10178         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
10179         devices as OpenBSD.
10180         * m4/host-os.m4 (mirbsd): Add MirBSD.
10181
10182         tests: fix unportable assumption on sys/wait.h
10183         * tests/test-sys_wait.c (main): Relax test.
10184         * tests/test-stdlib.c (main): Likewise.
10185
10186         init.sh: accomodate directory with no .exes
10187         * tests/init.sh: Accomodate directory containing only scripts.
10188
10189         tests: avoid compiler warning
10190         * tests/test-stdlib.c (main): Use the variable.
10191
10192         fdutimens, fdutimensat: update signature, again
10193         * lib/utimens.h (gl_futimens): Delete, and move signature...
10194         (fdutimens): ...here.
10195         (fdutimensat): Rearrange signature.
10196         (lutimensat): Rename variable for clarity.
10197         * lib/fdutimensat.c (fdutimensat): Update signature.
10198         * lib/utimens.c (fdutimens): Likewise.
10199         (gl_futimens): Delete.
10200         (utimens, lutimens): Update callers.
10201         * lib/futimens.c (futimens): Likewise.
10202         * tests/test-fdutimensat.c: Likewise.
10203         * tests/test-utimens.c: Likewise.
10204         * tests/test-futimens.h: Update comment.
10205         * NEWS: Mention this.
10206         Suggested by Paul Eggert.
10207
10208 2010-09-17  Bruno Haible  <bruno@clisp.org>
10209
10210         Take over the maintenance of some older macros from Autoconf.
10211         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
10212         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
10213         GNU Autoconf.
10214         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
10215         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
10216
10217 2010-09-17  Eric Blake  <eblake@redhat.com>
10218
10219         fdutimensat: drop atflag validation
10220         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
10221         with valid fd, to close a race scenario where futimens is
10222         unsupported and FILE was replaced by a symlink.
10223         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
10224         accordingly.
10225         Suggested by Paul Eggert.
10226
10227 2010-09-16  Bruno Haible  <bruno@clisp.org>
10228
10229         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
10230         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
10231
10232 2010-09-16  Bruno Haible  <bruno@clisp.org>
10233
10234         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
10235         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
10236         login_tty exists.
10237         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10238
10239 2010-09-16  Bruno Haible  <bruno@clisp.org>
10240
10241         login_tty: Make the replacement code work on BSD systems.
10242         * lib/login_tty.c: Include <sys/ioctl.h>.
10243         (login_tty): Use ioctl TIOCSCTTY when available.
10244         * modules/login_tty (Depends-on): Add sys_ioctl.
10245         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10246
10247 2010-09-16  Bruno Haible  <bruno@clisp.org>
10248
10249         login_tty: Stricter unit test.
10250         * modules/login_tty-tests (Depends-on): Add tcgetsid.
10251         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
10252         and tcgetsid() after login_tty.
10253         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10254
10255 2010-09-16  Bruno Haible  <bruno@clisp.org>
10256
10257         New module 'tcgetsid'.
10258         * lib/tcgetsid.c: New file.
10259         * m4/tcgetsid.m4: New file.
10260         * modules/tcgetsid: New file.
10261         * modules/termios (Depends-on): Add c++defs, warn-on-use.
10262         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
10263         GNULIB_TCGETSID, HAVE_TCGETSID.
10264         * lib/termios.in.h: Include <sys/types.h>.
10265         (tcgetsid): New declaration.
10266         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
10267         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
10268         * doc/posix-functions/tcgetsid.texi: Mention the new module.
10269         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
10270
10271 2010-09-16  Bruno Haible  <bruno@clisp.org>
10272
10273         Tests for module 'termios'.
10274         * modules/termios-c++-tests: New file.
10275         * modules/termios-tests: New file.
10276         * tests/test-termios-c++.cc: New file.
10277         * tests/test-termios.c: New file.
10278
10279         New module 'termios'.
10280         * modules/termios: New file.
10281         * lib/termios.in.h: New file.
10282         * m4/termios_h.m4: New file.
10283         * doc/posix-headers/termios.texi: Mention the new module.
10284
10285 2010-09-16  Eric Blake  <eblake@redhat.com>
10286
10287         fdutimensat: add an atflag parameter
10288         * lib/fdutimensat.c (fdutimensat): Add new parameter.
10289         * lib/utimens.h (fdutimensat): Update prototype.
10290         * tests/test-fdutimensat.c: Adjust test to match.
10291         * NEWS: Document the change.
10292         Suggested by Paul Eggert.
10293
10294 2010-09-16  Bruno Haible  <bruno@clisp.org>
10295
10296         Fix typos in comments.
10297         * lib/striconveh.h: Fix typo in comment.
10298         * lib/login_tty.c (login_tty): Likewise.
10299
10300 2010-09-15  Bruno Haible  <bruno@clisp.org>
10301
10302         stdlib: clarify MirBSD WEXITSTATUS bug
10303         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
10304         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10305
10306 2010-09-15  Eric Blake  <eblake@redhat.com>
10307
10308         stdlib: work around MirBSD WEXITSTATUS bug
10309         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
10310         * modules/stdlib (Depends-on): Add sys_wait.
10311         * tests/test-sys_wait.c (main): Enhance test.
10312         * tests/test-stdlib.c (main): Likewise.
10313         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
10314
10315         docs: mention MacOS issue with WEXITSTATUS(constant)
10316         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
10317         issue.
10318         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10319
10320         strnlen: add tests
10321         * modules/strnlen-tests: New file.
10322         * tests/test-strnlen.c: Likewise.
10323
10324 2010-09-14  Bruno Haible  <bruno@clisp.org>
10325
10326         unistr/base: Avoid link errors when module 'libunistring' is also used.
10327         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
10328         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
10329         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
10330         Declare also when HAVE_LIBUNISTRING is set.
10331         Reported by Pádraig Brady <P@draigbrady.com>.
10332
10333 2010-09-14  Eric Blake  <eblake@redhat.com>
10334
10335         test-rawmemchr: make more robust
10336         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
10337         (Depends-on, configure.ac): Add needed prerequisites to use it.
10338         * modules/memchr-tests (Files, Depends-on, configure.ac):
10339         Likewise, to avoid implicit reliance on memchr module prereqs.
10340         * tests/test-memchr.c (main): Ensure proper masking.
10341         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
10342         reads.
10343
10344         memchr: detect glibc Alpha bug
10345         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
10346         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
10347         Alpha.
10348         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
10349         * tests/test-memchr.c (main): Enhance test.
10350         Reported by Nelson H. F. Beebe.
10351
10352 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10353
10354         fts, getcwd, glob: audit for dirfd returning -1
10355         * lib/fts.c (opendir): Remove #define; no longer used.
10356         (opendirat): New arg PDIR_FD.  All callers changed.
10357         (fts_build, _opendir2): Use new opendirat to avoid the need for
10358         dirfd, or for checking whether dirfd returns a negative value.
10359         Don't use opendir; always use openat followed by fdopendir.
10360         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
10361         it.
10362         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
10363         returns -1 here.
10364         * modules/fts (Depends-on): Remove dirfd.
10365         * modules/getcwd (Depends-on): Likewise.
10366
10367 2010-09-13  Eric Blake  <eblake@redhat.com>
10368
10369         float: fix broken MirBSD header
10370         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
10371         * doc/posix-headers/float.texi (float.h): Document it.
10372
10373 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10374
10375         fts: use O_NOFOLLOW to avoid race condition when opening a directory
10376         * lib/fts.c (opendirat): New arg extra_flags.
10377         (__opendir2): Use it to avoid following symlinks when opening
10378         a directory, if symlinks are not supposed to be followed.  See
10379         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
10380
10381         fdopendir: preserve argument fd before returning
10382         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
10383         (fdopendir_with_dup, fd_clone_opendir): New static functions.
10384         (fdopendir): Use them, arranging for FD to be open to the same
10385         directory that it was when it started.  (It might be temporarily
10386         closed while fdopendir is running, so this not thread- or
10387         signal-safe.)  Be careful to do the right thing even when file
10388         descriptors are scarce and dup fails with errno == EMFILE.  See
10389         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
10390
10391 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
10392
10393         regex: Pass the system regex if its only problem is 32-bit regoff_t.
10394         * NEWS: Document change.
10395         * m4/regex.m4: Disable test for regoff_t size.
10396
10397 2010-09-13  Jim Meyering  <meyering@redhat.com>
10398
10399         fts: don't operate on an invalid file descriptor after failed dup
10400         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
10401         negative file descriptor.
10402
10403 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10404
10405         savedir: add streamsavedir, deprecate fdsavedir
10406         * NEWS: Mention deprecation of fdsavedir.
10407         * lib/savedir.c (streamsavedir): New extern function, whose name
10408         ends in "savedir" to be consistent with the others.  This differs
10409         from savedirstream in that it doesn't close its argument.  The
10410         next version of GNU tar will use this instead of fdsavedir, to
10411         avoid some race conditions and conserve file descriptors.
10412         (savedirstream): Reimplement as a wrapper around streamsavedir.
10413         (fdsavedir): Add a comment deprecating this function.  As far as
10414         I know, only GNU tar used it, and GNU tar doesn't need it any more.
10415         * lib/savedir.h (streamsavedir): New decl.
10416         (fdsavedir): Add a comment deprecating this.
10417
10418 2010-09-10  Bruno Haible  <bruno@clisp.org>
10419
10420         langinfo: Fix last commit.
10421         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
10422         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
10423         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10424
10425 2010-09-10  Bruno Haible  <bruno@clisp.org>
10426
10427         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
10428         * lib/progreloc.c (O_EXEC): Define fallback.
10429
10430 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
10431
10432         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
10433         * NEWS: Document recent changes to fcntl-h.
10434         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
10435         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
10436         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
10437         Similarly for O_SEARCH; this last was already true, but not documented.
10438         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
10439         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
10440         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
10441         Likewise.
10442         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
10443         is zero, not whether it is defined.
10444         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
10445         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
10446         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
10447
10448 2010-09-10  Bruno Haible  <bruno@clisp.org>
10449
10450         langinfo, nl_langinfo: Fix for IRIX 5.3.
10451         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
10452         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
10453         HAVE_LANGINFO_YESEXPR.
10454         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
10455         HAVE_LANGINFO_YESEXPR.
10456         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
10457         HAVE_LANGINFO_T_FMT_AMPM is 0.
10458         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
10459         HAVE_LANGINFO_YESEXPR is 0.
10460         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
10461         NOEXPR.
10462         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
10463         * doc/posix-functions/nl_langinfo.texi: Likewise.
10464         Reported by Eric Blake.
10465
10466 2010-09-10  Bruno Haible  <bruno@clisp.org>
10467
10468         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
10469         * doc/glibc-functions/login_tty.texi: Mention the include file problem
10470         on FreeBSD 8.0 and OpenBSD 4.6.
10471         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
10472         * m4/pty_h.m4 (gl_PTY_H): Likewise.
10473         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
10474         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
10475         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
10476         ac_includes_default.
10477         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10478
10479 2010-09-09  Eric Blake  <eblake@redhat.com>
10480
10481         strsignal: work around NetBSD bug
10482         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
10483         * lib/string.in.h (includes): Likewise.
10484         * doc/posix-functions/strsignal.texi (strsignal): Document the
10485         bug.
10486         Reported by Nelson H. F. Beebe.
10487
10488         gnulib-tool: work with NetBSD /bin/sh
10489         * gnulib-tool (func_cache_var, func_cache_lookup_module)
10490         (func_get_description, func_get_comment, func_get_status)
10491         (func_get_notice, func_get_applicability, func_get_filelist)
10492         (func_get_dependencies, func_get_autoconf_early_snippet)
10493         (func_get_autoconf_snippet, func_get_automake_snippet)
10494         (func_get_include_directive, func_get_link_directive)
10495         (func_get_license, func_get_maintainer, func_import): Avoid
10496         shell syntax errors from parsing syntax extensions.
10497
10498 2010-09-09  Bruno Haible  <bruno@clisp.org>
10499
10500         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10501         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
10502         a reliable way to determine whether the 'alias' command works.
10503
10504 2010-09-08  Jim Meyering  <meyering@redhat.com>
10505
10506         init.sh: penalize a set-x-impaired shell; don't disqualify it
10507         * tests/init.sh: Too many shells corrupt application stderr when
10508         you set -x, so we can't afford to disqualify them, since at least
10509         on Irix-6.5, that would disqualify all bourne shells.
10510         Instead, use a two-pass approach.
10511         On the first pass, try to find a shell that meets the stricter
10512         condition that set -x does not corrupt stderr.
10513         If no shell meets the stricter condition, retest each candidate
10514         shell, but without that extra condition.  Finally, when
10515         VERBOSE=yes is requested and set -x might cause trouble, simply
10516         issue a warning and refrain from enabling debug output.
10517
10518 2010-09-08  Eric Blake  <eblake@redhat.com>
10519
10520         unsetenv: fix OpenBSD bug
10521         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
10522         * doc/posix-functions/unsetenv.texi (unsetenv): Update
10523         documentation.
10524         Reported by Jim Meyering.
10525
10526         strtod: work around IRIX 6.5 bug
10527         * lib/strtod.c (strtod): Reparse number on shorter string if
10528         exponent parse was invalid.
10529         * tests/test-strtod.c (main): Add check for "0x1p 2".
10530         Reported by Tom G. Christensen.
10531
10532         getopt: optimize previous patch
10533         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
10534         empty variable.  Speed up awk script.
10535         Reported by Paolo Bonzini.
10536
10537 2010-09-08  Jim Meyering  <meyering@redhat.com>
10538
10539         test.sh: disqualify shells for which set -x corrupts stderr
10540         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
10541         and OpenBSD 4.7.  They make it so with "set -x", environment settings
10542         appear in stderr output.  For example, this command:
10543             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
10544         prints "P=1" on those two systems:
10545
10546 2010-09-08  Bruno Haible  <bruno@clisp.org>
10547
10548         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10549         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
10550         commands, because some shells ignore redirections when there is an
10551         error in the command lookup.
10552         Reported by Eric Blake.
10553
10554 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
10555
10556         * lib/regex.h: Fix a mention of `regex_compile' (should be
10557         `re_compile_pattern').
10558         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
10559         (re_set_registers): Correct name of parameter in comment.
10560
10561         * doc/regex.texi: Add documentation for missing syntax flags.
10562         Remove commented-out documentation of defunct syntax option
10563         RE_NO_EMPTY_ALTS.
10564         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
10565         Add documentation of re_set_registers.
10566         Document trick to re-use a pattern buffer by setting fastmap manually.
10567         Update documentation of struct re_pattern_buffer per public members.
10568         Uncomment documentation of equivalence class operators and
10569         collating symbol operators, since they are now implemented,
10570         Explain leftmost-longest matching in relation to alternatives.
10571         Tidy documentation of substring matching.
10572         Remove POSIX documentation, which is done better in
10573         glibc, and refer the reader there. Keep BSD API documentation, as
10574         that is not readily available elsewhere.
10575
10576 2010-09-07  Eric Blake  <eblake@redhat.com>
10577
10578         getopt: handle POSIXLY_CORRECT set but not exported
10579         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
10580         export state of POSIXLY_CORRECT, due to bash set -o posix.
10581         Reported by Dustin J. Mitchell.
10582
10583 2010-09-05  Bruno Haible  <bruno@clisp.org>
10584
10585         gnulib-tool: Highlight the changed options.
10586         * gnulib-tool (func_usage): Display the --import, --add-import,
10587         --remove-import explanations in bold font.
10588
10589 2010-09-06  Karl Berry  <karl@gnu.org>
10590
10591         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
10592
10593 2010-09-05  Bruno Haible  <bruno@clisp.org>
10594
10595         uniwidth/width: Update comment.
10596         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
10597         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
10598
10599 2010-09-05  Bruno Haible  <bruno@clisp.org>
10600
10601         isinf, isnan: Relax license.
10602         * modules/isinf (License): Change from GPL to LGPL, with consent from
10603         Ben Pfaff.
10604         * modules/isnan (License): Likewise.
10605         Requested by Ludovic Courtès.
10606
10607 2010-09-04  Bruno Haible  <bruno@clisp.org>
10608
10609         gnulib-tool: Help migration from --import to --add-import or --update.
10610         * gnulib-tool: Emit a verbose error message when --import is used
10611         without any module name.
10612
10613 2010-09-04  Bruno Haible  <bruno@clisp.org>
10614
10615         Update doc about gnulib-tool.
10616         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
10617         'gnulib-tool --update' in more detail.
10618         Reported by Eric Blake.
10619
10620 2010-09-04  Bruno Haible  <bruno@clisp.org>
10621
10622         gnulib-tool: Change --import. New options --add/remove-import.
10623         * gnulib-tool: New options --add-import, --remove-import.
10624         (func_usage): Document them.
10625         (have_associative): Define always.
10626         (func_import): In import mode, don't merge the specified settings with
10627         the cached settings. Implement remove-import mode.
10628         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
10629         Explain when to use them versus --import.
10630         (Simple update): Use --add-import instead of --import.
10631         * NEWS: Mention the change.
10632
10633 2010-09-04  Bruno Haible  <bruno@clisp.org>
10634
10635         * doc/gnulib-tool.texi (Initial import): Update paragraph about
10636         separate gnulib.mk.
10637
10638 2010-09-04  Bruno Haible  <bruno@clisp.org>
10639
10640         gnulib-tool: Don't talk about CVS any more.
10641         * gnulib-tool (func_usage, func_import): Write "version control"
10642         instead of CVS.
10643
10644 2010-09-04  Jim Meyering  <meyering@redhat.com>
10645
10646         maint.mk: avoid obscure sc_copyright_check failure in coreutils
10647         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
10648         false positives (whose names may be ill-chosen) when searching
10649         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
10650         would cause a false-positive.
10651
10652         avoid coreutils "make distcheck" failure
10653         Coreutils tests with an absolute build directory name that contains
10654         a space.  Not quoting this directory name caused a failure.
10655         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
10656         * tests/test-vc-list-files-cvs.sh: Likewise.
10657
10658 2010-09-04  Bruno Haible  <bruno@clisp.org>
10659
10660         gnulib-tool: Avoid error when run in a package without Makefile.am.
10661         * gnulib-tool: When collecting the m4dirs in a package that does not
10662         have a Makefile.am, eliminate those directories that contain no
10663         gnulib-cache.m4. Fix expression that counts these directories.
10664
10665 2010-09-04  Bruno Haible  <bruno@clisp.org>
10666
10667         update-copyright test: Improve output when perl is missing or too old.
10668         * tests/test-update-copyright.sh: Move test of Perl version down after
10669         the test whether Perl exists. Provide an explanation relating Perl's
10670         error message to Automake's SKIP: message.
10671
10672 2010-09-04  Bruno Haible  <bruno@clisp.org>
10673
10674         Don't augment PATH in TESTS_ENVIRONMENT.
10675         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
10676         set abs_aux_dir instead of augmenting PATH.
10677         * modules/vc-list-files-tests (Makefile.am): Likewise.
10678         * tests/test-update-copyright.sh: Augment PATH here.
10679         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
10680         path_prepend_.
10681         * tests/test-vc-list-files-git.sh: Likewise.
10682
10683 2010-09-04  Jim Meyering  <meyering@redhat.com>
10684
10685         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
10686         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
10687
10688 2010-09-04  Bruno Haible  <bruno@clisp.org>
10689
10690         strdup: Fix compilation error in C++ mode.
10691         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
10692         the macro.
10693
10694 2010-09-04  Bruno Haible  <bruno@clisp.org>
10695
10696         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
10697         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
10698         macro into a function.
10699         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10700
10701 2010-09-04  Bruno Haible  <bruno@clisp.org>
10702
10703         Set PATH_SEPARATOR the same way autoconf does.
10704         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
10705         the value of PATH_SEPARATOR the same way autoconf-generated configure
10706         scripts do.
10707         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
10708         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
10709
10710 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10711
10712         Set PATH_SEPARATOR the same way autoconf does.
10713         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
10714         the same way autoconf-generated configure scripts do.
10715         * posix-modules: Likewise.
10716
10717 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10718
10719         hash: fix safe_hasher const typo
10720         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
10721         const; otherwise, there is a type error later.
10722
10723 2010-09-02  Jim Meyering  <meyering@redhat.com>
10724
10725         test-update-copyright.sh: require perl 5.8.0
10726         * tests/test-update-copyright.sh: Require 5.8.0,
10727         which Tom G. Christensen has confirmed is adequate,
10728         while 5.6.1 is not.
10729
10730 2010-09-02  Eric Blake  <eblake@redhat.com>
10731
10732         tests: init.sh improvements for re-exec'ing with zsh
10733         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
10734         -vx through shell re-exec.
10735         Reported by Tom G. Christensen.
10736
10737         wctype: fix typo in previous commit
10738         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
10739         Reported by Ludovic Courtès.
10740
10741 2010-09-02  Jim Meyering  <meyering@redhat.com>
10742
10743         test-update-copyright.sh: skip test if Perl is too old
10744         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
10745         Reported by Tom G. Christensen.
10746
10747 2010-09-02  Bruno Haible  <bruno@clisp.org>
10748
10749         wctype: Avoid compilation error on IRIX 6.5.30.
10750         * lib/wctype.in.h (iswblank): Declare with a replacement if
10751         REPLACE_ISWBLANK is set.
10752         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
10753         declared. Set REPLACE_ISWBLANK.
10754         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
10755         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
10756         * doc/posix-headers/wctype.texi: Likewise.
10757         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10758
10759 2010-09-01  Bruno Haible  <bruno@clisp.org>
10760
10761         New module 'socketlib'.
10762         * modules/socketlib: New file.
10763         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
10764         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
10765         * modules/sockets (Depends-on): Add socketlib.
10766         Suggested by Sam Steingold <sds@gnu.org>.
10767
10768 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10769
10770         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
10771
10772         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
10773         when one needs search access to a directory but not read access.
10774         On systems where it is available, it works in some cases where
10775         O_RDONLY does not, namely on directories that are searchable but
10776         not readable, and which need only to be searchable.  If O_SEARCH
10777         is not available, fall back to the traditional method of using
10778         O_RDONLY.
10779
10780         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
10781         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
10782         when opening a directory that needs only to be searchable.
10783         * lib/chdir-safer.c (chdir_no_follow): Likewise.
10784         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
10785         * lib/openat-proc.c (openat_proc_name): Likewise.
10786         * lib/openat.c (openat_needs_fchdir): Likewise.
10787         * lib/save-cwd.c (save_cwd): Likewise.
10788         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
10789
10790 2010-08-28  Bruno Haible  <bruno@clisp.org>
10791
10792         New module 'host-cpu-c-abi'.
10793         * modules/host-cpu-c-abi: New file.
10794         * m4/host-cpu-c-abi.m4: New file, based on part of
10795         clisp/src/m4/general.m4.
10796         Requested by Sam Steingold <sds@gnu.org>.
10797
10798 2010-08-31  Eric Blake  <eblake@redhat.com>
10799         and Jim Meyering  <meyering@redhat.com>
10800
10801         hash: factor, and guard against misbehaving hasher function
10802         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
10803         of table->hasher's return value.  Also protect against a hash value
10804         so large that adding it to table->bucket results in a NULL pointer.
10805         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
10806         Use it in place of open-coded check-and-abort.
10807
10808 2010-08-30  Bruno Haible  <bruno@clisp.org>
10809
10810         hash: silence spurious clang warning
10811         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
10812         Reported by Eric Blake.
10813
10814 2010-08-30  Eric Blake  <eblake@redhat.com>
10815
10816         strstr, memmem, strcasestr: avoid leaked shell message
10817         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
10818         FreeBSD.
10819         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10820         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10821
10822         tests: silence clang warning
10823         * tests/test-malloca.c (do_allocation): Avoid dead store.
10824
10825 2010-08-29  Bruno Haible  <bruno@clisp.org>
10826
10827         gettext: Fix recent mistake.
10828         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
10829
10830 2010-08-29  Bruno Haible  <bruno@clisp.org>
10831
10832         selinux-h: Offer a --without-selinux option.
10833         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
10834         --without-selinux was specified, skip all tests and define
10835         HAVE_SELINUX_SELINUX_H to 0.
10836         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
10837         set LIB_SELINUX to empty.
10838         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
10839         gl_LIBSELINUX. If --without-selinux was specified, replace
10840         selinux/context.h.
10841         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
10842
10843 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10844             Bruno Haible  <bruno@clisp.org>
10845
10846         Make the module 'realloc-gnu' work again on AIX and OSF/1.
10847         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
10848         of HAVE_REALLOC.
10849         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
10850         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
10851         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
10852         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10853
10854 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10855             Bruno Haible  <bruno@clisp.org>
10856
10857         Make the module 'calloc-gnu' work again on AIX and OSF/1.
10858         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
10859         HAVE_CALLOC.
10860         * lib/xmalloc.c: Update accordingly.
10861         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
10862         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
10863         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
10864
10865 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10866             Bruno Haible  <bruno@clisp.org>
10867
10868         Make the module 'malloc-gnu' work again on AIX and OSF/1.
10869         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
10870         HAVE_MALLOC.
10871         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
10872         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
10873         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10874
10875 2010-08-29  Bruno Haible  <bruno@clisp.org>
10876
10877         Update modules list.
10878         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
10879         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
10880         (String handling <string.h>): Add astrxfrm.
10881         (File system functions): Add readlinkat.
10882
10883 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10884
10885         Tests for module 'realloc-gnu'.
10886         * modules/realloc-gnu-tests: New file.
10887         * tests/test-realloc-gnu.c: New file.
10888
10889         Tests for module 'calloc-gnu'.
10890         * modules/calloc-gnu-tests: New file.
10891         * tests/test-calloc-gnu.c: New file.
10892
10893         Tests for module 'malloc-gnu'.
10894         * modules/malloc-gnu-tests: New file.
10895         * tests/test-malloc-gnu.c: New file.
10896
10897 2010-08-28  Bruno Haible  <bruno@clisp.org>
10898
10899         Rename module 'realloc' -> 'realloc-gnu'.
10900         * modules/realloc-gnu: New file, copied from modules/realloc.
10901         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
10902         obsolete.
10903         * modules/mgetgroups (Depends-on): Update.
10904         * doc/posix-functions/realloc.texi: Update.
10905         * NEWS: Mention the change.
10906
10907         Rename module 'calloc' -> 'calloc-gnu'.
10908         * modules/calloc-gnu: New file, copied from modules/calloc.
10909         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
10910         obsolete.
10911         * doc/posix-functions/calloc.texi: Update.
10912         * NEWS: Mention the change.
10913
10914         Rename module 'malloc' -> 'malloc-gnu'.
10915         * modules/malloc-gnu: New file, copied from modules/malloc.
10916         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
10917         obsolete.
10918         * modules/argp (Depends-on): Update.
10919         * modules/regex (Depends-on): Update.
10920         * doc/posix-functions/malloc.texi: Update.
10921         * NEWS: Mention the change.
10922
10923 2010-08-28  Eric Blake  <eblake@redhat.com>
10924
10925         pread, pwrite: add missing dependency
10926         * modules/pread (Depends-on): Add extensions.
10927         * modules/pwrite (Depends-on): Likewise.
10928
10929 2010-08-28  Bruno Haible  <bruno@clisp.org>
10930
10931         unistr/u*-strchr: Fix tests dependencies.
10932         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
10933         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
10934         Reported by Ian Beckwith <ianb@erislabs.net>.
10935
10936 2010-08-28  Bruno Haible  <bruno@clisp.org>
10937
10938         read-file: Don't occupy too much unused memory.
10939         * lib/read-file.c (fread_file): Shrink the buffer at the end.
10940
10941 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
10942             Eric Blake  <eblake@redhat.com>
10943             Bruno Haible  <bruno@clisp.org>
10944
10945         read-file: Avoid memory reallocations with regular files.
10946         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
10947         (fread_file): With regular files, use the remaining length as the
10948         initial buffer size.  Check against overflow.
10949         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
10950         sys_stat.
10951
10952 2010-08-28  Bruno Haible  <bruno@clisp.org>
10953
10954         ftello: Relax license.
10955         * modules/ftello (License): Relax to LGPLv2+.
10956         Reported by Eric Blake.
10957
10958 2010-08-28  Bruno Haible  <bruno@clisp.org>
10959
10960         Avoid relocwrapper link errors due to gnulib replacement functions.
10961         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
10962         function.
10963         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10964
10965 2010-08-28  Bruno Haible  <bruno@clisp.org>
10966
10967         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
10968         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
10969         defined.
10970         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
10971         Suggested by Eric Blake.
10972
10973 2010-08-28  Bruno Haible  <bruno@clisp.org>
10974
10975         sys_socket, netdb: Ensure socklen_t gets defined.
10976         * modules/sys_socket (Depends-on): Add socklen.
10977         * modules/netdb (Depends-on): Likewise.
10978         * modules/getaddrinfo (Depends-on): Remove socklen.
10979         * modules/getsockopt (Depends-on): Likewise.
10980         * modules/setsockopt (Depends-on): Likewise.
10981         * tests/test-sys_socket.c: Check that socklen_t is defined.
10982         * tests/test-netdb.c: Likewise.
10983         * m4/socklen.m4: Update comments.
10984         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10985
10986 2010-08-27  Eric Blake  <eblake@redhat.com>
10987
10988         login_tty: add missing dependency
10989         * modules/login_tty (Depends-on): Add pty.
10990
10991 2010-08-26  Eric Blake  <eblake@redhat.com>
10992
10993         lib-symbol-versions: fix m4 quoting
10994         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
10995         format for AC_LINK_IFELSE.
10996
10997         glob: fix compile test
10998         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
10999
11000         btowc: fix missing file
11001         * modules/btowc (Files): Also ship locale-fr.m4.
11002
11003         lseek: fix link test
11004         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
11005         AC_LINK_IFELSE.
11006
11007         include_next: silence autoconf 2.68 warning
11008         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
11009         AC_COMPILE_IFELSE as special.
11010         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
11011         autoconf < 2.68.
11012
11013         acl: fix compilation test
11014         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
11015         AC_COMPILE_IFELSE.
11016
11017 2010-08-26  Bruno Haible  <bruno@clisp.org>
11018
11019         Modernize AC_TRY_RUN invocations.
11020         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
11021         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11022         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
11023         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
11024         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
11025         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11026         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11027         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11028         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11029         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11030         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11031         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11032         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11033         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11034         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11035         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11036         gl_MBRLEN_NUL_RETVAL): Likewise.
11037         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11038         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11039         Likewise.
11040         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11041         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11042         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11043         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11044         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
11045         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
11046         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
11047         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11048         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
11049         Likewise.
11050         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11051         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
11052         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11053         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11054         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11055         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11056         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11057         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
11058         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11059         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11060
11061 2010-08-26  Bruno Haible  <bruno@clisp.org>
11062
11063         Modernize AC_TRY_LINK invocations.
11064         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
11065         AC_TRY_LINK.
11066         * m4/argp.m4 (gl_ARGP): Likewise.
11067         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11068         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11069         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
11070         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
11071         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
11072         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
11073         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11074         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11075         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
11076         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
11077         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
11078         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
11079         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
11080         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11081         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11082         * m4/hostent.m4 (gl_HOSTENT): Likewise.
11083         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11084         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
11085         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11086         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
11087         Likewise.
11088         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
11089         Likewise.
11090         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
11091         Likewise.
11092         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11093         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
11094         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
11095         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11096         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11097         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11098         * m4/servent.m4 (gl_SERVENT): Likewise.
11099         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11100         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11101         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11102         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11103         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11104         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11105         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11106         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11107         * modules/tsearch-tests (configure.ac): Likewise.
11108
11109 2010-08-26  Bruno Haible  <bruno@clisp.org>
11110
11111         Modernize AC_TRY_COMPILE invocations.
11112         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
11113         AC_TRY_COMPILE.
11114         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
11115         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
11116         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11117         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11118         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11119         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11120         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11121         * m4/lock.m4 (gl_LOCK): Likewise.
11122         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11123         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11124         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
11125         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11126         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11127         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
11128         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
11129         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
11130         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11131         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11132         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11133         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11134         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
11135         extraneous semicolon.
11136
11137 2010-08-26  Jim Meyering  <meyering@redhat.com>
11138
11139         stat-time: relax license LGPL
11140         * modules/stat-time (License): Change from GPL to LGPL,
11141         with consent from all contributors, for use in libguile.
11142         Requested by Ludovic Courtès.
11143
11144 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
11145
11146         poll: return immediately on POLLHUP.
11147         * lib/poll.c (poll): Always set timeout before wait_timeout is
11148         computed.
11149
11150 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11151
11152         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
11153         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
11154         rmdir ("dir/.//"), unlinkat.
11155
11156 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11157
11158         stdbool: avoid spurious failure with modern xlc
11159         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11160
11161 2010-08-24  Bruno Haible  <bruno@clisp.org>
11162
11163         getloadavg: simplify code
11164         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
11165         gl_have_func. Update comments.
11166
11167 2010-08-24  Eric Blake  <eblake@redhat.com>
11168
11169         getloadavg: don't define SVR4 on cygwin
11170         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
11171         only define SVR4 when -lkvm is required.
11172         Reported by Yaakov Selkowitz.
11173
11174 2010-08-24  Bruno Haible  <bruno@clisp.org>
11175
11176         priv-set: fix comment
11177         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
11178
11179 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11180
11181         priv-set: fix comments
11182         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
11183         to match code, as suggested by David Bartley in:
11184         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
11185
11186 2010-08-23  Eric Blake  <eblake@redhat.com>
11187
11188         stdbool: avoid rejecting clang
11189         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11190         * tests/test-stdbool.c: Enable more tests if using the system
11191         <stdbool.h> instead of the gnulib replacement.
11192         (main): Move xlc bug test to a runtime test for all compilers.
11193         Reported by Anders Kaseorg.
11194
11195         argz: fix shell quoting issue
11196         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
11197         Reported by Charles Wilson.
11198
11199 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
11200             Erik Faye-Lund <kusmabite@gmail.com>
11201
11202         poll, select: handle ERROR_BROKEN_PIPE.
11203         * lib/poll.c (win32_compute_revents): Return POLLHUP when
11204         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11205         * lib/select.c (win32_compute_revents): Do not mark a pipe
11206         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11207
11208 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
11209
11210         fts: allow compilation with C++
11211         * lib/fts_.h: Specify extern "C" linkage with C++.
11212
11213 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11214
11215         Fix gnulib-tool sed script de-commentation for AIX sed.
11216         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
11217         sed.
11218
11219 2010-08-17  Eric Blake  <eblake@redhat.com>
11220
11221         test-stddef: test for (some) offsetof bugs
11222         * tests/test-stddef.c: Enhance test to ensure correct type of
11223         offsetof.
11224         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
11225         that we are not fixing at this time.
11226
11227 2010-08-15  Bruno Haible  <bruno@clisp.org>
11228
11229         stpncpy: Allow stpncpy to be defined as a macro.
11230         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
11231         if it's already correctly declared.
11232         * lib/string.in.h (stpncpy): Undefine before redefining.
11233         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
11234
11235 2010-08-14  Bruno Haible  <bruno@clisp.org>
11236
11237         Rename module 'memxfrm' to 'amemxfrm'.
11238         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
11239         (amemxfrm): Renamed from memxfrm.
11240         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
11241         (amemxfrm): Renamed from memxfrm.
11242         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
11243         * NEWS: Mention the change.
11244         * MODULES.html.sh (String handling <string.h>): Update.
11245         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
11246         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
11247         * lib/unicase/u16-casexfrm.c: Likewise.
11248         * lib/unicase/u32-casexfrm.c: Likewise.
11249         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
11250         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
11251         * lib/uninorm/u16-normxfrm.c: Likewise.
11252         * lib/uninorm/u32-normxfrm.c: Likewise.
11253         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
11254         memxfrm.
11255         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
11256         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
11257         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
11258         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
11259         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
11260         Suggested by Paul Eggert.
11261
11262 2010-08-14  Bruno Haible  <bruno@clisp.org>
11263
11264         Tests for module 'astrxfrm'.
11265         * modules/astrxfrm-tests: New file.
11266         * tests/test-astrxfrm.c: New file.
11267
11268         New module 'astrxfrm'.
11269         * lib/astrxfrm.h: New file.
11270         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
11271         * modules/astrxfrm: New file.
11272
11273 2010-08-14  Reuben Thomas <rrt@sc3d.org>
11274
11275         regex: Tweak doc.
11276         * doc/regex.texi (Overview): Don't mention regex.c.
11277         (GNU Regular Expression Compiling): Likewise.
11278         (Match-end-of-line Operator): Mention 'not_eol'.
11279
11280 2010-08-14  Brian Gough  <bjg@gnu.org>
11281             Bruno Haible  <bruno@clisp.org>
11282
11283         git-merge-changelog: add doc relating to use with bzr and hg.
11284         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
11285
11286 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
11287
11288         pthread: fix pthread.h creation for srcdir != builddir
11289         * modules/pthread (Makefile.am): Fix the rule to work also in a
11290         non-srcdir build.
11291
11292 2010-08-13  Karl Berry  <karl@gnu.org>
11293
11294         * doc/regex.texi (Predefined Syntaxes): @smallexample.
11295         * doc/posix-*/*: force line break before @url of POSIX
11296         specifications.
11297         Suggested by Werner Lemberg.
11298
11299 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11300
11301         strtod: fix const diagnostic
11302         * lib/strtod.c (strtod): Don't assign const char * to char *,
11303         as this elicits a warning from GCC when warnings are enabled.
11304
11305 2010-08-10  Pádraig Brady <P@draigbrady.com>
11306         and Eric Blake  <eblake@redhat.com>
11307
11308         copy-acl: ignore ENOTSUP on HP-UX
11309         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
11310         so that it is available for HP-UX.
11311         * lib/copy-acl.c (qcopy_acl): Use it.
11312         Reported by Patrick M. Callahan.
11313
11314 2010-08-10  Eric Blake  <eblake@redhat.com>
11315
11316         open, chown: relax license
11317         * modules/open (License): Change to LGPLv2+, with consent by all
11318         authors, for use in augeas.
11319         * modules/chown (License): Likewise.
11320         * modules/lchown (Likewise): Likewise.
11321         Requested by Adam Stokes.
11322
11323 2010-08-09  Karl Berry  <karl@gnu.org>
11324
11325         * build-aux/ar-lib: new file, import from Automake.
11326         * config/srclist.txt: autocheck for updates.
11327
11328 2010-08-09  Eric Blake  <eblake@redhat.com>
11329
11330         readlinkat: adjust client modules
11331         * modules/areadlinkat (Depends-on): Use readlinkat, not
11332         symlinkat.
11333         * modules/areadlinkat-with-size (Depends-on): Likewise.
11334
11335         mknod: be more vocal about danger of running tests as root
11336         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
11337         root, since that is just asking for problems.
11338         Suggested by Bruno Haible, based on a report by Rainer Tammer.
11339
11340         readlinkat: split into its own module
11341         * modules/symlinkat: Split readlinkat...
11342         * modules/readlinkat: ...into separate module.
11343         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
11344         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
11345         * lib/symlinkat.c (readlinkat): Move...
11346         * lib/readlinkat.c: ...into new file.
11347         * modules/symlinkat-tests: Split readlinkat test...
11348         * modules/readlinkat-tests: ...into separate module.
11349         * tests/test-symlinkat.c: Split...
11350         * tests/test-readlinkat.c: ...into new file.
11351         * NEWS: Document the split.
11352         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11353         * lib/unistd.in.h (readlinkat): Likewise.
11354         Suggested by Bruno Haible.
11355
11356 2010-08-08  Bruno Haible  <bruno@clisp.org>
11357
11358         memxfrm: Speed up.
11359         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
11360         that usually only one call to strxfrm is necessary for each string
11361         part.
11362         Reported by Paul Eggert <eggert@cs.ucla.edu>.
11363
11364 2010-08-07  Karl Berry  <karl@gnu.org>
11365
11366         * doc/posix-headers/limits.texi,
11367         * doc/posix-functions/malloc.texi,
11368         * doc/posix-functions/strsignal.texi: missing @item.
11369         * doc/ld-version-script.texi: spurious leading i.
11370         * doc/regex.texi (Interval Operators): no commas inside @var.
11371
11372 2010-08-01  Bruno Haible  <bruno@clisp.org>
11373
11374         Integrate the regex documentation.
11375         * doc/gnulib.texi: Define 'cn' index.
11376         (Regular expressions): New a chapter that includes regex.texi and
11377         regexprops-generic.texi.
11378         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
11379         syntax.
11380
11381         Whitespace cleanup.
11382         * doc/regex.texi: Remove trailing spaces.
11383
11384         Add regex documentation.
11385         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
11386         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
11387         Written by Kathy A. Hargreaves and Karl Berry.
11388
11389 2010-08-01  Bruno Haible  <bruno@clisp.org>
11390
11391         link: Update documentation.
11392         * doc/posix-functions/link.texi: Update regarding Solaris.
11393
11394 2010-07-31  Bruno Haible  <bruno@clisp.org>
11395
11396         Update modules list.
11397         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
11398         (String handling <string.h>): Add memcmp2, memxfrm.
11399         (Container data structures): Add xlist, xsublist, xoset.
11400         (Core language properties): Add alignof, unused-parameter.
11401         (Process control, Numeric conversion functions <stdlib.h>): Renamed
11402         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
11403         (Unibyte characters <ctype.h>): New section.
11404         (String handling <string.h>): New section.
11405         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
11406         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
11407         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
11408         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
11409         tan, tanh, tanl, y0, y1, yn.
11410         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
11411         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
11412         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
11413         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
11414         unlockpt, vdprintf, vdprintf-posix.
11415         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
11416         (File system functions): Add concat-filename, sys_file, sys_ioctl,
11417         xconcat-filename.
11418         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
11419         getdtablesize, pipe2, pipe2-safer.
11420         (Security): New section.
11421         (Networking functions): Add accept4.
11422         (Signal handling): Add sigpipe.
11423         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
11424         mbmemcasecoll.
11425         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
11426         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
11427         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
11428         pipe-filter-ii.
11429         (Misc): Add argp-version-etc, login_tty, parse-duration.
11430
11431 2010-07-31  Bruno Haible  <bruno@clisp.org>
11432
11433         Improve doc in MODULES.html.
11434         * modules/linkat (Description): Add the word "function".
11435         * modules/mkfifo (Description): Likewise.
11436         * modules/mknod (Description): Likewise.
11437         * modules/remove (Description): Likewise.
11438         * modules/renameat (Description): Likewise.
11439         * modules/stat (Description): Likewise.
11440         * modules/symlink (Description): Likewise.
11441         * modules/unlink (Description): Likewise.
11442
11443 2010-07-31  Bruno Haible  <bruno@clisp.org>
11444
11445         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
11446         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
11447         option --enable/disable-c++ instead of --enable/disable-cxx.
11448         * NEWS: Mention the change.
11449
11450 2010-07-31  Bruno Haible  <bruno@clisp.org>
11451
11452         readlink, areadlink: Relax test a bit.
11453         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
11454         alternative to ENOTDIR.
11455         * tests/test-areadlink.h (test_areadlink): Likewise.
11456         Reported by Rainer Tammer.
11457
11458 2010-07-31  Bruno Haible  <bruno@clisp.org>
11459
11460         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
11461         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
11462         character, perform the search using U_STRCHR.
11463         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
11464         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
11465         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
11466         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
11467         Suggested by Paolo Bonzini.
11468
11469 2010-07-31  Bruno Haible  <bruno@clisp.org>
11470
11471         unistr/u*-strstr: Fix dependencies.
11472         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
11473         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
11474         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
11475
11476 2010-07-31  Bruno Haible  <bruno@clisp.org>
11477
11478         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
11479         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
11480         the beginning of the loop.
11481         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
11482         cases in 'switch' statement.
11483
11484         unistr/u8-strchr: Fix several bugs.
11485         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
11486         the string. When not found, return NULL, not a pointer near the end.
11487
11488         More tests for unistr/u8-strchr.
11489         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
11490         that the function does not read past the first occurrence of the byte
11491         being searched.
11492         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
11493         * tests/unistr/test-u16-strchr.c (main): New function.
11494         * tests/unistr/test-u32-strchr.c (main): New function.
11495
11496 2010-07-31  Bruno Haible  <bruno@clisp.org>
11497
11498         posix-modules: Ignore backup files of documentation files.
11499         * posix-modules: grep only through files named *.texi.
11500
11501 2010-07-31  Bruno Haible  <bruno@clisp.org>
11502
11503         symlinkat: Fix documentation.
11504         * doc/posix-functions/readlinkat.texi: Fix module name.
11505
11506 2010-07-31  Bruno Haible  <bruno@clisp.org>
11507
11508         fchownat: Replace also when chown has the trailing slash bug.
11509         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
11510         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
11511         introduced on 2010-04-10.
11512         Reported by Rainer Tammer.
11513
11514 2010-07-31  Bruno Haible  <bruno@clisp.org>
11515
11516         linkat: Work around AIX 7.1 bug.
11517         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
11518         whether linkat handles trailing slash correctly. If not, replace linkat
11519         and define LINKAT_TRAILING_SLASH_BUG.
11520         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
11521         check whether (fd1,file1) points to a directory if file1 or file2 ends
11522         in a slash. Code taken from lib/link.c.
11523         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
11524         Reported by Rainer Tammer.
11525
11526 2010-07-31  Bruno Haible  <bruno@clisp.org>
11527
11528         Correctly determine whether pow is available in libc on AIX 7 with xlc.
11529         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
11530         This disables an xlc optimization that was causing wrong test results.
11531         Reported by Rainer Tammer.
11532
11533 2010-07-31  Bruno Haible  <bruno@clisp.org>
11534
11535         iconv: Work around AIX 6.1..7.1 bug.
11536         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
11537         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
11538         cross-compiling, guess no on all versions of AIX.
11539         Reported by Rainer Tammer.
11540
11541 2010-07-31  Bruno Haible  <bruno@clisp.org>
11542
11543         readlink: Relax test a bit.
11544         * tests/test-readlink.h (test_readlink): Allow different errno value
11545         when readlink is called with a file name that ends in / and refers to
11546         a file.
11547         Suggested by Eric Blake.
11548         Reported by Rainer Tammer.
11549
11550 2010-07-31  Bruno Haible  <bruno@clisp.org>
11551
11552         copysign: Does not require -lm on glibc systems.
11553         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
11554         gl_COMMON_DOUBLE_MATHFUNC.
11555         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
11556
11557 2010-07-31  Bruno Haible  <bruno@clisp.org>
11558
11559         duplocale: Work around AIX 7.1 bug.
11560         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
11561         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
11562         * lib/duplocale.c (rpl_duplocale): Update comment.
11563         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
11564         Reported by Rainer Tammer.
11565
11566 2010-07-30  Bruno Haible  <bruno@clisp.org>
11567
11568         dirfd: Avoid link error on AIX 7.1.
11569         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
11570         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
11571         exist, set REPLACE_DIRFD.
11572         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
11573         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
11574         * doc/posix-functions/dirfd.texi: Update.
11575         Reported by Rainer Tammer.
11576
11577 2010-07-30  Eric Blake  <eblake@redhat.com>
11578
11579         strtod: next round of AIX fixes
11580         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
11581         exponent.
11582         * tests/test-strtod.c (main): Enhance tests.
11583         * doc/posix-functions/strtod.texi (strtod): Document next bug.
11584         Reported by Rainer Tammer.
11585
11586         futimens: fix configure check
11587         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
11588         Reported by Bruno Haible.
11589
11590 2010-07-30  Bruno Haible  <bruno@clisp.org>
11591
11592         getline: Update regarding AIX.
11593         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
11594         Reported by Rainer Tammer.
11595
11596 2010-07-30  Bruno Haible  <bruno@clisp.org>
11597
11598         wcwidth: Drop replacement on AIX 7.
11599         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
11600         AIX 7.
11601         Reported by Rainer Tammer.
11602
11603 2010-07-30  Bruno Haible  <bruno@clisp.org>
11604
11605         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
11606         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
11607         a 'char *'.
11608         Reported by Rainer Tammer.
11609
11610 2010-07-30  Bruno Haible  <bruno@clisp.org>
11611
11612         unlink: Update regarding AIX.
11613         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
11614         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
11615         Reported by Rainer Tammer.
11616
11617 2010-07-30  Bruno Haible  <bruno@clisp.org>
11618
11619         symlink: Update regarding AIX.
11620         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
11621         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
11622         Reported by Rainer Tammer.
11623
11624 2010-07-30  Bruno Haible  <bruno@clisp.org>
11625
11626         strndup: Update regarding AIX.
11627         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
11628         AIX 7.
11629         Reported by Rainer Tammer.
11630
11631 2010-07-30  Bruno Haible  <bruno@clisp.org>
11632
11633         stat: Update regarding AIX.
11634         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
11635         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
11636         Reported by Rainer Tammer.
11637
11638 2010-07-30  Bruno Haible  <bruno@clisp.org>
11639
11640         truncl: Fix autoconf test.
11641         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
11642         whether truncl works.
11643         Reported by Rainer Tammer.
11644
11645 2010-07-30  Bruno Haible  <bruno@clisp.org>
11646
11647         round: Update regarding AIX.
11648         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
11649         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
11650         Reported by Rainer Tammer.
11651
11652 2010-07-30  Bruno Haible  <bruno@clisp.org>
11653
11654         rename: Update regarding AIX.
11655         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
11656         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
11657         Reported by Rainer Tammer.
11658
11659 2010-07-30  Bruno Haible  <bruno@clisp.org>
11660
11661         printf.m4: Update regarding AIX.
11662         * m4/printf.m4: Update comments regarding AIX.
11663         Reported by Rainer Tammer.
11664
11665 2010-07-30  Bruno Haible  <bruno@clisp.org>
11666
11667         iconv: Update regarding AIX.
11668         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
11669         AIX 7.
11670         Reported by Rainer Tammer.
11671
11672 2010-07-30  Bruno Haible  <bruno@clisp.org>
11673
11674         getopt: Update regarding AIX.
11675         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
11676         no on AIX.
11677         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
11678         Reported by Rainer Tammer.
11679
11680 2010-07-30  Bruno Haible  <bruno@clisp.org>
11681
11682         ldexpl; Update regarding AIX.
11683         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
11684         on AIX 7.
11685         Reported by Rainer Tammer.
11686
11687 2010-07-30  Bruno Haible  <bruno@clisp.org>
11688
11689         frexpl: Update regarding AIX.
11690         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
11691         on AIX 7.
11692         Reported by Rainer Tammer.
11693
11694 2010-07-30  Bruno Haible  <bruno@clisp.org>
11695
11696         open, fopen: Update regarding AIX.
11697         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
11698         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11699         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
11700         * doc/posix-functions/fopen.texi: Likewise.
11701         Reported by Rainer Tammer.
11702
11703 2010-07-30  Bruno Haible  <bruno@clisp.org>
11704
11705         chown: Update doc regarding AIX.
11706         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
11707         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
11708         Reported by Rainer Tammer.
11709
11710 2010-07-30  Eric Blake  <eblake@redhat.com>
11711
11712         strtod: fix bug in replacement function on AIX
11713         * lib/strtod.c (strtod): Special case broken "0x" parse in
11714         underlying strtod.
11715         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
11716         * doc/posix-functions/strtod.texi (strtod): Likewise.
11717         Reported by Rainer Tammer.
11718
11719 2010-07-30  Bruno Haible  <bruno@clisp.org>
11720
11721         mbrlen: Fix cross-compilation guess for AIX.
11722         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
11723         guess. Leftover from 2008-12-22.
11724
11725 2010-07-30  Bruno Haible  <bruno@clisp.org>
11726
11727         mbrtowc: Fix cross-compilation guess for AIX.
11728         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
11729         guess. Leftover from 2008-12-21.
11730
11731 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
11732
11733         init.sh: work around trap limitation of some shells
11734         * tests/init.sh (setup_): Move exit trap outside of shell function.
11735
11736 2010-07-29  Eric Blake  <eblake@redhat.com>
11737
11738         strtod: aid debugging
11739         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
11740         understanding why strtod is rejected.
11741
11742 2010-07-28  Bruno Haible  <bruno@clisp.org>
11743
11744         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
11745         * lib/unistr/u8-chr.c: Include <string.h>.
11746         * tests/unistr/test-u8-chr.c: Likewise.
11747         * tests/unistr/test-u16-chr.c: Likewise.
11748         * tests/unistr/test-u32-chr.c: Likewise.
11749         * tests/unistr/test-u8-strchr.c: Likewise.
11750         * tests/unistr/test-u16-strchr.c: Likewise.
11751         * tests/unistr/test-u32-strchr.c: Likewise.
11752         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
11753         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
11754         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
11755         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
11756
11757 2010-07-28  Bruno Haible  <bruno@clisp.org>
11758
11759         Use spaces for indentation, not tabs.
11760         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
11761
11762 2010-07-27  Bruno Haible  <bruno@clisp.org>
11763
11764         mbspcasecmp: Fix function specification.
11765         * lib/string.in.h (mbspcasecmp): Fix specification comment.
11766         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
11767         Reported by Eric Blake <eblake@redhat.com>.
11768
11769 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
11770
11771         timespec: use cast and not conditional, as truncation isn't possible
11772         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
11773         instead of a conditional.  Comment about the situation in more detail.
11774         This undoes most of the 2009-10-29 patch.
11775
11776 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
11777
11778         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
11779         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
11780         * lib/unistr/u8-strchr.c: Likewise.
11781         * modules/unistr/u8-chr: Depend on memchr.
11782
11783         unistr/u*-strchr: add tests
11784         * modules/unistr/u8-strchr-tests: New file.
11785         * modules/unistr/u16-strchr-tests: New file.
11786         * modules/unistr/u32-strchr-tests: New file.
11787         * tests/unistr/test-strchr.h: New file.
11788         * tests/unistr/test-u8-strchr.c: New file.
11789         * tests/unistr/test-u16-strchr.c: New file.
11790         * tests/unistr/test-u32-strchr.c: New file.
11791
11792         unistr/u*-chr: test multibyte sequences more
11793         * tests/unistr/test-chr.h: Do complete testing of the characters in the
11794         test vector.
11795         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
11796         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
11797         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
11798
11799         unistr/u*-chr: test multibyte sequences
11800         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
11801
11802         unistr/u*-chr: prepare for multibyte tests
11803         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
11804         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
11805         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
11806         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
11807         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
11808         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
11809
11810 2010-07-18  Bruno Haible  <bruno@clisp.org>
11811
11812         unistr/u8-strchr: Optimize non-ASCII argument case.
11813         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
11814         because the first byte often matches anyway.
11815         Reported by Pádraig Brady <P@draigbrady.com>.
11816
11817 2010-07-15  Karl Berry  <karl@gnu.org>
11818
11819         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
11820
11821 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
11822
11823         getcwd: on Solaris, work better if ancestors are inaccessible
11824         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
11825         buffer and size, try again with a large buffer.  This works better
11826         on Solaris, since its getcwd succeeds even if the path to the root
11827         is inaccessible, and this is helpful in common cases such as .zfs
11828         hidden directories.  Problem reported by J Chapman Flack in
11829         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
11830         Use system getcwd if it's declared, not merely if it's partly
11831         working; use the partly-working test only to avoid needless effort
11832         if the system getcwd fails.
11833         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
11834         comment that was already obsolete and is now even more obsolete.
11835         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
11836         now might call strdup.
11837
11838 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
11839
11840         pthread: Add enough so that coreutils/src/sort.c compiles.
11841         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
11842         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
11843         gnulib. Include <sched.h> and <time.h>, as per POSIX.
11844         Include <sys/types.h>, in case it defines pthread_t.
11845         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
11846         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
11847         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
11848         (pthread_rwlockattr_t, pthread_spinlock_t):
11849         New typedefs, if HAVE_PTHREAD_T is not defined.
11850         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
11851         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
11852         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
11853         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
11854         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
11855         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
11856         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
11857         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
11858         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
11859         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
11860         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
11861         New macros.
11862         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
11863         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
11864         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
11865         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
11866         (pthread_spin_unlock): New dummy functions.
11867         (pthread_create): Return EAGAIN; don't set errno.
11868         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
11869         require AC_C_INLINE.
11870         * modules/pthread (Depends-on): Add sched, time.
11871         (pthread.h): Use AM_V_GEN.
11872
11873 2010-07-13  Bruno Haible  <bruno@clisp.org>
11874
11875         striconveh: Don't malloc memory if the result buffer is sufficient.
11876         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
11877         buffer if its size is sufficient.
11878         Reported by Ludovic Courtès <ludo@gnu.org>.
11879
11880 2010-07-13  Bruno Haible  <bruno@clisp.org>
11881
11882         strtod: Add safety check.
11883         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
11884
11885 2010-07-12  Bruno Haible  <bruno@clisp.org>
11886
11887         Unify tests that set gl_cv_func_ldexpl_no_libm.
11888         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
11889         gl_FUNC_LDEXPL.
11890         (gl_FUNC_LDEXPL): Invoke it.
11891         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11892
11893 2010-07-12  Bruno Haible  <bruno@clisp.org>
11894
11895         Unify tests that set gl_cv_func_ldexp_no_libm.
11896         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
11897         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
11898         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
11899         (configure.ac): Simply invoke gl_FUNC_LDEXP.
11900         * modules/strtod (Files): Add m4/ldexp.m4.
11901
11902 2010-07-12  Bruno Haible  <bruno@clisp.org>
11903
11904         Unify tests that set gl_cv_func_frexpl_no_libm.
11905         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
11906         gl_FUNC_FREXPL_NO_LIBM.
11907         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
11908         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11909
11910 2010-07-12  Bruno Haible  <bruno@clisp.org>
11911
11912         Unify tests that set gl_cv_func_frexp_no_libm.
11913         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
11914         gl_FUNC_FREXP_NO_LIBM.
11915         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
11916         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11917
11918 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11919
11920         memcoll: clarify sizes versus lengths, document better, and tweak perf
11921         * lib/memcoll.c (strcoll_loop, memcoll0):
11922         Improve quality of descriptive comments.  Name variables
11923         consistently as to whether they are lengths (which do not include
11924         terminating null) versus sizes (which do).
11925         * lib/xmemcoll.c (xmemcoll0): Likewise.
11926         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
11927         returned when s1size == 0; this is easier to compile and saves
11928         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
11929
11930 2010-07-12  Bruno Haible  <bruno@clisp.org>
11931
11932         Tests for module '_Exit'.
11933         * modules/_Exit-tests: New file.
11934         * tests/test-_Exit.sh: New file.
11935         * tests/test-_Exit.c: New file.
11936
11937         New module '_Exit'.
11938         * lib/stdlib.in.h (__attribute__): New macro.
11939         (_Exit): New declaration.
11940         * lib/_Exit.c: New file.
11941         * m4/_Exit.m4: New file.
11942         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
11943         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
11944         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
11945         * modules/_Exit: New file.
11946         * tests/test-stdlib-c++.cc (_Exit): Check signature.
11947         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
11948
11949 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11950
11951         strtod: make it more-accurate typically, and don't require libm
11952         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
11953         Include limits.h.  Don't include string.h.
11954         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
11955         (locale_isspace): New function, so that no casts are needed to
11956         check whether *s is a space.
11957         (ldexp): Provide an unused dummy if not available.
11958         (scale_radix_exp, parse_number, underlying_strtod): New functions.
11959         (strtod): Use them.  This implementation prefers to use the
11960         underlying strtod if available, falling back on our own code
11961         only to fix known bugs.  This is more likely to produce an
11962         accurate result.  Also, it avoids the use of libm functions.
11963         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
11964         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
11965         was absent, but it caused a test failure with coreutils.
11966         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
11967         with libm.
11968         * modules/strtod (Makefile.am, Link): libm is no longer needed.
11969         * modules/strtod-tests (Makefile.am): Likewise.
11970
11971 2010-07-11  Pádraig Brady  <P@draigBrady.com>
11972             Bruno Haible  <bruno@clisp.org>
11973
11974         unistr/u8-strchr: Optimize ASCII argument case.
11975         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
11976
11977 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11978
11979         (x)memcoll: minor tweaks
11980         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
11981         is after the type that it qualifies.
11982         (memcoll0): Likewise.
11983         * lib/memcoll.h (memcoll0): Likewise.
11984         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
11985         * lib/xmemcoll.h (xmemcoll0): Likewise.
11986         * lib/memcoll.c (memcoll0): Correct the comment.  This function
11987         differs from memcoll in that the NUL byte is part of the argument.
11988         Omit the abort-checks, as performance is a real issue here.  Plus,
11989         the checks were wrong anyway (an off-by-one error).  Omit local
11990         variable 'diff', as it's a bit clearer that way.
11991         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
11992         no longer needed.
11993
11994 2010-07-08  Chen Guo <chenguo4@yahoo.com>
11995
11996         (x)memcoll: speedup when input is known to be NUL delimited
11997         * lib/memcoll.c: Include stdlib.
11998         (memcoll0): New function.
11999         (strcoll_loop): New function, refactored for use in both memcoll
12000         and memcoll0.
12001         * lib/memcoll.h (memcoll0): Add prototype.
12002         * lib/xmemcoll.c (xmemcoll0): New function.
12003         (collate_error): New function, refactored for use in both xmemcoll
12004         and xmemcoll0.
12005         * lib/xmemcoll.h (xmemcoll0): Add prototype.
12006         * m4/memcoll.m4: add inline invocation.
12007
12008 2010-07-06  Pádraig Brady  <P@draigBrady.com>
12009
12010         * build-aux/bootstrap: Remove any local translations
12011         from the translation project synchronization directory,
12012         so that local only translations are not distributed.
12013
12014 2010-07-04  Bruno Haible  <bruno@clisp.org>
12015
12016         fsusage: Clarify which code applies to which platforms.
12017         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
12018         platform.
12019         * lib/fsusage.c (get_fs_usage): Likewise.
12020
12021 2010-07-04  Bruno Haible  <bruno@clisp.org>
12022
12023         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
12024         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
12025         Reported by Martin Lambers <marlam@marlam.de>.
12026
12027 2010-07-04  Jim Meyering  <meyering@redhat.com>
12028
12029         hash: once again explicitly disallow insertion of NULL
12030         * lib/hash.c (hash_insert0): Reinstate just-removed test:
12031         inserting a NULL pointer cannot work with these functions.
12032         Add a comment with details.
12033         This reverts part of the 2010-07-01 commit, 5bef1a35
12034         "hash: extend module to deal with non-pointer keys".
12035
12036 2010-07-01  Bruno Haible  <bruno@clisp.org>
12037
12038         stdbool: Update doc.
12039         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
12040         Info from Christian Weisgerber <naddy@mips.inka.de>.
12041
12042 2010-07-01  Jim Meyering  <meyering@redhat.com>
12043
12044         hash: extend module to deal with non-pointer keys
12045         * lib/hash.c (hash_insert0): New interface, much like hash_insert
12046         but that allows insertion of non-pointer entries.
12047         Do not disallow an ENTRY value of NULL.
12048         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
12049         * lib/hash.h (hash_insert0): Declare.
12050
12051 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12052
12053         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
12054         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
12055         not present (i.e. with autoconf 2.59 and when using gettextize, not
12056         gnulib), require AC_GNU_SOURCE instead.
12057
12058 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
12059
12060         idpriv-drop: Fix tests.
12061         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
12062         not to the test-idpriv-droptemp program.
12063
12064 2010-06-29  Bruno Haible  <bruno@clisp.org>
12065
12066         string: Fix syntax error with g++ 2.96.
12067         * lib/string.in.h (__pure__): Remove definition.
12068         (_GL_ATTRIBUTE_PURE): New macro.
12069         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
12070         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
12071         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12072
12073 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
12074
12075         unitypes: Fix bug introduced on 2010-05-18.
12076         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
12077
12078 2010-06-22  Eric Blake  <eblake@redhat.com>
12079
12080         memmem: slight optimization
12081         * lib/str-two-way.h (critical_factorization): Update comments.
12082         Reduce work during factorization phase.
12083         Reported by Carlos Bueno <carlos@bueno.org>.
12084
12085 2010-06-21  Bruno Haible  <bruno@clisp.org>
12086
12087         Fix HAVE_CALLOC_POSIX misnomer.
12088         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
12089         !HAVE_CALLOC_POSIX.
12090         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
12091         HAVE_CALLOC_POSIX.
12092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
12093         instead of HAVE_CALLOC_POSIX.
12094         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
12095         HAVE_CALLOC_POSIX.
12096
12097         Use modern idiom for calloc() replacement.
12098         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
12099         AC_FUNC_CALLOC.
12100         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
12101         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
12102         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12103         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
12104         (gl_REPLACE_CALLOC): New macro.
12105
12106 2010-06-21  Bruno Haible  <bruno@clisp.org>
12107
12108         Fix HAVE_REALLOC_POSIX misnomer.
12109         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
12110         !HAVE_REALLOC_POSIX.
12111         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
12112         HAVE_REALLOC_POSIX.
12113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
12114         instead of HAVE_REALLOC_POSIX.
12115         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
12116         HAVE_REALLOC_POSIX.
12117
12118         Use modern idiom for realloc() replacement.
12119         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
12120         AC_FUNC_REALLOC.
12121         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
12122         Autoconf's AC_FUNC_REALLOC.
12123         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12124         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
12125         (gl_REPLACE_REALLOC): New macro.
12126         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12127
12128 2010-06-21  Bruno Haible  <bruno@clisp.org>
12129
12130         Fix HAVE_MALLOC_POSIX misnomer.
12131         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
12132         !HAVE_MALLOC_POSIX.
12133         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
12134         HAVE_MALLOC_POSIX.
12135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
12136         instead of HAVE_MALLOC_POSIX.
12137         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
12138         HAVE_MALLOC_POSIX.
12139
12140         Use modern idiom for malloc() replacement.
12141         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
12142         AC_FUNC_MALLOC.
12143         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
12144         Autoconf's AC_FUNC_MALLOC.
12145         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12146         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
12147         (gl_REPLACE_MALLOC): New macro.
12148         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12149
12150 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
12151
12152         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
12153         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
12154         This macro takes 3 arguments, not 4.
12155
12156 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
12157
12158         ipv6: fix detection under mingw
12159         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
12160         in6_addr.
12161
12162 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
12163
12164         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
12165         that strtod() works when cross-compiling to a glibc version known
12166         to work.
12167
12168 2010-06-15  Bruno Haible  <bruno@clisp.org>
12169
12170         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
12171
12172 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
12173
12174         select: Correct timeout.
12175         * lib/select.c (rpl_select): Compute wait_timeout correctly.
12176
12177 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12178
12179         git-version-gen: init shell var to avoid env var influence
12180         * build-aux/git-version-gen (v): Init shell var to empty.
12181
12182 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12183
12184         priv-set: Don't assume that priv.h exists merely because getppriv does.
12185         See Jan Andersen's bug report about AIX 5L in
12186         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
12187         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
12188         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
12189         * lib/priv-set.h: Likewise.
12190         * tests/test-priv-set.c: Likewise.
12191
12192 2010-06-13  Bruno Haible  <bruno@clisp.org>
12193
12194         relocatable: Make it easier to test whether to install wrappers.
12195         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
12196         RELOCATABLE_VIA_WRAPPER.
12197
12198 2010-06-13  Bruno Haible  <bruno@clisp.org>
12199
12200         gnulib-tool: Display specified modules and dependencies differently.
12201         * gnulib-tool (func_show_module_list): New function.
12202         (func_import, func_create_testdir): Invoke it.
12203         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12204
12205 2010-06-13  Bruno Haible  <bruno@clisp.org>
12206
12207         gnulib-tool: Align code of func_import and func_create_testdir.
12208         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
12209         specified_modules.
12210
12211 2010-06-12  Jim Meyering  <meyering@redhat.com>
12212
12213         test-inttostr: avoid spurious failure on Solaris 9
12214         * tests/test-inttostr.c (main): Skip the test when snprintf fails
12215         to accept "%ju".  Reported by Bruno Haible.
12216
12217 2010-06-11  Jim Meyering  <meyering@redhat.com>
12218
12219         test-sys_socket: mark variables as used more readably
12220         * tests/test-sys_socket.c (main): Mark otherwise unused variables
12221         as "used" explicitly via (void) statement casts.  This is more
12222         readable than using them in an artificial return expression.
12223         Suggestion from Bruno Haible.
12224
12225 2010-06-11  Bruno Haible  <bruno@clisp.org>
12226
12227         Avoid some more warnings from "gcc -Wwrite-strings".
12228         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
12229         to 'const char *'.
12230         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
12231         * tests/test-c-strcasestr.c (main): Likewise.
12232         * tests/test-mbscasestr1.c (main): Likewise.
12233         * tests/test-mbscasestr2.c (main): Likewise.
12234         * tests/test-memmem.c (main): Likewise.
12235         * tests/test-strstr.c (main): Likewise.
12236         * tests/test-strcasestr.c (main): Likewise.
12237
12238 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12239
12240         init.sh: change framework_failure_ to fail with status 99, not 1
12241         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
12242         automake's parallel-tests rule that this is an unexpected failure,
12243         even if the test is listed in XFAIL_TESTS.
12244
12245 2010-06-11  Jim Meyering  <meyering@redhat.com>
12246
12247         test-inttostr: avoid warnings about 4-6KB literal strings
12248         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
12249         Include "macros.h", for its definition of ASSERT.
12250         (CK): s/assert/ASSERT/
12251         * modules/inttostr-tests (Files): Add macros.h.
12252
12253         init.sh: don't use $ME_ or skip_ before they are defined
12254         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
12255         their first uses.  Also hoist their companions: warn_, fail_,
12256         framework_failure_, $stderr_fileno.  Prompted by a patch from
12257         Stefano Lattarini.
12258
12259         test-sys_socket: avoid set-but-not-used warnings from gcc
12260         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
12261         avoid warning about set-but-not-used variables.
12262
12263         test-xvasprintf: avoid 'const' discard warnings
12264         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
12265         "const" when assigning from literal strings.
12266         (test_xasprintf): Add "void" in function argument list to placate
12267         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
12268
12269         tests: avoid compilation warnings in argmatch and exclude tests...
12270         in packages that define ARGMATCH_DIE_DECL, like coreutils.
12271         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
12272         Since it always exits, declare with the "noreturn" attribute.
12273         * tests/test-argmatch.c: Likewise.
12274
12275         tests: avoid 'const' discard warnings in mbsstr tests
12276         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
12277         * tests/test-mbsstr2.c (main): Likewise.
12278
12279         test-verify: avoid warning from gcc's -Wmissing-declarations
12280         * tests/test-verify.c (function): Declare to be static.
12281
12282         test-inttostr.c: include <string.h> for use of strcmp
12283         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
12284
12285         test-linkat: avoid failed assertion on "other" architectures
12286         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
12287         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
12288         sparc: https://bugs.launchpad.net/bugs/591968
12289
12290 2010-06-11  Jim Meyering  <meyering@redhat.com>
12291
12292         printf.m4: avoid autoconf's "Expanded Before Required" warning
12293         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
12294         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
12295         autoconf warning.
12296
12297 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
12298
12299         Replacement header templates are now named with ".in", not "_".
12300         * doc/gnulib-intro.texi: Correct.
12301
12302 2010-06-10  Jim Meyering  <meyering@redhat.com>
12303
12304         inttostr-tests: depend on snprintf, not snprintf-posix
12305         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
12306         snprintf-posix, to avoid this aclocal failure:
12307           missing file gnulib-tests/vasnprintf.c
12308           configure.ac:45: error: expected source file, required through \
12309           AC_LIBSOURCES, not found
12310
12311 2010-06-10  Jim Meyering  <meyering@redhat.com>
12312
12313         inttostr: add a new function, inttostr, and tests
12314         The namesake function was not available.  The existence of the
12315         template file, inttostr.c makes its addition nontrivial.
12316         * lib/anytostr.c: Rename from inttostr.c.
12317         (anytostr): Rename from inttostr.
12318         * lib/inttostr.c: New file.
12319         * modules/inttostr (Files): Add anytostr.c.
12320         (Makefile.am): Set lib_SOURCES instead of ...
12321         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
12322         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
12323         * lib/offtostr.c: Likewise.
12324         * lib/uinttostr.c: Likewise.
12325         * lib/umaxtostr.c: Likewise.
12326         * modules/inttostr-tests: New file.
12327         * tests/test-inttostr.c: New file.  Test these functions.
12328
12329 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
12330             Bruno Haible  <bruno@clisp.org>
12331
12332         Add "Extending Gnulib" chapter to manual.
12333         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
12334         chapter.
12335         (Extending Gnulib): New chapter.
12336         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
12337         chapter.
12338
12339 2010-06-09  Bruno Haible  <bruno@clisp.org>
12340
12341         Avoid relocwrapper link errors due to gnulib replacement functions.
12342         * lib/areadlink.c: Use the system's malloc, realloc functions.
12343         (areadlink): Set errno to ENOMEM explicitly.
12344         * modules/areadlink (Depends-on): Remove malloc-posix.
12345         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12346
12347 2010-06-09  Bruno Haible  <bruno@clisp.org>
12348
12349         Avoid relocwrapper link errors due to gnulib replacement functions.
12350         * lib/canonicalize-lgpl.c: Use the system's malloc function.
12351         * lib/malloca.c: Likewise.
12352         * lib/relocatable.c: Likewise.
12353         * lib/progreloc.c: Use the system's malloc, sprintf functions.
12354         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
12355         * lib/setenv.c: Use the system's malloc, realloc functions.
12356         * lib/strerror.c: Use the system's sprintf function.
12357         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12358
12359 2010-06-04  Bruno Haible  <bruno@clisp.org>
12360
12361         Prefer documented low-level autoconf macro names.
12362         * m4/lib-link.m4: Use m4_translit instead of translit.
12363         * m4/environ.m4: Likewise.
12364         * m4/mathfunc.m4: Likewise.
12365         * m4/onceonly.m4: Likewise.
12366         * m4/stdint.m4: Likewise.
12367         Suggested by Eric Blake.
12368
12369 2010-06-04  Martin Lambers  <marlam@marlam.de>
12370             Bruno Haible  <bruno@clisp.org>
12371
12372         havelib: Allow library names with '+' characters.
12373         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12374         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
12375
12376 2010-06-09  Bruno Haible  <bruno@clisp.org>
12377
12378         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
12379         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
12380         realloc failed.
12381
12382 2010-06-08  Peter Simons  <simons@cryp.to>
12383
12384         maint.mk: make the news-check rule more configurable
12385         * top/maint.mk (news-check-lines-spec): New variable.
12386         (news-check): Use "sed -n 1,10p" in place of "head".
12387
12388 2010-06-07  Jim Meyering  <meyering@redhat.com>
12389
12390         do-release-commit-and-tag: fix typo in --help
12391         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
12392
12393         regex: avoid new dead-code warning with gcc-4.6.0
12394         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
12395         if-block containing a while-loop.  It's been unused for at least
12396         5 years.
12397
12398 2010-06-05  Bruno Haible  <bruno@clisp.org>
12399
12400         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
12401         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
12402
12403 2010-06-04  Bruno Haible  <bruno@clisp.org>
12404
12405         Update to GNU gettext 0.18.1.
12406         * modules/gettext (configure.ac): Require gettext infrastructure from
12407         version 0.18.1.
12408
12409 2010-06-03  Bruno Haible  <bruno@clisp.org>
12410
12411         Don't use AC_LIBOBJ with file names in subdirectories.
12412         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
12413         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
12414         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
12415         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
12416         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
12417         gl_LIBUNISTRING_LIBSOURCE.
12418         (Makefile.am): Augment lib_SOURCES here, conditionally.
12419         * NEWS: Drop requirement for Automake option 'subdir-objects'.
12420
12421 2010-06-03  Bruno Haible  <bruno@clisp.org>
12422
12423         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
12424         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
12425         expansion does not end with a newline.
12426         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
12427         unnecessary newline.
12428
12429 2010-06-03  Bruno Haible  <bruno@clisp.org>
12430
12431         Reduce dependencies.
12432         * tests/test-quotearg.h: New file, extracted from
12433         tests/test-quotearg.c.
12434         * tests/test-quotearg-simple.c: New file, extracted from
12435         tests/test-quotearg.c.
12436         * tests/test-quotearg.c: Don't include <ctype.h>.
12437         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
12438         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
12439         use_quote_double_quotes, use_quotearg_colon): Moved to
12440         tests/test-quotearg.h.
12441         (results_g, flag_results, custom_quotes, custom_results): Moved
12442         to tests/test-quotearg-simple.c.
12443         (main): Moved the part that does not depend on gettext to
12444         tests/test-quotearg-simple.c. Return 77 if the test cannot be
12445         performed.
12446         * modules/quotearg-simple: New file.
12447         * modules/quotearg-simple-tests: New file.
12448         * modules/quotearg (Depends-on): Add quotearg-simple.
12449         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
12450         (Files): Add tests/test-quotearg.h.
12451         Reported by Paolo Bonzini.
12452
12453 2010-06-03  Bruno Haible  <bruno@clisp.org>
12454
12455         Reduce dependencies.
12456         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
12457
12458 2010-06-03  Bruno Haible  <bruno@clisp.org>
12459
12460         time: Undefine more broken macros.
12461         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
12462         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
12463         Reported by Eric Blake.
12464
12465 2010-06-03  Bruno Haible  <bruno@clisp.org>
12466
12467         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
12468         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
12469         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
12470         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
12471         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
12472         Reported by Ludovic Courtès <ludo@gnu.org>.
12473
12474 2010-06-02  Eric Blake  <eblake@redhat.com>
12475
12476         time: work with mingw + pthreads-win32 library
12477         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
12478         if timespec is defined only in pthread.h.
12479         * modules/time (Makefile.am): Substitute it.
12480         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
12481         <pthread.h>, when needed.
12482         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
12483         from the library.
12484
12485 2010-05-31  Bruno Haible  <bruno@clisp.org>
12486
12487         Avoid expanding two macros in the wrong order.
12488         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
12489         gl_LIBUNISTRING if it is defined.
12490         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
12491         autoconf >= 2.64.
12492         Reported by Ludovic Courtès <ludo@gnu.org>.
12493
12494 2010-05-27  Jim Meyering  <meyering@redhat.com>
12495
12496         maint.mk: also prohibit "#undef" of always-defined symbols
12497         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
12498         Allow more than one space before the symbol name.
12499         (sc_prohibit_always-defined_macros): Use grep's -E, now that
12500         the regexp uses alternation.
12501
12502 2010-05-26  Eric Blake  <eblake@redhat.com>
12503
12504         maint.mk: avoid echo -e
12505         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
12506         Convert all uses of echo -* to printf.
12507         Reported by Matthias Bolte.
12508
12509 2010-05-25  Bruno Haible  <bruno@clisp.org>
12510
12511         Update to GNU gettext 0.18, part 2.
12512         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
12513         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
12514
12515 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12516
12517         Add missing include in test-pwrite.c.
12518         * tests/test-pwrite.c: Include string.h, for strcmp.
12519
12520 2010-05-24  Bruno Haible  <bruno@clisp.org>
12521
12522         * NEWS: Mention requirement for Automake option 'subdir-objects'.
12523
12524 2010-05-24  Bruno Haible  <bruno@clisp.org>
12525
12526         Don't use conversion with transliteration in u{8,16,32}_strcoll.
12527         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
12528         iconveh_error argument.
12529         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
12530         U_STRCONV_TO_LOCALE.
12531         * lib/unistr/u16-strcoll.c: Likewise.
12532         * lib/unistr/u32-strcoll.c: Likewise.
12533         * modules/unistr/u8-strcoll (Depends-on): Add
12534         uniconv/u8-strconv-to-enc, localcharset. Remove
12535         uniconv/u8-strconv-to-locale.
12536         (configure.ac): Bump version number.
12537         * modules/unistr/u16-strcoll (Depends-on): Add
12538         uniconv/u16-strconv-to-enc, localcharset. Remove
12539         uniconv/u16-strconv-to-locale.
12540         (configure.ac): Bump version number.
12541         * modules/unistr/u32-strcoll (Depends-on): Add
12542         uniconv/u32-strconv-to-enc, localcharset. Remove
12543         uniconv/u32-strconv-to-locale.
12544         (configure.ac): Bump version number.
12545
12546 2010-05-24  Bruno Haible  <bruno@clisp.org>
12547
12548         Avoid a test failure on NetBSD 5.0.
12549         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
12550         an iconv() bug.
12551
12552 2010-05-24  Bruno Haible  <bruno@clisp.org>
12553
12554         Adjust #include directive style.
12555         * modules/regex (Includes): Recommend to write <regex.h>.
12556
12557 2010-05-24  Bruno Haible  <bruno@clisp.org>
12558
12559         regex: Don't require alloca.
12560         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
12561         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
12562         only inside if (0).
12563
12564 2010-05-23  Jim Meyering  <meyering@redhat.com>
12565
12566         test-renameat.c: include <sys/stat.h>
12567         * tests/test-renameat.c: Include <sys/stat.h>; required for
12568         definition of S_IS* macros.
12569
12570 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
12571
12572         Update maintainer documentation for 'relocatable-prog' module.
12573         * doc/relocatable-maint.texi: Update.
12574         Comments by Bruno Haible.
12575
12576 2010-05-23  Bruno Haible  <bruno@clisp.org>
12577
12578         git-merge-changelog: Enable --split-merged-entry by default.
12579         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
12580         (usage): Don't mention this option any more.
12581         Reported by Ralf Wildenhues.
12582
12583 2010-05-23  Jim Meyering  <meyering@redhat.com>
12584
12585         test-pwrite: do not leave behind a test file named "out"
12586         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
12587         The trivial-looking use of init.sh is really necessary.
12588         It ensures that the temporary file, "out", is created in
12589         a temporary directory, and removed upon termination.
12590         * tests/test-pwrite.sh: Re-add file.
12591         * modules/pwrite-tests: Reference it.
12592
12593 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12594
12595         Fix output redirection buglet in init.sh.
12596         * tests/init.sh: Fix redirection of stderr.
12597
12598 2010-05-20  Simon Josefsson  <simon@josefsson.org>
12599
12600         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
12601
12602 2010-05-17  Simon Josefsson  <simon@josefsson.org>
12603
12604         * modules/valgrind-tests: New file.
12605         * m4/valgrind-tests.m4: New file.
12606         * doc/valgrind-tests.texi: New file.
12607         * doc/gnulib.texi (Running self-tests under valgrind): New
12608         section.
12609
12610 2010-05-19  Bruno Haible  <bruno@clisp.org>
12611
12612         Clean up dead code in recent commit.
12613         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
12614         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
12615         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
12616         Suggested by Paolo Bonzini.
12617
12618 2010-05-19  Bruno Haible  <bruno@clisp.org>
12619
12620         Avoid valgrind error reports from libunistring.
12621         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
12622         * modules/libunistring (Files): Add it.
12623         * modules/libunistring-optional (Files): Likewise.
12624
12625 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
12626             Bruno Haible  <bruno@clisp.org>
12627
12628         New module 'libunistring-optional'.
12629         * modules/libunistring-optional: New file.
12630         * m4/libunistring-base.m4: New file.
12631         * m4/libunistring-optional.m4: New file.
12632         * lib/unicase.in.h: Renamed from lib/unicase.h.
12633         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
12634         * lib/unictype.in.h: Renamed from lib/unictype.h.
12635         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
12636         * lib/uniname.in.h: Renamed from lib/uniname.h.
12637         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
12638         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
12639         * lib/unistr.in.h: Renamed from lib/unistr.h.
12640         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
12641         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
12642         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
12643         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
12644         gl_LIBUNISTRING. If the library was found, determine the installed
12645         version and set LIBUNISTRING_VERSION.
12646         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
12647         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
12648         handle a configuration option --with-included-libunistring.
12649         * modules/libunistring (Files): Add m4/absolute-header.m4.
12650         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
12651         Add m4/libunistring-base.m4.
12652         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12653         (Makefile.am): Build unicase.h from unicase.in.h.
12654         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
12655         Add m4/libunistring-base.m4.
12656         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12657         (Makefile.am): Build uniconv.h from uniconv.in.h.
12658         * modules/unictype/base (Files): Use unictype.in.h instead of
12659         unictype.h. Add m4/libunistring-base.m4.
12660         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12661         (Makefile.am): Build unictype.h from unictype.in.h.
12662         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
12663         Add m4/libunistring-base.m4.
12664         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12665         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
12666         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
12667         Add m4/libunistring-base.m4.
12668         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12669         (Makefile.am): Build uniname.h from uniname.in.h.
12670         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
12671         Add m4/libunistring-base.m4.
12672         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12673         (Makefile.am): Build uninorm.h from uninorm.in.h.
12674         * modules/unistdio/base (Files): Use unistdio.in.h instead of
12675         unistdio.h. Add m4/libunistring-base.m4.
12676         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12677         (Makefile.am): Build unistdio.h from unistdio.in.h.
12678         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
12679         Add m4/libunistring-base.m4.
12680         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12681         (Makefile.am): Build unistr.h from unistr.in.h.
12682         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
12683         Add m4/libunistring-base.m4.
12684         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12685         (Makefile.am): Build unitypes.h from unitypes.in.h.
12686         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
12687         Add m4/libunistring-base.m4.
12688         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12689         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
12690         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
12691         uniwidth.h. Add m4/libunistring-base.m4.
12692         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12693         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
12694         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
12695         instead of augmenting lib_SOURCES.
12696         * modules/unicase/empty-suffix-context: Likewise.
12697         * modules/unicase/locale-language: Likewise.
12698         * modules/unicase/tolower: Likewise.
12699         * modules/unicase/totitle: Likewise.
12700         * modules/unicase/toupper: Likewise.
12701         * modules/unicase/u8-casecmp: Likewise.
12702         * modules/unicase/u8-casecoll: Likewise.
12703         * modules/unicase/u8-casefold: Likewise.
12704         * modules/unicase/u8-casexfrm: Likewise.
12705         * modules/unicase/u8-ct-casefold: Likewise.
12706         * modules/unicase/u8-ct-tolower: Likewise.
12707         * modules/unicase/u8-ct-totitle: Likewise.
12708         * modules/unicase/u8-ct-toupper: Likewise.
12709         * modules/unicase/u8-is-cased: Likewise.
12710         * modules/unicase/u8-is-casefolded: Likewise.
12711         * modules/unicase/u8-is-lowercase: Likewise.
12712         * modules/unicase/u8-is-titlecase: Likewise.
12713         * modules/unicase/u8-is-uppercase: Likewise.
12714         * modules/unicase/u8-prefix-context: Likewise.
12715         * modules/unicase/u8-suffix-context: Likewise.
12716         * modules/unicase/u8-tolower: Likewise.
12717         * modules/unicase/u8-totitle: Likewise.
12718         * modules/unicase/u8-toupper: Likewise.
12719         * modules/unicase/u16-casecmp: Likewise.
12720         * modules/unicase/u16-casecoll: Likewise.
12721         * modules/unicase/u16-casefold: Likewise.
12722         * modules/unicase/u16-casexfrm: Likewise.
12723         * modules/unicase/u16-ct-casefold: Likewise.
12724         * modules/unicase/u16-ct-tolower: Likewise.
12725         * modules/unicase/u16-ct-totitle: Likewise.
12726         * modules/unicase/u16-ct-toupper: Likewise.
12727         * modules/unicase/u16-is-cased: Likewise.
12728         * modules/unicase/u16-is-casefolded: Likewise.
12729         * modules/unicase/u16-is-lowercase: Likewise.
12730         * modules/unicase/u16-is-titlecase: Likewise.
12731         * modules/unicase/u16-is-uppercase: Likewise.
12732         * modules/unicase/u16-prefix-context: Likewise.
12733         * modules/unicase/u16-suffix-context: Likewise.
12734         * modules/unicase/u16-tolower: Likewise.
12735         * modules/unicase/u16-totitle: Likewise.
12736         * modules/unicase/u16-toupper: Likewise.
12737         * modules/unicase/u32-casecmp: Likewise.
12738         * modules/unicase/u32-casecoll: Likewise.
12739         * modules/unicase/u32-casefold: Likewise.
12740         * modules/unicase/u32-casexfrm: Likewise.
12741         * modules/unicase/u32-ct-casefold: Likewise.
12742         * modules/unicase/u32-ct-tolower: Likewise.
12743         * modules/unicase/u32-ct-totitle: Likewise.
12744         * modules/unicase/u32-ct-toupper: Likewise.
12745         * modules/unicase/u32-is-cased: Likewise.
12746         * modules/unicase/u32-is-casefolded: Likewise.
12747         * modules/unicase/u32-is-lowercase: Likewise.
12748         * modules/unicase/u32-is-titlecase: Likewise.
12749         * modules/unicase/u32-is-uppercase: Likewise.
12750         * modules/unicase/u32-prefix-context: Likewise.
12751         * modules/unicase/u32-suffix-context: Likewise.
12752         * modules/unicase/u32-tolower: Likewise.
12753         * modules/unicase/u32-totitle: Likewise.
12754         * modules/unicase/u32-toupper: Likewise.
12755         * modules/unicase/ulc-casecmp: Likewise.
12756         * modules/unicase/ulc-casecoll: Likewise.
12757         * modules/unicase/ulc-casexfrm: Likewise.
12758         * modules/uniconv/u8-conv-from-enc: Likewise.
12759         * modules/uniconv/u8-conv-to-enc: Likewise.
12760         * modules/uniconv/u8-strconv-from-enc: Likewise.
12761         * modules/uniconv/u8-strconv-from-locale: Likewise.
12762         * modules/uniconv/u8-strconv-to-enc: Likewise.
12763         * modules/uniconv/u8-strconv-to-locale: Likewise.
12764         * modules/uniconv/u16-conv-from-enc: Likewise.
12765         * modules/uniconv/u16-conv-to-enc: Likewise.
12766         * modules/uniconv/u16-strconv-from-enc: Likewise.
12767         * modules/uniconv/u16-strconv-from-locale: Likewise.
12768         * modules/uniconv/u16-strconv-to-enc: Likewise.
12769         * modules/uniconv/u16-strconv-to-locale: Likewise.
12770         * modules/uniconv/u32-conv-from-enc: Likewise.
12771         * modules/uniconv/u32-conv-to-enc: Likewise.
12772         * modules/uniconv/u32-strconv-from-enc: Likewise.
12773         * modules/uniconv/u32-strconv-from-locale: Likewise.
12774         * modules/uniconv/u32-strconv-to-enc: Likewise.
12775         * modules/uniconv/u32-strconv-to-locale: Likewise.
12776         * modules/unictype/bidicategory-byname: Likewise.
12777         * modules/unictype/bidicategory-name: Likewise.
12778         * modules/unictype/bidicategory-of: Likewise.
12779         * modules/unictype/bidicategory-test: Likewise.
12780         * modules/unictype/block-list: Likewise.
12781         * modules/unictype/block-test: Likewise.
12782         * modules/unictype/category-C: Likewise.
12783         * modules/unictype/category-Cc: Likewise.
12784         * modules/unictype/category-Cf: Likewise.
12785         * modules/unictype/category-Cn: Likewise.
12786         * modules/unictype/category-Co: Likewise.
12787         * modules/unictype/category-Cs: Likewise.
12788         * modules/unictype/category-L: Likewise.
12789         * modules/unictype/category-Ll: Likewise.
12790         * modules/unictype/category-Lm: Likewise.
12791         * modules/unictype/category-Lo: Likewise.
12792         * modules/unictype/category-Lt: Likewise.
12793         * modules/unictype/category-Lu: Likewise.
12794         * modules/unictype/category-M: Likewise.
12795         * modules/unictype/category-Mc: Likewise.
12796         * modules/unictype/category-Me: Likewise.
12797         * modules/unictype/category-Mn: Likewise.
12798         * modules/unictype/category-N: Likewise.
12799         * modules/unictype/category-Nd: Likewise.
12800         * modules/unictype/category-Nl: Likewise.
12801         * modules/unictype/category-No: Likewise.
12802         * modules/unictype/category-P: Likewise.
12803         * modules/unictype/category-Pc: Likewise.
12804         * modules/unictype/category-Pd: Likewise.
12805         * modules/unictype/category-Pe: Likewise.
12806         * modules/unictype/category-Pf: Likewise.
12807         * modules/unictype/category-Pi: Likewise.
12808         * modules/unictype/category-Po: Likewise.
12809         * modules/unictype/category-Ps: Likewise.
12810         * modules/unictype/category-S: Likewise.
12811         * modules/unictype/category-Sc: Likewise.
12812         * modules/unictype/category-Sk: Likewise.
12813         * modules/unictype/category-Sm: Likewise.
12814         * modules/unictype/category-So: Likewise.
12815         * modules/unictype/category-Z: Likewise.
12816         * modules/unictype/category-Zl: Likewise.
12817         * modules/unictype/category-Zp: Likewise.
12818         * modules/unictype/category-Zs: Likewise.
12819         * modules/unictype/category-and: Likewise.
12820         * modules/unictype/category-and-not: Likewise.
12821         * modules/unictype/category-byname: Likewise.
12822         * modules/unictype/category-name: Likewise.
12823         * modules/unictype/category-none: Likewise.
12824         * modules/unictype/category-of: Likewise.
12825         * modules/unictype/category-or: Likewise.
12826         * modules/unictype/category-test: Likewise.
12827         * modules/unictype/combining-class: Likewise.
12828         * modules/unictype/ctype-alnum: Likewise.
12829         * modules/unictype/ctype-alpha: Likewise.
12830         * modules/unictype/ctype-blank: Likewise.
12831         * modules/unictype/ctype-cntrl: Likewise.
12832         * modules/unictype/ctype-digit: Likewise.
12833         * modules/unictype/ctype-graph: Likewise.
12834         * modules/unictype/ctype-lower: Likewise.
12835         * modules/unictype/ctype-print: Likewise.
12836         * modules/unictype/ctype-punct: Likewise.
12837         * modules/unictype/ctype-space: Likewise.
12838         * modules/unictype/ctype-upper: Likewise.
12839         * modules/unictype/ctype-xdigit: Likewise.
12840         * modules/unictype/decimal-digit: Likewise.
12841         * modules/unictype/digit: Likewise.
12842         * modules/unictype/mirror: Likewise.
12843         * modules/unictype/numeric: Likewise.
12844         * modules/unictype/property-alphabetic: Likewise.
12845         * modules/unictype/property-ascii-hex-digit: Likewise.
12846         * modules/unictype/property-bidi-arabic-digit: Likewise.
12847         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
12848         * modules/unictype/property-bidi-block-separator: Likewise.
12849         * modules/unictype/property-bidi-boundary-neutral: Likewise.
12850         * modules/unictype/property-bidi-common-separator: Likewise.
12851         * modules/unictype/property-bidi-control: Likewise.
12852         * modules/unictype/property-bidi-embedding-or-override: Likewise.
12853         * modules/unictype/property-bidi-eur-num-separator: Likewise.
12854         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
12855         * modules/unictype/property-bidi-european-digit: Likewise.
12856         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
12857         * modules/unictype/property-bidi-left-to-right: Likewise.
12858         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
12859         * modules/unictype/property-bidi-other-neutral: Likewise.
12860         * modules/unictype/property-bidi-pdf: Likewise.
12861         * modules/unictype/property-bidi-segment-separator: Likewise.
12862         * modules/unictype/property-bidi-whitespace: Likewise.
12863         * modules/unictype/property-byname: Likewise.
12864         * modules/unictype/property-combining: Likewise.
12865         * modules/unictype/property-composite: Likewise.
12866         * modules/unictype/property-currency-symbol: Likewise.
12867         * modules/unictype/property-dash: Likewise.
12868         * modules/unictype/property-decimal-digit: Likewise.
12869         * modules/unictype/property-default-ignorable-code-point: Likewise.
12870         * modules/unictype/property-deprecated: Likewise.
12871         * modules/unictype/property-diacritic: Likewise.
12872         * modules/unictype/property-extender: Likewise.
12873         * modules/unictype/property-format-control: Likewise.
12874         * modules/unictype/property-grapheme-base: Likewise.
12875         * modules/unictype/property-grapheme-extend: Likewise.
12876         * modules/unictype/property-grapheme-link: Likewise.
12877         * modules/unictype/property-hex-digit: Likewise.
12878         * modules/unictype/property-hyphen: Likewise.
12879         * modules/unictype/property-id-continue: Likewise.
12880         * modules/unictype/property-id-start: Likewise.
12881         * modules/unictype/property-ideographic: Likewise.
12882         * modules/unictype/property-ids-binary-operator: Likewise.
12883         * modules/unictype/property-ids-trinary-operator: Likewise.
12884         * modules/unictype/property-ignorable-control: Likewise.
12885         * modules/unictype/property-iso-control: Likewise.
12886         * modules/unictype/property-join-control: Likewise.
12887         * modules/unictype/property-left-of-pair: Likewise.
12888         * modules/unictype/property-line-separator: Likewise.
12889         * modules/unictype/property-logical-order-exception: Likewise.
12890         * modules/unictype/property-lowercase: Likewise.
12891         * modules/unictype/property-math: Likewise.
12892         * modules/unictype/property-non-break: Likewise.
12893         * modules/unictype/property-not-a-character: Likewise.
12894         * modules/unictype/property-numeric: Likewise.
12895         * modules/unictype/property-other-alphabetic: Likewise.
12896         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
12897         * modules/unictype/property-other-grapheme-extend: Likewise.
12898         * modules/unictype/property-other-id-continue: Likewise.
12899         * modules/unictype/property-other-id-start: Likewise.
12900         * modules/unictype/property-other-lowercase: Likewise.
12901         * modules/unictype/property-other-math: Likewise.
12902         * modules/unictype/property-other-uppercase: Likewise.
12903         * modules/unictype/property-paired-punctuation: Likewise.
12904         * modules/unictype/property-paragraph-separator: Likewise.
12905         * modules/unictype/property-pattern-syntax: Likewise.
12906         * modules/unictype/property-pattern-white-space: Likewise.
12907         * modules/unictype/property-private-use: Likewise.
12908         * modules/unictype/property-punctuation: Likewise.
12909         * modules/unictype/property-quotation-mark: Likewise.
12910         * modules/unictype/property-radical: Likewise.
12911         * modules/unictype/property-sentence-terminal: Likewise.
12912         * modules/unictype/property-soft-dotted: Likewise.
12913         * modules/unictype/property-space: Likewise.
12914         * modules/unictype/property-terminal-punctuation: Likewise.
12915         * modules/unictype/property-test: Likewise.
12916         * modules/unictype/property-titlecase: Likewise.
12917         * modules/unictype/property-unassigned-code-value: Likewise.
12918         * modules/unictype/property-unified-ideograph: Likewise.
12919         * modules/unictype/property-uppercase: Likewise.
12920         * modules/unictype/property-variation-selector: Likewise.
12921         * modules/unictype/property-white-space: Likewise.
12922         * modules/unictype/property-xid-continue: Likewise.
12923         * modules/unictype/property-xid-start: Likewise.
12924         * modules/unictype/property-zero-width: Likewise.
12925         * modules/unictype/scripts: Likewise.
12926         * modules/unictype/syntax-c-ident: Likewise.
12927         * modules/unictype/syntax-c-whitespace: Likewise.
12928         * modules/unictype/syntax-java-ident: Likewise.
12929         * modules/unictype/syntax-java-whitespace: Likewise.
12930         * modules/unilbrk/u8-possible-linebreaks: Likewise.
12931         * modules/unilbrk/u8-width-linebreaks: Likewise.
12932         * modules/unilbrk/u16-possible-linebreaks: Likewise.
12933         * modules/unilbrk/u16-width-linebreaks: Likewise.
12934         * modules/unilbrk/u32-possible-linebreaks: Likewise.
12935         * modules/unilbrk/u32-width-linebreaks: Likewise.
12936         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
12937         * modules/unilbrk/ulc-width-linebreaks: Likewise.
12938         * modules/uniname/uniname: Likewise.
12939         * modules/uninorm/canonical-decomposition: Likewise.
12940         * modules/uninorm/composition: Likewise.
12941         * modules/uninorm/decomposing-form: Likewise.
12942         * modules/uninorm/decomposition: Likewise.
12943         * modules/uninorm/filter: Likewise.
12944         * modules/uninorm/nfc: Likewise.
12945         * modules/uninorm/nfd: Likewise.
12946         * modules/uninorm/nfkc: Likewise.
12947         * modules/uninorm/nfkd: Likewise.
12948         * modules/uninorm/u8-normalize: Likewise.
12949         * modules/uninorm/u8-normcmp: Likewise.
12950         * modules/uninorm/u8-normcoll: Likewise.
12951         * modules/uninorm/u8-normxfrm: Likewise.
12952         * modules/uninorm/u16-normalize: Likewise.
12953         * modules/uninorm/u16-normcmp: Likewise.
12954         * modules/uninorm/u16-normcoll: Likewise.
12955         * modules/uninorm/u16-normxfrm: Likewise.
12956         * modules/uninorm/u32-normalize: Likewise.
12957         * modules/uninorm/u32-normcmp: Likewise.
12958         * modules/uninorm/u32-normcoll: Likewise.
12959         * modules/uninorm/u32-normxfrm: Likewise.
12960         * modules/unistdio/u8-asnprintf: Likewise.
12961         * modules/unistdio/u8-asprintf: Likewise.
12962         * modules/unistdio/u8-snprintf: Likewise.
12963         * modules/unistdio/u8-sprintf: Likewise.
12964         * modules/unistdio/u8-u8-asnprintf: Likewise.
12965         * modules/unistdio/u8-u8-asprintf: Likewise.
12966         * modules/unistdio/u8-u8-snprintf: Likewise.
12967         * modules/unistdio/u8-u8-sprintf: Likewise.
12968         * modules/unistdio/u8-u8-vasnprintf: Likewise.
12969         * modules/unistdio/u8-u8-vasprintf: Likewise.
12970         * modules/unistdio/u8-u8-vsnprintf: Likewise.
12971         * modules/unistdio/u8-u8-vsprintf: Likewise.
12972         * modules/unistdio/u8-vasnprintf: Likewise.
12973         * modules/unistdio/u8-vasprintf: Likewise.
12974         * modules/unistdio/u8-vsnprintf: Likewise.
12975         * modules/unistdio/u8-vsprintf: Likewise.
12976         * modules/unistdio/u16-asnprintf: Likewise.
12977         * modules/unistdio/u16-asprintf: Likewise.
12978         * modules/unistdio/u16-snprintf: Likewise.
12979         * modules/unistdio/u16-sprintf: Likewise.
12980         * modules/unistdio/u16-u16-asnprintf: Likewise.
12981         * modules/unistdio/u16-u16-asprintf: Likewise.
12982         * modules/unistdio/u16-u16-snprintf: Likewise.
12983         * modules/unistdio/u16-u16-sprintf: Likewise.
12984         * modules/unistdio/u16-u16-vasnprintf: Likewise.
12985         * modules/unistdio/u16-u16-vasprintf: Likewise.
12986         * modules/unistdio/u16-u16-vsnprintf: Likewise.
12987         * modules/unistdio/u16-u16-vsprintf: Likewise.
12988         * modules/unistdio/u16-vasnprintf: Likewise.
12989         * modules/unistdio/u16-vasprintf: Likewise.
12990         * modules/unistdio/u16-vsnprintf: Likewise.
12991         * modules/unistdio/u16-vsprintf: Likewise.
12992         * modules/unistdio/u32-asnprintf: Likewise.
12993         * modules/unistdio/u32-asprintf: Likewise.
12994         * modules/unistdio/u32-snprintf: Likewise.
12995         * modules/unistdio/u32-sprintf: Likewise.
12996         * modules/unistdio/u32-u32-asnprintf: Likewise.
12997         * modules/unistdio/u32-u32-asprintf: Likewise.
12998         * modules/unistdio/u32-u32-snprintf: Likewise.
12999         * modules/unistdio/u32-u32-sprintf: Likewise.
13000         * modules/unistdio/u32-u32-vasnprintf: Likewise.
13001         * modules/unistdio/u32-u32-vasprintf: Likewise.
13002         * modules/unistdio/u32-u32-vsnprintf: Likewise.
13003         * modules/unistdio/u32-u32-vsprintf: Likewise.
13004         * modules/unistdio/u32-vasnprintf: Likewise.
13005         * modules/unistdio/u32-vasprintf: Likewise.
13006         * modules/unistdio/u32-vsnprintf: Likewise.
13007         * modules/unistdio/u32-vsprintf: Likewise.
13008         * modules/unistdio/ulc-asnprintf: Likewise.
13009         * modules/unistdio/ulc-asprintf: Likewise.
13010         * modules/unistdio/ulc-fprintf: Likewise.
13011         * modules/unistdio/ulc-snprintf: Likewise.
13012         * modules/unistdio/ulc-sprintf: Likewise.
13013         * modules/unistdio/ulc-vasnprintf: Likewise.
13014         * modules/unistdio/ulc-vasprintf: Likewise.
13015         * modules/unistdio/ulc-vfprintf: Likewise.
13016         * modules/unistdio/ulc-vsnprintf: Likewise.
13017         * modules/unistdio/ulc-vsprintf: Likewise.
13018         * modules/unistr/u8-check: Likewise.
13019         * modules/unistr/u8-chr: Likewise.
13020         * modules/unistr/u8-cmp: Likewise.
13021         * modules/unistr/u8-cmp2: Likewise.
13022         * modules/unistr/u8-cpy: Likewise.
13023         * modules/unistr/u8-cpy-alloc: Likewise.
13024         * modules/unistr/u8-endswith: Likewise.
13025         * modules/unistr/u8-mblen: Likewise.
13026         * modules/unistr/u8-mbsnlen: Likewise.
13027         * modules/unistr/u8-mbtouc: Likewise.
13028         * modules/unistr/u8-mbtouc-unsafe: Likewise.
13029         * modules/unistr/u8-mbtoucr: Likewise.
13030         * modules/unistr/u8-move: Likewise.
13031         * modules/unistr/u8-next: Likewise.
13032         * modules/unistr/u8-prev: Likewise.
13033         * modules/unistr/u8-set: Likewise.
13034         * modules/unistr/u8-startswith: Likewise.
13035         * modules/unistr/u8-stpcpy: Likewise.
13036         * modules/unistr/u8-stpncpy: Likewise.
13037         * modules/unistr/u8-strcat: Likewise.
13038         * modules/unistr/u8-strchr: Likewise.
13039         * modules/unistr/u8-strcmp: Likewise.
13040         * modules/unistr/u8-strcoll: Likewise.
13041         * modules/unistr/u8-strcpy: Likewise.
13042         * modules/unistr/u8-strcspn: Likewise.
13043         * modules/unistr/u8-strdup: Likewise.
13044         * modules/unistr/u8-strlen: Likewise.
13045         * modules/unistr/u8-strmblen: Likewise.
13046         * modules/unistr/u8-strmbtouc: Likewise.
13047         * modules/unistr/u8-strncat: Likewise.
13048         * modules/unistr/u8-strncmp: Likewise.
13049         * modules/unistr/u8-strncpy: Likewise.
13050         * modules/unistr/u8-strnlen: Likewise.
13051         * modules/unistr/u8-strpbrk: Likewise.
13052         * modules/unistr/u8-strrchr: Likewise.
13053         * modules/unistr/u8-strspn: Likewise.
13054         * modules/unistr/u8-strstr: Likewise.
13055         * modules/unistr/u8-strtok: Likewise.
13056         * modules/unistr/u8-to-u16: Likewise.
13057         * modules/unistr/u8-to-u32: Likewise.
13058         * modules/unistr/u8-uctomb: Likewise.
13059         * modules/unistr/u16-check: Likewise.
13060         * modules/unistr/u16-chr: Likewise.
13061         * modules/unistr/u16-cmp: Likewise.
13062         * modules/unistr/u16-cmp2: Likewise.
13063         * modules/unistr/u16-cpy: Likewise.
13064         * modules/unistr/u16-cpy-alloc: Likewise.
13065         * modules/unistr/u16-endswith: Likewise.
13066         * modules/unistr/u16-mblen: Likewise.
13067         * modules/unistr/u16-mbsnlen: Likewise.
13068         * modules/unistr/u16-mbtouc: Likewise.
13069         * modules/unistr/u16-mbtouc-unsafe: Likewise.
13070         * modules/unistr/u16-mbtoucr: Likewise.
13071         * modules/unistr/u16-move: Likewise.
13072         * modules/unistr/u16-next: Likewise.
13073         * modules/unistr/u16-prev: Likewise.
13074         * modules/unistr/u16-set: Likewise.
13075         * modules/unistr/u16-startswith: Likewise.
13076         * modules/unistr/u16-stpcpy: Likewise.
13077         * modules/unistr/u16-stpncpy: Likewise.
13078         * modules/unistr/u16-strcat: Likewise.
13079         * modules/unistr/u16-strchr: Likewise.
13080         * modules/unistr/u16-strcmp: Likewise.
13081         * modules/unistr/u16-strcoll: Likewise.
13082         * modules/unistr/u16-strcpy: Likewise.
13083         * modules/unistr/u16-strcspn: Likewise.
13084         * modules/unistr/u16-strdup: Likewise.
13085         * modules/unistr/u16-strlen: Likewise.
13086         * modules/unistr/u16-strmblen: Likewise.
13087         * modules/unistr/u16-strmbtouc: Likewise.
13088         * modules/unistr/u16-strncat: Likewise.
13089         * modules/unistr/u16-strncmp: Likewise.
13090         * modules/unistr/u16-strncpy: Likewise.
13091         * modules/unistr/u16-strnlen: Likewise.
13092         * modules/unistr/u16-strpbrk: Likewise.
13093         * modules/unistr/u16-strrchr: Likewise.
13094         * modules/unistr/u16-strspn: Likewise.
13095         * modules/unistr/u16-strstr: Likewise.
13096         * modules/unistr/u16-strtok: Likewise.
13097         * modules/unistr/u16-to-u32: Likewise.
13098         * modules/unistr/u16-to-u8: Likewise.
13099         * modules/unistr/u16-uctomb: Likewise.
13100         * modules/unistr/u32-check: Likewise.
13101         * modules/unistr/u32-chr: Likewise.
13102         * modules/unistr/u32-cmp: Likewise.
13103         * modules/unistr/u32-cmp2: Likewise.
13104         * modules/unistr/u32-cpy: Likewise.
13105         * modules/unistr/u32-cpy-alloc: Likewise.
13106         * modules/unistr/u32-endswith: Likewise.
13107         * modules/unistr/u32-mblen: Likewise.
13108         * modules/unistr/u32-mbsnlen: Likewise.
13109         * modules/unistr/u32-mbtouc: Likewise.
13110         * modules/unistr/u32-mbtouc-unsafe: Likewise.
13111         * modules/unistr/u32-mbtoucr: Likewise.
13112         * modules/unistr/u32-move: Likewise.
13113         * modules/unistr/u32-next: Likewise.
13114         * modules/unistr/u32-prev: Likewise.
13115         * modules/unistr/u32-set: Likewise.
13116         * modules/unistr/u32-startswith: Likewise.
13117         * modules/unistr/u32-stpcpy: Likewise.
13118         * modules/unistr/u32-stpncpy: Likewise.
13119         * modules/unistr/u32-strcat: Likewise.
13120         * modules/unistr/u32-strchr: Likewise.
13121         * modules/unistr/u32-strcmp: Likewise.
13122         * modules/unistr/u32-strcoll: Likewise.
13123         * modules/unistr/u32-strcpy: Likewise.
13124         * modules/unistr/u32-strcspn: Likewise.
13125         * modules/unistr/u32-strdup: Likewise.
13126         * modules/unistr/u32-strlen: Likewise.
13127         * modules/unistr/u32-strmblen: Likewise.
13128         * modules/unistr/u32-strmbtouc: Likewise.
13129         * modules/unistr/u32-strncat: Likewise.
13130         * modules/unistr/u32-strncmp: Likewise.
13131         * modules/unistr/u32-strncpy: Likewise.
13132         * modules/unistr/u32-strnlen: Likewise.
13133         * modules/unistr/u32-strpbrk: Likewise.
13134         * modules/unistr/u32-strrchr: Likewise.
13135         * modules/unistr/u32-strspn: Likewise.
13136         * modules/unistr/u32-strstr: Likewise.
13137         * modules/unistr/u32-strtok: Likewise.
13138         * modules/unistr/u32-to-u16: Likewise.
13139         * modules/unistr/u32-to-u8: Likewise.
13140         * modules/unistr/u32-uctomb: Likewise.
13141         * modules/uniwbrk/u8-wordbreaks: Likewise.
13142         * modules/uniwbrk/u16-wordbreaks: Likewise.
13143         * modules/uniwbrk/u32-wordbreaks: Likewise.
13144         * modules/uniwbrk/ulc-wordbreaks: Likewise.
13145         * modules/uniwbrk/wordbreak-property: Likewise.
13146         * modules/uniwidth/u8-strwidth: Likewise.
13147         * modules/uniwidth/u8-width: Likewise.
13148         * modules/uniwidth/u16-strwidth: Likewise.
13149         * modules/uniwidth/u16-width: Likewise.
13150         * modules/uniwidth/u32-strwidth: Likewise.
13151         * modules/uniwidth/u32-width: Likewise.
13152         * modules/uniwidth/width: Likewise.
13153         * modules/unicase/cased-tests (Makefile.am): Link all test programs
13154         with $(LIBUNISTRING).
13155         * modules/unicase/ignorable-tests: Likewise.
13156         * modules/unicase/locale-language-tests: Likewise.
13157         * modules/unicase/tolower-tests: Likewise.
13158         * modules/unicase/totitle-tests: Likewise.
13159         * modules/unicase/toupper-tests: Likewise.
13160         * modules/unicase/u8-casecmp-tests: Likewise.
13161         * modules/unicase/u8-casecoll-tests: Likewise.
13162         * modules/unicase/u8-casefold-tests: Likewise.
13163         * modules/unicase/u8-is-cased-tests: Likewise.
13164         * modules/unicase/u8-is-casefolded-tests: Likewise.
13165         * modules/unicase/u8-is-lowercase-tests: Likewise.
13166         * modules/unicase/u8-is-titlecase-tests: Likewise.
13167         * modules/unicase/u8-is-uppercase-tests: Likewise.
13168         * modules/unicase/u8-tolower-tests: Likewise.
13169         * modules/unicase/u8-totitle-tests: Likewise.
13170         * modules/unicase/u8-toupper-tests: Likewise.
13171         * modules/unicase/u16-casecmp-tests: Likewise.
13172         * modules/unicase/u16-casecoll-tests: Likewise.
13173         * modules/unicase/u16-casefold-tests: Likewise.
13174         * modules/unicase/u16-is-cased-tests: Likewise.
13175         * modules/unicase/u16-is-casefolded-tests: Likewise.
13176         * modules/unicase/u16-is-lowercase-tests: Likewise.
13177         * modules/unicase/u16-is-titlecase-tests: Likewise.
13178         * modules/unicase/u16-is-uppercase-tests: Likewise.
13179         * modules/unicase/u16-tolower-tests: Likewise.
13180         * modules/unicase/u16-totitle-tests: Likewise.
13181         * modules/unicase/u16-toupper-tests: Likewise.
13182         * modules/unicase/u32-casecmp-tests: Likewise.
13183         * modules/unicase/u32-casecoll-tests: Likewise.
13184         * modules/unicase/u32-casefold-tests: Likewise.
13185         * modules/unicase/u32-is-cased-tests: Likewise.
13186         * modules/unicase/u32-is-casefolded-tests: Likewise.
13187         * modules/unicase/u32-is-lowercase-tests: Likewise.
13188         * modules/unicase/u32-is-titlecase-tests: Likewise.
13189         * modules/unicase/u32-is-uppercase-tests: Likewise.
13190         * modules/unicase/u32-tolower-tests: Likewise.
13191         * modules/unicase/u32-totitle-tests: Likewise.
13192         * modules/unicase/u32-toupper-tests: Likewise.
13193         * modules/unicase/ulc-casecmp-tests: Likewise.
13194         * modules/unicase/ulc-casecoll-tests: Likewise.
13195         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
13196         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
13197         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
13198         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
13199         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
13200         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
13201         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
13202         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
13203         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
13204         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
13205         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
13206         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
13207         * modules/unictype/bidicategory-byname-tests: Likewise.
13208         * modules/unictype/bidicategory-name-tests: Likewise.
13209         * modules/unictype/bidicategory-of-tests: Likewise.
13210         * modules/unictype/bidicategory-test-tests: Likewise.
13211         * modules/unictype/block-list-tests: Likewise.
13212         * modules/unictype/block-of-tests: Likewise.
13213         * modules/unictype/block-test-tests: Likewise.
13214         * modules/unictype/category-C-tests: Likewise.
13215         * modules/unictype/category-Cc-tests: Likewise.
13216         * modules/unictype/category-Cf-tests: Likewise.
13217         * modules/unictype/category-Cn-tests: Likewise.
13218         * modules/unictype/category-Co-tests: Likewise.
13219         * modules/unictype/category-Cs-tests: Likewise.
13220         * modules/unictype/category-L-tests: Likewise.
13221         * modules/unictype/category-Ll-tests: Likewise.
13222         * modules/unictype/category-Lm-tests: Likewise.
13223         * modules/unictype/category-Lo-tests: Likewise.
13224         * modules/unictype/category-Lt-tests: Likewise.
13225         * modules/unictype/category-Lu-tests: Likewise.
13226         * modules/unictype/category-M-tests: Likewise.
13227         * modules/unictype/category-Mc-tests: Likewise.
13228         * modules/unictype/category-Me-tests: Likewise.
13229         * modules/unictype/category-Mn-tests: Likewise.
13230         * modules/unictype/category-N-tests: Likewise.
13231         * modules/unictype/category-Nd-tests: Likewise.
13232         * modules/unictype/category-Nl-tests: Likewise.
13233         * modules/unictype/category-No-tests: Likewise.
13234         * modules/unictype/category-P-tests: Likewise.
13235         * modules/unictype/category-Pc-tests: Likewise.
13236         * modules/unictype/category-Pd-tests: Likewise.
13237         * modules/unictype/category-Pe-tests: Likewise.
13238         * modules/unictype/category-Pf-tests: Likewise.
13239         * modules/unictype/category-Pi-tests: Likewise.
13240         * modules/unictype/category-Po-tests: Likewise.
13241         * modules/unictype/category-Ps-tests: Likewise.
13242         * modules/unictype/category-S-tests: Likewise.
13243         * modules/unictype/category-Sc-tests: Likewise.
13244         * modules/unictype/category-Sk-tests: Likewise.
13245         * modules/unictype/category-Sm-tests: Likewise.
13246         * modules/unictype/category-So-tests: Likewise.
13247         * modules/unictype/category-Z-tests: Likewise.
13248         * modules/unictype/category-Zl-tests: Likewise.
13249         * modules/unictype/category-Zp-tests: Likewise.
13250         * modules/unictype/category-Zs-tests: Likewise.
13251         * modules/unictype/category-and-not-tests: Likewise.
13252         * modules/unictype/category-and-tests: Likewise.
13253         * modules/unictype/category-byname-tests: Likewise.
13254         * modules/unictype/category-name-tests: Likewise.
13255         * modules/unictype/category-none-tests: Likewise.
13256         * modules/unictype/category-of-tests: Likewise.
13257         * modules/unictype/category-or-tests: Likewise.
13258         * modules/unictype/category-test-withtable-tests: Likewise.
13259         * modules/unictype/combining-class-tests: Likewise.
13260         * modules/unictype/ctype-alnum-tests: Likewise.
13261         * modules/unictype/ctype-alpha-tests: Likewise.
13262         * modules/unictype/ctype-blank-tests: Likewise.
13263         * modules/unictype/ctype-cntrl-tests: Likewise.
13264         * modules/unictype/ctype-digit-tests: Likewise.
13265         * modules/unictype/ctype-graph-tests: Likewise.
13266         * modules/unictype/ctype-lower-tests: Likewise.
13267         * modules/unictype/ctype-print-tests: Likewise.
13268         * modules/unictype/ctype-punct-tests: Likewise.
13269         * modules/unictype/ctype-space-tests: Likewise.
13270         * modules/unictype/ctype-upper-tests: Likewise.
13271         * modules/unictype/ctype-xdigit-tests: Likewise.
13272         * modules/unictype/decimal-digit-tests: Likewise.
13273         * modules/unictype/digit-tests: Likewise.
13274         * modules/unictype/mirror-tests: Likewise.
13275         * modules/unictype/numeric-tests: Likewise.
13276         * modules/unictype/property-alphabetic-tests: Likewise.
13277         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
13278         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
13279         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
13280         * modules/unictype/property-bidi-block-separator-tests: Likewise.
13281         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
13282         * modules/unictype/property-bidi-common-separator-tests: Likewise.
13283         * modules/unictype/property-bidi-control-tests: Likewise.
13284         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
13285         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
13286         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
13287         * modules/unictype/property-bidi-european-digit-tests: Likewise.
13288         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
13289         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
13290         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
13291         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
13292         * modules/unictype/property-bidi-pdf-tests: Likewise.
13293         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
13294         * modules/unictype/property-bidi-whitespace-tests: Likewise.
13295         * modules/unictype/property-byname-tests: Likewise.
13296         * modules/unictype/property-combining-tests: Likewise.
13297         * modules/unictype/property-composite-tests: Likewise.
13298         * modules/unictype/property-currency-symbol-tests: Likewise.
13299         * modules/unictype/property-dash-tests: Likewise.
13300         * modules/unictype/property-decimal-digit-tests: Likewise.
13301         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
13302         * modules/unictype/property-deprecated-tests: Likewise.
13303         * modules/unictype/property-diacritic-tests: Likewise.
13304         * modules/unictype/property-extender-tests: Likewise.
13305         * modules/unictype/property-format-control-tests: Likewise.
13306         * modules/unictype/property-grapheme-base-tests: Likewise.
13307         * modules/unictype/property-grapheme-extend-tests: Likewise.
13308         * modules/unictype/property-grapheme-link-tests: Likewise.
13309         * modules/unictype/property-hex-digit-tests: Likewise.
13310         * modules/unictype/property-hyphen-tests: Likewise.
13311         * modules/unictype/property-id-continue-tests: Likewise.
13312         * modules/unictype/property-id-start-tests: Likewise.
13313         * modules/unictype/property-ideographic-tests: Likewise.
13314         * modules/unictype/property-ids-binary-operator-tests: Likewise.
13315         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
13316         * modules/unictype/property-ignorable-control-tests: Likewise.
13317         * modules/unictype/property-iso-control-tests: Likewise.
13318         * modules/unictype/property-join-control-tests: Likewise.
13319         * modules/unictype/property-left-of-pair-tests: Likewise.
13320         * modules/unictype/property-line-separator-tests: Likewise.
13321         * modules/unictype/property-logical-order-exception-tests: Likewise.
13322         * modules/unictype/property-lowercase-tests: Likewise.
13323         * modules/unictype/property-math-tests: Likewise.
13324         * modules/unictype/property-non-break-tests: Likewise.
13325         * modules/unictype/property-not-a-character-tests: Likewise.
13326         * modules/unictype/property-numeric-tests: Likewise.
13327         * modules/unictype/property-other-alphabetic-tests: Likewise.
13328         * modules/unictype/property-other-default-ignorable-code-point-tests:
13329         Likewise.
13330         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
13331         * modules/unictype/property-other-id-continue-tests: Likewise.
13332         * modules/unictype/property-other-id-start-tests: Likewise.
13333         * modules/unictype/property-other-lowercase-tests: Likewise.
13334         * modules/unictype/property-other-math-tests: Likewise.
13335         * modules/unictype/property-other-uppercase-tests: Likewise.
13336         * modules/unictype/property-paired-punctuation-tests: Likewise.
13337         * modules/unictype/property-paragraph-separator-tests: Likewise.
13338         * modules/unictype/property-pattern-syntax-tests: Likewise.
13339         * modules/unictype/property-pattern-white-space-tests: Likewise.
13340         * modules/unictype/property-private-use-tests: Likewise.
13341         * modules/unictype/property-punctuation-tests: Likewise.
13342         * modules/unictype/property-quotation-mark-tests: Likewise.
13343         * modules/unictype/property-radical-tests: Likewise.
13344         * modules/unictype/property-sentence-terminal-tests: Likewise.
13345         * modules/unictype/property-soft-dotted-tests: Likewise.
13346         * modules/unictype/property-space-tests: Likewise.
13347         * modules/unictype/property-terminal-punctuation-tests: Likewise.
13348         * modules/unictype/property-test-tests: Likewise.
13349         * modules/unictype/property-titlecase-tests: Likewise.
13350         * modules/unictype/property-unassigned-code-value-tests: Likewise.
13351         * modules/unictype/property-unified-ideograph-tests: Likewise.
13352         * modules/unictype/property-uppercase-tests: Likewise.
13353         * modules/unictype/property-variation-selector-tests: Likewise.
13354         * modules/unictype/property-white-space-tests: Likewise.
13355         * modules/unictype/property-xid-continue-tests: Likewise.
13356         * modules/unictype/property-xid-start-tests: Likewise.
13357         * modules/unictype/property-zero-width-tests: Likewise.
13358         * modules/unictype/scripts-tests: Likewise.
13359         * modules/unictype/syntax-c-ident-tests: Likewise.
13360         * modules/unictype/syntax-c-whitespace-tests: Likewise.
13361         * modules/unictype/syntax-java-ident-tests: Likewise.
13362         * modules/unictype/syntax-java-whitespace-tests: Likewise.
13363         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
13364         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
13365         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
13366         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
13367         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
13368         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
13369         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
13370         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
13371         * modules/uniname/uniname-tests: Likewise.
13372         * modules/uninorm/canonical-decomposition-tests: Likewise.
13373         * modules/uninorm/compat-decomposition-tests: Likewise.
13374         * modules/uninorm/composition-tests: Likewise.
13375         * modules/uninorm/decomposing-form-tests: Likewise.
13376         * modules/uninorm/decomposition-tests: Likewise.
13377         * modules/uninorm/filter-tests: Likewise.
13378         * modules/uninorm/nfc-tests: Likewise.
13379         * modules/uninorm/nfd-tests: Likewise.
13380         * modules/uninorm/nfkc-tests: Likewise.
13381         * modules/uninorm/nfkd-tests: Likewise.
13382         * modules/uninorm/u8-normcmp-tests: Likewise.
13383         * modules/uninorm/u8-normcoll-tests: Likewise.
13384         * modules/uninorm/u16-normcmp-tests: Likewise.
13385         * modules/uninorm/u16-normcoll-tests: Likewise.
13386         * modules/uninorm/u32-normcmp-tests: Likewise.
13387         * modules/uninorm/u32-normcoll-tests: Likewise.
13388         * modules/unistdio/u8-asnprintf-tests: Likewise.
13389         * modules/unistdio/u8-vasnprintf-tests: Likewise.
13390         * modules/unistdio/u8-vasprintf-tests: Likewise.
13391         * modules/unistdio/u8-vsnprintf-tests: Likewise.
13392         * modules/unistdio/u8-vsprintf-tests: Likewise.
13393         * modules/unistdio/u16-asnprintf-tests: Likewise.
13394         * modules/unistdio/u16-vasnprintf-tests: Likewise.
13395         * modules/unistdio/u16-vasprintf-tests: Likewise.
13396         * modules/unistdio/u16-vsnprintf-tests: Likewise.
13397         * modules/unistdio/u16-vsprintf-tests: Likewise.
13398         * modules/unistdio/u32-asnprintf-tests: Likewise.
13399         * modules/unistdio/u32-vasnprintf-tests: Likewise.
13400         * modules/unistdio/u32-vasprintf-tests: Likewise.
13401         * modules/unistdio/u32-vsnprintf-tests: Likewise.
13402         * modules/unistdio/u32-vsprintf-tests: Likewise.
13403         * modules/unistdio/ulc-asnprintf-tests: Likewise.
13404         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
13405         * modules/unistdio/ulc-vasprintf-tests: Likewise.
13406         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
13407         * modules/unistdio/ulc-vsprintf-tests: Likewise.
13408         * modules/unistr/u8-check-tests: Likewise.
13409         * modules/unistr/u8-chr-tests: Likewise.
13410         * modules/unistr/u8-cmp-tests: Likewise.
13411         * modules/unistr/u8-cmp2-tests: Likewise.
13412         * modules/unistr/u8-cpy-alloc-tests: Likewise.
13413         * modules/unistr/u8-cpy-tests: Likewise.
13414         * modules/unistr/u8-mblen-tests: Likewise.
13415         * modules/unistr/u8-mbsnlen-tests: Likewise.
13416         * modules/unistr/u8-mbtouc-tests: Likewise.
13417         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
13418         * modules/unistr/u8-mbtoucr-tests: Likewise.
13419         * modules/unistr/u8-move-tests: Likewise.
13420         * modules/unistr/u8-next-tests: Likewise.
13421         * modules/unistr/u8-prev-tests: Likewise.
13422         * modules/unistr/u8-set-tests: Likewise.
13423         * modules/unistr/u8-stpcpy-tests: Likewise.
13424         * modules/unistr/u8-stpncpy-tests: Likewise.
13425         * modules/unistr/u8-strcat-tests: Likewise.
13426         * modules/unistr/u8-strcmp-tests: Likewise.
13427         * modules/unistr/u8-strcoll-tests: Likewise.
13428         * modules/unistr/u8-strcpy-tests: Likewise.
13429         * modules/unistr/u8-strdup-tests: Likewise.
13430         * modules/unistr/u8-strlen-tests: Likewise.
13431         * modules/unistr/u8-strmblen-tests: Likewise.
13432         * modules/unistr/u8-strmbtouc-tests: Likewise.
13433         * modules/unistr/u8-strncat-tests: Likewise.
13434         * modules/unistr/u8-strncmp-tests: Likewise.
13435         * modules/unistr/u8-strncpy-tests: Likewise.
13436         * modules/unistr/u8-strnlen-tests: Likewise.
13437         * modules/unistr/u8-to-u16-tests: Likewise.
13438         * modules/unistr/u8-to-u32-tests: Likewise.
13439         * modules/unistr/u8-uctomb-tests: Likewise.
13440         * modules/unistr/u16-check-tests: Likewise.
13441         * modules/unistr/u16-chr-tests: Likewise.
13442         * modules/unistr/u16-cmp-tests: Likewise.
13443         * modules/unistr/u16-cmp2-tests: Likewise.
13444         * modules/unistr/u16-cpy-alloc-tests: Likewise.
13445         * modules/unistr/u16-cpy-tests: Likewise.
13446         * modules/unistr/u16-mblen-tests: Likewise.
13447         * modules/unistr/u16-mbsnlen-tests: Likewise.
13448         * modules/unistr/u16-mbtouc-tests: Likewise.
13449         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
13450         * modules/unistr/u16-mbtoucr-tests: Likewise.
13451         * modules/unistr/u16-move-tests: Likewise.
13452         * modules/unistr/u16-next-tests: Likewise.
13453         * modules/unistr/u16-prev-tests: Likewise.
13454         * modules/unistr/u16-set-tests: Likewise.
13455         * modules/unistr/u16-stpcpy-tests: Likewise.
13456         * modules/unistr/u16-stpncpy-tests: Likewise.
13457         * modules/unistr/u16-strcat-tests: Likewise.
13458         * modules/unistr/u16-strcmp-tests: Likewise.
13459         * modules/unistr/u16-strcoll-tests: Likewise.
13460         * modules/unistr/u16-strcpy-tests: Likewise.
13461         * modules/unistr/u16-strdup-tests: Likewise.
13462         * modules/unistr/u16-strlen-tests: Likewise.
13463         * modules/unistr/u16-strmblen-tests: Likewise.
13464         * modules/unistr/u16-strmbtouc-tests: Likewise.
13465         * modules/unistr/u16-strncat-tests: Likewise.
13466         * modules/unistr/u16-strncmp-tests: Likewise.
13467         * modules/unistr/u16-strncpy-tests: Likewise.
13468         * modules/unistr/u16-strnlen-tests: Likewise.
13469         * modules/unistr/u16-to-u32-tests: Likewise.
13470         * modules/unistr/u16-to-u8-tests: Likewise.
13471         * modules/unistr/u16-uctomb-tests: Likewise.
13472         * modules/unistr/u32-check-tests: Likewise.
13473         * modules/unistr/u32-chr-tests: Likewise.
13474         * modules/unistr/u32-cmp-tests: Likewise.
13475         * modules/unistr/u32-cmp2-tests: Likewise.
13476         * modules/unistr/u32-cpy-alloc-tests: Likewise.
13477         * modules/unistr/u32-cpy-tests: Likewise.
13478         * modules/unistr/u32-mblen-tests: Likewise.
13479         * modules/unistr/u32-mbsnlen-tests: Likewise.
13480         * modules/unistr/u32-mbtouc-tests: Likewise.
13481         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
13482         * modules/unistr/u32-mbtoucr-tests: Likewise.
13483         * modules/unistr/u32-move-tests: Likewise.
13484         * modules/unistr/u32-next-tests: Likewise.
13485         * modules/unistr/u32-prev-tests: Likewise.
13486         * modules/unistr/u32-set-tests: Likewise.
13487         * modules/unistr/u32-stpcpy-tests: Likewise.
13488         * modules/unistr/u32-stpncpy-tests: Likewise.
13489         * modules/unistr/u32-strcat-tests: Likewise.
13490         * modules/unistr/u32-strcmp-tests: Likewise.
13491         * modules/unistr/u32-strcoll-tests: Likewise.
13492         * modules/unistr/u32-strcpy-tests: Likewise.
13493         * modules/unistr/u32-strdup-tests: Likewise.
13494         * modules/unistr/u32-strlen-tests: Likewise.
13495         * modules/unistr/u32-strmblen-tests: Likewise.
13496         * modules/unistr/u32-strmbtouc-tests: Likewise.
13497         * modules/unistr/u32-strncat-tests: Likewise.
13498         * modules/unistr/u32-strncmp-tests: Likewise.
13499         * modules/unistr/u32-strncpy-tests: Likewise.
13500         * modules/unistr/u32-strnlen-tests: Likewise.
13501         * modules/unistr/u32-to-u16-tests: Likewise.
13502         * modules/unistr/u32-to-u8-tests: Likewise.
13503         * modules/unistr/u32-uctomb-tests: Likewise.
13504         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
13505         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
13506         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
13507         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
13508         * modules/uniwidth/u8-strwidth-tests: Likewise.
13509         * modules/uniwidth/u8-width-tests: Likewise.
13510         * modules/uniwidth/u16-strwidth-tests: Likewise.
13511         * modules/uniwidth/u16-width-tests: Likewise.
13512         * modules/uniwidth/u32-strwidth-tests: Likewise.
13513         * modules/uniwidth/u32-width-tests: Likewise.
13514         * modules/uniwidth/width-tests: Likewise.
13515
13516 2010-05-18  Richard Jones  <rjones@redhat.com>
13517
13518         doc: users.txt: list hivex
13519         * users.txt: Add hivex.
13520
13521 2010-05-18  Richard Jones  <rjones@redhat.com>
13522
13523         doc: users.txt: list febootstrap
13524         * users.txt: Add febootstrap.
13525
13526 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
13527
13528         bootstrap: fix an error when gnulib is not used as a git submodule
13529         * build-aux/bootstrap (gnulib_path): If its length is zero then
13530         assign "gnulib" to it.
13531         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
13532
13533 2010-05-16  Bruno Haible  <bruno@clisp.org>
13534
13535         Avoid autoconf warnings about AM_ICONV.
13536         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
13537         2.64.
13538
13539 2010-05-16  Bruno Haible  <bruno@clisp.org>
13540
13541         absolute-header: Make the macro usable in more situations.
13542         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
13543         from gl_ABSOLUTE_HEADER.
13544         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
13545
13546 2010-05-16  James Youngman  <jay@gnu.org>
13547
13548         doc: update users.txt
13549         * users.txt: Add CSSC.
13550
13551 2010-05-16  Jim Meyering  <meyering@redhat.com>
13552
13553         init.sh: fix an error in the previous change; add more comments
13554         * tests/init.sh: Compare exit code in loop against 9, not 2.
13555         Patch by Bruno Haible.
13556         Make the two tests more similar by adding an empty "then" clause.
13557         Add comments.
13558
13559         init.sh: avoid unnecessary shell re-exec
13560         * tests/init.sh: Improve the re-exec-required check to first test the
13561         current shell.  If it passes the test, do not search for a shell that
13562         does pass, and do not re-exec.  This test is particularly contorted to
13563         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
13564         of $(...) evokes a syntax error and causes immediate shell exit with
13565         status 2.  Bruno Haible reported that the re-exec made it impossible
13566         to single-step through any init.sh-using script.
13567
13568 2010-05-16  Bruno Haible  <bruno@clisp.org>
13569
13570         Fix collision between gnulib's and libintl's printf replacements.
13571         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
13572         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
13573         (printf): When using GNU C, map the __printf__ function to rpl_printf
13574         via __asm__. When not using GNU C, define rpl_printf instead of
13575         __printf__.
13576         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
13577         commit.
13578         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
13579         commit.
13580         * m4/asm-underscore.m4: New file.
13581         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
13582         * modules/stdio (Files): Add m4/asm-underscore.m4.
13583         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
13584         Reported by Ben Pfaff.
13585
13586 2010-05-16  Bruno Haible  <bruno@clisp.org>
13587
13588         verify: Avoid skipping the test on openSUSE 11.0.
13589         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
13590
13591 2010-05-13  Bruno Haible  <bruno@clisp.org>
13592
13593         Avoid useless warnings from G++.
13594         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
13595         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
13596         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13597
13598 2010-05-11  Jim Meyering  <meyering@redhat.com>
13599
13600         maint.mk: tweak preceding change
13601         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
13602         regexps tighter by anchoring at EOL, and make the new group "shy"
13603         for slightly decreased overhead.
13604
13605 2010-05-11  Eric Blake  <eblake@redhat.com>
13606
13607         maint.mk: gnulib doesn't guarantee NSIG
13608         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
13609
13610 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13611
13612         test-pwrite.c: Remove unused variable declaration.
13613         * tests/test-pwrite.c (main): Remove read_buf declaration.
13614
13615         Remove useless test-pwrite.sh file.
13616         * tests/test-pwrite.sh: Delete file.
13617         * modules/pwrite-tests: Remove references.
13618         Reported by Bruno Haible.
13619
13620 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13621
13622         init.sh: fix a typo
13623         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
13624
13625 2010-05-10  Jim Meyering  <meyering@redhat.com>
13626
13627         maint.mk: avoid using a temporary file in the always-defined-macros check
13628         * top/maint.mk (.re-defmac): Remove rule.
13629         (gl_trap_): Remove definition.
13630         (sc_prohibit_always-defined_macros): Rewrite not to create and
13631         depend on a temporary file.  Instead, depend on GNU grep's ability
13632         to read a list of regular expressions from stdin when given "-f -".
13633
13634 2010-05-09  Bruno Haible  <bruno@clisp.org>
13635
13636         Update to GNU gettext 0.18, part 1.
13637         * m4/gettext.m4: Update to GNU gettext 0.18.
13638         * m4/intl.m4: Likewise.
13639         * m4/po.m4: Likewise.
13640         * modules/gettext (Files): Add m4/fcntl-o.m4.
13641         (configure.ac): Require gettext infrastructure from version 0.18.
13642
13643 2010-05-09  Jim Meyering  <meyering@redhat.com>
13644
13645         init.sh: enable MALLOC_PERTURB_
13646         * tests/init.sh: Enable glibc's malloc-perturbing option.
13647
13648         maint.mk: improve sc_cross_check_PATH_usage_in_tests
13649         With my recent change in init.sh from the two-line form:
13650             -#   : ${srcdir=.}
13651             -#   . "$srcdir/init.sh"; path_prepend_ .
13652             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
13653         I noticed that using the one-line form would cause this test
13654         to fail with a false-positive, or to stop working altogether,
13655         depending on whether help-version changed or all the tests did.
13656         * top/maint.mk (_hv_regex): Remove this definition.
13657         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
13658         (_hv_regex_strong): Use a stronger regex to check for conformance.
13659         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
13660         Give a separate diagnostic for lack of conforming use.
13661
13662         maint.mk: prohibit definition of symbols defined by gnulib
13663         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
13664         definition of symbols defined by gnulib.
13665
13666 2010-05-09  Bruno Haible  <bruno@clisp.org>
13667
13668         acl: Avoid test failure on Cygwin-hosted mingw.
13669         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
13670
13671 2010-05-09  Bruno Haible  <bruno@clisp.org>
13672
13673         error: Use system's fcntl function.
13674         * lib/error.c (fcntl): Undefine.
13675
13676 2010-05-09  Jim Meyering  <meyering@redhat.com>
13677
13678         verify: adjust formatting to be more consistent
13679         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
13680         argument-list '('s, and after one comma.
13681
13682 2010-05-09  Bruno Haible  <bruno@clisp.org>
13683
13684         error: More reliable output on mingw.
13685         * lib/error.c: Include <windows.h>.
13686         (is_open): New function.
13687         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
13688         defined.
13689
13690 2010-05-09  Bruno Haible  <bruno@clisp.org>
13691
13692         vasnprintf: Fix syntax errors in libintl build on mingw.
13693         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
13694         pad_ourselves and prec_ourselves after use.
13695
13696 2010-05-08  Bruno Haible  <bruno@clisp.org>
13697
13698         * lib/config.charset: Update comments for Cygwin 1.7.
13699         * lib/localcharset.c: Likewise.
13700
13701 2010-05-07  Jim Meyering  <meyering@redhat.com>
13702
13703         init.sh: improve comments
13704         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
13705         . "${srcdir=.}/init.sh"; path_prepend_ .
13706         Add a note about path_prepend_ and the alternative of using
13707         TESTS_ENVIRONMENT.
13708
13709 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
13710
13711         exclude: Unescape hashed patterns in wildcard mode.
13712         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
13713         to the hash list.
13714         * tests/test-exclude8.sh: New test case.
13715         * modules/exclude-tests: Add new test.
13716
13717 2010-05-05  Eric Blake  <eblake@redhat.com>
13718
13719         verify: automate tests
13720         * modules/verify-tests: New module.
13721         * tests/test-verify.sh: New file.
13722         * tests/test-verify.c: Guard each negative test with a unique id.
13723         Also avoid warning about unused left hand of comma expressions.
13724
13725 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13726
13727         Further improvements to verify.h, suggested by Eric Blake.
13728         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
13729         the GL_* versions, to avoid collision with OpenGL.
13730         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
13731         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
13732         than testing merely whether it's defined.
13733
13734         Modify verify.h to pacify gcc -Wredundant_decls.
13735         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
13736         These use the prefix "GL_" since they're likely to be useful elsewhere.
13737         We may need to break them out into a different .h file.
13738         (__COUNTER__): Define to 0 if the compiler doesn't support it.
13739         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
13740         of verify_function__.
13741
13742 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13743
13744         Tests for module pwrite.
13745         * modules/pwrite-tests: New file.
13746         * tests/test-pwrite.sh: New file.
13747         * tests/test-pwrite.c: New file.
13748
13749         New module pwrite.
13750         * lib/unistd.in.h (pwrite): New declaration.
13751         * lib/pwrite.c: New file, from glibc with modifications.
13752         * m4/pwrite.m4: New file.
13753         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
13754         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
13755         REPLACE_PWRITE.
13756         * modules/pwrite: New file.
13757         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
13758         REPLACE_PWRITE.
13759         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
13760         * doc/posix-functions/pwrite.texi: Mention the new module.
13761
13762 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13763
13764         pread: Update documentation.
13765         * doc/posix-functions/pread.texi: Mention the 'pread' module.
13766
13767 2010-05-04  Eric Blake  <eblake@redhat.com>
13768
13769         docs: update cygwin progress
13770         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
13771         this bug.
13772         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
13773         Added in cygwin 1.7.2.
13774         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
13775         Likewise.
13776         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
13777         Likewise.
13778         * doc/glibc-functions/dup3.texi (dup3): Likewise.
13779         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13780         * doc/glibc-functions/accept4.texi (accept4): Likewise.
13781         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
13782         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
13783         Mention nproc module.
13784         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
13785         bug in cygwin 1.7.5 addition.
13786         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
13787         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
13788         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
13789         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
13790         1.7.5.
13791         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
13792         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
13793         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
13794         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
13795         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
13796         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
13797         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
13798         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
13799         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
13800         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
13801         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
13802         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
13803         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
13804         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
13805         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
13806         Likewise.
13807         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
13808         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
13809         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
13810         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
13811         Likewise.
13812         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
13813         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
13814         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
13815         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
13816         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
13817         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
13818         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
13819         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
13820         Likewise.
13821         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
13822         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
13823         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
13824         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
13825         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
13826         Likewise.
13827         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
13828         Likewise.
13829         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
13830         Likewise.
13831         * doc/glibc-functions/xdrrec_endofrecord.texi
13832         (xdrrec_endofrecord): Likewise.
13833         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
13834         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
13835         Likewise.
13836         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
13837         Likewise.
13838
13839 2010-05-04  Jim Meyering  <meyering@redhat.com>
13840
13841         gendocs.sh: make its "-s FILE" option more useful
13842         * build-aux/gendocs.sh: When honoring the -s FILE option, update
13843         $PACKAGE to reflect the probably-different basename of "FILE".
13844
13845 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13846
13847         bootstrap: don't ignore download_po_files failure
13848         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
13849         failure.
13850
13851 2010-05-03  Jim Meyering  <meyering@redhat.com>
13852
13853         maint.mk: allow to pass options to gendocs.sh
13854         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
13855         (gendocs_options_): New overridable variable.
13856
13857         gnu-web-doc-update: don't ignore configure or build failure
13858         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
13859
13860         announce-gen: backslash-escape '@'s in --help output
13861         * build-aux/announce-gen: Fix syntax errors.
13862
13863         maint.mk, announce-gen: allow project-specific announcement mail headers
13864         * top/maint.mk (translation_project_): Define default.
13865         (announcement_Cc_, announcement_mail_headers_): Likewise.
13866         (announcement): Invoke announce-gen with new --mail-headers option.
13867         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
13868
13869         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
13870         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
13871         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
13872         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
13873         line in the "err2" output file when running "make check" in verbose
13874         mode (i.e., with set -x enabled).
13875
13876 2010-05-03  Bruno Haible  <bruno@clisp.org>
13877
13878         wctob: Fix for weird platforms.
13879         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
13880         argument value.
13881
13882 2010-05-03  Jim Meyering  <meyering@redhat.com>
13883
13884         maint.mk: prohibit unwarranted use of <strings.h>
13885         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
13886         strings.h in a file that does not also use strcasecmp, strncasecmp,
13887         ffs or ffsll.
13888
13889         maint.mk: remove obsolete comments
13890         * top/maint.mk: Remove stale, commented-out rules.
13891
13892 2010-05-02  Bruno Haible  <bruno@clisp.org>
13893
13894         wcwidth: Declare also when it's aliased.
13895         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
13896         macro.
13897
13898 2010-05-02  Bruno Haible  <bruno@clisp.org>
13899
13900         Fix regression from 2010-04-25.
13901         * gnulib-tool (func_modules_transitive_closure): Check the status of
13902         all modules, not only of the tests that are of the form foo-tests where
13903         foo is a module.
13904
13905 2010-05-02  Bruno Haible  <bruno@clisp.org>
13906
13907         wctob: Work around nasty Cygwin 1.7.2 bug.
13908         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
13909         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
13910
13911 2010-05-01  Bruno Haible  <bruno@clisp.org>
13912
13913         fpurge: Sharper test.
13914         * tests/test-fpurge.c (main): Add one more ftell check.
13915         * modules/fpurge-tests (Depends-on): Add ftell.
13916         Suggested by Eric Blake.
13917
13918 2010-05-01  Bruno Haible  <bruno@clisp.org>
13919
13920         ftello: Another test.
13921         * tests/test-ftello3.c: New file.
13922         * modules/ftello-tests (Files): Add it.
13923         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13924         MOSTLYCLEANFILES.
13925
13926         ftell: Another test.
13927         * tests/test-ftell3.c: New file.
13928         * modules/ftell-tests (Files): Add it.
13929         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13930         MOSTLYCLEANFILES.
13931
13932 2010-05-01  Bruno Haible  <bruno@clisp.org>
13933
13934         ftell, ftello: Work around Solaris bug.
13935         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
13936         * lib/ftello.c: Include stdio-impl.h.
13937         (ftello): On Solaris, when _IOWRT is set, compute the result without
13938         looking at _IOREAD.
13939         * modules/ftello (Files): Add lib/stdio-impl.h.
13940         * doc/posix-functions/ftell.texi: Mention Solaris bug.
13941         * doc/posix-functions/ftello.texi: Likewise.
13942         Reported by Eric Blake.
13943
13944 2010-05-01  Bruno Haible  <bruno@clisp.org>
13945
13946         freading: Adapt to special meaning of _IOREAD flag on Solaris.
13947         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
13948         the _IOWRT flag is also set.
13949
13950 2010-05-01  Bruno Haible  <bruno@clisp.org>
13951
13952         Fix doc about a HP-UX stdio bug.
13953         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
13954         * doc/posix-functions/ftello.texi: Likewise.
13955
13956 2010-05-01  Bruno Haible  <bruno@clisp.org>
13957
13958         lseek test: Fix failure on Solaris.
13959         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
13960         output.
13961
13962 2010-04-30  Jim Meyering  <meyering@redhat.com>
13963
13964         bootstrap: don't ignore failure to generate po*/Makevars
13965         * build-aux/bootstrap (with_gettext): Don't ignore failure
13966         to create po/Makevars or runtime-po/Makevars.
13967
13968 2010-04-29  Eric Blake  <eblake@redhat.com>
13969
13970         headers: relax license to LGPLv2+
13971         * modules/fcntl-h (License): Relax license.
13972         * modules/getopt-posix (License): Likewise.
13973         * modules/locale (License): Likewise.
13974         * modules/math (License): Likewise.
13975         * modules/pty (License): Likewise.
13976         * modules/sched (License): Likewise.
13977         * modules/search (License): Likewise.
13978         * modules/spawn (License): Likewise.
13979         * modules/stdarg (License): Likewise.
13980         * modules/sysexits (License): Likewise.
13981
13982 2010-04-29  Jim Meyering  <meyering@redhat.com>
13983
13984         inttypes: relax license to LGPLv2+
13985         * modules/inttypes (License): Relax license.
13986
13987 2010-04-29  Simon Josefsson  <simon@josefsson.org>
13988
13989         * top/maint.mk (indent): Run twice to produce idempotent results.
13990
13991 2010-04-28  Bruno Haible  <bruno@clisp.org>
13992
13993         getdate: Generate getdate.c in the source directory.
13994         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
13995         MOSTLYCLEANFILES.
13996         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
13997
13998 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
13999
14000         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
14001         is not declared as a const *; avoid warnings in that case.
14002
14003 2010-04-28  Eric Blake  <eblake@redhat.com>
14004
14005         canonicalize-lgpl: avoid compiler warning
14006         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
14007         declaration' / 'extraneous semicolon' warning with some compilers.
14008         Reported by Andreas Gruenbacher.
14009
14010 2010-04-28  Jim Meyering  <meyering@redhat.com>
14011
14012         init.sh: ensure a more reliable exit status when exiting via trap
14013         * tests/init.sh (setup_): Don't rely on $? in signal handler.
14014         Inspired by patches from Dmitry V. Levin.
14015         Also trap on signal 3 (SIGQUIT).
14016
14017 2010-04-27  Bruno Haible  <bruno@clisp.org>
14018
14019         Update doc about utimes().
14020         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
14021         'utimens' module.
14022         Reported by Andreas Gruenbacher <agruen@suse.de>.
14023
14024 2010-04-27  Eric Blake  <eblake@redhat.com>
14025
14026         full-read, full-write: relax license
14027         * modules/full-read (License): Drop to LGPLv2+.
14028         * modules/full-write (License): Likewise.
14029         * modules/safe-read (License): Likewise.
14030         * modules/safe-write (License): Likewise.
14031
14032         pthread: mention library for linking
14033         * modules/pthread (Link): Mention $(LIB_PTHREAD).
14034
14035 2010-04-27  Jim Meyering  <meyering@redhat.com>
14036
14037         maint.mk: fix a bug introduced in last change
14038         * top/maint.mk (gl_assured_headers_): Now that all names are on
14039         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
14040         is not anchored to end of word, it should be adequate.
14041
14042         maint.mk: avoid side-effect in latest syntax-check
14043         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
14044         to run commands via $(shell...), and hence to incur cost only when
14045         the new rule is actually run.
14046
14047         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
14048         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
14049         and use that to create a regexp used to detect all #if HAVE_..._H uses.
14050         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
14051         (gl_assured_headers_, az_, AZ_): Define.
14052         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
14053
14054 2010-04-26  Jim Meyering  <jim@meyering.net>
14055             Bruno Haible  <bruno@clisp.org>
14056
14057         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
14058         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
14059         Prompted by an exchange with Gilles Espinasse.
14060
14061 2010-04-26  Jim Meyering  <meyering@redhat.com>
14062
14063         git-version-gen: aesthetic tweak
14064         * build-aux/git-version-gen: Use "$nl" rather than a literal,
14065         so that the command remains on a single line.
14066
14067 2010-04-26  Eric Blake  <eblake@redhat.com>
14068
14069         git-version-gen: allow use on EBCDIC hosts
14070         * build-aux/git-version-gen (dirty): Use literal rather than tying
14071         ourselves to ascii.
14072         Reported by Steve Goetze.
14073
14074 2010-04-25  Bruno Haible  <bruno@clisp.org>
14075
14076         netdb: Add support for GNULIB_POSIXCHECK.
14077         * lib/netdb.in.h: Include warn-on-use.h.
14078         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
14079         functions are used when GNULIB_POSIXCHECK is defined and the
14080         getaddrinfo module is not in use.
14081         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
14082         freeaddrinfo, gai_strerror, getnameinfo are declared.
14083         * modules/netdb (Depends-on): Add warn-on-use.
14084         (Makefile.am): Include warn-on-use.h in netdb.h.
14085
14086 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
14087
14088         build: avoid "make check" failure without .git/ directory
14089         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
14090         there is no .git/ directory.
14091
14092 2010-04-25  Bruno Haible  <bruno@clisp.org>
14093
14094         ptsname: Fix misuse of ttyname_r.
14095         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
14096         of errno.
14097
14098 2010-04-25  Bruno Haible  <bruno@clisp.org>
14099
14100         ttyname_r: Make it work on Solaris 10.
14101         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
14102         if the system function has the POSIX declaration. Test whether the
14103         function fails if the buffer is less than 128 bytes large.
14104         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
14105         system's ttyname_r function. Provide a reasonably large buffer.
14106         * modules/ttyname_r (Depends-on): Add extensions.
14107         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
14108
14109 2010-04-25  Bruno Haible  <bruno@clisp.org>
14110
14111         Use the 'extensions' module for some more functions on Solaris.
14112         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
14113         module.
14114         * doc/posix-functions/ctime_r.texi: Likewise.
14115         * doc/posix-functions/getgrgid_r.texi: Likewise.
14116         * doc/posix-functions/getgrnam_r.texi: Likewise.
14117         * doc/posix-functions/getpwnam_r.texi: Likewise.
14118         * doc/posix-functions/getpwuid_r.texi: Likewise.
14119         * doc/posix-functions/readdir_r.texi: Likewise.
14120         * doc/posix-functions/sigwait.texi: Likewise.
14121         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
14122         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
14123
14124 2010-04-25  Bruno Haible  <bruno@clisp.org>
14125
14126         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
14127         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
14128         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
14129         * lib/ttyname_r.c: Include <limits.h>.
14130         (ttyname_r): Define using the system's ttyname_r function, if it exists
14131         and not on Solaris.
14132         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
14133         set.
14134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
14135         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
14136         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
14137         Reported by Simon Josefsson.
14138
14139 2010-04-25  Bruno Haible  <bruno@clisp.org>
14140
14141         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
14142         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
14143         * doc/posix-functions/ctime_r.texi: Likewise.
14144         * doc/posix-functions/getgrgid_r.texi: Likewise.
14145         * doc/posix-functions/getgrnam_r.texi: Likewise.
14146         * doc/posix-functions/getlogin_r.texi: Likewise.
14147         * doc/posix-functions/getpwnam_r.texi: Likewise.
14148         * doc/posix-functions/getpwuid_r.texi: Likewise.
14149         * doc/posix-functions/readdir_r.texi: Likewise.
14150         * doc/posix-functions/sigwait.texi: Likewise.
14151         * doc/posix-functions/ttyname_r.texi: Likewise.
14152         Reported by Simon Josefsson.
14153
14154 2010-04-25  Bruno Haible  <bruno@clisp.org>
14155
14156         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
14157         * gnulib-tool (func_usage): Document that --with-*-tests options apply
14158         also to --create-testdir.
14159         (func_acceptable): Don't consider the status of *-tests modules here.
14160         (func_modules_transitive_closure): Consider it here, before including a
14161         test module.
14162         (func_import, func_create_testdir): Set inc_all_direct_tests,
14163         inc_all_indirect_tests.
14164         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
14165         --create-testdir and --create-megatestdir.
14166
14167 2010-04-25  Bruno Haible  <bruno@clisp.org>
14168
14169         gnulib-tool: Add --without-*-tests options.
14170         * gnulib-tool (func_usage): Document the --without-*-tests options.
14171         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
14172         excl_unportable_tests): New variables.
14173         Fail if they are specified with --import or --update.
14174         (func_acceptable): Respect the excl_*_tests variables.
14175         (func_import): Set the excl_*_tests variables to empty.
14176
14177 2010-04-25  Simon Josefsson  <simon@josefsson.org>
14178             Bruno Haible  <bruno@clisp.org>
14179
14180         Work around a MacOS X 10.4 bug with openpty.
14181         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
14182         * tests/test-openpty.c (main): Close the master side explicitly.
14183
14184 2010-04-25  Bruno Haible  <bruno@clisp.org>
14185
14186         strnlen: Fix a C++ test error on MacOS X and Solaris.
14187         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
14188         the function is not declared.
14189         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
14190         Simon Josefsson.
14191
14192 2010-04-24  Bruno Haible  <bruno@clisp.org>
14193
14194         Avoid a gcc warning.
14195         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
14196         of correct type for %08lx directive.
14197         Reported by Eric Blake.
14198
14199 2010-04-24  Bruno Haible  <bruno@clisp.org>
14200
14201         vasnprintf: Correct errno value in case of out-of-memory.
14202         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
14203         or sprintf. Use the errno value from SNPRINTF or sprintf.
14204         Reported by Ian Beckwith <ianb@erislabs.net>.
14205
14206 2010-04-24  Bruno Haible  <bruno@clisp.org>
14207
14208         ansi-c++-opt: Find correct compiler when cross-compiling.
14209         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
14210         AC_CHECK_PROGS.
14211         Reported by Simon Josefsson.
14212
14213 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
14214
14215         vc-list-files: Add support for subversion
14216         * build-aux/vc-list-files: Use "svn list" to generate the list of
14217         files controlled by subversion.
14218
14219 2010-04-23  Jim Meyering  <meyering@redhat.com>
14220
14221         vc-list-files tests: convert to use init.sh
14222         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
14223         path_prepend_.
14224         Use Exit, not exit.
14225         Use skip_ rather than open coding it.
14226         Remove trap set-up and compare definitions.
14227         * tests/test-vc-list-files-git.sh: Likewise.
14228         * modules/vc-list-files-tests (Files): Add tests/init.sh.
14229
14230 2010-04-22  Simon Josefsson  <simon@josefsson.org>
14231
14232         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
14233         backup files.
14234
14235 2010-04-21  Simon Josefsson  <simon@josefsson.org>
14236
14237         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
14238
14239 2010-04-20  Eric Blake  <eblake@redhat.com>
14240
14241         tests: be robust to ignored SIGPIPE
14242         * tests/test-select-in.sh: Consume all output.
14243         * tests/test-lseek.sh: Check correct exit status, while avoiding
14244         EPIPE.
14245
14246 2010-04-20  Simon Josefsson  <simon@josefsson.org>
14247             Bruno Haible  <bruno@clisp.org>
14248
14249         visibility: Don't use -fvisibility if it leads to a warning.
14250         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
14251         yes, don't pretend that visibility works if it leads to a warning.
14252         Reported by Mike Gran <spk121@yahoo.com>.
14253
14254 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
14255
14256         * build-aux/bootstrap: Use "git -h" for testing for supported options
14257         instead of "git --help".  The short-form option only shows a summary,
14258         and doesn't layout the full man page.  Grep for the full option name
14259         in the summary, too.
14260
14261 2010-04-19  Bruno Haible  <bruno@clisp.org>
14262
14263         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
14264         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
14265         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
14266         mention of RELOCATABLE_STRIP.
14267         Reported by Sylvain Beucler <beuc@beuc.net>.
14268
14269 2010-04-19  Bruno Haible  <bruno@clisp.org>
14270
14271         * lib/diffseq.h: Fix typo in comment.
14272         Reported by Eric Blake.
14273
14274 2010-04-19  Bruno Haible  <bruno@clisp.org>
14275
14276         ioctl: Move autoconf macro to a .m4 file.
14277         * m4/ioctl.m4: New file, extracted from modules/ioctl.
14278         * modules/ioctl (Files): Add it.
14279         (configure.ac): Simply invoke gl_FUNC_IOCTL.
14280         Reported by Ian Beckwith <ianb@erislabs.net>.
14281
14282 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
14283             Bruno Haible  <bruno@clisp.org>
14284
14285         diffseq: Accommodate use-case with abstract arrays.
14286         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
14287         is not defined.
14288         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
14289         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
14290
14291 2010-04-18  Bruno Haible  <bruno@clisp.org>
14292
14293         * doc/posix-headers/stdbool.texi: More precise wording.
14294
14295 2010-04-17  Jim Meyering  <meyering@redhat.com>
14296
14297         maint.mk: use gnu-style indentation in an embedded perl script
14298         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
14299         Rename variable: s/two/last_two_bytes/
14300
14301 2010-04-16  Eric Blake  <eblake@redhat.com>
14302
14303         test-stdbool: skip test that fails with Solaris CC
14304         * tests/test-stdbool.c (f): Skip test that causes compilation
14305         error under buggy C++ compiler.
14306         * lib/stdbool.in.h: Document the limitation.
14307         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
14308
14309         setenv: allow compilation with C++
14310         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
14311         register keyword.
14312
14313         stdint: allow test to pass with C++
14314         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
14315
14316         getopt: allow compilation with C++
14317         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
14318         struct.
14319         * lib/getopt.c (_getopt_internal_r): Use correct type.
14320         Reported by Dagobert Michelson, via Joel E. Denny.
14321
14322 2010-04-16  Bruno Haible  <bruno@clisp.org>
14323
14324         Override netdb.h always.
14325         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
14326         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
14327         Reported by Ludovic Courtès <ludo@gnu.org>.
14328
14329 2010-04-15  Bruno Haible  <bruno@clisp.org>
14330
14331         openpty: Fix mistake from 2010-03-21.
14332         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
14333         Reported by Simon Josefsson.
14334
14335 2010-04-15  Eric Blake  <eblake@redhat.com>
14336
14337         test-forkpty: fix expected signature
14338         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
14339         Reported by Simon Josefsson.
14340
14341 2010-04-15  Jim Meyering  <meyering@redhat.com>
14342
14343         maint.mk: texinfo_suffix_re_: correct the default regexp
14344         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
14345
14346         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
14347         make it configurable via texinfo_suffix_re_.
14348
14349 2010-04-14  Eric Blake  <eblake@redhat.com>
14350
14351         strtok_r: relax license to LGPLv2+
14352         * modules/strtok_r (License): Relax license.
14353         Reported by Matthias Bolte.
14354
14355 2010-04-14  Simon Josefsson  <simon@josefsson.org>
14356
14357         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
14358         version 1.4.4 by default instead of requiring the libgcrypt
14359         version used during build.  This makes it possible to use the
14360         application with older but still binary compatible libgcrypt
14361         versions.
14362
14363 2010-04-13  Eric Blake  <eblake@redhat.com>
14364
14365         getopt-gnu: match recent glibc fixes and posix ruling
14366         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
14367         '+' handling, when requesting extensions.
14368         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
14369         'W;' handling.
14370         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
14371         * doc/posix-functions/getopt.texi (getopt): Document this.
14372         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14373         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14374         Likewise.
14375
14376         getopt: merge bug fixes from glibc
14377         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
14378         diagnostics.  Honor '+:' correctly.  Reject ';'.
14379
14380         getopt-posix: detect MacOS bug
14381         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
14382         optind when missing a required argument.
14383         * doc/posix-functions/getopt.texi (getopt): Document the bug.
14384         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14385         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14386         Likewise.
14387
14388         getopt-posix: avoid spurious failure on Solaris
14389         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
14390         an indicator that setting optind=1 is sufficient for reset.
14391
14392         getopt-posix: avoid spurious failure on FreeBSD
14393         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
14394         in POSIX mode, since the m4 test uses it.
14395
14396         gnulib-tool: silence warning on BSD sh
14397         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
14398
14399 2010-04-13  Jim Meyering  <meyering@redhat.com>
14400
14401         doc: users.txt: GNU patch now uses gnulib
14402         * users.txt: Add patch.
14403
14404 2010-04-12  Jim Meyering  <meyering@redhat.com>
14405
14406         maint.mk: generate more concise timing data for syntax-check rules
14407         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
14408         " done" from each line that reports a syntax-check test duration.
14409
14410 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
14411
14412         git-version-gen: use "git update-index..." rather than "git status"
14413         * build-aux/git-version-gen: Use git update-index --refresh, not
14414         "git status".  With some versions of git, "git status" would fail
14415         to update the index and result in an unwarranted "-dirty" suffix.
14416
14417 2010-04-11  Jim Meyering  <meyering@redhat.com>
14418
14419         openat: correct formatting (no semantic change)
14420         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
14421         Suggested by Bruno Haible.
14422
14423 2010-04-11  Bruno Haible  <bruno@clisp.org>
14424
14425         Stricter declaration checking in testdirs.
14426         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14427         If for_tests is true, augment AM_CPPFLAGS to define
14428         GNULIB_STRICT_CHECKING.
14429         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
14430         GNULIB_STRICT_CHECKING is defined, verify that the function is
14431         declared.
14432
14433 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
14434             Bruno Haible  <bruno@clisp.org>
14435
14436         libunistring: Improve configure output.
14437         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
14438         Don't say "consider installing GNU libunistring" when checking again
14439         with libiconv.
14440
14441 2010-04-11  Bruno Haible  <bruno@clisp.org>
14442
14443         libunistring: Correct value of $LTLIBUNISTRING.
14444         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
14445         correct the value of $LTLIBUNISTRING.
14446
14447 2010-04-11  Bruno Haible  <bruno@clisp.org>
14448
14449         havelib: Add static libraries to LIBS in the right order.
14450         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
14451         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
14452
14453 2010-04-11  Bruno Haible  <bruno@clisp.org>
14454
14455         libunistring: Detect libunistring also when it depends on libiconv.
14456         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
14457         the second AC_LIB_HAVE_LINKFLAGS invocation.
14458
14459 2010-04-11  James Youngman  <jay@gnu.org>
14460
14461         close-stream: declare local scalars to be "const"
14462         * lib/close-stream.c (close_stream): Make boolean variables const
14463         to document the fact that we set but do not change them.
14464
14465 2010-04-11  Bruno Haible  <bruno@clisp.org>
14466
14467         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
14468
14469 2010-04-11  Jim Meyering  <meyering@redhat.com>
14470
14471         maint.mk: don't include dist-check.mk
14472         * top/maint.mk: Remove bogus include directive.
14473
14474         maint.mk: improve empty-line-at-EOF check
14475         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
14476         solution, rather than tail+Perl-based one.  The latter would read
14477         a few kilobytes from the end of each file, and did not handle empty
14478         files properly.
14479
14480         maint.mk: print the elapsed time for each syntax-check rule
14481         * top/maint.mk (sc_m_rules_): Save start time in a file.
14482         (sc_z_rules_): New rules: remove temp file and print elapsed time.
14483         (local-check): Interpose the .z rules
14484
14485 2010-04-11  Jim Meyering  <meyering@redhat.com>
14486
14487         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
14488         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
14489         empty file with one that ends in an empty line.
14490
14491 2010-04-10  Bruno Haible  <bruno@clisp.org>
14492
14493         mkdir: Make it work on mingw64.
14494         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
14495         * lib/mkdir.c: Update comment.
14496         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
14497
14498 2010-04-10  Bruno Haible  <bruno@clisp.org>
14499
14500         Don't override improved macro from newer autoconf.
14501         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
14502         autoconf >= 2.62.
14503         Reported by Joel E. Denny <jdenny@clemson.edu>.
14504
14505 2010-04-10  Jim Meyering  <meyering@redhat.com>
14506
14507         maint.mk: new syntax-check rule: prohibit empty lines at end of file
14508         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
14509
14510         maint.mk: correct a diagnostic
14511         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
14512         in diagnostic; now use $prohibit.
14513
14514 2010-04-10  Bruno Haible  <address@hidden>
14515
14516         fchownat: Fix a C++ test error on Solaris 8.
14517         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
14518         the function does not exist.
14519
14520 2010-04-10  Bruno Haible  <bruno@clisp.org>
14521
14522         vasnprintf: Add more tests.
14523         * tests/test-vasnprintf-posix.c: Include <errno.h>.
14524         (test_function): Test converting an invalid wide string.
14525
14526         vasnprintf: Correct handling of unconvertible wide string arguments.
14527         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
14528         VASNPRINTF.
14529         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
14530         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
14531         smaller than the expected maximum need for the directive. Set errno to
14532         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
14533         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
14534         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
14535         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
14536         * modules/vasnprintf (Files): Add m4/printf.m4.
14537         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14538
14539 2010-04-10  Bruno Haible  <bruno@clisp.org>
14540
14541         vasnprintf: Fix crash in %ls directive.
14542         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
14543         string is passed as argument to %ls, with no precision and no width.
14544         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14545
14546 2010-04-10  Bruno Haible  <bruno@clisp.org>
14547
14548         vasnprintf: Fix multiple test failures on mingw.
14549         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
14550         _snprintf, or snwprintf, not _snwprintf.
14551
14552 2010-04-10  Bruno Haible  <bruno@clisp.org>
14553
14554         write: Fix a C++ test error on mingw.
14555         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
14556
14557 2010-04-10  Bruno Haible  <bruno@clisp.org>
14558
14559         vasnprintf test: Reduce code duplication.
14560         * tests/test-vasnprintf.c (test_function): New function, extracted from
14561         test_vasnprintf.
14562         (test_vasnprintf, test_asnprintf): Invoke it.
14563
14564 2010-04-10  Bruno Haible  <bruno@clisp.org>
14565
14566         strnlen: Fix warning in C++ mode on MacOS X.
14567         * lib/string.in.h (strnlen): Use the modern idiom.
14568         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
14569         defining strnlen as a macro already in <config.h>.
14570         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14571         REPLACE_STRNLEN.
14572         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
14573         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14574
14575 2010-04-08  James Youngman  <jay@gnu.org>
14576
14577         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
14578         the example.
14579
14580 2010-04-09  Jim Meyering  <meyering@redhat.com>
14581
14582         maint.mk: print better diagnostic when there is no $(_hv_file)
14583         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
14584         announce that when $(_hv_file) (aka help-version) does not exist.
14585
14586         init.sh: run tr in the "C" locale to avoid multibyte interpretation
14587         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
14588         not try to interpret its random input bytes.  Jarno Rajahalme reported
14589         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
14590         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
14591         (mktempd_): Likewise, just in case.
14592
14593         ftruncate: add two years to projected module removal date: 2012
14594         * m4/ftruncate.m4: Adjust comments.
14595
14596         ftruncate: mark module as obsolete; even MinGW provides it, now
14597         * modules/ftruncate (Status): Obsolete.
14598         (Notice): Say that.
14599         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
14600         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
14601
14602 2010-04-08  Bruno Haible  <bruno@clisp.org>
14603
14604         Fix side effects from tests-related modules.
14605         * modules/dprintf-posix (Comment): New section.
14606         * modules/fprintf-posix (Comment): Likewise.
14607         * modules/obstack-printf-posix (Comment): Likewise.
14608         * modules/printf-posix (Comment): Likewise.
14609         * modules/snprintf-posix (Comment): Likewise.
14610         * modules/sprintf-posix (Comment): Likewise.
14611         * modules/vasnprintf-posix (Comment): Likewise.
14612         * modules/vasprintf-posix (Comment): Likewise.
14613         * modules/vdprintf-posix (Comment): Likewise.
14614         * modules/vfprintf-posix (Comment): Likewise.
14615         * modules/vprintf-posix (Comment): Likewise.
14616         * modules/vsnprintf-posix (Comment): Likewise.
14617         * modules/vsprintf-posix (Comment): Likewise.
14618         * modules/xprintf-posix (Comment): Likewise.
14619         * modules/xvasprintf-posix (Comment): Likewise.
14620         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
14621         * modules/floorf-tests (Depends-on): Likewise.
14622         * modules/round-tests (Depends-on): Likewise.
14623         * modules/roundf-tests (Depends-on): Likewise.
14624         * modules/trunc-tests (Depends-on): Likewise.
14625         * modules/truncf-tests (Depends-on): Likewise.
14626         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
14627         'fprintf-posix' module is not present.
14628         * tests/test-floorf2.c (check): Likewise.
14629         * tests/test-trunc2.c (check): Likewise.
14630         * tests/test-truncf2.c (check): Likewise.
14631         * tests/test-round2.c (equal): Likewise.
14632         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14633
14634 2010-04-07  Karl Berry  <karl@gnu.org>
14635
14636         * config/srclist.txt,
14637         * config/srclistvars.sh,
14638         * config/srclist-update: doc fixes.
14639
14640 2010-04-07  Jim Meyering  <meyering@redhat.com>
14641
14642         maint.mk: add a PATH crosschecking syntax-check rule
14643         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
14644         Useful if you use a test like the one in help-version (coreutils,
14645         diffutils, grep, gzip) that ensures $(VERSION) matches what is
14646         printed by prog --version.
14647
14648 2010-04-06  Bruno Haible  <bruno@clisp.org>
14649
14650         Fix link error on mingw.
14651         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
14652         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
14653
14654 2010-04-06  Bruno Haible  <bruno@clisp.org>
14655
14656         Assume rmdir exists.
14657         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
14658
14659 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
14660
14661         doc: update users.txt
14662         * users.txt: Add gcal.
14663
14664 2010-04-06  Jim Meyering  <meyering@redhat.com>
14665
14666         init.sh: simply unset TMPDIR rather than risking env -i
14667         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
14668         although it probably works fine on all Unix-based systems, some
14669         systems (Cygwin?) cannot tolerate a totally cleared environment.
14670         Suggestion from Eric Blake.
14671
14672 2010-04-06  Jim Meyering  <meyering@redhat.com>
14673
14674         init.sh: portability fix: use env's POSIX-specified -i option not -u
14675         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
14676         than unportable env -u.  Solaris 5.11's env lacks support for -u.
14677
14678 2010-04-05  Bruno Haible  <bruno@clisp.org>
14679
14680         btowc: Work around Cygwin 1.7.2 bug.
14681         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
14682         does not map NUL to 0.
14683         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
14684
14685 2010-04-05  Bruno Haible  <bruno@clisp.org>
14686
14687         Make the multithread modules work on Cygwin 1.7.2.
14688         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
14689         imported symbols can be declared weak, so that it returns "no" on
14690         Cygwin 1.7.2.
14691
14692 2010-04-05  Bruno Haible  <bruno@clisp.org>
14693
14694         Use the module 'strncat'.
14695         * modules/unistr/u8-strncat (Depends-on): Add strncat.
14696
14697         Tests for module 'strncat'.
14698         * modules/strncat-tests: New file.
14699         * tests/test-strncat.c: New file.
14700
14701         New module 'strncat'.
14702         * lib/string.in.h (strncat): New declaration.
14703         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
14704         * m4/strncat.m4: New file, based on m4/memchr.m4.
14705         * modules/strncat: New file.
14706         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
14707         is declared.
14708         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
14709         REPLACE_STRNCAT.
14710         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
14711         REPLACE_STRNCAT.
14712         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
14713         module.
14714         * tests/test-string-c++.cc: Check signature of strncat.
14715
14716 2010-04-05  Jim Meyering  <meyering@redhat.com>
14717
14718         xstrtoumax-tests: convert to use init.sh
14719         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
14720         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14721         Use Exit, not exit.
14722         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14723
14724         xstrtoimax-tests: convert to use init.sh
14725         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
14726         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14727         Use Exit, not exit.
14728         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14729
14730 2010-04-05  Bruno Haible  <bruno@clisp.org>
14731
14732         sys_socket: Avoid #define replacements in C++ mode.
14733         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
14734         warning to the function if possible, rather than #defining the symbol
14735         to a dysfunctional alias.
14736
14737 2010-04-05  Bruno Haible  <bruno@clisp.org>
14738
14739         fseeko: Fix C++ test error on mingw.
14740         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
14741         gl_FUNC_FSEEKO.
14742         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
14743         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
14744         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
14745         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
14746
14747 2010-04-05  Bruno Haible  <bruno@clisp.org>
14748
14749         duplocale: Improve test output.
14750         * tests/test-duplocale.c (main): Print reason for skipped test.
14751
14752 2010-04-05  Bruno Haible  <bruno@clisp.org>
14753
14754         Assume rmdir exists.
14755         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
14756         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
14757
14758 2010-04-05  Bruno Haible  <bruno@clisp.org>
14759
14760         Fix link error on Solaris 8 with cc.
14761         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
14762
14763 2010-04-05  Bruno Haible  <bruno@clisp.org>
14764
14765         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14766         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
14767
14768 2010-04-05  Bruno Haible  <bruno@clisp.org>
14769
14770         vasprintf: Update documentation.
14771         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
14772
14773 2010-04-05  Bruno Haible  <bruno@clisp.org>
14774
14775         ptsname: Improve test.
14776         * tests/test-ptsname.c (main): Also try the various master names of BSD
14777         systems.
14778
14779 2010-04-05  Bruno Haible  <bruno@clisp.org>
14780
14781         memchr: Avoid a possible C++ test error.
14782         * lib/string.in.h (memchr): Provide declaration if function is missing.
14783         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
14784         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
14785         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
14786         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
14787
14788 2010-04-05  Bruno Haible  <bruno@clisp.org>
14789
14790         strtok_r: Improve idiom.
14791         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
14792         AC_LIBOBJ is used.
14793
14794 2010-04-05  Bruno Haible  <bruno@clisp.org>
14795
14796         strdup: Improve idiom.
14797         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
14798         AC_LIBOBJ is used.
14799         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
14800         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
14801         when AC_LIBOBJ is used.
14802
14803 2010-04-05  Bruno Haible  <bruno@clisp.org>
14804
14805         mbsinit, mbrtowc, wcrtomb: Improve idioms.
14806         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
14807         don't set REPLACE_MBSINIT to 1.
14808         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
14809         don't set REPLACE_MBRTOWC to 1.
14810         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
14811         exist, don't set REPLACE_MBSRTOWCS to 1.
14812         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
14813         exist, don't set REPLACE_MBSNRTOWCS to 1.
14814         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
14815         don't set REPLACE_WCRTOMB to 1.
14816         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
14817         exist, don't set REPLACE_WCSRTOMBS to 1.
14818         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
14819         exist, don't set REPLACE_WCSNRTOMBS to 1.
14820
14821 2010-04-05  Bruno Haible  <bruno@clisp.org>
14822
14823         ldexpl: Improve idiom.
14824         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
14825         make sure to set HAVE_DECL_LDEXPL to 0.
14826
14827 2010-04-05  Jim Meyering  <meyering@redhat.com>
14828
14829         xstrtol-tests: convert to use init.sh
14830         * modules/xstrtol-tests (Files): Add tests/init.sh.
14831         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14832         Use Exit, not exit.
14833         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14834
14835         atexit-tests: convert to use init.sh
14836         * modules/atexit-tests (Files): Add tests/init.sh.
14837         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14838         Use Exit, not exit.
14839         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14840
14841         init.sh: fix typo
14842         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
14843
14844         init.sh: make it easier for a test script to write to the tty, ...
14845         when using automake's parallel-tests mode.
14846         * tests/init.sh (stderr_fileno_): Define overridable variable.
14847         (warn_): New function, to use it.
14848         (fail_, skip_, framework_failure_): Use warn_.
14849
14850 2010-04-04  Bruno Haible  <bruno@clisp.org>
14851
14852         btowc: Avoid warning.
14853         * lib/btowc.c: Include <stdlib.h>.
14854         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
14855
14856 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14857             Bruno Haible  <bruno@clisp.org>
14858
14859         wchar: Port to NetBSD 1.5.
14860         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
14861         * lib/wctype.in.h (WEOF): Likewise.
14862
14863 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14864             Bruno Haible  <bruno@clisp.org>
14865
14866         Port extended stdio to NetBSD 1.5.
14867         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
14868         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
14869         older.
14870
14871 2010-04-04  Bruno Haible  <bruno@clisp.org>
14872
14873         string: Remove unused substitution.
14874         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14875         HAVE_DECL_STRERROR.
14876         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
14877
14878 2010-04-04  Bruno Haible  <bruno@clisp.org>
14879
14880         strtod: Avoid a possible C++ test error.
14881         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
14882         set REPLACE_STRTOD.
14883
14884 2010-04-04  Bruno Haible  <bruno@clisp.org>
14885
14886         strerror: Update documentation.
14887         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
14888
14889 2010-04-04  Bruno Haible  <bruno@clisp.org>
14890
14891         stdio: Fix some C++ test errors on Solaris 8 with GCC.
14892         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
14893         _GL_CXXALIAS_SYS_CAST.
14894
14895 2010-04-04  Bruno Haible  <bruno@clisp.org>
14896
14897         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14898         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
14899         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
14900         REPLACE_FREXPL to 1.
14901         * doc/posix-functions/frexpl.texi: Update documentation.
14902
14903 2010-04-04  Bruno Haible  <bruno@clisp.org>
14904
14905         math: Fix some C++ test errors on Solaris 8 and Cygwin.
14906         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
14907
14908 2010-04-04  Bruno Haible  <bruno@clisp.org>
14909
14910         Implement nanosleep for native Windows.
14911         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
14912
14913 2010-04-04  Bruno Haible  <bruno@clisp.org>
14914
14915         math: Fix some C++ test errors on Solaris 8.
14916         * lib/math.in.h (truncf, trunc): Use simpler idiom.
14917
14918 2010-04-04  Bruno Haible  <bruno@clisp.org>
14919
14920         math: Fix some C++ test errors on Cygwin.
14921         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
14922         truncl): Provide declaration if the system does not have it.
14923         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
14924         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
14925         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
14926         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
14927         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
14928         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
14929         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
14930         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
14931         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
14932         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
14933         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
14934         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
14935         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
14936         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
14937         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
14938         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
14939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
14940         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14941         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14942         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
14943         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14944         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14945
14946 2010-04-04  Bruno Haible  <bruno@clisp.org>
14947
14948         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
14949         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14950         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14951         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14952         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14953         * m4/isinf.m4 (gl_ISINF): Likewise.
14954         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14955
14956 2010-04-04  Bruno Haible  <bruno@clisp.org>
14957
14958         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
14959         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14960
14961 2010-04-04  Bruno Haible  <bruno@clisp.org>
14962
14963         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
14964         * modules/tmpfile (configure.ac): Update.
14965
14966         tmpfile: Fix C++ test error on mingw.
14967         * lib/stdio.in.h (tmpfile): New declaration.
14968         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
14969         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
14970         * modules/tmpfile (Depends-on): Add stdio.
14971         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14972         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
14973         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
14974         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
14975         REPLACE_TMPFILE.
14976         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
14977
14978 2010-04-04  Bruno Haible  <bruno@clisp.org>
14979
14980         ioctl: Fix C++ test error on mingw.
14981         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
14982         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
14983         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
14984
14985 2010-04-03  Bruno Haible  <bruno@clisp.org>
14986
14987         wcwidth: Fix C++ test error on mingw.
14988         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
14989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
14990         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
14991
14992 2010-04-03  Bruno Haible  <bruno@clisp.org>
14993
14994         nanosleep: Fix C++ test error on mingw.
14995         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
14996         * lib/time.in.h (nanosleep): Use modern idiom.
14997         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
14998         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
14999         REPLACE_NANOSLEEP to 1.
15000         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
15001         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
15002
15003 2010-04-03  Bruno Haible  <bruno@clisp.org>
15004
15005         strptime: Fix C++ test error on mingw.
15006         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
15007         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
15008         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
15009         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
15010         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
15011         not REPLACE_STRPTIME.
15012         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
15013         REPLACE_STRPTIME.
15014
15015 2010-04-03  Bruno Haible  <bruno@clisp.org>
15016
15017         timegm: Fix C++ test error on mingw.
15018         * lib/time.in.h (timegm): Use modern idiom.
15019         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
15020         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
15021         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
15022         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
15023
15024 2010-04-03  Bruno Haible  <bruno@clisp.org>
15025
15026         timegm: Assume declaration if function exists.
15027         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
15028         if it exists. Don't clobber ac_cv_func_timegm.
15029
15030 2010-04-03  Bruno Haible  <bruno@clisp.org>
15031
15032         time_r: Fix C++ test error on mingw.
15033         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
15034         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
15035         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
15036         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
15037         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
15038
15039 2010-04-03  Bruno Haible  <bruno@clisp.org>
15040
15041         time_r: Minor updates.
15042         * modules/time_r (Description): Mention the provided functions.
15043         * lib/time_r.c: Don't include <string.h>.
15044         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
15045         * doc/posix-functions/localtime_r.texi: Likewise.
15046
15047 2010-04-03  Bruno Haible  <bruno@clisp.org>
15048
15049         time: Fix regression introduced on 2010-03-08.
15050         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
15051         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
15052
15053 2010-04-03  Jim Meyering  <meyering@redhat.com>
15054
15055         maint.mk: don't silently disable project-specific syntax-check rules
15056         * top/maint.mk (_prohibit_regexp): Define, to help people realize
15057         that they need to convert their project-specific syntax-check rules
15058         to use the new _sc_search_regexp.
15059
15060 2010-04-03  Bruno Haible  <bruno@clisp.org>
15061
15062         fchdir: Fix regression introduced on 2010-03-08.
15063         * lib/unistd.in.h (fchdir): Fix declaration.
15064         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
15065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
15066         REPLACE_FCHDIR.
15067         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
15068         REPLACE_FCHDIR.
15069
15070 2010-04-03  Bruno Haible  <bruno@clisp.org>
15071
15072         getpagesize: Fix C++ test error on mingw.
15073         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
15074         system does not declare the function.
15075         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
15076         declared.
15077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15078         HAVE_DECL_GETPAGESIZE.
15079         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
15080
15081 2010-04-03  Bruno Haible  <bruno@clisp.org>
15082
15083         stdio: Make C++ tests work on mingw.
15084         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
15085         does not declare the function.
15086
15087 2010-04-03  Bruno Haible  <bruno@clisp.org>
15088
15089         ftello: Fix C++ test error on mingw.
15090         * lib/stdio.in.h (ftello): Use modern idiom.
15091         * lib/ftello.c (ftello): Renamed from rpl_ftello.
15092         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
15093         is missing and that it needs to be replaced.
15094         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
15095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
15096         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
15097
15098 2010-04-03  Bruno Haible  <bruno@clisp.org>
15099
15100         fseeko: Fix C++ test error on mingw.
15101         * lib/stdio.in.h (fseeko): Use modern idiom.
15102         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
15103         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
15104         is missing and that it needs to be replaced.
15105         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
15106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
15107         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
15108
15109 2010-04-03  Bruno Haible  <bruno@clisp.org>
15110
15111         mkstemp: Fix C++ test error on mingw.
15112         * lib/stdlib.in.h (mkstemp): Use modern idiom.
15113         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
15114         function is missing and that it needs to be replaced.
15115         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
15116         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
15117
15118 2010-04-03  Bruno Haible  <bruno@clisp.org>
15119
15120         stpncpy: Fix C++ test error on mingw.
15121         * lib/string.in.h (stpncpy): Use modern idiom.
15122         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
15123         function is missing and that it needs to be replaced.
15124         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15125         REPLACE_STPNCPY.
15126         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
15127
15128 2010-04-03  Bruno Haible  <bruno@clisp.org>
15129
15130         sys_stat: Fix C++ test error on mingw.
15131         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
15132         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
15133
15134 2010-04-03  Bruno Haible  <bruno@clisp.org>
15135
15136         pty: Update doc.
15137         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
15138
15139 2010-04-03  Bruno Haible  <bruno@clisp.org>
15140
15141         unistd: Fix C++ test error on mingw.
15142         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
15143
15144 2010-04-03  Bruno Haible  <bruno@clisp.org>
15145
15146         Update doc regarding mingw.
15147         * doc/glibc-functions/openpty.texi: Update regarding mingw.
15148         * doc/glibc-functions/login_tty.texi: Likewise.
15149         * doc/glibc-functions/forkpty.texi: Likewise.
15150
15151 2010-04-03  Bruno Haible  <bruno@clisp.org>
15152
15153         stdlib: Avoid compilation failure of c-strtold on mingw.
15154         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
15155
15156 2010-04-03  Bruno Haible  <bruno@clisp.org>
15157
15158         locale: Make C++ tests work on Cygwin and mingw.
15159         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
15160         cannot provide the function.
15161         Reported by Simon Josefsson.
15162
15163 2010-04-03  Bruno Haible  <bruno@clisp.org>
15164
15165         localename: Port to MacOS X 10.6.
15166         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
15167         memory layout of the locales in MacOS X 10.6 as well.
15168         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
15169
15170 2010-04-02  Bruno Haible  <bruno@clisp.org>
15171
15172         gnulib-tool: Ensure that long-running tests are executed last.
15173         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
15174         running tests after the one for the other tests.
15175
15176 2010-04-02  Bruno Haible  <bruno@clisp.org>
15177
15178         gnulib-tool: Ensure the tests in the main directory are executed first.
15179         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
15180         start with the current directory.
15181
15182 2010-04-02  Bruno Haible  <bruno@clisp.org>
15183
15184         Tests for module 'havelib', moved here from GNU gettext.
15185         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
15186         modifications.
15187         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
15188         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
15189         with modifications.
15190         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
15191         modifications.
15192         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
15193         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
15194         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
15195         with modifications.
15196         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
15197         with modifications.
15198         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
15199         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
15200         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
15201         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
15202         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
15203         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
15204         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
15205         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
15206         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
15207         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
15208         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
15209         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
15210         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
15211         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
15212         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
15213         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
15214         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
15215         with modifications.
15216         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
15217         with modifications.
15218         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
15219         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
15220         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
15221         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
15222         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
15223         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
15224         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
15225         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
15226         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
15227         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
15228         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
15229         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
15230         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
15231         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
15232         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
15233         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
15234         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
15235         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
15236         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
15237         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
15238         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
15239         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
15240         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
15241         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
15242         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
15243         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
15244         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
15245         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
15246         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
15247         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
15248         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
15249         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
15250         * tests/havelib/rpathx/rpathx.c: New file, from
15251         gettext/autoconf-lib-link.
15252         * tests/havelib/rpathx/Makefile.am: New file, from
15253         gettext/autoconf-lib-link.
15254         * tests/havelib/rpathx/configure.ac: New file, from
15255         gettext/autoconf-lib-link with modifications.
15256         * tests/havelib/rpathy/rpathy.c: New file, from
15257         gettext/autoconf-lib-link.
15258         * tests/havelib/rpathy/Makefile.am: New file, from
15259         gettext/autoconf-lib-link.
15260         * tests/havelib/rpathy/configure.ac: New file, from
15261         gettext/autoconf-lib-link with modifications.
15262         * tests/havelib/rpathz/rpathz.c: New file, from
15263         gettext/autoconf-lib-link.
15264         * tests/havelib/rpathz/Makefile.am: New file, from
15265         gettext/autoconf-lib-link.
15266         * tests/havelib/rpathz/configure.ac: New file, from
15267         gettext/autoconf-lib-link with modifications.
15268         * tests/havelib/rpathlx/usex.c: New file, from
15269         gettext/autoconf-lib-link.
15270         * tests/havelib/rpathlx/Makefile.am: New file, from
15271         gettext/autoconf-lib-link.
15272         * tests/havelib/rpathlx/configure.ac: New file, from
15273         gettext/autoconf-lib-link with modifications.
15274         * tests/havelib/rpathly/usey.c: New file, from
15275         gettext/autoconf-lib-link.
15276         * tests/havelib/rpathly/Makefile.am: New file, from
15277         gettext/autoconf-lib-link.
15278         * tests/havelib/rpathly/configure.ac: New file, from
15279         gettext/autoconf-lib-link with modifications.
15280         * tests/havelib/rpathlz/usez.c: New file, from
15281         gettext/autoconf-lib-link.
15282         * tests/havelib/rpathlz/Makefile.am: New file, from
15283         gettext/autoconf-lib-link.
15284         * tests/havelib/rpathlz/configure.ac: New file, from
15285         gettext/autoconf-lib-link with modifications.
15286         * tests/havelib/rpathlyx/usey.c: New file, from
15287         gettext/autoconf-lib-link.
15288         * tests/havelib/rpathlyx/Makefile.am: New file, from
15289         gettext/autoconf-lib-link.
15290         * tests/havelib/rpathlyx/configure.ac: New file, from
15291         gettext/autoconf-lib-link with modifications.
15292         * tests/havelib/rpathlzyx/usez.c: New file, from
15293         gettext/autoconf-lib-link.
15294         * tests/havelib/rpathlzyx/Makefile.am: New file, from
15295         gettext/autoconf-lib-link.
15296         * tests/havelib/rpathlzyx/configure.ac: New file, from
15297         gettext/autoconf-lib-link with modifications.
15298         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
15299         with modifications.
15300
15301 2010-04-02  Bruno Haible  <bruno@clisp.org>
15302
15303         gnulib-tool: Create distributed built sources also for the tests.
15304         * gnulib-tool (func_create_testdir): Also generate distributed built
15305         sources in the tests directory.
15306
15307 2010-04-02  Bruno Haible  <bruno@clisp.org>
15308
15309         gnulib-tool: Obey user's environment variables.
15310         * gnulib-tool (func_create_testdir): When creating built sources,
15311         respect the environment variables for autoconf, automake, etc. given by
15312         the user.
15313
15314 2010-04-02  Bruno Haible  <bruno@clisp.org>
15315
15316         gnulib-tool: Provide the value of --m4-base to modules.
15317         * gnulib-tool (func_import, func_create_testdir): Emit a definition
15318         of gl_m4_base.
15319
15320 2010-04-02  Eric Blake  <eblake@redhat.com>
15321
15322         maint.mk: fix some fallout
15323         * NEWS: Document the incompatible change, and its effect on cfg.mk.
15324         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
15325
15326 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15327
15328         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
15329         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
15330         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
15331         (sc_cast_of_x_alloc_return_value): Likewise.
15332         (sc_cast_of_alloca_return_value): Likewise.
15333         (sc_space_tab): Likewise.
15334         (sc_prohibit_atoi_atof): Likewise.
15335         (sc_prohibit_magic_number_exit): Likewise.
15336         (sc_error_exit_success): Likewise.
15337         (sc_file_system): Likewise.
15338         (sc_prohibit_have_config_h): Likewise.
15339         (sc_require_config_h): Likewise.
15340         (sc_prohibit_HAVE_MBRTOWC): Likewise.
15341         (sc_obsolete_symbols): Likewise.
15342         (sc_changelog): Likewise.
15343         (sc_program_name): Likewise.
15344         (sc_the_the): Likewise.
15345         (sc_trailing_blank): Likewise.
15346         (sc_two_space_separator_in_usage): Likewise.
15347         (sc_useless_cpp_parens): Likewise.
15348         (sc_GPL_version): Likewise.
15349         (sc_GFDL_version): Likewise.
15350         (sc_texinfo_acronym): Likewise.
15351         (sc_prohibit_cvs_keyword): Likewise.
15352         (sc_prohibit_stat_st_blocks): Likewise.
15353         (sc_prohibit_S_IS_definition): Likewise.
15354         (sc_redundant_const): Likewise.
15355         (sc_makefile_TAB_only_indentation): Likewise.
15356         (sc_m4_quote_check): Likewise.
15357         (sc_makefile_path_separator_check): Likewise.
15358         (sc_copyright_check): Likewise.
15359         (sc_Wundef_boolean): Likewise.
15360         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15361
15362         maint.mk: match 0 or more whitespace-before-function-call '('
15363         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
15364         that have zero or two-and-more spaces between the function name
15365         and the open parenthesis.
15366         (sc_error_message_warn_fatal): Likewise.
15367         (sc_error_message_uppercase): Likewise.
15368         (sc_error_message_period): Likewise.
15369
15370 2010-03-31  Eric Blake  <eblake@redhat.com>
15371
15372         maint.mk: check for [ as well as test
15373         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
15374         Based on a libvirt report by Matthias Bolte.
15375
15376         gnumakefile: don't squelch _version output
15377         * top/GNUmakefile (_version): Create one-shot dependency rather
15378         than using $(shell) when version must be regenerated.
15379         (_autoreconf): Run verbosely, by default.
15380
15381         sys_time: avoid compiler warnings
15382         * lib/sys_time.in.h (includes): Ensure gcc pragma is
15383         unconditional, fixing regression from 2010-03-29.
15384         Reported by Simon Josefsson.
15385
15386 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15387
15388         maint.mk: s/_header_without_use/_sc_header_without_use/
15389         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
15390         (sc_prohibit_assert_without_use): Use the new name.
15391         (sc_prohibit_close_stream_without_use): Likewise.
15392         (sc_prohibit_getopt_without_use): Likewise.
15393         (sc_prohibit_quotearg_without_use): Likewise.
15394         (sc_prohibit_quote_without_use): Likewise.
15395         (sc_prohibit_long_options_without_use): Likewise.
15396         (sc_prohibit_inttostr_without_use): Likewise.
15397         (sc_prohibit_ignore_value_without_use): Likewise.
15398         (sc_prohibit_error_without_use): Likewise.
15399         (sc_prohibit_xalloc_without_use): Likewise.
15400         (sc_prohibit_hash_without_use): Likewise.
15401         (sc_prohibit_hash_pjw_without_use): Likewise.
15402         (sc_prohibit_safe_read_without_use): Likewise.
15403         (sc_prohibit_argmatch_without_use): Likewise.
15404         (sc_prohibit_canonicalize_without_use): Likewise.
15405         (sc_prohibit_root_dev_ino_without_use): Likewise.
15406         (sc_prohibit_openat_without_use): Likewise.
15407         (sc_prohibit_c_ctype_without_use): Likewise.
15408         (sc_prohibit_signal_without_use): Likewise.
15409         (sc_prohibit_intprops_without_use): Likewise.
15410
15411 2010-03-30  Eric Blake  <eblake@redhat.com>
15412
15413         maint: improve module indicators
15414         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
15415         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
15416         columns, and avoid extra macro expansion.
15417
15418         fdopendir: work around FreeBSD bug
15419         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15420         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
15421         * modules/dirent (Makefile.am): Substitute it.
15422         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
15423         declaration.
15424         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
15425         fix.
15426         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15427
15428 2010-03-29  Bruno Haible  <bruno@clisp.org>
15429
15430         Emit #pragma system_header after the inclusion guard, not before.
15431         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
15432         guard that spans the entire file, not before. This enables an
15433         optimization in GCC's preprocessor.
15434         * lib/ctype.in.h: Likewise.
15435         * lib/dirent.in.h: Likewise.
15436         * lib/errno.in.h: Likewise.
15437         * lib/float.in.h: Likewise.
15438         * lib/getopt.in.h: Likewise.
15439         * lib/iconv.in.h: Likewise.
15440         * lib/langinfo.in.h: Likewise.
15441         * lib/locale.in.h: Likewise.
15442         * lib/math.in.h: Likewise.
15443         * lib/netdb.in.h: Likewise.
15444         * lib/netinet_in.in.h: Likewise.
15445         * lib/pty.in.h: Likewise.
15446         * lib/sched.in.h: Likewise.
15447         * lib/se-selinux.in.h: Likewise.
15448         * lib/search.in.h: Likewise.
15449         * lib/spawn.in.h: Likewise.
15450         * lib/stdarg.in.h: Likewise.
15451         * lib/stdint.in.h: Likewise.
15452         * lib/string.in.h: Likewise.
15453         * lib/strings.in.h: Likewise.
15454         * lib/sys_file.in.h: Likewise.
15455         * lib/sys_ioctl.in.h: Likewise.
15456         * lib/sys_time.in.h: Likewise.
15457         * lib/sys_times.in.h: Likewise.
15458         * lib/sys_utsname.in.h: Likewise.
15459         * lib/sys_wait.in.h: Likewise.
15460         * lib/sysexits.in.h: Likewise.
15461         * lib/wctype.in.h: Likewise.
15462
15463 2010-03-28  James Youngman  <jay@gnu.org>
15464
15465         save-cwd: don't leak a file descriptor when the caller execs.
15466         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
15467         saved file descriptor.
15468         * modules/save-cwd (Depends-on): Depend on cloexec.
15469
15470 2010-03-29  Bruno Haible  <bruno@clisp.org>
15471
15472         Remove vestiges of fts-lgpl module.
15473         * lib/fts_.h: Assume GNULIB_FTS is 1.
15474         * lib/fts.c: Likewise.
15475         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15476
15477 2010-03-28  Bruno Haible  <bruno@clisp.org>
15478
15479         Fix definition of tests witness macro.
15480         * gnulib-tool (func_import): Fix definition of witness macro.
15481
15482 2010-03-28  Bruno Haible  <bruno@clisp.org>
15483
15484         Fix ioctl's protoype on glibc systems.
15485         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
15486         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
15487         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
15488         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
15489         signature. If not, arrange to replace the ioctl function.
15490         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15491         REPLACE_IOCTL.
15492         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
15493         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
15494         Reported by Ludovic Courtès <ludo@gnu.org>.
15495
15496 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
15497
15498         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
15499         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
15500         made it so grep -r --include=GLOB* ... did not work.
15501
15502 2010-03-26  Jim Meyering  <meyering@redhat.com>
15503             Eric Blake  <eblake@redhat.com>
15504
15505         maint.mk: prohibit use of test's -o and -a operators
15506         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
15507
15508 2010-03-28  Bruno Haible  <bruno@clisp.org>
15509
15510         Remove unused GNULIB_XYZ macro definitions.
15511         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
15512         invocation.
15513
15514 2010-03-28  Bruno Haible  <bruno@clisp.org>
15515
15516         Mark privileged tests modules.
15517         * modules/idpriv-drop-tests (Status): New section.
15518         * modules/idpriv-droptemp-tests (Status): New section.
15519
15520 2010-03-28  Bruno Haible  <bruno@clisp.org>
15521
15522         Split C++ tests into separate tests modules.
15523         * modules/dirent-c++-tests: New file, extracted from
15524         modules/dirent-tests.
15525         * modules/dirent-tests: Depend on it.
15526         * modules/fcntl-h-c++-tests: New file, extracted from
15527         modules/fcntl-h-tests.
15528         * modules/fcntl-h-tests: Depend on it.
15529         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
15530         * modules/glob-tests: Depend on it.
15531         * modules/iconv-h-c++-tests: New file, extracted from
15532         modules/iconv-h-tests.
15533         * modules/iconv-h-tests: Depend on it.
15534         * modules/langinfo-c++-tests: New file, extracted from
15535         modules/langinfo-tests.
15536         * modules/langinfo-tests: Depend on it.
15537         * modules/locale-c++-tests: New file, extracted from
15538         modules/locale-tests.
15539         * modules/locale-tests: Depend on it.
15540         * modules/math-c++-tests: New file, extracted from modules/math-tests.
15541         * modules/math-tests: Depend on it.
15542         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
15543         * modules/pty-tests: Depend on it.
15544         * modules/search-c++-tests: New file, extracted from
15545         modules/search-tests.
15546         * modules/search-tests: Depend on it.
15547         * modules/signal-c++-tests: New file, extracted from
15548         modules/signal-tests.
15549         * modules/signal-tests: Depend on it.
15550         * modules/spawn-c++-tests: New file, extracted from
15551         modules/spawn-tests.
15552         * modules/spawn-tests: Depend on it.
15553         * modules/stdio-c++-tests: New file, extracted from
15554         modules/stdio-tests.
15555         * modules/stdio-tests: Depend on it.
15556         * modules/stdlib-c++-tests: New file, extracted from
15557         modules/stdlib-tests.
15558         * modules/stdlib-tests: Depend on it.
15559         * modules/string-c++-tests: New file, extracted from
15560         modules/string-tests.
15561         * modules/string-tests: Depend on it.
15562         * modules/sys_ioctl-c++-tests: New file, extracted from
15563         modules/sys_ioctl-tests.
15564         * modules/sys_ioctl-tests: Depend on it.
15565         * modules/sys_select-c++-tests: New file, extracted from
15566         modules/sys_select-tests.
15567         * modules/sys_select-tests: Depend on it.
15568         * modules/sys_socket-c++-tests: New file, extracted from
15569         modules/sys_socket-tests.
15570         * modules/sys_socket-tests: Depend on it.
15571         * modules/sys_stat-c++-tests: New file, extracted from
15572         modules/sys_stat-tests.
15573         * modules/sys_stat-tests: Depend on it.
15574         * modules/sys_time-c++-tests: New file, extracted from
15575         modules/sys_time-tests.
15576         * modules/sys_time-tests: Depend on it.
15577         * modules/time-c++-tests: New file, extracted from modules/time-tests.
15578         * modules/time-tests: Depend on it.
15579         * modules/unistd-c++-tests: New file, extracted from
15580         modules/unistd-tests.
15581         * modules/unistd-tests: Depend on it.
15582         * modules/wchar-c++-tests: New file, extracted from
15583         modules/wchar-tests.
15584         * modules/wchar-tests: Depend on it.
15585         * modules/wctype-c++-tests: New file, extracted from
15586         modules/wctype-tests.
15587         * modules/wctype-tests: Depend on it.
15588         Reported by Simon Josefsson.
15589
15590 2010-03-28  Bruno Haible  <bruno@clisp.org>
15591
15592         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
15593         * gnulib-tool (func_exists_module): New function, extracted from
15594         func_verify_module.
15595         (func_verify_module): Use it.
15596         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
15597         'foo' only if 'foo' exists.
15598         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
15599         module.
15600
15601 2010-03-28  Bruno Haible  <bruno@clisp.org>
15602
15603         gnulib-tool: Add support for special categories of tests.
15604         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
15605         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
15606         (func_usage): Document them.
15607         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
15608         inc_unportable_tests, inc_all_tests): New variables.
15609         (func_acceptable): Consider these variables.
15610         (func_modules_transitive_closure): Make it work when the 'Status' field
15611         consists of multiple words.
15612         (func_import): Store and restore the values of inc_cxx_tests,
15613         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
15614         inc_all_tests in gnulib-comp.m4.
15615         (func_create_testdir): Set inc_all_tests to true.
15616         * doc/gnulib.texi (Extra tests modules): New section.
15617         Suggested by Jim Meyering.
15618
15619 2010-03-28  Bruno Haible  <bruno@clisp.org>
15620
15621         ansi-c++-opt: Allow turning off the C++ build by default.
15622         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
15623         gl_CXX_CHOICE_DEFAULT_NO is defined.
15624         Requested by Eric Blake.
15625
15626 2010-03-28  Bruno Haible  <bruno@clisp.org>
15627
15628         unistd: Avoid #define replacements in C++ mode.
15629         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15630         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15631         setsockopt, shutdown, select): In C++, attach a warning to the function
15632         if possible, rather than #defining the symbol to a dysfunctional alias.
15633         Reported by John W. Eaton <jwe@gnu.org>.
15634
15635 2010-03-28  Bruno Haible  <bruno@clisp.org>
15636
15637         Fix link errors on mingw.
15638         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
15639         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
15640         $(LIBSOCKET).
15641         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
15642         $(LIBSOCKET).
15643
15644 2010-03-28  Bruno Haible  <bruno@clisp.org>
15645             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15646
15647         lib-ignore: Determine different options for different compilers.
15648         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
15649         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
15650         Add comments.
15651         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
15652         * NEWS: Mention the change.
15653
15654 2010-03-27  Bruno Haible  <bruno@clisp.org>
15655
15656         Remove unused GNULIB_XYZ macro definitions.
15657         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15658         * modules/fseek (configure.ac): Likewise.
15659         * modules/ioctl (configure.ac): Likewise.
15660         * modules/open (configure.ac): Likewise.
15661         * modules/stdlib-safer (configure.ac): Likewise.
15662
15663 2010-03-27  Bruno Haible  <bruno@clisp.org>
15664
15665         Add a remark about certain modules.
15666         * modules/malloc (Comment): New section.
15667         * modules/realloc (Comment): Likewise.
15668         * modules/sigpipe (Comment): Likewise.
15669
15670 2010-03-27  Bruno Haible  <bruno@clisp.org>
15671
15672         Resolve conflict between the two kinds of module indicators.
15673         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
15674         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
15675         * modules/canonicalize (configure.ac): Invoke
15676         gl_MODULE_INDICATOR_FOR_TESTS.
15677         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
15678         GNULIB_XYZ.
15679         * tests/test-dirent-c++.cc: Likewise.
15680         * tests/test-dirent-safer.c: Likewise.
15681         * tests/test-dup2.c: Likewise.
15682         * tests/test-fchdir.c: Likewise.
15683         * tests/test-fcntl-h-c++.cc: Likewise.
15684         * tests/test-getopt.c: Likewise.
15685         * tests/test-getopt.h: Likewise.
15686         * tests/test-langinfo-c++.cc: Likewise.
15687         * tests/test-locale-c++.cc: Likewise.
15688         * tests/test-math-c++.cc: Likewise.
15689         * tests/test-pty-c++.cc: Likewise.
15690         * tests/test-search-c++.cc: Likewise.
15691         * tests/test-signal-c++.cc: Likewise.
15692         * tests/test-spawn-c++.cc: Likewise.
15693         * tests/test-stdio-c++.cc: Likewise.
15694         * tests/test-stdlib-c++.cc: Likewise.
15695         * tests/test-string-c++.cc: Likewise.
15696         * tests/test-sys_ioctl-c++.cc: Likewise.
15697         * tests/test-sys_select-c++.cc: Likewise.
15698         * tests/test-sys_socket-c++.cc: Likewise.
15699         * tests/test-sys_stat-c++.cc: Likewise.
15700         * tests/test-sys_time-c++.cc: Likewise.
15701         * tests/test-time-c++.cc: Likewise.
15702         * tests/test-unistd-c++.cc: Likewise.
15703         * tests/test-wchar-c++.cc: Likewise.
15704         * tests/uninorm/test-u8-nfc.c: Likewise.
15705         * tests/uninorm/test-u8-nfd.c: Likewise.
15706         * tests/uninorm/test-u8-nfkc.c: Likewise.
15707         * tests/uninorm/test-u8-nfkd.c: Likewise.
15708         * tests/uninorm/test-u16-nfc.c: Likewise.
15709         * tests/uninorm/test-u16-nfd.c: Likewise.
15710         * tests/uninorm/test-u16-nfkc.c: Likewise.
15711         * tests/uninorm/test-u16-nfkd.c: Likewise.
15712         * tests/uninorm/test-u32-nfc.c: Likewise.
15713         * tests/uninorm/test-u32-nfc-big.c: Likewise.
15714         * tests/uninorm/test-u32-nfd.c: Likewise.
15715         * tests/uninorm/test-u32-nfd-big.c: Likewise.
15716         * tests/uninorm/test-u32-nfkc.c: Likewise.
15717         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
15718         * tests/uninorm/test-u32-nfkd.c: Likewise.
15719         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
15720         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15721
15722 2010-03-27  Bruno Haible  <bruno@clisp.org>
15723
15724         Distinguish two kinds of module indicators.
15725         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
15726         gl_MODULE_INDICATOR.
15727         (gl_MODULE_INDICATOR): New macro.
15728         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15729         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
15730         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15731         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15732         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15733         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15734         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15735         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15736         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15737         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15738         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15739         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15740         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15741         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15742         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15743         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15744         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15745         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15746         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15747         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15748         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15749         * modules/cloexec (configure.ac): Likewise.
15750         * modules/getopt-gnu (configure.ac): Likewise.
15751         * modules/uninorm/u8-normalize (configure.ac): Likewise.
15752         * modules/uninorm/u16-normalize (configure.ac): Likewise.
15753         * modules/uninorm/u32-normalize (configure.ac): Likewise.
15754         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
15755
15756 2010-03-27  Bruno Haible  <bruno@clisp.org>
15757
15758         New module description field 'Comment'.
15759         * gnulib-tool: New option --extract-comment.
15760         (func_usage): Document it.
15761         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
15762         (func_get_comment): New function.
15763         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
15764
15765 2010-03-27  Bruno Haible  <bruno@clisp.org>
15766
15767         Addendum to 2010-02-07 commit.
15768         * gnulib-tool (func_usage): Document --extract-applicability option.
15769
15770 2010-03-27  Bruno Haible  <bruno@clisp.org>
15771
15772         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
15773         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
15774         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
15775         rather than link errors.
15776
15777 2010-03-27  Bruno Haible  <bruno@clisp.org>
15778
15779         Avoid side effects from tests-related modules on the compilation of lib.
15780         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
15781         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
15782         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
15783         parameter. Emit into AM_CPPFLAGS a definition of the designated C
15784         macro.
15785         (func_import): Define a witness macro. Assign it a value that depends
15786         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
15787         tests-related modules.
15788         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
15789         Reported by Jim Meyering.
15790
15791 2010-03-27  Bruno Haible  <bruno@clisp.org>
15792
15793         Factorize common .m4 code.
15794         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
15795         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
15796         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
15797         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
15798         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15799         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
15800         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
15801         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15802         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15803         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15804         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
15805         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15806         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15807         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15808         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15809         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
15810         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15811         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15812         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15813         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
15814         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
15815         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15816         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15817         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15818         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15819         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15820         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
15821         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
15822         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
15823         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15824         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15825         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15826
15827 2010-03-27  Bruno Haible  <bruno@clisp.org>
15828
15829         Fix a compilation error on Cygwin with g++ >= 4.3.
15830         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
15831         if it is undefined or if we alias it to chmod.
15832         (lstat): Don't warn about the use of this function if it is undefined
15833         or if we alias it to stat.
15834         Reported by Simon Josefsson.
15835
15836 2010-03-27  Bruno Haible  <bruno@clisp.org>
15837
15838         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
15839         * modules/getlogin (configure.ac): Update.
15840
15841         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
15842         * modules/getlogin_r (configure.ac): Update.
15843
15844         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
15845         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
15846         * modules/inet_ntop (configure.ac): Update.
15847
15848         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
15849         * modules/inet_pton (configure.ac): Update.
15850
15851         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
15852         * modules/mbslen (configure.ac): Update.
15853
15854         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
15855         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
15856         * modules/forkpty (configure.ac): Update.
15857         * modules/openpty (configure.ac): Update.
15858
15859 2010-03-26  Simon Josefsson  <simon@josefsson.org>
15860
15861         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
15862         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
15863
15864 2010-03-25  Eric Blake  <eblake@redhat.com>
15865
15866         maint: use pragma consistently across replacement headers
15867         * lib/ctype.in.h (system_header): Hoist for consistent placement.
15868         * lib/dirent.in.h (system_header): Likewise.
15869         * lib/errno.in.h (system_header): Likewise.
15870         * lib/float.in.h (system_header): Likewise.
15871         * lib/getopt.in.h (system_header): Likewise.
15872         * lib/iconv.in.h (system_header): Likewise.
15873         * lib/inttypes.in.h (system_header): Likewise.
15874         * lib/langinfo.in.h (system_header): Likewise.
15875         * lib/locale.in.h (system_header): Likewise.
15876         * lib/math.in.h (system_header): Likewise.
15877         * lib/netdb.in.h (system_header): Likewise.
15878         * lib/netinet_in.in.h (system_header): Likewise.
15879         * lib/pty.in.h (system_header): Likewise.
15880         * lib/sched.in.h (system_header): Likewise.
15881         * lib/se-selinux.in.h (system_header): Likewise.
15882         * lib/search.in.h (system_header): Likewise.
15883         * lib/spawn.in.h (system_header): Likewise.
15884         * lib/stdarg.in.h (system_header): Likewise.
15885         * lib/stdint.in.h (system_header): Likewise.
15886         * lib/string.in.h (system_header): Likewise.
15887         * lib/strings.in.h (system_header): Likewise.
15888         * lib/sys_file.in.h (system_header): Likewise.
15889         * lib/sys_ioctl.in.h (system_header): Likewise.
15890         * lib/sys_socket.in.h (system_header): Likewise.
15891         * lib/sys_times.in.h (system_header): Likewise.
15892         * lib/sys_utsname.in.h (system_header): Likewise.
15893         * lib/sys_wait.in.h (system_header): Likewise.
15894         * lib/sysexits.in.h (system_header): Likewise.
15895         * lib/unistd.in.h (system_header): Likewise.
15896         * lib/wctype.in.h (system_header): Likewise.
15897
15898         arpa/inet: fix mingw compilation warning
15899         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
15900         Reported by Matthew Bolte.
15901
15902 2010-03-25  Bruno Haible  <bruno@clisp.org>
15903
15904         Avoid collision between gnulib wrapper and libintl wrapper.
15905         * lib/printf.c (printf): Don't define if a printf wrapper is already
15906         defined in intl/printf.c.
15907         Reported by Michel Boaventura <michel@michelboaventura.com>.
15908
15909 2010-03-25  Bruno Haible  <bruno@clisp.org>
15910
15911         Use ANSI C.
15912         * lib/readutmp.h (getutent): Provide ANSI C prototype.
15913
15914 2010-03-25  Bruno Haible  <bruno@clisp.org>
15915
15916         Minor formatting changes.
15917         * lib/acosl.c: Insert space before function argument list.
15918         * lib/argz.c: Likewise.
15919         * lib/asinl.c: Likewise.
15920         * lib/expl.c: Likewise.
15921         * lib/gen-uni-tables.c: Likewise.
15922         * lib/gettext.h: Likewise.
15923         * lib/glthread/lock.h: Likewise.
15924         * lib/tanl.c: Likewise.
15925         * lib/uniname/uniname.c: Likewise.
15926         * tests/test-idpriv-drop.c: Likewise.
15927         * tests/test-idpriv-droptemp.c: Likewise.
15928         * tests/test-lock.c: Likewise.
15929         * tests/test-tls.c: Likewise.
15930         * lib/argp-help.c: Insert space before function-like macro argument
15931         list.
15932         * lib/memcmp.c: Likewise.
15933         * tests/test-base64.c: Likewise.
15934         * lib/localename.c: Insert space before sizeof's argument list.
15935         * lib/safe-alloc.h: Likewise.
15936         * lib/file-set.h: Insert space before macro argument list.
15937         * tests/test-argp.c: Likewise.
15938         * lib/argp-namefrob.h: Insert space before function parameter list.
15939         * lib/getaddrinfo.c: Likewise.
15940         * lib/netdb.in.h: Likewise.
15941         * lib/parse-duration.h: Likewise.
15942         * lib/parse-duration.c: Likewise.
15943         * lib/poll.c: Likewise.
15944         * lib/select.c: Likewise.
15945         * lib/trim.h: Likewise.
15946         * tests/test-usleep.c: Likewise.
15947         * lib/ldexpl.c: Insert space before function parameter list and before
15948         function argument list.
15949         * lib/logl.c: Likewise.
15950         * lib/sqrtl.c: Likewise.
15951         * lib/trim.c: Likewise.
15952         * lib/cosl.c: Use GNU style indentation. Insert space before function
15953         argument list.
15954         * lib/sinl.c: Likewise.
15955         * lib/tsearch.c: Insert space after 'for'.
15956         Reported by Jim Meyering.
15957
15958 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
15959
15960         * maint.mk (sc_Wundef_boolean): Check for the presence of the
15961         config header before grepping, as it's not present before
15962         autoreconf/configure are run.  Reported by Simon Josefsson.
15963
15964 2010-03-23  Bruno Haible  <bruno@clisp.org>
15965
15966         pt_chown: Make it work with automake < 1.11.
15967         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
15968         Reported by Simon Josefsson.
15969
15970 2010-03-23  Bruno Haible  <bruno@clisp.org>
15971
15972         pt_chown: Don't depend on GPLed modules.
15973         * lib/pt_chown.c: Don't include idpriv.h.
15974         (main): Don't drop privileges.
15975         * modules/pt_chown (Depends-on): Remove idpriv-drop.
15976         Reported by Simon Josefsson.
15977
15978 2010-03-24  Simon Josefsson  <simon@josefsson.org>
15979
15980         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
15981         suggestions from karl@freefriends.org (Karl Berry).
15982
15983 2010-03-22  Eric Blake  <eblake@redhat.com>
15984
15985         gethostname: further tweaks
15986         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
15987         are overriding gethostname.
15988         Suggested by Bruno Haible.
15989
15990 2010-03-21  Bruno Haible  <bruno@clisp.org>
15991
15992         Fix comments.
15993         * lib/forkpty.c (rpl_forkpty): Fix comment.
15994         * lib/openpty.c (rpl_openpty): Likewise.
15995         Reported by Eric Blake.
15996
15997 2010-03-22  Eric Blake  <eblake@redhat.com>
15998
15999         gethostname: fix build on mingw
16000         * lib/unistd.in.h (includes): Work around fact that mingw
16001         <winsock2.h> re-includes <unistd.h>, by avoiding any
16002         redeclarations if we are being included by <winsock2.h>.
16003         Reported by Matthias Bolte.
16004
16005 2010-03-21  Bruno Haible  <bruno@clisp.org>
16006
16007         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16008         * lib/forkpty.c (forkpty): New replacement function, from glibc with
16009         modifications.
16010         * lib/pty.in.h (forkpty): Update declaration. Add comments.
16011         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
16012         provide the replacement.
16013         * modules/forkpty (Depends-on): Add openpty, login_tty.
16014         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
16015         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
16016         * doc/glibc-functions/forkpty.texi: More supported platforms.
16017         * config/srclist.txt: Add forkpty.c (commented).
16018
16019 2010-03-21  Bruno Haible  <bruno@clisp.org>
16020
16021         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
16022         (Makefile.am): Verify that PTY_LIB is defined.
16023
16024         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
16025
16026 2010-03-21  Bruno Haible  <bruno@clisp.org>
16027
16028         Tests for module 'login_tty'.
16029         * modules/login_tty-tests: New file.
16030         * tests/test-login_tty.c: New file.
16031
16032         New module 'login_tty'.
16033         * lib/login_tty.c: New file.
16034         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
16035         * modules/login_tty: New file.
16036         * doc/glibc-functions/login_tty.texi: Mention the new module.
16037
16038 2010-03-21  Bruno Haible  <bruno@clisp.org>
16039
16040         login_tty: Documentation.
16041         * doc/glibc-functions/login_tty.texi: New file.
16042         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
16043
16044 2010-03-21  Bruno Haible  <bruno@clisp.org>
16045
16046         pty: Consistent macro naming.
16047         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
16048         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
16049         * modules/pty (configure.ac): Update.
16050
16051 2010-03-21  Bruno Haible  <bruno@clisp.org>
16052
16053         Tests for openpty: Make stricter.
16054         * tests/test-openpty.c (main): Add test of canonical processing and
16055         erase.
16056         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
16057
16058         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16059         * lib/openpty.c (openpty): New replacement function.
16060         * lib/pty.in.h: Include <termios.h>.
16061         (openpty): Update declaration. Add comments.
16062         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
16063         is not declared, arrange to provide the replacement. Check for _getpty
16064         and posix_openpt.
16065         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
16066         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
16067         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
16068         * modules/pty-tests (test_pty_c___LDADD): New variable.
16069         * doc/glibc-functions/openpty.texi: More supported platforms.
16070
16071 2010-03-21  Bruno Haible  <bruno@clisp.org>
16072
16073         setenv: Tweaks.
16074         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
16075         the test program.
16076         * doc/posix-functions/setenv.texi: Update platforms list.
16077
16078 2010-03-21  Bruno Haible  <bruno@clisp.org>
16079
16080         New module 'unlockpt'.
16081         * lib/unlockpt.c: New file, from glibc with modifications.
16082         * m4/unlockpt.m4: New file.
16083         * modules/unlockpt: New file.
16084         * lib/stdlib.in.h (unlockpt): New declaration.
16085         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
16086         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
16087         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
16088         HAVE_UNLOCKPT.
16089         * doc/posix-functions/unlockpt.texi: Mention the new module.
16090         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
16091         * config/srclist.txt: Add unlockpt.c (commented).
16092
16093 2010-03-21  Jim Meyering  <meyering@redhat.com>
16094
16095         maint.mk: prohibit inclusion of "intprops.h" without use
16096         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
16097
16098 2010-03-21  Bruno Haible  <bruno@clisp.org>
16099
16100         New module 'grantpt'.
16101         * lib/grantpt.c: New file, from glibc with modifications.
16102         * m4/grantpt.m4: New file.
16103         * modules/grantpt: New file.
16104         * lib/stdlib.in.h (grantpt): New declaration.
16105         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
16106         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
16107         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
16108         HAVE_GRANTPT.
16109         * doc/posix-functions/grantpt.texi: Mention the new module.
16110         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
16111         * config/srclist.txt: Add grantpt.c (commented).
16112
16113 2010-03-21  Bruno Haible  <bruno@clisp.org>
16114
16115         New module 'pt_chown'.
16116         * lib/pt_chown.c: New file, from glibc with modifications.
16117         * lib/pty-private.h: New file, from glibc with modifications.
16118         * modules/pt_chown: New file.
16119         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
16120
16121 2010-03-21  Bruno Haible  <bruno@clisp.org>
16122
16123         Tests for module 'ptsname'.
16124         * modules/ptsname-tests: New file.
16125         * tests/test-ptsname.c: New file.
16126
16127         New module 'ptsname'.
16128         * lib/ptsname.c: New file, from glibc with modifications.
16129         * m4/ptsname.m4: New file.
16130         * modules/ptsname: New file.
16131         * lib/stdlib.in.h (ptsname): New declaration.
16132         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
16133         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
16134         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
16135         HAVE_PTSNAME.
16136         * doc/posix-functions/ptsname.texi: Mention the new module.
16137         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
16138         * config/srclist.txt: Add ptsname.c (commented).
16139
16140 2010-03-21  Bruno Haible  <bruno@clisp.org>
16141
16142         Tests for module 'ttyname_r'.
16143         * modules/ttyname_r-tests: New file.
16144         * tests/test-ttyname_r.c: New file.
16145
16146         New module 'ttyname_r'.
16147         * lib/ttyname_r.c: New file.
16148         * m4/ttyname_r.m4: New file.
16149         * modules/ttyname_r: New file.
16150         * lib/unistd.in.h (ttyname_r): New declaration.
16151         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
16152         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
16153         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
16154         HAVE_TTYNAME_R.
16155         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
16156         * doc/posix-functions/ttyname_r.texi: Mention the new module.
16157
16158 2010-03-20  Bruno Haible  <bruno@clisp.org>
16159
16160         signal: Undefine macro definitions in C++ mode.
16161         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
16162         sigfillset): Undefine macro definitions from the system header in C++
16163         mode.
16164         Reported by John W. Eaton <jwe@gnu.org>.
16165
16166 2010-03-20  Bruno Haible  <bruno@clisp.org>
16167
16168         Ensure no #include statements inside extern "C" { ... }.
16169         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
16170         contain #include statements.
16171         * lib/time.in.h: Likewise.
16172
16173 2010-03-20  Bruno Haible  <bruno@clisp.org>
16174
16175         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
16176         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
16177         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
16178         Reported by John W. Eaton <jwe@gnu.org>.
16179
16180 2010-03-20  Bruno Haible  <bruno@clisp.org>
16181
16182         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
16183         Reported by Jim Meyering.
16184
16185 2010-03-20  Bruno Haible  <bruno@clisp.org>
16186
16187         pipe: Set errno upon failure.
16188         * lib/pipe.h: Specify that when -1 is returned, errno is set.
16189         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
16190         errno value in error message.
16191
16192 2010-03-20  Bruno Haible  <bruno@clisp.org>
16193             Jim Meyering  <meyering@redhat.com>
16194
16195         lchown: Avoid "unused variable" warning.
16196         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
16197
16198 2010-03-20  Bruno Haible  <bruno@clisp.org>
16199
16200         Work around unlink() bug on MacOS X 10.5.6.
16201         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
16202         attempting to unlink a parent directory.
16203         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
16204         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
16205         activate for the replacement function.
16206         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
16207
16208 2010-03-20  Bruno Haible  <bruno@clisp.org>
16209
16210         Fix link errors on Solaris 8.
16211         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
16212         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
16213
16214 2010-03-19  Jim Meyering  <meyering@redhat.com>
16215
16216         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
16217         The _LIBC implementation of build_range_exp correctly honors the
16218         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
16219         However, the non-_LIBC implementation would ignore that syntax-bit
16220         flag and return REG_ERANGE unconditionally.
16221         This change makes it honor that flag.
16222         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
16223         Make two pointer parameters "const".
16224         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
16225         (parse_bracket_exp): Update caller.
16226
16227         regex.m4: correct the reversed range endpoint ([b-a]) test
16228         * m4/regex.m4: When requiring that [b-a] evoke failure,
16229         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
16230         test pass once again for x86-based systems.
16231
16232 2010-03-19  Bruno Haible  <bruno@clisp.org>
16233
16234         scandir: Fix link error on Solaris 8.
16235         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
16236         macros.
16237
16238 2010-03-19  Bruno Haible  <bruno@clisp.org>
16239
16240         getusershell: Fix documentation.
16241         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
16242         module.
16243         * doc/glibc-functions/setusershell.texi: Likewise.
16244
16245         getusershell: Provide declaration, missing on Solaris 9.
16246         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
16247         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
16248         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
16249         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
16250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16251         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
16252         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
16253         HAVE_GETUSERSHELL.
16254         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
16255
16256 2010-03-19  Bruno Haible  <bruno@clisp.org>
16257
16258         wctype: Provide iswblank function.
16259         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
16260         exists and is fine.
16261         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
16262         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
16263         * tests/test-wctype.c (main): Re-enable the iswblank tests.
16264         * doc/posix-functions/iswblank.texi: Update.
16265
16266 2010-03-19  Bruno Haible  <bruno@clisp.org>
16267
16268         Tests of module 'pty' in C++ mode.
16269         * modules/pty-tests: New file.
16270         * tests/test-pty-c++.cc: New file.
16271         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16272
16273 2010-03-19  Eric Blake  <eblake@redhat.com>
16274
16275         logb: fix documentation
16276         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
16277         1.5 declaration bug.
16278
16279         forkpty, openpty: prefer glibc's const-safe prototype
16280         * lib/forkpty.c (rpl_forkpty): New file.
16281         * lib/openpty.c (rpl_openpty): Likewise.
16282         * modules/forkpty (Files): Distribute it.
16283         * modules/openpty (Files): Likewise.
16284         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
16285         check...
16286         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
16287         replacement for for non-const BSD signature.
16288         * modules/pty (Makefile.am): Substitute witnesses.
16289         * lib/pty.in.h (forkpty, openpty): Declare replacements.
16290         * tests/test-forkpty.c: Update signature check.
16291         * tests/test-openpty.c: Likewise.
16292         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
16293         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16294
16295         forkpty, openpty: split functions into new modules
16296         * modules/pty (Makefile.am): Substitute new witnesses.
16297         (Libraries): Move library detection...
16298         * modules/forkpty: ...into new module.
16299         * modules/openpty: Another new module.
16300         * modules/pty-tests: Rename and split...
16301         * modules/forkpty-tests: ...to this...
16302         * modules/openpty-tests: ...and this.
16303         * tests/test-pty.c: Rename and split...
16304         * tests/test-forkpty.c: ...to this...
16305         * tests/test-openpty.c: ...and this.
16306         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
16307         (gl_PTY): Split library searching...
16308         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
16309         (gl_FORKPTY, gl_OPENPTY): New macros.
16310         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
16311         * NEWS: Mention the split.
16312         * MODULES.html.sh (Misc): Document the modules.
16313         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
16314         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16315
16316         pty: improve replacement header
16317         * lib/pty.in.h: New file.
16318         * modules/pty (Files): Ship it.
16319         (Makefile.am): Always build replacement.
16320         * m4/pty.m4: Rename...
16321         * m4/pty_h.m4: ...to this.
16322         (gl_PTY): Modernize setting of witness macros; update check of
16323         forkpty to take proper advantage of cache.
16324         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
16325
16326         getopt: avoid compiler warning
16327         * lib/getopt.c (attribute_hidden): Remove unused macro.
16328
16329 2010-03-18  Bruno Haible  <bruno@clisp.org>
16330
16331         Fix link errors on Solaris 8.
16332         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
16333         * modules/search-tests (test_search_c___LDADD): Likewise.
16334         * modules/signal-tests (test_signal_c___LDADD): Likewise.
16335         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
16336         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
16337         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
16338         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
16339         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
16340         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
16341
16342 2010-03-18  Bruno Haible  <bruno@clisp.org>
16343
16344         Fix bug introduced on 2010-03-14.
16345         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
16346         (gl_SPAWN_H): Require it.
16347         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
16348         Reported by Simon Josefsson.
16349
16350 2010-03-18  Bruno Haible  <bruno@clisp.org>
16351
16352         Fix typo introduced on 2009-12-31.
16353         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
16354         posix_spawn_file_actions_adddup2.
16355
16356 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
16357         and Eric Blake  <eblake@redhat.com>
16358
16359         test-vc-list-files-git: make more robust
16360         * tests/test-vc-list-files-git.sh: Unset problematic environment
16361         variables.  Chain commands together.
16362
16363 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
16364
16365         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
16366         `AC_CHECK_DECL' invocation.
16367
16368 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
16369
16370         * lib/inttostr.c (inttostr): Make sure the invocation of verify
16371         appears before executable statements. Suggested by Petr Sumbera
16372         <Petr.Sumbera@Sun.COM>.
16373
16374 2010-03-14  Bruno Haible  <bruno@clisp.org>
16375
16376         * tests/test-flock.c (test_exclusive): Comment out a test that causes
16377         portability problems. Instead use a simpler test.
16378         (main): Check that invalid arguments are rejected only on Linux.
16379
16380 2010-03-14  Bruno Haible  <bruno@clisp.org>
16381
16382         Fix bug introduced on 2009-12-31.
16383         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16384         gl_PREREQ_SYS_H_WINSOCK2 always.
16385         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
16386         SYS_SOCKET_H variable.
16387         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
16388         Update comments.
16389         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
16390         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16391         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16392         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16393         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
16394
16395 2010-03-14  Bruno Haible  <bruno@clisp.org>
16396
16397         Fix values returned by sinl, cosl.
16398         * lib/trigl.h: Add specification comments.
16399         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
16400         that combines the values from the precomputed table with the values of
16401         the Chebyshev polynomials.
16402
16403 2010-03-14  Bruno Haible  <bruno@clisp.org>
16404
16405         Fix compilation error when modules 'posix_spawn[p]' are not used.
16406         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
16407         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
16408
16409 2010-03-14  Bruno Haible  <bruno@clisp.org>
16410
16411         Fix compilation error on mingw when module 'time_r' is not used.
16412         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
16413         is 1.
16414         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
16415         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16416         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
16417         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
16418
16419 2010-03-14  Bruno Haible  <bruno@clisp.org>
16420
16421         Fix compilation error with Sun C.
16422         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
16423         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
16424         instead of GCC specific ULONG_LONG_MAX.
16425         * lib/xstrtoll.c: Likewise.
16426         * lib/xstrtoull.c: Likewise.
16427
16428 2010-03-13  Bruno Haible  <bruno@clisp.org>
16429
16430         Allow the user to disable C++ code and tests.
16431         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
16432         (gl_PROG_ANSI_CXX): Require it.
16433
16434 2010-03-13  Bruno Haible  <bruno@clisp.org>
16435
16436         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
16437         cases.
16438
16439 2010-03-13  Bruno Haible  <bruno@clisp.org>
16440
16441         Test that gnulib does not break the standard C++ headers.
16442         * tests/test-locale-c++2.cc: New file.
16443         * modules/locale-tests (Files): Add it.
16444         (Makefile.am): Compile it for test-locale-c++.
16445         * tests/test-math-c++2.cc: New file.
16446         * modules/math-tests (Files): Add it.
16447         (Makefile.am): Compile it for test-math-c++.
16448         * tests/test-signal-c++2.cc: New file.
16449         * modules/signal-tests (Files): Add it.
16450         (Makefile.am): Compile it for test-signal-c++.
16451         * tests/test-stdio-c++2.cc: New file.
16452         * modules/stdio-tests (Files): Add it.
16453         (Makefile.am): Compile it for test-stdio-c++.
16454         * tests/test-stdlib-c++2.cc: New file.
16455         * modules/stdlib-tests (Files): Add it.
16456         (Makefile.am): Compile it for test-stdlib-c++.
16457         * tests/test-string-c++2.cc: New file.
16458         * modules/string-tests (Files): Add it.
16459         (Makefile.am): Compile it for test-string-c++.
16460         * tests/test-time-c++2.cc: New file.
16461         * modules/time-tests (Files): Add it.
16462         (Makefile.am): Compile it for test-time-c++.
16463         Reported by John W. Eaton <jwe@gnu.org>.
16464
16465 2010-03-13  Bruno Haible  <bruno@clisp.org>
16466
16467         * gnulib-tool (func_usage): Clarify which options are available for
16468         --create-testdir and --create-megatestdir.
16469
16470 2010-03-13  Bruno Haible  <bruno@clisp.org>
16471
16472         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
16473         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
16474         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
16475         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16476         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
16477         when appropriate.
16478         Reported by Jim Meyering.
16479
16480 2010-03-12  Simon Josefsson  <simon@josefsson.org>
16481
16482         * gnulib-tool (func_import): Explain origin of code.
16483
16484 2010-03-12  Bruno Haible  <bruno@clisp.org>
16485
16486         Fix problem with automake's definition of CXXLINK.
16487         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
16488         Reported by Simon Josefsson and Ludovic Courtès.
16489
16490 2010-03-12  Bruno Haible  <bruno@clisp.org>
16491
16492         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
16493         stable releases.
16494
16495 2010-03-11  Bruno Haible  <bruno@clisp.org>
16496
16497         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
16498         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
16499         whether the system provides one variant or multiple variants of the
16500         function.
16501         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
16502         C++ compilers.
16503         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
16504         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
16505         Reported by Jim Meyering.
16506
16507 2010-03-09  Simon Josefsson  <simon@josefsson.org>
16508
16509         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
16510
16511 2010-03-08  Bruno Haible  <bruno@clisp.org>
16512
16513         gnulib-tool: Add support for --libtool in --create-testdir.
16514         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
16515         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
16516
16517 2010-03-08  Eric Blake  <eblake@redhat.com>
16518
16519         gnulib-tool.texi: mention possibility of git submodule
16520         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
16521         submodules.
16522         * doc/.gitignore: Ignore another generated file.
16523
16524 2010-03-08  Karl Berry  <karl@gnu.org>
16525
16526         * doc/gnulib-tool.texi (VCS Issues): Mention third option
16527         of committing gnulib files while skipping others.
16528
16529 2010-03-07  Bruno Haible  <bruno@clisp.org>
16530
16531         Tests of module 'wctype' in C++ mode.
16532         * tests/test-wctype-c++.cc: New file.
16533         * modules/wctype-tests (Files): Add it and tests/signature.h.
16534         (Depends-on): Add ansi-c++-opt.
16535         (Makefile.am): Arrange to compile and run test-wctype-c++.
16536
16537         Tests of module 'wchar' in C++ mode.
16538         * tests/test-wchar-c++.cc: New file.
16539         * modules/wchar-tests (Files): Add it and tests/signature.h.
16540         (Depends-on): Add ansi-c++-opt.
16541         (Makefile.am): Arrange to compile and run test-wchar-c++.
16542         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
16543         gl_MODULE_INDICATOR.
16544
16545         Tests of module 'unistd' in C++ mode.
16546         * tests/test-unistd-c++.cc: New file.
16547         * modules/unistd-tests (Files): Add it and tests/signature.h.
16548         (Depends-on): Add ansi-c++-opt.
16549         (Makefile.am): Arrange to compile and run test-unistd-c++.
16550         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
16551         gl_MODULE_INDICATOR.
16552
16553         Tests of module 'time' in C++ mode.
16554         * tests/test-time-c++.cc: New file.
16555         * modules/time-tests (Files): Add it and tests/signature.h.
16556         (Depends-on): Add ansi-c++-opt.
16557         (Makefile.am): Arrange to compile and run test-time-c++.
16558         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16559
16560         Tests of module 'sys_time' in C++ mode.
16561         * tests/test-sys_time-c++.cc: New file.
16562         * modules/sys_time-tests (Files): Add it and tests/signature.h.
16563         (Depends-on): Add ansi-c++-opt.
16564         (Makefile.am): Arrange to compile and run test-sys_time-c++.
16565         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
16566         gl_MODULE_INDICATOR.
16567
16568         Tests of module 'sys_stat' in C++ mode.
16569         * tests/test-sys_stat-c++.cc: New file.
16570         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
16571         (Depends-on): Add ansi-c++-opt.
16572         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
16573         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
16574         gl_MODULE_INDICATOR.
16575
16576         Tests of module 'sys_socket' in C++ mode.
16577         * tests/test-sys_socket-c++.cc: New file.
16578         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
16579         (Depends-on): Add ansi-c++-opt.
16580         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
16581         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
16582         gl_MODULE_INDICATOR.
16583
16584         Tests of module 'sys_select' in C++ mode.
16585         * tests/test-sys_select-c++.cc: New file.
16586         * modules/sys_select-tests (Files): Add it and tests/signature.h.
16587         (Depends-on): Add ansi-c++-opt.
16588         (Makefile.am): Arrange to compile and run test-sys_select-c++.
16589         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
16590         gl_MODULE_INDICATOR.
16591
16592         Tests of module 'sys_ioctl' in C++ mode.
16593         * tests/test-sys_ioctl-c++.cc: New file.
16594         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
16595         (Depends-on): Add ansi-c++-opt.
16596         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
16597         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
16598         gl_MODULE_INDICATOR.
16599
16600         Tests of module 'string' in C++ mode.
16601         * tests/test-string-c++.cc: New file.
16602         * modules/string-tests (Files): Add it and tests/signature.h.
16603         (Depends-on): Add ansi-c++-opt.
16604         (Makefile.am): Arrange to compile and run test-string-c++.
16605         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
16606         gl_MODULE_INDICATOR.
16607
16608         Tests of module 'stdlib' in C++ mode.
16609         * tests/test-stdlib-c++.cc: New file.
16610         * modules/stdlib-tests (Files): Add it and tests/signature.h.
16611         (Depends-on): Add ansi-c++-opt.
16612         (Makefile.am): Arrange to compile and run test-stdlib-c++.
16613         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
16614         gl_MODULE_INDICATOR.
16615
16616         Tests of module 'stdio' in C++ mode.
16617         * tests/test-stdio-c++.cc: New file.
16618         * modules/stdio-tests (Files): Add it and tests/signature.h.
16619         (Depends-on): Add ansi-c++-opt.
16620         (Makefile.am): Arrange to compile and run test-stdio-c++.
16621         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
16622         gl_MODULE_INDICATOR.
16623
16624         Tests of module 'spawn' in C++ mode.
16625         * tests/test-spawn-c++.cc: New file.
16626         * modules/spawn-tests (Files): Add it and tests/signature.h.
16627         (Depends-on): Add ansi-c++-opt.
16628         (Makefile.am): Arrange to compile and run test-spawn-c++.
16629         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
16630         gl_MODULE_INDICATOR.
16631
16632         Tests of module 'signal' in C++ mode.
16633         * tests/test-signal-c++.cc: New file.
16634         * modules/signal-tests (Files): Add it and tests/signature.h.
16635         (Depends-on): Add ansi-c++-opt.
16636         (Makefile.am): Arrange to compile and run test-signal-c++.
16637         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
16638         gl_MODULE_INDICATOR.
16639
16640         Tests of module 'search' in C++ mode.
16641         * tests/test-search-c++.cc: New file.
16642         * modules/search-tests (Files): Add it and tests/signature.h.
16643         (Depends-on): Add ansi-c++-opt.
16644         (Makefile.am): Arrange to compile and run test-search-c++.
16645         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
16646         gl_MODULE_INDICATOR.
16647
16648         Tests of module 'math' in C++ mode.
16649         * tests/test-math-c++.cc: New file.
16650         * modules/math-tests (Files): Add it and tests/signature.h.
16651         (Depends-on): Add ansi-c++-opt.
16652         (Makefile.am): Arrange to compile and run test-math-c++.
16653         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16654
16655         Tests of module 'locale' in C++ mode.
16656         * tests/test-locale-c++.cc: New file.
16657         * modules/locale-tests (Files): Add it and tests/signature.h.
16658         (Depends-on): Add ansi-c++-opt.
16659         (Makefile.am): Arrange to compile and run test-locale-c++.
16660         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
16661         gl_MODULE_INDICATOR.
16662
16663         Tests of module 'langinfo' in C++ mode.
16664         * tests/test-langinfo-c++.cc: New file.
16665         * modules/langinfo-tests (Files): Add it and tests/signature.h.
16666         (Depends-on): Add ansi-c++-opt.
16667         (Makefile.am): Arrange to compile and run test-langinfo-c++.
16668         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
16669         gl_MODULE_INDICATOR.
16670
16671         Tests of module 'iconv-h' in C++ mode.
16672         * tests/test-iconv-h-c++.cc: New file.
16673         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
16674         (Depends-on): Add ansi-c++-opt.
16675         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
16676
16677         Tests of module 'glob' in C++ mode.
16678         * tests/test-glob-c++.cc: New file.
16679         * modules/glob-tests (Files): Add it.
16680         (Depends-on): Add ansi-c++-opt.
16681         (Makefile.am): Arrange to compile and run test-glob-c++.
16682
16683         Tests of module 'fcntl-h' in C++ mode.
16684         * tests/test-fcntl-h-c++.cc: New file.
16685         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
16686         (Depends-on): Add ansi-c++-opt.
16687         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
16688         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
16689         gl_MODULE_INDICATOR.
16690
16691         Tests of module 'dirent' in C++ mode.
16692         * tests/test-dirent-c++.cc: New file.
16693         * modules/dirent-tests (Files): Add it and tests/signature.h.
16694         (Depends-on): Add ansi-c++-opt.
16695         (Makefile.am): Arrange to compile and run test-dirent-c++.
16696         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16697         gl_MODULE_INDICATOR.
16698
16699         New module 'ansi-c++-opt'.
16700         * modules/ansi-c++-opt: New file.
16701         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
16702
16703         Document C++ namespace mode.
16704         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
16705
16706         wctype: Avoid #define replacements in C++ mode.
16707         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
16708         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
16709         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
16710         In C++, define a namespaced alias symbol.
16711         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
16712         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
16713         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
16714         rule.
16715
16716         wchar: Avoid #define replacements in C++ mode.
16717         * lib/wchar.in.h: Include c++defs.h.
16718         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
16719         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
16720         symbol.
16721         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
16722         * modules/wchar (Depends-on): Add c++defs.
16723         (Makefile.am): Update wchar.h rule.
16724
16725         unistd: Avoid #define replacements in C++ mode.
16726         * lib/unistd.in.h: Include c++defs.h.
16727         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
16728         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
16729         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
16730         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
16731         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
16732         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
16733         symbol.
16734         (environ): Update.
16735         * modules/unistd (Depends-on): Add c++defs.
16736         (Makefile.am): Update unistd.h rule.
16737
16738         time: Avoid #define replacements in C++ mode.
16739         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
16740         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
16741         define a namespaced alias symbol.
16742         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
16743         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
16744         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
16745         * modules/time (Depends-on): Add c++defs, warn-on-use.
16746         (Makefile.am): Update time.h rule.
16747         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16748         * modules/nanosleep (configure.ac): Likewise.
16749         * modules/strptime (configure.ac): Likewise.
16750         * modules/timegm (configure.ac): Likewise.
16751
16752         sys_time: Avoid #define replacements in C++ mode.
16753         * lib/sys_time.in.h: Include c++defs.h.
16754         (gettimeofday): In C++, define a namespaced alias symbol.
16755         * modules/sys_time (Depends-on): Add c++defs.
16756         (Makefile.am): Update sys/time.h rule.
16757
16758         sys_stat: Avoid #define replacements in C++ mode.
16759         * lib/sys_stat.in.h: Include c++defs.h.
16760         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
16761         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
16762         namespaced alias symbol.
16763         In C++, define a namespaced alias symbol.
16764         * modules/sys_stat (Depends-on): Add c++defs.
16765         (Makefile.am): Update sys/stat.h rule.
16766
16767         sys_socket: Avoid #define replacements in C++ mode.
16768         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
16769         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
16770         definitions also when the system has a <sys/socket.h>.
16771         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16772         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
16773         In C++, define a namespaced alias symbol.
16774         * modules/sys_socket (Depends-on): Add c++defs.
16775         (Makefile.am): Update sys/socket.h rule.
16776
16777         sys_select: Avoid #define replacements in C++ mode.
16778         * lib/sys_select.in.h: Include c++defs.h. Enable the function
16779         definitions also when the system has a <sys/select.h>.
16780         (select): In C++, define a namespaced alias symbol.
16781         * modules/sys_select (Depends-on): Add c++defs.
16782         (Makefile.am): Update sys/select.h rule.
16783
16784         sys_ioctl: Avoid #define replacements in C++ mode.
16785         * lib/sys_ioctl.in.h: Include c++defs.h.
16786         (ioctl): In C++, define a namespaced alias symbol.
16787         * modules/sys_ioctl (Depends-on): Add c++defs.
16788         (Makefile.am): Update sys/ioctl.h rule.
16789
16790         string: Avoid #define replacements in C++ mode.
16791         * lib/string.in.h: Include c++defs.h.
16792         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
16793         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16794         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16795         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
16796         strsignal, strverscmp): In C++, define a namespaced alias symbol.
16797         * modules/string (Depends-on): Add c++defs.
16798         (Makefile.am): Update string.h rule.
16799
16800         stdlib: Avoid #define replacements in C++ mode.
16801         * lib/stdlib.in.h: Include c++defs.h.
16802         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
16803         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
16804         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
16805         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
16806         symbol.
16807         * modules/stdlib (Depends-on): Add c++defs.
16808         (Makefile.am): Update stdlib.h rule.
16809
16810         stdio: Avoid #define replacements in C++ mode.
16811         * lib/stdio.in.h: Include c++defs.h.
16812         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
16813         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
16814         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
16815         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
16816         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
16817         namespaced alias symbol.
16818         * modules/stdio (Depends-on): Add c++defs.
16819         (Makefile.am): Update stdio.h rule.
16820
16821         spawn: Avoid #define replacements in C++ mode.
16822         * lib/spawn.in.h: Include c++defs.h.
16823         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16824         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16825         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16826         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16827         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16828         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16829         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16830         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16831         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16832         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16833         In C++, define a namespaced alias symbol.
16834         * modules/spawn (Depends-on): Add c++defs.
16835         (Makefile.am): Update spawn.h rule.
16836
16837         signal: Avoid #define replacements in C++ mode.
16838         * lib/signal.in.h: Include c++defs.h.
16839         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16840         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
16841         namespaced alias symbol.
16842         * modules/signal (Depends-on): Add c++defs.
16843         (Makefile.am): Update signal.h rule.
16844
16845         search: Avoid #define replacements in C++ mode.
16846         * lib/search.in.h: Include c++defs.h.
16847         (_gl_search_compar_fn, _gl_search_action_fn): New types.
16848         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
16849         symbol.
16850         * modules/search (Depends-on): Add c++defs.
16851         (Makefile.am): Update search.h rule.
16852
16853         math: Avoid #define replacements in C++ mode.
16854         * lib/math.in.h: Include c++defs.h.
16855         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
16856         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
16857         trunc, truncl): In C++, define a namespaced alias symbol.
16858         * modules/math (Depends-on): Add c++defs.
16859         (Makefile.am): Update math.h rule.
16860
16861         locale: Avoid #define replacements in C++ mode.
16862         * lib/locale.in.h: Include c++defs.h.
16863         (duplocale): In C++, define a namespaced alias symbol.
16864         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
16865         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
16866         * modules/locale (Depends-on): Add c++defs.
16867         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
16868
16869         langinfo: Avoid #define replacements in C++ mode.
16870         * lib/langinfo.in.h: Include c++defs.h.
16871         (nl_langinfo): In C++, define a namespaced alias symbol.
16872         * modules/langinfo (Depends-on): Add c++defs.
16873         (Makefile.am): Update langinfo.h rule.
16874
16875         iconv-h: Avoid #define replacements in C++ mode.
16876         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
16877         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
16878         symbol.
16879         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
16880         whenever iconv is present.
16881         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
16882         (Makefile.am): Update iconv.h rule.
16883
16884         glob: Avoid #define replacements in C++ mode.
16885         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
16886         (_gl_glob_errfunc_fn): New type.
16887         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
16888         symbol.
16889         * modules/glob (Depends-on): Add c++defs, warn-on-use.
16890         (Makefile.am): Update glob.h rule.
16891
16892         fcntl-h: Avoid #define replacements in C++ mode.
16893         * lib/fcntl.in.h: Include c++defs.h.
16894         (fcntl, open, openat): In C++, define a namespaced alias symbol.
16895         * modules/fcntl-h (Depends-on): Add c++defs.
16896         (Makefile.am): Update fcntl.h rule.
16897
16898         dirent: Avoid #define replacements in C++ mode.
16899         * lib/dirent.in.h: Include c++defs.h.
16900         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
16901         namespaced alias symbol.
16902         (dirfd): Update declaration.
16903         * modules/dirent (Depends-on): Add c++defs.
16904         (Makefile.am): Update dirent.h rule.
16905
16906         ctype: Make it usable in C++ code.
16907         * lib/ctype.in.h: Include c++defs.h.
16908         (isblank): Declare as extern "C".
16909         * modules/ctype (Depends-on): Add c++defs.
16910         (Makefile.am): Update ctype.h rule.
16911
16912         New module 'c++defs'.
16913         * modules/c++defs: New file.
16914         * build-aux/c++defs.h: New file.
16915         Reported by John W. Eaton <jwe@gnu.org>.
16916
16917 2010-03-07  Bruno Haible  <bruno@clisp.org>
16918
16919         logb: Provide missing declaration for Cygwin.
16920         * lib/math.in.h (logb): New declaration.
16921         * m4/logb.m4: New file.
16922         * modules/logb (Files): Add m4/logb.m4.
16923         (Depends-on): Add math.
16924         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
16925         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
16926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
16927         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
16928         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
16929
16930 2010-03-07  Bruno Haible  <bruno@clisp.org>
16931
16932         Fix test-cond link error.
16933         * tests/test-cond.c: Include <stdio.h>.
16934
16935 2010-03-07  Bruno Haible  <bruno@clisp.org>
16936
16937         Fix test-dirent-safer link error.
16938         * modules/dirent-safer-tests (Makefile.am): Define
16939         test_dirent_safer_LDADD.
16940
16941 2010-03-07  Bruno Haible  <bruno@clisp.org>
16942
16943         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
16944         among default module list.
16945
16946 2010-03-07  Bruno Haible  <bruno@clisp.org>
16947
16948         Fix link error on platforms with GNU libiconv.
16949         * modules/unistr/u8-strcoll-tests (Makefile): Define
16950         test_u8_strcoll_LDADD.
16951         * modules/unistr/u16-strcoll-tests (Makefile): Define
16952         test_u16_strcoll_LDADD.
16953         * modules/unistr/u32-strcoll-tests (Makefile): Define
16954         test_u32_strcoll_LDADD.
16955
16956 2010-03-07  Bruno Haible  <bruno@clisp.org>
16957
16958         Use POSIX declarations for socket functions.
16959         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
16960         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
16961         rpl_sendto): Change declaration to match POSIX.
16962         * lib/connect.c (rpl_connect): Likewise.
16963         * lib/accept.c (rpl_accept): Likewise.
16964         * lib/bind.c (rpl_bind): Likewise.
16965         * lib/getpeername.c (rpl_getpeername): Likewise.
16966         * lib/getsockname.c (rpl_getsockname): Likewise.
16967         * lib/recv.c (rpl_recv): Likewise.
16968         * lib/send.c (rpl_send): Likewise.
16969         * lib/recvfrom.c (rpl_recvfrom): Likewise.
16970         * lib/sendto.c (rpl_sendto): Likewise.
16971
16972 2010-03-06  Bruno Haible  <bruno@clisp.org>
16973
16974         Clarify access, euidaccess, faccessat.
16975         * doc/posix-functions/faccessat.texi: Mention security problem under
16976         "Other problems", not "Portability problems".
16977         * doc/posix-functions/access.texi: Likewise. Mention a related security
16978         problem.
16979         * doc/glibc-functions/euidaccess.texi: Mention security problems.
16980         * lib/euidaccess.c: Add comments about platforms.
16981         * lib/unistd.in.h (access, euidaccess): Add warnings.
16982
16983 2010-03-07  Bruno Haible  <bruno@clisp.org>
16984
16985         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
16986         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
16987         (POSIX_SPAWN_SETSCHEDULER): Likewise.
16988         (POSIX_SPAWN_USEVFORK): Define in a way that works when
16989         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16990         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
16991         declare when POSIX_SPAWN_SETSCHEDULER is zero.
16992         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
16993         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
16994         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
16995         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
16996         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
16997         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
16998         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
16999         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
17000         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
17001         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
17002         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
17003         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
17004         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
17005         Likewise.
17006         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
17007         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
17008         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
17009         Likewise.
17010         * tests/test-spawn.c (main): Make it work when
17011         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17012
17013 2010-03-07  Bruno Haible  <bruno@clisp.org>
17014
17015         Fix incorrect Makefile.am generation in German locale.
17016         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17017         Execute sed command with character range in C locale.
17018
17019 2010-03-06  Bruno Haible  <bruno@clisp.org>
17020
17021         Tests for module 'iconv-h'.
17022         * modules/iconv-h-tests: New file.
17023         * tests/test-iconv-h.c: New file.
17024
17025         New module 'iconv-h'.
17026         * modules/iconv-h: New file.
17027         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
17028         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
17029         (configure.ac): Remove gl_ICONV_H.
17030         (Makefile.am): Remove rule for iconv.h.
17031
17032 2010-03-06  Bruno Haible  <bruno@clisp.org>
17033
17034         More consistent naming of *.m4 files.
17035         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
17036         * modules/wctype (Files): Update.
17037
17038         More consistent naming of *.m4 files.
17039         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
17040         * modules/wchar (Files): Update.
17041
17042 2010-03-06  Jim Meyering  <meyering@redhat.com>
17043
17044         euidaccess: relax license to LGPLv2+
17045         * modules/euidaccess (License): Relax to LGPLv2+.
17046
17047 2010-03-06  Bruno Haible  <bruno@clisp.org>
17048
17049         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
17050         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
17051         (Makefile.am): Augment lib_SOURCES instead.
17052
17053 2010-03-04  Jim Meyering  <meyering@redhat.com>
17054
17055         utime: remove obsolete module
17056         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
17057         unnecessary for years, and has been marked as obsolete for 10 months.
17058         * modules/utime: Remove file.
17059         * lib/utime.c: Remove file.
17060         * m4/utime.m4: Remove file.
17061         * m4/utimes-null.m4: Remove file.
17062         * doc/posix-functions/utime.texi (utime): Remove reference to
17063         the module.  Move the sole "fixed by gnulib" item into the
17064         "problems not fixed by Gnulib" list.
17065         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
17066
17067 2010-03-05  Simon Josefsson  <simon@josefsson.org>
17068
17069         * modules/exit (License): Relax license to LGPLv2+.
17070         (Status): Mark as obsolete.
17071         * NEWS: Mention deprecated 'exit' module.
17072         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
17073         of now obsolete 'exit'.
17074
17075 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17076
17077         fts-lgpl: remove unused module
17078         * modules/fts-lgpl: Remove.
17079         * MODULES.html.sh (func_all_modules): Adjust.
17080         * check-module (find_included_lib_files): Adjust.
17081         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
17082
17083 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
17084
17085         copy-acl: enhance Solaris ACL error handling
17086         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
17087         * lib/set-mode-acl.c (qset_acl): Likewise.
17088
17089 2010-03-02  Bruno Haible  <bruno@clisp.org>
17090
17091         spawn: Don't override the system defined values on FreeBSD 8.
17092         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
17093         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
17094         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
17095         if HAVE_POSIX_SPAWN is 1.
17096         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
17097
17098 2010-03-01  Bruno Haible  <bruno@clisp.org>
17099
17100         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
17101         regarding Automake.
17102
17103 2010-02-25  Bruno Haible  <bruno@clisp.org>
17104
17105         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
17106         * gnulib-tool: Define 'echo' as a function only before the ksh alias
17107         setting, not afterwards.
17108         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
17109
17110 2010-02-24  Eric Blake  <eblake@redhat.com>
17111
17112         bootstrap, git-version-gen: use timestamp
17113         * build-aux/git-version-gen (scriptversion): Force UTC.
17114         * build-aux/bootstrap (scriptversion): New variable.
17115
17116         bootstrap: allow older git
17117         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
17118         older than 1.6.4.  Requested by the libvirt project.
17119
17120 2010-02-23  Eric Blake  <eblake@redhat.com>
17121
17122         warn-on-use: work with old autoconf
17123         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
17124         AS_VAR semantics of autoconf 2.60.
17125         Reported by Bruno Haible.
17126
17127         bootstrap: improve some comments
17128         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
17129         clarification comments.
17130
17131         gettimeofday: provide correct function
17132         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
17133         when replacement is declared, otherwise provide gettimeofday.
17134         Reported by Michael Goffioul.
17135
17136 2010-02-23  Jim Meyering  <meyering@redhat.com>
17137
17138         lib-ignore: relax license to "unlimited", not LGPLv2+
17139         * modules/lib-ignore (License): Relax to "unlimited".
17140
17141 2010-02-23  Jim Meyering  <meyering@redhat.com>
17142
17143         lib-ignore: relax license to LGPLv2+
17144         * modules/lib-ignore (License): Relax to LGPLv2+.
17145
17146 2010-02-22  Eric Blake  <eblake@redhat.com>
17147
17148         lseek: avoid bash 3.2 broken pipe bug
17149         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
17150         warning from bash 3.2.
17151         Reported by Ben Pfaff, with analysis from Bruno Haible.
17152
17153         bootstrap: support non-FSF copyright holder
17154         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
17155         bootstrap.conf override of COPYRIGHT_HOLDER.
17156         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
17157
17158         bootstrap: interoperate with gettext 0.14.1
17159         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
17160
17161         bootstrap: allow for alternate submodule location
17162         * build-aux/bootstrap (gnulib_path): New variable; use instead of
17163         hardcoding submodule location.
17164         (gnulib_mk): Allow direct use of Makefile.am.
17165
17166         bootstrap: use GNULIB_SRCDIR to reduce disk usage
17167         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
17168         rather than reconfiguring where the submodule points.
17169
17170         gettimeofday: restore support for platforms that lack function
17171         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
17172         replacement if function is missing.
17173         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
17174         * modules/sys_time (Makefile.am): Substitute it.
17175         * lib/sys_time.in.h (gettimeofday): Check it.
17176         Reported by Michael Goffioul.
17177
17178 2010-02-21  Bruno Haible  <bruno@clisp.org>
17179
17180         * lib/stdio.in.h (obstack_printf): Fix typo.
17181
17182 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
17183
17184         vc-list-files: use bzr ls's -R option
17185         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
17186         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
17187
17188 2010-02-21  Jim Meyering  <meyering@redhat.com>
17189
17190         init.sh: fix EXEEXT shims to work also for names like test-prog
17191         * tests/init.sh: Re-exec a better shell, when needed.
17192         If the current shell lacks support for posix $(...), an init.sh-using
17193         test will now try to find a shell that supports that.  If EXEEXT is
17194         nonempty, we also require support for hyphen-in-alias-name and shell
17195         substitutions like ${var#glob}.  Failure to find such a shell results
17196         in a skipped test.
17197
17198 2010-02-21  Bruno Haible  <bruno@clisp.org>
17199
17200         Really work around around "broken pipe" error message from bash 3.2.
17201         * gnulib-tool (func_reset_sigpipe): Remove function.
17202         (echo): In bash 3.2, define to a function that uses printf.
17203         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
17204
17205 2010-02-20  Bruno Haible  <bruno@clisp.org>
17206
17207         Restore support for automake 1.9.6 with autoconf 2.61.
17208         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
17209         Reported by James Youngman <jay@gnu.org>.
17210
17211 2010-02-20  Bruno Haible  <bruno@clisp.org>
17212
17213         Improve *printf warning condition.
17214         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
17215         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
17216         and the function is overridden due to SIGPIPE emulation.
17217
17218 2010-02-20  Bruno Haible  <bruno@clisp.org>
17219
17220         * lib/stdio.in.h: Tweak comments.
17221
17222 2010-02-19  Bruno Haible  <bruno@clisp.org>
17223
17224         Make it easier to find modules. New gnulib-tool option '--find'.
17225         * gnulib-tool: New option --find.
17226         (func_usage): Document it.
17227         (func_sanitize_modulelist): New function, extracted from
17228         func_all_modules.
17229         (func_all_modules): Invoke it.
17230         * doc/gnulib-tool.texi (Which modules?): New node.
17231
17232 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
17233
17234         * lib/sys_select.in.h: Provide select replacement even if
17235         sys/select.h exists on a system, for Interix.
17236
17237 2010-02-18  Jim Meyering  <meyering@redhat.com>
17238
17239         init.sh: don't use $(...) just yet
17240         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
17241         to accommodate e.g., Solaris' /bin/sh.
17242
17243 2010-02-17  Bruno Haible  <bruno@clisp.org>
17244
17245         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
17246         Reported by Ludovic Courtès <ludo@gnu.org>.
17247
17248 2010-02-16  Simon Josefsson  <simon@josefsson.org>
17249
17250         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
17251         linking with -lintl.
17252
17253 2010-02-17  Simon Josefsson  <simon@josefsson.org>
17254
17255         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
17256         if not provided by the system's netdb.h.  Reported by
17257         ludo@gnu.org (Ludovic Courtès).
17258
17259 2010-02-15  Jim Meyering  <meyering@redhat.com>
17260
17261         init.sh: improve portability and efficiency
17262         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
17263         "dummy" in a for loop.
17264         Use '!', not '^' to select the complement of a character set used
17265         in a "case" statement.
17266         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
17267         Suggestions from Eric Blake.
17268
17269         init.sh: automatically accommodate programs with the .exe suffix
17270         Automatically arrange for an invocation of "prog" to execute the
17271         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
17272         may use the simpler "prog", yet still work when built on a system
17273         that requires specifying the added suffix.
17274         Do this by constructing a function named "prog" that invokes
17275         "prog.exe" for each .exe file in selected directories.
17276         * tests/init.sh (find_exe_basenames_): New function.
17277         (create_exe_shim_functions_): New function.
17278         (path_prepend_): Use it.
17279
17280         maint.mk: mark syntax-check sc_*.m rules as .PHONY
17281         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
17282         "make -t syntax-check" doesn't create a ton of sc_*.m files.
17283
17284 2010-02-14  Jim Meyering  <meyering@redhat.com>
17285
17286         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
17287         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
17288         (sc_prohibit_hash_pjw_without_use): New rule.
17289
17290         maint.mk: allow the default upload destination dir to be overridden
17291         * top/maint.mk (upload_dest_dir_): Define with a default that
17292         preserves the status quo.
17293         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
17294         Reported by Peter Simons.
17295
17296         maint.mk: prohibit inclusion of "hash.h" without_use
17297         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
17298
17299 2010-02-10  Jim Meyering  <meyering@redhat.com>
17300
17301         maint.mk: prohibit inclusion of "ignore-value.h" without_use
17302         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
17303
17304 2010-02-09  Eric Blake  <ebb9@byu.net>
17305         and Bruno Haible  <bruno@clisp.org>
17306
17307         obstack-printf-posix: ensure declaration
17308         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
17309         extracted from gl_FUNC_OBSTACK_PRINTF.
17310         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
17311         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
17312         Likewise.
17313         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
17314         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
17315         0.
17316
17317 2010-02-08  Bruno Haible  <bruno@clisp.org>
17318
17319         gnulib-tool: Fix typo in 2010-02-07 commit.
17320         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
17321         Reported by Eric Blake.
17322
17323 2010-02-07  Bruno Haible  <bruno@clisp.org>
17324
17325         gnulib-tool: Fix up caching patches.
17326         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
17327         option --no-cache. Use associative arrays when supported by the shell.
17328         (sed_comments): New variable.
17329         (modcache): Renamed from do_cache.
17330         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
17331         abbreviate unnecessarily.
17332         (have_associative): New variable.
17333         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
17334         way also for ksh and zsh.
17335         (func_init_sed_convert_to_cache_statements): New function, extracted
17336         from func_cache_lookup_module. Add support for associative arrays.
17337         Don't set the c_MODULE_cached variable here. Ignore all lines before
17338         the first field header. Remove only the final newline, not all trailing
17339         newlines. Support empty fields correctly. Limit the use of 'eval' to
17340         assignments.
17341         (func_get_description, func_get_status, func_get_notice,
17342         func_get_applicability, func_get_filelist, func_get_dependencies,
17343         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
17344         func_get_automake_snippet, func_get_include_directive,
17345         func_get_link_directive, func_get_license, func_get_maintainer):
17346         Update documentation. List the unoptimized code first. Add support for
17347         associative arrays. Limit the use of 'eval' to assignments.
17348         (func_get_applicability): Undo stylistic pessimisations.
17349         (func_get_automake_snippet, func_get_include_directive): Reduce code
17350         duplication.
17351         (func_modules_transitive_closure, func_modules_add_dummy,
17352         func_modules_notice, func_modules_to_filelist, func_add_file,
17353         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
17354         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
17355         func_create_testdir, func_create_megatestdir): Update documentation.
17356
17357 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17358
17359         * gnulib-tool (func_cache_lookup_module): Store the module name
17360         belonging to the cache variable; error out if two different
17361         module names map to the same cache variable name.
17362
17363 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17364
17365         gnulib-tool: Make caching optional.
17366         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
17367         Update matching short versions of --no-changelog.
17368         (func_usage): Update.
17369         (sed_extract_cache_prog): Renamed from ...
17370         (sed_extract_prog): ... this; revert to old extraction script.
17371         (func_get_description, func_get_status)
17372         (func_get_notice, func_get_applicability, func_get_filelist)
17373         (func_get_dependencies, func_get_autoconf_early_snippet)
17374         (func_get_autoconf_snippet, func_get_automake_snippet)
17375         (func_get_include_directive, func_get_link_directive)
17376         (func_get_license, func_get_maintainer): If $do_cache is false,
17377         use old, non-caching extraction scripts.
17378         Suggestion by Bruno Haible.
17379
17380 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17381
17382         gnulib-tool: cache module metainformation.
17383         * gnulib-tool (sed_extract_prog): Match newline before each
17384         header, and rewrite header to a shell variable suffix.
17385         (func_cache_var, func_cache_lookup_module): New functions,
17386         to turn a module name into a cache variable prefix, and to
17387         look up and cache module metainformation.
17388         (func_get_description, func_get_status)
17389         (func_get_notice, func_get_applicability, func_get_filelist)
17390         (func_get_dependencies, func_get_autoconf_early_snippet)
17391         (func_get_autoconf_snippet, func_get_automake_snippet)
17392         (func_get_include_directive, func_get_link_directive)
17393         (func_get_license, func_get_maintainer): Use
17394         func_cache_lookup_module.
17395
17396 2010-02-07  Bruno Haible  <bruno@clisp.org>
17397
17398         fnctl: Fix missing dependency.
17399         * modules/fcntl (Depends-on): Add getdtablesize.
17400         Reported by John W. Eaton <jwe@gnu.org>.
17401
17402 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17403
17404         Argp: fix recognition of short alias options.
17405
17406         * lib/argp-parse.c (convert_options): Fix improper use of
17407         `|' between character values.
17408         * tests/test-argp.c (group1_option): New alias option
17409         --read (-r).
17410         (group1_parser): Special handling for 'r'.
17411         (test15): New test case.
17412         (test_fun): Add test15.
17413         * tests/test-argp-2.sh: Update expected --help and --usage
17414         outputs.
17415
17416 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17417
17418         * tests/test-argp.c: Fix indentation.
17419
17420 2010-02-04  Eric Blake  <ebb9@byu.net>
17421
17422         gettimeofday: expose type of second argument
17423         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
17424         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
17425         * tests/test-gettimeofday.c: Use it to silence warning.
17426         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
17427         the issue.
17428
17429 2010-02-03  Jim Meyering  <meyering@redhat.com>
17430
17431         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
17432         * lib/regcomp.c (TYPE_SIGNED): Define.
17433         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
17434
17435         regcomp.c: avoid a new -Wshadow warning
17436         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
17437
17438 2010-02-01  Jim Meyering  <meyering@redhat.com>
17439
17440         removing useless parentheses in cpp #define directives
17441         For motivation, see commit c0221df4, "define STREQ(a,b)
17442         consistently, removing useless parentheses"
17443         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
17444         * lib/mountlist.c (MNT_IGNORE): Likewise.
17445         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
17446
17447 2010-02-01  Eric Blake  <ebb9@byu.net>
17448
17449         sys_time: use link-warning
17450         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
17451         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
17452         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
17453         * modules/sys_time (Depends-on): Add warn-on-use.
17454         (Makefile.am): Always build replacement.
17455         (configure.ac): Update substitutions.
17456         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
17457         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
17458         bother with SYS_TIME_H.
17459         * modules/gettimeofday (configure.ac): Declare indicator.
17460         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
17461         in use.
17462
17463         closein-tests: silence compiler warning
17464         * tests/test-closein.c (main): Ignore fread result.
17465         * modules/closein-tests (Depends-on): Add ignore-value.
17466
17467         tests: silence warning about system return
17468         * tests/test-areadlink-with-size.c (main): Ignore system result.
17469         * tests/test-areadlink.c (main): Likewise.
17470         * tests/test-areadlinkat-with-size.c (main): Likewise.
17471         * tests/test-areadlinkat.c (main): Likewise.
17472         * tests/test-canonicalize-lgpl.c (main): Likewise.
17473         * tests/test-canonicalize.c (main): Likewise.
17474         * tests/test-chown.c (main): Likewise.
17475         * tests/test-fchownat.c (main): Likewise.
17476         * tests/test-fdutimensat.c (main): Likewise.
17477         * tests/test-fstatat.c (main): Likewise.
17478         * tests/test-futimens.c (main): Likewise.
17479         * tests/test-lchown.c (main): Likewise.
17480         * tests/test-link.c (main): Likewise.
17481         * tests/test-linkat.c (main): Likewise.
17482         * tests/test-lstat.c (main): Likewise.
17483         * tests/test-mkdir.c (main): Likewise.
17484         * tests/test-mkdirat.c (main): Likewise.
17485         * tests/test-mkfifo.c (main): Likewise.
17486         * tests/test-mkfifoat.c (main): Likewise.
17487         * tests/test-mknod.c (main): Likewise.
17488         * tests/test-readlink.c (main): Likewise.
17489         * tests/test-remove.c (main): Likewise.
17490         * tests/test-rename.c (main): Likewise.
17491         * tests/test-renameat.c (main): Likewise.
17492         * tests/test-rmdir.c (main): Likewise.
17493         * tests/test-symlink.c (main): Likewise.
17494         * tests/test-symlinkat.c (main): Likewise.
17495         * tests/test-unlink.c (main): Likewise.
17496         * tests/test-unlinkat.c (main): Likewise.
17497         * tests/test-utimens.c (main): Likewise.
17498         * tests/test-utimensat.c (main): Likewise.
17499         * modules/areadlink-tests (Depends-on): Add ignore-value.
17500         * modules/areadlink-with-size-tests (Depends-on): Likewise.
17501         * modules/areadlinkat-tests (Depends-on): Likewise.
17502         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
17503         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17504         * modules/canonicalize-tests (Depends-on): Likewise.
17505         * modules/chown-tests (Depends-on): Likewise.
17506         * modules/fdutimensat-tests (Depends-on): Likewise.
17507         * modules/futimens-tests (Depends-on): Likewise.
17508         * modules/lchown-tests (Depends-on): Likewise.
17509         * modules/link-tests (Depends-on): Likewise.
17510         * modules/linkat-tests (Depends-on): Likewise.
17511         * modules/lstat-tests (Depends-on): Likewise.
17512         * modules/mkdir-tests (Depends-on): Likewise.
17513         * modules/mkfifo-tests (Depends-on): Likewise.
17514         * modules/mkfifoat-tests (Depends-on): Likewise.
17515         * modules/mknod-tests (Depends-on): Likewise.
17516         * modules/openat-tests (Depends-on): Likewise.
17517         * modules/readlink-tests (Depends-on): Likewise.
17518         * modules/remove-tests (Depends-on): Likewise.
17519         * modules/rename-tests (Depends-on): Likewise.
17520         * modules/renameat-tests (Depends-on): Likewise.
17521         * modules/rmdir-tests (Depends-on): Likewise.
17522         * modules/symlink-tests (Depends-on): Likewise.
17523         * modules/symlinkat-tests (Depends-on): Likewise.
17524         * modules/unlink-tests (Depends-on): Likewise.
17525         * modules/utimens-tests (Depends-on): Likewise.
17526         * modules/utimensat-tests (Depends-on): Likewise.
17527
17528 2010-01-31  Bruno Haible  <bruno@clisp.org>
17529
17530         Perform the same test for many <math.h> functions.
17531         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
17532         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
17533         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
17534         of gl_MATHFUNC.
17535         * modules/acos (configure.ac): Likewise.
17536         * modules/asin (configure.ac): Likewise.
17537         * modules/atan (configure.ac): Likewise.
17538         * modules/atan2 (configure.ac): Likewise.
17539         * modules/cbrt (configure.ac): Likewise.
17540         * modules/copysign (configure.ac): Likewise.
17541         * modules/cos (configure.ac): Likewise.
17542         * modules/cosh (configure.ac): Likewise.
17543         * modules/erf (configure.ac): Likewise.
17544         * modules/erfc (configure.ac): Likewise.
17545         * modules/exp (configure.ac): Likewise.
17546         * modules/fmod (configure.ac): Likewise.
17547         * modules/hypot (configure.ac): Likewise.
17548         * modules/j0 (configure.ac): Likewise.
17549         * modules/j1 (configure.ac): Likewise.
17550         * modules/jn (configure.ac): Likewise.
17551         * modules/lgamma (configure.ac): Likewise.
17552         * modules/log (configure.ac): Likewise.
17553         * modules/log10 (configure.ac): Likewise.
17554         * modules/log1p (configure.ac): Likewise.
17555         * modules/pow (configure.ac): Likewise.
17556         * modules/remainder (configure.ac): Likewise.
17557         * modules/sin (configure.ac): Likewise.
17558         * modules/sinh (configure.ac): Likewise.
17559         * modules/tan (configure.ac): Likewise.
17560         * modules/tanh (configure.ac): Likewise.
17561         * modules/y0 (configure.ac): Likewise.
17562         * modules/y1 (configure.ac): Likewise.
17563         * modules/yn (configure.ac): Likewise.
17564         Suggested by Paolo Bonzini.
17565
17566 2010-01-31  Bruno Haible  <bruno@clisp.org>
17567
17568         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
17569
17570 2010-01-31  Bruno Haible  <bruno@clisp.org>
17571
17572         Work around getdelim() bug on FreeBSD 8.0.
17573         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
17574         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
17575         not work.
17576         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
17577         is 1.
17578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
17579         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
17580         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
17581         a non-zero size.
17582         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
17583
17584 2010-01-31  Bruno Haible  <bruno@clisp.org>
17585
17586         Work around getline() bug on FreeBSD 8.0.
17587         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
17588         and a non-zero size.
17589         * tests/test-getline.c (main): Likewise.
17590         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
17591         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
17592
17593 2010-01-28  Eric Blake  <ebb9@byu.net>
17594
17595         regex: fix build failure
17596         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
17597         platforms.
17598
17599 2010-01-28  Jim Meyering  <meyering@redhat.com>
17600
17601         regex: do not ignore memory allocation failure
17602         * lib/regex_internal.c (create_cd_newstate): Detect
17603         re_node_set_init_copy failure.   Extracted from glibc commit
17604         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17605
17606         regex: sync more white-space changes from libc
17607         * lib/regex_internal.c: White-space only changes.
17608         * lib/regexec.c: Likewise.
17609
17610         regex: add many uses of __attribute_warn_unused_result__
17611         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
17612         * lib/regexec.c: Likewise.
17613         Extracted from a messy glibc commit.
17614
17615         regcomp.c: spelling and merge-artifact from glibc
17616         * lib/regcomp.c: Merge remainder of glibc's
17617         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17618
17619         regcomp.c: sync white-space changes from glibc
17620         * lib/regcomp.c: Merge to accommodate white space
17621         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17622
17623         regcomp.c: do not ignore internal return values
17624         * lib/regcomp.c: Do not ignore internal return values.
17625         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
17626         but without its white-space changes and spelling fixes.
17627
17628         regex_internal.h: define __attribute_warn_unused_result__
17629         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
17630
17631         maint: add a syntax-check rule to check for vulnerable Makefile.in
17632         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
17633
17634 2010-01-27  Jim Meyering  <meyering@redhat.com>
17635
17636         ncftpput-ftp: clean up spaces
17637         * build-aux/ncftpput-ftp: Make Copyright line consistent.
17638         Remove trailing blanks.
17639
17640 2010-01-27  Simon Josefsson  <simon@josefsson.org>
17641
17642         * build-aux/git-version-gen: Fix copyright statement.
17643         * build-aux/gnupload: Likewise.
17644         * tests/test-arcfour.c: Likewise.
17645         * tests/test-arctwo.c: Likewise.
17646         * tests/test-count-one-bits.c: Likewise.
17647         * tests/test-crc.c: Likewise.
17648         * tests/test-des.c: Likewise.
17649         * tests/test-gc-arcfour.c: Likewise.
17650         * tests/test-gc-arctwo.c: Likewise.
17651         * tests/test-gc-des.c: Likewise.
17652         * tests/test-gc-hmac-md5.c: Likewise.
17653         * tests/test-gc-hmac-sha1.c: Likewise.
17654         * tests/test-gc-md2.c: Likewise.
17655         * tests/test-gc-md4.c: Likewise.
17656         * tests/test-gc-md5.c: Likewise.
17657         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17658         * tests/test-gc-rijndael.c: Likewise.
17659         * tests/test-gc-sha1.c: Likewise.
17660         * tests/test-gc.c: Likewise.
17661         * tests/test-gethostname.c: Likewise.
17662         * tests/test-gettimeofday.c: Likewise.
17663         * tests/test-hash.c: Likewise.
17664         * tests/test-hmac-md5.c: Likewise.
17665         * tests/test-hmac-sha1.c: Likewise.
17666         * tests/test-md2.c: Likewise.
17667         * tests/test-md4.c: Likewise.
17668         * tests/test-md5.c: Likewise.
17669         * tests/test-memchr.c: Likewise.
17670         * tests/test-memchr2.c: Likewise.
17671         * tests/test-memcmp.c: Likewise.
17672         * tests/test-memmem.c: Likewise.
17673         * tests/test-memrchr.c: Likewise.
17674         * tests/test-rawmemchr.c: Likewise.
17675         * tests/test-read-file.c: Likewise.
17676         * tests/test-rijndael.c: Likewise.
17677         * tests/test-sockets.c: Likewise.
17678         * tests/test-strchrnul.c: Likewise.
17679         * tests/test-strstr.c: Likewise.
17680         * tests/test-strtod.c: Likewise.
17681         * build-aux/ncftpput-ftp: Likewise.
17682
17683 2010-01-26  Eric Blake  <ebb9@byu.net>
17684
17685         ignore-value: update recommended header name
17686         * modules/ignore-value (Include): Only use <> for headers that
17687         exist in glibc.
17688
17689 2010-01-26  Jim Meyering  <meyering@redhat.com>
17690
17691         test-userspec.c: avoid compiler warnings
17692         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
17693         and "initialization discards qualifiers..." warnings.
17694         Put the first "uid" in its own scope, and make char* members "const".
17695
17696 2010-01-25  Bruno Haible  <bruno@clisp.org>
17697
17698         gnulib-tool: Make warning diagnostics consistent.
17699         * gnulib-tool (func_warning): New function.
17700         Use it everywhere where gnulib-tool produces output to stderr and it is
17701         not a fatal error.
17702
17703 2010-01-25  Bruno Haible  <bruno@clisp.org>
17704
17705         Fix test dependencies.
17706         * modules/xstrtol-tests (Depends-on): Add inttypes.
17707         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
17708
17709 2010-01-25 Pádraig Brady <P@draigBrady.com>
17710
17711         syntax-check: detect incorrect boolean macro values in config.h
17712         * modules/maintainer-makefile (configure.ac): Parameterize the location
17713         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
17714         The logic is from Eric Blake and the location indicated by Jim Meyering.
17715         Note the more natural CONFIG_HEADER name is prohibited by automake
17716         for backwards compatibility reasons.
17717         * top/maint.mk (sc_Wundef_boolean): New rule.
17718
17719 2010-01-25  Jim Meyering  <meyering@redhat.com>
17720
17721         bootstrap: detect MacOS 10.6's shasum, too
17722         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
17723         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
17724
17725 2010-01-23  Jim Meyering  <meyering@redhat.com>
17726
17727         xstrtoll: new module
17728         * modules/xstrtoll: New file.
17729         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
17730         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
17731         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
17732         ./configure fails if you use this module and lack "long long".
17733         * modules/xstrtoll-tests: New module.
17734         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
17735         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
17736         new init.sh-based test framework.
17737
17738 2010-01-24  Bruno Haible  <bruno@clisp.org>
17739
17740         Tests for module 'yn'.
17741         * modules/yn-tests: New file.
17742         * tests/test-yn.c: New file.
17743
17744         Tests for module 'y1'.
17745         * modules/y1-tests: New file.
17746         * tests/test-y1.c: New file.
17747
17748         Tests for module 'y0'.
17749         * modules/y0-tests: New file.
17750         * tests/test-y0.c: New file.
17751
17752         Tests for module 'tanh'.
17753         * modules/tanh-tests: New file.
17754         * tests/test-tanh.c: New file.
17755
17756         Tests for module 'tan'.
17757         * modules/tan-tests: New file.
17758         * tests/test-tan.c: New file.
17759
17760         Tests for module 'sqrt'.
17761         * modules/sqrt-tests: New file.
17762         * tests/test-sqrt.c: New file.
17763
17764         Tests for module 'sinh'.
17765         * modules/sinh-tests: New file.
17766         * tests/test-sinh.c: New file.
17767
17768         Tests for module 'sin'.
17769         * modules/sin-tests: New file.
17770         * tests/test-sin.c: New file.
17771
17772         Tests for module 'rint'.
17773         * modules/rint-tests: New file.
17774         * tests/test-rint.c: New file.
17775
17776         Tests for module 'remainder'.
17777         * modules/remainder-tests: New file.
17778         * tests/test-remainder.c: New file.
17779
17780         Tests for module 'pow'.
17781         * modules/pow-tests: New file.
17782         * tests/test-pow.c: New file.
17783
17784         Tests for module 'nextafter'.
17785         * modules/nextafter-tests: New file.
17786         * tests/test-nextafter.c: New file.
17787
17788         Tests for module 'modf'.
17789         * modules/modf-tests: New file.
17790         * tests/test-modf.c: New file.
17791
17792         Tests for module 'logb'.
17793         * modules/logb-tests: New file.
17794         * tests/test-logb.c: New file.
17795
17796         Tests for module 'log1p'.
17797         * modules/log1p-tests: New file.
17798         * tests/test-log1p.c: New file.
17799
17800         Tests for module 'log10'.
17801         * modules/log10-tests: New file.
17802         * tests/test-log10.c: New file.
17803
17804         Tests for module 'log'.
17805         * modules/log-tests: New file.
17806         * tests/test-log.c: New file.
17807
17808         Tests for module 'lgamma'.
17809         * modules/lgamma-tests: New file.
17810         * tests/test-lgamma.c: New file.
17811
17812         Tests for module 'ldexp'.
17813         * modules/ldexp-tests: New file.
17814         * tests/test-ldexp.c: New file.
17815
17816         Tests for module 'jn'.
17817         * modules/jn-tests: New file.
17818         * tests/test-jn.c: New file.
17819
17820         Tests for module 'j1'.
17821         * modules/j1-tests: New file.
17822         * tests/test-j1.c: New file.
17823
17824         Tests for module 'j0'.
17825         * modules/j0-tests: New file.
17826         * tests/test-j0.c: New file.
17827
17828         Tests for module 'hypot'.
17829         * modules/hypot-tests: New file.
17830         * tests/test-hypot.c: New file.
17831
17832         Tests for module 'fmod'.
17833         * modules/fmod-tests: New file.
17834         * tests/test-fmod.c: New file.
17835
17836         Tests for module 'fabs'.
17837         * modules/fabs-tests: New file.
17838         * tests/test-fabs.c: New file.
17839
17840         Tests for module 'exp'.
17841         * modules/exp-tests: New file.
17842         * tests/test-exp.c: New file.
17843
17844         Tests for module 'erfc'.
17845         * modules/erfc-tests: New file.
17846         * tests/test-erfc.c: New file.
17847
17848         Tests for module 'erf'.
17849         * modules/erf-tests: New file.
17850         * tests/test-erf.c: New file.
17851
17852         Tests for module 'cosh'.
17853         * modules/cosh-tests: New file.
17854         * tests/test-cosh.c: New file.
17855
17856         Tests for module 'cos'.
17857         * modules/cos-tests: New file.
17858         * tests/test-cos.c: New file.
17859
17860         Tests for module 'copysign'.
17861         * modules/copysign-tests: New file.
17862         * tests/test-copysign.c: New file.
17863
17864         Tests for module 'cbrt'.
17865         * modules/cbrt-tests: New file.
17866         * tests/test-cbrt.c: New file.
17867
17868         Tests for module 'atan2'.
17869         * modules/atan2-tests: New file.
17870         * tests/test-atan2.c: New file.
17871
17872         Tests for module 'atan'.
17873         * modules/atan-tests: New file.
17874         * tests/test-atan.c: New file.
17875
17876         Tests for module 'asin'.
17877         * modules/asin-tests: New file.
17878         * tests/test-asin.c: New file.
17879
17880         Tests for module 'acos'.
17881         * modules/acos-tests: New file.
17882         * tests/test-acos.c: New file.
17883
17884 2010-01-24  Bruno Haible  <bruno@clisp.org>
17885
17886         Fix tests for common <math.h> functions.
17887         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
17888         code snippet that references the function pointer, rather than merely
17889         calling the function. Substitute the FUNC_LIBM variable.
17890         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
17891         * modules/acos (configure.ac): Likewise.
17892         * modules/asin (configure.ac): Likewise.
17893         * modules/atan (configure.ac): Likewise.
17894         * modules/atan2 (configure.ac): Likewise.
17895         * modules/cbrt (configure.ac): Likewise.
17896         * modules/copysign (configure.ac): Likewise.
17897         * modules/cos (configure.ac): Likewise.
17898         * modules/cosh (configure.ac): Likewise.
17899         * modules/erf (configure.ac): Likewise.
17900         * modules/erfc (configure.ac): Likewise.
17901         * modules/exp (configure.ac): Likewise.
17902         * modules/fabs (configure.ac): Likewise.
17903         * modules/fmod (configure.ac): Likewise.
17904         * modules/hypot (configure.ac): Likewise.
17905         * modules/j0 (configure.ac): Likewise.
17906         * modules/j1 (configure.ac): Likewise.
17907         * modules/jn (configure.ac): Likewise.
17908         * modules/ldexp (configure.ac): Likewise.
17909         * modules/lgamma (configure.ac): Likewise.
17910         * modules/log (configure.ac): Likewise.
17911         * modules/log10 (configure.ac): Likewise.
17912         * modules/log1p (configure.ac): Likewise.
17913         * modules/logb (configure.ac): Likewise.
17914         * modules/modf (configure.ac): Likewise.
17915         * modules/nextafter (configure.ac): Likewise.
17916         * modules/pow (configure.ac): Likewise.
17917         * modules/remainder (configure.ac): Likewise.
17918         * modules/rint (configure.ac): Likewise.
17919         * modules/sin (configure.ac): Likewise.
17920         * modules/sinh (configure.ac): Likewise.
17921         * modules/tan (configure.ac): Likewise.
17922         * modules/tanh (configure.ac): Likewise.
17923         * modules/y0 (configure.ac): Likewise.
17924         * modules/y1 (configure.ac): Likewise.
17925         * modules/yn (configure.ac): Likewise.
17926
17927 2010-01-24  Bruno Haible  <bruno@clisp.org>
17928
17929         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
17930         * tests/test-acosl.c (x): New variable.
17931         (main): Store argument in x and fetch it from x.
17932         * tests/test-asinl.c (x): New variable.
17933         (main): Store argument in x and fetch it from x.
17934         * tests/test-atanl.c (x): New variable.
17935         (main): Store argument in x and fetch it from x.
17936         * tests/test-cosl.c (x): New variable.
17937         (main): Store argument in x and fetch it from x.
17938         * tests/test-expl.c (x): New variable.
17939         (main): Store argument in x and fetch it from x.
17940         * tests/test-logl.c (x): New variable.
17941         (main): Store argument in x and fetch it from x.
17942         * tests/test-sinl.c (x): New variable.
17943         (main): Store argument in x and fetch it from x.
17944         * tests/test-sqrtl.c (x): New variable.
17945         (main): Store argument in x and fetch it from x.
17946         * tests/test-tanl.c (x): New variable.
17947         (main): Store argument in x and fetch it from x.
17948
17949 2010-01-24  Bruno Haible  <bruno@clisp.org>
17950
17951         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
17952         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
17953         assignments to the initial TESTS_ENVIRONMENT.
17954         * doc/gnulib.texi (Unit test modules): Document it.
17955         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
17956         TESTS_ENVIRONMENT.
17957         * modules/btowc-tests (Makefile.am): Likewise.
17958         * modules/c-stack-tests (Makefile.am): Likewise.
17959         * modules/c-strcase-tests (Makefile.am): Likewise.
17960         * modules/copy-file-tests (Makefile.am): Likewise.
17961         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
17962         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
17963         * modules/mbrtowc-tests (Makefile.am): Likewise.
17964         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17965         * modules/mbscasestr-tests (Makefile.am): Likewise.
17966         * modules/mbschr-tests (Makefile.am): Likewise.
17967         * modules/mbscspn-tests (Makefile.am): Likewise.
17968         * modules/mbsinit-tests (Makefile.am): Likewise.
17969         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17970         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
17971         * modules/mbspbrk-tests (Makefile.am): Likewise.
17972         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17973         * modules/mbsrchr-tests (Makefile.am): Likewise.
17974         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
17975         * modules/mbsspn-tests (Makefile.am): Likewise.
17976         * modules/mbsstr-tests (Makefile.am): Likewise.
17977         * modules/nl_langinfo-tests (Makefile.am): Likewise.
17978         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
17979         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17980         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17981         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17982         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17983         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
17984         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17985         * modules/wcrtomb-tests (Makefile.am): Likewise.
17986         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
17987         * modules/wcsrtombs-tests (Makefile.am): Likewise.
17988         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
17989         assignments from TESTS_ENVIRONMENT.
17990         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
17991         augmentation.
17992         * modules/argp-version-etc-tests (Makefile.am): Likewise.
17993         * modules/atexit-tests (Makefile.am): Likewise.
17994         * modules/binary-io-tests (Makefile.am): Likewise.
17995         * modules/closein-tests (Makefile.am): Likewise.
17996         * modules/dprintf-posix-tests (Makefile.am): Likewise.
17997         * modules/exclude-tests (Makefile.am): Likewise.
17998         * modules/fflush-tests (Makefile.am): Likewise.
17999         * modules/fpending-tests (Makefile.am): Likewise.
18000         * modules/fprintf-posix-tests (Makefile.am): Likewise.
18001         * modules/freadahead-tests (Makefile.am): Likewise.
18002         * modules/freadptr-tests (Makefile.am): Likewise.
18003         * modules/freadseek-tests (Makefile.am): Likewise.
18004         * modules/fseek-tests (Makefile.am): Likewise.
18005         * modules/fseeko-tests (Makefile.am): Likewise.
18006         * modules/ftell-tests (Makefile.am): Likewise.
18007         * modules/ftello-tests (Makefile.am): Likewise.
18008         * modules/idpriv-drop-tests (Makefile.am): Likewise.
18009         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
18010         * modules/lseek-tests (Makefile.am): Likewise.
18011         * modules/parse-duration-tests (Makefile.am): Likewise.
18012         * modules/perror-tests (Makefile.am): Likewise.
18013         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
18014         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
18015         * modules/pipe-tests (Makefile.am): Likewise.
18016         * modules/pread-tests (Makefile.am): Likewise.
18017         * modules/printf-posix-tests (Makefile.am): Likewise.
18018         * modules/select-tests (Makefile.am): Likewise.
18019         * modules/sigpipe-tests (Makefile.am): Likewise.
18020         * modules/tsearch-tests (Makefile.am): Likewise.
18021         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
18022         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
18023         * modules/uniname/uniname-tests (Makefile.am): Likewise.
18024         * modules/uniwidth/width-tests (Makefile.am): Likewise.
18025         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
18026         * modules/version-etc-tests (Makefile.am): Likewise.
18027         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
18028         * modules/vprintf-posix-tests (Makefile.am): Likewise.
18029         * modules/xalloc-die-tests (Makefile.am): Likewise.
18030         * modules/xprintf-posix-tests (Makefile.am): Likewise.
18031         * modules/xstrtoimax-tests (Makefile.am): Likewise.
18032         * modules/xstrtol-tests (Makefile.am): Likewise.
18033         * modules/xstrtoumax-tests (Makefile.am): Likewise.
18034         * modules/yesno-tests (Makefile.am): Likewise.
18035         Suggested by Jim Meyering.
18036
18037 2010-01-24  Bruno Haible  <bruno@clisp.org>
18038
18039         More documentation.
18040         * doc/gnulib.texi (Writing modules): New chapter.
18041         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
18042         the new chapter.
18043
18044 2010-01-24  Jim Meyering  <meyering@redhat.com>
18045
18046         maint.mk: do not prepend "./" after filtering
18047         * top/maint.mk (_prepend_srcdir_prefix): New variable
18048         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
18049         "./" when $(srcdir) is ".".
18050
18051         define STREQ(a,b) consistently, removing useless parentheses
18052         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
18053         since the only risk is that "a" or "b" contains an unparenthesized
18054         comma, but if either did that, STREQ would have 3 or more arguments.
18055         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
18056         * lib/fts.c (STREQ): Remove unnecessary parentheses.
18057         * lib/hash-triple.c (STREQ): Likewise.
18058         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
18059         * lib/getugroups.c (STREQ): Likewise.
18060
18061 2010-01-23  Jim Meyering  <meyering@redhat.com>
18062
18063         maint.mk: fix syntax-check in a non-srcdir build directory
18064         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
18065         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
18066
18067 2010-01-22  Jim Meyering  <meyering@redhat.com>
18068
18069         userspec: add unit tests
18070         * tests/test-userspec.c: New file.
18071         * modules/userspec-tests: Likewise.
18072
18073 2010-01-21  Jim Meyering  <meyering@redhat.com>
18074
18075         maint.mk: handle source file names containing "." robustly
18076         * top/maint.mk (_dot_escaped_srcdir): Define.
18077         (VC_LIST): Use it in LHS of sed substitution.
18078
18079 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
18080
18081         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
18082         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
18083         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
18084         from a non-srcdir build.
18085
18086 2010-01-20  Eric Blake  <ebb9@byu.net>
18087
18088         warn-on-use: use instead of link-warning
18089         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
18090         * modules/unistd (Depends-on, Makefile.am): Likewise.
18091         * modules/arpa_inet (Depends-on): Replace link-warning with
18092         warn-on-use.
18093         (Makefile.am): Update rules accordingly.
18094         * modules/ctype (Depends-on, Makefile.am): Likewise.
18095         * modules/dirent (Depends-on, Makefile.am): Likewise.
18096         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
18097         * modules/inttypes (Depends-on, Makefile.am): Likewise.
18098         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18099         * modules/locale (Depends-on, Makefile.am): Likewise.
18100         * modules/math (Depends-on, Makefile.am): Likewise.
18101         * modules/search (Depends-on, Makefile.am): Likewise.
18102         * modules/signal (Depends-on, Makefile.am): Likewise.
18103         * modules/spawn (Depends-on, Makefile.am): Likewise.
18104         * modules/stdlib (Depends-on, Makefile.am): Likewise.
18105         * modules/string (Depends-on, Makefile.am): Likewise.
18106         * modules/strings (Depends-on, Makefile.am): Likewise.
18107         * modules/sys_file (Depends-on, Makefile.am): Likewise.
18108         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
18109         * modules/sys_select (Depends-on, Makefile.am): Likewise.
18110         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
18111         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
18112         * modules/sys_times (Depends-on, Makefile.am): Likewise.
18113         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18114         * modules/wchar (Depends-on, Makefile.am): Likewise.
18115         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
18116         should be poisoned.
18117         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
18118         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
18119         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
18120         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18121         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18122         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18123         * m4/math_h.m4 (gl_MATH_H): Likewise.
18124         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18125         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18126         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18127         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18128         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18129         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18130         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
18131         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
18132         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18133         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18134         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18135         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18136         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18137         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18138         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18139         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18140         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
18141         GL_LINK_WARNING.
18142         * lib/ctype.in.h: Likewise.
18143         * lib/dirent.in.h: Likewise.
18144         * lib/fcntl.in.h: Likewise.
18145         * lib/inttypes.in.h: Likewise.
18146         * lib/langinfo.in.h: Likewise.
18147         * lib/locale.in.h: Likewise.
18148         * lib/math.in.h: Likewise.
18149         * lib/search.in.h: Likewise.
18150         * lib/signal.in.h: Likewise.
18151         * lib/spawn.in.h: Likewise.
18152         * lib/stdio.in.h: Likewise.
18153         * lib/stdlib.in.h: Likewise.
18154         * lib/string.in.h: Likewise.
18155         * lib/strings.in.h: Likewise.
18156         * lib/sys_file.in.h: Likewise.
18157         * lib/sys_ioctl.in.h: Likewise.
18158         * lib/sys_select.in.h: Likewise.
18159         * lib/sys_socket.in.h: Likewise.
18160         * lib/sys_stat.in.h: Likewise.
18161         * lib/sys_times.in.h: Likewise.
18162         * lib/sys_utsname.in.h: Likewise.
18163         * lib/unistd.in.h: Likewise.
18164         * lib/wchar.in.h: Likewise.
18165
18166 2010-01-20  Bruno Haible  <bruno@clisp.org>
18167
18168         Avoid duplicate -lm.
18169         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
18170         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
18171         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
18172         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
18173         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
18174         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
18175         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
18176         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
18177         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
18178         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
18179         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
18180         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18181         Reported by Paolo Bonzini.
18182
18183 2010-01-19  Bruno Haible  <bruno@clisp.org>
18184
18185         langinfo, nl_langinfo: Relicense under LGPLv2+.
18186         * modules/langinfo (License): Change to LGPLv2+.
18187         * modules/nl_langinfo (License): Likewise.
18188         Patch by David Lutterkort <lutter@redhat.com>.
18189
18190 2010-01-19  Bruno Haible  <bruno@clisp.org>
18191
18192         Avoid compilation error with cc on OSF/1 5.1.
18193         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
18194         statement, not before.
18195         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18196
18197 2010-01-18  Bruno Haible  <bruno@clisp.org>
18198
18199         Avoid a link error due to the __printf__ symbol.
18200         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
18201         and 2.6.x.
18202         (__format__, __printf__): Remove definitions.
18203         * lib/argp-fmtstream.h: Likewise.
18204         * lib/argp.h: Likewise.
18205         * lib/error.h: Likewise.
18206         * lib/vasnprintf.h: Likewise.
18207         * lib/xprintf.h: Likewise.
18208         * lib/xvasprintf.h: Likewise.
18209         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18210
18211 2010-01-18  Bruno Haible  <bruno@clisp.org>
18212
18213         Tests for module 'tanl'.
18214         * modules/tanl-tests: New file.
18215         * tests/test-tanl.c: New file.
18216
18217         Tests for module 'sqrtl'.
18218         * modules/sqrtl-tests: New file.
18219         * tests/test-sqrtl.c: New file.
18220
18221         Tests for module 'sinl'.
18222         * modules/sinl-tests: New file.
18223         * tests/test-sinl.c: New file.
18224
18225         Tests for module 'logl'.
18226         * modules/logl-tests: New file.
18227         * tests/test-logl.c: New file.
18228
18229         Tests for module 'expl'.
18230         * modules/expl-tests: New file.
18231         * tests/test-expl.c: New file.
18232
18233         Tests for module 'cosl'.
18234         * modules/cosl-tests: New file.
18235         * tests/test-cosl.c: New file.
18236
18237         Tests for module 'atanl'.
18238         * modules/atanl-tests: New file.
18239         * tests/test-atanl.c: New file.
18240
18241         Tests for module 'asinl'.
18242         * modules/asinl-tests: New file.
18243         * tests/test-asinl.c: New file.
18244
18245         Tests for module 'acosl'.
18246         * modules/acosl-tests: New file.
18247         * tests/test-acosl.c: New file.
18248
18249         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18250         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
18251         tanl): Use the standard gnulib idiom.
18252         * lib/cosl.c: Don't include trigl.c and sincosl.c.
18253         * lib/sinl.c: Likewise.
18254         * lib/tanl.c: Don't include trigl.c.
18255         (kernel_tanl): Make static.
18256         * lib/sincosl.c: Include trigl.h first.
18257         * lib/trigl.c: Likewise.
18258         * m4/acosl.m4: New file.
18259         * m4/asinl.m4: New file.
18260         * m4/atanl.m4: New file.
18261         * m4/cosl.m4: New file.
18262         * m4/expl.m4: New file.
18263         * m4/logl.m4: New file.
18264         * m4/sinl.m4: New file.
18265         * m4/sqrtl.m4: New file.
18266         * m4/tanl.m4: New file.
18267         * m4/mathl.m4: Remove file.
18268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
18269         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18270         Don't initialize GNULIB_MATHL.
18271         * modules/acosl: New file.
18272         * modules/asinl: New file.
18273         * modules/atanl: New file.
18274         * modules/cosl: New file.
18275         * modules/expl: New file.
18276         * modules/logl: New file.
18277         * modules/sinl: New file.
18278         * modules/sqrtl: New file.
18279         * modules/tanl: New file.
18280         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
18281         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
18282         substitute GNULIB_MATHL.
18283         * modules/mathl: Rewritten.
18284         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
18285         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
18286         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
18287         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
18288         * doc/posix-functions/expl.texi: Mention the 'expl' module.
18289         * doc/posix-functions/logl.texi: Mention the 'logl' module.
18290         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
18291         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
18292         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
18293
18294 2010-01-18  Bruno Haible  <bruno@clisp.org>
18295
18296         sqrt: Make gl_FUNC_SQRT requirable.
18297         * m4/sqrt.m4: New file.
18298         * modules/sqrt (Files): Add it.
18299         (configure.ac): Invoke gl_FUNC_SQRT.
18300
18301 2010-01-18  Bruno Haible  <bruno@clisp.org>
18302
18303         New modules for common <math.h> functions.
18304         * m4/mathfunc.m4: New file.
18305         * modules/acos: New file.
18306         * modules/asin: New file.
18307         * modules/atan: New file.
18308         * modules/atan2: New file.
18309         * modules/cbrt: New file.
18310         * modules/copysign: New file.
18311         * modules/cos: New file.
18312         * modules/cosh: New file.
18313         * modules/erf: New file.
18314         * modules/erfc: New file.
18315         * modules/exp: New file.
18316         * modules/fabs: New file.
18317         * modules/fmod: New file.
18318         * modules/hypot: New file.
18319         * modules/j0: New file.
18320         * modules/j1: New file.
18321         * modules/jn: New file.
18322         * modules/ldexp: New file.
18323         * modules/lgamma: New file.
18324         * modules/log: New file.
18325         * modules/log10: New file.
18326         * modules/log1p: New file.
18327         * modules/logb: New file.
18328         * modules/modf: New file.
18329         * modules/nextafter: New file.
18330         * modules/pow: New file.
18331         * modules/remainder: New file.
18332         * modules/rint: New file.
18333         * modules/sin: New file.
18334         * modules/sinh: New file.
18335         * modules/sqrt: New file.
18336         * modules/tan: New file.
18337         * modules/tanh: New file.
18338         * modules/y0: New file.
18339         * modules/y1: New file.
18340         * modules/yn: New file.
18341         * doc/posix-functions/acos.texi: Mention the 'acos' module.
18342         * doc/posix-functions/asin.texi: Mention the 'asin' module.
18343         * doc/posix-functions/atan.texi: Mention the 'atan' module.
18344         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
18345         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
18346         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
18347         * doc/posix-functions/cos.texi: Mention the 'cos' module.
18348         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
18349         * doc/posix-functions/erf.texi: Mention the 'erf' module.
18350         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
18351         * doc/posix-functions/exp.texi: Mention the 'exp' module.
18352         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
18353         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
18354         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
18355         * doc/posix-functions/j0.texi: Mention the 'j0' module.
18356         * doc/posix-functions/j1.texi: Mention the 'j1' module.
18357         * doc/posix-functions/jn.texi: Mention the 'jn' module.
18358         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
18359         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
18360         * doc/posix-functions/log.texi: Mention the 'log' module.
18361         * doc/posix-functions/log10.texi: Mention the 'log10' module.
18362         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
18363         * doc/posix-functions/logb.texi: Mention the 'logb' module.
18364         * doc/posix-functions/modf.texi: Mention the 'modf' module.
18365         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
18366         * doc/posix-functions/pow.texi: Mention the 'pow' module.
18367         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
18368         * doc/posix-functions/rint.texi: Mention the 'rint' module.
18369         * doc/posix-functions/sin.texi: Mention the 'sin' module.
18370         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
18371         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
18372         * doc/posix-functions/tan.texi: Mention the 'tan' module.
18373         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
18374         * doc/posix-functions/y0.texi: Mention the 'y0' module.
18375         * doc/posix-functions/y1.texi: Mention the 'y1' module.
18376         * doc/posix-functions/yn.texi: Mention the 'yn' module.
18377
18378 2010-01-18  Jim Meyering  <meyering@redhat.com>
18379
18380         ignore-value: relax license to LGPLv2+
18381         * modules/ignore-value (License): Relax to LGPLv2+.
18382
18383         getdate: don't leak when TZ contains two or more '"'s
18384         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
18385         double quote in TZ after the first one.
18386
18387         readtokens: do not leak internal token_lengths buffer
18388         * lib/readtokens.c (readtokens): Free the local, lengths,
18389         when the supplied "token_lengths" parameter is NULL.
18390
18391 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18392
18393         Fix a couple of missing LIBTHREAD link failures on AIX.
18394         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
18395         $(LIBTHREAD).
18396         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
18397
18398         Link test-poll against INET_PTON_LIB.
18399         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
18400         for inet_pton on Solaris 10.
18401
18402 2010-01-17  Bruno Haible  <bruno@clisp.org>
18403
18404         unistdio/*-sprintf: Fix typo in module description.
18405         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
18406         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
18407         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
18408         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
18409         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
18410         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
18411         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
18412         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18413
18414 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18415
18416         gnulib-tool: fix filelist for AIX, HP-UX ksh.
18417         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
18418         variables in shell case patterns, for AIX and HP-UX ksh.
18419
18420         Split large sed scripts, for HP-UX sed.
18421         * modules/stdio: Split sed scripts around 50 sed commands,
18422         to avoid HP-UX limit of 99 commands, in the near future.
18423         * modules/string: Likewise.
18424         * modules/unistd: Likewise.
18425
18426         gnulib-tool: avoid writing in the current directory.
18427         * gnulib-tool (func_emit_lib_Makefile_am)
18428         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
18429         not in the current directory, so concurrent gnulib-tool
18430         instances do not interfere.
18431
18432 2010-01-16  Jim Meyering  <meyering@redhat.com>
18433
18434         doc: update users.txt
18435         * users.txt: Add grep.
18436         (diffutils, gzip): Update URLs.
18437
18438 2010-01-12  Bruno Haible  <bruno@clisp.org>
18439
18440         posix_spawn: Avoid test failure on Cygwin.
18441         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
18442         characters.
18443         Reported by Simon Josefsson.
18444
18445 2010-01-12  Bruno Haible  <bruno@clisp.org>
18446
18447         * tests/test-cond.c (main): When skipping the test, show the reason.
18448
18449 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18450
18451         * lib/striconv.c (str_cd_iconv): Avoid if before free.
18452
18453 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18454
18455         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
18456         VC_LIST_ALWAYS_EXCLUDE_REGEX.
18457
18458 2010-01-12  Eric Blake  <ebb9@byu.net>
18459
18460         build: guarantee AS_VAR_IF
18461         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
18462         (gl_AS_VAR_IF): Move...
18463         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
18464         Reported by Simon Josefsson.
18465
18466 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18467
18468         * lib/stdio.in.h: Fix typo.
18469
18470 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18471
18472         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
18473         libgpg-error.
18474
18475 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18476
18477         * tests/test-xalloc-die.sh: Use $EXEEXT.
18478
18479 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18480             Bruno Haible  <bruno@clisp.org>
18481
18482         getlogin, getlogin_r: Avoid test failure.
18483         * tests/test-getlogin.c: Include <stdio.h>.
18484         (main): Skip the test when the function fails because stdin is not a
18485         tty.
18486         * tests/test-getlogin_r.c: Include <stdio.h>.
18487         (main): Skip the test when the function fails because stdin is not a
18488         tty.
18489
18490 2010-01-11  Eric Blake  <ebb9@byu.net>
18491
18492         tests: avoid more large file warnings
18493         * tests/test-fflush.c: Avoid warning about ftell use.
18494         * tests/test-fseek.c: Avoid warning about fseek use.
18495
18496 2010-01-10  Bruno Haible  <bruno@clisp.org>
18497
18498         nproc: Work better on Linux when /proc and /sys are not mounted.
18499         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
18500         as lower bound when, on glibc/Linux systems,
18501         sysconf (_SC_NPROCESSORS_CONF) returns 1.
18502         Suggested by Pádraig Brady <P@draigbrady.com>.
18503         Reported by Dmitry V. Levin <ldv@altlinux.org>.
18504
18505         nproc: Refactor.
18506         * lib/nproc.c (num_processors_via_affinity_mask): New function,
18507         extracted from num_processors.
18508         (num_processors): Call it.
18509
18510 2010-01-11  Jim Meyering  <meyering@redhat.com>
18511
18512         utimecmp: avoid new warning from upcoming gcc-4.5.0
18513         * lib/utimecmp.c (BILLION): Define using #define rather than an
18514         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
18515
18516 2010-01-11  Eric Blake  <ebb9@byu.net>
18517
18518         math: add portability warnings for classification macros
18519         * modules/math (Depends-on): Add warn-on-use.
18520         (Makefile.am): Provide new substitutions.
18521         * m4/math_h.m4 (gl_MATH_H): Require inline.
18522         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
18523         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
18524         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
18525         implement warnings.
18526
18527         unistd: warn on use of environ without module
18528         * modules/unistd (Depends-on): Add warn-on-use.
18529         (Makefile.am): Provide new substitutions.
18530         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
18531         * lib/unistd.in.h (environ): Wrap with a warning helper function.
18532
18533         stdio: warn on suspicious uses
18534         * modules/stdio (Depends-on): Add warn-on-use.
18535         (Makefile.am): Provide new substitutions.
18536         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
18537         fseeko.
18538         * lib/stdio.in.h (gets): Always warn on use.
18539         (fseek, ftell): Adjust when warnings are issued, and honor
18540         _GL_NO_LARGE_FILES as a way to silence the warning.
18541         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
18542         any warning about large file offsets.
18543         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
18544         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
18545         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
18546         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
18547         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
18548         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
18549         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
18550         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
18551
18552         warn-on-use: new module
18553         * modules/warn-on-use: New file.
18554         * build-aux/warn-on-use.h: Likewise.
18555         * m4/warn-on-use.m4: Likewise.
18556         * MODULES.html.sh (Support for building): Mention it.
18557
18558 2010-01-10  Bruno Haible  <bruno@clisp.org>
18559
18560         Tests for module 'unistr/u32-strdup'.
18561         * modules/unistr/u32-strdup-tests: New file.
18562         * tests/unistr/test-u32-strdup.c: New file.
18563
18564         Tests for module 'unistr/u16-strdup'.
18565         * modules/unistr/u16-strdup-tests: New file.
18566         * tests/unistr/test-u16-strdup.c: New file.
18567
18568         Tests for module 'unistr/u8-strdup'.
18569         * modules/unistr/u8-strdup-tests: New file.
18570         * tests/unistr/test-u8-strdup.c: New file.
18571         * tests/unistr/test-strdup.h: New file.
18572
18573         Tests for module 'unistr/u32-strncmp'.
18574         * modules/unistr/u32-strncmp-tests: New file.
18575         * tests/unistr/test-u32-strncmp.c: New file.
18576
18577         Tests for module 'unistr/u16-strncmp'.
18578         * modules/unistr/u16-strncmp-tests: New file.
18579         * tests/unistr/test-u16-strncmp.c: New file.
18580
18581         Tests for module 'unistr/u8-strncmp'.
18582         * modules/unistr/u8-strncmp-tests: New file.
18583         * tests/unistr/test-u8-strncmp.c: New file.
18584         * tests/unistr/test-strncmp.h: New file.
18585
18586         Tests for module 'unistr/u32-strcoll'.
18587         * modules/unistr/u32-strcoll-tests: New file.
18588         * tests/unistr/test-u32-strcoll.c: New file.
18589
18590         Tests for module 'unistr/u16-strcoll'.
18591         * modules/unistr/u16-strcoll-tests: New file.
18592         * tests/unistr/test-u16-strcoll.c: New file.
18593
18594         Tests for module 'unistr/u8-strcoll'.
18595         * modules/unistr/u8-strcoll-tests: New file.
18596         * tests/unistr/test-u8-strcoll.c: New file.
18597
18598         Tests for module 'unistr/u32-strcmp'.
18599         * modules/unistr/u32-strcmp-tests: New file.
18600         * tests/unistr/test-u32-strcmp.c: New file.
18601         * tests/unistr/test-u32-strcmp.h: New file.
18602
18603         Tests for module 'unistr/u16-strcmp'.
18604         * modules/unistr/u16-strcmp-tests: New file.
18605         * tests/unistr/test-u16-strcmp.c: New file.
18606         * tests/unistr/test-u16-strcmp.h: New file.
18607
18608         Tests for module 'unistr/u8-strcmp'.
18609         * modules/unistr/u8-strcmp-tests: New file.
18610         * tests/unistr/test-u8-strcmp.c: New file.
18611         * tests/unistr/test-u8-strcmp.h: New file.
18612         * tests/unistr/test-strcmp.h: New file.
18613
18614         Tests for module 'unistr/u32-strncat'.
18615         * modules/unistr/u32-strncat-tests: New file.
18616         * tests/unistr/test-u32-strncat.c: New file.
18617
18618         Tests for module 'unistr/u16-strncat'.
18619         * modules/unistr/u16-strncat-tests: New file.
18620         * tests/unistr/test-u16-strncat.c: New file.
18621
18622         Tests for module 'unistr/u8-strncat'.
18623         * modules/unistr/u8-strncat-tests: New file.
18624         * tests/unistr/test-u8-strncat.c: New file.
18625         * tests/unistr/test-strncat.h: New file.
18626
18627         Tests for module 'unistr/u32-strcat'.
18628         * modules/unistr/u32-strcat-tests: New file.
18629         * tests/unistr/test-u32-strcat.c: New file.
18630
18631         Tests for module 'unistr/u16-strcat'.
18632         * modules/unistr/u16-strcat-tests: New file.
18633         * tests/unistr/test-u16-strcat.c: New file.
18634
18635         Tests for module 'unistr/u8-strcat'.
18636         * modules/unistr/u8-strcat-tests: New file.
18637         * tests/unistr/test-u8-strcat.c: New file.
18638         * tests/unistr/test-strcat.h: New file.
18639
18640         Tests for module 'unistr/u32-stpncpy'.
18641         * modules/unistr/u32-stpncpy-tests: New file.
18642         * tests/unistr/test-u32-stpncpy.c: New file.
18643
18644         Tests for module 'unistr/u16-stpncpy'.
18645         * modules/unistr/u16-stpncpy-tests: New file.
18646         * tests/unistr/test-u16-stpncpy.c: New file.
18647
18648         Tests for module 'unistr/u8-stpncpy'.
18649         * modules/unistr/u8-stpncpy-tests: New file.
18650         * tests/unistr/test-u8-stpncpy.c: New file.
18651         * tests/unistr/test-stpncpy.h: New file.
18652
18653         Tests for module 'unistr/u32-strncpy'.
18654         * modules/unistr/u32-strncpy-tests: New file.
18655         * tests/unistr/test-u32-strncpy.c: New file.
18656
18657         Tests for module 'unistr/u16-strncpy'.
18658         * modules/unistr/u16-strncpy-tests: New file.
18659         * tests/unistr/test-u16-strncpy.c: New file.
18660
18661         Tests for module 'unistr/u8-strncpy'.
18662         * modules/unistr/u8-strncpy-tests: New file.
18663         * tests/unistr/test-u8-strncpy.c: New file.
18664         * tests/unistr/test-strncpy.h: New file.
18665
18666         Tests for module 'unistr/u32-stpcpy'.
18667         * modules/unistr/u32-stpcpy-tests: New file.
18668         * tests/unistr/test-u32-stpcpy.c: New file.
18669
18670         Tests for module 'unistr/u16-stpcpy'.
18671         * modules/unistr/u16-stpcpy-tests: New file.
18672         * tests/unistr/test-u16-stpcpy.c: New file.
18673
18674         Tests for module 'unistr/u8-stpcpy'.
18675         * modules/unistr/u8-stpcpy-tests: New file.
18676         * tests/unistr/test-u8-stpcpy.c: New file.
18677         * tests/unistr/test-stpcpy.h: New file.
18678
18679         Tests for module 'unistr/u32-strcpy'.
18680         * modules/unistr/u32-strcpy-tests: New file.
18681         * tests/unistr/test-u32-strcpy.c: New file.
18682
18683         Tests for module 'unistr/u16-strcpy'.
18684         * modules/unistr/u16-strcpy-tests: New file.
18685         * tests/unistr/test-u16-strcpy.c: New file.
18686
18687         Tests for module 'unistr/u8-strcpy'.
18688         * modules/unistr/u8-strcpy-tests: New file.
18689         * tests/unistr/test-u8-strcpy.c: New file.
18690         * tests/unistr/test-strcpy.h: New file.
18691
18692         Tests for module 'unistr/u32-strnlen'.
18693         * modules/unistr/u32-strnlen-tests: New file.
18694         * tests/unistr/test-u32-strnlen.c: New file.
18695
18696         Tests for module 'unistr/u16-strnlen'.
18697         * modules/unistr/u16-strnlen-tests: New file.
18698         * tests/unistr/test-u16-strnlen.c: New file.
18699
18700         Tests for module 'unistr/u8-strnlen'.
18701         * modules/unistr/u8-strnlen-tests: New file.
18702         * tests/unistr/test-u8-strnlen.c: New file.
18703         * tests/unistr/test-strnlen.h: New file.
18704
18705         Tests for module 'unistr/u32-strlen'.
18706         * modules/unistr/u32-strlen-tests: New file.
18707         * tests/unistr/test-u32-strlen.c: New file.
18708
18709         Tests for module 'unistr/u16-strlen'.
18710         * modules/unistr/u16-strlen-tests: New file.
18711         * tests/unistr/test-u16-strlen.c: New file.
18712
18713         Tests for module 'unistr/u8-strlen'.
18714         * modules/unistr/u8-strlen-tests: New file.
18715         * tests/unistr/test-u8-strlen.c: New file.
18716
18717         Tests for module 'unistr/u32-prev'.
18718         * modules/unistr/u32-prev-tests: New file.
18719         * tests/unistr/test-u32-prev.c: New file.
18720
18721         Tests for module 'unistr/u16-prev'.
18722         * modules/unistr/u16-prev-tests: New file.
18723         * tests/unistr/test-u16-prev.c: New file.
18724
18725         Tests for module 'unistr/u8-prev'.
18726         * modules/unistr/u8-prev-tests: New file.
18727         * tests/unistr/test-u8-prev.c: New file.
18728
18729         Tests for module 'unistr/u32-next'.
18730         * modules/unistr/u32-next-tests: New file.
18731         * tests/unistr/test-u32-next.c: New file.
18732
18733         Tests for module 'unistr/u16-next'.
18734         * modules/unistr/u16-next-tests: New file.
18735         * tests/unistr/test-u16-next.c: New file.
18736
18737         Tests for module 'unistr/u8-next'.
18738         * modules/unistr/u8-next-tests: New file.
18739         * tests/unistr/test-u8-next.c: New file.
18740
18741         Tests for module 'unistr/u32-strmbtouc'.
18742         * modules/unistr/u32-strmbtouc-tests: New file.
18743         * tests/unistr/test-u32-strmbtouc.c: New file.
18744
18745         Tests for module 'unistr/u16-strmbtouc'.
18746         * modules/unistr/u16-strmbtouc-tests: New file.
18747         * tests/unistr/test-u16-strmbtouc.c: New file.
18748
18749         Tests for module 'unistr/u8-strmbtouc'.
18750         * modules/unistr/u8-strmbtouc-tests: New file.
18751         * tests/unistr/test-u8-strmbtouc.c: New file.
18752
18753         Tests for module 'unistr/u32-strmblen'.
18754         * modules/unistr/u32-strmblen-tests: New file.
18755         * tests/unistr/test-u32-strmblen.c: New file.
18756
18757         Tests for module 'unistr/u16-strmblen'.
18758         * modules/unistr/u16-strmblen-tests: New file.
18759         * tests/unistr/test-u16-strmblen.c: New file.
18760
18761         Tests for module 'unistr/u8-strmblen'.
18762         * modules/unistr/u8-strmblen-tests: New file.
18763         * tests/unistr/test-u8-strmblen.c: New file.
18764
18765         Tests for module 'unistr/u32-cpy-alloc'.
18766         * modules/unistr/u32-cpy-alloc-tests: New file.
18767         * tests/unistr/test-u32-cpy-alloc.c: New file.
18768
18769         Tests for module 'unistr/u16-cpy-alloc'.
18770         * modules/unistr/u16-cpy-alloc-tests: New file.
18771         * tests/unistr/test-u16-cpy-alloc.c: New file.
18772
18773         Tests for module 'unistr/u8-cpy-alloc'.
18774         * modules/unistr/u8-cpy-alloc-tests: New file.
18775         * tests/unistr/test-u8-cpy-alloc.c: New file.
18776         * tests/unistr/test-cpy-alloc.h: New file.
18777
18778         Tests for module 'unistr/u32-mbsnlen'.
18779         * modules/unistr/u32-mbsnlen-tests: New file.
18780         * tests/unistr/test-u32-mbsnlen.c: New file.
18781
18782         Tests for module 'unistr/u16-mbsnlen'.
18783         * modules/unistr/u16-mbsnlen-tests: New file.
18784         * tests/unistr/test-u16-mbsnlen.c: New file.
18785
18786         Tests for module 'unistr/u8-mbsnlen'.
18787         * modules/unistr/u8-mbsnlen-tests: New file.
18788         * tests/unistr/test-u8-mbsnlen.c: New file.
18789
18790         Tests for module 'unistr/u32-chr'.
18791         * modules/unistr/u32-chr-tests: New file.
18792         * tests/unistr/test-u32-chr.c: New file.
18793
18794         Tests for module 'unistr/u16-chr'.
18795         * modules/unistr/u16-chr-tests: New file.
18796         * tests/unistr/test-u16-chr.c: New file.
18797
18798         Tests for module 'unistr/u8-chr'.
18799         * modules/unistr/u8-chr-tests: New file.
18800         * tests/unistr/test-u8-chr.c: New file.
18801         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
18802
18803         Tests for module 'unistr/u32-cmp2'.
18804         * modules/unistr/u32-cmp2-tests: New file.
18805         * tests/unistr/test-u32-cmp2.c: New file.
18806
18807         Tests for module 'unistr/u16-cmp2'.
18808         * modules/unistr/u16-cmp2-tests: New file.
18809         * tests/unistr/test-u16-cmp2.c: New file.
18810
18811         Tests for module 'unistr/u8-cmp2'.
18812         * modules/unistr/u8-cmp2-tests: New file.
18813         * tests/unistr/test-u8-cmp2.c: New file.
18814         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
18815
18816         Tests for module 'unistr/u32-cmp'.
18817         * modules/unistr/u32-cmp-tests: New file.
18818         * tests/unistr/test-u32-cmp.c: New file.
18819
18820         Tests for module 'unistr/u16-cmp'.
18821         * modules/unistr/u16-cmp-tests: New file.
18822         * tests/unistr/test-u16-cmp.c: New file.
18823
18824         Tests for module 'unistr/u8-cmp'.
18825         * modules/unistr/u8-cmp-tests: New file.
18826         * tests/unistr/test-u8-cmp.c: New file.
18827         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
18828
18829         Tests for module 'unistr/u32-set'.
18830         * modules/unistr/u32-set-tests: New file.
18831         * tests/unistr/test-u32-set.c: New file.
18832
18833         Tests for module 'unistr/u16-set'.
18834         * modules/unistr/u16-set-tests: New file.
18835         * tests/unistr/test-u16-set.c: New file.
18836
18837         Tests for module 'unistr/u8-set'.
18838         * modules/unistr/u8-set-tests: New file.
18839         * tests/unistr/test-u8-set.c: New file.
18840         * tests/unistr/test-set.h: New file.
18841
18842         Tests for module 'unistr/u32-move'.
18843         * modules/unistr/u32-move-tests: New file.
18844         * tests/unistr/test-u32-move.c: New file.
18845
18846         Tests for module 'unistr/u16-move'.
18847         * modules/unistr/u16-move-tests: New file.
18848         * tests/unistr/test-u16-move.c: New file.
18849
18850         Tests for module 'unistr/u8-move'.
18851         * modules/unistr/u8-move-tests: New file.
18852         * tests/unistr/test-u8-move.c: New file.
18853         * tests/unistr/test-move.h: New file.
18854
18855         Tests for module 'unistr/u32-cpy'.
18856         * modules/unistr/u32-cpy-tests: New file.
18857         * tests/unistr/test-u32-cpy.c: New file.
18858
18859         Tests for module 'unistr/u16-cpy'.
18860         * modules/unistr/u16-cpy-tests: New file.
18861         * tests/unistr/test-u16-cpy.c: New file.
18862
18863         Tests for module 'unistr/u8-cpy'.
18864         * modules/unistr/u8-cpy-tests: New file.
18865         * tests/unistr/test-u8-cpy.c: New file.
18866         * tests/unistr/test-cpy.h: New file.
18867
18868 2010-01-09  Bruno Haible  <bruno@clisp.org>
18869
18870         Tests for module 'unistr/u32-uctomb'.
18871         * modules/unistr/u32-uctomb-tests: New file.
18872         * tests/unistr/test-u32-uctomb.c: New file.
18873
18874         Tests for module 'unistr/u16-uctomb'.
18875         * modules/unistr/u16-uctomb-tests: New file.
18876         * tests/unistr/test-u16-uctomb.c: New file.
18877
18878         Tests for module 'unistr/u8-uctomb'.
18879         * modules/unistr/u8-uctomb-tests: New file.
18880         * tests/unistr/test-u8-uctomb.c: New file.
18881
18882         Tests for module 'unistr/u32-mbtoucr'.
18883         * modules/unistr/u32-mbtoucr-tests: New file.
18884         * tests/unistr/test-u32-mbtoucr.c: New file.
18885
18886         Tests for module 'unistr/u16-mbtoucr'.
18887         * modules/unistr/u16-mbtoucr-tests: New file.
18888         * tests/unistr/test-u16-mbtoucr.c: New file.
18889
18890         Tests for module 'unistr/u8-mbtoucr'.
18891         * modules/unistr/u8-mbtoucr-tests: New file.
18892         * tests/unistr/test-u8-mbtoucr.c: New file.
18893
18894         Tests for module 'unistr/u32-mbtouc'.
18895         * modules/unistr/u32-mbtouc-tests: New file.
18896         * tests/unistr/test-u32-mbtouc.c: New file.
18897
18898         Tests for module 'unistr/u16-mbtouc'.
18899         * modules/unistr/u16-mbtouc-tests: New file.
18900         * tests/unistr/test-u16-mbtouc.c: New file.
18901
18902         Tests for module 'unistr/u8-mbtouc'.
18903         * modules/unistr/u8-mbtouc-tests: New file.
18904         * tests/unistr/test-u8-mbtouc.c: New file.
18905
18906         Tests for module 'unistr/u32-mbtouc-unsafe'.
18907         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
18908         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
18909         * tests/unistr/test-u32-mbtouc.h: New file.
18910
18911         Tests for module 'unistr/u16-mbtouc-unsafe'.
18912         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
18913         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
18914         * tests/unistr/test-u16-mbtouc.h: New file.
18915
18916         Tests for module 'unistr/u8-mbtouc-unsafe'.
18917         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
18918         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
18919         * tests/unistr/test-u8-mbtouc.h: New file.
18920
18921         Tests for module 'unistr/u32-mblen'.
18922         * modules/unistr/u32-mblen-tests: New file.
18923         * tests/unistr/test-u32-mblen.c: New file.
18924
18925         Tests for module 'unistr/u16-mblen'.
18926         * modules/unistr/u16-mblen-tests: New file.
18927         * tests/unistr/test-u16-mblen.c: New file.
18928
18929         Tests for module 'unistr/u8-mblen'.
18930         * modules/unistr/u8-mblen-tests: New file.
18931         * tests/unistr/test-u8-mblen.c: New file.
18932
18933         Tests for module 'unistr/u32-to-u16'.
18934         * modules/unistr/u32-to-u16-tests: New file.
18935         * tests/unistr/test-u32-to-u16.c: New file.
18936
18937         Tests for module 'unistr/u32-to-u8'.
18938         * modules/unistr/u32-to-u8-tests: New file.
18939         * tests/unistr/test-u32-to-u8.c: New file.
18940
18941         Tests for module 'unistr/u16-to-u32'.
18942         * modules/unistr/u16-to-u32-tests: New file.
18943         * tests/unistr/test-u16-to-u32.c: New file.
18944
18945         Tests for module 'unistr/u16-to-u8'.
18946         * modules/unistr/u16-to-u8-tests: New file.
18947         * tests/unistr/test-u16-to-u8.c: New file.
18948
18949         Tests for module 'unistr/u8-to-u32'.
18950         * modules/unistr/u8-to-u32-tests: New file.
18951         * tests/unistr/test-u8-to-u32.c: New file.
18952
18953         Tests for module 'unistr/u8-to-u16'.
18954         * modules/unistr/u8-to-u16-tests: New file.
18955         * tests/unistr/test-u8-to-u16.c: New file.
18956
18957         Tests for module 'unistr/u32-check'.
18958         * modules/unistr/u32-check-tests: New file.
18959         * tests/unistr/test-u32-check.c: New file.
18960
18961         Tests for module 'unistr/u16-check'.
18962         * modules/unistr/u16-check-tests: New file.
18963         * tests/unistr/test-u16-check.c: New file.
18964
18965         Tests for module 'unistr/u8-check'.
18966         * modules/unistr/u8-check-tests: New file.
18967         * tests/unistr/test-u8-check.c: New file.
18968
18969         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
18970         (category_equals): New function.
18971         (main): Add more tests.
18972         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
18973
18974         * tests/unictype/test-bidi_byname.c (main): Add more tests.
18975
18976 2010-01-10  Bruno Haible  <bruno@clisp.org>
18977
18978         unistr/u*-strcoll: Try harder to distinguish different strings.
18979         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
18980         compare s1 and s2 to see if they are different.
18981
18982 2010-01-10  Bruno Haible  <bruno@clisp.org>
18983
18984         unistr/u*-stpncpy: Fix the return value.
18985         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
18986         description of the return value consistent with stpncpy in glibc.
18987         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
18988         written non-NUL unit.
18989
18990 2010-01-10  Bruno Haible  <bruno@clisp.org>
18991
18992         unistr/u*-next: Add missing dependencies.
18993         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
18994         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
18995         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
18996
18997 2010-01-10  Bruno Haible  <bruno@clisp.org>
18998
18999         unistr/u8-mbsnlen: Fix return value for incomplete character.
19000         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
19001         u8_mblen.
19002         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
19003         Remove unistr/u8-mblen.
19004         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
19005         u16_mblen.
19006         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
19007         Remove unistr/u16-mblen.
19008
19009 2010-01-10  Bruno Haible  <bruno@clisp.org>
19010
19011         wchar: Fix compilation error when <wchar.h> is used from coreutils.
19012         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
19013         Reported by Brian Gough <bjg@gnu.org> and
19014         Chris Clayton <chris2553@googlemail.com> via
19015         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
19016
19017 2010-01-09  Bruno Haible  <bruno@clisp.org>
19018
19019         unistr/u16-to-u32: Reject invalid input.
19020         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
19021         u16_mbtouc.
19022         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
19023         Remove unistr/u16-mbtouc.
19024
19025         unistr/u16-to-u8: Reject invalid input.
19026         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
19027         u16_mbtouc.
19028         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
19029         Remove unistr/u16-mbtouc.
19030
19031         unistr/u8-to-u32: Reject invalid input.
19032         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
19033         u8_mbtouc.
19034         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
19035         Remove unistr/u8-mbtouc.
19036
19037         unistr/u8-to-u16: Reject invalid input.
19038         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
19039         u8_mbtouc.
19040         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
19041         Remove unistr/u8-mbtouc.
19042
19043 2010-01-09  Bruno Haible  <bruno@clisp.org>
19044
19045         Tests for module 'getlogin'.
19046         * modules/getlogin-tests: New file.
19047         * tests/test-getlogin.c: New file.
19048
19049         New module 'getlogin'.
19050         * lib/unistd.in.h (getlogin): New declaration.
19051         * lib/getlogin.c: New file.
19052         * m4/getlogin.m4: New file.
19053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
19054         HAVE_GETLOGIN.
19055         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
19056         HAVE_GETLOGIN.
19057         * modules/getlogin: New file.
19058         * doc/posix-functions/getlogin.texi: Mention the new module.
19059         Reported by John W. Eaton <jwe@gnu.org>.
19060
19061 2010-01-09  Bruno Haible  <bruno@clisp.org>
19062
19063         getlogin_r: Support for native Windows.
19064         * lib/getlogin_r.c: Include <windows.h>
19065         (getlogin_r): Implement for native Windows.
19066         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
19067         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
19068         via John W. Eaton <jwe@gnu.org>.
19069
19070 2010-01-09  Bruno Haible  <bruno@clisp.org>
19071
19072         getlogin_r: Small fixes.
19073         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
19074         succeeds.
19075         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
19076         before testing whether getlogin_r is declared. No need to set
19077         HAVE_DECL_GETLOGIN_R to 1.
19078         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
19079
19080 2010-01-09  Bruno Haible  <bruno@clisp.org>
19081
19082         * lib/unistd.in.h (getlogin_r): Add comment.
19083
19084 2010-01-09  Bruno Haible  <bruno@clisp.org>
19085
19086         Tests for module 'getlogin_r'.
19087         * modules/getlogin_r-tests: New file.
19088         * tests/test-getlogin_r.c: New file.
19089
19090 2010-01-09  Jim Meyering  <meyering@redhat.com>
19091
19092         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
19093         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
19094         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
19095
19096 2010-01-08  Simon Josefsson  <simon@josefsson.org>
19097
19098         * lib/dup2.c (rpl_dup2): Improve comment.
19099
19100 2010-01-08  Eric Blake  <ebb9@byu.net>
19101
19102         maint.mk: allow packages to add makefile @@ exceptions
19103         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
19104         (sc_makefile_check): Rename...
19105         (sc_makefile_at_at_check): ...to this, and use hook.
19106
19107         dup2: work around mingw bug
19108         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
19109         Reported by Simon Josefsson.
19110
19111 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
19112
19113         glob: Fix C++ compilation.
19114         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
19115         C++.
19116
19117 2010-01-07  Bruno Haible  <bruno@clisp.org>
19118
19119         Fix indentation of wctype.in.h, broken since 2007-01-06.
19120         * lib/wctype.in.h: Fix indentation of preprocessor directives.
19121
19122 2010-01-07  Bruno Haible  <bruno@clisp.org>
19123
19124         mbslen: Avoid collision with system function.
19125         * lib/string.in.h [MirBSD]: Include <wchar.h>.
19126         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
19127         * m4/mbslen.m4: New file.
19128         * modules/mbslen (Files): Add it.
19129         (configure.ac): Invoke gl_MBSLEN.
19130         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
19131         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
19132         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
19133         via Ian Beckwith <ianb@erislabs.net>.
19134
19135 2010-01-07  Bruno Haible  <bruno@clisp.org>
19136
19137         dirent: Document the last fix.
19138         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
19139
19140 2010-01-07  Bruno Haible  <bruno@clisp.org>
19141
19142         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
19143         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
19144         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
19145         va_list are defined.
19146         * doc/posix-headers/stdio.texi: Document the bug of missing types.
19147         Reported by Eric Blake.
19148
19149 2010-01-07  Bruno Haible  <bruno@clisp.org>
19150
19151         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
19152         * modules/xlist (Depends-on): Add 'list',
19153         * modules/xoset (Depends-on): Add 'oset'.
19154         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19155
19156 2010-01-07  Bruno Haible  <bruno@clisp.org>
19157
19158         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
19159         * doc/posix-functions/strncasecmp.texi: Likewise.
19160
19161 2010-01-07  Bruno Haible  <bruno@clisp.org>
19162
19163         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
19164
19165 2010-01-07  John W. Eaton  <jwe@octave.org>
19166
19167         wctype: allow C++ use
19168         * lib/wctype.in.h: Add extern "C" block for C++.
19169
19170 2010-01-06  Eric Blake  <ebb9@byu.net>
19171
19172         maint.mk: detect incorrect GFDL usage
19173         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
19174
19175 2010-01-06  Jim Meyering  <meyering@redhat.com>
19176         and Eric Blake  <ebb9@byu.net>
19177
19178         maint.mk: ignore multi-line copyright in NEWS
19179         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
19180
19181 2010-01-06  Eric Blake  <ebb9@byu.net>
19182
19183         select: add missing dependency
19184         * modules/select-tests (Depends-on): Move sockets dependency...
19185         * modules/select (Depends-on): ...here.
19186         Reported by Ian Beckwith.
19187
19188         doc: regenerate INSTALL
19189         * doc/INSTALL: Reflect recent autoconf update.
19190         * doc/INSTALL.ISO: Likewise.
19191         * doc/INSTALL.UTF-8: Likewise.
19192
19193         pread: fix compilation on glibc
19194         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
19195         Reported by Ralf Wildenhues.
19196
19197         dirent: fix test failure
19198         * lib/dirent.in.h (includes): Guarantee ino_t.
19199         Reported by Ralf Wildenhues.
19200
19201 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
19202
19203         linkat, renameat: avoid bad free
19204         * lib/at-func2.c (at_func2): Fix typo.
19205         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
19206
19207 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19208
19209         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
19210         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
19211         to avoid failure of symlink test later.
19212
19213 2010-01-06  Eric Blake  <ebb9@byu.net>
19214
19215         stdio, unistd: guarantee ssize_t
19216         * lib/unistd.in.h (includes): Ensure that types required by POSIX
19217         2008 are exposed when needed.
19218         * lib/stdio.in.h (includes): Likewise.
19219         Reported by Ralf Wildenhues.
19220
19221 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
19222
19223         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
19224         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
19225         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
19226
19227 2010-01-06  Jim Meyering  <meyering@redhat.com>
19228
19229         readtokens: this module *does* require xalloc.h
19230         It uses only functions that were omitted by the old syntax-check rule.
19231         * lib/readtokens.c: Include "xalloc.h" once again.
19232         * modules/readtokens (Depends-on): Add xalloc.
19233         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
19234
19235 2010-01-05  Eric Blake  <ebb9@byu.net>
19236
19237         maint: support 'make announcement' from a VPATH build
19238         * top/maint.mk (announcement): Look for correct NEWS file.
19239
19240 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
19241
19242         utimens (fdutimens): ignore a negative FD, per contract
19243         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
19244         when we have a valid file descriptor.  Otherwise, using a brand
19245         new glibc (with just-patched futimens that now fails with EBADF)
19246         would cause this function to fail with ENOSYS.
19247         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
19248         See also http://bugzilla.redhat.com/552320.
19249
19250 2010-01-05  Eric Blake  <ebb9@byu.net>
19251
19252         strcase: document what it provides
19253         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
19254         gnulib module.
19255         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
19256         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
19257
19258 2010-01-05  Jim Meyering  <meyering@redhat.com>
19259
19260         maint: remove useless inclusions of "xalloc.h"
19261         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
19262         * lib/readtokens.c: Likewise.
19263         * lib/same.c: Likewise.
19264         * modules/getloadavg (Depends-on): Remove xalloc.
19265         * modules/readtokens: Likewise.
19266         * modules/same: Likewise.
19267
19268         maint.mk: include 4 more function names in alloca.h-checking regexp
19269         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
19270         regexp.  Before, we would give a false-positive (saying alloca.h
19271         is included unnecessarily) when the only uses involved omitted symbols.
19272
19273         xalloc.h: use consistent formatting
19274         * lib/xalloc.h: Move declarations to start in the first column.
19275
19276 2010-01-05  Eric Blake  <ebb9@byu.net>
19277
19278         mkdir: avoid xalloc
19279         * lib/mkdir.c (includes): Drop unused header.
19280         Reported by John W. Eaton.
19281
19282 2010-01-04  Jim Meyering  <meyering@redhat.com>
19283
19284         nl_langinfo: avoid configure-time syntax error
19285         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
19286         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
19287         the empty string.  Don't let that provoke a shell syntax error.
19288
19289         regcomp, regexec, fnmatch: avoid array bounds read error
19290         * lib/regcomp.c (build_equiv_class): From glibc:
19291         Use only the low 24 bits of a findidx return value as an index
19292         into the weights array.  Patch by Ulrich Drepper:
19293         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
19294         * lib/regexec.c (check_node_accept_bytes): Likewise.
19295         * lib/fnmatch_loop.c (FCT): Likewise.
19296
19297         regcomp: skip collseq lookup when there are no rules
19298         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
19299         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
19300
19301         regcomp: recognize ill-formed { } expressions
19302         * lib/regcomp.c (parse_dup_op): From glibc:
19303         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
19304
19305         regcomp: fix typo in comment
19306         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
19307         s/satisfy/satisfies/.
19308
19309         regcomp: sync from glibc: remove dead store
19310         * lib/regcomp.c (duplicate_node_closure): Remove useless
19311         search_duplicated_node call and dead store.
19312
19313         regcomp: sync from glibc; always use nl_langinfo
19314         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
19315         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
19316         * modules/regex (Depends-on): Add nl_langinfo.
19317
19318 2010-01-04  Eric Blake  <ebb9@byu.net>
19319
19320         fdopendir: fix configure test
19321         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
19322
19323 2010-01-01  Bruno Haible  <bruno@clisp.org>
19324
19325         wchar: Remove unused configure check.
19326         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
19327
19328 2010-01-01  Eric Blake  <ebb9@byu.net>
19329
19330         headers: make check of system header explicit
19331         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
19332         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
19333         ourselves.
19334         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19335         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19336         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
19337         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
19338         internals.
19339         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
19340         missing.
19341         Suggested by Bruno Haible.
19342
19343 2010-01-01  Jim Meyering  <meyering@redhat.com>
19344
19345         ChangeLog: tweak to eliminate unnecessary copyright line
19346         * ChangeLog: Remove a copyright line that was mistakenly updated
19347         by today's update-copyright run.  Reported by Eric Blake.
19348
19349         test-update-copyright: don't let envvar setting cause test failure
19350         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19351
19352 2010-01-01  Bruno Haible  <bruno@clisp.org>
19353
19354         localename: Avoid gcc warning.
19355         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
19356         function if it is not used.
19357
19358 2010-01-01  Jim Meyering  <meyering@redhat.com>
19359
19360         update nearly all FSF copyright year lists to include 2010
19361         Use the same procedure as for 2009, outlined in
19362         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
19363
19364         version-etc: set COPYRIGHT_YEAR to 2010
19365         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
19366
19367 2009-12-31  Eric Blake  <ebb9@byu.net>
19368
19369         doc: correct availability of cygwin 1.5.x getopt
19370         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
19371         variables.
19372         * doc/posix-functions/opterr.texi (opterr): Likewise.
19373         * doc/posix-functions/optind.texi (optind): Likewise.
19374         * doc/posix-functions/optopt.texi (optopt): Likewise.
19375         * doc/posix-functions/tzname.texi (tzname): Likewise.
19376
19377         openat: update maintainer
19378         * modules/openat (Maintainer): Add myself.
19379
19380         utimens: avoid shadowing warning
19381         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
19382         buffers into one, to avoid shadowing, as well as avoiding a
19383         redundant stat.
19384         Reported by Jim Meyering.
19385
19386         test-dup2: avoid compiler warning
19387         * tests/test-dup2.c (is_inheritable): Only define if used.
19388
19389 2010-01-01  Bruno Haible  <bruno@clisp.org>
19390
19391         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
19392         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
19393         defined, use wctomb instead of wcrtomb.
19394
19395 2010-01-01  Bruno Haible  <bruno@clisp.org>
19396
19397         iconv: Reject native Solaris iconv.
19398         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
19399         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
19400
19401 2009-12-31  Bruno Haible  <bruno@clisp.org>
19402
19403         * tests/test-signal.c (main): Remove test of 'SIG'.
19404
19405 2009-12-31  Bruno Haible  <bruno@clisp.org>
19406
19407         spawn: Fix incomplete fix.
19408         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19409         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19410         warnings for GNULIB_POSIXCHECK again.
19411         Reported by Eric Blake.
19412
19413 2009-12-31  Bruno Haible  <bruno@clisp.org>
19414
19415         Avoid namespace pollution on glibc systems.
19416         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
19417         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
19418         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
19419         glibc systems.
19420
19421 2009-12-31  Bruno Haible  <bruno@clisp.org>
19422
19423         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
19424         (gl_REPLACE_WCHAR_H): Turn into a no-op.
19425         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
19426         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19427         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19428         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19429         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19430
19431 2009-12-31  Bruno Haible  <bruno@clisp.org>
19432
19433         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19434         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
19435         afterwards.
19436
19437 2009-12-31  Bruno Haible  <bruno@clisp.org>
19438
19439         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
19440         SYS_UTSNAME_H.
19441
19442 2009-12-31  Bruno Haible  <bruno@clisp.org>
19443
19444         spawn: Fix misapplied patch.
19445         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19446         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19447         warnings for GNULIB_POSIXCHECK.
19448
19449 2009-12-31  Bruno Haible  <bruno@clisp.org>
19450
19451         times: Update after sys_times changed.
19452         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
19453         * modules/times (Files): Add it.
19454         (configure.ac): Invoke gl_FUNC_TIMES.
19455
19456 2009-12-31  Bruno Haible  <bruno@clisp.org>
19457
19458         Use AC_C_INLINE where necessary.
19459         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
19460         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19461         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19462         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19463         * m4/mbfile.m4 (gl_MBFILE): Likewise.
19464         * m4/mbiter.m4 (gl_MBITER): Likewise.
19465         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19466         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19467         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
19468         * modules/u64 (configure.ac): Likewise.
19469
19470 2009-12-31  Bruno Haible  <bruno@clisp.org>
19471
19472         Use AC_C_INLINE instead of module 'inline' where possible.
19473         * modules/inline (Description): Clarify purpose.
19474         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
19475         * modules/count-one-bits (Depends-on): Remove inline.
19476         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
19477         * modules/openat (Depends-on): Remove inline.
19478         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
19479         instead of depending on module 'inline'.
19480         * modules/filevercmp (Depends-on, configure.ac): Likewise.
19481         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
19482         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
19483         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
19484         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
19485         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
19486         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
19487         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
19488         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
19489         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
19490         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
19491         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
19492         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
19493         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
19494         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
19495         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
19496         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
19497         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
19498         Likewise.
19499         * modules/unictype/property-ascii-hex-digit (Depends-on,
19500         configure.ac): Likewise.
19501         * modules/unictype/property-bidi-arabic-digit (Depends-on,
19502         configure.ac): Likewise.
19503         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
19504         configure.ac): Likewise.
19505         * modules/unictype/property-bidi-block-separator (Depends-on,
19506         configure.ac): Likewise.
19507         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
19508         configure.ac): Likewise.
19509         * modules/unictype/property-bidi-common-separator (Depends-on,
19510         configure.ac): Likewise.
19511         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
19512         Likewise.
19513         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
19514         configure.ac): Likewise.
19515         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
19516         configure.ac): Likewise.
19517         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
19518         configure.ac): Likewise.
19519         * modules/unictype/property-bidi-european-digit (Depends-on,
19520         configure.ac): Likewise.
19521         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
19522         configure.ac): Likewise.
19523         * modules/unictype/property-bidi-left-to-right (Depends-on,
19524         configure.ac): Likewise.
19525         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
19526         configure.ac): Likewise.
19527         * modules/unictype/property-bidi-other-neutral (Depends-on,
19528         configure.ac): Likewise.
19529         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
19530         Likewise.
19531         * modules/unictype/property-bidi-segment-separator (Depends-on,
19532         configure.ac): Likewise.
19533         * modules/unictype/property-bidi-whitespace (Depends-on,
19534         configure.ac): Likewise.
19535         * modules/unictype/property-combining (Depends-on, configure.ac):
19536         Likewise.
19537         * modules/unictype/property-composite (Depends-on, configure.ac):
19538         Likewise.
19539         * modules/unictype/property-currency-symbol (Depends-on,
19540         configure.ac): Likewise.
19541         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
19542         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
19543         Likewise.
19544         * modules/unictype/property-default-ignorable-code-point (Depends-on,
19545         configure.ac): Likewise.
19546         * modules/unictype/property-deprecated (Depends-on, configure.ac):
19547         Likewise.
19548         * modules/unictype/property-diacritic (Depends-on, configure.ac):
19549         Likewise.
19550         * modules/unictype/property-extender (Depends-on, configure.ac):
19551         Likewise.
19552         * modules/unictype/property-format-control (Depends-on, configure.ac):
19553         Likewise.
19554         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
19555         Likewise.
19556         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
19557         Likewise.
19558         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
19559         Likewise.
19560         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
19561         Likewise.
19562         * modules/unictype/property-hyphen (Depends-on, configure.ac):
19563         Likewise.
19564         * modules/unictype/property-id-continue (Depends-on, configure.ac):
19565         Likewise.
19566         * modules/unictype/property-id-start (Depends-on, configure.ac):
19567         Likewise.
19568         * modules/unictype/property-ideographic (Depends-on, configure.ac):
19569         Likewise.
19570         * modules/unictype/property-ids-binary-operator (Depends-on,
19571         configure.ac): Likewise.
19572         * modules/unictype/property-ids-trinary-operator (Depends-on,
19573         configure.ac): Likewise.
19574         * modules/unictype/property-ignorable-control (Depends-on,
19575         configure.ac): Likewise.
19576         * modules/unictype/property-iso-control (Depends-on, configure.ac):
19577         Likewise.
19578         * modules/unictype/property-join-control (Depends-on, configure.ac):
19579         Likewise.
19580         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
19581         Likewise.
19582         * modules/unictype/property-line-separator (Depends-on, configure.ac):
19583         Likewise.
19584         * modules/unictype/property-logical-order-exception (Depends-on,
19585         configure.ac): Likewise.
19586         * modules/unictype/property-lowercase (Depends-on, configure.ac):
19587         Likewise.
19588         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
19589         * modules/unictype/property-non-break (Depends-on, configure.ac):
19590         Likewise.
19591         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
19592         Likewise.
19593         * modules/unictype/property-numeric (Depends-on, configure.ac):
19594         Likewise.
19595         * modules/unictype/property-other-alphabetic (Depends-on,
19596         configure.ac): Likewise.
19597         * modules/unictype/property-other-default-ignorable-code-point
19598         (Depends-on, configure.ac): Likewise.
19599         * modules/unictype/property-other-grapheme-extend (Depends-on,
19600         configure.ac): Likewise.
19601         * modules/unictype/property-other-id-continue (Depends-on,
19602         configure.ac): Likewise.
19603         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
19604         Likewise.
19605         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
19606         Likewise.
19607         * modules/unictype/property-other-math (Depends-on, configure.ac):
19608         Likewise.
19609         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
19610         Likewise.
19611         * modules/unictype/property-paired-punctuation (Depends-on,
19612         configure.ac): Likewise.
19613         * modules/unictype/property-paragraph-separator (Depends-on,
19614         configure.ac): Likewise.
19615         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
19616         Likewise.
19617         * modules/unictype/property-pattern-white-space (Depends-on,
19618         configure.ac): Likewise.
19619         * modules/unictype/property-private-use (Depends-on, configure.ac):
19620         Likewise.
19621         * modules/unictype/property-punctuation (Depends-on, configure.ac):
19622         Likewise.
19623         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
19624         Likewise.
19625         * modules/unictype/property-radical (Depends-on, configure.ac):
19626         Likewise.
19627         * modules/unictype/property-sentence-terminal (Depends-on,
19628         configure.ac): Likewise.
19629         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
19630         Likewise.
19631         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
19632         * modules/unictype/property-terminal-punctuation (Depends-on,
19633         configure.ac): Likewise.
19634         * modules/unictype/property-titlecase (Depends-on, configure.ac):
19635         Likewise.
19636         * modules/unictype/property-unassigned-code-value (Depends-on,
19637         configure.ac): Likewise.
19638         * modules/unictype/property-unified-ideograph (Depends-on,
19639         configure.ac): Likewise.
19640         * modules/unictype/property-uppercase (Depends-on, configure.ac):
19641         Likewise.
19642         * modules/unictype/property-variation-selector (Depends-on,
19643         configure.ac): Likewise.
19644         * modules/unictype/property-white-space (Depends-on, configure.ac):
19645         Likewise.
19646         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
19647         Likewise.
19648         * modules/unictype/property-xid-start (Depends-on, configure.ac):
19649         Likewise.
19650         * modules/unictype/property-zero-width (Depends-on, configure.ac):
19651         Likewise.
19652         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
19653         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
19654         Likewise.
19655
19656 2009-12-31  Bruno Haible  <bruno@clisp.org>
19657
19658         Remove unnecessary AC_C_INLINE invocation.
19659         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
19660         since 2009-08-21.
19661
19662 2009-12-31  Jim Meyering  <meyering@redhat.com>
19663
19664         maint.mk: don't require explicit gpg_key_ID in cfg.mk
19665         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
19666         With this change, we can all remove the gpg_key_ID = ... definition
19667         from our respective cfg.mk files.
19668
19669         maint.mk: create announcement template in ~/, not in /tmp
19670         * top/maint.mk (emit_upload_commands): Adjust.
19671         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
19672         Remove temporary file, .ci-msg.
19673
19674 2009-12-31  Eric Blake  <ebb9@byu.net>
19675
19676         link-warning: always build headers with link warnings
19677         * modules/arpa_inet (Makefile.am): Always build replacement
19678         header.
19679         * modules/ctype (Makefile.am): Likewise.
19680         * modules/dirent (Makefile.am): Likewise.
19681         * modules/inttypes (Makefile.am): Likewise.
19682         * modules/langinfo (Makefile.am): Likewise.
19683         * modules/locale (Makefile.am): Likewise.
19684         * modules/spawn (Makefile.am): Likewise.
19685         * modules/sys_file (Makefile.am): Likewise.
19686         * modules/sys_ioctl (Makefile.am): Likewise.
19687         * modules/sys_select (Makefile.am): Likewise.
19688         * modules/sys_socket (Makefile.am): Likewise.
19689         * modules/sys_times (Makefile.am): Likewise.
19690         * modules/sys_utsname (Makefile.am): Likewise.
19691         * modules/sys_wait (Makefile.am): Likewise.
19692         * modules/wchar (Makefile.am): Likewise.
19693         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
19694         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
19695         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
19696         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
19697         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
19698         Likewise.
19699         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19700         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19701         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
19702         Likewise.
19703         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
19704         Likewise.
19705         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19706         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
19707         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
19708         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19709         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19710         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19711         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19712         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
19713         (gl_WCHAR_H_DEFAULTS): Likewise.
19714
19715 2009-12-31  Eric Blake  <ebb9@byu.net>
19716
19717         signal, spawn: use link warnings
19718         * lib/signal.in.h (sigset_t): Make unconditional.
19719         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
19720         (sigpending, sigprocmask, sigaction): Add link warnings.
19721         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
19722         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
19723         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
19724         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
19725         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
19726         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
19727         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
19728         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
19729         (posix_spawn_file_actions_destroy)
19730         (posix_spawn_file_actions_addopen)
19731         (posix_spawn_file_actions_addclose)
19732         (posix_spawn_file_actions_adddup2): Likewise.
19733         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
19734         * tests/test-signal.c (main): Enhance test.
19735
19736         spawn: improve wrapper support
19737         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
19738         (gl_SPAWN_H_DEFAULTS): New defaults.
19739         * modules/spawn (Makefile.am): Substitute them.
19740         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
19741         Only declare if missing or broken.
19742
19743         sys_times, sys_utsname: use include_next
19744         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
19745         header.
19746         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
19747         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19748         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19749         * modules/sys_times (Depends-on): Add include_next.
19750         (Makefile.am): Substitute additional values.
19751         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19752         * lib/sys_times.in.h (includes): Include native header, if
19753         available.
19754         * lib/sys_utsname.in.h (includes): Likewise.
19755         * tests/test-sys_times.c (main): Enhance test.
19756
19757         fdutimensat: revert prior patch
19758         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
19759         utimens.h.
19760         Reported by Bruno Haible.
19761
19762 2009-12-30  Eric Blake  <ebb9@byu.net>
19763
19764         sys_wait: drop link-warning dependency
19765         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
19766         link-warning efforts.
19767         * lib/sys_wait.in.h: Likewise.
19768
19769         fdutimensat: remove bogus dependency
19770         * modules/fdutimensat (Depends-on): Drop inline.
19771
19772         unistd: fix typo
19773         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
19774
19775 2009-12-30  Bruno Haible  <bruno@clisp.org>
19776
19777         Fix compilation error with Solaris cc.
19778         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
19779         * lib/unicase/u16-is-invariant.c: Likewise.
19780         * lib/unicase/u32-is-invariant.c: Likewise.
19781         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19782
19783 2009-12-30  Bruno Haible  <bruno@clisp.org>
19784
19785         Fix test crash.
19786         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
19787         locales.
19788         Reported by Simon Josefsson <simon@josefsson.org>.
19789
19790 2009-12-30  Bruno Haible  <bruno@clisp.org>
19791
19792         Fix compilation error on most platforms.
19793         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
19794         Reported by Simon Josefsson <simon@josefsson.org>
19795         and Nelson H. F. Beebe <beebe@math.utah.edu>.
19796
19797 2009-12-30  Eric Blake  <ebb9@byu.net>
19798
19799         futimens, utimensat: work around ntfs-3g bug
19800         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
19801         a ctime bug is present, and expand workaround to cover ntfs-3g.
19802         * lib/utimens.c (fdutimens, lutimens): Likewise.
19803         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
19804         (validate_timespec): Adjust return value.
19805         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
19806         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19807         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
19808
19809 2009-12-29  Eric Blake  <ebb9@byu.net>
19810
19811         link-warning: make usage consistent
19812         * modules/ctype (Depends-on): Add link-warning.
19813         (Makefile.am): Update rules accordingly.
19814         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19815         * modules/locale (Depends-on, Makefile.am): Likewise.
19816         * modules/sys_file (Makefile.am): Likewise.
19817         * modules/getopt-posix (Makefile.am): Delete unused link warning
19818         efforts.
19819         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
19820         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
19821         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
19822         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
19823
19824         stdio: remove unused variables
19825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
19826         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
19827         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19828
19829         tests: test more substitute headers
19830         * modules/ctype-tests: New file.
19831         * modules/dirent-tests: Likewise.
19832         * modules/spawn-tests: Likewise.
19833         * modules/sys_file-tests: Likewise.
19834         * modules/sys_ioctl-tests: Likewise.
19835         * modules/sys_wait-tests: Likewise.
19836         * tests/test-ctype.c: Likewise.
19837         * tests/test-dirent.c: Likewise.
19838         * tests/test-spawn.c: Likewise.
19839         * tests/test-sys_file.c: Likewise.
19840         * tests/test-sys_ioctl.c: Likewise.
19841         * tests/test-sys_wait.c: Likewise.
19842         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
19843         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
19844         whether or not flock is in use.
19845
19846         tests: remove License section from module
19847         * modules/arpa_inet-tests: Remove unneeded section.
19848         * modules/byteswap-tests: Likewise.
19849         * modules/ceilf-tests: Likewise.
19850         * modules/ceill-tests: Likewise.
19851         * modules/crypto/des-tests: Likewise.
19852         * modules/crypto/gc-arcfour-tests: Likewise.
19853         * modules/crypto/gc-arctwo-tests: Likewise.
19854         * modules/crypto/gc-des-tests: Likewise.
19855         * modules/crypto/gc-hmac-md5-tests: Likewise.
19856         * modules/crypto/gc-hmac-sha1-tests: Likewise.
19857         * modules/crypto/gc-md2-tests: Likewise.
19858         * modules/crypto/gc-md4-tests: Likewise.
19859         * modules/crypto/gc-md5-tests: Likewise.
19860         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
19861         * modules/crypto/gc-rijndael-tests: Likewise.
19862         * modules/crypto/gc-sha1-tests: Likewise.
19863         * modules/crypto/gc-tests: Likewise.
19864         * modules/crypto/md2-tests: Likewise.
19865         * modules/crypto/md4-tests: Likewise.
19866         * modules/fcntl-h-tests: Likewise.
19867         * modules/floorf-tests: Likewise.
19868         * modules/floorl-tests: Likewise.
19869         * modules/frexp-nolibm-tests: Likewise.
19870         * modules/frexp-tests: Likewise.
19871         * modules/frexpl-nolibm-tests: Likewise.
19872         * modules/frexpl-tests: Likewise.
19873         * modules/getaddrinfo-tests: Likewise.
19874         * modules/inttypes-tests: Likewise.
19875         * modules/isfinite-tests: Likewise.
19876         * modules/isinf-tests: Likewise.
19877         * modules/ldexpl-tests: Likewise.
19878         * modules/locale-tests: Likewise.
19879         * modules/math-tests: Likewise.
19880         * modules/netdb-tests: Likewise.
19881         * modules/netinet_in-tests: Likewise.
19882         * modules/printf-frexp-tests: Likewise.
19883         * modules/printf-frexpl-tests: Likewise.
19884         * modules/priv-set-tests: Likewise.
19885         * modules/random_r-tests: Likewise.
19886         * modules/round-tests: Likewise.
19887         * modules/roundf-tests: Likewise.
19888         * modules/roundl-tests: Likewise.
19889         * modules/search-tests: Likewise.
19890         * modules/select-tests: Likewise.
19891         * modules/signal-tests: Likewise.
19892         * modules/stdbool-tests: Likewise.
19893         * modules/stddef-tests: Likewise.
19894         * modules/stdint-tests: Likewise.
19895         * modules/stdio-tests: Likewise.
19896         * modules/stdlib-tests: Likewise.
19897         * modules/string-tests: Likewise.
19898         * modules/strings-tests: Likewise.
19899         * modules/sys_select-tests: Likewise.
19900         * modules/sys_socket-tests: Likewise.
19901         * modules/sys_stat-tests: Likewise.
19902         * modules/sys_time-tests: Likewise.
19903         * modules/sys_utsname-tests: Likewise.
19904         * modules/sysexits-tests: Likewise.
19905         * modules/time-tests: Likewise.
19906         * modules/trunc-tests: Likewise.
19907         * modules/truncf-tests: Likewise.
19908         * modules/truncl-tests: Likewise.
19909         * modules/tsearch-tests: Likewise.
19910         * modules/unistd-tests: Likewise.
19911         * modules/wchar-tests: Likewise.
19912         * modules/wctype-tests: Likewise.
19913
19914         tests: fix license on several tests
19915         * tests/test-des.c: Update to GPLv3+.
19916         * tests/test-flock.c: Likewise.
19917         * tests/test-fsync.c: Likewise.
19918         * tests/test-futimens.h: Likewise.
19919         * tests/test-gc-arcfour.c: Likewise.
19920         * tests/test-gc-arctwo.c: Likewise.
19921         * tests/test-gc-des.c: Likewise.
19922         * tests/test-gc-hmac-md5.c: Likewise.
19923         * tests/test-gc-hmac-sha1.c: Likewise.
19924         * tests/test-gc-md2.c: Likewise.
19925         * tests/test-gc-md4.c: Likewise.
19926         * tests/test-gc-md5.c: Likewise.
19927         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19928         * tests/test-gc-rijndael.c: Likewise.
19929         * tests/test-gc-sha1.c: Likewise.
19930         * tests/test-gc.c: Likewise.
19931         * tests/test-getcwd.c: Likewise.
19932         * tests/test-link.c: Likewise.
19933         * tests/test-link.h: Likewise.
19934         * tests/test-lutimens.h: Likewise.
19935         * tests/test-md2.c: Likewise.
19936         * tests/test-md4.c: Likewise.
19937         * tests/test-mkdir.h: Likewise.
19938         * tests/test-rename.c: Likewise.
19939         * tests/test-rename.h: Likewise.
19940         * tests/test-safe-alloc.c: Likewise.
19941         * tests/test-utimens-common.h: Likewise.
19942         * tests/test-utimens.h: Likewise.
19943
19944         maint: sync license texts
19945         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
19946         * doc/gpl-3.0.texi: Revert copyright year update.
19947         * doc/lgpl-3.0.texi: Likewise.
19948
19949 2009-12-29  Jim Meyering  <meyering@redhat.com>
19950
19951         update nearly all FSF copyright year lists to include 2009
19952         The files named by the following are exempted:
19953             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
19954               test -f "$dst" && { echo "$dst"; continue; }
19955               test -d "$dst" || continue
19956               echo "$dst"/$(basename "$src")
19957             done > exempt
19958             git ls-files tests/unictype >> exempt
19959         In the remaining files, convert to all-interval notation if
19960         - there is already at least one year interval like 2000-2003
19961         - the file is maintained by me
19962         - the file is in lib/uni*/, where that style already prevails
19963         Otherwise, use update-copyright's default.
19964
19965 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19966         and Eric Blake  <ebb9@byu.net>
19967
19968         tests: don't require debug system() to pass
19969         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
19970         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19971         * tests/test-unlink.h (test_unlink_func): Likewise.
19972         * tests/test-fstatat.c (main): ...into callers.
19973         * tests/test-lstat.c (main): Likewise.
19974         * tests/test-rmdir.c (main): Likewise.
19975         * tests/test-unlink.c (main): Likewise.
19976         * tests/test-unlinkat.c (main): Likewise.
19977         * tests/test-areadlink-with-size.c (main): Don't require a
19978         debug-only system call to pass, aiding cross-testing to mingw.
19979         * tests/test-areadlink.c (main): Likewise.
19980         * tests/test-areadlinkat-with-size.c (main): Likewise.
19981         * tests/test-areadlinkat.c (main): Likewise.
19982         * tests/test-canonicalize-lgpl.c (main): Likewise.
19983         * tests/test-canonicalize.c (main): Likewise.
19984         * tests/test-chown.c (main): Likewise.
19985         * tests/test-fchownat.c (main): Likewise.
19986         * tests/test-lchown.c (main): Likewise.
19987         * tests/test-fdutimensat.c (main): Likewise.
19988         * tests/test-futimens.c (main): Likewise.
19989         * tests/test-link.c (main): Likewise.
19990         * tests/test-linkat.c (main): Likewise.
19991         * tests/test-mkdir.c (main): Likewise.
19992         * tests/test-mkdirat.c (main): Likewise.
19993         * tests/test-mkfifo.c (main): Likewise.
19994         * tests/test-mkfifoat.c (main): Likewise.
19995         * tests/test-mknod.c (main): Likewise.
19996         * tests/test-readlink.c (main): Likewise.
19997         * tests/test-remove.c (main): Likewise.
19998         * tests/test-rename.c (main): Likewise.
19999         * tests/test-renameat.c (main): Likewise.
20000         * tests/test-symlink.c (main): Likewise.
20001         * tests/test-symlinkat.c (main): Likewise.
20002         * tests/test-utimens.c (main): Likewise.
20003         * tests/test-utimensat.c (main): Likewise.
20004
20005 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20006
20007         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
20008         on $(UNUSED_PARAMETER_H) to avoid build failure.
20009
20010 2009-12-28  Jim Meyering  <meyering@redhat.com>
20011
20012         update-copyright: you may specify a max. line length other than 72
20013         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20014
20015         maint: use consistent FSF copyright line syntax
20016         * lib/posixtm.c: Add missing comma in FSF copyright line.
20017         * lib/posixtm.h: Likewise.
20018         * lib/getugroups.c: Add missing ", Inc.".
20019
20020         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
20021         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
20022         FSF copyright line.  Remove trailing blanks.
20023
20024 2009-12-28  Eric Blake  <ebb9@byu.net>
20025
20026         test-dup2: reduce dependencies
20027         * modules/cloexec (Configure.ac): Set witness.
20028         * modules/dup2-tests (Depends-on): Drop cloexec.
20029         * tests/test-dup2.c (main): Skip portion of test if cloexec module
20030         not present.
20031         Suggested by Bruno Haible.
20032
20033 2009-12-26  Bruno Haible  <bruno@clisp.org>
20034
20035         Remove an unneeded dependency.
20036         * modules/fseterr (Depends-on): Remove dup2.
20037
20038 2009-12-26  Eric Blake  <ebb9@byu.net>
20039
20040         tests: use macros.h in more places
20041         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
20042         (ASSERT_STREAM): Provide default of stderr.
20043         * tests/test-dirent-safer.c: Include macros.h, using alternate
20044         stream for assertions.
20045         * tests/test-dup-safer.c: Likewise.
20046         * tests/test-freopen-safer.c: Likewise.
20047         * tests/test-getopt.c: Likewise.
20048         * tests/test-openat-safer.c: Likewise.
20049         * tests/test-pipe.c: Likewise.
20050         * tests/test-popen-safer.c: Likewise.
20051         * modules/dirent-safer-tests (Files): Include macros.h.
20052         * modules/unistd-safer-tests (Files): Likewise.
20053         * modules/freopen-safer-tests (Files): Likewise.
20054         * modules/getopt-posix-tests (Files): Likewise.
20055         * modules/openat-safer-tests (Files): Likewise.
20056         * modules/pipe-tests (Files): Likewise.
20057
20058 2009-12-26  Bruno Haible  <bruno@clisp.org>
20059
20060         javacomp: Portability fix.
20061         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
20062         that it also works on Solaris.
20063
20064 2009-12-26  Bruno Haible  <bruno@clisp.org>
20065
20066         localename: Fix storage allocation of gl_locale_name_thread's result.
20067         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
20068         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
20069         all platforms that have 'uselocale'.
20070         (gl_locale_name_thread_unsafe): New function, extracted from
20071         gl_locale_name_thread.
20072         (gl_locale_name_thread): Call struniq on all platforms that have
20073         'uselocale'.
20074         * tests/test-localename.c (test_locale_name_thread): Check that the
20075         resulting strings are permanently allocated.
20076         * modules/localename-tests (Depends-on): Add strdup.
20077
20078 2009-12-26  Bruno Haible  <bruno@clisp.org>
20079
20080         * tests/test-localename.c (categories): Fill in the strings.
20081
20082 2009-12-26  Jim Meyering  <meyering@redhat.com>
20083
20084         isdir: complete the removal of m4/isdir.m4
20085         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
20086
20087         isdir: clean up, since at least grep still uses it
20088         * lib/isdir.c: Include "isdir.h".
20089         (S_ISDIR): Remove now-unneeded definition.
20090         * modules/isdir (Files): Add lib/isdir.h.
20091         * lib/isdir.h: New file, with declaration.
20092         * m4/isdir.m4: Remove file -- unneeded.
20093
20094 2009-12-25  Bruno Haible  <bruno@clisp.org>
20095
20096         selinux-h: Make generated .h files standalone.
20097         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
20098         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
20099         * lib/se-selinux.in.h: Likewise.
20100         * modules/selinux-h (Depends-on): Add unused-parameter.
20101         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
20102         selinux/selinux.h and selinux/context.h.
20103         Suggested by Eric Blake.
20104
20105 2009-12-25  Bruno Haible  <bruno@clisp.org>
20106
20107         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
20108         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
20109         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
20110         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
20111         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
20112
20113 2009-12-24  Bruno Haible  <bruno@clisp.org>
20114
20115         openat: Fix warning.
20116         * lib/openat-proc.c: Include <unistd.h>.
20117
20118 2009-12-24  Bruno Haible  <bruno@clisp.org>
20119
20120         New module 'unused-parameter'.
20121         * build-aux/unused-parameter.h: New file, extracted from earlier
20122         gnulib-common.m4.
20123         * modules/unused-parameter: New file.
20124         * lib/unistr.h: Include unused-parameter.h.
20125         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
20126         _GL_UNUSED.
20127         * modules/unistr/base (Depends-on): Add unused-parameter.
20128
20129 2009-12-24  Bruno Haible  <bruno@clisp.org>
20130
20131         Add missing dependencies to 'extensions' module.
20132         * m4/extensions.m4: Add comment.
20133         * modules/accept4 (Depends-on): Add extensions.
20134         * modules/dup3 (Depends-on): Likewise.
20135         * modules/fcntl (Depends-on): Likewise.
20136         * modules/futimens (Depends-on): Likewise.
20137         * modules/mknod (Depends-on): Likewise.
20138         * modules/pipe2 (Depends-on): Likewise.
20139         * modules/stat-time (Depends-on): Likewise.
20140         * modules/strcasestr-simple (Depends-on): Likewise.
20141         * modules/strsignal (Depends-on): Likewise.
20142         * modules/utimensat (Depends-on): Likewise.
20143         * modules/localcharset (Depends-on): Likewise. Needed because of
20144         gl_FCNTL_O_FLAGS.
20145         * modules/wcrtomb (Depends-on): Likewise. Needed because of
20146         AC_TYPE_MBSTATE_T.
20147         * modules/wcsnrtombs (Depends-on): Likewise.
20148         * modules/wcsrtombs (Depends-on): Likewise.
20149
20150 2009-12-24  Bruno Haible  <bruno@clisp.org>
20151
20152         binary-io: Avoid gcc warning due to SET_BINARY.
20153         * lib/binary-io.h (SET_BINARY): Cast the result to void.
20154         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
20155
20156 2009-12-24  Bruno Haible  <bruno@clisp.org>
20157
20158         Avoid future namespace pollution on glibc systems.
20159         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
20160         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
20161         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
20162         glibc systems.
20163
20164 2009-12-24  Bruno Haible  <bruno@clisp.org>
20165
20166         Refactor common macros used in tests.
20167         * tests/macros.h: New file.
20168         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
20169         and/or <stdlib.h>, if appropriate.
20170         (ASSERT, SIZEOF): Remove macros.
20171         * tests/test-areadlink-with-size.c: Likewise.
20172         * tests/test-areadlinkat.c: Likewise.
20173         * tests/test-areadlinkat-with-size.c: Likewise.
20174         * tests/test-argmatch.c: Likewise.
20175         * tests/test-argv-iter.c: Likewise.
20176         * tests/test-array-mergesort.c: Likewise.
20177         * tests/test-array_list.c: Likewise.
20178         * tests/test-array_oset.c: Likewise.
20179         * tests/test-avltree_list.c: Likewise.
20180         * tests/test-avltree_oset.c: Likewise.
20181         * tests/test-avltreehash_list.c: Likewise.
20182         * tests/test-base64.c: Likewise.
20183         * tests/test-binary-io.c: Likewise.
20184         * tests/test-bitrotate.c: Likewise.
20185         * tests/test-btowc.c: Likewise.
20186         * tests/test-byteswap.c: Likewise.
20187         * tests/test-c-ctype.c: Likewise.
20188         * tests/test-c-stack.c: Likewise.
20189         * tests/test-c-strcasecmp.c: Likewise.
20190         * tests/test-c-strcasestr.c: Likewise.
20191         * tests/test-c-strncasecmp.c: Likewise.
20192         * tests/test-c-strstr.c: Likewise.
20193         * tests/test-canonicalize-lgpl.c: Likewise.
20194         * tests/test-canonicalize.c: Likewise.
20195         * tests/test-carray_list.c: Likewise.
20196         * tests/test-ceilf1.c: Likewise.
20197         * tests/test-ceilf2.c: Likewise.
20198         * tests/test-ceill.c: Likewise.
20199         * tests/test-chown.c: Likewise.
20200         * tests/test-cloexec.c: Likewise.
20201         * tests/test-copy-acl.c: Likewise.
20202         * tests/test-copy-file.c: Likewise.
20203         * tests/test-count-one-bits.c: Likewise.
20204         * tests/test-dprintf-posix.c: Likewise.
20205         * tests/test-dup2.c: Likewise.
20206         * tests/test-dup3.c: Likewise.
20207         * tests/test-duplocale.c: Likewise.
20208         * tests/test-fbufmode.c: Likewise.
20209         * tests/test-fchdir.c: Likewise.
20210         * tests/test-fchownat.c: Likewise.
20211         * tests/test-fcntl-safer.c: Likewise.
20212         * tests/test-fcntl.c: Likewise.
20213         * tests/test-fdopendir.c: Likewise.
20214         * tests/test-fdutimensat.c: Likewise.
20215         * tests/test-fflush2.c: Likewise.
20216         * tests/test-file-has-acl.c: Likewise.
20217         * tests/test-filevercmp.c: Likewise.
20218         * tests/test-flock.c: Likewise.
20219         * tests/test-floorf1.c: Likewise.
20220         * tests/test-floorf2.c: Likewise.
20221         * tests/test-floorl.c: Likewise.
20222         * tests/test-fnmatch.c: Likewise.
20223         * tests/test-fopen.h: Likewise.
20224         * tests/test-fpending.c: Likewise.
20225         * tests/test-fprintf-posix.c: Likewise.
20226         * tests/test-fpurge.c: Likewise.
20227         * tests/test-freadable.c: Likewise.
20228         * tests/test-freadahead.c: Likewise.
20229         * tests/test-freading.c: Likewise.
20230         * tests/test-freadptr.c: Likewise.
20231         * tests/test-freadptr2.c: Likewise.
20232         * tests/test-freadseek.c: Likewise.
20233         * tests/test-freopen.c: Likewise.
20234         * tests/test-frexp.c: Likewise.
20235         * tests/test-frexpl.c: Likewise.
20236         * tests/test-fseek.c: Likewise.
20237         * tests/test-fseeko.c: Likewise.
20238         * tests/test-fstatat.c: Likewise.
20239         * tests/test-fstrcmp.c: Likewise.
20240         * tests/test-fsync.c: Likewise.
20241         * tests/test-ftell.c: Likewise.
20242         * tests/test-ftello.c: Likewise.
20243         * tests/test-func.c: Likewise.
20244         * tests/test-futimens.c: Likewise.
20245         * tests/test-fwritable.c: Likewise.
20246         * tests/test-fwriting.c: Likewise.
20247         * tests/test-getcwd.c: Likewise.
20248         * tests/test-getdate.c: Likewise.
20249         * tests/test-getdelim.c: Likewise.
20250         * tests/test-getdtablesize.c: Likewise.
20251         * tests/test-getgroups.c: Likewise.
20252         * tests/test-getline.c: Likewise.
20253         * tests/test-getndelim2.c: Likewise.
20254         * tests/test-glob.c: Likewise.
20255         * tests/test-hash.c: Likewise.
20256         * tests/test-i-ring.c: Likewise.
20257         * tests/test-iconv-utf.c: Likewise.
20258         * tests/test-iconv.c: Likewise.
20259         * tests/test-idpriv-drop.c: Likewise.
20260         * tests/test-idpriv-droptemp.c: Likewise.
20261         * tests/test-inet_ntop.c: Likewise.
20262         * tests/test-inet_pton.c: Likewise.
20263         * tests/test-isblank.c: Likewise.
20264         * tests/test-isfinite.c: Likewise.
20265         * tests/test-isinf.c: Likewise.
20266         * tests/test-isnan.c: Likewise.
20267         * tests/test-isnand.h: Likewise.
20268         * tests/test-isnanf.h: Likewise.
20269         * tests/test-isnanl.h: Likewise.
20270         * tests/test-lchown.c: Likewise.
20271         * tests/test-ldexpl.c: Likewise.
20272         * tests/test-link.c: Likewise.
20273         * tests/test-linkat.c: Likewise.
20274         * tests/test-linked_list.c: Likewise.
20275         * tests/test-linkedhash_list.c: Likewise.
20276         * tests/test-localename.c: Likewise.
20277         * tests/test-lseek.c: Likewise.
20278         * tests/test-lstat.c: Likewise.
20279         * tests/test-mbmemcasecmp.c: Likewise.
20280         * tests/test-mbmemcasecoll.c: Likewise.
20281         * tests/test-mbrtowc.c: Likewise.
20282         * tests/test-mbscasecmp.c: Likewise.
20283         * tests/test-mbscasestr1.c: Likewise.
20284         * tests/test-mbscasestr2.c: Likewise.
20285         * tests/test-mbscasestr3.c: Likewise.
20286         * tests/test-mbscasestr4.c: Likewise.
20287         * tests/test-mbschr.c: Likewise.
20288         * tests/test-mbscspn.c: Likewise.
20289         * tests/test-mbsinit.c: Likewise.
20290         * tests/test-mbsncasecmp.c: Likewise.
20291         * tests/test-mbsnrtowcs.c: Likewise.
20292         * tests/test-mbspbrk.c: Likewise.
20293         * tests/test-mbspcasecmp.c: Likewise.
20294         * tests/test-mbsrchr.c: Likewise.
20295         * tests/test-mbsrtowcs.c: Likewise.
20296         * tests/test-mbsspn.c: Likewise.
20297         * tests/test-mbsstr1.c: Likewise.
20298         * tests/test-mbsstr2.c: Likewise.
20299         * tests/test-mbsstr3.c: Likewise.
20300         * tests/test-memchr.c: Likewise.
20301         * tests/test-memchr2.c: Likewise.
20302         * tests/test-memcmp.c: Likewise.
20303         * tests/test-memmem.c: Likewise.
20304         * tests/test-memrchr.c: Likewise.
20305         * tests/test-mkdir.c: Likewise.
20306         * tests/test-mkdirat.c: Likewise.
20307         * tests/test-mkfifo.c: Likewise.
20308         * tests/test-mkfifoat.c: Likewise.
20309         * tests/test-mknod.c: Likewise.
20310         * tests/test-nanosleep.c: Likewise.
20311         * tests/test-nl_langinfo.c: Likewise.
20312         * tests/test-obstack-printf.c: Likewise.
20313         * tests/test-open.c: Likewise.
20314         * tests/test-openat.c: Likewise.
20315         * tests/test-pipe-filter-gi1.c: Likewise.
20316         * tests/test-pipe-filter-gi2-main.c: Likewise.
20317         * tests/test-pipe-filter-ii1.c: Likewise.
20318         * tests/test-pipe-filter-ii2-main.c: Likewise.
20319         * tests/test-pipe2.c: Likewise.
20320         * tests/test-popen.h: Likewise.
20321         * tests/test-posixtm.c: Likewise.
20322         * tests/test-pread.c: Likewise.
20323         * tests/test-printf-frexp.c: Likewise.
20324         * tests/test-printf-frexpl.c: Likewise.
20325         * tests/test-printf-posix.c: Likewise.
20326         * tests/test-priv-set.c: Likewise.
20327         * tests/test-quotearg.c: Likewise.
20328         * tests/test-random_r.c: Likewise.
20329         * tests/test-rawmemchr.c: Likewise.
20330         * tests/test-rbtree_list.c: Likewise.
20331         * tests/test-rbtree_oset.c: Likewise.
20332         * tests/test-rbtreehash_list.c: Likewise.
20333         * tests/test-readlink.c: Likewise.
20334         * tests/test-remove.c: Likewise.
20335         * tests/test-rename.c: Likewise.
20336         * tests/test-renameat.c: Likewise.
20337         * tests/test-rmdir.c: Likewise.
20338         * tests/test-round1.c: Likewise.
20339         * tests/test-roundf1.c: Likewise.
20340         * tests/test-roundl.c: Likewise.
20341         * tests/test-safe-alloc.c: Likewise.
20342         * tests/test-sameacls.c: Likewise.
20343         * tests/test-set-mode-acl.c: Likewise.
20344         * tests/test-setenv.c: Likewise.
20345         * tests/test-sigaction.c: Likewise.
20346         * tests/test-signbit.c: Likewise.
20347         * tests/test-sleep.c: Likewise.
20348         * tests/test-snprintf-posix.c: Likewise.
20349         * tests/test-snprintf.c: Likewise.
20350         * tests/test-sprintf-posix.c: Likewise.
20351         * tests/test-stat-time.c: Likewise.
20352         * tests/test-stat.c: Likewise.
20353         * tests/test-strcasestr.c: Likewise.
20354         * tests/test-strchrnul.c: Likewise.
20355         * tests/test-strerror.c: Likewise.
20356         * tests/test-striconv.c: Likewise.
20357         * tests/test-striconveh.c: Likewise.
20358         * tests/test-striconveha.c: Likewise.
20359         * tests/test-strsignal.c: Likewise.
20360         * tests/test-strstr.c: Likewise.
20361         * tests/test-strtod.c: Likewise.
20362         * tests/test-strverscmp.c: Likewise.
20363         * tests/test-symlink.c: Likewise.
20364         * tests/test-symlinkat.c: Likewise.
20365         * tests/test-trunc1.c: Likewise.
20366         * tests/test-trunc2.c: Likewise.
20367         * tests/test-truncf1.c: Likewise.
20368         * tests/test-truncf2.c: Likewise.
20369         * tests/test-truncl.c: Likewise.
20370         * tests/test-uname.c: Likewise.
20371         * tests/test-unlink.c: Likewise.
20372         * tests/test-unlinkat.c: Likewise.
20373         * tests/test-unsetenv.c: Likewise.
20374         * tests/test-usleep.c: Likewise.
20375         * tests/test-utimens.c: Likewise.
20376         * tests/test-utimensat.c: Likewise.
20377         * tests/test-vasnprintf-posix.c: Likewise.
20378         * tests/test-vasnprintf-posix2.c: Likewise.
20379         * tests/test-vasnprintf.c: Likewise.
20380         * tests/test-vasprintf-posix.c: Likewise.
20381         * tests/test-vasprintf.c: Likewise.
20382         * tests/test-vdprintf-posix.c: Likewise.
20383         * tests/test-vfprintf-posix.c: Likewise.
20384         * tests/test-vprintf-posix.c: Likewise.
20385         * tests/test-vsnprintf-posix.c: Likewise.
20386         * tests/test-vsnprintf.c: Likewise.
20387         * tests/test-vsprintf-posix.c: Likewise.
20388         * tests/test-wcrtomb.c: Likewise.
20389         * tests/test-wcsnrtombs.c: Likewise.
20390         * tests/test-wcsrtombs.c: Likewise.
20391         * tests/test-wctype.c: Likewise.
20392         * tests/test-wcwidth.c: Likewise.
20393         * tests/test-xfprintf-posix.c: Likewise.
20394         * tests/test-xmemdup0.c: Likewise.
20395         * tests/test-xprintf-posix.c: Likewise.
20396         * tests/test-xvasprintf.c: Likewise.
20397         * tests/unicase/test-locale-language.c: Likewise.
20398         * tests/unicase/test-mapping-part1.h: Likewise.
20399         * tests/unicase/test-predicate-part1.h: Likewise.
20400         * tests/unicase/test-u8-casecmp.c: Likewise.
20401         * tests/unicase/test-u8-casecoll.c: Likewise.
20402         * tests/unicase/test-u8-casefold.c: Likewise.
20403         * tests/unicase/test-u8-is-cased.c: Likewise.
20404         * tests/unicase/test-u8-is-casefolded.c: Likewise.
20405         * tests/unicase/test-u8-is-lowercase.c: Likewise.
20406         * tests/unicase/test-u8-is-titlecase.c: Likewise.
20407         * tests/unicase/test-u8-is-uppercase.c: Likewise.
20408         * tests/unicase/test-u8-tolower.c: Likewise.
20409         * tests/unicase/test-u8-totitle.c: Likewise.
20410         * tests/unicase/test-u8-toupper.c: Likewise.
20411         * tests/unicase/test-u16-casecmp.c: Likewise.
20412         * tests/unicase/test-u16-casecoll.c: Likewise.
20413         * tests/unicase/test-u16-casefold.c: Likewise.
20414         * tests/unicase/test-u16-is-cased.c: Likewise.
20415         * tests/unicase/test-u16-is-casefolded.c: Likewise.
20416         * tests/unicase/test-u16-is-lowercase.c: Likewise.
20417         * tests/unicase/test-u16-is-titlecase.c: Likewise.
20418         * tests/unicase/test-u16-is-uppercase.c: Likewise.
20419         * tests/unicase/test-u16-tolower.c: Likewise.
20420         * tests/unicase/test-u16-totitle.c: Likewise.
20421         * tests/unicase/test-u16-toupper.c: Likewise.
20422         * tests/unicase/test-u32-casecmp.c: Likewise.
20423         * tests/unicase/test-u32-casecoll.c: Likewise.
20424         * tests/unicase/test-u32-casefold.c: Likewise.
20425         * tests/unicase/test-u32-is-cased.c: Likewise.
20426         * tests/unicase/test-u32-is-casefolded.c: Likewise.
20427         * tests/unicase/test-u32-is-lowercase.c: Likewise.
20428         * tests/unicase/test-u32-is-titlecase.c: Likewise.
20429         * tests/unicase/test-u32-is-uppercase.c: Likewise.
20430         * tests/unicase/test-u32-tolower.c: Likewise.
20431         * tests/unicase/test-u32-totitle.c: Likewise.
20432         * tests/unicase/test-u32-toupper.c: Likewise.
20433         * tests/unicase/test-ulc-casecmp.c: Likewise.
20434         * tests/unicase/test-ulc-casecoll.c: Likewise.
20435         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20436         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20437         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20438         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20439         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20440         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20441         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20442         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20443         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20444         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20445         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20446         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20447         * tests/unictype/test-bidi_byname.c: Likewise.
20448         * tests/unictype/test-bidi_name.c: Likewise.
20449         * tests/unictype/test-bidi_of.c: Likewise.
20450         * tests/unictype/test-bidi_test.c: Likewise.
20451         * tests/unictype/test-block_list.c: Likewise.
20452         * tests/unictype/test-block_of.c: Likewise.
20453         * tests/unictype/test-block_test.c: Likewise.
20454         * tests/unictype/test-categ_and.c: Likewise.
20455         * tests/unictype/test-categ_and_not.c: Likewise.
20456         * tests/unictype/test-categ_byname.c: Likewise.
20457         * tests/unictype/test-categ_name.c: Likewise.
20458         * tests/unictype/test-categ_none.c: Likewise.
20459         * tests/unictype/test-categ_of.c: Likewise.
20460         * tests/unictype/test-categ_or.c: Likewise.
20461         * tests/unictype/test-categ_test_withtable.c: Likewise.
20462         * tests/unictype/test-combining.c: Likewise.
20463         * tests/unictype/test-decdigit.c: Likewise.
20464         * tests/unictype/test-digit.c: Likewise.
20465         * tests/unictype/test-mirror.c: Likewise.
20466         * tests/unictype/test-numeric.c: Likewise.
20467         * tests/unictype/test-pr_byname.c: Likewise.
20468         * tests/unictype/test-pr_test.c: Likewise.
20469         * tests/unictype/test-predicate-part1.h: Likewise.
20470         * tests/unictype/test-scripts.c: Likewise.
20471         * tests/unictype/test-sy_c_ident.c: Likewise.
20472         * tests/unictype/test-sy_java_ident.c: Likewise.
20473         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
20474         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
20475         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
20476         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
20477         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
20478         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
20479         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
20480         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
20481         * tests/uninorm/test-canonical-decomposition.c: Likewise.
20482         * tests/uninorm/test-compat-decomposition.c: Likewise.
20483         * tests/uninorm/test-composition.c: Likewise.
20484         * tests/uninorm/test-decomposing-form.c: Likewise.
20485         * tests/uninorm/test-decomposition.c: Likewise.
20486         * tests/uninorm/test-u8-nfc.c: Likewise.
20487         * tests/uninorm/test-u8-nfd.c: Likewise.
20488         * tests/uninorm/test-u8-nfkc.c: Likewise.
20489         * tests/uninorm/test-u8-nfkd.c: Likewise.
20490         * tests/uninorm/test-u8-normcmp.c: Likewise.
20491         * tests/uninorm/test-u8-normcoll.c: Likewise.
20492         * tests/uninorm/test-u16-nfc.c: Likewise.
20493         * tests/uninorm/test-u16-nfd.c: Likewise.
20494         * tests/uninorm/test-u16-nfkc.c: Likewise.
20495         * tests/uninorm/test-u16-nfkd.c: Likewise.
20496         * tests/uninorm/test-u16-normcmp.c: Likewise.
20497         * tests/uninorm/test-u16-normcoll.c: Likewise.
20498         * tests/uninorm/test-u32-nfc.c: Likewise.
20499         * tests/uninorm/test-u32-nfd.c: Likewise.
20500         * tests/uninorm/test-u32-nfkc.c: Likewise.
20501         * tests/uninorm/test-u32-nfkd.c: Likewise.
20502         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20503         * tests/uninorm/test-u32-normcmp.c: Likewise.
20504         * tests/uninorm/test-u32-normcoll.c: Likewise.
20505         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
20506         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20507         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20508         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20509         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20510         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20511         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20512         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20513         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20514         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20515         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20516         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20517         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20518         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20519         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20520         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20521         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20522         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20523         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20524         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20525         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20526         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20527         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20528         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20529         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20530         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20531         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20532         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20533         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20534         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
20535         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
20536         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
20537         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
20538         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20539         * tests/uniwidth/test-u8-width.c: Likewise.
20540         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20541         * tests/uniwidth/test-u16-width.c: Likewise.
20542         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20543         * tests/uniwidth/test-u32-width.c: Likewise.
20544         * tests/uniwidth/test-uc_width.c: Likewise.
20545         * tests/uniwidth/test-uc_width2.c: Likewise.
20546         * modules/acl-tests (Files): Add tests/macros.h.
20547         * modules/areadlink-tests (Files): Likewise.
20548         * modules/areadlink-with-size-tests (Files): Likewise.
20549         * modules/areadlinkat-tests (Files): Likewise.
20550         * modules/areadlinkat-with-size-tests (Files): Likewise.
20551         * modules/argmatch-tests (Files): Likewise.
20552         * modules/argv-iter-tests (Files): Likewise.
20553         * modules/array-list-tests (Files): Likewise.
20554         * modules/array-mergesort-tests (Files): Likewise.
20555         * modules/array-oset-tests (Files): Likewise.
20556         * modules/avltree-list-tests (Files): Likewise.
20557         * modules/avltree-oset-tests (Files): Likewise.
20558         * modules/avltreehash-list-tests (Files): Likewise.
20559         * modules/base64-tests (Files): Likewise.
20560         * modules/binary-io-tests (Files): Likewise.
20561         * modules/bitrotate-tests (Files): Likewise.
20562         * modules/btowc-tests (Files): Likewise.
20563         * modules/byteswap-tests (Files): Likewise.
20564         * modules/c-ctype-tests (Files): Likewise.
20565         * modules/c-stack-tests (Files): Likewise.
20566         * modules/c-strcase-tests (Files): Likewise.
20567         * modules/c-strcasestr-tests (Files): Likewise.
20568         * modules/c-strstr-tests (Files): Likewise.
20569         * modules/canonicalize-lgpl-tests (Files): Likewise.
20570         * modules/canonicalize-tests (Files): Likewise.
20571         * modules/carray-list-tests (Files): Likewise.
20572         * modules/ceilf-tests (Files): Likewise.
20573         * modules/ceill-tests (Files): Likewise.
20574         * modules/chown-tests (Files): Likewise.
20575         * modules/cloexec-tests (Files): Likewise.
20576         * modules/copy-file-tests (Files): Likewise.
20577         * modules/count-one-bits-tests (Files): Likewise.
20578         * modules/dprintf-posix-tests (Files): Likewise.
20579         * modules/dup2-tests (Files): Likewise.
20580         * modules/dup3-tests (Files): Likewise.
20581         * modules/duplocale-tests (Files): Likewise.
20582         * modules/fbufmode-tests (Files): Likewise.
20583         * modules/fchdir-tests (Files): Likewise.
20584         * modules/fcntl-safer-tests (Files): Likewise.
20585         * modules/fcntl-tests (Files): Likewise.
20586         * modules/fdopendir-tests (Files): Likewise.
20587         * modules/fdutimensat-tests (Files): Likewise.
20588         * modules/fflush-tests (Files): Likewise.
20589         * modules/filevercmp-tests (Files): Likewise.
20590         * modules/flock-tests (Files): Likewise.
20591         * modules/floorf-tests (Files): Likewise.
20592         * modules/floorl-tests (Files): Likewise.
20593         * modules/fnmatch-tests (Files): Likewise.
20594         * modules/fopen-safer-tests (Files): Likewise.
20595         * modules/fopen-tests (Files): Likewise.
20596         * modules/fpending-tests (Files): Likewise.
20597         * modules/fprintf-posix-tests (Files): Likewise.
20598         * modules/fpurge-tests (Files): Likewise.
20599         * modules/freadable-tests (Files): Likewise.
20600         * modules/freadahead-tests (Files): Likewise.
20601         * modules/freading-tests (Files): Likewise.
20602         * modules/freadptr-tests (Files): Likewise.
20603         * modules/freadseek-tests (Files): Likewise.
20604         * modules/freopen-tests (Files): Likewise.
20605         * modules/frexp-nolibm-tests (Files): Likewise.
20606         * modules/frexp-tests (Files): Likewise.
20607         * modules/frexpl-nolibm-tests (Files): Likewise.
20608         * modules/frexpl-tests (Files): Likewise.
20609         * modules/fseek-tests (Files): Likewise.
20610         * modules/fseeko-tests (Files): Likewise.
20611         * modules/fstrcmp-tests (Files): Likewise.
20612         * modules/fsync-tests (Files): Likewise.
20613         * modules/ftell-tests (Files): Likewise.
20614         * modules/ftello-tests (Files): Likewise.
20615         * modules/func-tests (Files): Likewise.
20616         * modules/futimens-tests (Files): Likewise.
20617         * modules/fwritable-tests (Files): Likewise.
20618         * modules/fwriting-tests (Files): Likewise.
20619         * modules/getcwd-tests (Files): Likewise.
20620         * modules/getdate-tests (Files): Likewise.
20621         * modules/getdelim-tests (Files): Likewise.
20622         * modules/getdtablesize-tests (Files): Likewise.
20623         * modules/getgroups-tests (Files): Likewise.
20624         * modules/getline-tests (Files): Likewise.
20625         * modules/getndelim2-tests (Files): Likewise.
20626         * modules/glob-tests (Files): Likewise.
20627         * modules/hash-tests (Files): Likewise.
20628         * modules/i-ring-tests (Files): Likewise.
20629         * modules/iconv-tests (Files): Likewise.
20630         * modules/iconv_open-utf-tests (Files): Likewise.
20631         * modules/idpriv-drop-tests (Files): Likewise.
20632         * modules/idpriv-droptemp-tests (Files): Likewise.
20633         * modules/inet_ntop-tests (Files): Likewise.
20634         * modules/inet_pton-tests (Files): Likewise.
20635         * modules/isblank-tests (Files): Likewise.
20636         * modules/isfinite-tests (Files): Likewise.
20637         * modules/isinf-tests (Files): Likewise.
20638         * modules/isnan-tests (Files): Likewise.
20639         * modules/isnand-nolibm-tests (Files): Likewise.
20640         * modules/isnand-tests (Files): Likewise.
20641         * modules/isnanf-nolibm-tests (Files): Likewise.
20642         * modules/isnanf-tests (Files): Likewise.
20643         * modules/isnanl-nolibm-tests (Files): Likewise.
20644         * modules/isnanl-tests (Files): Likewise.
20645         * modules/lchown-tests (Files): Likewise.
20646         * modules/ldexpl-tests (Files): Likewise.
20647         * modules/link-tests (Files): Likewise.
20648         * modules/linkat-tests (Files): Likewise.
20649         * modules/linked-list-tests (Files): Likewise.
20650         * modules/linkedhash-list-tests (Files): Likewise.
20651         * modules/localename-tests (Files): Likewise.
20652         * modules/lseek-tests (Files): Likewise.
20653         * modules/lstat-tests (Files): Likewise.
20654         * modules/mbmemcasecmp-tests (Files): Likewise.
20655         * modules/mbmemcasecoll-tests (Files): Likewise.
20656         * modules/mbrtowc-tests (Files): Likewise.
20657         * modules/mbscasecmp-tests (Files): Likewise.
20658         * modules/mbscasestr-tests (Files): Likewise.
20659         * modules/mbschr-tests (Files): Likewise.
20660         * modules/mbscspn-tests (Files): Likewise.
20661         * modules/mbsinit-tests (Files): Likewise.
20662         * modules/mbsncasecmp-tests (Files): Likewise.
20663         * modules/mbsnrtowcs-tests (Files): Likewise.
20664         * modules/mbspbrk-tests (Files): Likewise.
20665         * modules/mbspcasecmp-tests (Files): Likewise.
20666         * modules/mbsrchr-tests (Files): Likewise.
20667         * modules/mbsrtowcs-tests (Files): Likewise.
20668         * modules/mbsspn-tests (Files): Likewise.
20669         * modules/mbsstr-tests (Files): Likewise.
20670         * modules/memchr-tests (Files): Likewise.
20671         * modules/memchr2-tests (Files): Likewise.
20672         * modules/memcmp-tests (Files): Likewise.
20673         * modules/memmem-tests (Files): Likewise.
20674         * modules/memrchr-tests (Files): Likewise.
20675         * modules/mkdir-tests (Files): Likewise.
20676         * modules/mkfifo-tests (Files): Likewise.
20677         * modules/mkfifoat-tests (Files): Likewise.
20678         * modules/mknod-tests (Files): Likewise.
20679         * modules/nanosleep-tests (Files): Likewise.
20680         * modules/nl_langinfo-tests (Files): Likewise.
20681         * modules/obstack-printf-tests (Files): Likewise.
20682         * modules/open-tests (Files): Likewise.
20683         * modules/openat-tests (Files): Likewise.
20684         * modules/pipe-filter-gi-tests (Files): Likewise.
20685         * modules/pipe-filter-ii-tests (Files): Likewise.
20686         * modules/pipe2-tests (Files): Likewise.
20687         * modules/popen-safer-tests (Files): Likewise.
20688         * modules/popen-tests (Files): Likewise.
20689         * modules/posixtm-tests (Files): Likewise.
20690         * modules/pread-tests (Files): Likewise.
20691         * modules/printf-frexp-tests (Files): Likewise.
20692         * modules/printf-frexpl-tests (Files): Likewise.
20693         * modules/printf-posix-tests (Files): Likewise.
20694         * modules/priv-set-tests (Files): Likewise.
20695         * modules/quotearg-tests (Files): Likewise.
20696         * modules/random_r-tests (Files): Likewise.
20697         * modules/rawmemchr-tests (Files): Likewise.
20698         * modules/rbtree-list-tests (Files): Likewise.
20699         * modules/rbtree-oset-tests (Files): Likewise.
20700         * modules/rbtreehash-list-tests (Files): Likewise.
20701         * modules/readlink-tests (Files): Likewise.
20702         * modules/remove-tests (Files): Likewise.
20703         * modules/rename-tests (Files): Likewise.
20704         * modules/renameat-tests (Files): Likewise.
20705         * modules/rmdir-tests (Files): Likewise.
20706         * modules/round-tests (Files): Likewise.
20707         * modules/roundf-tests (Files): Likewise.
20708         * modules/roundl-tests (Files): Likewise.
20709         * modules/safe-alloc-tests (Files): Likewise.
20710         * modules/setenv-tests (Files): Likewise.
20711         * modules/sigaction-tests (Files): Likewise.
20712         * modules/signbit-tests (Files): Likewise.
20713         * modules/sleep-tests (Files): Likewise.
20714         * modules/snprintf-posix-tests (Files): Likewise.
20715         * modules/snprintf-tests (Files): Likewise.
20716         * modules/sprintf-posix-tests (Files): Likewise.
20717         * modules/stat-tests (Files): Likewise.
20718         * modules/stat-time-tests (Files): Likewise.
20719         * modules/strcasestr-tests (Files): Likewise.
20720         * modules/strchrnul-tests (Files): Likewise.
20721         * modules/strerror-tests (Files): Likewise.
20722         * modules/striconv-tests (Files): Likewise.
20723         * modules/striconveh-tests (Files): Likewise.
20724         * modules/striconveha-tests (Files): Likewise.
20725         * modules/strsignal-tests (Files): Likewise.
20726         * modules/strstr-tests (Files): Likewise.
20727         * modules/strtod-tests (Files): Likewise.
20728         * modules/strverscmp-tests (Files): Likewise.
20729         * modules/symlink-tests (Files): Likewise.
20730         * modules/symlinkat-tests (Files): Likewise.
20731         * modules/trunc-tests (Files): Likewise.
20732         * modules/truncf-tests (Files): Likewise.
20733         * modules/truncl-tests (Files): Likewise.
20734         * modules/uname-tests (Files): Likewise.
20735         * modules/unicase/cased-tests (Files): Likewise.
20736         * modules/unicase/ignorable-tests (Files): Likewise.
20737         * modules/unicase/locale-language-tests (Files): Likewise.
20738         * modules/unicase/tolower-tests (Files): Likewise.
20739         * modules/unicase/totitle-tests (Files): Likewise.
20740         * modules/unicase/toupper-tests (Files): Likewise.
20741         * modules/unicase/u8-casecmp-tests (Files): Likewise.
20742         * modules/unicase/u8-casecoll-tests (Files): Likewise.
20743         * modules/unicase/u8-casefold-tests (Files): Likewise.
20744         * modules/unicase/u8-is-cased-tests (Files): Likewise.
20745         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
20746         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
20747         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
20748         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
20749         * modules/unicase/u8-tolower-tests (Files): Likewise.
20750         * modules/unicase/u8-totitle-tests (Files): Likewise.
20751         * modules/unicase/u8-toupper-tests (Files): Likewise.
20752         * modules/unicase/u16-casecmp-tests (Files): Likewise.
20753         * modules/unicase/u16-casecoll-tests (Files): Likewise.
20754         * modules/unicase/u16-casefold-tests (Files): Likewise.
20755         * modules/unicase/u16-is-cased-tests (Files): Likewise.
20756         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
20757         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
20758         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
20759         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
20760         * modules/unicase/u16-tolower-tests (Files): Likewise.
20761         * modules/unicase/u16-totitle-tests (Files): Likewise.
20762         * modules/unicase/u16-toupper-tests (Files): Likewise.
20763         * modules/unicase/u32-casecmp-tests (Files): Likewise.
20764         * modules/unicase/u32-casecoll-tests (Files): Likewise.
20765         * modules/unicase/u32-casefold-tests (Files): Likewise.
20766         * modules/unicase/u32-is-cased-tests (Files): Likewise.
20767         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
20768         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
20769         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
20770         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
20771         * modules/unicase/u32-tolower-tests (Files): Likewise.
20772         * modules/unicase/u32-totitle-tests (Files): Likewise.
20773         * modules/unicase/u32-toupper-tests (Files): Likewise.
20774         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
20775         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
20776         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
20777         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
20778         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
20779         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
20780         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
20781         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
20782         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
20783         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
20784         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
20785         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
20786         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
20787         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
20788         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
20789         * modules/unictype/bidicategory-name-tests (Files): Likewise.
20790         * modules/unictype/bidicategory-of-tests (Files): Likewise.
20791         * modules/unictype/bidicategory-test-tests (Files): Likewise.
20792         * modules/unictype/block-list-tests (Files): Likewise.
20793         * modules/unictype/block-of-tests (Files): Likewise.
20794         * modules/unictype/block-test-tests (Files): Likewise.
20795         * modules/unictype/category-C-tests (Files): Likewise.
20796         * modules/unictype/category-Cc-tests (Files): Likewise.
20797         * modules/unictype/category-Cf-tests (Files): Likewise.
20798         * modules/unictype/category-Cn-tests (Files): Likewise.
20799         * modules/unictype/category-Co-tests (Files): Likewise.
20800         * modules/unictype/category-Cs-tests (Files): Likewise.
20801         * modules/unictype/category-L-tests (Files): Likewise.
20802         * modules/unictype/category-Ll-tests (Files): Likewise.
20803         * modules/unictype/category-Lm-tests (Files): Likewise.
20804         * modules/unictype/category-Lo-tests (Files): Likewise.
20805         * modules/unictype/category-Lt-tests (Files): Likewise.
20806         * modules/unictype/category-Lu-tests (Files): Likewise.
20807         * modules/unictype/category-M-tests (Files): Likewise.
20808         * modules/unictype/category-Mc-tests (Files): Likewise.
20809         * modules/unictype/category-Me-tests (Files): Likewise.
20810         * modules/unictype/category-Mn-tests (Files): Likewise.
20811         * modules/unictype/category-N-tests (Files): Likewise.
20812         * modules/unictype/category-Nd-tests (Files): Likewise.
20813         * modules/unictype/category-Nl-tests (Files): Likewise.
20814         * modules/unictype/category-No-tests (Files): Likewise.
20815         * modules/unictype/category-P-tests (Files): Likewise.
20816         * modules/unictype/category-Pc-tests (Files): Likewise.
20817         * modules/unictype/category-Pd-tests (Files): Likewise.
20818         * modules/unictype/category-Pe-tests (Files): Likewise.
20819         * modules/unictype/category-Pf-tests (Files): Likewise.
20820         * modules/unictype/category-Pi-tests (Files): Likewise.
20821         * modules/unictype/category-Po-tests (Files): Likewise.
20822         * modules/unictype/category-Ps-tests (Files): Likewise.
20823         * modules/unictype/category-S-tests (Files): Likewise.
20824         * modules/unictype/category-Sc-tests (Files): Likewise.
20825         * modules/unictype/category-Sk-tests (Files): Likewise.
20826         * modules/unictype/category-Sm-tests (Files): Likewise.
20827         * modules/unictype/category-So-tests (Files): Likewise.
20828         * modules/unictype/category-Z-tests (Files): Likewise.
20829         * modules/unictype/category-Zl-tests (Files): Likewise.
20830         * modules/unictype/category-Zp-tests (Files): Likewise.
20831         * modules/unictype/category-Zs-tests (Files): Likewise.
20832         * modules/unictype/category-and-not-tests (Files): Likewise.
20833         * modules/unictype/category-and-tests (Files): Likewise.
20834         * modules/unictype/category-byname-tests (Files): Likewise.
20835         * modules/unictype/category-name-tests (Files): Likewise.
20836         * modules/unictype/category-none-tests (Files): Likewise.
20837         * modules/unictype/category-of-tests (Files): Likewise.
20838         * modules/unictype/category-or-tests (Files): Likewise.
20839         * modules/unictype/category-test-withtable-tests (Files): Likewise.
20840         * modules/unictype/combining-class-tests (Files): Likewise.
20841         * modules/unictype/ctype-alnum-tests (Files): Likewise.
20842         * modules/unictype/ctype-alpha-tests (Files): Likewise.
20843         * modules/unictype/ctype-blank-tests (Files): Likewise.
20844         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
20845         * modules/unictype/ctype-digit-tests (Files): Likewise.
20846         * modules/unictype/ctype-graph-tests (Files): Likewise.
20847         * modules/unictype/ctype-lower-tests (Files): Likewise.
20848         * modules/unictype/ctype-print-tests (Files): Likewise.
20849         * modules/unictype/ctype-punct-tests (Files): Likewise.
20850         * modules/unictype/ctype-space-tests (Files): Likewise.
20851         * modules/unictype/ctype-upper-tests (Files): Likewise.
20852         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
20853         * modules/unictype/decimal-digit-tests (Files): Likewise.
20854         * modules/unictype/digit-tests (Files): Likewise.
20855         * modules/unictype/mirror-tests (Files): Likewise.
20856         * modules/unictype/numeric-tests (Files): Likewise.
20857         * modules/unictype/property-alphabetic-tests (Files): Likewise.
20858         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
20859         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
20860         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
20861         Likewise.
20862         * modules/unictype/property-bidi-block-separator-tests (Files):
20863         Likewise.
20864         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
20865         Likewise.
20866         * modules/unictype/property-bidi-common-separator-tests (Files):
20867         Likewise.
20868         * modules/unictype/property-bidi-control-tests (Files): Likewise.
20869         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
20870         Likewise.
20871         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
20872         Likewise.
20873         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
20874         Likewise.
20875         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
20876         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
20877         Likewise.
20878         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
20879         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
20880         Likewise.
20881         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
20882         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
20883         * modules/unictype/property-bidi-segment-separator-tests (Files):
20884         Likewise.
20885         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
20886         * modules/unictype/property-byname-tests (Files): Likewise.
20887         * modules/unictype/property-combining-tests (Files): Likewise.
20888         * modules/unictype/property-composite-tests (Files): Likewise.
20889         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
20890         * modules/unictype/property-dash-tests (Files): Likewise.
20891         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
20892         * modules/unictype/property-default-ignorable-code-point-tests (Files):
20893         Likewise.
20894         * modules/unictype/property-deprecated-tests (Files): Likewise.
20895         * modules/unictype/property-diacritic-tests (Files): Likewise.
20896         * modules/unictype/property-extender-tests (Files): Likewise.
20897         * modules/unictype/property-format-control-tests (Files): Likewise.
20898         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
20899         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
20900         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
20901         * modules/unictype/property-hex-digit-tests (Files): Likewise.
20902         * modules/unictype/property-hyphen-tests (Files): Likewise.
20903         * modules/unictype/property-id-continue-tests (Files): Likewise.
20904         * modules/unictype/property-id-start-tests (Files): Likewise.
20905         * modules/unictype/property-ideographic-tests (Files): Likewise.
20906         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
20907         * modules/unictype/property-ids-trinary-operator-tests (Files):
20908         Likewise.
20909         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
20910         * modules/unictype/property-iso-control-tests (Files): Likewise.
20911         * modules/unictype/property-join-control-tests (Files): Likewise.
20912         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
20913         * modules/unictype/property-line-separator-tests (Files): Likewise.
20914         * modules/unictype/property-logical-order-exception-tests (Files):
20915         Likewise.
20916         * modules/unictype/property-lowercase-tests (Files): Likewise.
20917         * modules/unictype/property-math-tests (Files): Likewise.
20918         * modules/unictype/property-non-break-tests (Files): Likewise.
20919         * modules/unictype/property-not-a-character-tests (Files): Likewise.
20920         * modules/unictype/property-numeric-tests (Files): Likewise.
20921         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
20922         * modules/unictype/property-other-default-ignorable-code-point-tests
20923         (Files): Likewise.
20924         * modules/unictype/property-other-grapheme-extend-tests (Files):
20925         Likewise.
20926         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
20927         * modules/unictype/property-other-id-start-tests (Files): Likewise.
20928         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
20929         * modules/unictype/property-other-math-tests (Files): Likewise.
20930         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
20931         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
20932         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
20933         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
20934         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
20935         * modules/unictype/property-private-use-tests (Files): Likewise.
20936         * modules/unictype/property-punctuation-tests (Files): Likewise.
20937         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
20938         * modules/unictype/property-radical-tests (Files): Likewise.
20939         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
20940         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
20941         * modules/unictype/property-space-tests (Files): Likewise.
20942         * modules/unictype/property-terminal-punctuation-tests (Files):
20943         Likewise.
20944         * modules/unictype/property-test-tests (Files): Likewise.
20945         * modules/unictype/property-titlecase-tests (Files): Likewise.
20946         * modules/unictype/property-unassigned-code-value-tests (Files):
20947         Likewise.
20948         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
20949         * modules/unictype/property-uppercase-tests (Files): Likewise.
20950         * modules/unictype/property-variation-selector-tests (Files): Likewise.
20951         * modules/unictype/property-white-space-tests (Files): Likewise.
20952         * modules/unictype/property-xid-continue-tests (Files): Likewise.
20953         * modules/unictype/property-xid-start-tests (Files): Likewise.
20954         * modules/unictype/property-zero-width-tests (Files): Likewise.
20955         * modules/unictype/scripts-tests (Files): Likewise.
20956         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
20957         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
20958         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
20959         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
20960         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
20961         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
20962         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
20963         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
20964         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
20965         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
20966         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
20967         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
20968         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
20969         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
20970         * modules/uninorm/composition-tests (Files): Likewise.
20971         * modules/uninorm/decomposing-form-tests (Files): Likewise.
20972         * modules/uninorm/decomposition-tests (Files): Likewise.
20973         * modules/uninorm/filter-tests (Files): Likewise.
20974         * modules/uninorm/nfc-tests (Files): Likewise.
20975         * modules/uninorm/nfd-tests (Files): Likewise.
20976         * modules/uninorm/nfkc-tests (Files): Likewise.
20977         * modules/uninorm/nfkd-tests (Files): Likewise.
20978         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
20979         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
20980         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
20981         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
20982         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
20983         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
20984         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
20985         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
20986         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
20987         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
20988         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
20989         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
20990         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
20991         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
20992         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
20993         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
20994         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
20995         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
20996         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
20997         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
20998         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
20999         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
21000         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21001         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
21002         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
21003         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
21004         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
21005         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
21006         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
21007         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
21008         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
21009         * modules/uniwidth/u8-width-tests (Files): Likewise.
21010         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
21011         * modules/uniwidth/u16-width-tests (Files): Likewise.
21012         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
21013         * modules/uniwidth/u32-width-tests (Files): Likewise.
21014         * modules/uniwidth/width-tests (Files): Likewise.
21015         * modules/unlink-tests (Files): Likewise.
21016         * modules/unsetenv-tests (Files): Likewise.
21017         * modules/usleep-tests (Files): Likewise.
21018         * modules/utimens-tests (Files): Likewise.
21019         * modules/utimensat-tests (Files): Likewise.
21020         * modules/vasnprintf-posix-tests (Files): Likewise.
21021         * modules/vasnprintf-tests (Files): Likewise.
21022         * modules/vasprintf-posix-tests (Files): Likewise.
21023         * modules/vasprintf-tests (Files): Likewise.
21024         * modules/vdprintf-posix-tests (Files): Likewise.
21025         * modules/vfprintf-posix-tests (Files): Likewise.
21026         * modules/vprintf-posix-tests (Files): Likewise.
21027         * modules/vsnprintf-posix-tests (Files): Likewise.
21028         * modules/vsnprintf-tests (Files): Likewise.
21029         * modules/vsprintf-posix-tests (Files): Likewise.
21030         * modules/wcrtomb-tests (Files): Likewise.
21031         * modules/wcsnrtombs-tests (Files): Likewise.
21032         * modules/wcsrtombs-tests (Files): Likewise.
21033         * modules/wctype-tests (Files): Likewise.
21034         * modules/wcwidth-tests (Files): Likewise.
21035         * modules/xmemdup0-tests (Files): Likewise.
21036         * modules/xprintf-posix-tests (Files): Likewise.
21037         * modules/xvasprintf-tests (Files): Likewise.
21038
21039 2009-12-24  Eric Blake  <ebb9@byu.net>
21040
21041         test-nanosleep: fix typo
21042         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
21043         patch.
21044         Reported by Bruno Haible.
21045
21046 2009-12-24  Bruno Haible  <bruno@clisp.org>
21047
21048         Reduce namespace pollution on glibc systems.
21049         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
21050         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
21051         systems.
21052         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
21053         <getopt.h> on glibc systems.
21054         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
21055         systems.
21056         * lib/fcntl.c: Include <unistd.h> here instead.
21057
21058 2009-12-24  Bruno Haible  <bruno@clisp.org>
21059
21060         * lib/stdlib.in.h (includes): Fix typo in today's commit.
21061
21062 2009-12-24  Eric Blake  <ebb9@byu.net>
21063
21064         tests: add signature checks
21065         * tests/signature.h (SIGNATURE_CHECK): New file.
21066         * modules/atexit-tests (Files): Use it.
21067         * modules/btowc-tests (Files): Likewise.
21068         * modules/canonicalize-lgpl-tests (Files): Likewise.
21069         * modules/ceilf-tests (Files): Likewise.
21070         * modules/ceill-tests (Files): Likewise.
21071         * modules/chown-tests (Files): Likewise.
21072         * modules/dprintf-posix-tests (Files): Likewise.
21073         * modules/dup2-tests (Files): Likewise.
21074         * modules/dup3-tests (Files): Likewise.
21075         * modules/duplocale-tests (Files): Likewise.
21076         * modules/fchdir-tests (Files): Likewise.
21077         * modules/fcntl-tests (Files): Likewise.
21078         * modules/fdopendir-tests (Files): Likewise.
21079         * modules/fflush-tests (Files): Likewise.
21080         * modules/flock-tests (Files): Likewise.
21081         * modules/floorf-tests (Files): Likewise.
21082         * modules/floorl-tests (Files): Likewise.
21083         * modules/fnmatch-tests (Files): Likewise.
21084         * modules/fopen-tests (Files): Likewise.
21085         * modules/fprintf-posix-tests (Files): Likewise.
21086         * modules/freopen-tests (Files): Likewise.
21087         * modules/frexp-nolibm-tests (Files): Likewise.
21088         * modules/frexp-tests (Files): Likewise.
21089         * modules/frexpl-nolibm-tests (Files): Likewise.
21090         * modules/frexpl-tests (Files): Likewise.
21091         * modules/fseek-tests (Files): Likewise.
21092         * modules/fseeko-tests (Files): Likewise.
21093         * modules/fsync-tests (Files): Likewise.
21094         * modules/ftell-tests (Files): Likewise.
21095         * modules/ftello-tests (Files): Likewise.
21096         * modules/futimens-tests (Files): Likewise.
21097         * modules/getaddrinfo-tests (Files): Likewise.
21098         * modules/getcwd-tests (Files): Likewise.
21099         * modules/getdelim-tests (Files): Likewise.
21100         * modules/getdtablesize-tests (Files): Likewise.
21101         * modules/getgroups-tests (Files): Likewise.
21102         * modules/gethostname-tests (Files): Likewise.
21103         * modules/getline-tests (Files): Likewise.
21104         * modules/getopt-posix-tests (Files): Likewise.
21105         * modules/gettimeofday-tests (Files): Likewise.
21106         * modules/glob-tests (Files): Likewise.
21107         * modules/iconv-tests (Files): Likewise.
21108         * modules/inet_ntop-tests (Files): Likewise.
21109         * modules/inet_pton-tests (Files): Likewise.
21110         * modules/isblank-tests (Files): Likewise.
21111         * modules/lchown-tests (Files): Likewise.
21112         * modules/ldexpl-tests (Files): Likewise.
21113         * modules/link-tests (Files): Likewise.
21114         * modules/linkat-tests (Files): Likewise.
21115         * modules/lseek-tests (Files): Likewise.
21116         * modules/lstat-tests (Files): Likewise.
21117         * modules/mbrtowc-tests (Files): Likewise.
21118         * modules/mbsinit-tests (Files): Likewise.
21119         * modules/mbsnrtowcs-tests (Files): Likewise.
21120         * modules/mbsrtowcs-tests (Files): Likewise.
21121         * modules/memchr-tests (Files): Likewise.
21122         * modules/memcmp-tests (Files): Likewise.
21123         * modules/memmem-tests (Files): Likewise.
21124         * modules/memrchr-tests (Files): Likewise.
21125         * modules/mkdir-tests (Files): Likewise.
21126         * modules/mkfifo-tests (Files): Likewise.
21127         * modules/mkfifoat-tests (Files): Likewise.
21128         * modules/mknod-tests (Files): Likewise.
21129         * modules/nanosleep-tests (Files): Likewise.
21130         * modules/nl_langinfo-tests (Files): Likewise.
21131         * modules/obstack-printf-tests (Files): Likewise.
21132         * modules/open-tests (Files): Likewise.
21133         * modules/openat-tests (Files): Likewise.
21134         * modules/perror-tests (Files): Likewise.
21135         * modules/pipe2-tests (Files): Likewise.
21136         * modules/poll-tests (Files): Likewise.
21137         * modules/popen-tests (Files): Likewise.
21138         * modules/posix_spawn-tests (Files): Likewise.
21139         * modules/posix_spawnp-tests (Files): Likewise.
21140         * modules/pread-tests (Files): Likewise.
21141         * modules/printf-posix-tests (Files): Likewise.
21142         * modules/pty-tests (Files): Likewise.
21143         * modules/random_r-tests (Files): Likewise.
21144         * modules/rawmemchr-tests (Files): Likewise.
21145         * modules/readlink-tests (Files): Likewise.
21146         * modules/remove-tests (Files): Likewise.
21147         * modules/rename-tests (Files): Likewise.
21148         * modules/renameat-tests (Files): Likewise.
21149         * modules/rmdir-tests (Files): Likewise.
21150         * modules/round-tests (Files): Likewise.
21151         * modules/roundf-tests (Files): Likewise.
21152         * modules/roundl-tests (Files): Likewise.
21153         * modules/select-tests (Files): Likewise.
21154         * modules/setenv-tests (Files): Likewise.
21155         * modules/sigaction-tests (Files): Likewise.
21156         * modules/sleep-tests (Files): Likewise.
21157         * modules/snprintf-posix-tests (Files): Likewise.
21158         * modules/snprintf-tests (Files): Likewise.
21159         * modules/sprintf-posix-tests (Files): Likewise.
21160         * modules/stat-tests (Files): Likewise.
21161         * modules/strcasestr-tests (Files): Likewise.
21162         * modules/strchrnul-tests (Files): Likewise.
21163         * modules/strerror-tests (Files): Likewise.
21164         * modules/strsignal-tests (Files): Likewise.
21165         * modules/strstr-tests (Files): Likewise.
21166         * modules/strtod-tests (Files): Likewise.
21167         * modules/strverscmp-tests (Files): Likewise.
21168         * modules/symlink-tests (Files): Likewise.
21169         * modules/symlinkat-tests (Files): Likewise.
21170         * modules/times-tests (Files): Likewise.
21171         * modules/trunc-tests (Files): Likewise.
21172         * modules/truncf-tests (Files): Likewise.
21173         * modules/truncl-tests (Files): Likewise.
21174         * modules/tsearch-tests (Files): Likewise.
21175         * modules/uname-tests (Files): Likewise.
21176         * modules/unlink-tests (Files): Likewise.
21177         * modules/unsetenv-tests (Files): Likewise.
21178         * modules/usleep-tests (Files): Likewise.
21179         * modules/utimensat-tests (Files): Likewise.
21180         * modules/vasprintf-tests (Files): Likewise.
21181         * modules/vdprintf-posix-tests (Files): Likewise.
21182         * modules/vfprintf-posix-tests (Files): Likewise.
21183         * modules/vprintf-posix-tests (Files): Likewise.
21184         * modules/vsnprintf-posix-tests (Files): Likewise.
21185         * modules/vsnprintf-tests (Files): Likewise.
21186         * modules/vsprintf-posix-tests (Files): Likewise.
21187         * modules/wcrtomb-tests (Files): Likewise.
21188         * modules/wcsnrtombs-tests (Files): Likewise.
21189         * modules/wcsrtombs-tests (Files): Likewise.
21190         * modules/wcwidth-tests (Files): Likewise.
21191         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
21192         * tests/test-isinf.c (isinf): Likewise.
21193         * tests/test-isnan.c (isnan): Likewise.
21194         * tests/test-signbit.c (signbit): Likewise.
21195         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
21196         declaration, either as macro or with correct signature.
21197         (select): Ensure function under test is declared with correct
21198         signature in correct header.
21199         * tests/test-atexit.c (atexit): Likewise.
21200         * tests/test-btowc.c (btowc): Likewise.
21201         * tests/test-canonicalize-lgpl.c (realpath)
21202         (canonicalize_file_name): Likewise.
21203         * tests/test-ceilf1.c (ceilf): Likewise.
21204         * tests/test-ceill.c (ceill): Likewise.
21205         * tests/test-chown.c (chown): Likewise.
21206         * tests/test-dprintf-posix.c (dprintf): Likewise.
21207         * tests/test-dup2.c (dup2): Likewise.
21208         * tests/test-dup3.c (dup3): Likewise.
21209         * tests/test-duplocale.c (duplocale): Likewise.
21210         * tests/test-fchdir.c (fchdir): Likewise.
21211         * tests/test-fchownat.c (fchownat): Likewise.
21212         * tests/test-fcntl.c (fcntl): Likewise.
21213         * tests/test-fdopendir.c (fdopendir): Likewise.
21214         * tests/test-fflush.c (fflush): Likewise.
21215         * tests/test-flock.c (flock): Likewise.
21216         * tests/test-floorf1.c (floorf): Likewise.
21217         * tests/test-floorl.c (floorl): Likewise.
21218         * tests/test-fnmatch.c (fnmatch): Likewise.
21219         * tests/test-fopen.c (fopen): Likewise.
21220         * tests/test-fprintf-posix.c (fprintf): Likewise.
21221         * tests/test-freopen.c (freopen): Likewise.
21222         * tests/test-frexp.c (frexp): Likewise.
21223         * tests/test-frexpl.c (frexpl): Likewise.
21224         * tests/test-fseek.c (fseek): Likewise.
21225         * tests/test-fseeko.c (fseeko): Likewise.
21226         * tests/test-fstatat.c (fstatat): Likewise.
21227         * tests/test-fsync.c (fsync): Likewise.
21228         * tests/test-ftell.c (ftell): Likewise.
21229         * tests/test-ftello.c (ftello): Likewise.
21230         * tests/test-futimens.c (futimens): Likewise.
21231         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
21232         (gai_strerror): Likewise.
21233         * tests/test-getcwd.c (getcwd): Likewise.
21234         * tests/test-getdelim.c (getdelim): Likewise.
21235         * tests/test-getdtablesize.c (getdtablesize): Likewise.
21236         * tests/test-getgroups.c (getgroups): Likewise.
21237         * tests/test-gethostname.c (gethostname): Likewise.
21238         * tests/test-getline.c (getline): Likewise.
21239         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
21240         Likewise.
21241         * tests/test-gettimeofday.c (gettimeofday): Likewise.
21242         * tests/test-glob.c (glob, globfree): Likewise.
21243         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
21244         * tests/test-inet_ntop.c (inet_ntop): Likewise.
21245         * tests/test-inet_pton.c (inet_pton): Likewise.
21246         * tests/test-isblank.c (isblank): Likewise.
21247         * tests/test-lchown.c (lchown): Likewise.
21248         * tests/test-ldexpl.c (ldexpl): Likewise.
21249         * tests/test-link.c (link): Likewise.
21250         * tests/test-linkat.c (linkat): Likewise.
21251         * tests/test-lseek.c (lseek): Likewise.
21252         * tests/test-lstat.c (lstat): Likewise.
21253         * tests/test-mbrtowc.c (mbrtowc): Likewise.
21254         * tests/test-mbsinit.c (mbsinit): Likewise.
21255         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
21256         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
21257         * tests/test-memchr.c (memchr): Likewise.
21258         * tests/test-memcmp.c (memcmp): Likewise.
21259         * tests/test-memmem.c (memmem): Likewise.
21260         * tests/test-memrchr.c (memrchr): Likewise.
21261         * tests/test-mkdir.c (mkdir): Likewise.
21262         * tests/test-mkdirat.c (mkdirat): Likewise.
21263         * tests/test-mkfifo.c (mkfifo): Likewise.
21264         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
21265         * tests/test-mknod.c (mknod): Likewise.
21266         * tests/test-nanosleep.c (nanosleep): Likewise.
21267         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
21268         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
21269         Likewise.
21270         * tests/test-open.c (open): Likewise.
21271         * tests/test-openat.c (openat): Likewise.
21272         * tests/test-perror.c (perror): Likewise.
21273         * tests/test-pipe2.c (pipe2): Likewise.
21274         * tests/test-poll.c (poll): Likewise.
21275         * tests/test-popen.c (popen, pclose): Likewise.
21276         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
21277         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
21278         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
21279         (posix_spawn_file_actions_destroy)
21280         (posix_spawn_file_actions_addclose)
21281         (posix_spawn_file_actions_addopen)
21282         (posix_spawn_file_actions_adddup2): Likewise.
21283         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
21284         * tests/test-pread.c (pread): Likewise.
21285         * tests/test-printf-posix.c (printf): Likewise.
21286         * tests/test-pty.c (openpty, forkpty): Likewise.
21287         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
21288         (random_r): Likewise.
21289         * tests/test-rawmemchr.c (rawmemchr): Likewise.
21290         * tests/test-readlink.c (readlink): Likewise.
21291         * tests/test-remove.c (remove): Likewise.
21292         * tests/test-rename.c (rename): Likewise.
21293         * tests/test-renameat.c (renameat): Likewise.
21294         * tests/test-rmdir.c (rmdir): Likewise.
21295         * tests/test-round1.c (round): Likewise.
21296         * tests/test-roundf1.c (roundf): Likewise.
21297         * tests/test-roundl.c (roundl): Likewise.
21298         * tests/test-setenv.c (setenv): Likewise.
21299         * tests/test-sigaction.c (sigaction): Likewise.
21300         * tests/test-sleep.c (sleep): Likewise.
21301         * tests/test-snprintf.c (snprintf): Likewise.
21302         * tests/test-sprintf-posix.c (sprintf): Likewise.
21303         * tests/test-stat.c (stat): Likewise.
21304         * tests/test-stpncpy.c (stpncpy): Likewise.
21305         * tests/test-strcasestr.c (strcasestr): Likewise.
21306         * tests/test-strchrnul.c (strchrnul): Likewise.
21307         * tests/test-strerror.c (strerror): Likewise.
21308         * tests/test-strsignal.c (strsignal): Likewise.
21309         * tests/test-strstr.c (strstr): Likewise.
21310         * tests/test-strtod.c (strtod): Likewise.
21311         * tests/test-strverscmp.c (strverscmp): Likewise.
21312         * tests/test-symlink.c (symlink): Likewise.
21313         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
21314         * tests/test-times.c (times): Likewise.
21315         * tests/test-trunc1.c (trunc): Likewise.
21316         * tests/test-truncf1.c (truncf): Likewise.
21317         * tests/test-truncl.c (truncl): Likewise.
21318         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
21319         Likewise.
21320         * tests/test-uname.c (uname): Likewise.
21321         * tests/test-unlink.c (unlink): Likewise.
21322         * tests/test-unlinkat.c (unlinkat): Likewise.
21323         * tests/test-unsetenv.c (unsetenv): Likewise.
21324         * tests/test-usleep.c (usleep): Likewise.
21325         * tests/test-utimensat.c (utimensat): Likewise.
21326         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
21327         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
21328         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
21329         * tests/test-vprintf-posix.c (vprintf): Likewise.
21330         * tests/test-vsnprintf.c (vsnprintf): Likewise.
21331         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
21332         * tests/test-wcrtomb.c (wcrtomb): Likewise.
21333         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
21334         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
21335         * tests/test-wcwidth.c (wcwidth): Likewise.
21336
21337         build: pull in conditional headers during GNULIB_POSIXCHECK
21338         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
21339         definitions from any conditionally-included headers.
21340         * lib/stdlib.in.h (includes): Likewise.
21341         * lib/unistd.in.h (includes): Likewise.
21342
21343 2009-12-24  Bruno Haible  <bruno@clisp.org>
21344
21345         * tests/test-argv-iter.c: Include header file being tested immediately
21346         after config.h.
21347         * tests/test-base64.c: Likewise.
21348         * tests/test-flock.c: Likewise.
21349         * tests/test-fsync.c: Likewise.
21350         * tests/test-getdate.c: Likewise.
21351         * tests/test-getndelim2.c: Likewise.
21352         * tests/test-isfinite.c: Likewise.
21353         * tests/test-isinf.c: Likewise.
21354         * tests/test-strerror.c: Likewise.
21355         * tests/test-strsignal.c: Likewise.
21356
21357 2009-12-23  Eric Blake  <ebb9@byu.net>
21358
21359         unistd: work around cygwin bug
21360         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
21361         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
21362         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21363
21364 2009-12-23  Bruno Haible  <bruno@clisp.org>
21365
21366         localename: More tests.
21367         * tests/test-localename.c (SIZEOF): New macro.
21368         (categories): New variable.
21369         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
21370         test_locale_name_default): Add test w.r.t. thread locale.
21371         (test_locale_name_thread): New function.
21372         (main): Invoke it.
21373
21374         localename: Make aware of thread locale.
21375         * lib/localename.h (gl_locale_name_thread): New declaration.
21376         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
21377         behaviour with respect to thread locale.
21378         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
21379         <langinfo.h>, glthread/lock.h.
21380         (SIZE_BITS): New macro.
21381         (string_hash): New function.
21382         (struct hash_node): New type.
21383         (HASH_TABLE_SIZE): New macro.
21384         (struniq_hash_table, struniq_lock): New variables.
21385         (struniq): New function.
21386         (gl_locale_name_thread): New function.
21387         (gl_locale_name): Invoke it.
21388         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
21389         * modules/localename (Depends-on): Add lock.
21390         Reported by Mike Gran <spk121@yahoo.com>.
21391
21392 2009-12-23  Eric Blake  <ebb9@byu.net>
21393
21394         va-args: new module
21395         * modules/va-args: New file.
21396         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
21397         * MODULES.html.sh (Core language properties): Mention it.
21398
21399         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
21400         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
21401         named alias for __attribute__((__unused__)).
21402         * lib/chown.c: Update client.
21403         * lib/fchmodat.c: Likewise.
21404         * lib/fts.c: Likewise.
21405         * lib/getdate.y: Likewise.
21406         * lib/getgroups.c: Likewise.
21407         * lib/getopt.c: Likewise.
21408         * lib/getugroups.c: Likewise.
21409         * lib/mkdir.c: Likewise.
21410         * lib/mkfifo.c: Likewise.
21411         * lib/mkfifoat.c: Likewise.
21412         * lib/mknod.c: Likewise.
21413         * lib/mknodat.c: Likewise.
21414         * lib/readlink.c: Likewise.
21415         * lib/se-context.in.h: Likewise.
21416         * lib/se-selinux.in.h: Likewise.
21417         * lib/sockets.c: Likewise.
21418         * lib/symlink.c: Likewise.
21419         * lib/symlinkat.c: Likewise.
21420         * lib/unicodeio.c: Likewise.
21421         * lib/unistr.h: Likewise.
21422         * tests/test-areadlink.c: Likewise.
21423         * tests/test-areadlinkat.c: Likewise.
21424         * tests/test-filenamecat.c: Likewise.
21425         * tests/test-fseeko.c: Likewise.
21426         * tests/test-ftello.c: Likewise.
21427         * tests/test-getdate.c: Likewise.
21428         * tests/test-getgroups.c: Likewise.
21429         * tests/test-gethostname.c: Likewise.
21430         * tests/test-quotearg.c: Likewise.
21431         * tests/test-version-etc.c: Likewise.
21432         * tests/test-xalloc-die.c: Likewise.
21433         * tests/test-xfprintf-posix.c: Likewise.
21434         * tests/test-xprintf-posix.c: Likewise.
21435         * tests/test-xvasprintf.c: Likewise.
21436
21437         tests: avoid compiler warnings
21438         * tests/test-fcntl.c (main): Delete unused parameters.
21439         * tests/test-freopen-safer.c (main): Likewise.
21440         * tests/test-xalloc-die.c (main): Mark unused parameters.
21441         * tests/test-fseeko.c (main): Likewise.
21442         * tests/test-ftello.c (main): Likewise.
21443         * tests/test-nanosleep.c (main): Avoid declaration warning.
21444         * tests/test-sleep.c (main): Likewise.
21445         * tests/test-unsetenv.c (main): Silence warning about string
21446         literal.
21447         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21448
21449 2009-12-23  Bruno Haible  <bruno@clisp.org>
21450
21451         * tests/test-localename.c (test_locale_name): New function, extracted
21452         from main. Also test mixed situations.
21453         (test_locale_name_posix, test_locale_name_environ,
21454         test_locale_name_default): New functions.
21455         (main): Invoke them all.
21456         * modules/localename-tests (configure.ac): Test for newlocale.
21457
21458 2009-12-23  Bruno Haible  <bruno@clisp.org>
21459
21460         unistd: Ensure getcwd gets declared before being overridden.
21461         * lib/unistd.in.h: Conditionally include <io.h>.
21462
21463 2009-12-22  Bruno Haible  <bruno@clisp.org>
21464
21465         wchar: Diagnose broken combination of glibc and gcc versions and flags.
21466         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
21467         (gl_WCHAR_H): Invoke it.
21468         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
21469         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
21470         Reported by Karl Berry <karl@freefriends.org>.
21471
21472 2009-12-22  Eric Blake  <ebb9@byu.net>
21473
21474         math, unistd: avoid redundant includes
21475         * lib/math.in.h (isnan): No need to re-include <math.h>.
21476         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
21477
21478         getsubopt: work around cygwin bug
21479         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
21480         avoid conflicting with system getsubopt.
21481         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
21482         bug.
21483
21484         getopt: synchronize from glibc
21485         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
21486         parameter order.  Adjust all callers.
21487         (_getopt_internal_r, main): Adjust quoting in error messages.
21488         Drop considerations for outdated POSIX 1003.2 error message.
21489         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
21490         callers.
21491         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
21492
21493         test-getopt: test stderr behavior
21494         * modules/getopt-posix-tests (Depends-on): Add dup2.
21495         * tests/test-getopt.c (ASSERT): Avoid stderr.
21496         (main): Move stderr to a temporary file.
21497         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
21498         Instead, add parameter to inform caller if output occurred.
21499         (test_getopt): Adjust all existing tests to expect silence, and
21500         add new tests of leading ":".
21501         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21502         glibc shortcomings with leading "-:" or "+:" in optstring.
21503         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21504         Likewise.
21505         * doc/posix-functions/getopt.texi (getopt): Likewise.
21506
21507         test-getopt: enhance test
21508         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
21509         supports optind=0.
21510         * tests/test-getopt.c (OPTIND_MIN): Move...
21511         * tests/test-getopt.h (OPTIND_MIN): ...here.
21512         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
21513         Require that optind=0 works, since modern BSD supports it in
21514         addition to optreset, and since coreutils expects it.
21515         (test_getopt_long_only): New test.
21516         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21517         glibc shortcomings with 'W;', and enforcement of optind=0.
21518         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21519         Likewise.
21520
21521 2009-12-21  Bruno Haible  <bruno@clisp.org>
21522
21523         localename: Improvements for MacOS X and Cygwin.
21524         * lib/localename.h (gl_locale_name_environ): New declaration.
21525         * lib/localename.c (gl_locale_name_environ): New function, extracted from
21526         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
21527         (gl_locale_name_posix): Invoke it.
21528         (gl_locale_name_default): Add comments. Use Windows native API also on
21529         Cygwin.
21530
21531 2009-12-21  Bruno Haible  <bruno@clisp.org>
21532
21533         Update list of Win32 locale ids.
21534         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
21535         (LANG_SAMI): Renamed from LANG_SAAMI.
21536         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
21537         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
21538         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
21539         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
21540         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
21541         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
21542         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
21543         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
21544         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
21545         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
21546         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
21547         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
21548         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
21549         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
21550         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
21551         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
21552         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
21553         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
21554         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
21555         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
21556         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
21557         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
21558         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
21559         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
21560         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
21561         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
21562         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
21563         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
21564         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
21565         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
21566         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
21567         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
21568         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
21569         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
21570         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
21571         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
21572         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
21573         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
21574         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
21575         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
21576         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
21577         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
21578         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
21579         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
21580         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
21581         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
21582         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
21583         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
21584         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
21585         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
21586         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
21587         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
21588         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
21589         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
21590         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
21591         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
21592         Add more languages and countries for Sami, Sorbian. Add more countries
21593         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
21594         for Pashto. Change country for Syriac, Tswana.
21595
21596 2009-12-21  Eric Blake  <ebb9@byu.net>
21597
21598         test-utimens: avoid spurious failure
21599         * tests/test-chown.h (nap): Factor...
21600         * tests/nap.h: ...into new file.
21601         * tests/test-lchown.h (nap): Avoid duplication.
21602         * tests/test-utimens-common.h (nap): Use shared implementation,
21603         necessary on file systems with 1-second resolution.
21604         * modules/chown-tests (Files): Include new file.
21605         * modules/fdutimensat-tests (Files): Likewise.
21606         * modules/futimens-tests (Files): Likewise.
21607         * modules/lchown-tests (Files): Likewise.
21608         * modules/openat-tests (Files): Likewise.
21609         * modules/utimens-tests (Files): Likewise.
21610         * modules/utimensat-tests (Files): Likewise.
21611
21612 2009-12-19  Eric Blake  <ebb9@byu.net>
21613
21614         futimens, utimensat: work around Linux bug
21615         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
21616         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21617         * lib/utimensat.c (rpl_utimensat): Work around it.
21618         * lib/futimens.c (rpl_futimens): Adjust comment.
21619
21620         utimens: work around Linux ctime bug
21621         * lib/utimens.c (detect_ctime_bug): New helper function.
21622         (update_timespec): Differentiate between workaround needed for
21623         this bug vs. what is needed for systems that lack utimensat.
21624         (fdutimens, lutimens): Work around bug.
21625
21626         utimens: check for ctime update
21627         * tests/test-utimens-common.h (check_ctime): Define.
21628         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
21629         * tests/test-futimens.h (test_futimens): Likewise.
21630         * tests/test-lutimens.h (test_lutimens): Likewise.
21631         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21632         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21633
21634 2009-12-19  Bruno Haible  <bruno@clisp.org>
21635
21636         dprintf-posix: Check against memory leak fixed on 2009-12-15.
21637         * tests/test-dprintf-posix2.sh: New file.
21638         * tests/test-dprintf-posix2.c: New file.
21639         * modules/dprintf-posix-tests (Files): Add them.
21640         (configure.ac): Check for getrlimit and setrlimit.
21641         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21642
21643 2009-12-19  Bruno Haible  <bruno@clisp.org>
21644
21645         fprintf-posix: Check against memory leak fixed on 2009-12-15.
21646         * tests/test-fprintf-posix3.sh: New file.
21647         * tests/test-fprintf-posix3.c: New file.
21648         * modules/fprintf-posix-tests (Files): Add them.
21649         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21650
21651 2009-12-19  Eric Blake  <ebb9@byu.net>
21652
21653         dirfd: fix prototype
21654         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
21655         * lib/dirfd.c (dirfd): Likewise.
21656
21657         canonicalize: reduce memory usage
21658         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
21659         allocation to size.
21660         Reported by Solar Designer <solar@openwall.com>.
21661
21662 2009-12-19  Bruno Haible  <bruno@clisp.org>
21663
21664         New module attribute 'Applicability'.
21665         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
21666         * gnulib-tool: New option --extract-applicability.
21667         (func_usage): Document it.
21668         (sed_extract_prog): Recognize it.
21669         (func_get_applicability): New function.
21670         (func_import): Generalize handling of 'link-warning' module.
21671         * modules/link-warning (Applicability): New section.
21672         * modules/arg-nonnull (Applicability): New section.
21673         Repoted by Simon Josefsson <simon@josefsson.org>.
21674
21675 2009-12-19  Bruno Haible  <bruno@clisp.org>
21676
21677         fflush: tweak
21678         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
21679         * lib/fseeko.c (rpl_fseeko): Likewise.
21680
21681 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
21682
21683         * lib/gl_list.h: Fix typo in comment.
21684
21685 2009-12-16  Eric Blake  <ebb9@byu.net>
21686
21687         fcntl: use to simplify other modules
21688         * modules/cloexec (Depends-on): Add fcntl.
21689         * modules/fchdir (Depends-on): Likewise.
21690         * modules/fd-safer-flag (Depends-on): Likewise.
21691         * modules/unistd-safer (Depends-on): Likewise.
21692         * modules/dup3 (configure.ac): Set module indicator.
21693         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
21694         missing.
21695         * lib/fchdir.c (_gl_register_dup): Fix comment.
21696         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
21697         * lib/dup-safer.c (dup_safer): Likewise.
21698         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
21699         * lib/dup3.c (dup3): Likewise.
21700         * tests/test-fchdir.c (main): Enhance test.
21701         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
21702
21703         fcntl: port portions of fcntl to mingw
21704         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
21705         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
21706         replacement for mingw.
21707         * modules/fcntl (Description): Update.
21708         (Depends-on): Add dup2.
21709         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
21710         * modules/fcntl-h (Makefile.am): Substitute it.
21711         * lib/fcntl.in.h (fcntl): Update declaration.
21712         (F_DUPFD, F_GETFD): New macros, when needed.
21713         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21714         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
21715         * tests/test-fcntl.c (check_flags, main): Enhance test for items
21716         we now guarantee.
21717
21718         fcntl: work around cygwin bug in F_DUPFD
21719         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
21720         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
21721         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
21722         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
21723         * doc/posix-functions/fcntl.texi (fcntl): Document it.
21724
21725         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
21726         * modules/fcntl (Files): List new files.
21727         (configure.ac): Run a test.
21728         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
21729         * lib/fcntl.c (rpl_fcntl): Likewise.
21730         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
21731         (gl_FCNTL_H): Always replace fcntl.h.
21732         * modules/fcntl-h (Makefile.am): Substitute witnesses.
21733         * lib/fcntl.in.h (fcntl): Declare replacement.
21734         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
21735         needed, plus a witness.
21736         * doc/posix-functions/fcntl.texi (fcntl): Document this.
21737         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21738         * tests/test-fcntl.c: New file.
21739         * modules/fcntl-tests: Likewise.
21740
21741         binary-io: avoid potential compilation warning
21742         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
21743         directives.
21744
21745         fflush: avoid compilation error on NetBSD
21746         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
21747         between off_t and fpos_t, since the latter is sometimes a struct.
21748         * lib/fseeko.c (rpl_fseeko): Likewise.
21749         Reported by Alexander Nasonov <alnsn@yandex.ru>.
21750
21751 2009-12-15  Eric Blake  <ebb9@byu.net>
21752
21753         fcntl-h, stdio, sys_ioctl: fix declarations
21754         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
21755         function must not take arguments.
21756         * lib/sys_ioctl.in.h (ioctl): Likewise.
21757         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
21758         (open): Add a link warning.
21759
21760 2009-12-15  Jim Meyering  <meyering@redhat.com>
21761
21762         areadlink, areadlink-with-size: relax license to LGPLv2+
21763         * modules/areadlink (License): Relax to LGPLv2+.
21764         * modules/areadlink-with-size (License): Likewise.
21765
21766 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
21767             Bruno Haible  <bruno@clisp.org>
21768
21769         *printf: Fix memory leak.
21770         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
21771         * lib/vfprintf.c (vfprintf): Likewise.
21772         * lib/dprintf.c (dprintf): Likewise.
21773         * lib/vdprintf.c (vdprintf): Likewise.
21774
21775 2009-12-14  Eric Blake  <ebb9@byu.net>
21776
21777         accept4: adjust module dependencies
21778         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
21779
21780         utimens: one more try at avoiding compiler warning
21781         * lib/utimens.c (lutimens): Lower scope of result.
21782
21783 2009-12-13  Bruno Haible  <bruno@clisp.org>
21784
21785         Move the malloc checking from module 'list' to new module 'xlist'.
21786         * modules/xlist: New file.
21787         * lib/gl_xlist.h: New file.
21788         * lib/gl_xlist.c: New file.
21789         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
21790         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
21791         gl_list_add_last, gl_list_add_before, gl_list_add_after,
21792         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
21793         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
21794         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
21795         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
21796         gl_sortedlist_nx_add): New declarations.
21797         (struct gl_list_implementation): Rename and change methods accordingly.
21798         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
21799         (gl_list_nx_create): Renamed from gl_list_create.
21800         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21801         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21802         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21803         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21804         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21805         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21806         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21807         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21808         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
21809         gl_list_create_empty.
21810         (gl_list_nx_create): Renamed from gl_list_create.
21811         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21812         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21813         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21814         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21815         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21816         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21817         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21818         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21819         * lib/gl_array_list.c: Don't include xalloc.h.
21820         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
21821         NULL upon out-of-memory.
21822         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
21823         out-of-memory.
21824         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
21825         Change return type to 'int'.
21826         (gl_array_nx_set_at): Renamed from gl_array_set_at.
21827         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21828         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
21829         upon out-of-memory.
21830         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
21831         upon out-of-memory.
21832         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
21833         upon out-of-memory.
21834         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
21835         upon out-of-memory.
21836         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
21837         out-of-memory.
21838         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
21839         Update.
21840         (gl_array_list_implementation): Update.
21841         * lib/gl_carray_list.c: Don't include xalloc.h.
21842         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
21843         Return NULL upon out-of-memory.
21844         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
21845         out-of-memory.
21846         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
21847         Change return type to 'int'.
21848         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
21849         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21850         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
21851         upon out-of-memory.
21852         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
21853         upon out-of-memory.
21854         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
21855         out-of-memory.
21856         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
21857         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
21858         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
21859         Update.
21860         (gl_carray_list_implementation): Update.
21861         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
21862         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
21863         gl_linked_create_empty. Return NULL upon out-of-memory.
21864         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
21865         out-of-memory.
21866         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
21867         Change return type to 'int'. Return -1 upon out-of-memory.
21868         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
21869         out-of-memory.
21870         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
21871         upon out-of-memory.
21872         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
21873         upon out-of-memory.
21874         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
21875         NULL upon out-of-memory.
21876         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
21877         upon out-of-memory.
21878         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
21879         out-of-memory.
21880         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
21881         Update.
21882         * lib/gl_linked_list.c: Don't include xalloc.h.
21883         (gl_linked_list_implementation): Update.
21884         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
21885         (add_to_bucket): Change return type to 'int'.
21886         (gl_linkedhash_list_implementation): Update.
21887         * lib/gl_anytree_list1.h (free_subtree): New function.
21888         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
21889         gl_tree_create_empty. Return NULL upon out-of-memory.
21890         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
21891         Change return type to 'int'. Return -1 upon out-of-memory.
21892         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
21893         out-of-memory.
21894         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
21895         (gl_tree_remove_node): New function, moved here from
21896         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
21897         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
21898         Update.
21899         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
21900         malloc, not xmalloc. Return NULL upon out-of-memory.
21901         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21902         out-of-memory.
21903         (gl_tree_remove_node_from_tree): New function, extracted from
21904         gl_tree_remove_node.
21905         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21906         upon out-of-memory.
21907         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21908         out-of-memory.
21909         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21910         upon out-of-memory.
21911         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21912         upon out-of-memory.
21913         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21914         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
21915         not xmalloc. Return NULL upon out-of-memory.
21916         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21917         out-of-memory.
21918         (gl_tree_remove_node_from_tree): New function, extracted from
21919         gl_tree_remove_node.
21920         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21921         upon out-of-memory.
21922         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21923         out-of-memory.
21924         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21925         upon out-of-memory.
21926         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21927         upon out-of-memory.
21928         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21929         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
21930         gl_anytree_list1.h before gl_anyavltree_list2.h.
21931         (gl_avltree_list_implementation): Update.
21932         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
21933         gl_anytree_list1.h before gl_anyavltree_list2.h.
21934         (gl_rbtree_list_implementation): Update.
21935         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
21936         Change return type to 'int'. Return -1 upon out-of-memory. Use
21937         __builtin_expect.
21938         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
21939         (gl_avltreehash_list_implementation): Update.
21940         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
21941         (gl_rbtreehash_list_implementation): Update.
21942         * modules/array-list (Depends-on): Remove xalloc.
21943         * modules/carray-list (Depends-on): Likewise.
21944         * modules/linked-list (Depends-on): Likewise.
21945         * modules/linkedhash-list (Depends-on): Likewise.
21946         * modules/avltree-list (Depends-on): Likewise.
21947         * modules/rbtree-list (Depends-on): Likewise.
21948         * modules/avltreehash-list (Depends-on): Likewise.
21949         * modules/rbtreehash-list (Depends-on): Likewise.
21950
21951         * modules/xsublist: New file.
21952         * lib/gl_xsublist.h: New file.
21953         * lib/gl_xsublist.c: New file.
21954         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
21955         (gl_sublist_nx_create): New declaration.
21956         * lib/gl_sublist.c: Don't include xalloc.h.
21957         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
21958         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
21959         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
21960         Change return type to 'int'. Return -1 upon out-of-memory.
21961         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
21962         upon out-of-memory.
21963         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
21964         NULL upon out-of-memory.
21965         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
21966         upon out-of-memory.
21967         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
21968         NULL upon out-of-memory.
21969         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
21970         NULL upon out-of-memory.
21971         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
21972         upon out-of-memory.
21973         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
21974         (gl_sublist_list_implementation): Update.
21975         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
21976         upon out-of-memory.
21977         * modules/sublist (Depends-on): Remove xalloc.
21978
21979         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
21980         * tests/test-carray_list.c: Likewise.
21981         * tests/test-linked_list.c: Likewise.
21982         * tests/test-linkedhash_list.c: Likewise.
21983         * tests/test-avltree_list.c: Likewise.
21984         * tests/test-rbtree_list.c: Likewise.
21985         * tests/test-avltreehash_list.c: Likewise.
21986         * tests/test-rbtreehash_list.c: Likewise.
21987         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
21988         * modules/carray-list-tests (Makefile.am): Likewise.
21989         * modules/linked-list-tests (Makefile.am): Likewise.
21990         * modules/linkedhash-list-tests (Makefile.am): Likewise.
21991         * modules/avltree-list-tests (Makefile.am): Likewise.
21992         * modules/rbtree-list-tests (Makefile.am): Likewise.
21993         * modules/avltreehash-list-tests (Makefile.am): Likewise.
21994         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
21995
21996         * NEWS: Mention the changes.
21997
21998         * lib/clean-temp.c: Include gl_xlist.h.
21999         * modules/clean-temp (Depends-on): Add xlist.
22000
22001         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
22002         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
22003
22004         * tests/test-array_oset.c: Include gl_xlist.h.
22005         * modules/array-oset-tests (Depends-on): Add xlist.
22006
22007         Reported by José E. Marchesi <jemarch@gnu.org>.
22008
22009 2009-12-13  Bruno Haible  <bruno@clisp.org>
22010
22011         Move the malloc checking from module 'oset' to new module 'xoset'.
22012         * modules/xoset: New file.
22013         * lib/gl_xoset.h: New file.
22014         * lib/gl_xoset.c: New file.
22015         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
22016         declarations.
22017         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
22018         (struct gl_oset_implementation): Rename and change methods accordingly.
22019         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
22020         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22021         'int'. Mark as __warn_unused_result__.
22022         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
22023         gl_oset_create_empty.
22024         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22025         'int'.
22026         * lib/gl_array_oset.c: Don't include xalloc.h.
22027         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
22028         malloc, not xmalloc.
22029         (grow): Change return type to 'int'. Don't call xalloc_die.
22030         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
22031         to 'int'.
22032         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
22033         'int'.
22034         (gl_array_oset_implementation): Update.
22035         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
22036         gl_tree_create_empty.
22037         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
22038         'int'.
22039         * lib/gl_avltree_oset.c: Don't include xalloc.h.
22040         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22041         xmalloc.
22042         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22043         not xmalloc.
22044         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22045         xmalloc.
22046         (gl_avltree_oset_implementation): Update.
22047         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
22048         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22049         xmalloc.
22050         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22051         not xmalloc.
22052         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22053         xmalloc.
22054         (gl_rbtree_oset_implementation): Update.
22055         * modules/array-oset (Depends-on): Remove xalloc.
22056         * modules/avltree-oset (Depends-on): Likewise.
22057         * modules/rbtree-oset (Depends-on): Likewise.
22058         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
22059         * tests/test-avltree_oset.c: Likewise.
22060         * tests/test-rbtree_oset.c: Likewise.
22061         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
22062         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
22063         * modules/rbtree-oset-tests (Makefile.am): Likewise.
22064         * NEWS: Mention the change.
22065
22066 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
22067
22068         maint.mk: allow a project to override release-prep commands
22069         * top/maint.mk (alpha, beta, stable): Move release-preparatory
22070         commands into a new rule.
22071         (release-prep): New rule.
22072         (release-prep-hook): New overridable variable.
22073
22074 2009-12-13  Bruno Haible  <bruno@clisp.org>
22075
22076         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
22077
22078 2009-12-13  Jim Meyering  <meyering@redhat.com>
22079
22080         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
22081         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
22082
22083 2009-12-12  Bruno Haible  <bruno@clisp.org>
22084
22085         duplocale: Tweak.
22086         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
22087
22088 2009-12-12  Karl Berry  <karl@gnu.org>
22089
22090         * config/srclist.txt (strtoll.c): tab changes, no more sync.
22091
22092 2009-12-12  Bruno Haible  <bruno@clisp.org>
22093
22094         * m4/po.m4: Undo incorrect untabification.
22095
22096 2009-12-12  Bruno Haible  <bruno@clisp.org>
22097
22098         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
22099         * modules/c-strtod (Depends-on): Add locale.
22100         * modules/c-strtold (Depends-on): Likewise.
22101
22102 2009-12-12  Bruno Haible  <bruno@clisp.org>
22103
22104         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
22105
22106 2009-12-11  Eric Blake  <ebb9@byu.net>
22107
22108         setenv: relax requirement in light of POSIX ruling
22109         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
22110         not NULL.
22111         * tests/test-setenv.c (main): Relax test.
22112         * tests/test-unsetenv.c (main): Likewise.
22113         * doc/posix-functions/setenv.texi (setenv): Document this.
22114         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22115
22116 2009-12-11  Bruno Haible  <bruno@clisp.org>
22117
22118         New module 'fd-safer-flag'.
22119         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
22120         * lib/dup-safer.c (dup_safer_flag): Remove function.
22121         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
22122         * lib/fd-safer.c (fd_safer_flag): Remove function.
22123         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
22124         * modules/cloexec (configure.ac): Drop indicator macro.
22125         * modules/fd-safer-flag: New file.
22126         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
22127         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
22128         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
22129
22130 2009-12-11  Bruno Haible  <bruno@clisp.org>
22131
22132         Tests for module 'nl_langinfo'.
22133         * modules/nl_langinfo-tests: New file.
22134         * tests/test-nl_langinfo.sh: New file.
22135         * tests/test-nl_langinfo.c: New file.
22136
22137         New module 'nl_langinfo'.
22138         * lib/nl_langinfo.c: New file.
22139         * m4/nl_langinfo.m4: New file.
22140         * modules/nl_langinfo: New file.
22141         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
22142
22143 2009-12-11  Bruno Haible  <bruno@clisp.org>
22144
22145         Tests for module 'langinfo'.
22146         * modules/langinfo-tests: New file.
22147         * tests/test-langinfo.c: New file.
22148
22149         New module 'langinfo'.
22150         * lib/langinfo.in.h: New file.
22151         * m4/langinfo_h.m4: New file.
22152         * modules/langinfo: New file.
22153         * doc/posix-headers/langinfo.texi: Mention the new module.
22154
22155 2009-12-11  Bruno Haible  <bruno@clisp.org>
22156
22157         * lib/config.charset: Untabify.
22158
22159 2009-12-11  Bruno Haible  <bruno@clisp.org>
22160
22161         * modules/unistd-safer (configure.ac): Drop indicator macro.
22162
22163 2009-12-11  Bruno Haible  <bruno@clisp.org>
22164
22165         Move pipe2-safer code to its own file.
22166         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
22167         * lib/pipe-safer.c (pipe2_safer): Remove function.
22168         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
22169         (Makefile.am): Add it to lib_SOURCES.
22170
22171 2009-12-10  Bruno Haible  <bruno@clisp.org>
22172
22173         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
22174
22175 2009-12-10  Bruno Haible  <bruno@clisp.org>
22176
22177         Declare which arguments expect non-NULL values, for GCC and clang.
22178         * build-aux/arg-nonnull.h: New file.
22179         * modules/arg-nonnull: New file.
22180         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
22181         (inet_ntop, inet_pton): Use it.
22182         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
22183         (closedir, dirfd, opendir, scandir, alphasort): Use it.
22184         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
22185         (open, openat): Use it.
22186         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
22187         (fnmatch): Use it.
22188         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
22189         (getopt, getopt_long, getopt_long_only): Use it.
22190         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
22191         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
22192         Use it.
22193         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
22194         (iconv_open): Use it.
22195         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
22196         (strtoimax, strtoumax): Use it.
22197         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
22198         (duplocale): Use it.
22199         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
22200         (frexp, frexpl): Use it.
22201         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
22202         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
22203         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
22204         (tsearch, tfind, tdelete, twalk): Use it.
22205         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
22206         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22207         sigpending): Use it.
22208         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
22209         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22210         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22211         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22212         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22213         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22214         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22215         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22216         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22217         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22218         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22219         Use it.
22220         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
22221         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
22222         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
22223         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
22224         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
22225         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
22226         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
22227         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
22228         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
22229         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
22230         strtoull, unsetenv): Use it.
22231         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
22232         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22233         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22234         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
22235         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
22236         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
22237         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
22238         (strcasecmp, strncasecmp): Use it.
22239         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
22240         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
22241         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
22242         rpl_setsockopt): Use it.
22243         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
22244         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
22245         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
22246         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
22247         (gettimeofday): Use it.
22248         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
22249         (times): Use it.
22250         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
22251         (uname): Use it.
22252         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
22253         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
22254         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
22255         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
22256         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
22257         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
22258         unlinkat, write): Use it.
22259         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
22260         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
22261         * lib/argv-iter.h: Include arg-nonnull.h.
22262         (_ATTRIBUTE_NONNULL_): Remove macro.
22263         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
22264         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
22265         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
22266         optimization.
22267         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
22268         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
22269         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
22270         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
22271         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
22272         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
22273         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
22274         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
22275         * modules/arpa_inet (Depends-on): Add arg-nonnull.
22276         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
22277         * modules/dirent (Depends-on): Add arg-nonnull.
22278         (Makefile.am): Insert arg-nonnull.h into dirent.h.
22279         * modules/fcntl-h (Depends-on): Add arg-nonnull.
22280         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
22281         * modules/fnmatch (Depends-on): Add arg-nonnull.
22282         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
22283         * modules/getopt-posix (Depends-on): Add arg-nonnull.
22284         (Makefile.am): Insert arg-nonnull.h into getopt.h.
22285         * modules/glob (Depends-on): Add arg-nonnull.
22286         (Makefile.am): Insert arg-nonnull.h into glob.h.
22287         * modules/iconv_open (Depends-on): Add arg-nonnull.
22288         (Makefile.am): Insert arg-nonnull.h into iconv.h.
22289         * modules/inttypes (Depends-on): Add arg-nonnull.
22290         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
22291         * modules/locale (Depends-on): Add arg-nonnull.
22292         (Makefile.am): Insert arg-nonnull.h into locale.h.
22293         * modules/math (Depends-on): Add arg-nonnull.
22294         (Makefile.am): Insert arg-nonnull.h into math.h.
22295         * modules/netdb (Depends-on): Add arg-nonnull.
22296         (Makefile.am): Insert arg-nonnull.h into netdb.h.
22297         * modules/search (Depends-on): Add arg-nonnull.
22298         (Makefile.am): Insert arg-nonnull.h into search.h.
22299         * modules/signal (Depends-on): Add arg-nonnull.
22300         (Makefile.am): Insert arg-nonnull.h into signal.h.
22301         * modules/spawn (Depends-on): Add arg-nonnull.
22302         (Makefile.am): Insert arg-nonnull.h into spawn.h.
22303         * modules/stdio (Depends-on): Add arg-nonnull.
22304         (Makefile.am): Insert arg-nonnull.h into stdio.h.
22305         * modules/stdlib (Depends-on): Add arg-nonnull.
22306         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
22307         * modules/string (Depends-on): Add arg-nonnull.
22308         (Makefile.am): Insert arg-nonnull.h into string.h.
22309         * modules/strings (Depends-on): Add arg-nonnull.
22310         (Makefile.am): Insert arg-nonnull.h into strings.h.
22311         * modules/sys_socket (Depends-on): Add arg-nonnull.
22312         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
22313         * modules/sys_stat (Depends-on): Add arg-nonnull.
22314         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
22315         * modules/sys_time (Depends-on): Add arg-nonnull.
22316         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
22317         * modules/sys_times (Depends-on): Add arg-nonnull.
22318         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
22319         * modules/sys_utsname (Depends-on): Add arg-nonnull.
22320         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
22321         * modules/time (Depends-on): Add arg-nonnull.
22322         (Makefile.am): Insert arg-nonnull.h into time.h.
22323         * modules/unistd (Depends-on): Add arg-nonnull.
22324         (Makefile.am): Insert arg-nonnull.h into unistd.h.
22325         * modules/wchar (Depends-on): Add arg-nonnull.
22326         (Makefile.am): Insert arg-nonnull.h into wchar.h.
22327         * modules/argv-iter (Depends-on): Add arg-nonnull.
22328         * tests/test-canonicalize.c (null_ptr): New function.
22329         (main): Use it.
22330         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
22331         (main): Use it.
22332         * tests/test-memmem.c (null_ptr): New function.
22333         (main): Use it.
22334         Reported by Jim Meyering.
22335
22336 2009-12-10  Bruno Haible  <bruno@clisp.org>
22337
22338         Use spaces for indentation, not tabs.
22339         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22340         * m4/*.m4: Untabify.
22341         * build-aux/*.h: Untabify.
22342         * tests/**/*.[hc]: Untabify.
22343         * README: New section "Indent with spaces, not TABs", based on
22344         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
22345         * NEWS: Mention the change.
22346
22347 2009-12-10  Bruno Haible  <bruno@clisp.org>
22348
22349         pty test: Fix link error.
22350         * modules/pty-tests (Makefile.am): Add the default LDADD value to
22351         test_pty_LDADD.
22352
22353 2009-12-07  Simon Josefsson  <simon@josefsson.org>
22354
22355         * modules/pty: New file.
22356         * modules/pty-tests: New file.
22357         * m4/pty.m4: New file.
22358         * tests/test-pty.c: New file.
22359         * doc/glibc-headers/pty.texi: Modified.
22360         * doc/glibc-functions/forkpty.texi: Modified.
22361         * doc/glibc-functions/openpty.texi: Modified.
22362
22363 2009-12-10  Bruno Haible  <bruno@clisp.org>
22364
22365         Avoid syntax error in C++ mode.
22366         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
22367
22368 2009-12-10  Bruno Haible  <bruno@clisp.org>
22369
22370         Use sed with option -e.
22371         * gnulib-tool (func_version, func_emit_copyright_notice,
22372         func_emit_initmacro_end, func_import, func_create_testdir): Pass
22373         option -e to sed.
22374         * modules/link-warning (Makefile.am): Likewise.
22375
22376 2009-12-10  Jim Meyering  <meyering@redhat.com>
22377
22378         mgetgroups: do not write bytes beyond end of malloc'd buffer
22379         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
22380         username, we call getgroups with a one-element-shorter buffer,
22381         but still told it the length was original, max_n_groups.
22382
22383 2009-12-09  Eric Blake  <ebb9@byu.net>
22384
22385         cloexec: relax license
22386         * modules/cloexec (Maintainer): Add myself.
22387         (License): Use LGPL, not GPL.
22388
22389         link-warning: optimize generation
22390         * modules/link-warning (Makefile.am): Reduce process usage.
22391
22392 2009-12-09  Bruno Haible  <bruno@clisp.org>
22393
22394         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
22395         workaround was added on 2009-11-17.
22396
22397 2009-12-09  Jim Meyering  <meyering@redhat.com>
22398             Bruno Haible  <bruno@clisp.org>
22399
22400         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
22401         * modules/link-warning (Makefile.am): Make the comment-removing sed
22402         command more robust in the face of bootstrap-prepended comment lines.
22403
22404 2009-12-09  Bruno Haible  <bruno@clisp.org>
22405
22406         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
22407         most one group.
22408
22409 2009-12-09  Simon Josefsson <simon@josefsson.org>
22410             Bruno Haible  <bruno@clisp.org>
22411
22412         * build-aux/link-warning.h: Add copyright notice.
22413         * modules/link-warning (Makefile.am): Generate link-warning.h from
22414         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
22415         * NEWS: Mention change in link-warning module.
22416         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
22417         * modules/dirent (Makefile.am): Add dependency to dirent.h.
22418         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
22419         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
22420         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
22421         * modules/math (Makefile.am): Add dependency to math.h.
22422         * modules/search (Makefile.am): Add dependency to search.h.
22423         * modules/signal (Makefile.am): Add dependency to signal.h.
22424         * modules/spawn (Makefile.am): Add dependency to spawn.h.
22425         * modules/stdio (Makefile.am): Add dependency to stdio.h.
22426         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
22427         * modules/string (Makefile.am): Add dependency to string.h.
22428         * modules/strings (Makefile.am): Add dependency to strings.h.
22429         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
22430         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
22431         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
22432         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
22433         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
22434         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
22435         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
22436         * modules/unistd (Makefile.am): Add dependency to unistd.h.
22437         * modules/wchar (Makefile.am): Add dependency to wchar.h.
22438
22439 2009-12-09  Bruno Haible  <bruno@clisp.org>
22440
22441         fchdir: Optimize away rpl_fstat when possible.
22442         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
22443         REPLACE_OPEN_DIRECTORY.
22444         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
22445
22446 2009-12-09  Bruno Haible  <bruno@clisp.org>
22447
22448         * lib/fchdir.c: Update comment.
22449
22450 2009-12-09  Bruno Haible  <bruno@clisp.org>
22451
22452         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
22453
22454 2009-12-08  Eric Blake  <ebb9@byu.net>
22455
22456         fchdir: avoid memory leak on re-registration.
22457         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
22458
22459 2009-12-08  Jim Meyering  <meyering@redhat.com>
22460
22461         init.sh: avoid Solaris 10 /bin/sh portability problem
22462         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
22463         sourced script:
22464           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
22465           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
22466           bar
22467         tests/init.sh relied on that, accepting a --set-path=DIR argument,
22468         and two tests used that idiom.
22469         * tests/init.sh: Update suggested usage comments.
22470         (path_prepend_): New function, to be used in place
22471         of the --src-path=DIR option.
22472         (setup_): Move PATH-prepending code into path_prepend_.
22473         * tests/test-pread.sh: Adapt to new usage.
22474         * tests/test-xalloc-die.sh: Likewise.
22475
22476 2009-12-08  Simon Josefsson  <simon@josefsson.org>
22477
22478         * doc/gnulib.texi (Glibc pty.h): Add.
22479         * doc/glibc-functions/forkpty.texi: Add.
22480         * doc/glibc-functions/openpty.texi: Add.
22481         Suggested by Bruno Haible.
22482
22483 2009-12-08  Eric Blake  <ebb9@byu.net>
22484
22485         fchdir: fix logic bugs
22486         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
22487         * tests/test-fchdir.c (main): Enhance test.
22488         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
22489         is in use.
22490
22491         dup2: fix logic bugs
22492         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
22493         REPLACE_DUP2 to decide when rpl_dup2 is needed.
22494         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
22495         exists.
22496         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
22497
22498 2009-12-07  Eric Blake  <ebb9@byu.net>
22499
22500         unlink: fix m4 detection
22501         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
22502
22503         unistd-safer: add unit test
22504         * modules/unistd-safer-tests: New file.
22505         * tests/test-dup-safer.c: Likewise.
22506         * tests/test-cloexec.c (setmode): Avoid compiler warning.
22507         * tests/test-dup2.c (setmode): Likewise.
22508         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
22509
22510         cloexec: preserve text vs. binary across dup_cloexec
22511         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
22512         mode.
22513         * modules/dup2-tests (Depends-on): Add binary-io.
22514         * modules/cloexec-tests (Depends-on): Likewise.
22515         * tests/test-dup2.c (setmode, is_mode): New helpers.
22516         (main): Add tests that translation mode is preserved.
22517         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
22518         Reported by Bruno Haible.
22519
22520         mgetgroups: reduce duplicate listings
22521         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
22522         resulting array.
22523         * tests/test-chown.h (test_chown): Simplify client.
22524         * tests/test-lchown.h (test_lchown): Likewise.
22525
22526 2009-12-06  Bruno Haible  <bruno@clisp.org>
22527
22528         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
22529         value.
22530
22531 2009-12-06  Bruno Haible  <bruno@clisp.org>
22532
22533         * lib/progname.c: Include stdio.h, stdlib.h.
22534         (set_program_name): Reject a NULL argument.
22535
22536 2009-12-05  Eric Blake  <ebb9@byu.net>
22537
22538         pipe2-safer: new module
22539         * modules/pipe2-safer: New file.
22540         * lib/unistd-safer.h (pipe2_safer): New prototype.
22541         * lib/unistd--.h (pipe2): New wrapper.
22542         * lib/pipe-safer.c (pipe2_safer): New function.
22543         * modules/pipe (Depends-on): Add pipe2-safer.
22544         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
22545
22546         stdlib-safer: preserve cloexec flag for mkostemp[s]
22547         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
22548         fd_safer_flag.
22549
22550         unistd-safer: allow preservation of cloexec status via flag
22551         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
22552         prototypes.
22553         * lib/dup-safer.c (dup_safer_flag): New function.
22554         * lib/fd-safer.c (fd_safer_flag): Likewise.
22555         * modules/cloexec (configure.ac): Set witness.
22556
22557         test-dup2: enhance test
22558         * modules/dup2-tests (Depends-on): Add cloexec.
22559         * tests/test-dup2.c (main): Enhance test.
22560
22561         cloexec: add dup_cloexec
22562         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
22563         header and comments.
22564         * lib/cloexec.c (set_cloexec_flag): Add comments.
22565         (dup_cloexec): New function, with mingw implementation borrowed
22566         from...
22567         * lib/w32spawn.h (dup_noinherit): ...here.
22568         * modules/execute (Depends-on): Add cloexec.
22569         * modules/pipe (Depends-on): Likewise.
22570         * modules/cloexec (Depends-on): Add dup2.
22571         * modules/cloexec-tests (Files): New file.
22572         * tests/test-cloexec.c: Likewise.
22573
22574         test-xalloc-die: fix test for mingw
22575         * modules/xalloc-die-tests (Files): Add tests/init.sh.
22576         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
22577         directory and .exe suffix off argv[0] output.
22578
22579         test-fseeko: fix test for mingw
22580         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
22581         than undefining fseek, so test will pass on mingw.
22582
22583 2009-12-05  Bruno Haible  <bruno@clisp.org>
22584
22585         * lib/progname.h (set_program_name): Clarify specification.
22586         * lib/progname.c (set_program_name): Likewise.
22587         Reported by Jim Meyering.
22588
22589 2009-12-05  Jim Meyering  <meyering@redhat.com>
22590
22591         maint.mk: backslash-escape parens in default regexp
22592         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
22593         backslash-escape the literal parentheses.
22594
22595         maint.mk: news-date-check: use grep -E
22596         * top/maint.mk (today): Define a Make variable, not a...
22597         (news-date-check): ...shell variable.
22598         (news-date-regexp): Use the Make variable.
22599         Use grep's -E option.  Change the failing diagnostic to mention
22600         the variable, $(news-date-regexp).
22601
22602 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
22603
22604         maintainer-makefile: allow customization of NEWS entry format
22605         * top/maint.mk (news-date-regexp): New overridable variable.
22606         (news-date-check): Use it.
22607
22608 2009-12-04  Eric Blake  <ebb9@byu.net>
22609
22610         mgetgroups: add xgetgroups, and avoid ENOSYS failures
22611         * lib/mgetgroups.h (xgetgroups): New prototype.
22612         * lib/mgetgroups.c (xgetgroups): New wrapper.
22613         (mgetgroups): Handle ENOSYS.
22614         * modules/mgetgroups (Depends-on): Add realloc.
22615         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
22616
22617         mgetgroups: avoid argument promotion issues with -1
22618         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
22619         for invalid gid_t.
22620         * tests/test-chown.h (getegid, test_chown): Likewise.
22621         * tests/test-lchown.h (getegid, test_lchown): Likewise.
22622
22623 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
22624
22625         exclude: Fix header file problems.
22626         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
22627
22628 2009-12-01  Jim Meyering  <meyering@redhat.com>
22629
22630         fts: fts_open: do not let an empty string cause immediate failure
22631         This is required in support of GNU rm, for which the command
22632         "rm A '' B" must process and remove both A and B, in spite of
22633         the empty string argument.
22634         * lib/fts.c (fts_open): Do not let the presence of an empty string
22635         cause fts_open to fail immediately.  Most fts-using tools must be
22636         able to process all arguments, in order, and can be expected to
22637         diagnose such arguments themselves.
22638
22639 2009-11-30  Eric Blake  <ebb9@byu.net>
22640
22641         utimens: fix compilation error
22642         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
22643         Declare variable at right scope.
22644
22645 2009-11-29  Jim Meyering  <meyering@redhat.com>
22646
22647         bootstrap: handle perl-5.11's changed --version output
22648         * build-aux/bootstrap (get_version): Handle perl separately,
22649         since perl-5.11's --version output is different.
22650
22651 2009-11-28  Jim Meyering  <meyering@redhat.com>
22652
22653         userspec: depend on the inttostr module, too
22654         * modules/userspec (Depends-on): Add inttostr.
22655
22656         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
22657         * lib/userspec.c (parse_with_separator): Do not accept a user ID
22658         number of MAXUID when it evaluates to (uid_t) -1.
22659         Likewise for group ID.  Reported by Matt McCutchen in
22660         <http://savannah.gnu.org/bugs/?28113>
22661
22662         userspec: reformat to use spaces, not TABs
22663         * lib/userspec.c: Expand TABs to spaces.
22664         Add Emacs' "indent-tabs-mode: nil" hint.
22665
22666 2009-11-27  Eric Blake  <ebb9@byu.net>
22667
22668         getopt-gnu: flush out another BSD bug
22669         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
22670         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
22671         flush out BSD bug.
22672         * tests/test-getopt.h (test_getopt): End lists with NULL.
22673         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22674         (test_getopt_long_posix): Enhance test.
22675         * modules/getopt-posix-tests (Depends-on): Add stdbool.
22676         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
22677         getopt-gnu.
22678         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22679         Likewise.
22680
22681 2009-11-27  Simon Josefsson  <simon@josefsson.org>
22682
22683         * modules/idpriv-droptemp-tests (Notice): Fix text.
22684
22685 2009-11-27  Jim Meyering  <meyering@redhat.com>
22686
22687         test-xalloc-die: avoid spurious failure due to libtool argv difference
22688         In a libtool-enabled project, this test would fail due to a difference
22689         in the emitted program name, e.g.,
22690         -test-xalloc-die: memory exhausted
22691         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
22692         Use program to avoid that.
22693         * modules/xalloc-die-tests (Depends-on): Add progname.
22694         * tests/test-xalloc-die.c: Include progname.h".
22695         (program_name): Remove decl.
22696         (main): Call set_program_name.
22697         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
22698
22699 2009-11-26  Richard Jones  <rjones@redhat.com>
22700
22701         w32sock: leave win32 error in place.
22702         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
22703
22704 2009-11-26  Eric Blake  <ebb9@byu.net>
22705
22706         init.sh: suggest to use skip_ and fail_ functions in comments
22707         * tests/init.sh: Add a sentence.
22708
22709 2009-11-25  Bruno Haible  <bruno@clisp.org>
22710
22711         init.sh: add documentation in comments
22712         * tests/init.sh: Add some developer and user documentation.
22713
22714 2009-11-26  Jim Meyering  <meyering@redhat.com>
22715
22716         init.sh: accommodate even those who specify bogus srcdir manually
22717         * tests/init.sh: Normally, srcdir is guaranteed by automake and
22718         configure-time tests to be sanitized, so that there is no need to
22719         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
22720         (with no double quotes) suffices.  However, since tests may be
22721         invoked manually, and since you may explicitly set srcdir to the
22722         name of a directory containing spaces, do quote its uses here.
22723         * tests/test-pread.sh: Likewise.
22724         Suggested by Bruno Haible.
22725
22726         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
22727         * tests/test-pread.sh: Write no data into the pipe, because
22728         test-pread actually reads none.  This avoids a diagnostic,
22729         "bash: echo: write error: Broken pipe", that arises in the unusual
22730         event something is ignoring SIGPIPE, and might be interpreted
22731         as some sort of failure.  Reported by Bruno Haible.
22732
22733 2009-11-25  Jim Meyering  <meyering@redhat.com>
22734
22735         test-pread: cover failure with ESPIPE and EINVAL
22736         * tests/test-pread.c (main): Test for failure, too.
22737         * tests/test-pread.sh: Invoke with stdin on a pipe.
22738         Suggested by Eric Blake.
22739
22740         pread: improvement and fix
22741         * modules/pread (Depends-on): Depend on lseek, for portability to
22742         e.g., mingw.  Suggested by Eric Blake.
22743         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
22744
22745         unistd.in.h: correct declaration of pread
22746         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
22747         Reported by Richard W.M. Jones.
22748
22749         test-pread.sh: distribute the test script
22750         * modules/pread-tests (Files): Include test-pread.sh.
22751
22752         test-pread.sh: clean up
22753         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
22754         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
22755         That is unnecessary, since it's always ".".
22756         Suggestion from Eric Blake.
22757
22758         test-pread.sh: make executable
22759         * tests/test-pread.sh: Set executable bit.
22760         Reported by Eric Blake.
22761
22762         correct typo in test-pread.sh
22763         * tests/test-pread.sh: Add #! line.
22764
22765         test pread
22766         * tests/test-pread.c: New file.
22767         * tests/test-pread.sh: Likewise.
22768         * modules/pread-tests: Likewise.
22769
22770         pread: new module
22771         * modules/pread: New file.
22772         * lib/unistd.in.h (pread): Define/declare.
22773         * lib/pread.c (pread): New file.
22774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
22775         * modules/unistd (Makefile.am): Substitute witnesses.
22776         * doc/posix-functions/pread.texi (pread): Update.
22777         * MODULES.html.sh: Add pread.
22778
22779 2009-11-25  Jim Meyering  <meyering@redhat.com>
22780
22781         tests/init.sh: new file to be used via most *.sh tests
22782         * tests/init.sh: New file.
22783
22784 2009-11-25  Eric Blake  <ebb9@byu.net>
22785
22786         utimens: work around older Linux failure with symlinks
22787         * lib/utimens.c (lutimensat_works_really): New variable.
22788         (fdutimens, lutimens): Use it to manage kernels that support
22789         nanosecond times on files, but not on symlinks.
22790         Reported by OndÅ™ej Vašík.
22791
22792         utimes: fix configure grammar
22793         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
22794
22795 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
22796
22797         regex: Fix fastmap for multibyte character ranges.
22798         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
22799         characters when a multibyte character range is included.
22800
22801 2009-11-22  Andy Wingo  <wingo@pobox.com>
22802
22803         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
22804         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
22805
22806 2009-11-24  Bruno Haible  <bruno@clisp.org>
22807
22808         doc: Most *_l functions exist in MacOS X 10.5.
22809         * doc/posix-functions/duplocale.texi: Update platforms list.
22810         * doc/posix-functions/freelocale.texi: Likewise.
22811         * doc/posix-functions/newlocale.texi: Likewise.
22812         * doc/posix-functions/uselocale.texi: Likewise.
22813         * doc/posix-functions/isalnum_l.texi: Likewise.
22814         * doc/posix-functions/isalpha_l.texi: Likewise.
22815         * doc/posix-functions/isblank_l.texi: Likewise.
22816         * doc/posix-functions/iscntrl_l.texi: Likewise.
22817         * doc/posix-functions/isdigit_l.texi: Likewise.
22818         * doc/posix-functions/isgraph_l.texi: Likewise.
22819         * doc/posix-functions/islower_l.texi: Likewise.
22820         * doc/posix-functions/isprint_l.texi: Likewise.
22821         * doc/posix-functions/ispunct_l.texi: Likewise.
22822         * doc/posix-functions/isspace_l.texi: Likewise.
22823         * doc/posix-functions/isupper_l.texi: Likewise.
22824         * doc/posix-functions/iswalnum_l.texi: Likewise.
22825         * doc/posix-functions/iswalpha_l.texi: Likewise.
22826         * doc/posix-functions/iswblank_l.texi: Likewise.
22827         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22828         * doc/posix-functions/iswctype_l.texi: Likewise.
22829         * doc/posix-functions/iswdigit_l.texi: Likewise.
22830         * doc/posix-functions/iswgraph_l.texi: Likewise.
22831         * doc/posix-functions/iswlower_l.texi: Likewise.
22832         * doc/posix-functions/iswprint_l.texi: Likewise.
22833         * doc/posix-functions/iswpunct_l.texi: Likewise.
22834         * doc/posix-functions/iswspace_l.texi: Likewise.
22835         * doc/posix-functions/iswupper_l.texi: Likewise.
22836         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22837         * doc/posix-functions/isxdigit_l.texi: Likewise.
22838         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
22839         * doc/posix-functions/strcasecmp_l.texi: Likewise.
22840         * doc/posix-functions/strcoll_l.texi: Likewise.
22841         * doc/posix-functions/strfmon_l.texi: Likewise.
22842         * doc/posix-functions/strftime_l.texi: Likewise.
22843         * doc/posix-functions/strncasecmp_l.texi: Likewise.
22844         * doc/posix-functions/strxfrm_l.texi: Likewise.
22845         * doc/posix-functions/tolower_l.texi: Likewise.
22846         * doc/posix-functions/toupper_l.texi: Likewise.
22847         * doc/posix-functions/towctrans_l.texi: Likewise.
22848         * doc/posix-functions/towlower_l.texi: Likewise.
22849         * doc/posix-functions/towupper_l.texi: Likewise.
22850         * doc/posix-functions/wcscoll_l.texi: Likewise.
22851         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22852         * doc/posix-functions/wctrans_l.texi: Likewise.
22853         * doc/posix-functions/wctype_l.texi: Likewise.
22854         * doc/glibc-functions/strptime_l.texi: Likewise.
22855         * doc/glibc-functions/strtod_l.texi: Likewise.
22856         * doc/glibc-functions/strtof_l.texi: Likewise.
22857         * doc/glibc-functions/strtol_l.texi: Likewise.
22858         * doc/glibc-functions/strtold_l.texi: Likewise.
22859         * doc/glibc-functions/strtoll_l.texi: Likewise.
22860         * doc/glibc-functions/strtoul_l.texi: Likewise.
22861         * doc/glibc-functions/strtoull_l.texi: Likewise.
22862         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22863         * doc/glibc-functions/wcstod_l.texi: Likewise.
22864         * doc/glibc-functions/wcstof_l.texi: Likewise.
22865         * doc/glibc-functions/wcstol_l.texi: Likewise.
22866         * doc/glibc-functions/wcstold_l.texi: Likewise.
22867         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22868         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22869         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22870
22871 2009-11-24  Bruno Haible  <bruno@clisp.org>
22872
22873         duplocale: Fix logic bug.
22874         * lib/duplocale.c: Don't include <langinfo.h>.
22875         (_NL_LOCALE_NAME): Remove macro.
22876         (rpl_duplocale): Use setlocale instead of nl_langinfo.
22877         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
22878
22879 2009-11-23  Jim Meyering  <meyering@redhat.com>
22880
22881         test-update-copyright: don't hard-code /usr/bin/perl
22882         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
22883         perl to print the current year.  Gilles Espinasse reported that
22884         the replaced use of perl was hard-coded as /usr/bin/perl.
22885
22886 2009-11-23  Bruno Haible  <bruno@clisp.org>
22887
22888         duplocale: Add support for glibc 2.3.x.
22889         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
22890
22891 2009-11-22  Bruno Haible  <bruno@clisp.org>
22892
22893         vasnprintf: Tiny optimization.
22894         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
22895         MacOS X.
22896
22897 2009-11-22  Bruno Haible  <bruno@clisp.org>
22898
22899         Tests for module 'duplocale'.
22900         * modules/duplocale-tests: New file.
22901         * tests/test-duplocale.c: New file.
22902
22903         New module 'duplocale'.
22904         * m4/duplocale.m4: New file.
22905         * lib/locale.in.h (duplocale): New declaration.
22906         * lib/duplocale.c: New file.
22907         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
22908         gl_LOCALE_H_DEFAULTS): New macros.
22909         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
22910         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
22911         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
22912         REPLACE_DUPLOCALE.
22913         * modules/duplocale: New file.
22914         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
22915
22916 2009-11-22  Bruno Haible  <bruno@clisp.org>
22917
22918         * modules/locale-tests (configure.ac): Test for newlocale function.
22919         * tests/test-locale.c: When the system has extended locale functions,
22920         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
22921
22922         locale: Make locale_t available when possible.
22923         * lib/locale.in.h: Include <xlocale.h> when it exists.
22924         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
22925         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
22926         * modules/locale (Depends-on): Add extensions.
22927         (Makefile.am): Also substitute HAVE_XLOCALE_H.
22928         * doc/posix-headers/locale.texi: Document the problem with locale_t.
22929
22930 2009-11-22  Bruno Haible  <bruno@clisp.org>
22931
22932         Add comments.
22933         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
22934         invocation.
22935         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
22936         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22937         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22938
22939 2009-11-22  Bruno Haible  <bruno@clisp.org>
22940
22941         error: account for the possibility of freopen (stdout).
22942         * lib/error.c: Include <unistd.h>.
22943         (flush_stdout): New function, extracted from error and error_at_line.
22944         Determine stdout's fd dynamically.
22945         (error, error_at_line): Invoke flush_stdout.
22946         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
22947         * modules/error (Depends-on): Add unistd.
22948
22949 2009-11-22  Bruno Haible  <bruno@clisp.org>
22950
22951         diffseq: Add comment.
22952         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
22953
22954 2009-11-22  Jim Meyering  <meyering@redhat.com>
22955
22956         c-stack: avoid defining an unused static function
22957         * lib/c-stack.c (find_stack_direction): Do not define this function
22958         when it will not be used.
22959
22960         diffseq: avoid spurious gcc warnings
22961         * lib/diffseq.h (IF_LINT2): Define.
22962         (compareseq): Use it to initialize two members of "part".
22963         This avoids two used-uninitialized warnings.
22964
22965 2009-11-21  Jim Meyering  <meyering@redhat.com>
22966
22967         c-stack: avoid "ignoring return value of `write'" warning
22968         * lib/c-stack.c: Include "ignore-value.h".
22969         (die): Explicitly ignore each write return value.
22970         * modules/c-stack (Depends-on): Add ignore-value.
22971
22972 2009-11-21  Bruno Haible  <bruno@clisp.org>
22973
22974         diffseq: reduce scope of variable 'best'.
22975         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
22976         variable, earlier used for two different purposes.
22977
22978 2009-11-21  Jim Meyering  <meyering@redhat.com>
22979
22980         diffseq: remove useless assignment to "best"
22981         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
22982         assignment.  At that point "best" is already guaranteed to be zero.
22983
22984 2009-11-20  Eric Blake  <ebb9@byu.net>
22985
22986         build: mention ftp redirector in release announcements
22987         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
22988         values that used to come from cfg.mk; mention FTP redirect URL.
22989         * build-aux/announce-gen: Mention the mirror list.
22990         Suggested by Karl Berry.
22991
22992         nanosleep: improve port to mingw
22993         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
22994         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
22995         LIB_NANOSLEEP, but only when needed.
22996         * modules/select (Link): Document LIBSOCKET.
22997         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
22998         enough.
22999
23000         nanosleep: work around cygwin bug
23001         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
23002         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
23003         bug.
23004         (getnow): Delete, not needed.
23005         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
23006         LIB_CLOCK_GETTIME.
23007         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
23008         clock-time, gettime.
23009         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
23010         bug.
23011         * modules/nanosleep-tests: New test.
23012         * tests/test-nanosleep.c: New file.
23013
23014         sleep: work around cygwin bug
23015         * lib/sleep.c (rpl_sleep): Work around the bug.
23016         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
23017         (gl_PREREQ_SLEEP): Delete unused macro.
23018         * modules/sleep (Depends-on): Add verify.
23019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23020         * modules/unistd (Makefile.am): Substitute witness.
23021         * lib/unistd.in.h (sleep): Update prototype.
23022         * doc/posix-functions/sleep.texi (sleep): Document the bug.
23023         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
23024         * modules/sleep-tests (Depends-on): Check for alarm.
23025
23026 2009-11-20  Jim Meyering  <meyering@redhat.com>
23027
23028         maint.mk: improve sc_prohibit_magic_number_exit
23029         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
23030         so it does not match uses like System.exit(1).
23031         Add comments showing how to correct all offenders.
23032
23033 2009-11-19  Eric Blake  <ebb9@byu.net>
23034
23035         xalloc-die-tests: add missing library
23036         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
23037
23038         test-xvasprintf: silence compiler warnings
23039         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
23040         empty string from gcc.
23041
23042 2009-11-19  Jim Meyering  <meyering@redhat.com>
23043
23044         xfreopen: new module, from coreutils
23045         * modules/xfreopen: New module.
23046         * lib/xfreopen.c: New file.
23047         * lib/xfreopen.h: New file.
23048         * MODULES.html.sh (File stream based Input/Output"): Add it.
23049
23050 2009-11-19  Eric Blake  <ebb9@byu.net>
23051
23052         manywarnings: depend on warnings
23053         * modules/manywarnings (Depends-on): Add warnings.
23054
23055         build: avoid compiler warnings
23056         * lib/select.c (rpl_select): Delete unused variable.
23057         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
23058
23059 2009-11-18  Eric Blake  <ebb9@byu.net>
23060
23061         tests: avoid false negative with --with-packager
23062         * tests/test-version-etc.sh: Discard packager information.
23063         * tests/test-argp-version-etc-1.sh: Likewise.
23064         Reported by Mike Frysinger.
23065
23066         utimens: fix regression on Solaris
23067         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
23068         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
23069         can only change fd timestamps via futimesat.  Instead, use an
23070         additional witness macro to avoid BSD bug.
23071         Reported by Jim Meyering.
23072
23073 2009-11-17  Eric Blake  <ebb9@byu.net>
23074
23075         usleep: use it to simplify tests
23076         * modules/stat-time-tests (Depends-on): Add usleep.
23077         (configure.ac): Drop usleep check.
23078         * modules/chown-tests (Depends-on, configure.ac): Likewise.
23079         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
23080         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
23081         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
23082         * modules/openat-tests (Depends-on, configure.ac): Likewise.
23083         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
23084         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
23085         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
23086         Likewise.
23087         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
23088         * tests/test-lchown.h (nap): Likewise.
23089         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
23090         * tests/test-stat-time.c (nap): Likewise.
23091         * tests/test-utimens-common.h (nap): Update comments.
23092
23093         usleep: new module
23094         * modules/usleep: New file.
23095         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23096         * lib/usleep.c (usleep): Likewise.
23097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23098         * modules/unistd (Makefile.am): Substitute witnesses.
23099         * lib/unistd.in.h (usleep): Add declaration.
23100         * doc/pastposix-functions/usleep.texi (usleep): Document this.
23101         * MODULES.html.sh (Date and time): Likewise.
23102         * modules/usleep-tests (Depends-on): New test.
23103         * tests/test-usleep.c: New file.
23104
23105         chown: work around OpenBSD bug
23106         * lib/chown.c (rpl_chown): Work around the bug.
23107         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
23108         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
23109         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
23110         * modules/chown (Depends-on): Add stdbool.
23111         * modules/lchown (Depends-on): Likewise.
23112         * doc/posix-functions/chown.texi (chown): Document the bug.
23113         * doc/posix-functions/lchown.texi (lchown): Likewise.
23114         * tests/test-lchown.h (test_chown): Relax test.
23115
23116         mkstemp: avoid conflict with C++ keyword template
23117         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
23118         * lib/mkostemp.c (mkostemp): Likewise.
23119         * lib/mkostemps.c (mkostemps): Likewise.
23120         * lib/mkstemp.c (mkstemp): Likewise.
23121         * lib/mkstemps.c (mkstemps): Likewise.
23122
23123         xalloc-die-tests: optimize
23124         * tests/test-xalloc-die.sh: Reduce number of processes.
23125
23126 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23127
23128         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
23129         patch from ludo@gnu.org (Ludovic Courtès).
23130
23131 2009-11-17  Jim Meyering  <meyering@redhat.com>
23132
23133         version-etc: use proper license string
23134         * modules/version-etc (License): Use LGPL, not LGPLv3+.
23135         * modules/version-etc-fsf: Likewise.
23136
23137 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23138
23139         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
23140         printed to stdout.  Deal with EOL differences.
23141
23142 2009-11-17  Eric Blake  <ebb9@byu.net>
23143
23144         unsetenv: work around Solaris bug
23145         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
23146         * lib/unsetenv.c (rpl_unsetenv): Work around it.
23147         Reported by Jim Meyering.
23148
23149         vasnprintf: avoid compiler warnings
23150         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
23151         variables.
23152         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
23153
23154 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23155
23156         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
23157         settings since xalloc-die is no longer the self test,
23158         xalloc-die.sh is.
23159
23160 2009-11-17  Jim Meyering  <meyering@redhat.com>
23161
23162         test-xalloc-die.sh: make the code agree with the commit log
23163         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
23164         at the end, just in case you happen to have a test-xalloc-die
23165         program in some other PATH directory.
23166
23167         test-xalloc-die.sh: fix a portability bug
23168         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
23169         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
23170         Otherwise, argv[0] (as often seen in diagnostics) would be too
23171         system-dependent, sometimes with, and sometimes without the leading "./".
23172
23173         version-etc-fsf: relax license to LGPLv3+
23174         * modules/version-etc-fsf (License): Relax license.
23175
23176 2009-11-16  Eric Blake  <ebb9@byu.net>
23177
23178         xalloc-die-tests: avoid printing null pointer
23179         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
23180         shell script.
23181         * tests/test-xalloc-die.c (program_name): Declare.
23182         * tests/test-xalloc-die.sh (tmpfiles): New file.
23183
23184         setenv, unsetenv: work around various bugs
23185         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
23186         (setenv) [HAVE_SETENV]: Work around bugs.
23187         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
23188         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
23189         for bugs.
23190         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
23191         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
23192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
23193         * modules/stdlib (Makefile.am): Update substitutions.
23194         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
23195         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
23196         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23197         * modules/setenv-tests: New test.
23198         * modules/unsetenv-tests: Likewise.
23199         * tests/test-setenv.c: New file.
23200         * tests/test-unsetenv.c: Likewise.
23201
23202 2009-11-16  Jim Meyering  <meyering@redhat.com>
23203
23204         version-etc: relax license to LGPLv3+
23205         * modules/version-etc (License): Relax license.
23206
23207         better AC_REQUIRE expanded-before-required-warning avoidance
23208         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
23209         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
23210         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
23211         which is no longer needed.
23212
23213 2009-11-16  Eric Blake  <ebb9@byu.net>
23214
23215         test-freading: clean up temporary file
23216         * tests/test-freading.c (main): Remove file on success, and use
23217         ASSERT more liberally.
23218         Reported by Jim Meyering.
23219
23220 2009-11-16  Jim Meyering  <meyering@redhat.com>
23221
23222         avoid new AC_REQUIRE expanded-before-required warnings
23223         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
23224         merely using it.
23225         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
23226         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
23227
23228 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23229
23230         * tests/test-xalloc-die.c: New file.
23231         * modules/xalloc-die-tests: New file.
23232         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
23233         XFAIL_TESTS so it can be appended by modules.
23234
23235 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23236
23237         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
23238         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
23239
23240 2009-11-14  Eric Blake  <ebb9@byu.net>
23241
23242         fnmatch: avoid compiler warning
23243         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
23244         to silence compiler warning about mismatch signedness in ?:.
23245         Reported by Robert Millan.
23246
23247         intprops: add double-inclusion guard
23248         * lib/intprops.h: Allow idempotent includes.
23249         Suggested by Bruce Korb.
23250
23251         openat: detect Solaris fchownat bug
23252         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
23253         penalizing glibc chownat when only lchownat is broken.
23254         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
23255         trailing slash bugs.
23256         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
23257         * modules/openat-tests (Files): Include more files.
23258         (Depends-on): Add mgetgroups, sleep, stat-time.
23259         (configure.ac): Add additional checks.
23260         (Makefile.am): Build new test.
23261         * tests/test-fchownat.c: New file.
23262
23263         lchown: detect Solaris and FreeBSD bug
23264         * lib/lchown.c (rpl_lchown): Work around bug.
23265         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
23266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23267         * modules/unistd (Makefile.am): Populate it.
23268         * lib/unistd.in.h (lchown): Update declaration.
23269         * doc/posix-functions/lchown.texi (lchown): Document the bug.
23270         * modules/lchown-tests: New file.
23271         * tests/test-lchown.h (test_lchown): Likewise.
23272         * tests/test-lchown.c (main): Likewise.
23273
23274         chown: detect Solaris and FreeBSD bug
23275         * lib/chown.c (rpl_chown): Work around bug.
23276         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
23277         (gl_PREREQ_CHOWN): Delete.
23278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23279         * modules/unistd (Makefile.am): Populate it.
23280         * lib/unistd.in.h (chown): Update declaration.
23281         * lib/lchown.c (chown): Update client.
23282         * modules/lchown (Depends-on): Add lstat.
23283         * doc/posix-functions/chown.texi (chown): Document the bug.
23284         * doc/posix-functions/getgroups.texi (getgroups): Document
23285         getgroups pitfall.
23286         * modules/chown-tests: New file.
23287         * tests/test-chown.h (test_chown): Likewise.
23288         * tests/test-chown.c (main): Likewise.
23289
23290 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
23291
23292         gnulib-tool: correctly detect absence of m4 directories
23293         * gnulib-tool: Avoid extra newline on data passed to wc -l.
23294
23295 2009-11-14  Jim Meyering  <meyering@redhat.com>
23296
23297         maint.mk: Prohibit inclusion of "xalloc.h" without use.
23298         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23299
23300 2009-11-14  John W. Eaton  <jwe@gnu.org>
23301
23302         strftime.h: wrap funtion declaration in extern "C" block
23303         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
23304
23305 2009-11-13  Eric Blake  <ebb9@byu.net>
23306
23307         getgroups: avoid compiler warning
23308         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
23309
23310         getgroups: work around FreeBSD bug
23311         * lib/getgroups.c (rpl_getgroups): Work around the bug.
23312         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
23313         * doc/posix-functions/getgroups.texi (getgroups): Document it.
23314         * tests/test-getgroups.c (main): Fix buffer overrun.
23315
23316         getgroups: avoid compilation failure
23317         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
23318         * modules/getgroups (Depends-on): Add stdint.
23319
23320 2009-11-13  Jim Meyering  <meyering@redhat.com>
23321
23322         test-getgroups: avoid compilation failure
23323         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
23324
23325 2009-11-13  Eric Blake  <ebb9@byu.net>
23326
23327         mgetgroups: new module, taken from coreutils
23328         * modules/mgetgroups: New file.
23329         * lib/mgetgroups.h: Likewise.
23330         * lib/mgetgroups.c (mgetgroups): Likewise.
23331         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
23332         * MODULES.html.sh (Users and groups): Mention it.
23333
23334         getgroups: don't expose GETGROUPS_T to user
23335         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
23336         an element at a time if GETGROUPS_T is wrong size.
23337         * lib/getugroups.h (getugroups): Change signature.
23338         * lib/unistd.in.h (getgroups): Likewise.
23339         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
23340         signature needs fixing.
23341         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
23342         AC_TYPE_GETGROUPS.
23343         * modules/group-member (Depends-on): Add getgroups.
23344         * lib/group-member.c (group_info, get_group_info): Use gid_t.
23345         (group_member): Rely on getgroups replacement.
23346         * lib/getugroups.c (getugroups): Use gid_t.
23347         * tests/test-getgroups.c (main): Likewise.
23348         * NEWS: Mention the signature change.
23349         * doc/posix-functions/getgroups.texi (getgroups): Mention the
23350         problem with signature.
23351         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
23352         GETGROUPS_T is still useful for setgroups.
23353
23354         getgroups, getugroups: provide stubs for mingw
23355         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
23356         * lib/getugroups.c (getugroups): Likewise.
23357         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
23358         function.  Modernize replacement scheme.
23359         (gl_PREREQ_GETGROUPS): Delete.
23360         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
23361         * modules/getgroups (configure.ac): Declare witness.
23362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23363         * modules/unistd (Depends-on): Substitute witness.
23364         * lib/unistd.in.h (getgroups): Declare replacement.
23365
23366         getgroups: avoid calling exit
23367         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
23368         drop xalloc.
23369         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
23370         dependencies.
23371         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
23372         exiting, in the rare case of malloc failure.
23373
23374         getgroups: fix logic error
23375         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
23376         has more than 20 groups.
23377         * modules/getgroups-tests: New test.
23378         * tests/test-getgroups.c: New file.
23379
23380 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23381
23382         * tests/test-base64.c: Improve.
23383
23384 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23385
23386         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
23387         Blake <ebb9@byu.net>.
23388
23389 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23390
23391         * tests/test-xvasprintf.c: Add %s%s related checks.
23392
23393 2009-11-12  Eric Blake  <ebb9@byu.net>
23394
23395         version-etc: match standards.texi style
23396         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
23397         and use <> only for URLs.
23398
23399 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
23400
23401         fts: do not fail on a submount during traversal
23402         * lib/fts.c (fts_build): Read the stat info again after opening
23403         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
23404         Original report at http://bugzilla.redhat.com/501848.
23405
23406 2009-11-12  Jim Meyering  <meyering@redhat.com>
23407
23408         bootstrap: sync from coreutils
23409         * build-aux/bootstrap (bootstrap_epilogue): New function.
23410         Use git_modules_config in one more place.  This make bootstrap's
23411         --gnulib-srcdir option more useful for testing.
23412
23413         bootstrap: generalize autoheader check
23414         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
23415         AC_CONFIG_HEADERS.
23416
23417 2009-11-11  Eric Blake  <ebb9@byu.net>
23418
23419         mkfifoat: use new modules for Solaris and BSD bugs
23420         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
23421         * lib/mkfifoat.c (mknodat): Split...
23422         * lib/mknodat.c (mknodat): ...into new file.
23423         * modules/mkfifoat (Files): Ship new file.
23424         (Depends-on): Add mkfifo, mknod.
23425         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
23426         (Depends-on): Add symlink.
23427         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
23428         redundant with test_mkfifo.h.
23429         (do_mkfifoat, do_mknodat): New helpers.
23430
23431         mknod: new module
23432         * modules/mknod: New file.
23433         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
23434         * lib/mknod.c (mknod): Likewise.
23435         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23436         defaults.
23437         * modules/sys_stat (Makefile.am): Substitute them.
23438         * lib/sys_stat.in.h (mknod): Declare replacement.
23439         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23440         Document it.
23441         * doc/posix-functions/mknod.texi (mknod): Likewise.
23442         * modules/mknod-tests: New test.
23443         * tests/test-mknod.c: Likewise.
23444
23445         mkfifo: new module
23446         * modules/mkfifo: New file.
23447         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23448         * lib/mkfifo.c (mkfifo): Likewise.
23449         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23450         defaults.
23451         * modules/sys_stat (Makefile.am): Substitute them.
23452         * lib/sys_stat.in.h (mkfifo): Declare replacement.
23453         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23454         Document it.
23455         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
23456         * modules/mkfifo-tests: New test.
23457         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
23458         from test-mkfifoat.c.
23459         * tests/test-mkfifo.c: New file.
23460
23461         readlink: detect FreeBSD bug
23462         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
23463         slash on symlink.
23464         * doc/posix-functions/readlink.texi (readlink): Document the bug.
23465         * tests/test-readlink.h (test_readlink): Enhance test.
23466
23467         symlink: detect FreeBSD bug
23468         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
23469         slash on symlink.
23470         * doc/posix-functions/symlink.texi (symlink): Document the bug.
23471         * tests/test-symlink.h (test_symlink): Enhance test.
23472
23473 2009-11-10  Eric Blake  <ebb9@byu.net>
23474
23475         link: detect FreeBSD bug
23476         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
23477         symlink.
23478         * doc/posix-functions/link.texi (link): Document the bug.
23479         * tests/test-link.h (test_link): Enhance test.
23480         * tests/test-linkat.c (main): Update caller.
23481
23482         unlink, remove: detect FreeBSD bug
23483         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
23484         slash on symlink.
23485         * doc/posix-functions/unlink.texi (unlink): Document the bug.
23486         * doc/posix-functions/remove.texi (remove): Likewise.
23487         * tests/test-unlink.h (test_unlink): Enhance test.
23488         * tests/test-remove.c (main): Likewise.
23489
23490 2009-11-09  Eric Blake  <ebb9@byu.net>
23491
23492         rename: detect FreeBSD bug
23493         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
23494         slash on symlink.
23495         * modules/renameat-tests (Depends-on): Add filenamecat.
23496         * tests/test-rename.h (test_rename): Allow one more errno.
23497         * tests/test-renameat.c (main): Likewise.
23498         * doc/posix-functions/rename.texi (rename): Document the bug.
23499
23500         open: detect FreeBSD bug
23501         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
23502         symlink.
23503         * doc/posix-functions/open.texi (open): Document the bug.
23504         * doc/posix-functions/utimes.texi (utimes): Likewise.
23505         * tests/test-open.h (test_open): Add parameters, and test symlink
23506         handling.
23507         * tests/test-open.c (main): Adjust caller.
23508         * tests/test-fcntl-safer.c (main): Likewise.
23509         * modules/open-tests (Depends-on): Add stdbool, symlink.
23510         * modules/fcntl-safer-tests (Depends-on): Likewise.
23511         * tests/test-openat.c (main): Add test-open tests.
23512
23513         stat: detect FreeBSD bug
23514         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
23515         symlink.
23516         * doc/posix-functions/stat.texi (stat): Document the bug.
23517         * tests/test-stat.h (test_stat_func): Add argument.
23518         * tests/test-stat.c (main): Adjust caller.
23519         * tests/test-fstatat.c (main): Likewise.
23520         * modules/stat-tests (Depends-on): Add stdbool, symlink.
23521         Reported by Jim Meyering.
23522
23523 2009-11-09  James Youngman  <jay@gnu.org>
23524
23525         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
23526         * lib/strftime.c: Correct placement of #include "ignore-value.h".
23527
23528 2009-11-08  Jim Meyering  <meyering@redhat.com>
23529
23530         utimens: remove invalid futimesat call
23531         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
23532         It used the file descriptor of the target file as the DIR_FD
23533         parameter and NULL as the file name.  That caused failure with
23534         errno == EFAULT on FreeBSD-8.0-rc2
23535
23536 2009-11-07  Eric Blake  <ebb9@byu.net>
23537
23538         fflush, freadseek: use fseeko, not fseek
23539         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
23540         (clear_ungetc_buffer): Avoid potential problems on large files.
23541         * lib/freadseek.c (freadseek): Likewise.
23542         * modules/freadseek (Depends-on): Add fseeko.
23543         * modules/fseek (configure.ac): Set a witness.
23544         * tests/test-fflush.c (main): Use fseeko.
23545         * tests/test-fpurge.c (fseek): Disable link warning.
23546         * tests/test-freadable.c (fseek): Likewise.
23547         * tests/test-freading.c (fseek): Likewise.
23548         * tests/test-fseeko.c (fseek): Likewise.
23549         * tests/test-ftell.c (fseek): Likewise.
23550         * tests/test-ftello.c (fseek): Likewise.
23551         * tests/test-fwritable.c (fseek): Likewise.
23552         * tests/test-fwriting.c (fseek): Likewise.
23553
23554 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23555
23556         * modules/memchr (Depends-on): Drop getpagesize dependency.
23557
23558 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23559
23560         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
23561         Reported by Ludovic Courtès.
23562         * build-aux/pmccabe2html: Improve example usage.
23563         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
23564
23565 2009-11-06  Jim Meyering  <meyering@redhat.com>
23566
23567         do-release-commit-and-tag: New module.
23568         Automate the release-commit and tag process.
23569         * build-aux/do-release-commit-and-tag: New script, from coreutils.
23570         * modules/do-release-commit-and-tag: New file.
23571         * MODULES.html.sh (Support for maintaining and releasing): Add it.
23572
23573 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23574
23575         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
23576         because test-select.c uses inet_pton.
23577
23578 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23579
23580         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
23581         GETADDRINFO_LIB.  Bump serial number.
23582         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
23583         Suggested by Eric Blake <ebb9@byu.net>.
23584
23585 2009-11-05  Eric Blake  <ebb9@byu.net>
23586
23587         strtod: detect darwin bug
23588         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
23589         Reported by Leo Davis.
23590
23591         freopen-safer: new module
23592         * modules/freopen-safer: New module.
23593         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
23594         * lib/freopen-safer.c (freopen_safer): New file.
23595         * lib/stdio-safer.h (freopen_safer): New declaration.
23596         * lib/stdio--.h (freopen): New override.
23597         * MODULES.html.sh (File stream based Input/Output): Mention it.
23598         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
23599         freopen-safer module.
23600         * doc/posix-functions/stderr.texi (stderr): Likewise.
23601         * doc/posix-functions/stdin.texi (stdin): Likewise.
23602         * doc/posix-functions/stdout.texi (stdout): Likewise.
23603         * modules/freopen-safer-tests: New test.
23604         * tests/test-reopen-safer.c: New file.
23605
23606 2009-11-05  Jim Meyering  <meyering@redhat.com>
23607
23608         maint.mk: Prohibit inclusion of "close-stream.h" without use.
23609         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23610
23611 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23612
23613         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
23614
23615 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23616
23617         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
23618
23619 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23620
23621         Fix link error.
23622         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23623         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23624
23625 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23626
23627         * tests/test-func.c: Also test value of __func__.
23628
23629 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23630
23631         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
23632         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
23633
23634 2009-11-05  Bruno Haible  <bruno@clisp.org>
23635
23636         Fix link error.
23637         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23638         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23639         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
23640
23641 2009-11-05  Bruno Haible  <bruno@clisp.org>
23642
23643         Tests for module 'inet_pton'.
23644         * modules/inet_pton-tests: New file.
23645         * tests/test-inet_pton.c: New file.
23646
23647 2009-11-05  Bruno Haible  <bruno@clisp.org>
23648
23649         Tests for module 'inet_ntop'.
23650         * modules/inet_ntop-tests: New file.
23651         * tests/test-inet_ntop.c: New file.
23652
23653 2009-11-04  Eric Blake  <ebb9@byu.net>
23654
23655         stdlib-safer: wrap all mkstemp variants
23656         * modules/mkostemp (configure.ac): Set witness.
23657         * modules/mkostemps (configure.ac): Likewise.
23658         * modules/mkstemps (configure.ac): Likewise.
23659         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
23660         (mkstemps_safer): Wrap more functions.
23661         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
23662         wrapping.
23663         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
23664         (mkstemps_safer): Implement the wrappers.
23665
23666         mkstemps, mkostemps: new modules
23667         * modules/mkostemps: New module.
23668         * modules/mkstemps: Likewise.
23669         * lib/mkostemps.c (mkostemps): New file.
23670         * lib/mkstemps.c (mkstemps): Likewise.
23671         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
23672         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
23673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
23674         * modules/stdlib (Makefile.am): Substitute them.
23675         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
23676         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
23677         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23678         * doc/gnulib.texi (Glibc stdlib.h): Include them.
23679         * MODULES.html.sh (File system functions): Mention them.
23680
23681         tempname: resync from glibc
23682         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
23683         same values for __GT_FILE as glibc.  Abort even when assertions
23684         are disabled.
23685         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
23686         match its value otherwise.  Allow idempotent inclusion.
23687         * lib/mkdtemp.c (mkdtemp): Adjust caller.
23688         * lib/mkostemp.c (mkostemp): Likewise.
23689         * lib/mkstemp.c (mkstemp): Likewise.
23690         * lib/tmpfile.c (tmpfile): Likewise.
23691         * NEWS: Document this.
23692
23693         utimens: fix use of futimens on older Linux
23694         * lib/utimens.c (fdutimens): Use updated, rather than original,
23695         timespec to avoid bug in older Linux kernel.
23696         Reported by Simon Josefsson.
23697
23698 2009-11-04  Bruno Haible  <bruno@clisp.org>
23699
23700         Make num_processors more flexible and consistent.
23701         * lib/nproc.h (enum nproc_query): New type.
23702         (num_processors): Add a 'query' argument.
23703         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
23704         (num_processors): Add a 'query' argument. Test the value of the
23705         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
23706         mingw, count the number of CPUs available for the current process.
23707         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
23708         Check for sched_getaffinity and sched_getaffinity_np.
23709         * modules/nproc (Depends-on): Add c-ctype, extensions.
23710         * NEWS: Mention the change.
23711
23712 2009-11-03  Bruno Haible  <bruno@clisp.org>
23713
23714         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
23715
23716 2009-11-03  Jim Meyering  <meyering@redhat.com>
23717
23718         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
23719         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
23720         if it is defined.
23721
23722 2009-11-02  Eric Blake  <ebb9@byu.net>
23723
23724         mktime, timegm: share common declaration
23725         * lib/mktime-internal.h: New file.
23726         * lib/mktime.c: Use it rather than open-coding a declaration.
23727         * lib/timegm.c: Likewise.
23728         * modules/mktime (Files): Ship it.
23729         * modules/timegm (Files): Likewise.
23730         Suggested by Bruno Haible.
23731
23732         test-update-copyright: update test to match script changes
23733         * tests/test-update-copyright.sh: Avoid hard-coding perl
23734         location.  Don't update *.bak created by earlier runs.
23735
23736 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23737             Simon Josefsson  <simon@josefsson.org>
23738             Bruno Haible  <bruno@clisp.org>
23739
23740         Fix link error on Solaris 8.
23741         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
23742         also in libnsl. Define also INET_PTON_LIB.
23743         * modules/inet_pton (Link): New section.
23744
23745 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23746             Bruno Haible  <bruno@clisp.org>
23747
23748         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
23749         * modules/inet_ntop (Link): New section.
23750         Reported by Boyan Kasarov <bkasarov@gmail.com>.
23751
23752 2009-11-02  Eric Blake  <ebb9@byu.net>
23753
23754         maint: avoid compiler warnings in m4 macros
23755         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
23756         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
23757
23758 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23759
23760         * m4/pmccabe2html.m4: Remove file.
23761         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
23762         function.  Change maintainer.
23763         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
23764         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
23765         Courtès).
23766
23767 2009-10-31  Eric Blake  <ebb9@byu.net>
23768
23769         fseeko: fix m4 regression
23770         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
23771         regression from 2009-10-27.
23772         Reported by Ralf Wildenhues.
23773
23774 2009-10-31  Jim Meyering  <meyering@redhat.com>
23775
23776         inttostr: aesthetics and improved (compile-time) safety
23777         Define inttype_is_signed rather than inttype_is_unsigned,
23778         since the sole use is via "#if inttype_is_signed".
23779         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
23780         inttype_is_unsigned.
23781         * lib/offtostr.c (inttype_is_signed): Likewise.
23782         * lib/uinttostr.c (inttype_is_signed): Likewise.
23783         * lib/umaxtostr.c (inttype_is_signed): Likewise.
23784         * lib/inttostr.c (inttostr): Use verify to cross-check the
23785         inttype_is_signed value and the signedness of the actual type.
23786         * modules/inttostr (Depends-on): Add verify.
23787
23788 2009-10-30  Eric Blake  <ebb9@byu.net>
23789
23790         build: avoid compiler warnings
23791         * lib/fchmodat.c (lchmod): Mark unused variables.
23792         * lib/getopt.c (_getopt_initialize): Likewise.
23793         * lib/mktime.c (__mktime_internal): Provide prototype.
23794         * lib/inttostr.c (inttostr): Avoid compiler warning even with
23795         older gcc that do not understand #pragma GCC diagnostic.
23796         * lib/uinttostr.c (inttype_is_unsigned): Define.
23797         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
23798
23799 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23800
23801         stat: fix compilation on AIX
23802         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
23803         only see struct stat64.
23804
23805 2009-10-30  Eric Blake  <ebb9@byu.net>
23806
23807         exclude: make more robust
23808         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
23809         rather than masking a coding bug.
23810         Suggested by Bruno Haible.
23811
23812 2009-10-30  Jim Meyering  <meyering@redhat.com>
23813
23814         perl scripts: remove #!/usr/bin/perl in favor of more portable...
23815         Rather than putting #!/usr/bin/perl on the first line,
23816         start with a variant of what's recommended by "man perlrun" that
23817         invokes the first "perl" program from your shell's search path.
23818         * build-aux/gitlog-to-changelog: Replace #!... as above.
23819         Add a "Local Variables" perl mode setting.
23820         Prompted by a patch from Ludovic Courtès.
23821         Improved by Eric Blake.
23822         * build-aux/useless-if-before-free: Likewise.
23823         * build-aux/announce-gen: Likewise.
23824         * build-aux/update-copyright: Likewise.
23825
23826 2009-10-29  Eric Blake  <ebb9@byu.net>
23827
23828         filenamecat-lgpl: adjust clients
23829         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
23830         filenamecat.
23831         * modules/renameat (Depends-on): Likewise.
23832
23833         filenamecat: split into filenamecat-lgpl
23834         * modules/filenamecat-lgpl: New module.
23835         * modules/filenamecat (Files): Move library-safe files into
23836         filenamecat-lgpl.
23837         (Depends-on): Add filenamecat-lgpl.
23838         (configure.ac): Declare witness.
23839         * lib/filenamecat.h (file_name_concat): Only declare when using
23840         GPL module.
23841         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
23842         Move...
23843         * lib/filenamecat-lgpl.c: ...into new file.
23844         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
23845         (gl_FILE_NAME_CONCAT): Use it.
23846         * MODULES.html.sh (File system functions): Mention new module.
23847
23848         argp: avoid memory leak
23849         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
23850         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
23851         base_name, since the latter malloc()s and can call exit().
23852         Leak introduced 2006-07-03.
23853
23854         dirname-lgpl: adjust clients that don't need full dirname
23855         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
23856         * modules/filenamecat (Depends-on): Likewise.
23857         * modules/linkat (Depends-on): Likewise.
23858         * modules/mkancesdirs (Depends-on): Likewise.
23859         * modules/mkdir (Depends-on): Likewise.
23860         * modules/openat (Depends-on): Likewise.
23861         * modules/savewd (Depends-on): Likewise.
23862         * modules/rename (Depends-on): Likewise.
23863         (License): Relax license.
23864         * modules/mkdir-tests (Depends-on): Drop progname.
23865         (Makefile.am): Delete unneeded LDADD.
23866         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
23867
23868         dirname: split into dirname-lgpl
23869         * modules/dirname-lgpl: New module.
23870         * modules/dirname (Files): Move library-safe files into
23871         dirname-lgpl.
23872         (Depends-on): Add dirname-lgpl.
23873         (configure.ac): Declare witness.
23874         * modules/double-slash-root (License): Relax license.
23875         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
23876         module.
23877         * lib/dirname.c (dir_len, mdir_name): Move...
23878         * lib/dirname-lgpl.c: ...into new file.
23879         * lib/basename.c (last_component, base_len): Move...
23880         * lib/basename-lgpl.c: ...into new file.
23881         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
23882         (gl_DIRNAME): Use it.
23883         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
23884         Mention new module.
23885         * modules/dirname-tests (Depends-on): Add progname.
23886         * tests/test-dirname.c (program_name): Delete.
23887
23888         mkdir: make safe for libraries
23889         * modules/mkdir (Depends-on): Drop xalloc.
23890         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
23891         exit.
23892
23893         tests: avoid some compiler warnings
23894         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
23895         literals.
23896         * tests/test-memchr.c (main): Avoid type mismatch.
23897         * tests/test-arpa_inet.c (main): Avoid unused parameters.
23898         * tests/test-base64.c (main): Likewise.
23899         * tests/test-getdelim.c (main): Likewise.
23900         * tests/test-gethostname.c (main): Likewise.
23901         * tests/test-getline.c (main): Likewise.
23902         * tests/test-netinet_in.c (main): Likewise.
23903         * tests/test-select.c (open_server_socket, main): Likewise.
23904         * tests/test-select-stdin.c (main): Likewise.
23905         * tests/test-sockets.c (main): Likewise.
23906         * tests/test-strsignal.c (main): Likewise.
23907         * tests/test-sys_select.c (main): Likewise.
23908         * tests/test-sys_socket.c (main): Likewise.
23909         * tests/test-u64.c (main): Likewise.
23910         * tests/test-xfprintf-posix.c (main): Likewise.
23911         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
23912
23913         sockets: avoid compiler warning
23914         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
23915
23916         maint: detect usage(1) and other suspicious exits
23917         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
23918
23919 2009-10-29  Jim Meyering  <meyering@redhat.com>
23920
23921         timespec: long-to-int truncation could make timespec_cmp malfunction
23922         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
23923         a multiple of 2^32 nanoseconds as no difference.
23924
23925 2009-10-28  Jim Meyering  <meyering@redhat.com>
23926
23927         fprintftime: wrap macro code argument in "do {...} while(0)"
23928         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
23929         cpy macro must be a statement that can be followed by a semicolon.
23930         Now that the else clause contains a comment and is hence longer
23931         than one line, I require curly braces.  That in turn requires
23932         that we wrap this code block in the standard do...while(0).
23933
23934         fprintftime: remove stray semicolon from previous change
23935         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
23936
23937         fprintftime: avoid a warning about ignored fwrite return value
23938         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
23939         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
23940         that is unsafe.
23941         * modules/fprintftime (Depends-on): Add ignore-value.
23942
23943         exclude: avoid an unwarranted warning
23944         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
23945
23946 2009-10-27  Eric Blake  <ebb9@byu.net>
23947
23948         fseek: avoid compilation failure when fflush is replaced
23949         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
23950         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
23951         module is in use.
23952         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
23953         module is not in use; since REPLACE_FSEEK worked otherwise.
23954         (GNULIB_FTELLO): Likewise for ftell.
23955         Reported by Ian Beckwith and others.
23956
23957 2009-10-27  Bruno Haible  <bruno@clisp.org>
23958
23959         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
23960         Reported by Jim Meyering.
23961
23962 2009-10-27  Jim Meyering  <jim@meyering.net>
23963             Bruno Haible  <bruno@clisp.org>
23964
23965         Avoid warning despite dropping the return value of fwrite.
23966         * lib/unicodeio.c: Include ignore-value.h.
23967         (fwrite_success_callback): Explicitly ignore fwrite's return value.
23968         * modules/unicodeio (Depends-on): Add ignore-value.
23969
23970 2009-10-26  Eric Blake  <ebb9@byu.net>
23971
23972         areadlinkat: fix fallback path
23973         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
23974         pointer and zero.
23975
23976 2009-10-22  Pádraig Brady  <P@draigBrady.com>
23977
23978         Use a better IO block size for modern systems
23979         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
23980         * lib/md2.c: Likewise.
23981         * lib/md4.c: Likewise.
23982         * lib/md5.c: Likewise.
23983         * lib/sha1.c: Likewise.
23984         * lib/sha256.c: Likewise.
23985         * lib/sha512.c: Likewise.
23986
23987 2009-10-22  Eric Blake  <ebb9@byu.net>
23988
23989         tests: avoid several compiler warnings
23990         * tests/test-getcwd.c (main): Avoid buffer underflow.
23991         * tests/test-getdate.c (main): String literals are not safe with
23992         putenv, so use setenv.  Declare unused argument.
23993         * modules/getdate-tests (Depends-on): Add setenv.
23994         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
23995         problems with string literals in char *.
23996         * tests/test-hash.c (main): Avoid shadowing declaration.
23997         (insert_new): Treat string literals as char const *.
23998         * tests/test-getopt.h (test_getopt): Likewise.
23999         (getopt_loop): Alter types to minimize casting elsewhere.
24000         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
24001         (test_getopt_long_posix): Likewise.
24002         (do_getopt_long): Add wrapper to minimize casting.
24003         * tests/test-atexit.c (clear_temp_file): Use void.
24004         * tests/test-areadlink-with-size.c (main): Declare unused
24005         arguments.
24006         * tests/test-areadlink.c (main): Likewise.
24007         * tests/test-areadlinkat-with-size.c (main): Likewise.
24008         * tests/test-areadlinkat.c (main): Likewise.
24009         * tests/test-canonicalize-lgpl.c (main): Likewise.
24010         * tests/test-canonicalize.c (main): Likewise.
24011         * tests/test-dirent-safer.c (main): Likewise.
24012         * tests/test-dirname.c (main): Likewise.
24013         * tests/test-dup2.c (main): Likewise.
24014         * tests/test-fchdir.c (main): Likewise.
24015         * tests/test-fcntl-h.c (main): Likewise.
24016         * tests/test-fcntl-safer.c (main): Likewise.
24017         * tests/test-fdopendir.c (main): Likewise.
24018         * tests/test-fdutimensat.c (main): Likewise.
24019         * tests/test-fflush.c (main): Likewise.
24020         * tests/test-filenamecat.c (main): Likewise.
24021         * tests/test-filevercmp.c (main): Likewise.
24022         * tests/test-fopen-safer.c (main): Likewise.
24023         * tests/test-fopen.c (main): Likewise.
24024         * tests/test-fpending.c (main): Likewise.
24025         * tests/test-fpurge.c (main): Likewise.
24026         * tests/test-freading.c (main): Likewise.
24027         * tests/test-fstatat.c (main): Likewise.
24028         * tests/test-fsync.c (main): Likewise.
24029         * tests/test-futimens.c (main): Likewise.
24030         * tests/test-getndelim2.c (main): Likewise.
24031         * tests/test-gettimeofday.c (main): Likewise.
24032         * tests/test-getopt.c (main): Likewise.
24033         * tests/test-i-ring.c (main): Likewise.
24034         * tests/test-inttypes.c (main): Likewise.
24035         * tests/test-link.c (main): Likewise.
24036         * tests/test-lstat.c (main): Likewise.
24037         * tests/test-math.c (main): Likewise.
24038         * tests/test-md5.c (main): Likewise.
24039         * tests/test-memchr2.c (main): Likewise.
24040         * tests/test-memrchr.c (main): Likewise.
24041         * tests/test-mkdir.c (main): Likewise.
24042         * tests/test-mkdirat.c (main): Likewise.
24043         * tests/test-mkfifoat.c (main): Likewise.
24044         * tests/test-open.c (main): Likewise.
24045         * tests/test-openat-safer.c (main): Likewise.
24046         * tests/test-openat.c (main): Likewise.
24047         * tests/test-quotearg.c (main): Likewise.
24048         * tests/test-rawmemchr.c (main): Likewise.
24049         * tests/test-readlink.c (main): Likewise.
24050         * tests/test-remove.c (main): Likewise.
24051         * tests/test-rename.c (main): Likewise.
24052         * tests/test-renameat.c (main): Likewise.
24053         * tests/test-rmdir.c (main): Likewise.
24054         * tests/test-sha1.c (main): Likewise.
24055         * tests/test-signal.c (main): Likewise.
24056         * tests/test-sigaction.c (main): Likewise.
24057         * tests/test-stat.c (main): Likewise.
24058         * tests/test-stat-time.c (main): Likewise.
24059         * tests/test-stddef.c (main): Likewise.
24060         * tests/test-stdint.c (main): Likewise.
24061         * tests/test-stdio.c (main): Likewise.
24062         * tests/test-stdlib.c (main): Likewise.
24063         * tests/test-strchrnul.c (main): Likewise.
24064         * tests/test-strerror.c (main): Likewise.
24065         * tests/test-string.c (main): Likewise.
24066         * tests/test-strtod.c (main): Likewise.
24067         * tests/test-strverscmp.c (main): Likewise.
24068         * tests/test-symlink.c (main): Likewise.
24069         * tests/test-symlinkat.c (main): Likewise.
24070         * tests/test-sys_stat.c (main): Likewise.
24071         * tests/test-sys_time.c (main): Likewise.
24072         * tests/test-time.c (main): Likewise.
24073         * tests/test-unistd.c (main): Likewise.
24074         * tests/test-unlink.c (main): Likewise.
24075         * tests/test-unlinkat.c (main): Likewise.
24076         * tests/test-utimens.c (main): Likewise.
24077         * tests/test-utimensat.c (main): Likewise.
24078         * tests/test-version-etc.c (main): Likewise.
24079         * tests/test-wchar.c (main): Likewise.
24080         * tests/test-wctype.c (main): Likewise.
24081         * tests/test-xprintf-posix.c (main): Likewise.
24082         * tests/test-posixtm.c (main): Likewise.
24083         (STREQ): Delete unused macro.
24084         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
24085         shadowed variables.
24086         * tests/test-memchr.c (main): Likewise.
24087
24088 2009-10-21  Eric Blake  <ebb9@byu.net>
24089
24090         areadlinkat: avoid failure on older glibc
24091         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
24092         rather than mis-comparing 0 against FUNC_RESULT of char*.
24093
24094 2009-10-21  Bruno Haible  <bruno@clisp.org>
24095
24096         * modules/stpncpy (License): Relicense under LGPLv2+.
24097         Reported by David Lutterkort <lutter@redhat.com>.
24098
24099 2009-10-20  Eric Blake  <ebb9@byu.net>
24100
24101         utimensat: work around Solaris 9 bug
24102         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
24103         has trailing slash bugs.
24104         * tests/test-lutimens.h (test_lutimens): Enhance test.
24105         * tests/test-utimens.h (test_utimens): Likewise.
24106         * doc/posix-functions/utime.texi (utime): Enhance documentation.
24107         * doc/posix-functions/utimes.texi (utimes): Likewise.
24108         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24109         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
24110         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
24111         * doc/posix-functions/futimens.texi (futimens): Likewise.
24112
24113         fdutimensat: new module
24114         * modules/fdutimensat: New file.
24115         * lib/fdutimensat.c (fdutimensat): Likewise.
24116         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
24117         * MODULES.html.sh (File system functions): Mention module.
24118         * modules/fdutimensat-tests: New test.
24119         * tests/test-fdutimensat.c: Likewise.
24120
24121         doc: regenerate INSTALL
24122         * doc/INSTALL: Reflect recent autoconf update.
24123         * doc/INSTALL.ISO: Likewise.
24124         * doc/INSTALL.UTF-8: Likewise.
24125
24126 2009-10-20  Pádraig Brady  <P@draigBrady.com>
24127
24128         acl: warn if ACL support is not detected
24129         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
24130
24131 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
24132
24133         * lib/nproc.h: Add extern "C" block for C++.
24134
24135 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
24136             Bruno Haible  <bruno@clisp.org>
24137
24138         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
24139         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
24140         * doc/posix-functions/isalpha.texi: Likewise.
24141         * doc/posix-functions/isblank.texi: Likewise.
24142         * doc/posix-functions/iscntrl.texi: Likewise.
24143         * doc/posix-functions/isdigit.texi: Likewise.
24144         * doc/posix-functions/isgraph.texi: Likewise.
24145         * doc/posix-functions/islower.texi: Likewise.
24146         * doc/posix-functions/isprint.texi: Likewise.
24147         * doc/posix-functions/ispunct.texi: Likewise.
24148         * doc/posix-functions/isspace.texi: Likewise.
24149         * doc/posix-functions/isupper.texi: Likewise.
24150         * doc/posix-functions/isxdigit.texi: Likewise.
24151
24152 2009-10-18  Bruno Haible  <bruno@clisp.org>
24153
24154         Tests for module 'isblank'.
24155         * modules/isblank-tests: New file.
24156         * tests/test-isblank.c: New file.
24157
24158         New module 'isblank'.
24159         * lib/isblank.c: New file.
24160         * m4/isblank.m4: New file.
24161         * modules/isblank: New file.
24162         * doc/posix-functions/isblank.texi: Mention the new module.
24163
24164 2009-10-18  Bruno Haible  <bruno@clisp.org>
24165
24166         New module 'ctype'.
24167         * lib/ctype.in.h: New file.
24168         * m4/ctype.m4: New file.
24169         * modules/ctype: New file.
24170         * doc/posix-headers/ctype.texi: Mention the new module.
24171
24172 2009-10-18  Jim Meyering  <meyering@redhat.com>
24173
24174         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
24175         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
24176         right after its initialization, rather than farther down.
24177         Keeping these in close proximity makes it easier to ensure
24178         that each such variable is initialized.  E.g.,
24179
24180             LIB_CLOCK_GETTIME=
24181             AC_SUBST([LIB_CLOCK_GETTIME])
24182
24183         This change also increments these serial numbers.
24184         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
24185         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24186         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24187
24188 2009-10-18  Bruno Haible  <bruno@clisp.org>
24189
24190         Don't let environment variables perturb build.
24191         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
24192         (gl_PREREQ_GETHRXTIME): ... not here.
24193
24194 2009-10-18  Bruno Haible  <bruno@clisp.org>
24195
24196         Avoid symlink attack in localcharset module.
24197         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
24198         (O_NOFOLLOW): Define fallback.
24199         (get_charset_aliases): Don't open the file if it is a symbolic link.
24200         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
24201         gl_FCNTL_H.
24202         (gl_FCNTL_H): Require it.
24203         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
24204         * modules/localcharset (Files): Add m4/fcntl_h.m4.
24205         Reported by Fergal Glynn <fglynn@veracode.com>.
24206
24207 2009-10-18  Bruno Haible  <bruno@clisp.org>
24208
24209         Implement nproc for mingw.
24210         * lib/nproc.c: Include <windows.h>
24211         (num_processors): On native Windows platforms, try GetSystemInfo.
24212
24213 2009-10-18  Bruno Haible  <bruno@clisp.org>
24214
24215         Implement nproc for IRIX.
24216         * lib/nproc.c: Include <sys/sysmp.h>.
24217         (num_processors): On IRIX systems, try sysmp.
24218         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
24219
24220 2009-10-18  Bruno Haible  <bruno@clisp.org>
24221
24222         Implement nproc for HP-UX.
24223         * lib/nproc.c: Include <sys/pstat.h>
24224         (num_processors): On HP-UX systems, try pstat_getdynamic.
24225         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
24226         pstat_getdynamic.
24227
24228 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
24229             Bruno Haible  <bruno@clisp.org>
24230
24231         Implement nproc for NetBSD, OpenBSD.
24232         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
24233         (ARRAY_SIZE): New macro.
24234         (num_processors): On BSD systems, try sysctl of HW_NCPU.
24235         * m4/nproc.m4: New file.
24236         * modules/nproc (Files): Add m4/nproc.m4.
24237         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
24238         (Makefile.am): Instead, augment lib_SOURCES.
24239
24240 2009-10-18  Bruno Haible  <bruno@clisp.org>
24241
24242         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
24243         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
24244         sys/param.h.
24245
24246 2009-10-16  Eric Blake  <ebb9@byu.net>
24247
24248         utimensat: new module
24249         * modules/utimensat: New file.
24250         * lib/utimensat.c (utimensat): Likewise.
24251         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24252         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
24253         so we can work around Linux bugs.
24254         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24255         * modules/sys_stat (Makefile.am): Substitute them.
24256         * lib/sys_stat.in.h (utimensat): Declare it.
24257         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24258         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24259         * modules/utimensat-tests: New test.
24260         * tests/test-utimensat.c: Likewise.
24261
24262         utimens: let lutimens work on non-symlinks
24263         * lib/utimens.c (lutimens): Fall back to utimens rather than
24264         failing with ENOSYS, when file is not a symlink.
24265         (utimens): Reduce redirection.
24266         * tests/test-lutimens.h (test_lutimens): Update test to cover
24267         non-symlinks.
24268         * tests/test-utimens.h (test_utimens): Update test to cover
24269         symlinks.
24270         * tests/test-utimens.c (main): Update caller.
24271
24272         utimens: cache whether utimensat syscall works
24273         * lib/utimens.c (utimensat_works_really): New cache variable.
24274         (fdutimens, lutimens): Use it to avoid failing syscall.
24275
24276         test-stat-time, test-utimens: improve portability
24277         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
24278         ext4 on alpha, and for cygwin.
24279         * tests/test-utimens-common.h: New file.
24280         (nap): Factor delays into single function.
24281         * tests/test-lutimens.h (test_lutimens): Use new header.
24282         * tests/test-futimens.h (test_futimens): Likewise.
24283         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
24284         timestamps to occur from same machine, as was done previously for
24285         test_utimens.
24286         * modules/utimens-tests (Files): Ship new file.
24287         * modules/futimens-tests (Files): Likewise.
24288         Reported in part by Jim Meyering.
24289
24290         sys_stat: sort replacement declarations
24291         * lib/sys_stat.in.h: Sort declarations.
24292         * lib/futimens.c (futimens): Fix typo.
24293
24294 2009-10-15  Jim Meyering  <meyering@redhat.com>
24295
24296         don't let environment settings perturb build
24297         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
24298         could cause a configure-time and/or build-time malfunction.
24299         Typically, a configure-time function-in-library test is performed
24300         via code like this:
24301
24302           LIB_VAR=
24303           AC_SUBST([LIB_VAR])
24304           prefix_saved_LIBS=$LIBS
24305             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
24306                        [test "$ac_cv_search_FUNC" = "none required" ||
24307                         LIB_VAR=$ac_cv_search_FUNC])
24308           LIBS=$prefix_saved_LIBS
24309
24310         However, in each of the files affected by this change, the LIB_VAR=
24311         initialization was omitted.  Thus, when set in the environment, its
24312         value would propagate into generated Makefiles when FUNC is not found
24313         in LIB_NAME.
24314         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
24315         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24316         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24317
24318 2009-10-14  Eric Blake  <ebb9@byu.net>
24319
24320         fchdir: avoid infinite recursion in mingw
24321         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
24322         recursing.
24323
24324         test-stat-time: port to mingw
24325         * tests/test-stat-time.c (force_unlink): Return a value.
24326         (test_ctime) [W32]: Fix compilation error.
24327         (nap): Don't call usleep with too large an argument.  Use
24328         force_unlink.
24329         * doc/pastposix-functions/usleep.texi (usleep): Document the
24330         portability issue.
24331
24332 2009-10-13  Jim Meyering  <meyering@redhat.com>
24333
24334         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
24335         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
24336         * modules/pipe-filter-ii: Likewise.
24337         * modules/sys_socket-tests: Likewise.
24338         * modules/tsearch-tests: Likewise.
24339         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
24340         (check): Depend on it.
24341
24342 2009-10-12  Eric Blake  <ebb9@byu.net>
24343
24344         utimens-tests: port to NFS file systems
24345         * tests/test-utimens.h (test_utimens): Refactor utimecmp
24346         comparisons to avoid spurious failures from timestamp drift
24347         between NFS machines.
24348
24349 2009-10-12  Eric Blake  <ebb9@byu.net>
24350
24351         stat-time-tests: minor cleanups
24352         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
24353         * tests/test-stat-time.c (nap): Separate assignment from call.
24354         Suggested by Paolo Bonzini and Bruno Haible.
24355
24356         sys_stat: guarantee struct timespec
24357         * lib/sys_stat.in.h (includes): Always include <time.h>
24358         * modules/sys_stat (Depends-on): Add time.
24359         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
24360         mode_t permission values.
24361         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
24362         get at subsecond timestamps.
24363
24364 2009-10-10  Eric Blake  <ebb9@byu.net>
24365
24366         futimens: new module
24367         * modules/futimens: New file.
24368         * lib/futimens.c (futimens): Likewise.
24369         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
24370         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
24371         we can work around Linux bugs.
24372         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24373         * modules/sys_stat (Makefile.am): Substitute them.
24374         * lib/sys_stat.in.h (futimens): Declare it.
24375         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24376         * doc/posix-functions/futimens.texi (futimens): Likewise.
24377         * modules/futimens-tests: New test.
24378         * tests/test-futimens.c: Likewise.
24379
24380         utimens: introduce fdutimens
24381         * lib/utimens.h (fdutimens): New prototype.
24382         * lib/utimens.c (gl_futimens): Move guts...
24383         (fdutimens): ...to new interface.
24384         * tests/test-utimens.c (do_fdutimens): Use it.
24385
24386         utimens: add UTIME_NOW and UTIME_OMIT support
24387         * lib/utimens.c (validate_timespec, update_timespec): New helper
24388         functions.
24389         (gl_futimens, lutimens): Use them.
24390         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
24391         stdbool, sys_stat.
24392         (Link): Mention resulting library dependency.
24393         * modules/utimecmp (Link): Likewise.
24394         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
24395         (Makefile.am): Pick up library dependency.
24396         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
24397         definition.
24398         * tests/test-sys_stat.c: Test the definitions.
24399         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
24400         * NEWS: Document library dependency.
24401
24402         utimecmp: support symlink timestamps
24403         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
24404         hashing when possible.  Use pathconf when available.
24405         (SYSCALL_RESOLUTION): Recognize tighter resolution.
24406         * modules/utimecmp (Depends-on): Add lstat.
24407
24408         utimens: add lutimens interface
24409         * lib/utimens.c (lutimens): New function.
24410         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
24411         * lib/utimens.h (lutimens): Declare new interface.
24412         * tests/test-utimens.c (main): Enhance test.
24413         * tests/test-lutimens.h (test_lutimens): New file.
24414         * modules/utimens-tests (Files): Distribute it.
24415         (Depends-on): Add symlink.
24416         (configure.ac): Check for usleep.
24417
24418         utimens: validate futimens usage
24419         * lib/utimens.c (gl_futimens): Require valid fd up front, using
24420         fewer syscalls on failure later on.  Avoid compiler warning on
24421         mingw.
24422         * modules/utimens (Depends-on): Add dup2.
24423
24424         utimens: add test
24425         * modules/utimens-tests: New test.
24426         * tests/test-utimens.h: New file.
24427         * tests/test-futimens.h: Likewise.
24428         * tests/test-utimens.c: Likewise.
24429
24430         doc: mention timestamp portability issues
24431         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
24432         instead.
24433         * doc/posix-functions/utime.texi (utime): Likewise.
24434         * doc/posix-functions/utimes.texi (utimes): Likewise.
24435         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
24436         instead.
24437         * doc/posix-functions/futimens.texi (futimens): Mention utimens
24438         module.
24439         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24440         Mention weakness with symlink timestamps.
24441         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
24442         to utimensat/futimens instead.
24443         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
24444
24445         test-dup2: enhance test
24446         * tests/test-dup2.c (main): Also check AT_FDCWD.
24447
24448         test-stat-time: avoid more spurious failures
24449         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
24450         xfs; and avoid race if the two timestamps cross quantization edge.
24451
24452         relocatable: prefer 'file system' over 'filesystem'
24453         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
24454         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
24455         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
24456         * doc/relocatable.texi (Enabling Relocatability): Likewise.
24457         * lib/relocatable.c (compute_curr_prefix): Likewise.
24458
24459 2009-10-10  Jim Meyering  <meyering@redhat.com>
24460
24461         stat-time-tests: check for the usleep function
24462         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
24463
24464 2009-10-10  Bruno Haible  <bruno@clisp.org>
24465
24466         * modules/xnanosleep: Put the Link section after the Include section.
24467
24468 2009-10-09  Eric Blake  <ebb9@byu.net>
24469
24470         dup2: work around FreeBSD 6.1 bug
24471         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
24472         * doc/posix-functions/dup2.texi (dup2): Document it.
24473         Reported by Nelson H. F. Beebe and Jim Meyering.
24474
24475         test-stat-time: port to buggy NFS clients
24476         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
24477         (test_ctime): Also skip test if mtime and ctime are skewed.
24478
24479         maint: prefer 'file system' over 'filesystem'
24480         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24481         * doc/posix-functions/lstat.texi (lstat): Likewise.
24482         * lib/file-has-acl.c (file_has_acl): Likewise.
24483         * lib/fwriteerror.c [TEST]: Likewise.
24484         * tests/test-areadlink.h (test_areadlink): Likewise.
24485         * tests/test-areadlinkat-with-size.c (main): Likewise.
24486         * tests/test-areadlinkat.c (main): Likewise.
24487         * tests/test-canonicalize-lgpl.c (main): Likewise.
24488         * tests/test-canonicalize.c (main): Likewise.
24489         * tests/test-fstatat.c (main): Likewise.
24490         * tests/test-linkat.c (main): Likewise.
24491         * tests/test-lstat.h (test_lstat_func): Likewise.
24492         * tests/test-mkdir.h (test_mkdir): Likewise.
24493         * tests/test-readlink.h (test_readlink): Likewise.
24494         * tests/test-remove.c (main): Likewise.
24495         * tests/test-rename.h (test_rename): Likewise.
24496         * tests/test-renameat.c (main): Likewise.
24497         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24498         * tests/test-symlink.h (test_symlink): Likewise.
24499         * tests/test-symlinkat.c (main): Likewise.
24500         * tests/test-unlink.h (test_unlink_func): Likewise.
24501         * tests/test-unlinkat.c (main): Likewise.
24502
24503         maint: make realtime library usage explicit
24504         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
24505         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
24506         * modules/settime (Link): Likewise.
24507         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
24508
24509         test-stat-time: speed up execution
24510         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
24511         warning on mingw.
24512         (nap): New helper function.
24513         (prepare_test): Use it to reduce sleep time.
24514         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
24515         execution.
24516         * modules/stat-time-tests (configure.ac): Check for usleep.
24517
24518 2009-10-09  Jim Meyering  <meyering@redhat.com>
24519
24520         selinux-h: always use getfilecon wrappers
24521         * lib/getfilecon.c: New file.
24522         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
24523         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
24524         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
24525         (fgetfilecon): Provide a stub.
24526         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
24527         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
24528         file unconditionally.
24529         When <selinux/selinux.h> is found, arrange to use wrappers.
24530         * modules/selinux-h (Files): Add getfilecon.c.
24531         (Makefile.am): Substitute include-next-related bits
24532         into the now-always-generated selinux/selinux.h file.
24533         * doc/glibc-functions/lgetfilecon.texi: New file.
24534         * doc/glibc-functions/fgetfilecon.texi: New file.
24535         * doc/glibc-functions/getfilecon.texi: New file.
24536         * doc/glibc-functions/getfilecon-desc.texi: New file.
24537         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
24538         which to pull in the new files.
24539         * MODULES.html.sh (Misc): Add selinux-h.
24540
24541 2009-10-08  Jim Meyering  <meyering@redhat.com>
24542
24543         unistd: fix comment typo
24544         * lib/unistd.in.h (euidaccess): Fix a comment typo.
24545
24546 2009-10-08  Eric Blake  <ebb9@byu.net>
24547
24548         areadlink: use SIZE_MAX consistently
24549         * modules/areadlink (Depends-on): Add stdint.
24550         * modules/areadlink-with-size (Depends-on): Likewise.
24551         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
24552         gives NULL; drop sys/types, since unistd gives size_t; and add
24553         stdint for SIZE_MAX.
24554         (SIZE_MAX): Rely on headers.
24555         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
24556         and add stdint.
24557         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
24558         (SIZE_MAX): Likewise.
24559         (INITIAL_BUF_SIZE): Turn into enum.
24560         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
24561
24562 2009-10-08  Jim Meyering  <meyering@redhat.com>
24563
24564         areadlinkat: avoid compilation failure
24565         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
24566         Fix typo in comment.
24567
24568 2009-10-07  Eric Blake  <ebb9@byu.net>
24569
24570         areadlinkat-with-size: new module
24571         * modules/areadlinkat-with-size: New module.
24572         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
24573         * lib/areadlink.h (areadlinkat): Declare it.
24574         * MODULES.html.sh (File system functions): Mention it.
24575         * modules/areadlinkat-with-size-tests: New test.
24576         * tests/test-areadlinkat-with-size.c: New file.
24577
24578         xreadlinkat: new module
24579         * modules/xreadlinkat: New module.
24580         * lib/xreadlinkat.c (xreadlinkat): New file.
24581         * lib/xreadlink.h (xreadlinkat): Declare it.
24582         * MODULES.html.sh (File system functions): Mention it.
24583
24584         areadlinkat: new module
24585         * lib/at-func.c (FUNC_FAIL): New define.
24586         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
24587         * modules/areadlinkat: New module.
24588         * lib/linkat.c (areadlinkat): Move...
24589         * lib/areadlinkat.c (areadlinkat): ...to new file.
24590         * lib/areadlink.h (areadlinkat): Declare it.
24591         * modules/linkat (Depends-on): Add areadlinkat.
24592         * MODULES.html.sh (File system functions): Mention it.
24593         * modules/areadlinkat-tests: New test.
24594         * tests/test-areadlinkat.c: New file.
24595
24596         areadlink, areadlink-with-size: add tests
24597         * modules/areadlink-tests: New test.
24598         * modules/areadlink-with-size-tests: Likewise.
24599         * tests/test-areadlink.h: New file.
24600         * tests/test-areadlink.c: Likewise.
24601         * tests/test-areadlink-with-size.c: Likewise.
24602
24603         maint: minor cleanups
24604         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
24605         _UNUSED_PARAMETER_ instead.
24606         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
24607         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
24608         * modules/linkat-tests (Files): Distribute test-link.h.
24609
24610         openat, utimens: whitespace cleanup
24611         * lib/openat.c: Prefer space throughout, rather than mix of 8
24612         spaces vs. tabs.
24613         * lib/at-func.c: Likewise.
24614         * lib/utimens.c: Likewise.
24615
24616         openat: avoid using wrong fd
24617         * lib/openat.c (openat_permissive): Reject user's fd if saving the
24618         working directory chooses same fd.
24619         * lib/at-func.c (AT_FUNC_NAME): Likewise.
24620
24621         mkdir, mkdirat: fix cygwin 1.5.x bug
24622         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
24623         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
24624         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
24625         bug.
24626         (gl_PREREQ_MKDIR): Delete unused macro.
24627         * modules/mkdir (Files): Track file rename.
24628         (configure.ac): Update macro name.
24629         * modules/openat (Depends-on): Add mkdir.
24630         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
24631
24632         mkdir, mkdirat: add tests
24633         * modules/mkdir-tests: New test.
24634         * tests/test-mkdir.h: New file.
24635         * tests/test-mkdir.c: Likewise.
24636         * tests/test-mkdirat.c: Likewise.
24637         * modules/openat-tests (Files): Add new files.
24638         (Makefile.am): Run new test.
24639
24640 2009-10-06  Eric Blake  <ebb9@byu.net>
24641
24642         doc: tweak *at function documentation
24643         * doc/posix-functions/faccessat.texi (faccessat): Mention
24644         known issue with replacement.
24645         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
24646         * doc/posix-functions/linkat.texi (linkat): Likewise.
24647         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24648         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24649         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24650         * doc/posix-functions/renameat.texi (renameat): Likewise.
24651         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24652
24653         openat: fix GNU/Hurd bug in unlinkat
24654         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
24655         broken.
24656         * doc/posix-functions/unlink.texi (unlink): Document this.
24657         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
24658
24659         fdopendir: fix GNU/Hurd bug
24660         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
24661         allowing non-directory fds.
24662         * lib/fdopendir.c (rpl_fdopendir): Work around it.
24663         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24664         * modules/dirent (Makefile.am): Substitute it.
24665         * lib/dirent.in.h (fdopendir): Declare replacement.
24666         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
24667         * tests/test-fdopendir.c (main): Test something other than
24668         /dev/null, since on Hurd that behaves like a directory.
24669
24670         test-symlink: port to GNU/Hurd
24671         * tests/test-symlink.h (test_symlink): Relax expected errno.
24672
24673         doc: tweak more cygwin information
24674         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
24675         now compatible with glibc.
24676         * doc/posix-functions/getopt.texi (getopt): Likewise.
24677
24678         getopt-gnu: add another test
24679         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
24680         guarantee behavior relied on by m4.
24681         * tests/test-getopt.c (main): Use it.
24682         * modules/getopt-posix-tests (Depends-on): Add setenv.
24683         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
24684
24685         getopt: fix compilation on darwin
24686         * lib/getopt.in.h (includes): Leave breadcrumbs during system
24687         include.
24688         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
24689         Reported by Ludovic Courtès.
24690
24691 2009-10-06  Bruno Haible  <bruno@clisp.org>
24692
24693         * modules/size_max (Description): Discourage its use.
24694         Reported by Simon Josefsson.
24695
24696 2009-10-06  Jim Meyering  <meyering@redhat.com>
24697
24698         linkat: avoid compilation failure
24699         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
24700
24701 2009-10-05  Eric Blake  <ebb9@byu.net>
24702
24703         linkat: support Linux 2.6.17
24704         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
24705         linkat on Linux, but allow cache variable override.
24706         * lib/linkat.c (rpl_linkat): Define override.
24707         * modules/linkat (Depends-on): Add symlinkat.
24708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
24709         * modules/unistd (Makefile.am): Substitute it.
24710         * lib/unistd.in.h (linkat): Declare replacement.
24711         Reported by Pádraig Brady.
24712
24713         quotearg: port test to systems with C.UTF-8 locale
24714         * tests/test-quotearg.c (struct result_strings): Add another
24715         member, differentiating between C.ASCII and C.UTF-8 handling.
24716         (compare_strings): Add parameter.
24717         (main): Adjust all callers.
24718
24719         getopt: avoid clash with FreeBSD _getopt_internal
24720         * lib/getopt.in.h (_getopt_internal): Override the name.
24721         * lib/getopt_int.h (includes): Pick up any overrides.
24722         Reported by Reuben Thomas.
24723
24724         hash: allow C89 compilation
24725         * lib/hash.c (check_tuning): Move declaration before statement.
24726         Reported by Reuben Thomas.
24727
24728 2009-10-05  Karl Berry  <karl@gnu.org>
24729
24730         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
24731
24732 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
24733             Bruno Haible  <bruno@clisp.org>
24734
24735         * lib/uname.c (uname): Use a table-driven algorithm to compute
24736         Windows NT versions.
24737
24738 2009-10-04  Bruno Haible  <bruno@clisp.org>
24739
24740         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
24741         program_invocation_short_name.
24742         * modules/progname (configure.ac): Test for presence of
24743         program_invocation_short_name.
24744         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24745
24746 2009-10-04  Bruno Haible  <bruno@clisp.org>
24747
24748         * lib/progname.c (set_program_name): Fix comment.
24749         Reported by Jim Meyering.
24750
24751 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24752             Bruno Haible  <bruno@clisp.org>
24753
24754         * lib/uname.c: Include <string.h>.
24755         (uname): Do only one call to GetVersionEx in the common case.
24756
24757 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24758             Bruno Haible  <bruno@clisp.org>
24759
24760         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
24761         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
24762         (uname): Add support for Windows CE and various non-x86 CPU types.
24763
24764 2009-10-03  Bruno Haible  <bruno@clisp.org>
24765
24766         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
24767         invocation to tests/configure.ac.
24768         Reported by Ian Beckwith <ianb@erislabs.net>.
24769
24770 2009-10-02  Eric Blake  <ebb9@byu.net>
24771
24772         fchdir: avoid compiler warning
24773         * lib/fchdir.c (canonicalize_file_name)
24774         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
24775
24776         test-open: support mingw errno values
24777         * tests/test-open.h (test_open): Relax test.
24778         * tests/test-fopen.h (test_fopen): Likewise.
24779         * tests/test-openat-safer.c (main): Likewise.
24780
24781         open: fix opening directory on mingw
24782         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
24783
24784         test-open: on GNU/Hurd, /dev/null is a directory
24785         * tests/test-fopen.h (main): Rename...
24786         (test_fopen): ...to this.  Use a guaranteed non-directory when
24787         confirming open behavior on trailing slash.
24788         * tests/test-openat-safer.c (main): Likewise.
24789         * tests/test-open.h (main): Likewise....
24790         (test_open): ...to this.
24791         * tests/test-fopen.c (main): Adjust caller.
24792         * tests/test-fopen-safer.c (main): Likewise.
24793         * tests/test-open.c (main): Likewise.
24794         * tests/test-fcntl-safer.c (main): Likewise.
24795         Reported by Samuel Thibault.
24796
24797         rename, fchdir: don't ignore chdir failure
24798         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
24799         * lib/rename.c (rpl_rename) [W32]: Likewise.
24800         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
24801         an empty destination directory if source cannot be renamed,
24802         although there is still possibility for failure.
24803         * doc/posix-functions/rename.texi (rename): Document the race.
24804         Reported by Jim Meyering.
24805
24806         maint: cleanup whitespace in recent commits
24807         * lib/rename.c (rpl_rename): Remove tabs.
24808         * tests/test-link.h (test_link): Likewise.
24809         * lib/fchdir.c (get_name): Likewise.
24810         Reported by Jim Meyering.
24811
24812 2009-10-02  Ben Pfaff  <blp@gnu.org>
24813
24814         relocatable-prog-wrapper: Add missing dependency on
24815         double-slash-root.
24816         * modules/relocatable-prog-wrapper: Add dependency.
24817         Reported by Ian Beckwith <ianb@erislabs.net>.
24818
24819 2009-10-02  Eric Blake  <ebb9@byu.net>
24820
24821         renameat: fix Solaris bugs
24822         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
24823         needed fixing.
24824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
24825         * modules/stdio (Makefile.am): Substitute it.
24826         * lib/stdio.in.h (renameat): Declare replacement.
24827         * lib/renameat.c (rpl_renameat): Implement fix.
24828
24829         renameat: new module
24830         * modules/renameat: New file.
24831         * lib/renameat.c (renameat): Likewise.
24832         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
24833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24834         * modules/stdio (Makefile.am): Substitute them.
24835         * lib/stdio.in.h (renameat): Declare it.
24836         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24837         * doc/posix-functions/renameat.texi (renameat): Likewise.
24838         * modules/renameat-tests: New test.
24839         * tests/test-renameat.c: Likewise.
24840
24841         rename: fix mingw bugs
24842         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
24843         directory overwrite bugs.
24844
24845         rename: fix another cygwin 1.5 bug
24846         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
24847         checks.
24848         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
24849         unnecessary cygwin workarounds.  Also work around bug with moving
24850         full directory onto an empty one.
24851         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
24852
24853         rename-dest-slash: merge into rename module
24854         * modules/rename-dest-slash (Status): Mark obsolete.
24855         (Depends-on): Add rename.
24856         (Files): Let rename do it all.
24857         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
24858         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
24859         * m4/rename-dest-slash.m4: ...so this file can be deleted.
24860         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
24861         * lib/rename.c (rpl_rename): Update comments.
24862
24863         rename: fix cygwin 1.5.x bugs
24864         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
24865         * lib/rename.c (rpl_rename): Work around them.
24866         * modules/rename (Depends-on): Add same-inode.
24867
24868         rename: fix Solaris 10 bug
24869         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24870         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
24871         was the only bug.
24872
24873         rename: fix Solaris 9 bug
24874         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
24875         on non-directory.  Avoid calling exit.
24876         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
24877         strdup.
24878         * modules/rename-tests (Depends-on): Drop lstat.
24879         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24880         (gl_PREREQ_RENAME): Delete unused macro.
24881
24882         rename-dest-slash: fix NetBSD bug
24883         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
24884         links.
24885         * modules/rename-dest-slash (Depends-on): Add same-inode.
24886
24887         rename-tests: new test, exposes several platform bugs
24888         * modules/rename-tests: New file.
24889         * tests/test-rename.h: Likewise.
24890         * tests/test-rename.c: Likewise.
24891         * doc/posix-functions/rename.texi (rename): Improve documentation,
24892         including bugs that will eventually be fixed in gnulib.
24893
24894 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
24895
24896         * lib/uname.c: Include <stdlib.h>
24897         (uname): Assume version info is available.
24898
24899 2009-10-02  Jim Meyering  <meyering@redhat.com>
24900
24901         gnu-web-doc-update: correct --help output
24902         * build-aux/gnu-web-doc-update: Make --help output relevant.
24903
24904         gnu-web-doc-update: add standard options
24905         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
24906
24907         gnu-web-doc-update: New module.
24908         Use this script to automatically update the on-line web documentation
24909         for your GNU project at http://www.gnu.org/software/$pkg/manual/
24910         * modules/gnu-web-doc-update: New file, from coreutils.
24911         * build-aux/gnu-web-doc-update: New script.
24912
24913 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
24914
24915         link: LoadLibrary is not needed.
24916         * lib/link.c: Use GetModuleHandle.
24917
24918 2009-10-01  Eric Blake  <ebb9@byu.net>
24919
24920         getopt: bump serial number
24921         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
24922         change.
24923
24924         tests: tighten link, rmdir, and remove tests
24925         * tests/test-link.h (includes): No need to use <config.h> here.
24926         Clean up if directory hard link was created, otherwise test for
24927         trailing '.'.
24928         * tests/test-linkat.c (main): Simplify.
24929         * tests/test-remove.c (main): Enhance test for trailing '.'.
24930         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24931
24932 2009-10-01  Jim Meyering  <meyering@redhat.com>
24933
24934         maint.mk: requiring "make major" was annoying, for a "minor" release.
24935         What is intended is "stable", to contrast with alpha and beta,
24936         so require "make stable", not "make major".
24937         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
24938         (get_tool_versions): Likewise.
24939         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
24940
24941 2009-09-30  Ben Pfaff  <blp@gnu.org>
24942
24943         Fix broken build of replacement for Windows tmpfile().
24944         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
24945         flags argument added along with the 'mkostemp' module.
24946
24947 2009-09-28  Bruno Haible  <bruno@clisp.org>
24948
24949         Avoid identifier clash with POSIX function 'remove' defined as a macro.
24950         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
24951         to 'remove_elt'.
24952         (gl_list_remove): Update.
24953         * lib/gl_list.c (gl_list_remove): Update.
24954         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
24955         to 'remove_elt'.
24956         (gl_oset_remove): Update.
24957         * lib/gl_list.c (gl_oset_remove): Update.
24958         Reported by Eric Blake.
24959
24960 2009-09-28  Eric Blake  <ebb9@byu.net>
24961
24962         doc: mention yet more cygwin 1.7 status
24963         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
24964         cygwin.
24965         * doc/glibc-functions/execvpe.texi (execvpe): New file.
24966         * doc/gnulib.texi (Glibc unistd.h): Mention it.
24967
24968         argp: fix test failure
24969         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
24970         that are not upper-case.  Pass correct range to tolower.
24971
24972 2009-09-27  Jim Meyering  <meyering@redhat.com>
24973
24974         test-yesno: work around sparc-dash here-document infelicity
24975         Without this change, the literal \177 byte in a here document
24976         would make dash 0.5.5.1-3 access uninitialized memory.
24977         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
24978         Instead, use a marker, "@", and filter through tr to create the desired
24979         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
24980
24981 2009-09-27  Bruno Haible  <bruno@clisp.org>
24982
24983         Disable untested support for new flavours of ACLs on AIX.
24984         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
24985         progress.
24986         * lib/set-mode-acl.c (qset_acl): Likewise.
24987
24988 2008-12-07  Bruno Haible  <bruno@clisp.org>
24989
24990         Add support for new flavours of ACLs on AIX. (Untested.)
24991         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
24992         (file_has_acl): Add support for newer AIX.
24993         * lib/set-mode-acl.c (qset_acl): Likewise.
24994         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
24995         Rainer Tammer <tammer@tammer.net>.
24996
24997 2009-09-26  Eric Blake  <ebb9@byu.net>
24998
24999         argp: fix compilation of getopt
25000         * lib/getopt.in.h (includes): Use different guard than glibc.
25001         Reported by Sergey Poznyakoff.
25002
25003         doc: mention more cygwin 1.7 status
25004         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
25005         bug.
25006         * doc/posix-functions/execl.texi (execl): Likewise.
25007         * doc/posix-functions/execle.texi (execle): Likewise.
25008         * doc/posix-functions/execlp.texi (execlp): Likewise.
25009         * doc/posix-functions/execv.texi (execv): Likewise.
25010         * doc/posix-functions/execve.texi (execve): Likewise.
25011         * doc/posix-functions/execvp.texi (execvp): Likewise.
25012         * doc/glibc-functions/canonicalize_file_name.texi
25013         (canonicalize_file_name): Cygwin 1.7 now provides this.
25014         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
25015         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
25016         on AT_SYMLINK_NOFOLLOW.
25017
25018 2009-09-24  Eric Blake  <ebb9@byu.net>
25019
25020         test-linkat: make test more robust
25021         * tests/test-linkat.c (main): Avoid collision with EEXIST.
25022
25023         getopt: fix inclusion guards for cygwin
25024         * modules/getopt-posix (Depends-on): Add include-next.
25025         (Makefile.am): Substitute more items in replacement header.
25026         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
25027         <getopt.h>.
25028         * lib/getopt.in.h (includes): Use split inclusion guard, and
25029         prefer <getopt.h> over include <unistd.h> when one is present.
25030         (option): Also override name of 'struct option'.
25031
25032         same-inode: revert prior change; it is not yet ready
25033         * NEWS: Undo mention of this change.
25034         * lib/same-inode.h (same-inode.h): Undo tri-state change.
25035         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25036         * lib/cycle-check.c (cycle_check): Likewise.
25037         * lib/same.c (same_name): Likewise.
25038         * lib/at-func2.c (at_func2): Likewise.
25039
25040 2009-09-23  Eric Blake  <ebb9@byu.net>
25041
25042         linkat: new module
25043         * modules/linkat: New file.
25044         * lib/at-func2.c (at_func2): Likewise.
25045         * lib/linkat.c (linkat): Likewise.
25046         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25047         * lib/openat-priv.h (at_func2): Add declaration.
25048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25049         * modules/unistd (Makefile.am): Substitute them.
25050         * lib/unistd.in.h (linkat): Declare it.
25051         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25052         * doc/posix-functions/linkat.texi (linkat): Likewise.
25053         * doc/posix-functions/link.texi (link): Tweak wording.
25054         * tests/test-link.c (main): Move guts...
25055         * tests/test-link.h (test_link): ...into new file.
25056         * modules/linkat-tests: New test.
25057         * tests/test-linkat.c: Likewise.
25058         * modules/link-tests (Files): Ship new file.
25059         (Depends-on): Add stdbool.
25060
25061         dirname: add library-safe mdir_name
25062         * lib/dirname.h (mdir_name): New prototype.
25063         * lib/dirname.c (dir_name): Move guts...
25064         (mdir_name): ...to new function that avoids xalloc_die.
25065
25066         fchdir: another mingw fix
25067         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
25068         * lib/fchdir.c (get_name): New helper method; skips canonicalize
25069         on mingw (where it has not yet been ported), and make it optional
25070         elsewhere.
25071         (_gl_register_fd): Use it.
25072
25073         same-inode: make SAME_INODE tri-state, to port to mingw
25074         * NEWS: Mention this change.
25075         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
25076         st_ino always being 0.
25077         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25078         * lib/cycle-check.c (cycle_check): Likewise.
25079         * lib/same.c (same_name): Likewise.
25080
25081         lstat: avoid mingw compilation error
25082         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
25083         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
25084         lstat ourselves.
25085         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
25086         was adequate.
25087         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
25088         the checks for lstat.
25089         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
25090
25091         link: fix test failure on Solaris 9
25092         * lib/link.c (rpl_link): Don't assume link will catch bogus
25093         trailing slash on source.
25094
25095         test-symlinkat: enhance test
25096         * tests/test-readlink.c (main): Move guts...
25097         * tests/test-readlink.h (test_readlink): ...into new file.
25098         * tests/test-symlink.c (main): Move guts...
25099         * tests/test-symlink.h (test_symlink): ...into new file.
25100         * tests/test-symlinkat.c (main): Use new files for further
25101         coverage.
25102         (do_symlink, do_readlink): New helper functions.
25103         * modules/symlink-tests (Files): Ship new file.
25104         (Depends-on): Add stdbool.
25105         * modules/readlink-tests (Files): Ship new file.
25106         (Depends-on): Add stdbool.
25107         * modules/symlinkat-tests (Files): Use new files.
25108
25109 2009-09-23  Eric Blake  <ebb9@byu.net>
25110
25111         readlink: document portability issue with symlink length
25112         * doc/posix-functions/lstat.texi (lstat): Mention that some file
25113         systems have bogus st_size on symlinks, and mention the
25114         areadlink-with-size module.
25115         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25116         * doc/posix-functions/readlink.texi (readlink): Mention the
25117         areadlink module, and ERANGE failure.
25118         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25119         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
25120
25121         readlink: fix Solaris 9 bug with trailing slash
25122         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
25123         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
25124         * doc/posix-functions/readlink.texi (readlink): Document this.
25125         * modules/readlink-tests: New test.
25126         * tests/test-readlink.c: Likewise.
25127
25128         readlink: fix cygwin 1.5.x bug with return type
25129         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
25130         * lib/unistd.in.h (readlink): Use ssize_t.
25131         * lib/readlink.c (readlink): Likewise.
25132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25133         * modules/unistd (Makefile.am): Substitute it.
25134         * lib/unistd.in.h (readlink): Declare replacement.
25135         * doc/posix-functions/readlink.texi (readlink): Document this.
25136
25137         symlink: use throughout gnulib
25138         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
25139         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
25140         symlink is not used.
25141         * modules/symlinkat (Depends-on): Add symlink.
25142         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25143         * modules/canonicalize-tests (Depends-on): Likewise.
25144         * modules/lstat-tests (Depends-on): Likewise.
25145         * modules/openat-tests (Depends-on): Likewise.
25146         * modules/remove-tests (Depends-on): Likewise.
25147         * modules/rmdir-tests (Depends-on): Likewise.
25148         * modules/unlink-tests (Depends-on): Likewise.
25149         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
25150         * tests/test-canonicalize.c (symlink): Likewise.
25151         * tests/test-fstatat.c (symlink): Likewise.
25152         * tests/test-lstat.c (symlink): Likewise.
25153         * tests/test-remove.c (symlink): Likewise.
25154         * tests/test-rmdir.c (symlink): Likewise.
25155         * tests/test-unlink.c (symlink): Likewise.
25156         * tests/test-unlinkat.c (symlink): Likewise.
25157
25158         symlink: new module, for Solaris 9 bug
25159         * modules/symlink: New file.
25160         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25161         * lib/symlink.c: Likewise.
25162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25163         * modules/unistd (Makefile.am): Substitute them.
25164         * lib/unistd.in.h (symlink): Declare replacement.
25165         * MODULES.html.sh (File system functions): Mention it.
25166         * doc/posix-functions/symlink.texi (symlink): Likewise.
25167         * modules/symlink-tests: New test.
25168         * tests/test-symlink.c: Likewise.
25169
25170 2009-09-23  Bruno Haible  <bruno@clisp.org>
25171
25172         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
25173         when needed.
25174         Test case: gnulib-tool --import --with-tests atexit inttypes.
25175         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
25176
25177 2009-09-23  Bruno Haible  <bruno@clisp.org>
25178
25179         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
25180         subcommand, not in a subshell.
25181
25182 2009-09-22  Eric Blake  <ebb9@byu.net>
25183
25184         unistd: sort replacement declarations
25185         * lib/unistd.in.h: Sort declarations.
25186
25187         open, openat: minor optimization
25188         * lib/open.c (open): If open succeeded, len is non-zero.
25189         * lib/openat.c (rpl_openat): Likewise.
25190
25191         link-follow: ensure correct result
25192         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
25193         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
25194         distinguish between possible failures.
25195
25196 2009-09-21  Eric Blake  <ebb9@byu.net>
25197
25198         fts: avoid compiler warning
25199         * lib/fts.c (dirent_inode_sort_may_be_useful)
25200         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
25201
25202 2009-09-19  Bruno Haible  <bruno@clisp.org>
25203
25204         * lib/progreloc.c (canonicalize_file_name): New declaration.
25205
25206 2009-09-19  Eric Blake  <ebb9@byu.net>
25207
25208         link: fix quoting
25209         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
25210
25211         openat: fix openat bugs on Solaris 9
25212         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
25213         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
25214         * modules/openat (Depends-on): Add open.
25215         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
25216         * modules/fcntl-h (Makefile.am): Substitute it.
25217         * lib/fcntl.in.h (openat): Declare replacement.
25218         * doc/posix-functions/openat.texi (openat): Document this.
25219
25220         openat: move fstatat and unlinkat into correct files
25221         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
25222         compiled.
25223         * lib/openat.c (fstatat, unlinkat): Move...
25224         * lib/fstatat.c (fstatat): ...into correct files.
25225         * lib/unlinkat.c (unlinkat): Likewise.
25226
25227         openat: fix unlinkat bugs on Solaris 9
25228         * lib/unlinkat.c (unlinkat): New file.
25229         * modules/openat (Depends-on): Add unlink.
25230         (Files): Distribute it.
25231         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
25232         trailing slash behavior is broken.
25233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25234         * modules/unistd (Makefile.am): Substitute it.
25235         * lib/unistd.in.h (unlinkat): Declare replacement.
25236         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
25237
25238         openat: fix fstatat bugs on Solaris 9
25239         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
25240         stat.
25241         * doc/posix-functions/fstatat.texi (fstatat): Document this.
25242
25243         test-unlinkat: enhance test, to expose Solaris 9 bug
25244         * tests/test-unlink.c (main): Factor guts...
25245         * tests/test-unlink.h (test_rmdir_func): ...into new file.
25246         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
25247         * tests/test-rmdir.c (main): Adjust caller.
25248         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
25249         (unlinker): New helper function.
25250         (rmdirat): Enhance check.
25251         * modules/rmdir-tests (Depends-on): Add stdbool.
25252         * modules/unlink-tests (Depends-on): Likewise.
25253         (Files): Add test-unlink.h.
25254         * modules/openat-tests (Files): Likewise.
25255         (Depends-on): Add unlinkdir.
25256
25257         test-fstatat: new test, to expose Solaris 9 bugs
25258         * tests/test-stat.c (main): Factor guts...
25259         * tests/test-stat.h (test_stat_func): ...into new file.
25260         * tests/test-lstat.c (main): Factor guts...
25261         * tests/test-lstat.h (test_lstat_func): ...into new file.
25262         * tests/test-fstatat.c: New file.
25263         * modules/stat-tests (Files): Add test-stat.h.
25264         * modules/lstat-tests (Files): Add test-lstat.h.
25265         (Depends-on): Add stdbool.
25266         * modules/openat-tests (Depends-on): Add pathmax.
25267         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
25268         (Makefile.am): Run new test.
25269
25270         remove: new module, for mingw and Solaris 9 bugs
25271         * modules/remove: New file.
25272         * lib/remove.c: Likewise.
25273         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
25274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25275         * modules/stdio (Makefile.am): Use them.
25276         * lib/stdio.in.h (remove): Declare replacement.
25277         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25278         * doc/posix-functions/remove.texi (remove): Likewise.
25279         * modules/remove-tests: New test.
25280         * tests/test-remove.c: Likewise.
25281
25282         unlink: new module, for Solaris 9 bug
25283         * modules/unlink: New file.
25284         * lib/unlink.c: Likewise.
25285         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25287         * modules/unistd (Makefile.am): Use them.
25288         * lib/unistd.in.h (stat): Declare replacement.
25289         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25290         * doc/posix-functions/unlink.texi (unlink): Likewise.
25291         * modules/unlink-tests: New test.
25292         * tests/test-unlink.c: Likewise.
25293
25294         lstat: fix Solaris 9 bug
25295         * lib/lstat.c (lstat): Also check for trailing slash on
25296         non-symlink, non-directories.  Use stat module to simplify logic.
25297         * doc/posix-functions/lstat.texi (lstat): Document it.
25298         * modules/lstat-tests (Depends-on): Add errno, same-inode.
25299         (configure.ac): Check for symlink.
25300         * tests/test-lstat.c (main): Add more tests.
25301
25302         stat: add as dependency to other modules
25303         * modules/chown (Depends-on): Add stat.
25304         * modules/euidaccess (Depends-on): Likewise.
25305         * modules/fchdir (Depends-on): Likewise.
25306         * modules/isdir (Depends-on): Likewise.
25307         * modules/link (Depends-on): Likewise.
25308         * modules/lstat (Depends-on): Likewise.
25309         * modules/mkdir-p (Depends-on): Likewise.
25310         * modules/modechange (Depends-on): Likewise.
25311         * modules/open (Depends-on): Likewise.
25312         * modules/readlink (Depends-on): Likewise.
25313         * modules/same (Depends-on): Likewise.
25314
25315         stat: fix Solaris 9 bug
25316         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
25317         slash.
25318         * lib/stat.c (rpl_stat): Work around it.
25319         * doc/posix-functions/stat.texi (stat): Update documentation.
25320
25321         stat: new module, for mingw bug
25322         * modules/stat: New file.
25323         * lib/stat.c: Likewise.
25324         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25325         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25326         * modules/sys_stat (Makefile.am): Use them.
25327         * lib/sys_stat.in.h (stat): Declare replacement.
25328         * lib/openat.c (fstatat): Deal with lstat and stat being function
25329         macros.
25330         * modules/openat (Depends-on): Add inline.
25331         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25332         * doc/posix-functions/stat.texi (stat): Likewise.
25333         * modules/stat-tests: New test.
25334         * tests/test-stat.c: Likewise.
25335
25336 2009-09-19  Jim Meyering  <meyering@redhat.com>
25337
25338         syntax-check: detect unnecessary inclusion of canonicalize.h
25339         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
25340
25341 2009-09-19  Eric Blake  <ebb9@byu.net>
25342
25343         canonicalize-lgpl: adjust clients to use correct header
25344         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25345         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
25346         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
25347         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
25348         * lib/progreloc.c (includes): Likewise.
25349
25350 2009-09-19  Jim Meyering  <meyering@redhat.com>
25351
25352         test-posixtm.c: correct a comment
25353         * tests/test-posixtm.c: Correct first-line comment.
25354         Spotted by Eric Blake.
25355
25356 2009-09-16  Jim Meyering  <meyering@redhat.com>
25357
25358         posixtm-tests: make T const-correct; add a test case
25359         * tests/test-posixtm.c (T): Declare const.
25360         Add a test for -(2^31+1).
25361         Remove useless can-succeed-only-in-2002 test.
25362
25363         posixtm-tests: adjust the sole failing test
25364         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
25365         expected output matches what mktime now produces.  Cross-checked via
25366         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
25367
25368         posixtm: move #ifdef'd tests into a new module
25369         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
25370         * tests/test-posixtm.c: ... this new file.
25371         * modules/posixtm-tests: New module.
25372
25373 2009-09-19  Eric Blake  <ebb9@byu.net>
25374
25375         openat: simplify use of at-func.c
25376         * lib/at-func.c (includes): Include prerequisites here, to
25377         simplify requirements on client files.
25378         * lib/openat-priv.h: Add double-inclusion guard.
25379         * lib/faccessat.c (includes): Simplify.
25380         * lib/fchmodat.c (includes): Likewise.
25381         * lib/fchownat.c (includes): Likewise.
25382         * lib/mkdirat.c (includes): Likewise.
25383         * lib/mkfifoat.c (includes): Likewise.
25384         * lib/symlinkat.c (includes): Likewise.
25385
25386         openat: allow return of fd 0
25387         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
25388         * modules/save-cwd (Depends-on): Replace fcntl-safer with
25389         unistd-safer.
25390         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
25391         <fcntl.h>; this module does not leak fds.
25392         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
25393         must be allowed to return 0, leaving openat_safer to add the
25394         safety.
25395         (openat_permissive): Avoid writing to just-opened fd 2 if
25396         restoring the current directory fails.
25397         * lib/openat-die.c (openat_restore_fail): Add comment.
25398         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
25399         (save_cwd): Guarantee safe fd, but without use of open_safer.
25400         * tests/test-openat.c: New test.
25401         * modules/openat-tests (Files, Makefile.am): Distribute and build
25402         new file.
25403
25404         relocatable-prog-wrapper: fix build
25405         * modules/relocatable-prog-wrapper (Files): Update name of
25406         canonicalize m4 file, broken on 2009-09-17.
25407         Reported by emad hajjar <aleppos@hotmail.com>.
25408
25409 2009-09-19  Bruno Haible  <bruno@clisp.org>
25410
25411         * lib/safe-alloc.h: Use the standard header with GPL copyright.
25412         * lib/safe-alloc.c: Likewise.
25413         Reported by Ian Beckwith <ianb@erislabs.net>.
25414
25415 2009-09-18  Bruno Haible  <bruno@clisp.org>
25416
25417         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
25418         Reported by <erobles@sensacd.com.mx>.
25419
25420 2009-09-17  Eric Blake  <ebb9@byu.net>
25421
25422         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
25423         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
25424         slashes when checking if last component is missing.
25425         * tests/test-canonicalize.c (main): Test this.
25426
25427         canonicalize, canonicalize-lgpl: honor // if distinct from /
25428         * modules/canonicalize (Files): Add double-slash-root.m4.
25429         * modules/canonicalize-lgpl (Files): Likewise.
25430         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25431         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
25432         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
25433         fallback definition.
25434         (canonicalize_filename_mode): Use it to protect //.
25435         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
25436         (__realpath): Likewise.
25437         * tests/test-canonicalize.c (main): Test this.
25438         * tests/test-canonicalize-lgpl.c (main): Likewise.
25439         * modules/canonicalize-tests (Depends-on): Add same-inode.
25440         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25441
25442         canonicalize-lgpl: fix glibc bug with trailing slash
25443         * m4/canonicalize-lgpl.m4: Move contents...
25444         * m4/canonicalize.m4: ...here.
25445         (gl_CANONICALIZE_LGPL): Factor realpath check...
25446         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
25447         glibc 2.3.5 bug, fixed 2005-04-27.
25448         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
25449         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
25450         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
25451         * modules/canonicalize-lgpl (Files): Manage file rename.
25452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25453         * modules/stdlib (Makefile.am): Substitute witness.
25454         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
25455         is needed.
25456         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
25457         replacement is required.
25458         * lib/canonicalize.c (canonicalize_file_name): Likewise.
25459         * doc/glibc-functions/canonicalize_file_name.texi
25460         (canonicalize_file_name): Document this.
25461         * doc/posix-functions/realpath.texi (realpath): Likewise.
25462
25463         canonicalize-lgpl: reject non-directory with trailing slash
25464         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
25465         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
25466         catches failures in glibc 2.3.5.
25467         * tests/test-canonicalize.c (main): Likewise.
25468
25469         canonicalize-lgpl: use native realpath if it works
25470         * lib/canonicalize-lgpl.c (realpath): Guard with
25471         FUNC_REALPATH_WORKS.
25472         * lib/stdlib.in.h (realpath): Make declaration optional based on
25473         HAVE_REALPATH.
25474         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
25475         native realpath works.
25476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25477         * modules/stdlib (Makefile.am): Substitute witness.
25478
25479         canonicalize, canonicalize-lgpl: use <stdlib.h>
25480         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
25481         (Include): Mention <stdlib.h>.
25482         (configure.ac): Mention functions we provide.
25483         * modules/canonicalize (configure.ac): Likewise.
25484         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
25485         realpath if canonicalize_file_name is missing.
25486         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
25487         * modules/stdlib (Makefile.am): Substitute witnesses.
25488         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
25489         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
25490         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
25491         * NEWS: Document this.
25492         * doc/glibc-functions/canonicalize_file_name.texi
25493         (canonicalize_file_name): Likewise.
25494         * doc/posix-functions/realpath.texi (realpath): Likewise.
25495         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
25496
25497         test-canonicalize: consolidate into single C program
25498         * tests/test-canonicalize.sh: Delete; move setup into...
25499         * tests/test-canonicalize.c (main): ...the program, making it
25500         easier to run in debugger.  Add some tests.
25501         * modules/canonicalize-tests (Files): Remove unused file.
25502         (Depends-on): Add progname.
25503         (configure.ac, Makefile.am): Simplify.
25504
25505         test-canonicalize-lgpl: consolidate into single C program
25506         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
25507         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
25508         easier to run in debugger.  Add some tests.
25509         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
25510         (configure.ac, Makefile.am): Simplify.
25511
25512         canonicalize: avoid resolvepath
25513         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
25514         unnecessary checks.
25515         * lib/canonicalize.c (includes): Simplify.
25516         (canonicalize_file_name): Drop resolvepath implementation.
25517         * modules/canonicalize (Depends-on): Drop filenamecat.
25518
25519         canonicalize: don't lose errno
25520         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
25521         over calls to free.
25522
25523         canonicalize: simplify errno handling
25524         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
25525         assignment.
25526
25527         canonicalize, canonicalize-lgpl: update module dependencies
25528         * modules/canonicalize (Depends-on): Add extensions, lstat,
25529         pathmax, stdlib.
25530         (Files): Drop pathmax.h.
25531         (configure.ac): Adjust macro name.
25532         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
25533         lstat, stdlib, sys_stat.
25534         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
25535         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
25536         extensions.
25537         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
25538         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
25539         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
25540         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
25541         declaration, if available.
25542         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
25543         we can rely on the readlink module.
25544         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
25545         (includes): Use <unistd.h> unconditionally.
25546
25547 2009-09-17  Eric Blake  <ebb9@byu.net>
25548
25549         maint: make Include sections of modules consistent
25550         * modules/alloca: Use only header name; no need to list #include.
25551         * modules/alloca-opt: Likewise.
25552         * modules/arpa_inet: Likewise.
25553         * modules/canon-host: Likewise.
25554         * modules/configmake: Likewise.
25555         * modules/dirent: Likewise.
25556         * modules/eealloc: Likewise.
25557         * modules/environ: Likewise.
25558         * modules/fchdir: Likewise.
25559         * modules/fcntl: Likewise.
25560         * modules/fcntl-h: Likewise.
25561         * modules/gethrxtime: Likewise.
25562         * modules/gettime: Likewise.
25563         * modules/ignore-value: Likewise.
25564         * modules/inet_ntop: Likewise.
25565         * modules/inet_pton: Likewise.
25566         * modules/inttypes: Likewise.
25567         * modules/isnand-nolibm: Likewise.
25568         * modules/isnanf-nolibm: Likewise.
25569         * modules/mbchar: Likewise.
25570         * modules/mbfile: Likewise.
25571         * modules/mbiter: Likewise.
25572         * modules/mbuiter: Likewise.
25573         * modules/netdb: Likewise.
25574         * modules/netinet_in: Likewise.
25575         * modules/nproc: Likewise.
25576         * modules/pagealign_alloc: Likewise.
25577         * modules/poll: Likewise.
25578         * modules/printf-frexp: Likewise.
25579         * modules/pthread: Likewise.
25580         * modules/putenv: Likewise.
25581         * modules/random_r: Likewise.
25582         * modules/relocatable-prog: Likewise.
25583         * modules/search: Likewise.
25584         * modules/select: Likewise.
25585         * modules/selinux-h: Likewise.
25586         * modules/settime: Likewise.
25587         * modules/signal: Likewise.
25588         * modules/size_max: Likewise.
25589         * modules/socklen: Likewise.
25590         * modules/ssize_t: Likewise.
25591         * modules/stdarg: Likewise.
25592         * modules/stdbool: Likewise.
25593         * modules/stddef: Likewise.
25594         * modules/stdint: Likewise.
25595         * modules/stdio: Likewise.
25596         * modules/stdlib: Likewise.
25597         * modules/string: Likewise.
25598         * modules/strings: Likewise.
25599         * modules/sys_file: Likewise.
25600         * modules/sys_ioctl: Likewise.
25601         * modules/sys_select: Likewise.
25602         * modules/sys_socket: Likewise.
25603         * modules/sys_stat: Likewise.
25604         * modules/sys_time: Likewise.
25605         * modules/sys_times: Likewise.
25606         * modules/sys_utsname: Likewise.
25607         * modules/sys_wait: Likewise.
25608         * modules/sysexits: Likewise.
25609         * modules/time: Likewise.
25610         * modules/times: Likewise.
25611         * modules/tmpfile: Likewise.
25612         * modules/trim: Likewise.
25613         * modules/unistd: Likewise.
25614         * modules/wchar: Likewise.
25615         * modules/wctype: Likewise.
25616
25617 2009-09-17  Bruno Haible  <bruno@clisp.org>
25618
25619         Make getdate.y compile on QNX and NetBSD 5 / i386.
25620         * m4/getdate.m4 (gl_GETDATE): Conditionally define
25621         TIME_T_FITS_IN_LONG_INT.
25622         * lib/getdate.y (long_time_t): New type.
25623         (relative_time): Change type of 'seconds' field to long_time_t.
25624         (get_date): Update types of local variables. Check against overflow
25625         during conversion from long_time_t to time_t.
25626         Reported by Matt Kraai <kraai@ftbfs.org>
25627         and Hasso Tepper <hasso@netbsd.org>.
25628
25629 2009-09-17  Bruno Haible  <bruno@clisp.org>
25630
25631         * modules/COPYING: Update copyright years.
25632         * modules/README: Likeiwse.
25633         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
25634         Reported by Ian Beckwith <ianb@erislabs.net>.
25635
25636 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25637
25638         * users.txt: Update references for gnuit package.
25639
25640 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25641
25642         * m4/getdelim.m4: Fix typo in copyright line.
25643
25644 2009-09-17  Bruno Haible  <bruno@clisp.org>
25645
25646         * lib/atoll.c: Use the standard header with GPL copyright.
25647         * lib/argz.in.h: Likewise.
25648         * lib/glob.c: Likewise.
25649         * lib/glob-libc.h: Likewise.
25650         * lib/random_r.c: Likewise.
25651         * lib/siglist.h: Likewise.
25652         * lib/strsignal.c: Likewise.
25653         Reported by Ian Beckwith <ianb@erislabs.net>.
25654
25655 2009-09-17  Eric Blake  <ebb9@byu.net>
25656
25657         rmdir: ensure correct dependency order
25658         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
25659
25660 2009-09-17  Bruno Haible  <bruno@clisp.org>
25661
25662         Disable assertion that fails on NetBSD 5 / i386.
25663         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
25664         Reported by Sam Steingold <sds@gnu.org>
25665         and Hasso Tepper <hasso@netbsd.org>.
25666
25667 2009-09-16  Eric Blake  <ebb9@byu.net>
25668
25669         unlinkdir: port to mingw
25670         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
25671         on which no one can unlink a directory.
25672
25673         stdlib: sort witness names
25674         * modules/stdlib (Makefile.am): Sort replacements.
25675         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25676         * lib/stdlib.in.h: Likewise.
25677
25678         parse-duration-tests: avoid link failure
25679         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
25680         LIBINTL.
25681         Reported by Tom G. Christensen.
25682
25683         openat-tests: ensure unlinkat behaves like rmdir
25684         * tests/test-rmdir.c (main): Factor guts...
25685         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
25686         * modules/rmdir-tests (Files): Ship new file.
25687         * modules/openat-tests: New test.
25688         * tests/test-unlinkat.c: Likewise.
25689
25690         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
25691         * modules/rmdir-errno (Status, Notice): Now obsolete.
25692
25693         rmdir: work around cygwin 1.5.x and mingw bugs
25694         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
25695         * lib/rmdir.c (rmdir): Work around it.
25696         * modules/rmdir (Status, Notice): No longer obsolete.
25697         (Files): Add dos.m4.
25698         (Depends-on): Add unistd.
25699         (configure.ac): Set witnesses.
25700         (License): Relax to LGPLv2+.
25701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
25702         * modules/unistd (Makefile.am): Substitute witnesses.
25703         * lib/unistd.in.h (rmdir): Declare replacement.
25704         * doc/posix-functions/rmdir.texi (rmdir): Document this.
25705         * modules/rmdir-tests: New tests.
25706         * tests/test-rmdir.c: Likewise.
25707
25708 2009-09-15  Eric Blake  <ebb9@byu.net>
25709
25710         fchdir: improve use of replacement functions
25711         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
25712         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
25713         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
25714         REPLACE_CLOSEDIR.
25715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
25716         * modules/sys_stat (Makefile.am): Substitute correct witness.
25717         * modules/dirent (Makefile.am): Likewise.
25718         * modules/unistd (Makefile.am): Likewise.
25719         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
25720         * lib/unistd.in.h (dup): Likewise.
25721         * lib/sys_stat.in.h (fstat): Likewise.
25722
25723         maint: ignore gnulib-tool temp files
25724         * .gitignore: Ignore files created during gnulib-tool --test.
25725
25726 2009-09-13  Jim Meyering  <meyering@redhat.com>
25727
25728         posixtm: don't reject a time that specify "60" as the number of seconds
25729         * lib/posixtm.c (posixtime): The code to reject invalid dates
25730         would also reject a time specified with the .60 suffix.
25731         But POSIX allows that, in order to accommodate leap seconds.
25732         So don't reject it.
25733         (main): Adjust tests accordingly.
25734         * modules/posixtm (Depends-on): Add stpcpy.
25735
25736 2009-09-11  Jim Meyering  <meyering@redhat.com>
25737
25738         announce-gen: include [$release_type] in emitted Subject:
25739         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
25740         e.g., [stable] in the emitted Subject: line.
25741
25742 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25743
25744         Remove obsolete macros from several modules.
25745         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
25746         obsolete Autoconf macros with their modern counterparts.
25747         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
25748         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
25749         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
25750         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
25751         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
25752         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25753         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25754         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25755         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25756         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
25757         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
25758         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
25759         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
25760         * m4/sockets.m4 (gl_SOCKETS): Likewise.
25761         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
25762         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
25763         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
25764         * m4/time_r.m4 (gl_TIME_R): Likewise.
25765         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25766         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
25767         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25768
25769         Fix copyright header in build-aux scripts.
25770         * build-aux/git-version-gen: Fix copyright header to match GPLv3
25771         recommendation.
25772         * build-aux/ncftpput-ftp: Likewise.
25773         * build-aux/update-copyright: Likewise.
25774
25775 2009-09-09  Eric Blake  <ebb9@byu.net>
25776
25777         test-link: allow Linux choice of errno
25778         * tests/test-link.c (main): Relax test for alternate error.
25779
25780         strndup: fix improper m4 caching
25781         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
25782         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
25783         (gl_PREREQ_STRNDUP): Delete.
25784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
25785         * modules/string (Makefile.am): Substitute it.
25786         * lib/string.in.h (strndup): Modernize prototype.
25787
25788         getcwd: port to mingw
25789         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
25790         different from the POSIX assumptions made throughout the getcwd
25791         module; fortunately, the mingw getcwd does not need replacement.
25792         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
25793         * modules/getcwd-tests: New test.
25794         * tests/test-getcwd.c: Likewise.
25795
25796         link: fix platform bugs
25797         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
25798         * lib/link.c (link): Work around them.  Fix related mingw bug.
25799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
25800         * modules/unistd (Makefile.am): Substitute it.
25801         * lib/unistd.in.h (link): Declare replacement.
25802         * doc/posix-functions/link.texi (link): Document this.
25803         * modules/link (Depends-on): Add strdup-posix, sys_stat.
25804
25805         test-link: consolidate into single C program, test more cases
25806         * tests/test-link.sh: Delete.
25807         * tests/test-link.c: Test more error conditions.  Exposes bugs on
25808         at least Cygwin and Solaris.
25809         * modules/link-tests (Files): Remove unused file.
25810         (Depends-on): Add errno, sys_stat.
25811         (Makefile.am): Simplify.
25812
25813 2009-09-08  Bruno Haible  <bruno@clisp.org>
25814
25815         Work around towlower, towupper bug on mingw.
25816         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
25817         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
25818         * doc/posix-functions/towlower.texi: Mention the mingw bug.
25819         * doc/posix-functions/towupper.texi: Likewise.
25820         Reported by Eric Blake.
25821
25822 2009-09-08  Jim Meyering  <meyering@redhat.com>
25823
25824         build: don't try to run autoheader if we don't use it
25825         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
25826         is not used in configure.ac.
25827
25828 2009-09-08  Eric Blake  <ebb9@byu.net>
25829
25830         euidaccess: fix compilation error
25831         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
25832
25833         rawmemchr: relax license
25834         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
25835         okay.
25836         Reported by Jim Meyering.
25837
25838         mkfifoat: new module
25839         * modules/mkfifoat: New file.
25840         * lib/mkfifoat.c: Likewise.
25841         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
25842         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25843         * modules/sys_stat (Makefile.am): Use them.
25844         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
25845         * MODULES.html.sh (File system functions): Mention module.
25846         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25847         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25848         * modules/mkfifoat-tests: New test.
25849         * tests/test-mkfifoat.c: Likewise.
25850
25851         strchrnul: relax license
25852         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
25853         okay.
25854         Reported by Jim Meyering.
25855
25856 2009-09-08  Eric Blake  <ebb9@byu.net>
25857
25858         fstatat: fix compilation on Solaris
25859         * lib/fstatat.c (includes): Add fcntl.h.
25860         Reported by Pádraig Brady.
25861
25862 2009-09-07  Eric Blake  <ebb9@byu.net>
25863
25864         rename: modernize replacement
25865         * modules/rename (Depends-on): Add stdio.
25866         (configure.ac): Declare witness.
25867         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
25868         stdio take care of replacement.
25869         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
25870         * modules/stdio (Makefile.am): Substitute them.
25871         * lib/stdio.in.h (rename): Declare replacement.
25872         * lib/rename.c (includes): Allow cross-compilation to non-windows
25873         machines.
25874         * doc/posix-functions/rename.texi (rename): Improve
25875         documentation.
25876
25877         stdio: sort witness names
25878         * modules/stdio (Makefile.am): Sort replacements.
25879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25880         * lib/stdio.in.h: Likewise.
25881
25882         getcwd: minor cleanups
25883         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
25884         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
25885
25886         openat: provide more convenience names
25887         * modules/faccessat (configure.ac): Add C witness.
25888         * lib/unistd.in.h (readlinkat): Fix typo.
25889         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
25890         convenience wrappers.
25891         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
25892         wrappers in syntax checks.
25893
25894 2009-09-06  Eric Blake  <ebb9@byu.net>
25895
25896         doc: fix comments in recent patches
25897         * lib/faccessat.c: Mention correct function.
25898         * lib/fchmodat.c: Likewise.
25899         * lib/fchownat.c: Likewise.
25900         * lib/symlinkat.c: Likewise.
25901         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
25902         constants.
25903
25904         faccessat, symlinkat: continue cleanup of previous patch
25905         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
25906         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25907         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
25908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
25909         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
25910         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
25911         set.
25912
25913 2009-09-06  Bruno Haible  <bruno@clisp.org>
25914
25915         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
25916         (fstatat): Declare if GNULIB_FSTATAT is set.
25917         (mkdirat): Declare if GNULIB_MKDIRAT is set.
25918         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
25919         (unlinkat): Declare if GNULIB_UNLINKAT is set.
25920         * modules/fcntl-h (Files): Remove m4/openat.m4.
25921         * modules/sys_stat (Files): Remove m4/openat.m4.
25922         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
25923         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
25924         * modules/unistd (Files): Remove m4/openat.m4.
25925         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
25926         GNULIB_OPENAT.
25927         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
25928         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
25929         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
25930         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
25931         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
25932         gl_OPENAT_DEFAULTS.
25933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
25934         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
25935         Don't require gl_OPENAT_DEFAULTS.
25936         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
25937         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
25938         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
25939         (gl_OPENAT_DEFAULTS): Remove macro.
25940
25941 2009-09-06  Bruno Haible  <bruno@clisp.org>
25942
25943         * modules/openat (configure.ac): Remove unneeded witness.
25944
25945 2009-09-06  Bruno Haible  <bruno@clisp.org>
25946
25947         Set errno to ENOSYS when a function is entirely unsupported.
25948         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
25949         EOPNOTSUPP.
25950         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25951         * modules/chown (Depends-on): Remove errno.
25952
25953 2009-09-06  Bruno Haible  <bruno@clisp.org>
25954
25955         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
25956
25957 2009-09-06  Bruno Haible  <bruno@clisp.org>
25958
25959         * lib/sys_stat.in.h: Fix preprocessor command indentation.
25960
25961 2009-09-06  Ben Pfaff  <blp@gnu.org>
25962             Bruno Haible  <bruno@clisp.org>
25963
25964         Work around a glibc bug in strtok_r.
25965         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
25966         Undefine if UNDEFINE_STRTOK_R is set.
25967         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
25968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25969         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
25970         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
25971         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
25972         UNDEFINE_STRTOK_R.
25973         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
25974
25975 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25976
25977         exclude: minor fix
25978         * lib/exclude.c: Include wctype.h
25979
25980 2009-09-06  Akim Demaille  <demaille@gostai.com>
25981
25982         bootstrap: improve error message
25983         * build-aux/bootstrap (find_tool): Upon failure, report the list
25984         of candidates.
25985         Honor the initial value of the envvar.
25986
25987 2009-09-05  Eric Blake  <ebb9@byu.net>
25988
25989         symlinkat: new module
25990         * modules/symlinkat: New file.
25991         * lib/symlinkat.c: Likewise.
25992         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
25993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25994         * modules/unistd (Makefile.am): Use them.
25995         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
25996         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
25997         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
25998         * MODULES.html.sh (File system functions): Mention module.
25999         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26000         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26001         * modules/symlinkat-tests: New test.
26002         * tests/test-symlinkat.c: Likewise.
26003
26004         test-openat-safer: add more checks
26005         * tests/test-openat-safer.c (main): Check more code paths.
26006
26007 2009-09-05  Jim Meyering  <meyering@redhat.com>
26008
26009         syntax-check: detect unnecessary inclusion of openat.h
26010         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
26011
26012 2009-09-05  Bruno Haible  <bruno@clisp.org>
26013
26014         Support towlower, towupper.
26015         * doc/posix-functions/towlower.texi: Mention module wctype.
26016         * doc/posix-functions/towupper.texi: Likewise.
26017         * lib/wctype.in.h (towlower, towupper): New functions.
26018         * tests/test-wctype.c: Include stdio.h, stdlib.h.
26019         (ASSERT): New macro.
26020         (e): New variable.
26021         (main): Test also towlower, towupper. Test WEOF argument.
26022         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26023
26024 2009-09-05  Bruno Haible  <bruno@clisp.org>
26025
26026         Fix conversion behaviour when the input is invalid.
26027         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
26028         mark occurring in first pass of indirect conversion.
26029         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
26030         input.
26031         Found by clang's static analyzer.
26032
26033 2009-09-05  Bruno Haible  <bruno@clisp.org>
26034
26035         * tests/test-striconveh.c (main): Test indirect conversion on platforms
26036         where direct conversion is possible.
26037
26038 2009-09-04  Eric Blake  <ebb9@byu.net>
26039
26040         openat: fail with ENOENT on empty name
26041         * lib/openat-proc.c (openat_proc_name): Special-case the empty
26042         buffer.
26043
26044         link-follow: fix logic bug in prior patch
26045         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
26046         reversed sense of yes and no in prior patch.  Avoid confusing
26047         compilation failure with desired semantics.
26048
26049         link-follow: accomodate mingw and cross-compilation
26050         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
26051         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
26052         cross-compilation results to -1, to make linkat easier to
26053         implement when cross-compiling.  Trivially support mingw.
26054         * modules/link-follow (configure.ac): Call new name.
26055         * NEWS: Mention this.
26056
26057 2009-09-03  Eric Blake  <ebb9@byu.net>
26058
26059         faccessat: compile replacement
26060         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
26061         needed.
26062
26063         fts: fix compilation error
26064         * lib/fts.c (includes): Re-add "openat.h", for
26065         openat_needs_fchdir.
26066
26067         faccessat: new module
26068         * modules/faccessat: New file.
26069         * lib/faccessat.c: Likewise.
26070         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26072         * modules/unistd (Makefile.am): Use it.
26073         * lib/unistd.in.h (faccessat): Declare it.
26074         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
26075         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
26076         * MODULES.html.sh (File system functions): Mention it.
26077         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
26078         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26079
26080         euidaccess: prefer POSIX over non-standard implementation
26081         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
26082         * lib/euidaccess.c (euidaccess): Use it if available.
26083
26084         openat: make template easier to use
26085         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
26086         AT_FUNC_F2 to be undefined.
26087         (VALIDATE_FLAG): New macro; use it to reject bad flags.
26088         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
26089         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
26090         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
26091         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
26092         Likewise.
26093         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
26094         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
26095         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
26096         Likewise.
26097
26098         openat: declare in POSIX headers
26099         * NEWS: Mention this.
26100         * modules/openat (configure.ac): Declare witnesses.
26101         (Depends-on): Add fcntl-h, sys_stat, unistd.
26102         (Include): Mention correct headers.
26103         * modules/fcntl-h (Depends-on): Add link-warning.
26104         (Files): Add openat.m4.
26105         (Makefile.am): Substitute witnesses.
26106         * modules/sys_stat (Files, Makefile.am): Likewise.
26107         * modules/unistd (Files, Makefile.am): Likewise.
26108         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
26109         (gl_OPENAT_DEFAULTS): New macro.
26110         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
26111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
26112         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
26113         (SYS_STAT_H): Remove unused variable.
26114         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
26115         * lib/fcntl--.h (includes): Remove unneeded header.
26116         * lib/openat-safer.c (includes): Likewise.
26117         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
26118         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
26119         appropriate headers.
26120         (__OPENAT_PREFIX): Delete.
26121         * lib/fcntl.in.h (openat): Provide declaration.
26122         (AT_FDCWD): Fix Solaris bug.
26123         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
26124         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
26125         * lib/fchmodat.c (includes):  Adjust to find declaration.
26126         * lib/fchownat.c (includes): Likewise.
26127         * lib/mkdirat.c (includes): Likewise.
26128         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
26129         still visible.
26130
26131 2009-09-02  Eric Blake  <ebb9@byu.net>
26132
26133         errno: use consistently
26134         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
26135         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
26136         * lib/canonicalize.c (ELOOP): Likewise.
26137         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
26138         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
26139         * lib/lchown.c (EOPNOTSUPP): Likewise.
26140         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
26141         * lib/savewd.c (ESTALE): Likewise.
26142         * lib/settime.c (ENOSYS): Likewise.
26143         * lib/utimens.c (ENOSYS): Likewise.
26144         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
26145         * lib/chdir-safer.c (ELOOP): Likewise.
26146         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
26147         * modules/c-stack (Depends-on): Add errno.
26148         * modules/canonicalize (Depends-on): Likewise.
26149         * modules/chdir-safer (Depends-on): Likewise.
26150         * modules/fdopendir (Depends-on): Likewise.
26151         * modules/inet_ntop (Depends-on): Likewise.
26152         * modules/inet_pton (Depends-on): Likewise.
26153         * modules/lchown (Depends-on): Likewise.
26154         * modules/openat (Depends-on): Likewise.
26155         * modules/savewd (Depends-on): Likewise.
26156         * modules/settime (Depends-on): Likewise.
26157         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
26158
26159         fts: avoid leaking fds
26160         * modules/fts (Depends-on): Add cloexec.
26161         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
26162         flag.
26163
26164         fts: make directory fds more robust
26165         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
26166         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
26167
26168         backupfile, chdir-long, fts, savedir: make safer
26169         * lib/backupfile.c (includes): Use "dirent--.h", since
26170         numbered_backup can write to stderr during readdir.
26171         * lib/savedir.c (includes): Likewise.
26172         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
26173         emulation can write to stderr on failure.
26174         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
26175         * lib/getcwd.c: Document why opendir_safer is unused.
26176         * lib/glob.c: Likewise.
26177         * lib/scandir.c: Likewise.
26178         * lib/openat-proc.c: Likewise, for open_safer.
26179         * modules/backupfile (Depends-on): Add dirent-safer.
26180         * modules/savedir (Depends-on): Likewise.
26181         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
26182         * modules/chdir-long (Depends-on): Add openat-safer.
26183
26184         openat-safer: new module
26185         * modules/openat-safer: New file.
26186         * lib/openat-safer.c: Likewise.
26187         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
26188         * lib/fcntl-safer.h (openat_safer): Declare.
26189         * lib/fcntl--.h (openat): Override.
26190         * MODULES.html.sh (File descriptor based I/O): Mention it.
26191         * lib/openat.h: Add double-inclusion guards.
26192         * lib/openat.c (includes): Only include "fcntl-safer.h", not
26193         "fcntl--.h", so we can implement openat.
26194         * modules/openat-safer-tests: New test.
26195         * tests/test-openat-safer.c: New file.
26196
26197         dirent-safer: new module
26198         * modules/dirent-safer: New file.
26199         * lib/dirent--.h: Likewise.
26200         * lib/dirent-safer.h: Likewise.
26201         * lib/opendir-safer.c: Likewise.
26202         * m4/dirent-safer.m4: Likewise.
26203         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
26204         * modules/dirent-safer-tests: New test.
26205         * tests/test-dirent-safer.c: New file.
26206         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
26207
26208         fdopendir: optimize on mingw
26209         * lib/unistd.in.h (_gl_directory_name): New prototype.
26210         * lib/fchdir.c (_gl_directory_name): Implement it.
26211         (fchdir): Use it to simplify implementation.
26212         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
26213         fchdir, when available, to avoid calling [f]chdir().
26214
26215         fdopendir: split into its own module
26216         * lib/openat.c (fdopendir): Move...
26217         * lib/fdopendir.c: ...into new file.
26218         * modules/fdopendir: New module.
26219         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
26220         * modules/openat (Depends-on): Add fdopendir.
26221         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
26222         fdopendir here.
26223         * modules/savedir (Depends-on): Only need fdopendir, not full
26224         openat.
26225         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
26226         * lib/openat.h (fdopendir): Drop prototype.
26227         * lib/dirent.in.h (fdopendir): Provide prototype.
26228         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
26229         * modules/dirent (Makefile.am): Substitute them.
26230         * MODULES.html.sh (File system functions): Mention it.
26231         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
26232         * modules/fdopendir-tests: New file.
26233         * tests/test-fdopendir.c: Likewise.
26234
26235         fchdir: use more consistent macro convention
26236         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
26237         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
26238         REPLACE_FCHDIR, rather than relying on config.h macros.
26239         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
26240         inside a single make-time REPLACE_FCHDIR block, rather than using
26241         the config.h FCHDIR_REPLACEMENT.
26242         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
26243         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
26244         Manage fstat replacement.
26245         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
26246         REPLACE_FCHDIR.
26247         * modules/sys_stat (Files): Add m4/unistd_h.m4.
26248         (Makefile.am): Substitute REPLACE_FCHDIR.
26249         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
26250         FCHDIR_REPLACEMENT.
26251         * lib/dup-safer.c (dup_safer): Likewise.
26252         * lib/dup2.c (rpl_dup2): Likewise.
26253         * lib/dup3.c (rpl_dup3): Likewise.
26254         * lib/open.c (rpl_open): Likewise.
26255
26256         fchdir: simplify error handling, and support dup3
26257         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
26258         stdbool, malloc-posix, realloc-posix.
26259         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
26260         (ensure_dirs_slot): Return false on allocation failure.
26261         (rpl_dup2): Delete.
26262         (_gl_register_dup): New function.
26263         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
26264         (_gl_register_fd): Close fd on allocation failure.
26265         * lib/fcntl.in.h (_gl_register_fd): Update signature.
26266         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
26267         prototype.
26268         (rpl_dup2_fchdir): Delete prototype.
26269         * lib/open.c (open): Update caller.
26270         * lib/dup2.c (dup2): Track fchdir metadata.
26271         * lib/dup3.c (dup3): Likewise.
26272         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
26273         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
26274
26275 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26276
26277         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
26278         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
26279         don't pass arguments to AC_OUTPUT.
26280
26281 2009-09-02  Bruno Haible  <bruno@clisp.org>
26282
26283         * modules/mkdtemp (License): Relicense under LGPLv2+.
26284         Reported by Paolo Bonzini.
26285
26286 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26287
26288         Replace uses of obsolete autoconf macros in Jim's modules.
26289         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
26290         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
26291         can evoke a warning from autoconf when run with -Wobsolete
26292         enabled.  They were declared obsolete for good reasons (see
26293         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
26294         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
26295         should not continue using the deprecated macros.
26296         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
26297         obsolete Autoconf macros with modern counterparts.
26298         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26299         * m4/dos.m4 (gl_AC_DOS): Likewise.
26300         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
26301         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26302         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
26303         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
26304         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
26305         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
26306         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
26307         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
26308         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
26309         Likewise.
26310         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26311         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26312         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
26313         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
26314         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
26315         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26316
26317 2009-09-01  Eric Blake  <ebb9@byu.net>
26318
26319         fchdir: fix off-by-one bug in previous patch
26320         * lib/fchdir.c (rpl_fstat): Use correct bounds.
26321         (_gl_unregister_fd): Delete useless if.
26322
26323 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
26324
26325         maint.mk: sort the list of syntax-check rules
26326         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
26327         easier to get a sense of progress when the rules are run sequentially
26328         and take a long time.
26329
26330 2009-09-01  Simon Josefsson  <simon@josefsson.org>
26331
26332         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
26333         * modules/netinet_in: Likewise.
26334         * modules/sys_file: Likewise.
26335         * modules/sys_ioctl: Likewise.
26336         * modules/sys_select: Likewise.
26337         * modules/sys_socket: Likewise.
26338         * modules/sys_stat: Likewise.
26339         * modules/sys_time: Likewise.
26340         * modules/sys_times: Likewise.
26341         * modules/sys_utsname: Likewise.
26342         * modules/sys_wait: Likewise.
26343
26344 2009-09-01  Jim Meyering  <meyering@redhat.com>
26345
26346         fts: help ensure that return values are not ignored
26347         * lib/fts_.h (__GNUC_PREREQ): Define.
26348         (__attribute_warn_unused_result__): Define.
26349         (fts_children, fts_close, fts_open, fts_read): Declare with
26350         __attribute_warn_unused_result__.
26351
26352         fts: fts_close now fails also when closing a dir file descriptor fails
26353         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
26354         and propagate to caller, along with errno.
26355
26356         announce-gen: correct formatting in --help output
26357         * build-aux/announce-gen (usage): Move the one-line description in
26358         --help output "up", to where it belongs, just after Usage:.
26359
26360 2009-08-31  Eric Blake  <ebb9@byu.net>
26361
26362         fchdir: port to mingw
26363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
26364         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
26365         opened, then use a substitute.
26366         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
26367         replacement.
26368         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
26369         (_gl_register_fd): No need to check stat if open already filters
26370         all directories.
26371         (fchdir): Fix error condition to match POSIX.
26372         * modules/fchdir (Depends-on): Add sys_stat.
26373         * doc/posix-functions/open.texi (open): Document the limitation.
26374         * modules/fchdir-tests: New file.
26375         * tests/test-fchdir.c: Likewise.
26376
26377         canonicalize: allow cross-testing from cygwin to mingw
26378         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
26379         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
26380         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
26381         Likewise.
26382         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
26383         target does not support symlinks.
26384         * tests/test-canonicalize-lgpl.sh: Likewise.
26385
26386         chown: avoid compilation warning on mingw
26387         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
26388         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
26389         mingw.
26390         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26391         * modules/chown (Depends-on): Add errno.
26392
26393 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26394
26395         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
26396         command.
26397
26398 2009-08-31  Jim Meyering  <meyering@redhat.com>
26399
26400         canonicalize: remove useless initialization
26401         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
26402         initialization of local, "end".
26403
26404 2009-08-30  Bruno Haible  <bruno@clisp.org>
26405
26406         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
26407         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
26408         ENOSYS.
26409
26410 2009-08-30  Bruno Haible  <bruno@clisp.org>
26411
26412         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
26413         /usr/xpg4/bin/tr when it exists.
26414         * tests/test-pipe-filter-gi1.sh: Likewise.
26415
26416 2009-08-30  Bruno Haible  <bruno@clisp.org>
26417
26418         Work around deficient /usr/bin/id program on Solaris.
26419         * tests/test-file-has-acl.sh (ID): New variable.
26420         * tests/test-set-mode-acl.sh (ID): Likewise.
26421         * tests/test-copy-acl.sh (ID): Likewise.
26422         * tests/test-copy-file.sh (ID): Likewise.
26423
26424 2009-08-30  Bruno Haible  <bruno@clisp.org>
26425
26426         New module 'xstriconveh'.
26427         * lib/xstriconveh.h: New file.
26428         * lib/xstriconveh.c: New file.
26429         * modules/xstriconveh: New file.
26430
26431 2009-08-30  Bruno Haible  <bruno@clisp.org>
26432
26433         Make it easier to use mem_cd_iconveh.
26434         * lib/striconveh.h (iconveh_t): New type.
26435         (iconveh_open, iconveh_close): New declarations.
26436         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26437         with a single 'const iconveh_t *' argument.
26438         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
26439         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26440         with a single 'const iconveh_t *' argument.
26441         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
26442         * tests/test-striconveh.c (main): Update.
26443         * NEWS: Mention the change.
26444
26445 2009-08-30  Bruno Haible  <bruno@clisp.org>
26446
26447         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
26448         problem.
26449
26450 2009-08-30  Bruno Haible  <bruno@clisp.org>
26451
26452         Work around iconv_open problem on Solaris.
26453         * lib/iconv_open-solaris.gperf: New file.
26454         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
26455         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
26456         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
26457         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
26458         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
26459         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
26460
26461 2009-08-29  Jim Meyering  <meyering@redhat.com>
26462
26463         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
26464         * top/maint.mk (cvs-check): Remove target; it was just an alias
26465         to the better-named vc-diff-check.
26466         (maintainer-distcheck): Remove rule.  It was used only from
26467         the (alpha/beta/major) target, and all of its commands but one
26468         were coreutils-specific.
26469         (vc-dist): Remove rule.
26470         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
26471         Run vc-diff-check, not vc-dist.
26472         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
26473
26474 2009-08-27  Bruno Haible  <bruno@clisp.org>
26475
26476         * tests/test-bitrotate.c (main): Remove test that uses a shift count
26477         of 0.
26478
26479 2009-08-27  Bruno Haible  <bruno@clisp.org>
26480
26481         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
26482         compilers.
26483         * doc/func.texi: Document the SunPRO C bug.
26484
26485 2009-08-27  Bruno Haible  <bruno@clisp.org>
26486
26487         Fix link error on Solaris.
26488         * tests/test-parse-duration.c (xstrdup): Remove function.
26489
26490 2009-08-26  Pádraig Brady  <P@draigbrady.com>
26491
26492         ignore-value: handle pointer types, too
26493         * lib/ignore-value.h (__attribute__): Remove definition.
26494         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
26495         of a more concise and more-often effective "(void) i" statement.
26496         (ignore_ptr): New function to suppress warnings from functions that
26497         return pointers, and to make it explicit that one function doesn't
26498         handle all cases.
26499
26500 2009-08-25  Bruno Haible  <bruno@clisp.org>
26501
26502         dup2: work around a Linux bug.
26503         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
26504         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
26505         * doc/posix-functions/dup2.texi: Mention the Linux bug.
26506         Reported by Simon Josefsson.
26507
26508 2009-08-25  Jim Meyering  <meyering@redhat.com>
26509
26510         libguestfs uses gnulib
26511         * users.txt: Add libguestfs.
26512
26513 2009-08-24  Eric Blake  <ebb9@byu.net>
26514
26515         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
26516         * lib/pipe2.c (includes): Add binary-io.h.
26517         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
26518
26519 2009-08-24  Bruno Haible  <bruno@clisp.org>
26520
26521         Tolerate declared but missing accept4 syscall.
26522         * lib/accept4.c (accept4): Invoke original accept4 function first, if
26523         available.
26524         * lib/sys_socket.in.h (accept4): If the function is already present,
26525         override it.
26526         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
26527         * modules/accept4 (Makefile.am): Compile accept4.c always.
26528         Reported by Paolo Bonzini and Eric Blake.
26529
26530 2009-08-23  Bruno Haible  <bruno@clisp.org>
26531
26532         New module 'accept4'.
26533         * lib/sys_socket.in.h (accept4): New declaration.
26534         * lib/accept4.c: New file.
26535         * m4/accept4.m4: New file.
26536         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26537         GNULIB_ACCEPT4, HAVE_ACCEPT4.
26538         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
26539         HAVE_ACCEPT4.
26540         * modules/accept4: New file.
26541         * doc/glibc-functions/accept4.texi: Mention the new module.
26542
26543 2009-08-24  Jim Meyering  <meyering@redhat.com>
26544
26545         progname: also set global program_invocation_name, when possible
26546         Before this change, a libtool-enabled program that calls glibc's
26547         error function would report the program name as
26548         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
26549         * modules/progname (configure.ac): Check for a declaration of
26550         program_invocation_name.
26551         * lib/progname.c:  Include <errno.h>.
26552         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
26553         Set program_invocation_name.
26554
26555 2009-08-23  Bruno Haible  <bruno@clisp.org>
26556
26557         * lib/dup3.c: Include <string.h>.
26558
26559 2009-08-23  Bruno Haible  <bruno@clisp.org>
26560
26561         * lib/dup3.c (dup3): Test only once whether the system actually exists.
26562         * lib/pipe2.c (pipe2): Likewise.
26563         Suggested by Eric Blake.
26564
26565 2009-08-23  Bruno Haible  <bruno@clisp.org>
26566
26567         Tolerate declared but missing dup3 syscall.
26568         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
26569         * lib/unistd.in.h (dup3): If the function is already present,
26570         override it.
26571         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
26572         * modules/dup3 (Makefile.am): Compile dup3.c always.
26573         Reported by Paolo Bonzini.
26574
26575 2009-08-23  Bruno Haible  <bruno@clisp.org>
26576
26577         Tolerate declared but missing pipe2 syscall.
26578         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
26579         available.
26580         * lib/unistd.in.h (pipe2): If the function is already present,
26581         override it.
26582         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
26583         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
26584         Reported by Paolo Bonzini.
26585
26586 2009-08-23  Bruno Haible  <bruno@clisp.org>
26587
26588         * lib/pipe2.c (pipe2): Move #ifs inside function.
26589
26590 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26591
26592         quotearg: document limitations of quote_these_too
26593         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
26594         those limitations are created.
26595         * lib/quotearg.h (set_char_quoting): Document that digits and
26596         letters that are special after backslash are not permitted.
26597         (quotearg_char): Cross-reference set_char_quoting documentation.
26598
26599 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
26600
26601         quotearg: implement custom_quoting_style
26602         * lib/quotearg.c: (struct quoting_options): Add left_quote and
26603         right_quote fields.
26604         (set_custom_quoting): New public function.
26605         (quotearg_buffer_restyled): Add left_quote and right_quote
26606         arguments, handle them very much like locale quoting, and update
26607         all uses.
26608         (quotearg_n_custom): New public function.
26609         (quotearg_n_custom_mem): New public function.
26610         (quotearg_custom): New public function.
26611         (quotearg_custom_mem): New public function.
26612         * lib/quotearg.h: Prototype and document new public functions.
26613         (enum quoting_style): For escape_quoting_style and
26614         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
26615         ignored even though they're otherwise like c_quoting_style.
26616         Add custom_quoting_style member and document with comparison to
26617         clocale_quoting_style.
26618         * tests/test-quotearg.c (custom_quotes): New array.
26619         (custom_results): New array.
26620         (main): Extend to test custom quoting.
26621
26622 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26623
26624         quotearg: fix right quote escaping when it's in quote_these_too
26625         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
26626         quote, be sure to prepend only one backslash.
26627         * tests/test-quotearg.c (use_quote_double_quotes): New function.
26628         (main): Test it.
26629
26630 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26631
26632         quotearg-tests: test escaping of embedded locale quotes
26633         * tests/test-quotearg.c (struct result_strings): Add member for
26634         new input.
26635         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
26636         (inputs): Add new input.
26637         (results_g): Add expected results.
26638         (flag_results): Likewise.
26639         (locale_results): Likewise.
26640         (compare_strings): Check those.
26641
26642 2009-08-23  Bruno Haible  <bruno@clisp.org>
26643
26644         Tests for module 'dup3'.
26645         * modules/dup3-tests: New file.
26646         * tests/test-dup3.c: New file.
26647
26648         New module 'dup3'.
26649         * lib/unistd.in.h (dup3): New declaration.
26650         * lib/dup3.c: New file.
26651         * m4/dup3.m4: New file.
26652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
26653         HAVE_DUP3.
26654         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
26655         * modules/dup3: New file.
26656         * doc/glibc-functions/dup3.texi: Mention the new module.
26657
26658 2009-08-23  Bruno Haible  <bruno@clisp.org>
26659
26660         Tweak the dup2 test.
26661         * tests/test-dup2.c (main): Create the test file empty. Verify that an
26662         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
26663         the test file is still empty. Fix argument order of lseek.
26664
26665 2009-08-23  Bruno Haible  <bruno@clisp.org>
26666
26667         Avoid test link errors when the modules getopt-gnu, gettext are used.
26668         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
26669         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26670
26671 2009-08-23  Bruno Haible  <bruno@clisp.org>
26672
26673         Fix getdtablesize() on mingw.
26674         * lib/getdtablesize.c (getdtablesize): Implement differently.
26675         * lib/unistd.in.h (getdtablesize): Improve comment.
26676
26677 2009-08-23  Bruno Haible  <bruno@clisp.org>
26678
26679         New module 'mkostemp'.
26680         Based on Ulrich Drepper's 2007-08-10 change in glibc.
26681         * lib/stdlib.in.h (mksotemp): New declaration.
26682         * lib/mkostemp.c: New file, from glibc with modifications.
26683         * lib/tempname.h (GT_FILE): Remove outdated comment.
26684         (gen_tempname): Add flags argument.
26685         * lib/tempname.c (__GT_BIGFILE): Remove macro.
26686         (__GT_FILE): Map to 1.
26687         (small_open, large_open): Remove macros.
26688         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
26689         * lib/mkstemp.c (mkstemp): Update.
26690         * lib/mkdtemp.c (mkdtemp): Likewise.
26691         * m4/mkostemp.m4: New file.
26692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
26693         HAVE_MKOSTEMP.
26694         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
26695         HAVE_MKOSTEMP.
26696         * modules/mkostemp: New file, based on modules/mkstemp.
26697         * doc/glibc-functions/mkostemp.texi: Mention the new module.
26698         * NEWS: Mention the change.
26699
26700 2009-08-23  Bruno Haible  <bruno@clisp.org>
26701
26702         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
26703         Reported by Eric Blake.
26704
26705 2009-08-23  Bruno Haible  <bruno@clisp.org>
26706
26707         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
26708         Reported by Eric Blake.
26709
26710 2009-08-23  Bruno Haible  <bruno@clisp.org>
26711
26712         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
26713         * modules/pipe2 (Depends-on): Likewise.
26714
26715 2009-08-23  Eric Blake  <ebb9@byu.net>
26716
26717         fcntl-h: add O_TTY_INIT support
26718         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
26719         * tests/test-fcntl-h.c (o): Test it.
26720         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26721
26722         fcntl-h: rename from fcntl, in preparation for fcntl(2)
26723         * modules/fcntl: Move <fcntl.h> header replacement...
26724         * modules/fcntl-h: ...to new name, so as not to collide with
26725         like-named function.
26726         * tests/test-fcntl.c: Rename...
26727         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
26728         * modules/fcntl-tests: Rename...
26729         * modules/fcntl-h-tests: ...to this.  Update test file name.
26730         * modules/chdir-long (Depends-on): Update clients.
26731         * modules/chdir-safer (Depends-on): Likewise.
26732         * modules/fcntl-safer (Depends-on): Likewise.
26733         * modules/fts (Depends-on): Likewise.
26734         * modules/mkancesdirs (Depends-on): Likewise.
26735         * modules/mkdir-p (Depends-on): Likewise.
26736         * modules/open (Depends-on): Likewise.
26737         * modules/savewd (Depends-on): Likewise.
26738         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
26739         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26740
26741 2009-08-22  Bruno Haible  <bruno@clisp.org>
26742
26743         * modules/binary-io (License): Relicense under LGPL.
26744         * modules/pipe2 (License): Likewise.
26745
26746 2009-08-22  Bruno Haible  <bruno@clisp.org>
26747
26748         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
26749         return value.
26750         * lib/pipe-filter-gi.c (filter_init): Likewise.
26751         Reported by Eric Blake.
26752
26753 2009-08-22  Bruno Haible  <bruno@clisp.org>
26754
26755         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
26756         * modules/pipe (Depends-on): Add pipe2.
26757
26758 2009-08-22  Bruno Haible  <bruno@clisp.org>
26759
26760         Tests for module 'pipe2'.
26761         * modules/pipe2-tests: New file.
26762         * tests/test-pipe2.c: New file.
26763
26764         New module 'pipe2'.
26765         * lib/unistd.in.h (pipe2): New declaration.
26766         * lib/pipe2.c: New file.
26767         * m4/pipe2.m4: New file.
26768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
26769         HAVE_PIPE2.
26770         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
26771         * modules/pipe2: New file.
26772         * doc/glibc-functions/pipe2.texi: Mention the new module.
26773
26774 2009-08-22  Bruno Haible  <bruno@clisp.org>
26775
26776         Reference some new glibc functions.
26777         * doc/glibc-functions/accept4.texi: New file.
26778         * doc/glibc-functions/dup3.texi: New file.
26779         * doc/glibc-functions/mkostemp.texi: New file.
26780         * doc/glibc-functions/pipe2.texi: New file.
26781         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
26782         (Glibc sys/socket.h): Refer to accept4.
26783         (Glibc unistd.h): Refer to dup3, pipe2.
26784         Reported by Eric Blake.
26785
26786 2009-08-22  Jim Meyering  <meyering@redhat.com>
26787             Bruno Haible  <bruno@clisp.org>
26788
26789         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
26790         This makes it so packages using automake-1.11's silent-rules option
26791         can print e.g., a single "GEN    configmake.h" line, rather than
26792         the 30+ statements that perform the job.  If you want to see the
26793         actual commands, you can still run "make V=1".
26794         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
26795         so that make output is abbreviated when those variables are defined
26796         appropriately.
26797         * modules/argz: Likewise.
26798         * modules/arpa_inet: Likewise.
26799         * modules/byteswap: Likewise.
26800         * modules/configmake: Likewise.
26801         * modules/dirent: Likewise.
26802         * modules/errno: Likewise.
26803         * modules/fcntl: Likewise.
26804         * modules/float: Likewise.
26805         * modules/fnmatch: Likewise.
26806         * modules/getopt-posix: Likewise.
26807         * modules/glob: Likewise.
26808         * modules/iconv_open: Likewise.
26809         * modules/inttypes: Likewise.
26810         * modules/localcharset: Likewise.
26811         * modules/locale: Likewise.
26812         * modules/math: Likewise.
26813         * modules/netdb: Likewise.
26814         * modules/netinet_in: Likewise.
26815         * modules/poll: Likewise.
26816         * modules/posix_spawnp-tests: Likewise.
26817         * modules/sched: Likewise.
26818         * modules/search: Likewise.
26819         * modules/selinux-h: Likewise.
26820         * modules/signal: Likewise.
26821         * modules/spawn: Likewise.
26822         * modules/stdarg: Likewise.
26823         * modules/stdbool: Likewise.
26824         * modules/stddef: Likewise.
26825         * modules/stdint: Likewise.
26826         * modules/stdio: Likewise.
26827         * modules/stdlib: Likewise.
26828         * modules/string: Likewise.
26829         * modules/strings: Likewise.
26830         * modules/sys_file: Likewise.
26831         * modules/sys_ioctl: Likewise.
26832         * modules/sys_select: Likewise.
26833         * modules/sys_socket: Likewise.
26834         * modules/sys_stat: Likewise.
26835         * modules/sys_time: Likewise.
26836         * modules/sys_times: Likewise.
26837         * modules/sys_utsname: Likewise.
26838         * modules/sys_wait: Likewise.
26839         * modules/sysexits: Likewise.
26840         * modules/time: Likewise.
26841         * modules/unistd: Likewise.
26842         * modules/wchar: Likewise.
26843         * modules/wctype: Likewise.
26844
26845 2009-08-22  Jim Meyering  <meyering@redhat.com>
26846
26847         announce-gen: detect write failure
26848         * build-aux/announce-gen: Add Coda at end.
26849         Remove equivalent-but-more-verbose block at top.
26850
26851 2009-08-19  Akim Demaille  <demaille@gostai.com>
26852
26853         bootstrap: --help to stdout.
26854         * bootstrap (usage): Don't send --help to stderr.
26855         Use a here doc instead of a long string.
26856
26857 2009-08-21  Eric Blake  <ebb9@byu.net>
26858
26859         test-popen-safer: split from test-popen
26860         * tests/test-popen.c (main): Move...
26861         * tests/test-popen.h: ...into new file.
26862         * tests/test-popen-safer2.c: New file.
26863         * modules/popen-tests (Files): Add test-popen.h.
26864         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
26865         Suggested by Bruno Haible.
26866
26867         test-fcntl-safer: split from test-open
26868         * tests/test-open.c (main): Move...
26869         * tests/test-open.h: ...into new file.
26870         * tests/test-fcntl-safer.c: New file.
26871         * modules/open-tests (Files): Add test-open.h.
26872         * modules/fcntl-safer-tests: New file.
26873         Suggested by Bruno Haible.
26874
26875         test-fopen-safer: split from test-fopen
26876         * tests/test-fopen.c (main): Move...
26877         * tests/test-fopen.h: ...into new file.
26878         * tests/test-fopen-safer.c: New file.
26879         * modules/fopen-tests (Files): Add test-fopen.h.
26880         * modules/fopen-safer-tests: New file.
26881         Suggested by Bruno Haible.
26882
26883 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26884
26885         popen-safer: test O_CLOEXEC at run-time.
26886         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
26887
26888 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26889
26890         fcntl: move more flags to the header
26891         * lib/cloexec.c: Do not define FD_CLOEXEC here.
26892         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
26893         * lib/fcntl.in.h: Do both things here.
26894
26895 2009-08-21  Jim Meyering  <meyering@redhat.com>
26896
26897         consistently remove $@-t before redirecting to it
26898         * modules/argz: Remove $@-t and $@ before redirecting to the former.
26899         * modules/alloca-opt: Likewise.
26900         * modules/byteswap: Likewise.
26901         * modules/fnmatch: Likewise.
26902         * modules/getopt-posix: Likewise.
26903         * modules/glob: Likewise.
26904         * modules/poll: Likewise.
26905         * modules/posix_spawnp-tests: Likewise.
26906         * modules/sys_socket: Likewise.
26907         * modules/sysexits: Likewise.
26908
26909 2009-08-21  Eric Blake  <ebb9@byu.net>
26910
26911         popen: simplify access to original popen
26912         * lib/popen.c (rpl_popen): No need to worry about popen being a
26913         macro.
26914         Reported by Bruno Haible.
26915
26916 2009-08-20  Eric Blake  <ebb9@byu.net>
26917
26918         build: avoid some compiler warnings
26919         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
26920         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
26921         type.
26922         (new_exclude_segment, excluded_file_pattern_p)
26923         (excluded_file_name_p): Reduce scope.
26924         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
26925         old-style declaration.
26926
26927 2009-08-20  Simon Josefsson  <simon@josefsson.org>
26928
26929         * tests/test-exclude1.sh: Handle Windows EOL.
26930         * tests/test-exclude2.sh: Likewise.
26931         * tests/test-exclude3.sh: Likewise.
26932         * tests/test-exclude4.sh: Likewise.
26933         * tests/test-exclude5.sh: Likewise.
26934         * tests/test-exclude6.sh: Likewise.
26935         * tests/test-exclude7.sh: Likewise.
26936
26937 2009-08-19  Akim Demaille  <demaille@gostai.com>
26938
26939         bootstrap: find sha1sum when named gsha1sum.
26940         * bootstrap (find_tool): New.
26941         ($SHA1SUM): New.
26942         Use it.
26943
26944 2009-08-20  Jim Meyering  <meyering@redhat.com>
26945
26946         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
26947         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
26948         expression that converts "." in a file name to "\." in the resulting
26949         regexp.  Start with a dummy statement, so that prior shell variable
26950         definitions are expanded portably.  Reported by Simon Josefsson.
26951
26952 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
26953
26954         Fix polling for writeability of a screen buffer.
26955         * lib/poll.c: Distinguish input and screen buffers for the
26956         Win32 implementation.
26957         * lib/select.c: Likewise.
26958
26959 2009-08-19  Eric Blake  <ebb9@byu.net>
26960
26961         popen-safer: prevent popen from clobbering std descriptors
26962         * modules/popen-safer: New file.
26963         * lib/popen-safer.c: Likewise.
26964         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
26965         * lib/stdio--.h (popen): Provide override.
26966         * lib/stdio-safer.h (popen_safer): Provide declaration.
26967         * tests/test-popen.c (includes): Partially test this.
26968         * modules/popen-safer-tests: New file, for more tests.
26969         * tests/test-popen-safer.c: Likewise.
26970         * MODULES.html.sh (file stream based Input/Output): Mention it.
26971
26972         tests: test some of the *-safer modules
26973         * modules/fopen-safer (Depends-on): Add fopen.
26974         * modules/fcntl-safer (Depends-on): Add fcntl.
26975         * modules/stdlib-safer (Depends-on): Add stdlib.
26976         (configure.ac): Set indicator.
26977         * modules/unistd-safer (configure.ac): Likewise.
26978         * modules/tmpfile-safer (configure.ac): Likewise.
26979         (Depends-on): Add tmpfile.
26980         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
26981         active.
26982         * tests/test-fopen.c (includes): Test safer versions when they are
26983         in use.
26984         * tests/test-open.c (includes): Likewise.
26985
26986         popen: fix cygwin 1.5 bug when stdin closed
26987         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
26988         * modules/popen: New file.
26989         * modules/popen-tests: Likewise.
26990         * tests/test-popen.c: Likewise.
26991         * m4/popen.m4: Likewise.
26992         * lib/popen.c: Likewise.
26993         * lib/stdio.in.h (popen): New declaration.
26994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
26995         * modules/stdio (Makefile.am): Likewise.
26996         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
26997
26998 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
26999
27000         maint.mk: give full control over update-copyright exclusions
27001         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
27002         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
27003         (update-copyright): Don't force inclusion of top-level
27004         ChangeLog.  Don't force exclusion of all COPYING files, but make
27005         them the default exclusion instead.
27006
27007 2009-08-16  Bruno Haible  <bruno@clisp.org>
27008
27009         Fix test failures on Solaris 10.
27010         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
27011         tests when Solaris iconv() is used.
27012         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
27013         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
27014         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
27015         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
27016         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
27017
27018 2009-08-16  Bruno Haible  <bruno@clisp.org>
27019
27020         Fix test failures on Solaris 10.
27021         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
27022         'tr' program and pass it as first argument.
27023         * tests/test-pipe-filter-gi1.sh: Likewise.
27024         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
27025         program as first argument.
27026         * tests/test-pipe-filter-gi1.c (main): Likewise.
27027
27028 2009-08-16  Eric Blake  <ebb9@byu.net>
27029
27030         fpurge: fix previous commits
27031         * modules/fpurge (Makefile.am): Make replacement conditional,
27032         partially reverting 2007-04-29 change; missed in previous
27033         attempt.
27034         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
27035         is missing.
27036
27037 2009-08-16  Bruno Haible  <bruno@clisp.org>
27038
27039         Clarify fpurge's effect on the file position.
27040         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
27041         * tests/test-fpurge.c (main): Make a second pass for checking the file
27042         position.
27043
27044 2009-08-16  Bruno Haible  <bruno@clisp.org>
27045
27046         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
27047         declaration of fpurge is missing.
27048         * tests/test-fpurge.c (main): Check that the file has not more contents
27049         than expected. Close the file before removing it.
27050
27051 2009-08-15  Eric Blake  <ebb9@byu.net>
27052
27053         fpurge: don't wrap working cygwin implementation
27054         * lib/fpurge.c (fpurge): Fix comment typo.
27055         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
27056         1.7 to avoid replacement.
27057         * tests/test-fpurge.c (main): Enhance test.
27058
27059 2009-08-15  Eric Blake  <ebb9@byu.net>
27060         and Jim Meyering  <meyering@redhat.com>
27061
27062         test-update-copyright: skip if perl is insufficient
27063         * tests/test-update-copyright.sh: Failure to run maintainer tool
27064         should not cause testsuite failure on cygwin 1.5.
27065
27066 2009-08-14  Eric Blake  <ebb9@byu.net>
27067
27068         doc: mention more functions added in cygwin 1.7.0
27069         * doc/posix-headers/limits.texi (limits.h): Update for recent
27070         cygwin additions.
27071         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
27072         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
27073         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
27074         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
27075         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
27076
27077 2009-08-14  Eric Blake  <ebb9@byu.net>
27078
27079         maint.mk: simplify update-copyright rule
27080         * top/maint.mk (update-copyright-local): Delete, and document how
27081         to do it in cfg.mk instead.
27082         (update-copyright-exclude-regexp): Delete, and document how to do
27083         it in .x-update-copyright instead.
27084         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
27085         exclude ChangeLog.
27086
27087 2009-08-14  Bruno Haible  <bruno@clisp.org>
27088
27089         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
27090
27091 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27092
27093         maint.mk: support update-copyright-env
27094         * top/maint.mk (update-copyright-env): Define place-holder.
27095         (update-copyright): Expand $(update-copyright-env) before
27096         invoking update-copyright.
27097
27098 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27099
27100         update-copyright: implement forced reformatting
27101         * build-aux/update-copyright: Implement and document
27102         UPDATE_COPYRIGHT_FORCE.
27103         * tests/test-update-copyright.sh: Test it.
27104
27105 2009-08-14  Eric Blake  <ebb9@byu.net>
27106         and Bruno Haible  <bruno@clisp.org>
27107
27108         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
27109         * tests/test-locale.c: Revert previous patch related to NULL.
27110         * tests/test-stdio.c: Likewise.
27111         * tests/test-stdlib.c: Likewise.
27112         * tests/test-string.c: Likewise.
27113         * tests/test-unistd.c: Likewise.
27114         * modules/time-tests (Depends-on): Add verify.
27115         * modules/wchar-tests (Depends-on): Likewise.
27116         * tests/test-time.c: Test for NULL compliance.
27117         * tests/test-wchar.c: Likewise.
27118         * modules/locale (Depends-on): Add stddef.
27119         * modules/stdio (Depends-on): Likewise.
27120         * modules/stdlib (Depends-on): Likewise.
27121         * modules/string (Depends-on): Likewise.
27122         * modules/time (Depends-on): Likewise.
27123         * modules/unistd (Depends-on): Likewise.
27124         * modules/wchar (Depends-on): Likewise.
27125         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
27126         * lib/stdlib.in.h (includes): Likewise.
27127         * lib/string.in.h (includes): Likewise.
27128         * lib/time.in.h (includes): Likewise.
27129         * lib/unistd.in.h (includes): Likewise.
27130         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
27131         replaced.
27132         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27133         * m4/stddef_h.m4: New file.
27134         * modules/stddef: Likewise.
27135         * lib/stddef.in.h: Likewise.
27136         * modules/stddef-tests: Likewise.
27137         * tests/test-stddef.c: Likewise.
27138         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
27139         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
27140         * doc/posix-headers/locale.texi (locale.h): Likewise.
27141         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
27142         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27143         * doc/posix-headers/string.texi (string.h): Likewise.
27144         * doc/posix-headers/time.texi (time.h): Likewise.
27145         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
27146         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
27147
27148 2009-08-14  Eric Blake  <ebb9@byu.net>
27149
27150         doc: improve git diff of texinfo files
27151         * .gitattributes: Add rule for *.texi files, with hint on how to
27152         use it.
27153         Copied from m4, and based on a report by Bruno Haible.
27154
27155 2009-08-14  Bruno Haible  <bruno@clisp.org>
27156
27157         Disable multithread support by default on Cygwin 1.5.x for real.
27158         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
27159
27160 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27161
27162         update-copyright: much ado about intervals
27163         * build-aux/update-copyright: Implement and document
27164         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
27165         of copyright year intervals.
27166         Also, document UPDATE_COPYRIGHT_YEAR.
27167         * tests/test-update-copyright.sh: Test it.
27168
27169         update-copyright: convert 2-digit to 4-digit years
27170         * build-aux/update-copyright: Implement and document.
27171         * tests/test-update-copyright.sh: Update.
27172
27173 2009-08-14  Jim Meyering  <meyering@redhat.com>
27174
27175         test-exclude: avoid coreutils "make check" failure
27176         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
27177         just as in test-argmatch.c.
27178
27179 2009-08-13  Eric Blake  <ebb9@byu.net>
27180
27181         test-dup2: fix bad assumption
27182         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
27183         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
27184
27185         test-version-etc: fix CRLF portability issue
27186         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
27187         recognize \r.
27188         * tests/test-argp-version-etc-1.sh: Likewise.
27189
27190         getopt: update client modules
27191         * modules/argp (Depends-on): Use getopt-gnu.
27192         * modules/git-merge-changelog (Depends-on): Likewise.
27193         * modules/long-options (Depends-on): Likewise.
27194         * modules/xstrtol (Depends-on): Likewise.
27195
27196 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27197
27198         * tests/test-version-etc.sh: Don't fail on different
27199         project/version.  Don't fail on CRLF differences.  Rewrite to use
27200         multiple -e instead of multiple sed forks, suggested by Eric Blake
27201         <ebb9@byu.net>.
27202         * tests/test-argp-version-etc-1.sh: Likewise.
27203
27204 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27205
27206         * tests/test-version-etc.sh: Don't fail on different
27207         project/version.
27208
27209 2009-08-12  Bruno Haible  <bruno@clisp.org>
27210
27211         Tests for modules 'getopt-posix', 'getopt-gnu'.
27212         * modules/getopt-posix-tests: New file.
27213         * tests/test-getopt.c: New file.
27214         * tests/test-getopt.h: New file.
27215         * tests/test-getopt_long.h: New file.
27216
27217         New modules 'getopt-posix', 'getopt-gnu'.
27218         * modules/getopt-gnu: New file, renamed from modules/getopt.
27219         * modules/getopt-posix: New file.
27220         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
27221         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
27222         (gl_GETOPT): Remove macro.
27223         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
27224         Disable the test against BSD systems that declare optreset. Test
27225         against mingw bug. Test against lack of support of optional arguments
27226         on many platforms.
27227         * doc/glibc-headers/getopt.texi: Update module name and list of
27228         relevant platforms.
27229         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
27230         'getopt-gnu' and more portability problems.
27231         * NEWS: Mention the changes.
27232
27233 2009-08-12  Bruno Haible  <bruno@clisp.org>
27234
27235         Ensure that optarg etc. get declared by <unistd.h>.
27236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
27237         AC_USE_SYSTEM_EXTENSIONS.
27238         * modules/getopt (Depends-on): Add 'extensions'.
27239
27240 2009-08-12  Bruno Haible  <bruno@clisp.org>
27241
27242         Avoid test link errors.
27243         * modules/pipe-filter-ii-tests (Makefile.am): Define
27244         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
27245         * modules/pipe-filter-gi-tests (Makefile.am): Define
27246         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
27247         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27248
27249 2009-08-12  Bruno Haible  <bruno@clisp.org>
27250
27251         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
27252         gl_GETOPT_SUBSTITUTE before.
27253         (gl_GETOPT): Use it.
27254         * m4/argp.m4 (gl_ARGP): Update.
27255         Reported by Sergey Poznyakoff.
27256
27257         * m4/getopt.m4: Reorder macros.
27258         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
27259         (gl_GETOPT_SUBSTITUTE): Remove macro.
27260
27261 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27262
27263         Minor improvement in gitlog-to-changelog
27264
27265         * build-aux/gitlog-to-changelog: New option `--format' makes
27266         output format string configurable.
27267
27268 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27269
27270         Optimize exclude: use hash tables for non-wildcard patterns.
27271
27272         * lib/exclude.c: Include hash.h and mbuiter.h
27273         (struct exclude_pattern, exclude_segment): New data types.
27274         (struct exclude): Rewrite.
27275         (fnmatch_pattern_has_wildcards): New function.
27276         (new_exclude_segment, free_exclude_segment): New functions.
27277         (excluded_file_pattern_p, excluded_file_name_p): New functions.
27278         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
27279         * lib/exclude.h (is_fnmatch_pattern): New prototype.
27280         * modules/exclude: Depend on hash and mbuiter.
27281
27282         * modules/exclude-tests: New file.
27283         * tests/test-exclude.c: New file.
27284         * tests/test-exclude1.sh: New file.
27285         * tests/test-exclude2.sh: New file.
27286         * tests/test-exclude3.sh: New file.
27287         * tests/test-exclude4.sh: New file.
27288         * tests/test-exclude5.sh: New file.
27289         * tests/test-exclude6.sh: New file.
27290         * tests/test-exclude7.sh: New file.
27291
27292 2009-08-12  Bruno Haible  <bruno@clisp.org>
27293
27294         Ensure that getopt() gets declared by <unistd.h>.
27295         * lib/unistd.in.h: Conditionally include getopt.h.
27296         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
27297         Set GNULIB_UNISTD_H_GETOPT.
27298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27299         GNULIB_UNISTD_H_GETOPT.
27300         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
27301
27302 2009-08-12  Bruno Haible  <bruno@clisp.org>
27303
27304         Clarify logic.
27305         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
27306         gl_replace_getopt instead of GETOPT_H.
27307
27308 2009-08-12  Bruno Haible  <bruno@clisp.org>
27309
27310         * m4/getopt.m4: Add comments.
27311
27312 2009-08-12  Bruno Haible  <bruno@clisp.org>
27313
27314         Disable multithread support by default on Cygwin 1.5.x.
27315         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
27316         set gl_use_threads=no if not specified otherwise.
27317
27318 2009-08-11  Bruno Haible  <bruno@clisp.org>
27319
27320         Avoid compilation error on NetBSD 5.0.
27321         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
27322         * tests/test-stdio.c: Likewise.
27323         * tests/test-stdlib.c: Likewise.
27324         * tests/test-string.c: Likewise.
27325         * tests/test-unistd.c: Likewise.
27326         Reported by Greg Troxel <gdt@ir.bbn.com>
27327         at <https://savannah.gnu.org/support/?106973>.
27328
27329 2009-08-11  Bruno Haible  <bruno@clisp.org>
27330
27331         * modules/dup2-tests (Depends-on): Remove close.
27332
27333         Undo 2009-07-19 commit.
27334         * modules/acl-tests (Depends-on): Remove close.
27335         * modules/binary-io-tests (Depends-on): Likewise.
27336         * modules/closein-tests (Depends-on): Likewise.
27337         * modules/flock-tests (Depends-on): Likewise.
27338         * modules/fsync-tests (Depends-on): Likewise.
27339         * modules/lseek-tests (Depends-on): Likewise.
27340         * modules/pipe-tests (Depends-on): Likewise.
27341         * modules/posix_spawn-tests (Depends-on): Likewise.
27342         * modules/posix_spawnp-tests (Depends-on): Likewise.
27343         * modules/stat-time-tests (Depends-on): Likewise.
27344         * modules/yesno-tests (Depends-on): Likewise.
27345
27346 2009-08-10  Bruno Haible  <bruno@clisp.org>
27347
27348         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
27349
27350 2009-08-10  Bruno Haible  <bruno@clisp.org>
27351
27352         Fix a gcc warning.
27353         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
27354
27355 2009-08-10  Bruno Haible  <bruno@clisp.org>
27356
27357         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
27358         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
27359         not only the first time.
27360         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
27361         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
27362         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
27363         is 1, not only the the first time.
27364
27365 2009-08-10  Bruno Haible  <bruno@clisp.org>
27366
27367         Make it possible to use module 'gethostname' without module 'close'.
27368         * lib/unistd.in.h (close): Evoke a link error only if
27369         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27371         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27372         * modules/unistd (Makefile.am): Substitute
27373         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27374         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
27375         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27376         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27377         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27378         * modules/sys_ioctl (Makefile.am): Substitute
27379         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27380         * modules/socket (configure.ac): On native Windows, set
27381         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
27382         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27383         Reported by Sam Steingold <sds@gnu.org>.
27384
27385 2009-08-10  Bruno Haible  <bruno@clisp.org>
27386
27387         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
27388         * modules/ioctl (configure.ac): Likewise.
27389
27390 2009-08-10  Bruno Haible  <bruno@clisp.org>
27391
27392         Avoid collision between gnulib wrapper and libintl wrapper.
27393         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
27394         already defined in intl/printf.c.
27395         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
27396         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
27397
27398 2009-08-09  Bruno Haible  <bruno@clisp.org>
27399
27400         Make <sys/select.h> really self-contained, also on Solaris 10.
27401         * lib/sys_select.in.h: Include <string.h>.
27402         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
27403         Solaris 10 problem.
27404         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
27405         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
27406         Reported by Jim Meyering.
27407
27408 2009-08-09  Bruno Haible  <bruno@clisp.org>
27409
27410         Avoid warnings from 'aclocal' that are due to a use of macro name
27411         AM_XGETTEXT_OPTION that is not defined in automake.
27412         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
27413         automake.
27414         * modules/error (configure.ac): Likewise.
27415         * modules/propername (configure.ac): Likewise.
27416         * modules/vasprintf (configure.ac): Likewise.
27417         * modules/verror (configure.ac): Likewise.
27418         * modules/xprintf (configure.ac): Likewise.
27419         * modules/xvasprintf (configure.ac): Likewise.
27420
27421 2009-08-08  Bruno Haible  <bruno@clisp.org>
27422
27423         Avoid compilation error in C++ mode.
27424         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
27425         Reported by Sam Steingold <sds@gnu.org>.
27426
27427 2009-08-08  Bruno Haible  <bruno@clisp.org>
27428
27429         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
27430         for the various Unix platforms.
27431         * doc/posix-headers/limits.texi: Update platforms list regarding
27432         HOST_NAME_MAX.
27433         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27434
27435 2009-08-07  Jim Meyering  <meyering@redhat.com>
27436
27437         selinux-at: fix typo in a comment
27438         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
27439         Spotted by Paolo Bonzini.
27440
27441         selinux-at: remove redundant m4 code, add documentation
27442         * modules/selinux-at (configure.ac): Remove redundant code.
27443         LIB_SELINUX is already set via the dependent module, selinux-h.
27444         (Include): Add quotes around selinux-at.h.
27445         * lib/selinux-at.h: Add documentation.
27446         Reported by Bruno Haible in
27447         http://marc.info/?l=gnulib-bug&m=124958988300749
27448
27449 2009-08-07  Bruno Haible  <bruno@clisp.org>
27450
27451         Avoid link error on MacOS X 10.3 and 10.4.
27452         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
27453         on non-ELF systems.
27454         * lib/argp-pv.c (argp_program_version): Likewise.
27455         Reported by Simon Josefsson.
27456
27457 2009-08-07  Simon Josefsson  <simon@josefsson.org>
27458
27459         * tests/test-version-etc.sh: Use $EXEEXT.
27460
27461 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
27462
27463         update-copyright: update documentation to point to maint.mk
27464         * build-aux/update-copyright: Here.
27465
27466 2009-08-06  Jim Meyering  <meyering@redhat.com>
27467
27468         maint.mk: support update-copyright-local
27469         * top/maint.mk (update-copyright-local): Define place-holder.
27470         (update-copyright): Depend on $(update-copyright-local).
27471
27472 2009-08-06  Jim Meyering  <meyering@redhat.com>
27473
27474         selinux-at: new module
27475         Initially written for coreutils, this module will soon be
27476         used by findutils, too.
27477         * MODULES.html.sh [Misc]: Add selinux-at.
27478         * lib/selinux-at.h: New file, from coreutils.
27479         * lib/selinux-at.c: Likewise.
27480         * modules/selinux-at: Likewise.
27481         (License): Change from LGPL to GPL, since it depends
27482         on the GPL'd openat module.
27483
27484         doc: update README
27485         * README: Remove references to cogito.
27486         Remove cvs-repo-updating instructions from 2007.
27487         Don't imply that CVS is better if you have limited disk space.
27488
27489 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27490
27491         update-copyright: support C-style comments
27492         * build-aux/update-copyright: Implement and document.
27493         * tests/test-update-copyright.sh: Test.
27494
27495 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27496
27497         update-copyright: support omitted "(C)"
27498         * build-aux/update-copyright: Implement and document.  Also,
27499         allow variable whitespace before "(C)".
27500         * tests/test-update-copyright.sh: Test.
27501
27502 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27503
27504         update-copyright: don't trip on non-FSF copyright statements
27505         * build-aux/update-copyright: Fix so that the first correctly
27506         formatted FSF copyright statement is recognized no matter what
27507         appears before it.  Update documentation.
27508         * tests/test-update-copyright.sh: Test that.
27509
27510 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27511
27512         update-copyright: clean up code a little
27513         * build-aux/update-copyright: Append "_re" to the name of any
27514         variable holding a regular expression.
27515         Replace "old" and "new" with "stmt" in variable names.
27516         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
27517         handled correctly.
27518         Format code more consistently.
27519
27520 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27521
27522         update-copyright-tests: improve portability
27523         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
27524         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
27525
27526 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27527
27528         update-copyright: support @copyright{} and &copy;
27529         * build-aux/update-copyright: Implement and document.
27530         * tests/test-update-copyright.sh: Test.
27531
27532 2009-08-04  Jim Meyering  <meyering@redhat.com>
27533
27534         update-copyright-tests: correctly test EOL=\r\n handling
27535         * tests/test-update-copyright.sh: Put \r at the end of some lines
27536         for the dos-eol tests.  Based on a patch by Joel E. Denny.
27537
27538         maint.mk: make update-copyright exclusion list more configurable
27539         * top/maint.mk (update-copyright): Default to excluding COPYING,
27540         but allow an override, in case someone does want to update that file.
27541
27542         maint.mk: don't update copyright date in COPYING
27543         * top/maint.mk (update-copyright): Exclude COPYING.
27544
27545         maint.mk: add a copyright-updating rule
27546         * top/maint.mk (update-copyright): New rule.
27547         Derived from coreutils/Makefile.am.
27548
27549         update-copyright: rename some variables
27550         * build-aux/update-copyright: Rename a few variables for clarity.
27551         Tweak syntax.  List Joel E. Denny as coauthor.
27552
27553 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27554
27555         update-copyright: fix bug for 2-digit last year and add tests
27556         * build-aux/update-copyright: Fix bug.
27557         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
27558         specified.
27559         * modules/update-copyright-tests: New
27560         * tests/test-update-copyright.sh: New.
27561
27562 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27563
27564         update-copyright: handle leading tabs in line prefix
27565         * build-aux/update-copyright: Count leading tabs as 8 spaces
27566         when computing margin.  This helps with the formatting of
27567         ChangeLogs, for example.
27568         Fix documentation a little.
27569
27570 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27571
27572         update-copyright: support EOL=\r\n
27573         * build-aux/update-copyright: Implement that.
27574
27575 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27576
27577         update-copyright: automatically format copyright statements
27578         * build-aux/update-copyright: Implement that.
27579         Also, be a little more predictable and safer by always failing
27580         when the full copyright format is not perfectly recognized as an
27581         unbroken whole.  Discussed at
27582         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
27583         Rewrite documentation.
27584
27585 2009-08-03  Bruno Haible  <bruno@clisp.org>
27586
27587         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
27588
27589 2009-08-02  Bruno Haible  <bruno@clisp.org>
27590
27591         Tests for module 'uname'.
27592         * modules/uname-tests: New file.
27593         * tests/test-uname.c: New file.
27594
27595         New module 'uname'.
27596         * lib/uname.c: New file.
27597         * m4/uname.m4: New file.
27598         * modules/uname: New file.
27599         * doc/posix-functions/uname.texi: Mention the new module.
27600
27601 2009-08-02  Bruno Haible  <bruno@clisp.org>
27602
27603         Tests for module 'sys_utsname'.
27604         * modules/sys_utsname-tests: New file.
27605         * tests/test-sys_utsname.c: New file.
27606
27607         New module 'sys_utsname'.
27608         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
27609         * m4/sys_utsname_h.m4: New file.
27610         * modules/sys_utsname: New file.
27611         * doc/posix-headers/sys_utsname.texi: Mention the new module.
27612
27613 2009-08-02  Bruno Haible  <bruno@clisp.org>
27614
27615         Implicitly initialize the sockets library.
27616         * lib/gethostname.c: Include sockets.h.
27617         (rpl_gethostname): Invoke gl_sockets_startup.
27618         * lib/socket.c: Include sockets.h.
27619         (rpl_socket): Invoke gl_sockets_startup.
27620         * modules/gethostname (Depends-on): Add sockets.
27621         * modules/socket (Depends-on): Likewise.
27622         * tests/test-poll.c: Don't include sockets.h.
27623         (main): Don't invoke gl_sockets_startup.
27624         * tests/test-select.c: Don't include sockets.h.
27625         (main): Don't invoke gl_sockets_startup.
27626
27627 2009-08-02  Bruno Haible  <bruno@clisp.org>
27628
27629         Allow multiple calls to gl_sockets_startup.
27630         * lib/sockets.c (initialized_sockets_version): New variable.
27631         (gl_sockets_startup): Do nothing if already called for this or a higher
27632         version.
27633         (gl_sockets_cleanup): Reset initialized_sockets_version.
27634
27635 2009-08-03  Simon Josefsson  <simon@josefsson.org>
27636
27637         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
27638         different project/version.
27639
27640 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
27641             Bruno Haible  <bruno@clisp.org>
27642
27643         Tests for module 'pipe-filter-gi'.
27644         * modules/pipe-filter-gi-tests: New file.
27645         * tests/test-pipe-filter-gi1.sh: New file.
27646         * tests/test-pipe-filter-gi1.c: New file.
27647         * tests/test-pipe-filter-gi2.sh: New file.
27648         * tests/test-pipe-filter-gi2-main.c: New file.
27649         * tests/test-pipe-filter-gi2-child.c: New file.
27650
27651         New module 'pipe-filter-gi'.
27652         * lib/pipe-filter-gi.c: New file.
27653         * modules/pipe-filter-gi: New file.
27654
27655 2009-08-02  Bruno Haible  <bruno@clisp.org>
27656             Paolo Bonzini  <bonzini@gnu.org>
27657
27658         Tests for module 'pipe-filter-ii'.
27659         * modules/pipe-filter-ii-tests: New file.
27660         * tests/test-pipe-filter-ii1.sh: New file.
27661         * tests/test-pipe-filter-ii1.c: New file.
27662         * tests/test-pipe-filter-ii2.sh: New file.
27663         * tests/test-pipe-filter-ii2-main.c: New file.
27664         * tests/test-pipe-filter-ii2-child.c: New file.
27665
27666         New module 'pipe-filter-ii'.
27667         * lib/pipe-filter.h: New file.
27668         * lib/pipe-filter-ii.c: New file.
27669         * lib/pipe-filter-aux.h: New file.
27670         * modules/pipe-filter-ii: New file.
27671
27672 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27673
27674         * lib/gc-libgcrypt.c: Change copyright to FSF.
27675         * lib/gc-gnulib.c: Likewise.
27676
27677 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
27678
27679         * lib/gethostname.c: Include limits.h.
27680
27681 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27682             Bruno Haible  <bruno@clisp.org>
27683
27684         Ensure HOST_NAME_MAX as part of the gethostname module.
27685         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
27686         define also HOST_NAME_MAX.
27687         * tests/test-gethostname.c: Include <limits.h>.
27688         (main): Check also HOST_NAME_MAX.
27689         * doc/posix-headers/limits.texi: Document the mingw problem.
27690
27691 2009-08-02  Bruno Haible  <bruno@clisp.org>
27692
27693         * lib/gethostname.c (gethostname): Fix handling of large len argument.
27694         Add comments.
27695
27696 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27697
27698         * lib/gethostname.c: Add Windows wrapper.
27699         * m4/gethostname.m4: Look for gethostname in -lws2_32.
27700         * modules/gethostname: Depend on sys_socket & errno, for also
27701         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
27702         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
27703
27704 2009-07-31  Jim Meyering  <meyering@redhat.com>
27705
27706         getloadavg: fix symbol name in comment
27707         * lib/getloadavg.c: Correct a typo I introduced when adding
27708         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
27709         Matt Kraai spotted the problem.
27710
27711 2009-07-29  Matt Kraai  <mkraai@beckman.com>
27712
27713         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
27714         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
27715         code also if ! defined N_NAME_POINTER.
27716         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
27717         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
27718         but the n_name member is a 12-byte array.
27719
27720 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
27721
27722         update-copyright: generalize comment handling
27723         * build-aux/update-copyright: Handle copyright statements
27724         within more comment styles.
27725         Document usage.
27726         Report any file with an external copyright holder or parse failure.
27727
27728 2009-07-29  Jim Meyering  <meyering@redhat.com>
27729
27730         mktime: correct setting of REPLACE_MKTIME
27731         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
27732
27733         update-copyright: new module
27734         * modules/update-copyright: New file.
27735         * build-aux/update-copyright: New file.
27736         * MODULES.html.sh (maint+release support): Add update-copyright.
27737
27738 2009-07-27  Bruno Haible  <bruno@clisp.org>
27739
27740         Fix compilation error when <ctime> is used and mktime is replaced.
27741         * lib/time.in.h (mktime): New declaration.
27742         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
27743         REPLACE_MKTIME instead of defining mktime in config.h.
27744         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
27745         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
27746         Reported by Ross McFarland <rwmcfa1@neces.com>.
27747
27748 2009-07-27  Bruno Haible  <bruno@clisp.org>
27749
27750         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
27751         Reported by Matt Kraai <mkraai@beckman.com>.
27752
27753 2009-07-25  Jim Meyering  <meyering@redhat.com>
27754
27755         maint.mk: avoid warnings about missing files
27756         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
27757         diagnostic when .prev-version does not exist.
27758         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
27759         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
27760         nonexistent cfg.mk.
27761         Suggestions from Simon Josefsson.
27762
27763 2009-07-25  Bruno Haible  <bruno@clisp.org>
27764
27765         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
27766         defined as macros. Needed on QNX 6.4.1.
27767         Reported by Matt Kraai <mkraai@beckman.com>.
27768
27769 2009-07-23  Jim Meyering  <meyering@redhat.com>
27770
27771         maint.mk: invoke "make dist" with a working value of XZ_OPT
27772         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
27773
27774 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
27775
27776         Make fseeko.c compile on QNX.
27777         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
27778
27779 2009-07-22  Peter Simons  <simons@cryp.to>
27780
27781         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
27782         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
27783         * lib/md4.h: Likewise.
27784         * lib/md5.h: Likewise.
27785         * lib/sha1.h: Likewise.
27786         * lib/sha256.h: Likewise.
27787         * lib/sha512.h: Likewise.
27788
27789         tests-sha1: don't assign literal string to 'char *' variable
27790         * tests/test-sha1.c (main): Declare locals with "const" to match
27791         attributes of the right hand side.
27792
27793 2009-07-21  Eric Blake  <ebb9@byu.net>
27794
27795         dup2: fix more mingw problems
27796         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
27797         fd to itself.
27798         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27799         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
27800         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
27801         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
27802         care of mingw bugs.
27803
27804 2009-07-21  Jim Meyering  <meyering@redhat.com>
27805
27806         vc-list-files: avoid failure when /bin/sh is dash
27807         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
27808         On some Debian based systems, /bin/sh is a symlink to dash, and running
27809         this command would omit the "/" following each 'tests' prefix:
27810           dash -x build-aux/vc-list-files -C . tests
27811         That is because bash and dash work differently:
27812           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
27813           bash ok
27814           dash odd
27815
27816 2009-07-21  Eric Blake  <ebb9@byu.net>
27817
27818         dup2-tests: test previous patch
27819         * modules/dup2-tests: New file.
27820         * tests/test-dup2.c: Likewise.
27821         * tests/test-open.c (main): Avoid unspecified behavior.
27822         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
27823         test.
27824
27825         dup2: work around mingw and cygwin 1.5 bug
27826         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
27827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27828         * modules/unistd (Makefile.am): Substitute it.
27829         * lib/unistd.in.h (dup2): Declare the replacement.
27830         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
27831         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
27832         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
27833         * modules/execute (Depends-on): Add dup2.
27834         * modules/fseterr (Depends-on): Likewise.
27835         * modules/pipe (Depends-on): Likewise.
27836         * modules/posix_spawn-internal (Depends-on): Likewise.
27837
27838 2009-07-21  Bruno Haible  <bruno@clisp.org>
27839
27840         * modules/.gitattributes: New file.
27841
27842 2009-07-20  Bruno Haible  <bruno@clisp.org>
27843
27844         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
27845         (main): Use it.
27846
27847 2009-07-20  Eric Blake  <ebb9@byu.net>
27848
27849         test-pipe: make a bit more robust.
27850         * tests/test-pipe.c (myerr): Allow error messages regardless of
27851         what we do to stderr.
27852         (test_pipe): Rearrange to avoid deadlock.
27853         (child_main): Try a larger read, to ensure we avoided deadlock.
27854         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
27855         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
27856         if misused.
27857
27858 2009-07-19  Jim Meyering  <meyering@redhat.com>
27859
27860         fts: avoid false-positive cycle-detection
27861         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
27862         for each new command line argument.
27863
27864 2009-07-19  Bruno Haible  <bruno@clisp.org>
27865
27866         Fix build error on mingw with the modules sys_select and unistd.
27867         * modules/acl-tests (Depends-on): Add close.
27868         * modules/binary-io-tests (Depends-on): Likewise.
27869         * modules/closein-tests (Depends-on): Likewise.
27870         * modules/flock-tests (Depends-on): Likewise.
27871         * modules/fsync-tests (Depends-on): Likewise.
27872         * modules/lseek-tests (Depends-on): Likewise.
27873         * modules/pipe-tests (Depends-on): Likewise.
27874         * modules/posix_spawn-tests (Depends-on): Likewise.
27875         * modules/posix_spawnp-tests (Depends-on): Likewise.
27876         * modules/stat-time-tests (Depends-on): Likewise.
27877         * modules/yesno-tests (Depends-on): Likewise.
27878
27879 2009-07-19  Bruno Haible  <bruno@clisp.org>
27880
27881         Unify conditionals.
27882         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
27883         macros, not at the compiler macros.
27884         * lib/pipe.c: Likewise.
27885         * lib/execute.c: Likewise.
27886         * lib/spawni.c: Likewise.
27887
27888 2009-07-19  Bruno Haible  <bruno@clisp.org>
27889
27890         Fix handling of closed stdin/stdout/stderr on mingw.
27891         * lib/w32spawn.h: Include unistd.h.
27892         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
27893         file descriptor with O_NOINHERIT flag.
27894         (fd_safer_noinherit): New function, based on fd-safer.c.
27895         (dup_safer_noinherit): New function, based on dup-safer.c.
27896         (undup_safer_noinherit): New function.
27897         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
27898         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
27899         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
27900         instead of fd_safer.
27901         * tests/test-pipe.c: Include <windows.h>.
27902         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
27903         result.
27904
27905         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
27906         from main.
27907         (test_pipe): Pass an extra argument for disambiguation.
27908         (main): Invoke parent_main or child_main.
27909
27910         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
27911         consistently.
27912
27913 2009-07-18  Eric Blake  <ebb9@byu.net>
27914
27915         test-pipe: fix mingw build
27916         * tests/test-pipe.c (main): Avoid fcntl on mingw.
27917
27918 2009-07-18  Bruno Haible  <bruno@clisp.org>
27919
27920         * modules/pipe-tests (Makefile.am): Fix typo.
27921
27922 2009-07-18  Eric Blake  <ebb9@byu.net>
27923
27924         error: fix mingw build
27925         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
27926         Reported by Bruno Haible.
27927
27928         error: avoid undefined use of stdout
27929         * lib/error.c (error, error_at_line): Check that fd 1 is open
27930         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
27931         is handling faults and the close_stdout module wants to report the
27932         detection of closed stdout as an error.
27933
27934 2009-07-17  Eric Blake  <ebb9@byu.net>
27935
27936         pipe: be robust in face of closed fds
27937         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
27938         should cause child to misbehave.
27939         * modules/pipe-tests: New module.
27940         * tests/test-pipe.c: New file.
27941         * tests/test-pipe.sh: New file.
27942         Reported by Akim Demaille.
27943
27944 2009-07-14  Bruno Haible  <bruno@clisp.org>
27945
27946         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
27947         Reported by anonymous kc.
27948
27949 2009-07-07  Jim Meyering  <meyering@redhat.com>
27950
27951         maint.mk: don't look for translatable strings in *.m4 or *.mk
27952         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
27953         when searching for translatable strings.
27954
27955 2009-07-05  Jim Meyering  <meyering@redhat.com>
27956
27957         remove superfluous parentheses in STREQ definition
27958         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
27959         * lib/getugroups.c (STREQ): Likewise.
27960         * lib/fnmatch.c (STREQ): Likewise.
27961         Spotted by Bruno Haible.
27962
27963 2009-07-04  Jim Meyering  <meyering@redhat.com>
27964
27965         argv-iter: new module
27966         * MODULES.html.sh: Add argv-iter.
27967         * lib/argv-iter.c, lib/argv-iter.h: New files.
27968         * modules/argv-iter: New file.
27969         * modules/argv-iter-tests: New file.
27970         * tests/test-argv-iter.c: Test it.
27971
27972 2009-07-04  Bruno Haible  <bruno@clisp.org>
27973
27974         Fix assertion.
27975         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
27976         contains more exact copies of a given entry than file2, leave the extra
27977         copies unpaired rather than aborting.
27978         Reported by Eric Blake.
27979
27980 2009-07-02  Bruno Haible  <bruno@clisp.org>
27981
27982         Speedup git-merge-changelog for git cherry-pick.
27983         * lib/git-merge-changelog.c (struct entries_mapping): New type.
27984         (entries_mapping_get): New function, extracted from compute_mapping.
27985         (entries_mapping_reverse_get): New function.
27986         (compute_mapping): Add a 'full' argument. Return the result in a
27987         'struct entries_mapping'.
27988         (main): Update. Access the mappings through entries_mapping_get.
27989         Reported by Eric Blake.
27990
27991 2009-07-02  Bruno Haible  <bruno@clisp.org>
27992
27993         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
27994         best_i.
27995
27996 2009-07-02  Bruno Haible  <bruno@clisp.org>
27997
27998         Speed up approximate search for matching ChangeLog entries.
27999         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
28000         argument. Call fstrcmp_bounded instead of fstrcmp.
28001         (compute_mapping, try_split_merged_entry, main): Update callers.
28002
28003 2009-07-02  Bruno Haible  <bruno@clisp.org>
28004
28005         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
28006
28007 2009-06-30  Bruno Haible  <bruno@clisp.org>
28008
28009         Reduce the number of uc_is_cased calls.
28010         * lib/unicase.h (casing_suffix_context_t): Add
28011         'first_char_except_ignorable' field.
28012         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
28013         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
28014         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
28015         Update initializer.
28016         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
28017         case-ignorable characters.
28018         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
28019         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
28020         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
28021         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
28022         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
28023
28024 2009-06-30  Bruno Haible  <bruno@clisp.org>
28025
28026         Tests for module 'unicase/ignorable'.
28027         * modules/unicase/ignorable-tests: New file.
28028         * tests/unicase/test-ignorable.c: New file, generated by
28029         gen-uni-tables.
28030
28031         Tests for module 'unicase/cased'.
28032         * modules/unicase/cased-tests: New file.
28033         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
28034         * tests/unicase/test-predicate-part1.h: New file, derived from
28035         tests/unictype/test-predicate-part1.h.
28036         * tests/unicase/test-predicate-part2.h: New file, same as
28037         tests/unictype/test-predicate-part2.h.
28038
28039         Fix evaluation of "Before C" condition of FINAL_SIGMA.
28040         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
28041         (output_casing_properties): New function.
28042         (main): Call it.
28043         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
28044         * lib/unicase/cased.c: Include unictype/bitmap.h.
28045         (uc_is_cased): Define through a bitmap lookup.
28046         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
28047         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
28048         (uc_is_case_ignorable): Define through a bitmap lookup.
28049         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
28050         lib/unictype/bitmap.h.
28051         (Depends-on): Add inline. Clean up.
28052         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
28053         lib/unictype/bitmap.h.
28054         (Depends-on): Add inline. Clean up.
28055         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
28056         recognition.
28057         * tests/unicase/test-u16-tolower.c (main): Likewise.
28058         * tests/unicase/test-u32-tolower.c (main): Likewise.
28059
28060 2009-06-30  Bruno Haible  <bruno@clisp.org>
28061
28062         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
28063         * lib/unicase/u16-casemap.c: Likewise.
28064         * lib/unicase/u32-casemap.c: Likewise.
28065
28066 2009-06-29  Bruno Haible  <bruno@clisp.org>
28067
28068         Define u32_casefold as a wrapper around u32_ct_casefold.
28069         * lib/unicase/u32-casefold.c: Update.
28070         * modules/unicase/u32-casefold (Depends-on): Add
28071         unicase/u32-ct-casefold, unicase/empty-prefix-context,
28072         unicase/empty-suffix-context. Clean up.
28073
28074         Define u16_casefold as a wrapper around u16_ct_casefold.
28075         * lib/unicase/u16-casefold.c: Update.
28076         * modules/unicase/u16-casefold (Depends-on): Add
28077         unicase/u16-ct-casefold, unicase/empty-prefix-context,
28078         unicase/empty-suffix-context. Clean up.
28079
28080         Define u8_casefold as a wrapper around u8_ct_casefold.
28081         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
28082         * lib/unicase/u8-casefold.c: Update.
28083         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
28084         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28085
28086         Define u32_totitle as a wrapper around u32_ct_totitle.
28087         * lib/unicase/u32-totitle.c: Update.
28088         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
28089         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28090
28091         Define u16_totitle as a wrapper around u16_ct_totitle.
28092         * lib/unicase/u16-totitle.c: Update.
28093         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
28094         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28095
28096         Define u8_totitle as a wrapper around u8_ct_totitle.
28097         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
28098         functions.
28099         (FUNC): Delegate to U_CT_TOTITLE.
28100         * lib/unicase/u8-totitle.c: Update.
28101         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
28102         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28103
28104         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
28105         invocation.
28106         * modules/unicase/u32-tolower (Depends-on): Add
28107         unicase/empty-prefix-context, unicase/empty-suffix-context.
28108
28109         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
28110         invocation.
28111         * modules/unicase/u16-tolower (Depends-on): Add
28112         unicase/empty-prefix-context, unicase/empty-suffix-context.
28113
28114         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
28115         * modules/unicase/u8-tolower (Depends-on): Add
28116         unicase/empty-prefix-context, unicase/empty-suffix-context.
28117
28118         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
28119         invocation.
28120         * modules/unicase/u32-toupper (Depends-on): Add
28121         unicase/empty-prefix-context, unicase/empty-suffix-context.
28122
28123         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
28124         invocation.
28125         * modules/unicase/u16-toupper (Depends-on): Add
28126         unicase/empty-prefix-context, unicase/empty-suffix-context.
28127
28128         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
28129         * modules/unicase/u8-toupper (Depends-on): Add
28130         unicase/empty-prefix-context, unicase/empty-suffix-context.
28131
28132         New module 'unicase/u32-ct-casefold'.
28133         * lib/unicase/u32-ct-casefold.c: New file.
28134         * modules/unicase/u32-ct-casefold: New file.
28135
28136         New module 'unicase/u16-ct-casefold'.
28137         * lib/unicase/u16-ct-casefold.c: New file.
28138         * modules/unicase/u16-ct-casefold: New file.
28139
28140         New module 'unicase/u8-ct-casefold'.
28141         * lib/unicase/u8-ct-casefold.c: New file.
28142         * lib/unicase/u-ct-casefold.h: New file, derived from
28143         lib/unicase/u-casefold.h.
28144         * modules/unicase/u8-ct-casefold: New file.
28145
28146         New module 'unicase/u32-ct-totitle'.
28147         * lib/unicase/u32-ct-totitle.c: New file.
28148         * modules/unicase/u32-ct-totitle: New file.
28149
28150         New module 'unicase/u16-ct-totitle'.
28151         * lib/unicase/u16-ct-totitle.c: New file.
28152         * modules/unicase/u16-ct-totitle: New file.
28153
28154         New module 'unicase/u8-ct-totitle'.
28155         * lib/unicase/u8-ct-totitle.c: New file.
28156         * lib/unicase/u-ct-totitle.h: New file, derived from
28157         lib/unicase/u-totitle.h.
28158         * modules/unicase/u8-ct-totitle: New file.
28159
28160         New module 'unicase/u32-ct-tolower'.
28161         * lib/unicase/u32-ct-tolower.c: New file.
28162         * modules/unicase/u32-ct-tolower: New file.
28163
28164         New module 'unicase/u16-ct-tolower'.
28165         * lib/unicase/u16-ct-tolower.c: New file.
28166         * modules/unicase/u16-ct-tolower: New file.
28167
28168         New module 'unicase/u8-ct-tolower'.
28169         * lib/unicase/u8-ct-tolower.c: New file.
28170         * modules/unicase/u8-ct-tolower: New file.
28171
28172         New module 'unicase/u32-ct-toupper'.
28173         * lib/unicase/u32-ct-toupper.c: New file.
28174         * modules/unicase/u32-ct-toupper: New file.
28175
28176         New module 'unicase/u16-ct-toupper'.
28177         * lib/unicase/u16-ct-toupper.c: New file.
28178         * modules/unicase/u16-ct-toupper: New file.
28179
28180         New module 'unicase/u8-ct-toupper'.
28181         * lib/unicase/u8-ct-toupper.c: New file.
28182         * modules/unicase/u8-ct-toupper: New file.
28183
28184         Add context arguments to u*_casemap functions.
28185         * lib/unicase/unicasemap.h: Include unicase.h.
28186         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
28187         suffix_context arguments.
28188         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
28189         functions.
28190         (FUNC): Add prefix_context and suffix_context arguments. Use
28191         uc_is_cased and uc_is_case_ignorable.
28192         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
28193         * lib/unicase/u16-casemap.c: Likewise.
28194         * lib/unicase/u32-casemap.c: Likewise.
28195         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
28196         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28197         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
28198         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28199         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
28200         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28201
28202         New module 'unicase/u32-suffix-context'.
28203         * lib/unicase/u32-suffix-context.c: New file.
28204         * modules/unicase/u32-suffix-context: New file.
28205
28206         New module 'unicase/u16-suffix-context'.
28207         * lib/unicase/u16-suffix-context.c: New file.
28208         * modules/unicase/u16-suffix-context: New file.
28209
28210         New module 'unicase/u8-suffix-context'.
28211         * lib/unicase/u8-suffix-context.c: New file.
28212         * lib/unicase/u-suffix-context.h: New file.
28213         * modules/unicase/u8-suffix-context: New file.
28214
28215         New module 'unicase/empty-suffix-context'.
28216         * lib/unicase/empty-suffix-context.c: New file.
28217         * modules/unicase/empty-suffix-context: New file.
28218
28219         New module 'unicase/u32-prefix-context'.
28220         * lib/unicase/u32-prefix-context.c: New file.
28221         * modules/unicase/u32-prefix-context: New file.
28222
28223         New module 'unicase/u16-prefix-context'.
28224         * lib/unicase/u16-prefix-context.c: New file.
28225         * modules/unicase/u16-prefix-context: New file.
28226
28227         New module 'unicase/u8-prefix-context'.
28228         * lib/unicase/u8-prefix-context.c: New file.
28229         * lib/unicase/u-prefix-context.h: New file.
28230         * lib/unicase/context.h: New file.
28231         * modules/unicase/u8-prefix-context: New file.
28232
28233         New module 'unicase/empty-prefix-context'.
28234         * lib/unicase/empty-prefix-context.c: New file.
28235         * modules/unicase/empty-prefix-context: New file.
28236
28237         New module 'unicase/ignorable'.
28238         * lib/unicase/ignorable.c: New file.
28239         * modules/unicase/ignorable: New file.
28240
28241         New module 'unicase/cased'.
28242         * lib/unicase/caseprop.h: New file.
28243         * lib/unicase/cased.c: New file.
28244         * modules/unicase/cased: New file.
28245
28246         New functions for case mapping of substrings.
28247         * lib/unicase.h (casing_prefix_context_t): New type.
28248         (unicase_empty_prefix_context): New variable.
28249         (u8_casing_prefix_context, u16_casing_prefix_context,
28250         u32_casing_prefix_context, u8_casing_prefixes_context,
28251         u16_casing_prefixes_context, u32_casing_prefixes_context): New
28252         declarations.
28253         (casing_suffix_context_t): New type.
28254         (unicase_empty_suffix_context): New variable.
28255         (u8_casing_suffix_context, u16_casing_suffix_context,
28256         u32_casing_suffix_context, u8_casing_suffixes_context,
28257         u16_casing_suffixes_context, u32_casing_suffixes_context,
28258         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
28259         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
28260         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
28261         declarations.
28262
28263 2009-06-28  Jim Meyering  <meyering@redhat.com>
28264
28265         boostrap: indent only with spaces
28266         * build-aux/bootstrap: Indent only with spaces, never TABs.
28267
28268         bootstrap: split long lines
28269         * build-aux/bootstrap: Keep line length < 80.
28270
28271         bootstrap: sync from coreutils
28272         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
28273         just as autoreconf does.  Verify a list of prerequisite
28274         package-name,version-number pairs if defined in bootstrap.conf.
28275         Refer to README-prereq, if prerequisites are not satisfied.
28276
28277 2009-06-27  Eric Blake  <ebb9@byu.net>
28278
28279         tests: add test for bogus NULL definition
28280         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
28281         * tests/test-stdlib.c: Likewise.
28282         * tests/test-string.c: Likewise.
28283         * tests/test-locale.c: Likewise.
28284         * tests/test-unistd.c: Likewise.
28285         * modules/stdio-tests (Depends-on): Add verify.
28286         * modules/stdlib-tests (Depends-on): Likewise.
28287         * modules/string-tests (Depends-on): Likewise.
28288         * modules/locale-tests (Depends-on): Likewise.
28289         * modules/unistd-tests (Depends-on): Likewise.
28290
28291 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
28292
28293         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
28294         self-explaining comment.
28295         * m4/selinux-selinux-h: Update serial.
28296         (gl_LIBSELINUX): New macro, adding a warning for missing development
28297         packages to code extracted from...
28298         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
28299         Add warning for missing development packages here, too.
28300
28301 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
28302
28303         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
28304
28305 2009-06-25  Eric Blake  <ebb9@byu.net>
28306
28307         version-etc: fix regression
28308         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
28309         gcc.
28310         (version_etc): Use it, to catch bugs with trailing NULL.
28311         * lib/version-etc.c (version_etc_arn): Delete unused argument.
28312         (version_etc_va): Fix logic bug.
28313         * modules/version-etc-tests: Add test.
28314         * tests/test-version-etc.c: New file.
28315         * tests/test-version-etc.sh: Likewise.
28316
28317 2009-06-25  Sam Steingold  <sds@gnu.org>
28318
28319         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
28320         mbtowc declaration.
28321
28322 2009-06-25  Eric Blake  <ebb9@byu.net>
28323
28324         fpurge: migrate into <stdio.h>
28325         * lib/fpurge.h: Delete...
28326         * lib/stdio.in.h (fpurge): ...and declare here, instead.
28327         * lib/fpurge.c (fpurge): Change declaring header.
28328         * modules/fpurge (Files): Drop deleted file.
28329         (Depends-on): Add stdio.
28330         (configure.ac): Set witness.
28331         * modules/stdio (Makefile.am): Support fpurge macros.
28332         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28333         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
28334         * lib/fflush.c: Update client.
28335         * tests/test-fpurge.c: Likewise.
28336         * NEWS: Mention the change.
28337
28338 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28339
28340         * lib/argp-version-etc.c (program_authors): Add const
28341         qualifier.
28342         * lib/version-etc.c: Fix typos in the comments.
28343         * modules/argp-version-etc: Depends on version-etc.
28344
28345 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28346
28347         argp-version-etc: new module.
28348
28349         * lib/argp-version-etc.c: New file.
28350         * lib/argp-version-etc.h: New file.
28351         * modules/argp-version-etc: New file.
28352         * modules/argp-version-etc-tests: New file.
28353         * tests/test-argp-version-etc.c: New test.
28354         * tests/test-argp-version-etc-1.sh: New test.
28355
28356 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28357
28358         Provide additional interfaces and documentation for version-etc
28359         module.
28360
28361         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
28362         interfaces.
28363         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
28364         prototypes.
28365
28366 2009-06-24  Bruno Haible  <bruno@clisp.org>
28367
28368         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
28369         HAVE_LIB${NAME} macro.
28370         Reported by Sam Steingold <sds@gnu.org>.
28371
28372 2009-06-23  Simon Josefsson  <simon@josefsson.org>
28373
28374         * modules/hash-tests (test_hash_LDADD): Link to libintl when
28375         needed.
28376
28377 2009-06-21  Bruno Haible  <bruno@clisp.org>
28378
28379         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
28380         work.
28381         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
28382         together with LIB${NAME}, LTLIB${NAME}.
28383         Reported by Sam Steingold <sds@gnu.org>.
28384
28385 2009-06-20  Jim Meyering  <meyering@redhat.com>
28386
28387         tests: make sc_require_test_exit_idiom more generic
28388         * top/maint.mk (Exit_witness_file): New overridable variable.
28389         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
28390         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
28391
28392 2009-06-19  Jim Meyering  <meyering@redhat.com>
28393
28394         hash: reverse order of src/dst parameters in an internal interface
28395         * lib/hash.c (transfer_entries): Reverse order of parameters to
28396         put DST before SRC.  Adjust callers.
28397
28398         tests: test-hash: avoid wholesale duplication
28399         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
28400         Instead, use a loop and add a single conditional.
28401
28402         tests: test-hash: allow seed selection via a command line argument
28403         * tests/test-hash.c (get_seed): New function.
28404         (main): Use it.
28405
28406 2009-06-19  Eric Blake  <ebb9@byu.net>
28407
28408         hash: avoid memory leak on allocation failure
28409         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
28410         failure.  Factor repeated algorithm...
28411         (transfer_entries): ...into new helper routine.
28412         (hash_delete): React to hash_rehash return value.
28413
28414         hash: reduce memory pressure in hash_rehash no-op case
28415         * lib/hash.c (next_prime): Avoid overflow.
28416         (hash_initialize): Factor bucket size computation...
28417         (compute_bucket_size): ...into new helper function.
28418         (hash_rehash): Use new function and open coding to reduce memory
28419         pressure, and avoid a memory leak in USE_OBSTACK code.
28420         Reported by Jim Meyering.
28421
28422 2009-06-18  Eric Blake  <ebb9@byu.net>
28423
28424         hash: make rotation more obvious
28425         * modules/hash (Depends-on): Add bitrotate and stdint.
28426         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
28427         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
28428         (SIZE_MAX): Rely on headers for definition.
28429         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
28430         (raw_hasher): Use rotr_sz.
28431         Suggested by Jim Meyering.
28432
28433         hash: fix memory leak in last patch
28434         * lib/hash.c (hash_rehash): Avoid memory leak.
28435
28436         hash: avoid no-op rehashing
28437         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
28438
28439         hash: provide default callback functions
28440         * lib/hash.c (raw_hasher, raw_comparator): New functions.
28441         (hash_initialize): Use them as defaults.
28442         * tests/test-hash.c (main): Test this.
28443
28444         hash: minor optimization
28445         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
28446         when possible.
28447         (hash_initialize): Document this promise.
28448         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
28449         * tests/test-hash.c (hash_compare_strings): Test this.
28450
28451 2009-06-18  Bruno Haible  <bruno@clisp.org>
28452
28453         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
28454         going to be replaced anyway.
28455
28456 2009-06-18  Bruno Haible  <bruno@clisp.org>
28457
28458         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
28459         in one place.
28460         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
28461         be replaced anyway.
28462
28463 2009-06-18  Eric Blake  <ebb9@byu.net>
28464
28465         hash: check for resize before insertion
28466         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
28467         threshold before insertion, so that a pathological hash_rehash
28468         that fills every bucket can still trigger another rehash.
28469
28470 2009-06-18  Jim Meyering  <meyering@redhat.com>
28471
28472         hash-tests: add a loop around the small tests
28473         * tests/test-hash.c (main): Repeat small tests with selected
28474         small initial table sizes.
28475
28476 2009-06-17  Eric Blake  <ebb9@byu.net>
28477
28478         hash: minor cleanups
28479         * lib/hash.h (hash_entry): Make opaque, by moving...
28480         * lib/hash.c (hash_entry): ...here.
28481         (hash_insert): Clarify restrictions on what can be inserted.
28482         (hash_get_next): Clarify when it is safe to remove an element
28483         during traversal.
28484         (check_tuning): Skip verification when tuning is known safe.
28485         (hash_initialize): Clarify restrictions on tuning.
28486
28487 2009-06-17  Jim Meyering  <jim@meyering.net>
28488         and Eric Blake  <ebb9@byu.net>
28489
28490         hash-tests: new module
28491         * modules/hash-tests: New file.
28492         * tests/test-hash.c: New file.
28493
28494 2009-06-17  Eric Blake  <ebb9@byu.net>
28495
28496         strstr-simple: document new module
28497         * MODULES.html.sh: Document new module.
28498
28499         strstr, strcasestr: replace on platforms with broken memchr
28500         * modules/strstr: Split into...
28501         * modules/strstr-simple: ...new module that does not care about
28502         performance, but does care about glibc bug.
28503         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
28504         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
28505         if platform memchr is broken, per Debian bug 521737.
28506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
28507         memchr.
28508         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
28509         * doc/posix-functions/strstr.texi (strstr): Document the fix.
28510         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28511         * modules/mountlist (Depends-on): Add strstr-simple.
28512         * modules/gen-uni-tables (Depends-on): Likewise.
28513         * modules/argz (Depends-on): Add strstr.
28514
28515 2009-06-17  Bruno Haible  <bruno@clisp.org>
28516
28517         * modules/posix_spawn-internal (Depends-on): Add errno.
28518
28519 2009-06-17  Bruno Haible  <bruno@clisp.org>
28520
28521         Define missing ESTALE on Interix 3.5.
28522         * lib/errno.in.h (ESTALE): Assign a value if missing.
28523         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
28524         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
28525         missing.
28526         * doc/posix-headers/errno.texi: Mention the Interix bug.
28527         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
28528
28529 2009-06-15  Eric Blake  <ebb9@byu.net>
28530
28531         memchr, memchr2: add valgrind exception
28532         * lib/memchr.valgrind: New file.
28533         * lib/memchr2.valgrind: New file.
28534         * modules/memchr (Files): Distribute valgrind file.
28535         * modules/memchr2 (Files): Likewise.
28536
28537         docs: memchr is no longer obsolete
28538         * MODULES.html.sh: Move memchr from obsolete to string.h section.
28539         * lib/string.in.h (memchr): Simplify logic.
28540
28541 2009-06-14  Jim Meyering  <meyering@redhat.com>
28542
28543         link-follow: fix the "checking..." message to not mention trailing slash
28544         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
28545         never considered trailing slashes.
28546
28547 2009-06-14  Bruno Haible  <bruno@clisp.org>
28548
28549         * m4/memchr.m4: Mention also the bug on IA-64.
28550         * doc/posix-functions/memchr.texi: Likewise.
28551
28552 2009-06-12  Eric Blake  <ebb9@byu.net>
28553
28554         memchr: detect broken x86_64 and alpha implementations
28555         * modules/memchr-tests (Depends-on): Move mmap detection...
28556         * modules/memchr (Depends-on): ...here.
28557         (configure.ac): Set indicator.
28558         * lib/string.in.h (memchr): Declare replacement.
28559         * modules/string (Makefile.am): Trigger replacement.
28560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28561         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
28562         bugs.
28563         * doc/posix-functions/memchr.texi (memchr): Document the bug.
28564         * modules/getpagesize (License): Relax license.
28565
28566 2009-06-11  Bruno Haible  <bruno@clisp.org>
28567
28568         * lib/idpriv.h: Add more references.
28569
28570 2009-06-08  Bruno Haible  <bruno@clisp.org>
28571
28572         Tests for module 'idpriv-droptemp'.
28573         * modules/idpriv-droptemp-tests: New file.
28574         * tests/test-idpriv-droptemp.sh: New file.
28575         * tests/test-idpriv-droptemp.su.sh: New file.
28576         * tests/test-idpriv-droptemp.c: New file.
28577
28578         New module 'idpriv-droptemp'.
28579         * lib/idpriv-droptemp.c: New file.
28580         * modules/idpriv-droptemp: New file.
28581
28582 2009-06-08  Bruno Haible  <bruno@clisp.org>
28583
28584         Tests for module 'idpriv-drop'.
28585         * modules/idpriv-drop-tests: New file.
28586         * tests/test-idpriv-drop.sh: New file.
28587         * tests/test-idpriv-drop.su.sh: New file.
28588         * tests/test-idpriv-drop.c: New file.
28589
28590         New module 'idpriv-drop'.
28591         * lib/idpriv.h: New file.
28592         * lib-idpriv-drop.c: New file.
28593         * m4/idpriv.m4: New file.
28594         * modules/idpriv-drop: New file.
28595
28596 2009-06-08  Bruno Haible  <bruno@clisp.org>
28597
28598         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
28599         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28600         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28601         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28602         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28603         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28604         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28605
28606 2009-06-08  Eric Blake  <ebb9@byu.net>
28607
28608         test-strstr: use memory fence, when possible
28609         * tests/test-strstr.c (main): Use memory fence, in order to be
28610         more likely to trigger Debian bug 521737.
28611         * modules/strstr-tests (Files): Pull in additional files.
28612
28613         memchr: no longer obsolete, for wider field testing
28614         * modules/memchr (Status, Notice): Delete, this module is no
28615         longer obsolete.
28616         * modules/vasnprintf (Depends-on): Add memchr.
28617
28618 2009-06-07  Jim Meyering  <meyering@redhat.com>
28619
28620         hash: declare some functions with the warn_unused_result attribute
28621         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
28622
28623 2009-06-07  Bruno Haible  <bruno@clisp.org>
28624
28625         * tests/test-alignof.c: Don't test int64_t if it does not exist.
28626         Reported by Eric Blake.
28627
28628 2009-06-06  Eric Blake  <ebb9@byu.net>
28629
28630         test-alignof: fix typo with long double
28631         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
28632         compiler error.
28633
28634 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
28635
28636         Escape non-texinfo { and }s.
28637         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
28638         markup error.
28639
28640 2009-06-04  Jim Meyering  <meyering@redhat.com>
28641
28642         gitlog-to-changelog: don't infloop on an empty commit log
28643         * build-aux/gitlog-to-changelog: Warn about an empty log message.
28644         Reported by Boris Petersen <transacid@centerim.org>.
28645
28646 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
28647
28648         version-etc: extend for packagers
28649         Add three new configure options, intended for packagers:
28650           --with-packager="packager name"
28651           --with-packager-version="packager-specific version"
28652           --with-packager-bug-reports="packager bug reporting"
28653         An example with coreutils:
28654           $ ./configure \
28655             --with-packager=Gentoo \
28656             --with-packager-bug-report=http://bugs.gentoo.org/ \
28657             --with-packager-version="patchset 1.6"
28658           $ ./src/ls --version | head -n2
28659           ls (GNU coreutils) 7.1-dirty
28660           Packaged by Gentoo (patchset 1.6)
28661         Note that the bug reporting info via --help doesn't show up because
28662         coreutils uses its own custom emit_bug_reporting_address() implementation
28663         in src/system.h.  If it didn't, it'd look like:
28664           $ ./src/ls --help | tail -n4
28665           Report bugs to <bug-coreutils@gnu.org>.
28666           Report Gentoo bugs to <http://bugs.gentoo.org/>.
28667           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
28668           General help using GNU software: <http://www.gnu.org/gethelp/>.
28669         * lib/version-etc.c: Print new information, if provided.
28670         * m4/version-etc.m4: New file.
28671         * modules/version-etc (Files): Add m4/version-etc.m4.
28672         (configure.ac): Add gl_VERSION_ETC.
28673
28674 2009-05-31  Bruno Haible  <bruno@clisp.org>
28675
28676         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
28677         and 'int64_t'.
28678         * modules/alignof-tests (Dependencies): Add stdint.
28679         Reported by Eric Blake.
28680
28681 2009-05-31  Bruno Haible  <bruno@clisp.org>
28682
28683         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
28684         restriction due to compiler bugs.
28685         Reported by Eric Blake.
28686
28687 2009-05-31  Simon Josefsson  <simon@josefsson.org>
28688             Bruno Haible  <bruno@clisp.org>
28689
28690         Fix test-alignof failure.
28691         * lib/alignof.h (alignof_slot): New macro.
28692         (alignof_type): New macro, with the same semantics as the previous
28693         'alignof'.
28694         (alignof): Alias to alignof_slot.
28695         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
28696         check that the results are usable as constant expressions.
28697
28698 2009-05-31  Bruno Haible  <bruno@clisp.org>
28699
28700         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
28701         * tests/test-memchr.c (main): Check that memchr does not read past the
28702         first occurrence of the byte.
28703         * tests/test-strstr.c (main): Update comment.
28704         Suggested by Eric Blake.
28705
28706 2009-05-30  Bruno Haible  <bruno@clisp.org>
28707
28708         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
28709         detail how to use dumpbin.
28710         Reported by David Byron <dbyron@dbyron.com>.
28711
28712 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28713
28714         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
28715
28716 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28717
28718         * m4/manywarnings.m4: Add GCC 4.4 warnings.
28719
28720 2009-05-28  Bruno Haible  <bruno@clisp.org>
28721
28722         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
28723         build-aux/ files.
28724
28725 2009-05-28  Simon Josefsson  <simon@josefsson.org>
28726
28727         * gnulib-tool (func_import): Transform license on build-aux/ files too.
28728
28729 2009-05-27  Simon Josefsson  <simon@josefsson.org>
28730
28731         * gnulib-tool (sed_transform_main_lib_file)
28732         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
28733         regexps.
28734
28735 2009-05-26  Simon Josefsson  <simon@josefsson.org>
28736
28737         * tests/test-strstr.c: Add another self-test.
28738         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
28739         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
28740
28741 2009-05-23  Bruno Haible  <bruno@clisp.org>
28742
28743         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
28744         change.
28745
28746 2009-05-21  Bruno Haible  <bruno@clisp.org>
28747
28748         Simplify use of mode_t varargs.
28749         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
28750         uses 'mode_t' or 'int'.
28751         * lib/openat.c (openat): Likewise.
28752         * lib/open-safer.c (open_safer): Likewise.
28753         * m4/mode_t.m4: New file.
28754         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
28755         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
28756         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
28757         * modules/open (Files): Add m4/mode_t.m4.
28758         * modules/openat (Files): Likewise.
28759         * modules/fcntl-safer (Files): Likewise.
28760         Suggested by Eric Blake.
28761
28762 2009-05-21  Pádraig Brady  <P@draigbrady.com>
28763
28764         * doc/glibc-functions/fallocate.texi: New file.
28765         * doc/gnulib.texi: Include it.
28766
28767 2009-05-21  Eric Blake  <ebb9@byu.net>
28768             Bruno Haible  <bruno@clisp.org>
28769
28770         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
28771         invocations.
28772         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28773
28774 2009-05-21  Eric Blake  <ebb9@byu.net>
28775             Bruno Haible  <bruno@clisp.org>
28776
28777         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
28778         include_next. Fix of 2008-11-20 commit.
28779         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
28780         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
28781         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
28782         NEXT_MATH_H.
28783         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
28784         instead of NEXT_MATH_H.
28785
28786 2009-05-21  Bruno Haible  <bruno@clisp.org>
28787
28788         Avoid redefinition warnings for SIZE_MAX.
28789         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
28790         Reported by Simon Josefsson.
28791
28792 2009-05-21  Bruno Haible  <bruno@clisp.org>
28793
28794         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
28795         AC_CACHE_VAL.
28796
28797 2009-05-20  Bruno Haible  <bruno@clisp.org>
28798
28799         Make zeroptr.h work on mingw.
28800         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
28801         mprotect.
28802         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
28803         * modules/memchr2-tests (configure.ac): Likewise.
28804         * modules/memcmp-tests (configure.ac): Likewise.
28805         * modules/memmem-tests (configure.ac): Likewise.
28806         * modules/memrchr-tests (configure.ac): Likewise.
28807         Reported by Simon Josefsson.
28808
28809 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28810
28811         * tests/test-glob.c: Include string.h for strcmp prototype.
28812
28813 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28814
28815         * modules/getdelim (Depends-on): Add explicit stdint, although it
28816         was implicitly already pulled in via realloc-posix.
28817         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
28818
28819 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28820
28821         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
28822         G. Christensen" <tgc@jupiterrise.com>.
28823         * m4/sys_socket_h.m4: Check for sa_family_t.
28824         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
28825         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
28826         * tests/test-sys_socket.c: Check that sa_family_t works.
28827
28828 2009-05-18  Eric Blake  <ebb9@byu.net>
28829
28830         maint.mk: allow gnulib_dir in VPATH build
28831         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
28832
28833 2009-05-15  Jim Meyering  <meyering@redhat.com>
28834
28835         maint.mk: Give gnulib_dir a default definition.
28836         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
28837         Thus, most packages no longer need to specify this variable in cfg.mk
28838
28839 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
28840
28841         rename.m4: fix typos that would make non-mingw cross-configure fail
28842         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
28843
28844 2009-05-13  Eric Blake  <ebb9@byu.net>
28845
28846         mmap-anon: avoid out-of-order autoconf expansion
28847         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
28848         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
28849         * modules/memchr-tests (Depends-on): Add extensions.
28850         * modules/memchr2-tests (Depends-on): Add extensions.
28851         * modules/memcmp-tests (Depends-on): Add extensions.
28852         * modules/memmem-tests (Depends-on): Add extensions.
28853         * modules/memrchr-tests (Depends-on): Add extensions.
28854
28855 2009-05-13  Bruno Haible  <bruno@clisp.org>
28856
28857         Make some tests ISO C 99 compliant.
28858         * tests/zerosize-ptr.h: New file.
28859         * tests/test-memchr.c: Include zerosize-ptr.h.
28860         (main): Use a zero-size object pointer instead of NULL.
28861         * tests/test-memchr2.c: Include zerosize-ptr.h.
28862         (main): Use a zero-size object pointer instead of NULL.
28863         * tests/test-memcmp.c: Include zerosize-ptr.h.
28864         (main): Use a zero-size object pointer instead of NULL.
28865         * tests/test-memmem.c: Include zerosize-ptr.h.
28866         (main): Use a zero-size object pointer instead of NULL.
28867         * tests/test-memrchr.c: Include zerosize-ptr.h.
28868         (main): Use a zero-size object pointer instead of NULL.
28869         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
28870         m4/mmap-anon.m4.
28871         (Depends-on): Add getpagesize.
28872         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28873         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
28874         m4/mmap-anon.m4.
28875         (Depends-on): Add getpagesize.
28876         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28877         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
28878         m4/mmap-anon.m4.
28879         (Depends-on): Add getpagesize.
28880         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28881         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
28882         m4/mmap-anon.m4.
28883         (Depends-on): Add getpagesize.
28884         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28885         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
28886         m4/mmap-anon.m4.
28887         (Depends-on): Add getpagesize.
28888         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28889
28890 2009-05-12  Bruno Haible  <bruno@clisp.org>
28891
28892         Tests for module 'alignof'.
28893         * modules/alignof-tests: New file.
28894         * tests/test-alignof.c: New file.
28895
28896 2009-05-12  Bruno Haible  <bruno@clisp.org>
28897
28898         Fix alignof macro.
28899         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
28900         vendor compilers that are always correct.
28901
28902 2009-05-12  Bruno Haible  <bruno@clisp.org>
28903
28904         Make the MAP_ANONYMOUS detection work on HP-UX 11.
28905         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
28906         not whether its fully works.
28907
28908 2009-05-12  Bruno Haible  <bruno@clisp.org>
28909
28910         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
28911
28912 2009-05-12  Jim Meyering  <meyering@redhat.com>
28913
28914         * top/maint.mk: Adjust backslash alignment.
28915
28916 2009-05-11  Simon Josefsson  <simon@josefsson.org>
28917
28918         * top/maint.mk: Make $(srcdir)/build-aux configurable.
28919
28920 2009-05-11  Eric Blake  <ebb9@byu.net>
28921
28922         argp: avoid undefined behavior
28923         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
28924         macros.
28925
28926 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28927
28928         * tests/test-vc-list-files-git.sh: Do git config of user.email and
28929         user.name to prevent git commit from complaining.
28930
28931 2009-05-10  Bruno Haible  <bruno@clisp.org>
28932
28933         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
28934         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
28935         it rewrites every file name only once.
28936         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
28937
28938 2009-05-08  Bruno Haible  <bruno@clisp.org>
28939
28940         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
28941         instead of 'max'.
28942
28943 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28944
28945         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
28946         sockaddr_storage test.
28947
28948 2009-05-07  Simon Josefsson  <simon@josefsson.org>
28949
28950         * modules/sys_socket (Makefile.am): Substitute
28951         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
28952         * m4/sys_socket_h.m4: Check for sockaddr_storage.
28953         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
28954         * tests/test-sys_socket.c: Check sockaddr_storage.
28955
28956 2009-05-08  Bruno Haible  <bruno@clisp.org>
28957
28958         New module 'alignof'.
28959         * lib/alignof.h: New file.
28960         * modules/alignof: New file.
28961
28962 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28963             Bruno Haible  <bruno@clisp.org>
28964
28965         Fix test-file-has-acl on FreeBSD.
28966         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
28967         mask is implicitly added.
28968         * tests/test-file-has-acl.c: Include <signal.h>.
28969         (main): Terminate the test after 5 seconds.
28970         * modules/acl-tests (configure.ac): Check for alarm function.
28971
28972 2009-05-04  Bruno Haible  <bruno@clisp.org>
28973
28974         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
28975         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
28976         * modules/errno (configure.ac): Drop AC_REQUIRE.
28977         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
28978         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
28979
28980 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28981
28982         * modules/glob-tests: New module.
28983         * tests/test-glob.c: Add.
28984
28985 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28986
28987         * modules/fnmatch-tests: New module.
28988         * tests/test-fnmatch.c: Add.
28989
28990 2009-05-04  Eric Blake  <ebb9@byu.net>
28991
28992         maint: make the new no-submodule-changes rule VPATH-safe
28993         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
28994
28995 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28996             Bruno Haible  <bruno@clisp.org>
28997
28998         acl: Fix infinite loop on FreeBSD.
28999         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
29000         of return value from acl_get_entry.
29001         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
29002         Likewise.
29003
29004 2009-05-03  Bruno Haible  <bruno@clisp.org>
29005
29006         * lib/acl-internal.h (acl_entries): Clarify return value.
29007         * lib/acl_entries.c (acl_entries): Likewise.
29008
29009 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29010
29011         Bug fix in acl module.
29012         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
29013
29014 2009-05-03  Bruno Haible  <bruno@clisp.org>
29015
29016         Create gperf-generated file in the source dir, not in the build dir.
29017         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
29018         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
29019         * modules/unicase/locale-language (unicase/locale-languages.h):
29020         Likewise.
29021         * modules/unicase/special-casing (unicase/special-casing-table.h):
29022         Likewise.
29023         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
29024         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
29025         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
29026         Reported by Ralf Wildenhues.
29027
29028 2009-05-03  Bruno Haible  <bruno@clisp.org>
29029
29030         * modules/fnmatch (Description, configure.ac): Taken from
29031         fnmatch-posix.
29032         * modules/fnmatch-posix: Turn into a symbolic reference to the
29033         'fnmatch' module, and deprecate.
29034         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
29035
29036 2009-05-03  Bruno Haible  <bruno@clisp.org>
29037
29038         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
29039         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
29040         Reported by Ralf Wildenhues.
29041
29042 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29043
29044         * m4/fnmatch.m4: Fix fnmatch re-define.
29045
29046 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29047
29048         priv-set: new module and tests; adapt write-any-file
29049         * lib/priv-set.c: New file.
29050         * lib/priv-set.h: New file.
29051         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
29052         * lib/write-any-file.c: Simplify by using priv-set module.
29053         * m4/priv-set.m4: New file.
29054         * modules/priv-set: New file.
29055         * modules/unlinkdir: Add dependency on priv-set module.
29056         * modules/write-any-file: Likewise.
29057
29058         Tests for module 'priv-set'.
29059         * modules/priv-set-tests: New file.
29060         * tests/test-priv-set.c: New file.
29061
29062 2009-05-03  Jim Meyering  <meyering@redhat.com>
29063             Bruno Haible  <bruno@clisp.org>
29064
29065         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
29066         use the converted UTF-8 variant of the name instead.
29067
29068 2009-05-03  Jim Meyering  <meyering@redhat.com>
29069
29070         tests: tighten some getdate tests
29071         * tests/test-getdate.c (main): Tighten tests: require equality,
29072         not just greater than.  Set TZ envvar to UTC0.
29073
29074 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29075
29076         getdate: correctly interpret "next monday" when run on a Monday
29077         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
29078         that e.g., "next tues" (when run on a tuesday) results in a date
29079         that is one week in the future, and not today's date.
29080         I.e., add a week when the wday is the same as the current one.
29081         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
29082         and earlier by Martin Bernreuther and Jan Minář.
29083         * tests/test-getdate.c (main): Check that "next DAY" is always in
29084         the future and that "last DAY" is always in the past.
29085
29086 2009-05-02  Jim Meyering  <meyering@redhat.com>
29087
29088         build: ensure that a release build fails when a submodule is unclean
29089         * top/maint.mk (no-submodule-changes): New rule.
29090         (alpha beta major): Depend on it.
29091
29092 2009-05-02  Bruno Haible  <bruno@clisp.org>
29093
29094         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
29095         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
29096         shell variable gl_fnmatch_required to detect which variant is
29097         requested.
29098         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
29099         gl_FUNC_FNMATCH_POSIX.
29100         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
29101         exclude fnmatch-posix.
29102
29103 2009-05-02  Bruno Haible  <bruno@clisp.org>
29104
29105         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
29106         * modules/mbsrtowcs (License): Change to LGPLv2+.
29107         * modules/strnlen1 (License): Likewise.
29108         Reported by Simon Josefsson.
29109
29110 2009-05-02  Bruno Haible  <bruno@clisp.org>
29111
29112         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
29113         "cross".
29114         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
29115         gnulib-tool was called with option --source-base=lib.
29116
29117 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29118
29119         Use automake *-local hooks without commands, for extensibility.
29120         * modules/localcharset (Makefile.am): Rename install-exec-local
29121         rule to install-exec-localcharset, and make it a prerequisite of
29122         install-exec-local.  Likewise, rename the uninstall-local rule to
29123         uninstall-localcharset, and make it a prerequisite of the former.
29124
29125 2009-05-01  Bruno Haible  <bruno@clisp.org>
29126
29127         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
29128         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29129         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
29130         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
29131         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
29132         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29133         m4/locale-zh.m4, m4/codeset.m4.
29134
29135         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29136         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
29137         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29138         m4/locale-zh.m4.
29139
29140         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
29141         REPLACE_WCRTOMB if mbstate_t must be replaced.
29142         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
29143         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
29144
29145 2009-05-01  Bruno Haible  <bruno@clisp.org>
29146
29147         Avoid compiler warnings when redefining macros defined by <libintl.h>.
29148         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
29149         dngettext, dcngettext, textdomain, bindtextdomain,
29150         bind_textdomain_codeset): Undefine before redefining.
29151
29152 2009-04-30  Bruno Haible  <bruno@clisp.org>
29153
29154         Fix bug introduced on 2009-04-25.
29155         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
29156         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
29157         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
29158         is defined.
29159         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
29160         is defined.
29161         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
29162         is defined.
29163         Reported by Elbert_Pol <elbert.pol@gmail.com>.
29164
29165 2009-04-28  Bruno Haible  <bruno@clisp.org>
29166
29167         Comment tweaks.
29168         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
29169         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
29170         * lib/unicase.h (u*_casexfrm): Likewise.
29171         Reported by Paolo Bonzini.
29172
29173 2009-04-28  Bruno Haible  <bruno@clisp.org>
29174
29175         Fix a compilation error.
29176         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
29177         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29178         Reported by Jim Meyering.
29179
29180 2009-04-27  Bruno Haible  <bruno@clisp.org>
29181
29182         New module 'libunistring'.
29183         * modules/libunistring: New file.
29184         * m4/libunistring.m4: New file.
29185         * MODULES.html.sh (Unicode string functions): Add it.
29186
29187 2009-04-27  Eric Blake  <ebb9@byu.net>
29188
29189         maint.mk: allow package-specific header to provide <config.h>
29190         * top/maint.mk (sc_require_config_h): New variable.
29191         (sc_require_config_h, sc_require_config_h_first): Use it.
29192
29193 2009-04-27  Simon Josefsson  <simon@josefsson.org>
29194
29195         * top/maint.mk (sc_avoid_if_before_free): Except
29196         useless-if-before-free script.
29197
29198 2009-04-27  Eric Blake  <ebb9@byu.net>
29199
29200         maintainer-makefile: depend on all required helper scripts
29201         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
29202         useless-if-before-free.
29203         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
29204         version, rather than assuming gnulib checkout is available.
29205         Reported by Simen Josefsson.
29206
29207 2009-04-26  Bruno Haible  <bruno@clisp.org>
29208
29209         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
29210         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
29211         "../" or "..".
29212
29213 2009-04-26  Bruno Haible  <bruno@clisp.org>
29214
29215         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
29216         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
29217         AC_LIB_HAVE_LINKFLAGS.
29218
29219 2009-04-26  Bruno Haible  <bruno@clisp.org>
29220
29221         Simplify calling convention of u*_conv_from_encoding.
29222         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
29223         u32_conv_from_encoding): Expect a resultbuf argument and return the
29224         result directly as a pointer.
29225         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
29226         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
29227         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
29228         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
29229         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
29230         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29231         Update.
29232         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
29233         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
29234         * lib/vasnprintf.c (VASNPRINTF): Update.
29235         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
29236         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
29237         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
29238         * NEWS: Mention the change.
29239
29240 2009-04-26  Bruno Haible  <bruno@clisp.org>
29241
29242         Simplify calling convention of u*_conv_to_encoding.
29243         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
29244         u32_conv_to_encoding): Expect a resultbuf argument and return the
29245         result directly as a pointer.
29246         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29247         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
29248         freeing scaled_offsets if mem_iconveha failed.
29249         * lib/unicase/u-casexfrm.h (FUNC): Update.
29250         * lib/uninorm/u-normxfrm.h (FUNC): Update.
29251         * lib/vasnprintf.c (VASNPRINTF): Update.
29252         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
29253         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
29254         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
29255         * NEWS: Mention the change.
29256
29257 2009-04-26  Bruno Haible  <bruno@clisp.org>
29258
29259         Avoid test failures on AIX and OSF/1.
29260         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
29261         malloc(0).
29262         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29263         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29264         Likewise.
29265         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
29266         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
29267         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
29268         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
29269         * doc/posix-functions/malloc.texi: Document the portability problem
29270         related to malloc(0).
29271
29272 2009-04-26  Bruno Haible  <bruno@clisp.org>
29273
29274         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
29275         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
29276         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
29277
29278 2009-04-25  Bruno Haible  <bruno@clisp.org>
29279
29280         Avoid link error when creating a namespace clean library.
29281         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
29282         as macro with arguments if already defined as an alias.
29283         * lib/signbitf.c (gl_signbitf): Don't undefine.
29284         * lib/signbitd.c (gl_signbitd): Don't undefine.
29285         * lib/signbitl.c (gl_signbitl): Don't undefine.
29286
29287 2009-04-25  Jim Meyering  <meyering@redhat.com>
29288
29289         vc-list-files: fix another quoting bug
29290         * build-aux/vc-list-files: Avoid sed backslash expansion
29291         of pathological directory names.
29292
29293 2009-04-25  Eric Blake  <ebb9@byu.net>
29294
29295         vc-list-files: fix shell quoting error
29296         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
29297         timestamp.
29298
29299 2009-04-25  Jim Meyering  <meyering@redhat.com>
29300
29301         vc-list-files: restore lost functionality with subdir argument
29302         * build-aux/vc-list-files: When given a non-"." sub-directory
29303         argument, substitute the $dir/ prefix back onto each resulting name.
29304         Otherwise, coreutils' root_tests check would fail.
29305
29306 2009-04-24  Eric Blake  <ebb9@byu.net>
29307
29308         vc-list-files: ignore git symlinks
29309         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
29310         than ls-files, to ignore git symlinks.
29311
29312         maint.mk: import improvements from m4
29313         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
29314         (move_if_change): Delete unused macro.
29315         (news-date-check, vc-diff-check): Support VPATH builds.
29316         (announcement): Likewise.  Split --bootstrap-tools list...
29317         (boostrap-tools): ...into separate list, which can be overridden
29318         in cfg.mk.
29319         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
29320         requiring dependency on useless-if-before-free module.
29321         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
29322         Support VPATH builds.
29323
29324 2009-04-24  Jim Meyering  <meyering@redhat.com>
29325
29326         maint.mk: remove coreutils-specific rules and variables
29327         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
29328         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
29329         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
29330
29331         maint.mk: remove obsolete rule
29332         * top/maint.mk (rel-check): Remove rule.
29333         (WGET, WGETFLAGS): Remove now-unused variables.
29334
29335 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29336
29337         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
29338         consistency.
29339
29340         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
29341         '$(PATH_SEPARATOR)' instead of ':'.
29342
29343 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29344
29345         * lib/getopt1.c (main): Use 'const' for static array.
29346
29347 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29348
29349         * top/maint.mk: Sync with coreutils.
29350         * NEWS: Explain incompatibilities.
29351
29352 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29353             Bruno Haible  <bruno@clisp.org>
29354
29355         Fix cross-compilation results.
29356         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
29357         statement, as third argument of AC_TRY_RUN.
29358         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29359         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29360         Likewise.
29361         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29362         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
29363         Likewise.
29364         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29365         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
29366         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
29367
29368 2009-04-20  Bruno Haible  <bruno@clisp.org>
29369
29370         Avoid test failure on mingw.
29371         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
29372
29373 2009-04-20  Bruno Haible  <bruno@clisp.org>
29374
29375         Avoid compilation error on mingw.
29376         * modules/localename-tests (Depends-on): Add locale.
29377
29378 2009-04-19  Bruno Haible  <bruno@clisp.org>
29379
29380         Support for building a shared library on Windows platforms.
29381         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
29382         (main): Test the presence of UNINORM_NFC here.
29383         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
29384         (main): Test the presence of UNINORM_NFD here.
29385         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
29386         (main): Test the presence of UNINORM_NFKC here.
29387         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
29388         (main): Test the presence of UNINORM_NFKD here.
29389
29390 2009-04-19  Bruno Haible  <bruno@clisp.org>
29391
29392         Avoid a compiler warning.
29393         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
29394         Change type of variable 'sequence'.
29395
29396 2009-04-19  Bruno Haible  <bruno@clisp.org>
29397
29398         * modules/configmake (Makefile.am): When the contents of configmake.h
29399         does not change, arrange to preserve its modification time.
29400
29401 2009-04-17  Simon Josefsson  <simon@josefsson.org>
29402
29403         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
29404         gettext domain.
29405
29406 2009-04-16  Jim Meyering  <meyering@redhat.com>
29407
29408         useless-if-before-free: improve conversion code
29409         * build-aux/useless-if-before-free: Adjust code-in-comment to match
29410         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
29411
29412 2009-04-14  Bruno Haible  <bruno@clisp.org>
29413
29414         * modules/fcntl (Depends-on): Add extensions.
29415         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
29416
29417 2009-04-12  Ben Pfaff  <blp@gnu.org>
29418
29419         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
29420         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
29421
29422 2009-03-20  Ben Pfaff  <blp@gnu.org>
29423
29424         Make rename replace existing destinations on Windows.
29425         * m4/rename.m4: Add test for Mingw.
29426         * lib/rename.c: Add rename replacement that uses MoveFileEx with
29427         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
29428         * doc/posix-functions/rename.texi: Document.
29429
29430 2009-04-10  Bruno Haible  <bruno@clisp.org>
29431
29432         New include file "iconveh.h".
29433         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
29434         * lib/striconveh.h: Include it.
29435         (enum iconv_ilseq_handler): Remove definition.
29436         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
29437         striconveh.h.
29438         * lib/striconveha.c: Include striconveh.h.
29439         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
29440         * modules/striconveh (Files): Add lib/iconveh.h.
29441         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
29442         lib/striconveh.h.
29443
29444 2009-04-10  Bruno Haible  <bruno@clisp.org>
29445
29446         * lib/uniconv.h: Update comment.
29447
29448 2009-04-10  Bruno Haible  <bruno@clisp.org>
29449
29450         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
29451         always.
29452         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29453         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29454         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29455         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
29456         "unistring-notinline.h", so that the function gets defined always.
29457         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29458         * lib/unistr/u8-uctomb.c: Likewise.
29459         * lib/unistr/u16-mbtouc.c: Likewise.
29460         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29461         * lib/unistr/u16-uctomb.c: Likewise.
29462         * lib/unistr/u32-mbtouc.c: Likewise.
29463         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29464         * lib/unistr/u32-uctomb.c: Likewise.
29465
29466 2009-04-10  Bruno Haible  <bruno@clisp.org>
29467
29468         Mark 'utime' obsolete.
29469         * modules/utime (Status, Notice): New sections.
29470         Suggested by Jim Meyering.
29471
29472         Fix cross-compile guess for utime test.
29473         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
29474         autoconf.
29475         * doc/posix-functions/utime.texi: Give more precisions.
29476         Reported by Jan <ipif@ymail.com>.
29477
29478 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
29479
29480         filevercmp: correct today's change
29481         * lib/filevercmp.c: Also handle coreutils' test inputs.
29482         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
29483
29484         Fix regression in 'filevercmp' module. Thanks Sven Joachim
29485         for reporting it.
29486         * lib/filevercmp.c: Special handle for "", "." and "..".
29487         * tests/test-filevercmp.c: Enlarge the set suite.
29488
29489 2009-04-07  Jim Meyering  <meyering@redhat.com>
29490
29491         useless-if-before-free: show how to remove braced useless free, too
29492         * build-aux/useless-if-before-free: still only in a comment, though.
29493
29494 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
29495
29496         maint.mk: import changes to syntax-check macros from coreutils
29497         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
29498         Use them in the relevant macros.
29499
29500 2009-04-06  Bruno Haible  <bruno@clisp.org>
29501
29502         Fix unportable use of bit-fields.
29503         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
29504         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
29505         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
29506
29507 2009-04-06  Bruno Haible  <bruno@clisp.org>
29508
29509         Avoid test failures on AIX and OSF/1.
29510         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
29511         that malloc(0) = NULL.
29512         * tests/unicase/test-u8-tolower.c (check): Likewise.
29513         * tests/unicase/test-u8-totitle.c (check): Likewise.
29514         * tests/unicase/test-u8-toupper.c (check): Likewise.
29515         * tests/unicase/test-u16-casefold.c (check): Likewise.
29516         * tests/unicase/test-u16-tolower.c (check): Likewise.
29517         * tests/unicase/test-u16-totitle.c (check): Likewise.
29518         * tests/unicase/test-u16-toupper.c (check): Likewise.
29519         * tests/unicase/test-u32-casefold.c (check): Likewise.
29520         * tests/unicase/test-u32-tolower.c (check): Likewise.
29521         * tests/unicase/test-u32-totitle.c (check): Likewise.
29522         * tests/unicase/test-u32-toupper.c (check): Likewise.
29523         * tests/uninorm/test-u8-nfc.c (check): Likewise.
29524         * tests/uninorm/test-u8-nfd.c (check): Likewise.
29525         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
29526         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
29527         * tests/uninorm/test-u16-nfc.c (check): Likewise.
29528         * tests/uninorm/test-u16-nfd.c (check): Likewise.
29529         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
29530         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
29531         * tests/uninorm/test-u32-nfc.c (check): Likewise.
29532         * tests/uninorm/test-u32-nfd.c (check): Likewise.
29533         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
29534         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
29535
29536 2009-04-05  Bruno Haible  <bruno@clisp.org>
29537
29538         Work around an autoconf limitation.
29539         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
29540         comment line if it would be longer than 3 KB.
29541
29542 2009-04-05  Bruno Haible  <bruno@clisp.org>
29543
29544         Avoid test failure with libiconv-1.13.
29545         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
29546         of the expected test results.
29547
29548 2009-04-05  Bruno Haible  <bruno@clisp.org>
29549
29550         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
29551         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
29552         that it should be installed.
29553
29554 2009-04-05  Bruno Haible  <bruno@clisp.org>
29555
29556         * gnulib-tool: New option --copy-file.
29557         (func_usage): Document it.
29558         (func_dest_tmpfilename): Moved out of func_import.
29559         (func_add_file, func_update_file): New functions, extracted from
29560         func_import.
29561         (func_import): Update.
29562
29563 2009-04-05  Karl Berry  <karl@gnu.org>
29564
29565         * README: prominently mention gnulib-tool.
29566         Rearrange sections so getting the code is near the top.
29567
29568 2009-04-05  Bruno Haible  <bruno@clisp.org>
29569
29570         * lib/unicase.h: Mention u*_cmp2.
29571         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29572         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
29573         * lib/unicase/ulc-casecmp.c: Likewise.
29574         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
29575         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
29576         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
29577         unistr/u8-cmp.
29578         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
29579         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
29580         unistr/u16-cmp.
29581         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
29582         unistr/u32-cmp.
29583
29584         * lib/uninorm.h: Mention u*_cmp2.
29585         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29586         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
29587         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
29588         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
29589         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
29590         unistr/u8-cmp.
29591         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
29592         unistr/u16-cmp.
29593         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
29594         unistr/u32-cmp.
29595
29596         New module 'unistr/u32-cmp2'.
29597         * lib/unistr/u32-cmp2.c: New file.
29598         * modules/unistr/u32-cmp2: New file.
29599
29600         New module 'unistr/u16-cmp2'.
29601         * lib/unistr/u16-cmp2.c: New file.
29602         * modules/unistr/u16-cmp2: New file.
29603
29604         New module 'unistr/u8-cmp2'.
29605         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
29606         * lib/unistr/u8-cmp2.c: New file.
29607         * lib/unistr/u-cmp2.h: New file.
29608         * modules/unistr/u8-cmp2: New file.
29609
29610 2009-04-05  Bruno Haible  <bruno@clisp.org>
29611
29612         * lib/unictype.h (uc_property_is_valid): New macro.
29613         * tests/unictype/test-pr_byname.c (main): Use it.
29614
29615         * lib/unistr.h: Doc fixes.
29616         * lib/uniconv.h: Doc fixes.
29617         * lib/unictype.h: Doc fixes.
29618
29619 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29620
29621         Port coreutils 7.2 to Solaris 8.
29622
29623         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
29624         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
29625         for Solaris 8.  This is a bit of a hack, as it means it's the
29626         caller's responsibility to add -lnsl if needed, but most likely it
29627         won't be needed since only getaddrinfo uses this and getaddrinfo
29628         isn't needed on Solaris 8.
29629
29630         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
29631         problem to Solaris 8 encountered with coreutils 7.2, which
29632         resulted in a message "fnmatch.c:292: warning: passing argument 4
29633         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
29634         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
29635
29636 2009-04-03  Simon Josefsson  <simon@josefsson.org>
29637
29638         * m4/ld-version-script.m4: Add FIXME comment.
29639
29640 2009-04-02  Simon Josefsson  <simon@josefsson.org>
29641
29642         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
29643         SOVERSION variable.
29644
29645 2009-04-02  Bruno Haible  <bruno@clisp.org>
29646
29647         * Makefile (info, html, dvi, pdf): Combine the rules.
29648         Suggested by Jim Meyering.
29649
29650 2009-04-01  Bruno Haible  <bruno@clisp.org>
29651
29652         * Makefile (info, html, dvi, pdf): New targets.
29653         Reported by Reuben Thomas <rrt@sc3d.org>.
29654
29655 2009-04-01  Bruno Haible  <bruno@clisp.org>
29656
29657         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
29658         can be put into PATH.
29659         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
29660
29661 2009-04-01  Bruno Haible  <bruno@clisp.org>
29662
29663         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
29664
29665 2009-04-01  Bruno Haible  <bruno@clisp.org>
29666
29667         Rename module 'visibility'.
29668         * modules/lib-symbol-visibility: Renamed from modules/visibility.
29669         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
29670         * doc/gnulib.texi: Update.
29671         * MODULES.html.sh (Misc): Update.
29672         * NEWS: Mention the change.
29673
29674 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29675
29676         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
29677         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
29678         Eric Blake <ebb9@byu.net> for review.
29679         * MODULES.html.sh: Add lib-msvc-compat.
29680         * doc/gnulib.texi: Link to new section.
29681         * m4/ld-output-def.m4: New file.
29682         * doc/ld-output-def.texi: New file.
29683
29684 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29685
29686         Rename ld-version-script to lib-symbol-versions.  Suggested by
29687         Bruno Haible <bruno@clisp.org>.
29688         * modules/ld-version-script: Renamed to lib-symbol-versions.
29689         * doc/ld-version-script.texi: Fix module name.
29690         * MODULES.html.sh: Add lib-symbol-versions.
29691
29692 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29693
29694         * modules/u64-tests: New file.
29695         * tests/test-u64.c: New file.
29696
29697 2009-03-04  Simon Josefsson  <simon@josefsson.org>
29698
29699         * MODULES.html.sh: Mention u64.
29700         * modules/u64: New module.
29701         * modules/crypto/sha512: Depend on u64 module instead of providing
29702         u64.h.
29703
29704 2009-03-27  Eric Blake  <ebb9@byu.net>
29705
29706         test-strerror: make debugging EAI_SYSTEM easier
29707         * modules/getaddrinfo-tests (Depends-on): Add strerror.
29708         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
29709         failure was EAI_SYSTEM.
29710
29711 2009-03-25  Bruno Haible  <bruno@clisp.org>
29712
29713         Fix a problem with --enable-relocatable on Solaris 7.
29714         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
29715         since 2008-02-24.
29716
29717 2009-03-25  Eric Blake  <ebb9@byu.net>
29718
29719         test-sockets: avoid gcc warning
29720         * tests/test-sockets.c (main): Silence compiler warning.
29721
29722 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29723
29724         New modules nproc, pthread, contributed by Glen Lenker.
29725
29726         * MODULES.html.sh: Add pthread, nproc.
29727         * lib/nproc.c: New file.
29728         * lib/nproc.h: New file.
29729         * lib/pthread.in.h: New file.
29730         * m4/pthread.m4: New file.
29731         * modules/nproc: New file.
29732         * modules/pthread: New file.
29733
29734 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29735
29736         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
29737         New variable.
29738
29739 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
29740
29741         filevercmp: handle simple~ and numbered.~3~ backup suffixes
29742         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
29743         * tests/test-filevercmp.c: Add tests for backup suffixes.
29744
29745 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29746
29747         * modules/stdlib (Depends-on): Add stdint, needed when defining
29748         struct random_data on, for example, HP-UX 10.20.  Reported by
29749         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29750
29751 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29752
29753         * lib/readline.c (readline): Call fflush on stdout after printing
29754         prompt.
29755
29756 2009-03-20  Bruno Haible  <bruno@clisp.org>
29757
29758         Remove dependency from 'close' module to -lws2_32 on native Windows.
29759         * lib/close-hook.h: New file.
29760         * lib/close-hook.c: New file.
29761         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
29762         w32sock.h.
29763         (_gl_close_fd_maybe_socket): Remove function.
29764         (rpl_close): Invoke execute_all_close_hooks instead of
29765         _gl_close_fd_maybe_socket.
29766         * lib/sockets.c: Include close-hook.h, w32sock.h.
29767         (close_fd_maybe_socket): New function, essentially from lib/close.c.
29768         (close_sockets_hook): New variable.
29769         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
29770         (gl_sockets_cleanup): Unregister it.
29771         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
29772         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
29773         * modules/close-hook: New file.
29774         * modules/close (Files): Remove lib/w32sock.h.
29775         (Depends-on): Add close-hook.
29776         (Link): Remove section.
29777         * modules/sockets (Files): Add lib/w32sock.h.
29778         (Depends-on): Add close-hook.
29779         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
29780         invocation.
29781         * NEWS: Mention that LIB_CLOSE is gone.
29782
29783 2009-03-23  Eric Blake  <ebb9@byu.net>
29784
29785         signal-tests: test previous patch
29786         * tests/test-signal.c: New file.
29787         * modules/signal-tests: Likewise.
29788
29789         signal.h: always support 'volatile sig_atomic_t'
29790         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
29791         (gl_SIGNAL_H_DEFAULTS): Add a default.
29792         * modules/signal (Makefile.am): Substitute if needed.
29793         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
29794         users can blindly add volatile.
29795         * doc/posix-headers/signal.texi (signal.h): Document it.
29796         Reported by Matthew Woehlke.
29797
29798 2009-03-23  Jim Meyering  <meyering@redhat.com>
29799
29800         pathmax: PATH_MAX: use pathconf only when available
29801         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
29802         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
29803         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
29804         This avoids a link failure in a PSP cross-compilation environment
29805         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
29806
29807         * lib/vasnprintf.c (divide): Fix typo in comment.
29808
29809 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29810
29811         * gnulib-tool (func_filter_filelist): Fix comment.
29812
29813 2009-03-20  Bruno Haible  <bruno@clisp.org>
29814
29815         Make sockets.h self-contained.
29816         * lib/sockets.c: Include sockets.h first.
29817         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
29818
29819 2009-03-19  Eric Blake  <ebb9@byu.net>
29820
29821         doc: mention more functions added in cygwin 1.7.0
29822         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
29823         addition.
29824         * doc/posix-functions/log2f.texi: Likewise.
29825
29826 2009-03-19  Jim Meyering  <meyering@redhat.com>
29827
29828         fsusage: avoid syntax error due to statement-before-declaration
29829         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
29830         after all declarations.  Reported by Matthew Woehlke in
29831         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
29832
29833 2009-03-18  Eric Blake  <ebb9@byu.net>
29834
29835         build-aux/compile: sync from automake
29836         * build-aux/compile: New file, from automake.
29837         * config/srclist.txt: Mention build-aux/compile.
29838
29839 2009-03-17  Bruno Haible  <bruno@clisp.org>
29840
29841         * lib/git-merge-changelog.c: Fix typo in comment.
29842         Reported by Reuben Thomas <rrt@sc3d.org>.
29843
29844 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
29845
29846         * m4/regex.m4: update and improve help for
29847         --without-included-regex.
29848
29849 2009-03-17  Simon Josefsson  <simon@josefsson.org>
29850
29851         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
29852         failure on missing include files.
29853
29854 2009-03-17  Eric Blake  <ebb9@byu.net>
29855
29856         doc: mention more functions added in cygwin 1.7.0
29857         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
29858         addition.
29859         * doc/posix-functions/fwscanf.texi: Likewise.
29860         * doc/posix-functions/swprintf.texi: Likewise.
29861         * doc/posix-functions/swscanf.texi: Likewise.
29862         * doc/posix-functions/vfwprintf.texi: Likewise.
29863         * doc/posix-functions/vfwscanf.texi: Likewise.
29864         * doc/posix-functions/vswprintf.texi: Likewise.
29865         * doc/posix-functions/vswscanf.texi: Likewise.
29866         * doc/posix-functions/vwprintf.texi: Likewise.
29867         * doc/posix-functions/vwscanf.texi: Likewise.
29868         * doc/posix-functions/wcscasecmp.texi: Likewise.
29869         * doc/posix-functions/wcsdup.texi: Likewise.
29870         * doc/posix-functions/wcsftime.texi: Likewise.
29871         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29872         * doc/posix-functions/wprintf.texi: Likewise.
29873         * doc/posix-functions/wscanf.texi: Likewise.
29874         * doc/glibc-functions/gethostbyname2.texi: Likewise.
29875
29876 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29877
29878         maint.mk: really add $(AM_MAKEFLAGS)
29879         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
29880         was inadvertently omitted in the last commit.
29881         Spotted by Bruno Haible.
29882
29883         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
29884         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
29885         $(AM_MAKEFLAGS)' rather than plain `make'.
29886
29887         gnulib-tool: execute $MAKE not make
29888         * gnulib-tool: Default $MAKE to 'make'.
29889         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
29890         than make.  Initialize $MAKE in the do-autobuild script.
29891
29892         gnulib-tool: use $MAKE not make in generated files
29893         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
29894         make, in generated files.  Initialize $MAKE in the do-autobuild
29895         script.
29896
29897         * top/GNUmakefile (_have-git-version-gen): Fix typo.
29898
29899         GNUmakefile: disable parallelism only for multiple, recursive targets
29900         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
29901         additions in the Makefile.
29902         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
29903         by Automake.
29904         (.NOTPARALLEL): Only disable parallel builds if multiple targets
29905         are listed on the command line and at least one of them is
29906         listed in $(ALL_RECURSIVE_TARGETS).
29907
29908 2009-03-14  Bruno Haible  <bruno@clisp.org>
29909
29910         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
29911         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
29912         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
29913         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
29914         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
29915         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
29916         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
29917         unistr/u8-uctomb.
29918         * modules/unistr/u8-strchr (Depends-on): Likewise.
29919         * modules/unistr/u8-strrchr (Depends-on): Likewise.
29920         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
29921         unistr/u16-uctomb.
29922         * modules/unistr/u16-strchr (Depends-on): Likewise.
29923         * modules/unistr/u16-strrchr (Depends-on): Likewise.
29924
29925 2009-03-12  Bruno Haible  <bruno@clisp.org>
29926
29927         Work around select() bug on Interix 3.5.
29928         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
29929         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
29930         * m4/select.m4: New file.
29931         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
29932         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
29933         * modules/select (Files): Add m4/select.m4.
29934         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
29935         * modules/nanosleep (Depends-on): Add select.
29936         * modules/poll (Depends-on): Likewise.
29937         * doc/posix-functions/select.texi: Mention the Interix bug.
29938         Reported by Markus Duft <mduft@gentoo.org>.
29939
29940         * lib/select.c: Renamed from lib/winsock-select.c.
29941         * modules/select (Files): Add lib/select.c, remove
29942         lib/winsock-select.c.
29943         (configure.ac): Update.
29944
29945 2009-03-12  Jim Meyering  <meyering@redhat.com>
29946
29947         avoid gcc warnings about unused macro definitions
29948         * lib/readtokens.c (STREQ): Remove unused definition.
29949         * lib/xmalloc.c (SIZE_MAX): Likewise.
29950         * lib/openat-die.c (N_): Likewise.
29951         * lib/mountlist.c (SIZE_MAX): Remove definition.
29952         Instead, include <stdint.h>.
29953         * lib/readutmp.c: Likewise.
29954         * modules/readutmp (Depends-on): Add stdint.
29955         * modules/mountlist (Depends-on): Add stdint.
29956         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
29957
29958 2009-03-10  Bruno Haible  <bruno@clisp.org>
29959
29960         Tests for module 'mbmemcasecoll'.
29961         * modules/mbmemcasecoll-tests: New file.
29962         * tests/test-mbmemcasecoll1.sh: New file.
29963         * tests/test-mbmemcasecoll2.sh: New file.
29964         * tests/test-mbmemcasecoll3.sh: New file.
29965         * tests/test-mbmemcasecoll.c: New file.
29966
29967         New module 'mbmemcasecoll'.
29968         * lib/mbmemcasecoll.h: New file.
29969         * lib/mbmemcasecoll.c: New file.
29970         * modules/mbmemcasecoll: New file.
29971
29972         * tests/test-mbmemcasecmp.h: New file, extracted from
29973         tests/test-mbmemcasecmp.c.
29974         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
29975         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
29976         (main): Update.
29977         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
29978
29979 2009-03-09  Bruno Haible  <bruno@clisp.org>
29980
29981         Tests for module 'mbmemcasecmp'.
29982         * modules/mbmemcasecmp-tests: New file.
29983         * tests/test-mbmemcasecmp1.sh: New file.
29984         * tests/test-mbmemcasecmp2.sh: New file.
29985         * tests/test-mbmemcasecmp3.sh: New file.
29986         * tests/test-mbmemcasecmp.c: New file.
29987
29988         New module 'mbmemcasecmp'.
29989         * lib/mbmemcasecmp.h: New file.
29990         * lib/mbmemcasecmp.c: New file.
29991         * modules/mbmemcasecmp: New file.
29992
29993 2009-03-09  Bruno Haible  <bruno@clisp.org>
29994
29995         Tests for module 'unicase/ulc-casecoll'.
29996         * modules/unicase/ulc-casecoll-tests: New file.
29997         * tests/unicase/test-ulc-casecoll1.sh: New file.
29998         * tests/unicase/test-ulc-casecoll2.sh: New file.
29999         * tests/unicase/test-ulc-casecoll.c: New file.
30000
30001         New module 'unicase/ulc-casecoll'.
30002         * lib/unicase.h (ulc_casecoll): New declaration.
30003         * lib/unicase/ulc-casecoll.c: New file.
30004         * modules/unicase/ulc-casecoll: New file.
30005
30006         New module 'unicase/ulc-casexfrm'.
30007         * lib/unicase.h (ulc_casexfrm): New declaration.
30008         * lib/unicase/ulc-casexfrm.c: New file.
30009         * modules/unicase/ulc-casexfrm: New file.
30010
30011 2009-03-09  Bruno Haible  <bruno@clisp.org>
30012
30013         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
30014         invocations.
30015
30016         * m4/mbscasecmp.m4: Remove file.
30017         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
30018         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
30019
30020         * m4/mbscasestr.m4: Remove file.
30021         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
30022         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
30023
30024         * m4/mbschr.m4: Remove file.
30025         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
30026         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
30027
30028         * m4/mbscspn.m4: Remove file.
30029         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
30030         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
30031
30032         * m4/mbslen.m4: Remove file.
30033         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
30034         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
30035
30036         * m4/mbsncasecmp.m4: Remove file.
30037         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
30038         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
30039
30040         * m4/mbsnlen.m4: Remove file.
30041         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
30042         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
30043
30044         * m4/mbspbrk.m4: Remove file.
30045         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
30046         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
30047
30048         * m4/mbspcasecmp.m4: Remove file.
30049         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
30050         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
30051
30052         * m4/mbsrchr.m4: Remove file.
30053         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
30054         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
30055
30056         * m4/mbssep.m4: Remove file.
30057         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
30058         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
30059
30060         * m4/mbsspn.m4: Remove file.
30061         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
30062         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
30063
30064         * m4/mbsstr.m4: Remove file.
30065         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
30066         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
30067
30068         * m4/mbstok_r.m4: Remove file.
30069         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
30070         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
30071
30072         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
30073
30074         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
30075         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
30076
30077         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
30078
30079 2009-03-08  Bruno Haible  <bruno@clisp.org>
30080
30081         Tests for module 'unicase/ulc-casecmp'.
30082         * modules/unicase/ulc-casecmp-tests: New file.
30083         * tests/unicase/test-ulc-casecmp1.sh: New file.
30084         * tests/unicase/test-ulc-casecmp2.sh: New file.
30085         * tests/unicase/test-ulc-casecmp.c: New file.
30086
30087         New module 'unicase/ulc-casecmp'.
30088         * lib/unicase.h (ulc_casecmp): New declaration.
30089         * lib/unicase/ulc-casecmp.c: New file.
30090         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
30091         'const SRC_UNIT *'.
30092         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
30093         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
30094         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
30095         * modules/unicase/ulc-casecmp: New file.
30096
30097         Tests for module 'unicase/u32-is-cased'.
30098         * modules/unicase/u32-is-cased-tests: New file.
30099         * tests/unicase/test-u32-is-cased.c: New file.
30100
30101         Tests for module 'unicase/u16-is-cased'.
30102         * modules/unicase/u16-is-cased-tests: New file.
30103         * tests/unicase/test-u16-is-cased.c: New file.
30104
30105         Tests for module 'unicase/u8-is-cased'.
30106         * modules/unicase/u8-is-cased-tests: New file.
30107         * tests/unicase/test-u8-is-cased.c: New file.
30108         * tests/unicase/test-is-cased.h: New file.
30109
30110         New module 'unicase/u32-is-cased'.
30111         * lib/unicase/u32-is-cased.c: New file.
30112         * modules/unicase/u32-is-cased: New file.
30113
30114         New module 'unicase/u16-is-cased'.
30115         * lib/unicase/u16-is-cased.c: New file.
30116         * modules/unicase/u16-is-cased: New file.
30117
30118         New module 'unicase/u8-is-cased'.
30119         * lib/unicase/u8-is-cased.c: New file.
30120         * lib/unicase/u-is-cased.h: New file.
30121         * modules/unicase/u8-is-cased: New file.
30122
30123         Tests for module 'unicase/u32-is-casefolded'.
30124         * modules/unicase/u32-is-casefolded-tests: New file.
30125         * tests/unicase/test-u32-is-casefolded.c: New file.
30126
30127         Tests for module 'unicase/u16-is-casefolded'.
30128         * modules/unicase/u16-is-casefolded-tests: New file.
30129         * tests/unicase/test-u16-is-casefolded.c: New file.
30130
30131         Tests for module 'unicase/u8-is-casefolded'.
30132         * modules/unicase/u8-is-casefolded-tests: New file.
30133         * tests/unicase/test-u8-is-casefolded.c: New file.
30134         * tests/unicase/test-is-casefolded.h: New file.
30135
30136         New module 'unicase/u32-is-casefolded'.
30137         * lib/unicase/u32-is-casefolded.c: New file.
30138         * modules/unicase/u32-is-casefolded: New file.
30139
30140         New module 'unicase/u16-is-casefolded'.
30141         * lib/unicase/u16-is-casefolded.c: New file.
30142         * modules/unicase/u16-is-casefolded: New file.
30143
30144         New module 'unicase/u8-is-casefolded'.
30145         * lib/unicase/u8-is-casefolded.c: New file.
30146         * modules/unicase/u8-is-casefolded: New file.
30147
30148         Tests for module 'unicase/u32-is-titlecase'.
30149         * modules/unicase/u32-is-titlecase-tests: New file.
30150         * tests/unicase/test-u32-is-titlecase.c: New file.
30151
30152         Tests for module 'unicase/u16-is-titlecase'.
30153         * modules/unicase/u16-is-titlecase-tests: New file.
30154         * tests/unicase/test-u16-is-titlecase.c: New file.
30155
30156         Tests for module 'unicase/u8-is-titlecase'.
30157         * modules/unicase/u8-is-titlecase-tests: New file.
30158         * tests/unicase/test-u8-is-titlecase.c: New file.
30159         * tests/unicase/test-is-titlecase.h: New file.
30160
30161         New module 'unicase/u32-is-titlecase'.
30162         * lib/unicase/u32-is-titlecase.c: New file.
30163         * modules/unicase/u32-is-titlecase: New file.
30164
30165         New module 'unicase/u16-is-titlecase'.
30166         * lib/unicase/u16-is-titlecase.c: New file.
30167         * modules/unicase/u16-is-titlecase: New file.
30168
30169         New module 'unicase/u8-is-titlecase'.
30170         * lib/unicase/u8-is-titlecase.c: New file.
30171         * modules/unicase/u8-is-titlecase: New file.
30172
30173         Tests for module 'unicase/u32-is-lowercase'.
30174         * modules/unicase/u32-is-lowercase-tests: New file.
30175         * tests/unicase/test-u32-is-lowercase.c: New file.
30176
30177         Tests for module 'unicase/u16-is-lowercase'.
30178         * modules/unicase/u16-is-lowercase-tests: New file.
30179         * tests/unicase/test-u16-is-lowercase.c: New file.
30180
30181         Tests for module 'unicase/u8-is-lowercase'.
30182         * modules/unicase/u8-is-lowercase-tests: New file.
30183         * tests/unicase/test-u8-is-lowercase.c: New file.
30184         * tests/unicase/test-is-lowercase.h: New file.
30185
30186         New module 'unicase/u32-is-lowercase'.
30187         * lib/unicase/u32-is-lowercase.c: New file.
30188         * modules/unicase/u32-is-lowercase: New file.
30189
30190         New module 'unicase/u16-is-lowercase'.
30191         * lib/unicase/u16-is-lowercase.c: New file.
30192         * modules/unicase/u16-is-lowercase: New file.
30193
30194         New module 'unicase/u8-is-lowercase'.
30195         * lib/unicase/u8-is-lowercase.c: New file.
30196         * modules/unicase/u8-is-lowercase: New file.
30197
30198         Tests for module 'unicase/u32-is-uppercase'.
30199         * modules/unicase/u32-is-uppercase-tests: New file.
30200         * tests/unicase/test-u32-is-uppercase.c: New file.
30201
30202         Tests for module 'unicase/u16-is-uppercase'.
30203         * modules/unicase/u16-is-uppercase-tests: New file.
30204         * tests/unicase/test-u16-is-uppercase.c: New file.
30205
30206         Tests for module 'unicase/u8-is-uppercase'.
30207         * modules/unicase/u8-is-uppercase-tests: New file.
30208         * tests/unicase/test-u8-is-uppercase.c: New file.
30209         * tests/unicase/test-is-uppercase.h: New file.
30210
30211         New module 'unicase/u32-is-uppercase'.
30212         * lib/unicase/u32-is-uppercase.c: New file.
30213         * modules/unicase/u32-is-uppercase: New file.
30214
30215         New module 'unicase/u16-is-uppercase'.
30216         * lib/unicase/u16-is-uppercase.c: New file.
30217         * modules/unicase/u16-is-uppercase: New file.
30218
30219         New module 'unicase/u8-is-uppercase'.
30220         * lib/unicase/u8-is-uppercase.c: New file.
30221         * modules/unicase/u8-is-uppercase: New file.
30222
30223         New module 'unicase/u32-is-invariant'.
30224         * lib/unicase/u32-is-invariant.c: New file.
30225         * modules/unicase/u32-is-invariant: New file.
30226
30227         New module 'unicase/u16-is-invariant'.
30228         * lib/unicase/u16-is-invariant.c: New file.
30229         * modules/unicase/u16-is-invariant: New file.
30230
30231         New module 'unicase/u8-is-invariant'.
30232         * lib/unicase/u8-is-invariant.c: New file.
30233         * lib/unicase/invariant.h: New file.
30234         * lib/unicase/u-is-invariant.h: New file.
30235         * modules/unicase/u8-is-invariant: New file.
30236
30237         Tests for module 'unicase/u32-casecoll'.
30238         * modules/unicase/u32-casecoll-tests: New file.
30239         * tests/unicase/test-u32-casecoll.c: New file.
30240
30241         Tests for module 'unicase/u16-casecoll'.
30242         * modules/unicase/u16-casecoll-tests: New file.
30243         * tests/unicase/test-u16-casecoll.c: New file.
30244
30245         Tests for module 'unicase/u8-casecoll'.
30246         * modules/unicase/u8-casecoll-tests: New file.
30247         * tests/unicase/test-u8-casecoll.c: New file.
30248
30249         New module 'unicase/u32-casecoll'.
30250         * lib/unicase/u32-casecoll.c: New file.
30251         * modules/unicase/u32-casecoll: New file.
30252
30253         New module 'unicase/u16-casecoll'.
30254         * lib/unicase/u16-casecoll.c: New file.
30255         * modules/unicase/u16-casecoll: New file.
30256
30257         New module 'unicase/u8-casecoll'.
30258         * lib/unicase/u8-casecoll.c: New file.
30259         * lib/unicase/u-casecoll.h: New file.
30260         * modules/unicase/u8-casecoll: New file.
30261
30262         New module 'unicase/u32-casexfrm'.
30263         * lib/unicase/u32-casexfrm.c: New file.
30264         * modules/unicase/u32-casexfrm: New file.
30265
30266         New module 'unicase/u16-casexfrm'.
30267         * lib/unicase/u16-casexfrm.c: New file.
30268         * modules/unicase/u16-casexfrm: New file.
30269
30270         New module 'unicase/u8-casexfrm'.
30271         * lib/unicase/u8-casexfrm.c: New file.
30272         * lib/unicase/u-casexfrm.h: New file.
30273         * modules/unicase/u8-casexfrm: New file.
30274
30275         Tests for module 'unicase/u32-casecmp'.
30276         * modules/unicase/u32-casecmp-tests: New file.
30277         * tests/unicase/test-u32-casecmp.c: New file.
30278
30279         Tests for module 'unicase/u16-casecmp'.
30280         * modules/unicase/u16-casecmp-tests: New file.
30281         * tests/unicase/test-u16-casecmp.c: New file.
30282
30283         Tests for module 'unicase/u8-casecmp'.
30284         * modules/unicase/u8-casecmp-tests: New file.
30285         * tests/unicase/test-u8-casecmp.c: New file.
30286         * tests/unicase/test-casecmp.h: New file.
30287
30288         New module 'unicase/u32-casecmp'.
30289         * lib/unicase/u32-casecmp.c: New file.
30290         * modules/unicase/u32-casecmp: New file.
30291
30292         New module 'unicase/u16-casecmp'.
30293         * lib/unicase/u16-casecmp.c: New file.
30294         * modules/unicase/u16-casecmp: New file.
30295
30296         New module 'unicase/u8-casecmp'.
30297         * lib/unicase/u8-casecmp.c: New file.
30298         * lib/unicase/u-casecmp.h: New file.
30299         * modules/unicase/u8-casecmp: New file.
30300
30301         Tests for module 'unicase/u32-casefold'.
30302         * modules/unicase/u32-casefold-tests: New file.
30303         * tests/unicase/test-u32-casefold.c: New file.
30304
30305         Tests for module 'unicase/u16-casefold'.
30306         * modules/unicase/u16-casefold-tests: New file.
30307         * tests/unicase/test-u16-casefold.c: New file.
30308
30309         Tests for module 'unicase/u8-casefold'.
30310         * modules/unicase/u8-casefold-tests: New file.
30311         * tests/unicase/test-u8-casefold.c: New file.
30312
30313         New module 'unicase/u32-casefold'.
30314         * lib/unicase/u32-casefold.c: New file.
30315         * modules/unicase/u32-casefold: New file.
30316
30317         New module 'unicase/u16-casefold'.
30318         * lib/unicase/u16-casefold.c: New file.
30319         * modules/unicase/u16-casefold: New file.
30320
30321         New module 'unicase/u8-casefold'.
30322         * lib/unicase/u8-casefold.c: New file.
30323         * lib/unicase/u-casefold.h: New file.
30324         * modules/unicase/u8-casefold: New file.
30325
30326         New module 'unicase/tocasefold'.
30327         * lib/unicase/casefold.h: New file.
30328         * lib/unicase/tocasefold.c: New file.
30329         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
30330         * modules/unicase/tocasefold: New file.
30331
30332         Tests for module 'unicase/u32-totitle'.
30333         * modules/unicase/u32-totitle-tests: New file.
30334         * tests/unicase/test-u32-totitle.c: New file.
30335
30336         Tests for module 'unicase/u16-totitle'.
30337         * modules/unicase/u16-totitle-tests: New file.
30338         * tests/unicase/test-u16-totitle.c: New file.
30339
30340         Tests for module 'unicase/u8-totitle'.
30341         * modules/unicase/u8-totitle-tests: New file.
30342         * tests/unicase/test-u8-totitle.c: New file.
30343
30344         New module 'unicase/u32-totitle'.
30345         * lib/unicase/u32-totitle.c: New file.
30346         * modules/unicase/u32-totitle: New file.
30347
30348         New module 'unicase/u16-totitle'.
30349         * lib/unicase/u16-totitle.c: New file.
30350         * modules/unicase/u16-totitle: New file.
30351
30352         New module 'unicase/u8-totitle'.
30353         * lib/unicase/u8-totitle.c: New file.
30354         * lib/unicase/u-totitle.h: New file.
30355         * modules/unicase/u8-totitle: New file.
30356
30357         Tests for module 'unicase/u32-tolower'.
30358         * modules/unicase/u32-tolower-tests: New file.
30359         * tests/unicase/test-u32-tolower.c: New file.
30360
30361         Tests for module 'unicase/u16-tolower'.
30362         * modules/unicase/u16-tolower-tests: New file.
30363         * tests/unicase/test-u16-tolower.c: New file.
30364
30365         Tests for module 'unicase/u8-tolower'.
30366         * modules/unicase/u8-tolower-tests: New file.
30367         * tests/unicase/test-u8-tolower.c: New file.
30368
30369         New module 'unicase/u32-tolower'.
30370         * lib/unicase/u32-tolower.c: New file.
30371         * modules/unicase/u32-tolower: New file.
30372
30373         New module 'unicase/u16-tolower'.
30374         * lib/unicase/u16-tolower.c: New file.
30375         * modules/unicase/u16-tolower: New file.
30376
30377         New module 'unicase/u8-tolower'.
30378         * lib/unicase/u8-tolower.c: New file.
30379         * modules/unicase/u8-tolower: New file.
30380
30381         Tests for module 'unicase/u32-toupper'.
30382         * modules/unicase/u32-toupper-tests: New file.
30383         * tests/unicase/test-u32-toupper.c: New file.
30384
30385         Tests for module 'unicase/u16-toupper'.
30386         * modules/unicase/u16-toupper-tests: New file.
30387         * tests/unicase/test-u16-toupper.c: New file.
30388
30389         Tests for module 'unicase/u8-toupper'.
30390         * modules/unicase/u8-toupper-tests: New file.
30391         * tests/unicase/test-u8-toupper.c: New file.
30392
30393         New module 'unicase/u32-toupper'.
30394         * lib/unicase/u32-toupper.c: New file.
30395         * modules/unicase/u32-toupper: New file.
30396
30397         New module 'unicase/u16-toupper'.
30398         * lib/unicase/u16-toupper.c: New file.
30399         * modules/unicase/u16-toupper: New file.
30400
30401         New module 'unicase/u8-toupper'.
30402         * lib/unicase/u8-toupper.c: New file.
30403         * modules/unicase/u8-toupper: New file.
30404
30405         New module 'unicase/u32-casemap'.
30406         * lib/unicase/u32-casemap.c: New file.
30407         * modules/unicase/u32-casemap: New file.
30408
30409         New module 'unicase/u16-casemap'.
30410         * lib/unicase/u16-casemap.c: New file.
30411         * modules/unicase/u16-casemap: New file.
30412
30413         New module 'unicase/u8-casemap'.
30414         * lib/unicase/unicasemap.h: New file.
30415         * lib/unicase/u8-casemap.c: New file.
30416         * lib/unicase/u-casemap.h: New file.
30417         * modules/unicase/u8-casemap: New file.
30418
30419         New module 'unicase/special-casing'.
30420         * lib/unicase/special-casing.h: New file.
30421         * lib/unicase/special-casing.c: New file.
30422         * lib/unicase/special-casing-table.gperf: New file, generated by
30423         gen-uni-tables.c.
30424         * modules/unicase/special-casing: New file.
30425
30426         Tests for module 'unicase/locale-language'.
30427         * modules/unicase/locale-language-tests: New file.
30428         * tests/unicase/test-locale-language.sh: New file.
30429         * tests/unicase/test-locale-language.c: New file.
30430
30431         New module 'unicase/locale-language'.
30432         * lib/unicase/locale-language.c: New file.
30433         * lib/unicase/locale-languages.gperf: New file.
30434         * modules/unicase/locale-language: New file.
30435
30436         Generate more tables for case conversion and case folding.
30437         * lib/gen-uni-tables.c (SCC_*): New enum items.
30438         (struct special_casing_rule): New type.
30439         (casing_rules, num_casing_rules, allocated_casing_rules): New
30440         variables.
30441         (add_casing_rule, fill_casing_rules): New functions.
30442         (struct casefold_rule): New type.
30443         (casefolding_rules, num_casefolding_rules,
30444         allocated_casefolding_rules): New variables.
30445         (fill_casefolding_rules): New function.
30446         (unicode_casefold): New variable.
30447         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
30448         sort_casing_rules, output_casing_rules): New functions.
30449         (main): Accept to more arguments: SpecialCasing.txt and
30450         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
30451         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
30452         Output mapping for casefolding.
30453
30454         * lib/unicase.h: Include stdbool.h, uninorm.h.
30455         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
30456         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
30457         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
30458         arguments.
30459         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
30460         resultp arguments.
30461         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
30462         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
30463         resultp arguments.
30464         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
30465         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
30466         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
30467         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
30468         declarations.
30469         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
30470
30471 2009-03-08  Bruno Haible  <bruno@clisp.org>
30472
30473         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30474         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
30475         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
30476         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30477
30478 2009-03-07  Bruno Haible  <bruno@clisp.org>
30479
30480         Adjust u*_normcmp, u*_normcoll API.
30481         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30482         u16_normcoll, u32_normcoll): Change failure conventions.
30483         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
30484         errno and return -1.
30485         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30486
30487 2009-03-07  Bruno Haible  <bruno@clisp.org>
30488
30489         Tests for module 'uninorm/u32-normcoll'.
30490         * modules/uninorm/u32-normcoll-tests: New file.
30491         * tests/uninorm/test-u32-normcoll.c: New file.
30492
30493         Tests for module 'uninorm/u16-normcoll'.
30494         * modules/uninorm/u16-normcoll-tests: New file.
30495         * tests/uninorm/test-u16-normcoll.c: New file.
30496
30497         Tests for module 'uninorm/u8-normcoll'.
30498         * modules/uninorm/u8-normcoll-tests: New file.
30499         * tests/uninorm/test-u8-normcoll.c: New file.
30500
30501 2009-03-07  Bruno Haible  <bruno@clisp.org>
30502
30503         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
30504         tests/uninorm/test-u32-normcmp.c.
30505         * tests/uninorm/test-u32-normcmp.c: Include it.
30506         (test_nonascii): New function, extracted from main. Add some more
30507         tests.
30508         (main): Invoke test_ascii and test_nonascii.
30509         * modules/uninorm/u32-normcmp-tests (Files): Add
30510         tests/uninorm/test-u32-normcmp.h.
30511         (Depends-on): Remove uninorm/u32-normcmp.
30512
30513         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
30514         tests/uninorm/test-u16-normcmp.c.
30515         * tests/uninorm/test-u16-normcmp.c: Include it.
30516         (test_nonascii): New function, extracted from main. Add some more
30517         tests.
30518         (main): Invoke test_ascii and test_nonascii.
30519         * modules/uninorm/u16-normcmp-tests (Files): Add
30520         tests/uninorm/test-u16-normcmp.h.
30521         (Depends-on): Remove uninorm/u16-normcmp.
30522
30523         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
30524         tests/uninorm/test-u8-normcmp.c.
30525         * tests/uninorm/test-u8-normcmp.c: Include it.
30526         (test_nonascii): New function, extracted from main. Add some more
30527         tests.
30528         (main): Invoke test_ascii and test_nonascii.
30529         * modules/uninorm/u8-normcmp-tests (Files): Add
30530         tests/uninorm/test-u8-normcmp.h.
30531         (Depends-on): Remove uninorm/u8-normcmp.
30532
30533 2009-03-07  Bruno Haible  <bruno@clisp.org>
30534
30535         New module 'uninorm/u32-normcoll'.
30536         * lib/uninorm/u32-normcoll.c: New file.
30537         * modules/uninorm/u32-normcoll: New file.
30538
30539         New module 'uninorm/u16-normcoll'.
30540         * lib/uninorm/u16-normcoll.c: New file.
30541         * modules/uninorm/u16-normcoll: New file.
30542
30543         New module 'uninorm/u8-normcoll'.
30544         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
30545         declarations.
30546         * lib/uninorm/u8-normcoll.c: New file.
30547         * lib/uninorm/u-normcoll.h: New file.
30548         * modules/uninorm/u8-normcoll: New file.
30549
30550         New module 'uninorm/u32-normxfrm'.
30551         * lib/uninorm/u32-normxfrm.c: New file.
30552         * modules/uninorm/u32-normxfrm: New file.
30553
30554         New module 'uninorm/u16-normxfrm'.
30555         * lib/uninorm/u16-normxfrm.c: New file.
30556         * modules/uninorm/u16-normxfrm: New file.
30557
30558         New module 'uninorm/u8-normxfrm'.
30559         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
30560         declarations.
30561         * lib/uninorm/u8-normxfrm.c: New file.
30562         * lib/uninorm/u-normxfrm.h: New file.
30563         * modules/uninorm/u8-normxfrm: New file.
30564
30565 2009-03-07  Bruno Haible  <bruno@clisp.org>
30566
30567         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
30568         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
30569         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
30570
30571 2009-03-07  Bruno Haible  <bruno@clisp.org>
30572
30573         New module 'memxfrm'.
30574         * lib/memxfrm.h: New file.
30575         * lib/memxfrm.c: New file.
30576         * modules/memxfrm: New file.
30577
30578 2009-03-07  Bruno Haible  <bruno@clisp.org>
30579
30580         New module 'memcmp2'.
30581         * lib/memcmp2.h: New file.
30582         * lib/memcmp2.c: New file.
30583         * modules/memcmp2: New file.
30584
30585 2009-03-07  Bruno Haible  <bruno@clisp.org>
30586
30587         Tests for module 'uninorm/decomposing-form'.
30588         * modules/uninorm/decomposing-form-tests: New file.
30589         * tests/uninorm/test-decomposing-form.c: New file.
30590
30591         New module 'uninorm/decomposing-form'.
30592         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
30593         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
30594         Add 'decomposing_variant' field.
30595         * lib/uninorm/decomposing-form.c: New file.
30596         * lib/uninorm/nfc.c (uninorm_nfc): Update.
30597         * lib/uninorm/nfd.c (uninorm_nfd): Update.
30598         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
30599         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
30600         * modules/uninorm/decomposing-form: New file.
30601         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
30602         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
30603
30604 2009-03-07  Bruno Haible  <bruno@clisp.org>
30605
30606         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
30607         strings.
30608
30609 2009-03-06  Bruno Haible  <bruno@clisp.org>
30610
30611         Tests for module 'uninorm/u32-normcmp'.
30612         * tests/uninorm/test-u32-normcmp.c: New file.
30613         * modules/uninorm/u32-normcmp-tests: New file.
30614
30615         Tests for module 'uninorm/u16-normcmp'.
30616         * tests/uninorm/test-u16-normcmp.c: New file.
30617         * modules/uninorm/u16-normcmp-tests: New file.
30618
30619         Tests for module 'uninorm/u8-normcmp'.
30620         * tests/uninorm/test-u8-normcmp.c: New file.
30621         * modules/uninorm/u8-normcmp-tests: New file.
30622
30623         New module 'uninorm/u32-normcmp'.
30624         * lib/uninorm/u32-normcmp.c: New file.
30625         * modules/uninorm/u32-normcmp: New file.
30626
30627         New module 'uninorm/u16-normcmp'.
30628         * lib/uninorm/u16-normcmp.c: New file.
30629         * modules/uninorm/u16-normcmp: New file.
30630
30631         New module 'uninorm/u8-normcmp'.
30632         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
30633         declarations.
30634         * lib/uninorm/u8-normcmp.c: New file.
30635         * lib/uninorm/u-normcmp.h: New file.
30636         * modules/uninorm/u8-normcmp: New file.
30637
30638 2009-03-06  Bruno Haible  <bruno@clisp.org>
30639
30640         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
30641         Reported by Eric Blake.
30642
30643 2009-03-06  Eric Blake  <ebb9@byu.net>
30644             Bruno Haible  <bruno@clisp.org>
30645
30646         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
30647         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
30648         condition.
30649         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30650         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
30651         condition.
30652         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30653
30654 2009-03-06  Eric Blake  <ebb9@byu.net>
30655
30656         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
30657         to avoid compiler warnings.
30658         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
30659
30660 2009-03-05  Bruno Haible  <bruno@clisp.org>
30661
30662         * tests/test-ftell.c (main): Disable test beyond end of file on
30663         FreeMiNT.
30664         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30665
30666 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
30667
30668         * lib/filevercmp.c: Move hidden files up in ordering.
30669         * tests/test-filevercmp.c: Add tests for hidden files.
30670
30671 2009-03-04  Bruno Haible  <bruno@clisp.org>
30672
30673         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
30674         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
30675         AM_CFLAGS.
30676         Reported by Simon Josefsson.
30677
30678 2009-03-03  Bruno Haible  <bruno@clisp.org>
30679
30680         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
30681         Reported by Simon Josefsson.
30682
30683         * doc/ld-version-script.texi: Update node reference.
30684
30685 2009-03-03  Bruno Haible  <bruno@clisp.org>
30686
30687         * modules/visibility (License): Change to 'unlimited'.
30688         Suggested by Simon Josefsson.
30689
30690 2009-03-03  Jim Meyering  <meyering@redhat.com>
30691
30692         unlinkdir: cannot_unlink_dir may modify process state
30693         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
30694         it's neither thread-safe nor appropriate for use in a library.
30695
30696 2009-03-03  Eric Blake  <ebb9@byu.net>
30697
30698         test-closein: silence test under Darwin
30699         * tests/test-closein.sh: Ignore stderr from cat, since we don't
30700         care if it dies from EPIPE or EBADF.
30701
30702 2009-03-03  Bruno Haible  <bruno@clisp.org>
30703
30704         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
30705         earlier.
30706         * doc/visibility.texi: Fix @node and @section.
30707
30708 2009-03-03  Simon Josefsson  <simon@josefsson.org>
30709
30710         * doc/gnulib.texi: Link to sections for ld version script and
30711         visibility.
30712         * doc/visibility.texi: Add @node and @section.
30713         * modules/ld-version-script: New module.
30714         * m4/ld-version-script.m4: New file.
30715         * doc/ld-version-script.texi: New file.
30716
30717 2009-03-02  David Lutterkort  <lutter@redhat.com>
30718
30719         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
30720         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30721
30722 2009-03-02  Bruno Haible  <bruno@clisp.org>
30723
30724         * doc/visibility.texi: Mention libtool's -export-symbols option.
30725
30726 2009-03-02  Jim Meyering  <meyering@redhat.com>
30727
30728         announce-gen: new option: --no-print-checksums
30729         * build-aux/announce-gen (usage): Describe it.
30730         (print_checksums): Print a newline here, not in the [*] footnote.
30731         (main): Honor it.
30732
30733 2009-03-01  Bruno Haible  <bruno@clisp.org>
30734
30735         Use socklen_t in the native Windows replacements prototypes.
30736         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
30737         instead of 'int'.
30738         * lib/getsockopt.c (rpl_getsockopt): Likewise.
30739         * lib/setsockopt.c (rpl_setsockopt): Likewise.
30740         * modules/getsockopt (Depends-on): Add socklen.
30741         * modules/setsockopt (Depends-on): Add socklen.
30742
30743 2009-03-01  Bruno Haible  <bruno@clisp.org>
30744
30745         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
30746         least 4.2.
30747
30748 2009-03-01  Eric Blake  <ebb9@byu.net>
30749             Bruno Haible  <bruno@clisp.org>
30750
30751         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
30752         error messages.
30753         * lib/wait-process.c (wait_subprocess): Omit error message about
30754         deadly signal sent to the child of termsigp != NULL.
30755
30756 2009-03-01  Eric Blake  <ebb9@byu.net>
30757
30758         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
30759
30760 2009-03-01  Bruno Haible  <bruno@clisp.org>
30761
30762         Avoid a gcc warning.
30763         * tests/test-sched.c (b): Make global.
30764         Reported by Eric Blake.
30765
30766 2009-01-19  Martin Lambers  <marlam@marlam.de>
30767
30768         Provide POSIX semantics for socket timeout options on W32.
30769         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
30770         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
30771         * modules/setsockopt: Depend on sys_time module for struct timeval.
30772         * modules/getsockopt: Depend on sys_time module for struct timeval.
30773
30774 2009-03-01  Simon Josefsson  <simon@josefsson.org>
30775
30776         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
30777         __USE_GNU, for consistency with netdb.in.h.
30778         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30779
30780 2009-03-01  Bruno Haible  <bruno@clisp.org>
30781
30782         More support for FreeMiNT.
30783         * lib/fseeko.c (rpl_fseeko): Complete last commit.
30784         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30785
30786 2009-03-01  Bruno Haible  <bruno@clisp.org>
30787
30788         More support for FreeMiNT.
30789         * lib/fpurge.c (fpurge): Correct last commit.
30790         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30791
30792 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30793
30794         Fix unportable awk script in vc-list-files.
30795         * build-aux/vc-list-files: In the replacement awk script, use
30796         substr with a second argument of 1, not zero.
30797         Report by Simon Josefsson.
30798
30799 2009-02-28  Bruno Haible  <bruno@clisp.org>
30800
30801         More support for FreeMiNT.
30802         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
30803         to FreeMiNT today.
30804         * lib/fwriting.c (fwriting): Likewise.
30805         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
30806
30807 2009-02-28  Bruno Haible  <bruno@clisp.org>
30808
30809         * tests/test-freadseek.c (main): Disable test beyond end of file on
30810         FreeMiNT.
30811         * tests/test-ftello.c (main): Likewise.
30812         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30813
30814 2009-02-28  Bruno Haible  <bruno@clisp.org>
30815
30816         Add tentative support for FreeMiNT.
30817         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
30818         * lib/fpurge.c (fpurge): Likewise.
30819         * lib/freadable.c (freadable): Likewise.
30820         * lib/freading.c (freading): Likewise.
30821         * lib/freadptr.c (freadptr): Likewise.
30822         * lib/freadseek.c (freadptrinc): Likewise.
30823         * lib/fseeko.c (rpl_fseeko): Likewise.
30824         * lib/fseterr.c (fseterr): Likewise.
30825         * lib/fwritable.c (fwritable): Likewise.
30826         * lib/fwriting.c (fwriting): Likewise.
30827         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
30828         Hourihane.
30829         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30830
30831 2009-02-28  Bruno Haible  <bruno@clisp.org>
30832
30833         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
30834         SIGCHLD.
30835         Reported by Jim Meyering.
30836
30837 2009-02-28  Bruno Haible  <bruno@clisp.org>
30838
30839         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
30840         Mention the results of these tests on various platforms.
30841         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
30842         order.
30843         * doc/posix-functions/printf.texi: Likewise.
30844         * doc/posix-functions/snprintf.texi: Likewise.
30845         * doc/posix-functions/sprintf.texi: Likewise.
30846         * doc/posix-functions/vfprintf.texi: Likewise.
30847         * doc/posix-functions/vprintf.texi: Likewise.
30848         * doc/posix-functions/vsnprintf.texi: Likewise.
30849         * doc/posix-functions/vsprintf.texi: Likewise.
30850         * doc/glibc-functions/obstack_printf.texi: Likewise.
30851         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
30852
30853 2009-02-28  Bruno Haible  <bruno@clisp.org>
30854
30855         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
30856         Reported by Loïc Minier <lool@dooz.org>.
30857
30858 2009-02-27  Bruno Haible  <bruno@clisp.org>
30859
30860         * gnulib-tool (func_import): Make the sed expression used to create the
30861         sed script for updating the .gitignore file POSIX compliant.
30862         Reported by Eric Blake.
30863
30864 2009-02-27  Bruno Haible  <bruno@clisp.org>
30865
30866         * gnulib-tool (sed): Don't alias as "sed --posix".
30867         Reported by Eric Blake.
30868
30869 2009-02-27  Bruno Haible  <bruno@clisp.org>
30870
30871         Avoid test link errors.
30872         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
30873         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
30874         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
30875         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
30876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30877
30878 2009-02-27  Bruno Haible  <bruno@clisp.org>
30879
30880         Avoid spurious "(cached)" in configure output.
30881         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
30882         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
30883         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30884         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30885         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30886         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30887         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30888         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30889         Reported by Eric Blake.
30890
30891 2009-02-27  Eric Blake  <ebb9@byu.net>
30892
30893         printf: fix regression in previous patch
30894         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
30895
30896 2009-02-27  Bruno Haible  <bruno@clisp.org>
30897
30898         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
30899         value.
30900         * lib/stdint.in.h: Likewise.
30901         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
30902
30903 2009-02-27  Eric Blake  <ebb9@byu.net>
30904
30905         doc: mention more functions added in cygwin 1.7.0
30906         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
30907         addition.
30908         * doc/posix-functions/open_wmemstream.texi: Likewise.
30909         * doc/posix-functions/wcsnlen.texi: Likewise.
30910         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30911         * doc/posix-functions/wcstod.texi: Likewise.
30912         * doc/posix-functions/wcstof.texi: Likewise.
30913         * doc/posix-functions/wcstoimax.texi: Likewise.
30914         * doc/posix-functions/wcstok.texi: Likewise.
30915         * doc/posix-functions/wcstoumax.texi: Likewise.
30916
30917         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
30918         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
30919         * doc/posix-functions/fprintf.texi: Update.
30920         * doc/posix-functions/printf.texi: Update.
30921         * doc/posix-functions/snprintf.texi: Update.
30922         * doc/posix-functions/sprintf.texi: Update.
30923         * doc/posix-functions/vfprintf.texi: Update.
30924         * doc/posix-functions/vprintf.texi: Update.
30925         * doc/posix-functions/vsnprintf.texi: Update.
30926         * doc/posix-functions/vsprintf.texi: Update.
30927         * doc/glibc-functions/obstack_printf.texi: Update.
30928         * doc/glibc-functions/obstack_vprintf.texi: Update.
30929
30930 2009-02-26  Eric Blake  <ebb9@byu.net>
30931
30932         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
30933         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
30934         compilation bug by using runtime conversion.
30935         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30936         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
30937         * modules/ceill-tests (Files): Use nan.h.
30938         * modules/floorl-tests (Files): Likewise.
30939         * modules/frexpl-tests (Files): Likewise.
30940         * modules/isnanl-tests (Files): Likewise.
30941         * modules/ldexpl-tests (Files): Likewise.
30942         * modules/roundl-tests (Files): Likewise.
30943         * modules/truncl-tests (Files): Likewise.
30944         * tests/test-ceill.c (main): Use a working NaN.
30945         * tests/test-floorl.c (main): Likewise.
30946         * tests/test-frexpl.c (main): Likewise.
30947         * tests/test-isnan.c (test_long_double): Likewise.
30948         * tests/test-isnanl.h (main): Likewise.
30949         * tests/test-ldexpl.h (main): Likewise.
30950         * tests/test-roundl.h (main): Likewise.
30951         * tests/test-truncl.h (main): Likewise.
30952         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
30953
30954 2009-02-26  Eric Blake  <ebb9@byu.net>
30955             Bruno Haible  <bruno@clisp.org>
30956
30957         Work around a *printf bug with %ls on Solaris.
30958         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
30959         precision is specified, sprintf stops converting the wide string
30960         argument when the number of bytes that have been produced by this
30961         conversion equals or exceeds the precision.
30962         * doc/posix-functions/fprintf.texi: Update.
30963         * doc/posix-functions/printf.texi: Update.
30964         * doc/posix-functions/snprintf.texi: Update.
30965         * doc/posix-functions/sprintf.texi: Update.
30966         * doc/posix-functions/vfprintf.texi: Update.
30967         * doc/posix-functions/vprintf.texi: Update.
30968         * doc/posix-functions/vsnprintf.texi: Update.
30969         * doc/posix-functions/vsprintf.texi: Update.
30970         * doc/glibc-functions/obstack_printf.texi: Update.
30971         * doc/glibc-functions/obstack_vprintf.texi: Update.
30972
30973 2009-02-26  Eric Blake  <ebb9@byu.net>
30974
30975         stdlib: favor compiler check of random.h
30976         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
30977         to avoid an ObjC random.h installed by Swarm.
30978
30979 2009-02-26  Bruno Haible  <bruno@clisp.org>
30980
30981         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
30982         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
30983         Reported by Gary V. Vaughan <gary@gnu.org>.
30984
30985 2009-02-26  Bruno Haible  <bruno@clisp.org>
30986
30987         Fix *printf behaviour regarding the %ls directive.
30988         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
30989         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
30990         NEED_PRINTF_DIRECTIVE_LS.
30991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
30992         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30993         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30994         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
30995         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
30996         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
30997         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30998         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30999         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31000         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31001         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31002         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
31003         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31004         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31005         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31006         * doc/posix-functions/fprintf.texi: Update.
31007         * doc/posix-functions/printf.texi: Update.
31008         * doc/posix-functions/snprintf.texi: Update.
31009         * doc/posix-functions/sprintf.texi: Update.
31010         * doc/posix-functions/vfprintf.texi: Update.
31011         * doc/posix-functions/vprintf.texi: Update.
31012         * doc/posix-functions/vsnprintf.texi: Update.
31013         * doc/posix-functions/vsprintf.texi: Update.
31014         * doc/glibc-functions/obstack_printf.texi: Update.
31015         * doc/glibc-functions/obstack_vprintf.texi: Update.
31016         Reported by Eric Blake.
31017
31018 2009-02-25  Bruno Haible  <bruno@clisp.org>
31019
31020         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
31021         with known value.
31022         Reported by Gary V. Vaughan <gary@gnu.org>.
31023
31024 2009-02-25  Bruno Haible  <bruno@clisp.org>
31025
31026         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
31027         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
31028         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
31029         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
31030         Reported by Gary V. Vaughan <gary@gnu.org>.
31031
31032 2009-02-25  Bruno Haible  <bruno@clisp.org>
31033
31034         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
31035         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
31036         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
31037         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
31038         Reported by Gary V. Vaughan <gary@gnu.org>.
31039
31040 2009-02-25  Eric Blake  <ebb9@byu.net>
31041
31042         tests: skip fseek/ftell tests if ungetc is broken
31043         * m4/ungetc.m4: New file.
31044         * modules/fseek-tests: Split test, so ungetc dependency is
31045         separate from rest of test.
31046         * modules/fseeko-tests: Likewise.
31047         * modules/ftell-tests: Likewise.
31048         * modules/ftello-tests: Likewise.
31049         * tests/test-fseek.c (main): Isolate ungetc dependency.
31050         * tests/test-fseeko.c (main): Likewise.
31051         * tests/test-ftell.c (main): Likewise.
31052         * tests/test-ftello.c (main): Likewise.
31053         * tests/test-fseek2.sh: New file.
31054         * tests/test-fseeko2.sh: Likewise.
31055         * tests/test-ftell2.sh: Likewise.
31056         * tests/test-ftello2.sh: Likewise.
31057
31058 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
31059
31060         test-getaddrinfo: fix usage of skip return code 77
31061         * tests/test-gettaddrinfo.c: Return skip code 77 only
31062         for first occurance of skip (4x77 is not 77)
31063
31064 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
31065
31066         strtod: avoid C99 decl-after-statement
31067         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
31068
31069 2009-02-24  Eric Blake  <ebb9@byu.net>
31070
31071         strtod: detect HP-UX 11.31 bug
31072         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
31073         Reported by Gary V. Vaughan.
31074
31075 2009-02-23  Bruno Haible  <bruno@clisp.org>
31076
31077         Fix invalid read past end of memory block.
31078         * lib/vasnprintf.c (DCHAR_SET): Define.
31079         (local_wcslen): Define only when needed.
31080         (local_strnlen, local_wcsnlen): New functions.
31081         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
31082         directives that involve a conversion ourselves.
31083         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
31084         wcsnlen, mbrtowc, wcrtomb.
31085         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
31086         * tests/test-vasprintf-posix.c (test_function): Likewise.
31087         * tests/test-snprintf-posix.h (test_function): Likewise.
31088         * tests/test-sprintf-posix.h (test_function): Likewise.
31089         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31090
31091 2009-02-22  Bruno Haible  <bruno@clisp.org>
31092
31093         Implement new clarified decomposition of Hangul syllables.
31094         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
31095         of type LTV, return only a pairwise decomposition.
31096         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
31097         Likewise.
31098         * tests/uninorm/test-decomposition.c (main): Updated expected result.
31099         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
31100         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
31101
31102 2009-02-22  Bruno Haible  <bruno@clisp.org>
31103
31104         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
31105         zero-length results and shrink excess allocated memory.
31106         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
31107         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
31108         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
31109         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
31110         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
31111         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
31112         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
31113         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
31114         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
31115         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
31116         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
31117         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
31118
31119 2009-02-21  Bruno Haible  <bruno@clisp.org>
31120
31121         * doc/gnulib.texi: Include safe-alloc.texi earlier.
31122         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
31123         spaces after a period. Put a space between a macro name and its
31124         argument list. Trivial rewordings.
31125         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
31126         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
31127         (main): Return 0 explicitly.
31128
31129 2009-02-21  Bruno Haible  <bruno@clisp.org>
31130
31131         Tests for module 'uninorm/filter'.
31132         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
31133         * modules/uninorm/filter-tests: New file.
31134
31135         New module 'uninorm/filter'.
31136         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
31137         uninorm_filter_flush, uninorm_filter_free): New declarations.
31138         * lib/uninorm/uninorm-filter.c: New file.
31139         * modules/uninorm/filter: New file.
31140
31141 2009-02-21  Bruno Haible  <bruno@clisp.org>
31142
31143         Tests for module 'uninorm/nfkc'.
31144         * tests/uninorm/test-nfkc.c: New file.
31145         * tests/uninorm/test-u8-nfkc.c: New file.
31146         * tests/uninorm/test-u16-nfkc.c: New file.
31147         * tests/uninorm/test-u32-nfkc.c: New file.
31148         * tests/uninorm/test-u32-nfkc-big.sh: New file.
31149         * tests/uninorm/test-u32-nfkc-big.c: New file.
31150         * modules/uninorm/nfkc-tests: New file.
31151
31152         New module 'uninorm/nfkc'.
31153         * lib/uninorm/nfkc.c: New file.
31154         * modules/uninorm/nfkc: New file.
31155
31156         Tests for module 'uninorm/nfkd'.
31157         * tests/uninorm/test-nfkd.c: New file.
31158         * tests/uninorm/test-u8-nfkd.c: New file.
31159         * tests/uninorm/test-u16-nfkd.c: New file.
31160         * tests/uninorm/test-u32-nfkd.c: New file.
31161         * tests/uninorm/test-u32-nfkd-big.sh: New file.
31162         * tests/uninorm/test-u32-nfkd-big.c: New file.
31163         * modules/uninorm/nfkd-tests: New file.
31164
31165         New module 'uninorm/nfkd'.
31166         * lib/uninorm/nfkd.c: New file.
31167         * modules/uninorm/nfkd: New file.
31168
31169         Tests for module 'uninorm/nfc'.
31170         * tests/uninorm/test-nfc.c: New file.
31171         * tests/uninorm/test-u8-nfc.c: New file.
31172         * tests/uninorm/test-u16-nfc.c: New file.
31173         * tests/uninorm/test-u32-nfc.c: New file.
31174         * tests/uninorm/test-u32-nfc-big.sh: New file.
31175         * tests/uninorm/test-u32-nfc-big.c: New file.
31176         * modules/uninorm/nfc-tests: New file.
31177
31178         New module 'uninorm/nfc'.
31179         * lib/uninorm/nfc.c: New file.
31180         * modules/uninorm/nfc: New file.
31181
31182         Tests for module 'uninorm/nfd'.
31183         * tests/uninorm/test-nfd.c: New file.
31184         * tests/uninorm/test-u8-nfd.c: New file.
31185         * tests/uninorm/test-u16-nfd.c: New file.
31186         * tests/uninorm/test-u32-nfd.c: New file.
31187         * tests/uninorm/test-u32-nfd-big.sh: New file.
31188         * tests/uninorm/test-u32-nfd-big.c: New file.
31189         * tests/uninorm/test-u32-normalize-big.h: New file.
31190         * tests/uninorm/test-u32-normalize-big.c: New file.
31191         * tests/uninorm/NormalizationTest.txt: New file, created from
31192         Unicode 5.1.0 NormalizationTest.txt.
31193         * modules/uninorm/nfd-tests: New file.
31194
31195         New module 'uninorm/nfd'.
31196         * lib/uninorm/nfd.c: New file.
31197         * modules/uninorm/nfd: New file.
31198
31199         New module 'uninorm/u32-normalize'.
31200         * lib/uninorm/u32-normalize.c: New file.
31201         * modules/uninorm/u32-normalize: New file.
31202
31203         New module 'uninorm/u16-normalize'.
31204         * lib/uninorm/u16-normalize.c: New file.
31205         * modules/uninorm/u16-normalize: New file.
31206
31207         New module 'uninorm/u8-normalize'.
31208         * lib/uninorm/u8-normalize.c: New file.
31209         * lib/uninorm/normalize-internal.h: New file.
31210         * lib/uninorm/u-normalize-internal.h: New file.
31211         * modules/uninorm/u8-normalize: New file.
31212
31213         New module 'uninorm/decompose-internal'.
31214         * lib/uninorm/decompose-internal.c: New file.
31215         * modules/uninorm/decompose-internal: New file.
31216
31217         Tests for module 'uninorm/composition'.
31218         * tests/uninorm/test-composition.c: New file.
31219         * modules/uninorm/composition-tests: New file.
31220
31221         New module 'uninorm/composition'.
31222         * lib/uninorm/composition.c: New file.
31223         * lib/uninorm/composition-table.gperf: New file, generated by
31224         gen-uni-tables.
31225         * modules/uninorm/composition: New file.
31226
31227         Tests for module 'uninorm/compat-decomposition'.
31228         * tests/uninorm/test-compat-decomposition.c: New file.
31229         * modules/uninorm/compat-decomposition-tests: New file.
31230
31231         New module 'uninorm/compat-decomposition'.
31232         * lib/uninorm/decompose-internal.h: New file.
31233         * lib/uninorm/compat-decomposition.c: New file.
31234         * modules/uninorm/compat-decomposition: New file.
31235
31236         Tests for module 'uninorm/canonical-decomposition'.
31237         * tests/uninorm/test-canonical-decomposition.c: New file.
31238         * modules/uninorm/canonical-decomposition-tests: New file.
31239
31240         New module 'uninorm/canonical-decomposition'.
31241         * lib/uninorm/canonical-decomposition.c: New file.
31242         * modules/uninorm/canonical-decomposition: New file.
31243
31244         Tests for module 'uninorm/decomposition'.
31245         * tests/uninorm/test-decomposition.c: New file.
31246         * modules/uninorm/decomposition-tests: New file.
31247
31248         New module 'uninorm/decomposition'.
31249         * lib/uninorm/decomposition.c: New file.
31250         * modules/uninorm/decomposition: New file.
31251
31252         New module 'uninorm/decomposition-table'.
31253         * lib/uninorm/decomposition-table.h: New file.
31254         * lib/uninorm/decomposition-table.c: New file.
31255         * lib/uninorm/decomposition-table1.h: New file, generated by
31256         gen-uni-tables.
31257         * lib/uninorm/decomposition-table2.h: New file, generated by
31258         gen-uni-tables.
31259         * modules/uninorm/decomposition-table: New file.
31260
31261         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
31262         (UC_DECOMP_*): New enumeration items.
31263         (get_decomposition): New function.
31264         (struct decomp_table): New type.
31265         (output_decomposition, output_decomposition_tables): New functions.
31266         (unicode_composition_exclusions): New variable.
31267         (fill_composition_exclusions, debug_output_composition_tables): New
31268         functions.
31269         (main): Accept one more argument. Invoke fill_composition_exclusions.
31270         Output decomposition and composition tables.
31271
31272         New module 'uninorm/base'.
31273         * lib/uninorm.h: New file.
31274         * lib/unictype.h: Update comment.
31275         * modules/uninorm/base: New file.
31276
31277 2009-02-21  David Lutterkort  <lutter@redhat.com>
31278
31279         Tests for module 'safe-alloc'.
31280         * tests/test-safe-alloc.c: New file.
31281         * modules/safe-alloc-tests: New file.
31282
31283         New module 'safe-alloc'.
31284         * lib/safe-alloc.h: New file.
31285         * lib/safe-alloc.c: New file.
31286         * m4/safe-alloc.m4: New file.
31287         * modules/safe-alloc: New file.
31288         * doc/safe-alloc.texi: New file.
31289         * doc/gnulib.texi: Include it.
31290         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31291         safe-alloc.
31292
31293 2009-02-18  Bruno Haible  <bruno@clisp.org>
31294
31295         Fix link error on non-glibc systems.
31296         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
31297         variable.
31298         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31299
31300 2009-02-18  Jim Meyering  <meyering@redhat.com>
31301
31302         fts: avoid used-uninitialized error due to recent change
31303         * lib/fts.c (fts_read): Guard uses of the new member,
31304         parent->fts_n_dirs_remaining, since it's not relevant for
31305         the parent of a directory specified on the command-line.
31306
31307 2009-02-17  James Youngman  <jay@gnu.org>
31308             Bruno Haible  <bruno@clisp.org>
31309
31310         * m4/include_next.m4: Reformulate comment.
31311
31312 2009-02-16  Jim Meyering  <meyering@redhat.com>
31313
31314         fts: add #if guards so that the fts_lgpl module still builds
31315         * lib/fts.c: Guard just-added hash-table-using parts with
31316         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
31317         Reported by Simon Josefsson.
31318
31319 2009-02-15  Bruno Haible  <bruno@clisp.org>
31320
31321         * modules/array-mergesort-tests: New file.
31322         * tests/test-array-mergesort.c: New file.
31323
31324         New module 'array-mergesort'.
31325         * modules/array-mergesort: New file.
31326         * lib/array-mergesort.h: New file.
31327
31328 2009-02-15  Bruno Haible  <bruno@clisp.org>
31329
31330         Fix 2009-02-07 commit.
31331         * lib/gen-uni-tables.c (output_predicate, output_category,
31332         output_combclass, output_bidi_category, output_decimal_digit,
31333         output_digit, output_numeric, output_mirror, output_scripts,
31334         output_ident_category, output_simple_mapping): Fix format directives.
31335         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
31336
31337 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
31338
31339         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
31340         fixes are available from IBM.
31341
31342 2009-02-13  Jim Meyering  <meyering@redhat.com>
31343
31344         fts: arrange not to stat non-directories in more cases
31345         This makes GNU find (when it doesn't need to stat each file)
31346         *much* more efficient at traversing reiserfs file systems.
31347         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
31348         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
31349         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
31350         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
31351         (leaf_optimization_applies): New function.
31352         (LCO_hash, LCO_compare): New helper functions.
31353         (link_count_optimize_ok): New function.
31354         (fts_stat): Initialize new member (if dir).
31355         (fts_read): Decrement parent's fts_n_dirs_remaining count if
31356         we've just stat'ed a directory.  Skip the stat call when possible.
31357         ---
31358         Note this AFS-related exchange:
31359         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
31360         and note find's pioctl call in find/fstype.c.
31361         But that is necessary only if you want to enable the
31362         optimization for AFS, and for now, I don't.
31363
31364         fts: move a function definition "up" (no semantic change)
31365         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
31366         "up" to precede upcoming use of a related function.
31367
31368 2009-02-11  Jim Meyering  <meyering@redhat.com>
31369
31370         fts: correct internal computation of nlinks (optimization-related)
31371         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
31372         whether the current entry is a directory, so don't test it.
31373
31374 2009-02-10  Bruno Haible  <bruno@clisp.org>
31375
31376         Tests for module 'uniwbrk/ulc-wordbreaks'.
31377         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
31378         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
31379         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
31380
31381         Tests for module 'uniwbrk/u32-wordbreaks'.
31382         * modules/uniwbrk/u32-wordbreaks-tests: New file.
31383         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
31384
31385         Tests for module 'uniwbrk/u16-wordbreaks'.
31386         * modules/uniwbrk/u16-wordbreaks-tests: New file.
31387         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
31388
31389         Tests for module 'uniwbrk/u8-wordbreaks'.
31390         * modules/uniwbrk/u8-wordbreaks-tests: New file.
31391         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
31392
31393 2009-02-10  Bruno Haible  <bruno@clisp.org>
31394
31395         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
31396         property.
31397         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
31398         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
31399         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
31400
31401 2009-02-10  Simon Josefsson  <simon@josefsson.org>
31402
31403         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
31404         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
31405
31406 2009-02-10  Bruno Haible  <bruno@clisp.org>
31407
31408         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
31409         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
31410         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
31411         * lib/unilbrk/u8-possible-linebreaks.c: Update.
31412         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
31413         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
31414
31415 2009-02-09  Simon Josefsson  <simon@josefsson.org>
31416
31417         * lib/sockets.h (gl_fd_to_handle): New function.
31418
31419         * tests/test-sockets.c: Call gl_fd_to_handle.
31420
31421 2009-02-09  Bruno Haible  <bruno@clisp.org>
31422
31423         * doc/havelib.texi: Document the conventions on bi-arch systems.
31424
31425 2009-02-08  Bruno Haible  <bruno@clisp.org>
31426
31427         Document the AC_LIB_LINKFLAGS macro.
31428         * doc/havelib.texi: New file, mostly written on 2005-05-24.
31429         * doc/gnulib.texi: Include it.
31430
31431 2009-02-08  Bruno Haible  <bruno@clisp.org>
31432
31433         Fix wrong order of sections, compared to TOC.
31434         * doc/gnulib.texi: Include relocatable-maint.texi after the
31435         "Regular expressions" node, not before.
31436
31437 2009-02-08  Bruno Haible  <bruno@clisp.org>
31438
31439         Tests for module 'unicase/totitle'.
31440         * modules/unicase/totitle-tests: New file.
31441
31442         Tests for module 'unicase/tolower'.
31443         * modules/unicase/tolower-tests: New file.
31444
31445         Tests for module 'unicase/toupper'.
31446         * modules/unicase/toupper-tests: New file.
31447         * tests/unicase/test-mapping-part1.h: New file.
31448         * tests/unicase/test-mapping-part2.h: New file.
31449
31450         New module 'unicase/totitle'.
31451         * modules/unicase/totitle: New file.
31452         * lib/unicase/totitle.c: New file.
31453
31454         New module 'unicase/tolower'.
31455         * modules/unicase/tolower: New file.
31456         * lib/unicase/tolower.c: New file.
31457
31458         New module 'unicase/toupper'.
31459         * modules/unicase/toupper: New file.
31460         * lib/unicase/toupper.c: New file.
31461         * lib/unicase/simple-mapping.h: New file.
31462
31463         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
31464         (mapping_table): New structure.
31465         (output_simple_mapping): New function.
31466         (main): Invoke output_simple_mapping_test and output_simple_mapping.
31467         * modules/gen-uni-tables (Description): Update.
31468         * lib/unicase/toupper.h: New file, automatically generated by
31469         gen-uni-tables.
31470         * lib/unicase/tolower.h: New file, automatically generated by
31471         gen-uni-tables.
31472         * lib/unicase/totitle.h: New file, automatically generated by
31473         gen-uni-tables.
31474         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
31475         gen-uni-tables.
31476         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
31477         gen-uni-tables.
31478         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
31479         gen-uni-tables.
31480
31481         New module 'unicase/base'.
31482         * modules/unicase/base: New file.
31483         * lib/unicase.h: New file.
31484
31485 2009-02-08  Bruno Haible  <bruno@clisp.org>
31486
31487         New module 'uniwbrk/ulc-wordbreaks'.
31488         * modules/uniwbrk/ulc-wordbreaks: New file.
31489         * lib/uniwbrk/ulc-wordbreaks.c: New file.
31490
31491         New module 'uniwbrk/u32-wordbreaks'.
31492         * modules/uniwbrk/u32-wordbreaks: New file.
31493         * lib/uniwbrk/u32-wordbreaks.c: New file.
31494
31495         New module 'uniwbrk/u16-wordbreaks'.
31496         * modules/uniwbrk/u16-wordbreaks: New file.
31497         * lib/uniwbrk/u16-wordbreaks.c: New file.
31498
31499         New module 'uniwbrk/u8-wordbreaks'.
31500         * modules/uniwbrk/u8-wordbreaks: New file.
31501         * lib/uniwbrk/u8-wordbreaks.c: New file.
31502         * lib/uniwbrk/u-wordbreaks.h: New file.
31503
31504         New module 'uniwbrk/table'.
31505         * modules/uniwbrk/table: New file.
31506         * lib/uniwbrk/wbrktable.h: New file.
31507         * lib/uniwbrk/wbrktable.c: New file.
31508
31509         New module 'uniwbrk/wordbreak-property'.
31510         * modules/uniwbrk/wordbreak-property: New file.
31511         * lib/uniwbrk/wordbreak-property.c: New file.
31512
31513         * lib/gen-uni-tables.c (WBP_*): New enum items.
31514         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
31515         (unicode_org_wbp): New variable.
31516         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
31517         New functions.
31518         (wbp_table): New structure.
31519         (output_wbp, output_wbrk_tables): New functions.
31520         (main): Accept additional argument. Invoke fill_org_wbp,
31521         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
31522         output_wbrk_tables.
31523         * modules/gen-uni-tables (Description): Update.
31524         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
31525         gen-uni-tables.
31526
31527         New module 'uniwbrk/base'.
31528         * modules/uniwbrk/base: New file.
31529         * lib/uniwbrk.h: New file.
31530
31531 2009-02-08  Bruno Haible  <bruno@clisp.org>
31532
31533         Update to Unicode 5.1.0.
31534         * lib/gen-uni-tables.c (is_property_alphabetic): Include
31535         U+2185..U+2188.
31536         (is_property_default_ignorable_code_point): Don't include characters
31537         of category Cc or Cs and not-a-characters.
31538         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
31539         U+0D79, U+109E, U+109F, U+A60C.
31540         * lib/unictype/bidi_of.h: Regenerated.
31541         * lib/unictype/blocks.h: Regenerated.
31542         * lib/unictype/categ_C.h: Regenerated.
31543         * lib/unictype/categ_Cf.h: Regenerated.
31544         * lib/unictype/categ_Cn.h: Regenerated.
31545         * lib/unictype/categ_L.h: Regenerated.
31546         * lib/unictype/categ_Ll.h: Regenerated.
31547         * lib/unictype/categ_Lm.h: Regenerated.
31548         * lib/unictype/categ_Lo.h: Regenerated.
31549         * lib/unictype/categ_Lu.h: Regenerated.
31550         * lib/unictype/categ_M.h: Regenerated.
31551         * lib/unictype/categ_Mc.h: Regenerated.
31552         * lib/unictype/categ_Me.h: Regenerated.
31553         * lib/unictype/categ_Mn.h: Regenerated.
31554         * lib/unictype/categ_N.h: Regenerated.
31555         * lib/unictype/categ_Nd.h: Regenerated.
31556         * lib/unictype/categ_Nl.h: Regenerated.
31557         * lib/unictype/categ_No.h: Regenerated.
31558         * lib/unictype/categ_P.h: Regenerated.
31559         * lib/unictype/categ_Pd.h: Regenerated.
31560         * lib/unictype/categ_Pe.h: Regenerated.
31561         * lib/unictype/categ_Pf.h: Regenerated.
31562         * lib/unictype/categ_Pi.h: Regenerated.
31563         * lib/unictype/categ_Po.h: Regenerated.
31564         * lib/unictype/categ_Ps.h: Regenerated.
31565         * lib/unictype/categ_S.h: Regenerated.
31566         * lib/unictype/categ_Sk.h: Regenerated.
31567         * lib/unictype/categ_Sm.h: Regenerated.
31568         * lib/unictype/categ_So.h: Regenerated.
31569         * lib/unictype/categ_of.h: Regenerated.
31570         * lib/unictype/combining.h: Regenerated.
31571         * lib/unictype/ctype_alnum.h: Regenerated.
31572         * lib/unictype/ctype_alpha.h: Regenerated.
31573         * lib/unictype/ctype_graph.h: Regenerated.
31574         * lib/unictype/ctype_lower.h: Regenerated.
31575         * lib/unictype/ctype_print.h: Regenerated.
31576         * lib/unictype/ctype_punct.h: Regenerated.
31577         * lib/unictype/ctype_upper.h: Regenerated.
31578         * lib/unictype/decdigit.h: Regenerated.
31579         * lib/unictype/digit.h: Regenerated.
31580         * lib/unictype/mirror.h: Regenerated.
31581         * lib/unictype/numeric.h: Regenerated.
31582         * lib/unictype/pr_alphabetic.h: Regenerated.
31583         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
31584         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
31585         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
31586         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
31587         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
31588         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
31589         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
31590         * lib/unictype/pr_combining.h: Regenerated.
31591         * lib/unictype/pr_dash.h: Regenerated.
31592         * lib/unictype/pr_decimal_digit.h: Regenerated.
31593         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
31594         * lib/unictype/pr_deprecated.h: Regenerated.
31595         * lib/unictype/pr_diacritic.h: Regenerated.
31596         * lib/unictype/pr_extender.h: Regenerated.
31597         * lib/unictype/pr_format_control.h: Regenerated.
31598         * lib/unictype/pr_grapheme_base.h: Regenerated.
31599         * lib/unictype/pr_grapheme_extend.h: Regenerated.
31600         * lib/unictype/pr_grapheme_link.h: Regenerated.
31601         * lib/unictype/pr_id_continue.h: Regenerated.
31602         * lib/unictype/pr_id_start.h: Regenerated.
31603         * lib/unictype/pr_ideographic.h: Regenerated.
31604         * lib/unictype/pr_ignorable_control.h: Regenerated.
31605         * lib/unictype/pr_lowercase.h: Regenerated.
31606         * lib/unictype/pr_math.h: Regenerated.
31607         * lib/unictype/pr_numeric.h: Regenerated.
31608         * lib/unictype/pr_other_alphabetic.h: Regenerated.
31609         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
31610         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
31611         * lib/unictype/pr_other_id_continue.h: Regenerated.
31612         * lib/unictype/pr_other_lowercase.h: Regenerated.
31613         * lib/unictype/pr_other_math.h: Regenerated.
31614         * lib/unictype/pr_punctuation.h: Regenerated.
31615         * lib/unictype/pr_sentence_terminal.h: Regenerated.
31616         * lib/unictype/pr_soft_dotted.h: Regenerated.
31617         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
31618         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
31619         * lib/unictype/pr_unified_ideograph.h: Regenerated.
31620         * lib/unictype/pr_uppercase.h: Regenerated.
31621         * lib/unictype/pr_xid_continue.h: Regenerated.
31622         * lib/unictype/pr_xid_start.h: Regenerated.
31623         * lib/unictype/pr_zero_width.h: Regenerated.
31624         * lib/unictype/scripts.h: Regenerated.
31625         * lib/unictype/scripts_byname.gperf: Regenerated.
31626         * lib/unictype/sy_java_ident.h: Regenerated.
31627         * lib/unilbrk/lbrkprop1.h: Regenerated.
31628         * lib/unilbrk/lbrkprop2.h: Regenerated.
31629         * tests/unictype/test-categ_C.c: Regenerated.
31630         * tests/unictype/test-categ_Cf.c: Regenerated.
31631         * tests/unictype/test-categ_Cn.c: Regenerated.
31632         * tests/unictype/test-categ_L.c: Regenerated.
31633         * tests/unictype/test-categ_Ll.c: Regenerated.
31634         * tests/unictype/test-categ_Lm.c: Regenerated.
31635         * tests/unictype/test-categ_Lo.c: Regenerated.
31636         * tests/unictype/test-categ_Lu.c: Regenerated.
31637         * tests/unictype/test-categ_M.c: Regenerated.
31638         * tests/unictype/test-categ_Mc.c: Regenerated.
31639         * tests/unictype/test-categ_Me.c: Regenerated.
31640         * tests/unictype/test-categ_Mn.c: Regenerated.
31641         * tests/unictype/test-categ_N.c: Regenerated.
31642         * tests/unictype/test-categ_Nd.c: Regenerated.
31643         * tests/unictype/test-categ_Nl.c: Regenerated.
31644         * tests/unictype/test-categ_No.c: Regenerated.
31645         * tests/unictype/test-categ_P.c: Regenerated.
31646         * tests/unictype/test-categ_Pd.c: Regenerated.
31647         * tests/unictype/test-categ_Pe.c: Regenerated.
31648         * tests/unictype/test-categ_Pf.c: Regenerated.
31649         * tests/unictype/test-categ_Pi.c: Regenerated.
31650         * tests/unictype/test-categ_Po.c: Regenerated.
31651         * tests/unictype/test-categ_Ps.c: Regenerated.
31652         * tests/unictype/test-categ_S.c: Regenerated.
31653         * tests/unictype/test-categ_Sk.c: Regenerated.
31654         * tests/unictype/test-categ_Sm.c: Regenerated.
31655         * tests/unictype/test-categ_So.c: Regenerated.
31656         * tests/unictype/test-ctype_alnum.c: Regenerated.
31657         * tests/unictype/test-ctype_alpha.c: Regenerated.
31658         * tests/unictype/test-ctype_graph.c: Regenerated.
31659         * tests/unictype/test-ctype_lower.c: Regenerated.
31660         * tests/unictype/test-ctype_print.c: Regenerated.
31661         * tests/unictype/test-ctype_punct.c: Regenerated.
31662         * tests/unictype/test-ctype_upper.c: Regenerated.
31663         * tests/unictype/test-decdigit.h: Regenerated.
31664         * tests/unictype/test-digit.h: Regenerated.
31665         * tests/unictype/test-numeric.h: Regenerated.
31666         * tests/unictype/test-pr_alphabetic.c: Regenerated.
31667         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
31668         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
31669         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
31670         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
31671         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
31672         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
31673         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
31674         * tests/unictype/test-pr_combining.c: Regenerated.
31675         * tests/unictype/test-pr_dash.c: Regenerated.
31676         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
31677         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
31678         * tests/unictype/test-pr_deprecated.c: Regenerated.
31679         * tests/unictype/test-pr_diacritic.c: Regenerated.
31680         * tests/unictype/test-pr_extender.c: Regenerated.
31681         * tests/unictype/test-pr_format_control.c: Regenerated.
31682         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
31683         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
31684         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
31685         * tests/unictype/test-pr_id_continue.c: Regenerated.
31686         * tests/unictype/test-pr_id_start.c: Regenerated.
31687         * tests/unictype/test-pr_ideographic.c: Regenerated.
31688         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
31689         * tests/unictype/test-pr_lowercase.c: Regenerated.
31690         * tests/unictype/test-pr_math.c: Regenerated.
31691         * tests/unictype/test-pr_numeric.c: Regenerated.
31692         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
31693         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
31694         Regenerated.
31695         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
31696         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
31697         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
31698         * tests/unictype/test-pr_other_math.c: Regenerated.
31699         * tests/unictype/test-pr_punctuation.c: Regenerated.
31700         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
31701         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
31702         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
31703         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
31704         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
31705         * tests/unictype/test-pr_uppercase.c: Regenerated.
31706         * tests/unictype/test-pr_xid_continue.c: Regenerated.
31707         * tests/unictype/test-pr_xid_start.c: Regenerated.
31708         * tests/unictype/test-pr_zero_width.c: Regenerated.
31709
31710         Update to Unicode 5.1.0.
31711         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
31712         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
31713         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
31714         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
31715         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
31716         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
31717         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
31718         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
31719         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
31720         (nonspacing_table_ind): Update.
31721         * tests/uniwidth/test-uc_width2.sh: Update expected result.
31722
31723         Update to Unicode 5.1.0.
31724         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
31725         code transform.
31726         * lib/uniname/uniname.c (unicode_character_name,
31727         unicode_name_character): Add the range 0x1Fxxx to the code transform.
31728         * lib/uniname/uninames.h: Regenerated.
31729         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
31730
31731 2009-02-07  Bruno Haible  <bruno@clisp.org>
31732
31733         Merge gen-ctype and gen-lbrk into a single program.
31734         * lib/gen-uni-tables.c: New file, incorporating
31735         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
31736         Add directory prefixes to the names of the generated files.
31737         * lib/unictype/gen-ctype.c: Remove file.
31738         * lib/unilbrk/gen-lbrk.c: Remove file.
31739         * modules/gen-uni-tables: New file.
31740         * modules/unictype/gen-ctype: Remove file.
31741         * modules/unilbrk/gen-lbrk: Remove file.
31742
31743 2009-02-07  Bruno Haible  <bruno@clisp.org>
31744
31745         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
31746
31747         New module 'unistr/u32-strcoll'.
31748         * modules/unistr/u32-strcoll: New file.
31749         * lib/unistr/u32-strcoll.c: New file.
31750
31751         New module 'unistr/u16-strcoll'.
31752         * modules/unistr/u16-strcoll: New file.
31753         * lib/unistr/u16-strcoll.c: New file.
31754
31755         New module 'unistr/u8-strcoll'.
31756         * modules/unistr/u8-strcoll: New file.
31757         * lib/unistr/u8-strcoll.c: New file.
31758         * lib/unistr/u-strcoll.h: New file.
31759
31760 2009-02-07  Bruno Haible  <bruno@clisp.org>
31761
31762         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
31763         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31764         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31765         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
31766         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
31767         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
31768
31769 2009-02-07  Bruno Haible  <bruno@clisp.org>
31770
31771         Make 64-bit clean.
31772         * lib/unictype/gen-ctype.c (output_predicate, output_category,
31773         output_combclass, output_bidi_category, output_decimal_digit,
31774         output_digit, output_numeric, output_mirror, output_scripts,
31775         output_ident_category): Use proper width specifier in format strings.
31776
31777 2009-02-07  Bruno Haible  <bruno@clisp.org>
31778
31779         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
31780         failure behaviour.
31781
31782 2009-02-07  Jim Meyering  <meyering@redhat.com>
31783
31784         regex: avoid compilation failure with upcoming gcc-4.4
31785         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
31786         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
31787         "... error: integer overflow in preprocessor expression".
31788
31789 2009-02-05  Ben Pfaff  <blp@gnu.org>
31790
31791         Fix link errors on Windows when close module is used.
31792         * modules/close: Add $(LIB_CLOSE) to Link section.
31793         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
31794         $(LIB_CLOSE) on Windows.
31795
31796 2009-02-05  Jim Meyering  <meyering@redhat.com>
31797
31798         still avoid unused-parameter warnings, but do it cleanly
31799         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
31800         (get_fs_usage): Cast to void instead.
31801         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
31802         (dev_from_mount_options, read_file_system_list): Cast to void.
31803         Prompted by Bruno Haible.
31804
31805 2009-02-04  Jim Meyering  <meyering@redhat.com>
31806
31807         fsusage.c: correct copyright year
31808         * lib/fsusage.c: Reflect year in which the change is pushed into
31809
31810         avoid misc. warnings
31811         * lib/fsusage.c (UNUSED_PARAM): Define.
31812         (get_fs_usage): Mark parameter "disk" as unused.
31813         * lib/getugroups.c (getgrent): Use "void" in prototype.
31814         * lib/mountlist.c: Mark unused parameters.
31815         (read_file_system_list): Declare a local with "const".
31816         * lib/nanosleep.c (getnow): Declare static.
31817         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
31818
31819         dirfd: set errno upon failure
31820         * lib/dirfd.c: Include <errno.h>.
31821         Set errno to ENOTSUP when returning -1.
31822         * modules/dirfd (Depends-on): Add errno.
31823         Suggested by John Kodis <kodis@comcast.net>.
31824
31825 2009-02-01  Bruno Haible  <bruno@clisp.org>
31826
31827         Don't assume sizeof (long) >= sizeof (void *).
31828         * lib/memcmp.c: Include stdint.h.
31829         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
31830         srcp2 to 'const byte *'.
31831         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
31832         types to uintptr_t.
31833         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
31834         * modules/memcmp (Depends-on): Add stdint.
31835         Reported by Ozkan Sezer <sezeroz@gmail.com>.
31836
31837 2009-01-30  Eric Blake  <ebb9@byu.net>
31838
31839         fix more require-before-expand issues
31840         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
31841         expand, AC_PROG_AWK.
31842         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
31843
31844 2009-01-28  Eric Blake  <ebb9@byu.net>
31845
31846         version-etc: use consistent URL formatting
31847         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
31848         Improve formatting.  Use fputs for string without %.
31849
31850 2009-01-28  Jim Meyering  <meyering@redhat.com>
31851
31852         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
31853         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
31854         "underquoted definition of NAME" from autoconf-2.59.
31855
31856 2009-01-28  Bruno Haible  <bruno@clisp.org>
31857
31858         * doc/gnulib.texi: Add "Obsolete modules" to index.
31859
31860 2009-01-28  Jim Meyering  <meyering@redhat.com>
31861
31862         useless-if-before-free: recognize more variants
31863         * build-aux/useless-if-before-free: Also recognize e.g.,
31864         if (NULL != p) free (p);
31865
31866 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
31867
31868         test-getaddrinfo: skip (don't fail) this test when there's no network
31869         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
31870         on the presumption that it means you lack network access.
31871
31872 2009-01-26  Jim Meyering  <meyering@redhat.com>
31873
31874         fflush: avoid warnings on modern systems
31875         * lib/fflush.c (rpl_fflush): Move declarations of locals,
31876         pos and result, into scopes where they're used.
31877
31878 2009-01-26  Eric Blake  <ebb9@byu.net>
31879
31880         Silence warning reintroduced by recent extensions patch.
31881         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
31882         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
31883         autoconf.
31884
31885         Backport improved autoconf semantics of AC_DEFUN_ONCE.
31886         * m4/00gnulib.m4: New file.
31887         * gnulib-tool (func_get_filelist): Always use it.
31888         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
31889         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
31890
31891 2009-01-25  Bruno Haible  <bruno@clisp.org>
31892
31893         Make test-quotearg work on MacOS X and AIX.
31894         * tests/test-quotearg.sh: New file.
31895         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
31896         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
31897         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
31898         include <libintl.h>.
31899         (fake_locale): Remove variable.
31900         (gettext, dgettext, dcgettext): Remove functions.
31901         (main): Instead of setting a fake locale, set a real locale. Call
31902         textdomain and bindtextdomain.
31903         * modules/quotearg-tests (Files): Add the new files.
31904         (Depends-on): Add gettext, setenv, unsetenv.
31905         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
31906         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
31907         Augment TESTS_ENVIRONMENT.
31908
31909 2009-01-25  Bruno Haible  <bruno@clisp.org>
31910
31911         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
31912         fr_FR.ISO8859-1 locale on MacOS X.
31913         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
31914         ja_JP.eucJP locale on MacOS X.
31915         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
31916         zh_CN.GB18030 locale on MacOS X.
31917
31918 2009-01-25  Bruno Haible  <bruno@clisp.org>
31919
31920         Avoid link errors on MacOS X 10.3.
31921         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
31922         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31923
31924 2009-01-25  Bruno Haible  <bruno@clisp.org>
31925
31926         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31927         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
31928         * modules/pipe (Files): Remove m4/posix_spawn.m4.
31929         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31930         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
31931         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31932         posix_spawnattr_init, posix_spawnattr_setsigmask,
31933         posix_spawnattr_setflags, posix_spawnattr_destroy.
31934
31935         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31936         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
31937         * modules/execute (Files): Remove m4/posix_spawn.m4.
31938         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31939         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31940         posix_spawnattr_init, posix_spawnattr_setsigmask,
31941         posix_spawnattr_setflags, posix_spawnattr_destroy.
31942
31943 2009-01-25  Bruno Haible  <bruno@clisp.org>
31944
31945         * lib/glthread/threadlib.c: Include <stdlib.h>.
31946
31947 2009-01-25  Bruno Haible  <bruno@clisp.org>
31948
31949         * lib/glthread/threadlib.c (dummy): New declaration.
31950
31951 2009-01-25  Bruno Haible  <bruno@clisp.org>
31952
31953         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
31954         multibyte characters also for the GB18030 encoding. Don't crash when
31955         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
31956
31957 2009-01-25  Bruno Haible  <bruno@clisp.org>
31958
31959         Avoid redefining 'struct random_data' on OSF/1 5.1.
31960         * lib/stdlib.in.h: Include <random.h> if it exists.
31961         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
31962         HAVE_RANDOM_H. Include <random.h> when testing whether
31963         'struct random_data' exists.
31964         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
31965
31966 2009-01-25  Bruno Haible  <bruno@clisp.org>
31967
31968         Don't install charset.alias on MacOS X >= 10.3.
31969         * lib/localcharset.c (DARWIN7): New macro.
31970         (get_charset_aliases): Hardcode the result for Darwin7.
31971         * modules/localcharset (install-exec-local): Don't install
31972         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
31973
31974 2009-01-25  Bruno Haible  <bruno@clisp.org>
31975
31976         Don't install charset.alias on mingw and Cygwin.
31977         * modules/localcharset (install-exec-local): Don't install
31978         charset.alias on mingw and Cygwin, if the file does not yet exist.
31979         The result for these platforms is hardcoded in localcharset.c.
31980
31981 2009-01-25  Bruno Haible  <bruno@clisp.org>
31982
31983         Make it possible again to use AC_GNU_SOURCE together with gnulib.
31984         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
31985         before requiring AC_USE_SYSTEM_EXTENSIONS.
31986
31987 2009-01-25  Jim Meyering  <meyering@redhat.com>
31988
31989         c-strtod: avoid warnings
31990         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
31991         "assignment discards qualifiers from pointer target type" warnings.
31992
31993 2009-01-24  Bruno Haible  <bruno@clisp.org>
31994
31995         Add support for non-UTF-8 locales on MacOS X.
31996         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
31997         canonical encodings. For Darwin 7 and newer, don't map traditional
31998         encodings to UTF-8.
31999         Reported by Vincent Lefevre <vincent@vinc17.org>
32000         at <http://savannah.gnu.org/bugs/?25235>.
32001
32002 2009-01-24  Bruno Haible  <bruno@clisp.org>
32003
32004         * doc/gnulib.texi (Obsolete modules): New section.
32005         Reported by Mike Frysinger <vapier@gentoo.org>.
32006
32007 2009-01-24  Bruno Haible  <bruno@clisp.org>
32008
32009         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
32010         (%.dvi): New rule.
32011
32012 2009-01-24  Bruno Haible  <bruno@clisp.org>
32013
32014         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
32015         Reported by Eric Blake.
32016
32017 2009-01-24  Bruno Haible  <bruno@clisp.org>
32018
32019         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
32020         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
32021         Reported by Gary V. Vaughan <gary@gnu.org>.
32022
32023 2009-01-24  Bruno Haible  <bruno@clisp.org>
32024
32025         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
32026
32027 2009-01-23  Bruno Haible  <bruno@clisp.org>
32028
32029         Make c-strtod, c-strtold usable in libraries.
32030         * lib/c-strtod.c: Include string.h instead of xalloc.h.
32031         (C_STRTOD): Call strdup instead of xstrdup.
32032         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
32033         * modules/c-strtold (Depends-on): Likewise.
32034         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
32035         * NEWS: Mention the change.
32036         Reported by Michael Gold <mgold@ncf.ca>.
32037
32038 2009-01-23  Jim Meyering  <meyering@redhat.com>
32039
32040         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
32041         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
32042         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
32043
32044 2009-01-23  Simon Josefsson  <simon@josefsson.org>
32045
32046         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
32047         GNU CoreUtils.
32048         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
32049         * modules/version-etc (Description): Update.
32050
32051 2009-01-22  Bruno Haible  <bruno@clisp.org>
32052
32053         Cache the C locale object.
32054         * lib/c-strtod.c (c_locale_cache): New variable.
32055         (c_locale): New function.
32056         (C_STRTOD): Use it, and don't call freelocale.
32057         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
32058         Suggested by Paolo Bonzini.
32059
32060 2009-01-21  Bruno Haible  <bruno@clisp.org>
32061
32062         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
32063         conditions other than overflow.
32064
32065 2009-01-21  Bruno Haible  <bruno@clisp.org>
32066
32067         * lib/c-strtod.c: Include errno.h.
32068         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
32069         value from STRTOD_L and STRTOD.
32070
32071 2009-01-21  Bruno Haible  <bruno@clisp.org>
32072         and Jim Meyering  <meyering@redhat.com>
32073
32074         nanosleep: skip configure test (fail it) for apple universal builds
32075         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
32076         universal builds, assume that nanosleep does not work.
32077         * modules/nanosleep (Depends-on): Add multiarch.
32078
32079         mktime: skip configure test (fail it) for apple universal builds
32080         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
32081         universal builds, assume that mktime does not work.
32082         * modules/mktime (Depends-on): Add multiarch.
32083
32084 2009-01-21  Eric Blake  <ebb9@byu.net>
32085
32086         multiarch: avoid expand-before-require warning
32087         * modules/multiarch (configure.ac): Require, rather than expand,
32088         gl_MULTIARCH.
32089         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
32090         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
32091         enforce that all clients require it.  Partial reversion of
32092         2008-12-29 patch.
32093
32094         error: avoid expand-before-require warning
32095         * modules/errno (configure.ac): Require, rather than expand,
32096         gl_HEADER_ERRNO_H.
32097         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
32098         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
32099         enforce that all clients require it.
32100
32101         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
32102         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
32103         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
32104         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
32105
32106 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
32107
32108         Revert:
32109         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32110
32111         regex: do not depend on obsolete modules.
32112         * modules/regex: Remove memcmp and memmove.
32113
32114 2009-01-20  Bruno Haible  <bruno@clisp.org>
32115
32116         Make the 'link' module link on Windows NT 4.
32117         * lib/link.c (_WIN32_WINNT): Don't define.
32118         (CreateHardLinkFuncType): New type.
32119         (CreateHardLinkFunc, initialized): New variables.
32120         (initialize): New function.
32121         (link): Invoke CreateHardLink indirectly through the function pointer.
32122
32123 2009-01-20  Bruno Haible  <bruno@clisp.org>
32124
32125         Fix compilation failure on mingw.
32126         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
32127
32128 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
32129
32130         * doc/c-strtod.texi: Mention a couple of restrictions.
32131
32132 2009-01-20  Jim Meyering  <meyering@redhat.com>
32133
32134         gettimeofday: move more declarations out of functions
32135         * lib/gettimeofday.c: Move extern declarations of tzset and
32136         gmtime out of containing functions.  Prompted by Bruno Haible.
32137
32138 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32139
32140         regex: do not depend on obsolete modules.
32141         * modules/regex: Remove memcmp and memmove.
32142
32143 2009-01-19  Bruno Haible  <bruno@clisp.org>
32144
32145         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32146         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
32147         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32148         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
32149         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
32150
32151 2009-01-19  Bruno Haible  <bruno@clisp.org>
32152
32153         * tests/test-link.c: Include <errno.h>.
32154         (main): Exit with code 77 when a hard link cannot be created due to
32155         the file system.
32156         * tests/test-link.sh: Skip test when a hard link cannot be created due
32157         to the file system.
32158         Suggested by Eric Blake.
32159
32160 2009-01-19  Martin Lambers  <marlam@marlam.de>
32161
32162         * modules/link-tests: New file.
32163         * tests/test-link.sh: New file.
32164         * tests/test-link.c: New file.
32165
32166 2009-01-19  Eric Blake  <ebb9@byu.net>
32167
32168         doc: mention another function added in cygwin 1.7.0
32169         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
32170         Another new function in cygwin 1.7.
32171
32172 2009-01-19  Bruno Haible  <bruno@clisp.org>
32173
32174         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32175         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
32176         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
32177         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32178         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32179         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32180         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32181         * m4/md4.m4 (gl_MD4): Likewise.
32182         * m4/md5.m4 (gl_MD5): Likewise.
32183         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
32184         * m4/sha1.m4 (gl_SHA1): Likewise.
32185         * m4/sha256.m4 (gl_SHA256): Likewise.
32186         * m4/sha512.m4 (gl_SHA512): Likewise.
32187
32188 2009-01-19  Bruno Haible  <bruno@clisp.org>
32189
32190         * modules/uniname/uniname-tests (Depends-on): Add progname.
32191         * tests/uniname/test-uninames.c: Include progname.h.
32192         (main): Call set_program_name.
32193
32194         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
32195         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
32196         (main): Call set_program_name.
32197
32198         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
32199         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
32200         (main): Call set_program_name.
32201
32202         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
32203         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
32204         (main): Call set_program_name.
32205
32206         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
32207         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
32208         (main): Call set_program_name.
32209
32210         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
32211         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
32212         (main): Call set_program_name.
32213
32214         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
32215         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
32216         (main): Call set_program_name.
32217
32218         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
32219         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
32220         (main): Call set_program_name.
32221
32222         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
32223         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
32224         (main): Call set_program_name.
32225
32226 2009-01-19  Eric Blake  <ebb9@byu.net>
32227
32228         test-unistd: test previous patch
32229         * tests/test-unistd.c: Test *_FILENO macros.
32230
32231         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
32232         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32233         Guarantee a definition.
32234         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
32235         * modules/unistd-safer (Depends-on): Add dependency on unistd.
32236         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
32237         * lib/dup-safer.c (STDERR_FILENO): Likewise.
32238         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32239         Likewise.
32240         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
32241         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
32242         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32243         Likewise.
32244         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
32245         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
32246         (STDERR_FILENO): Likewise.
32247         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
32248         (STDERR_FILENO): Likewise.
32249         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
32250         (STDERR_FILENO): Likewise.
32251         Reported by Elbert Pol.
32252
32253 2009-01-19  Eric Blake  <ebb9@byu.net>
32254
32255         doc: mention more functions added in cygwin 1.7.0
32256         * doc/posix-functions/abort.texi (abort): Update wording related
32257         to cygwin.
32258         * doc/posix-functions/daylight.texi (daylight): Likewise.
32259         * doc/posix-functions/optarg.texi (optarg): Likewise.
32260         * doc/posix-functions/optarg.texi (opterr): Likewise.
32261         * doc/posix-functions/optarg.texi (optind): Likewise.
32262         * doc/posix-functions/optarg.texi (optopt): Likewise.
32263         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
32264         worked in 1.5.x, and was withdrawn in 1.7.
32265         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
32266         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
32267         cygwin versions.
32268         * doc/posix-functions/perror.texi (perror): Likewise.
32269         * doc/posix-functions/printf.texi (printf): Likewise.
32270         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
32271         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
32272         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32273         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32274         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
32275         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
32276         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
32277         Likewise.
32278         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
32279         Likewise.
32280         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
32281         this function.
32282         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
32283         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
32284         Likewise.
32285         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
32286         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
32287         * doc/posix-functions/confstr.texi (confstr): Likewise.
32288         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
32289         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
32290         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
32291         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
32292         * doc/posix-functions/fputws.texi (fputws): Likewise.
32293         * doc/posix-functions/fwide.texi (fwide): Likewise.
32294         * doc/posix-functions/getwc.texi (getwc): Likewise.
32295         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
32296         * doc/posix-functions/putwc.texi (putwc): Likewise.
32297         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
32298         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
32299         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
32300         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
32301         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
32302         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
32303         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
32304         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
32305         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
32306         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
32307         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
32308
32309 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32310
32311         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
32312         * lib/ioctl.c: Include <sys/ioctl.h>.
32313
32314 2009-01-19  Simon Josefsson  <simon@josefsson.org>
32315
32316         * modules/getdate-tests (Depends-on): Add progname.
32317         * tests/test-getdate.c: Use progname module, to avoid link errors
32318         on non-glibc systems.
32319
32320 2009-01-18  Simon Josefsson  <simon@josefsson.org>
32321
32322         * modules/filenamecat-tests (Depends-on): Add progname.
32323         * modules/fstrcmp-tests (Depends-on): Likewise.
32324
32325         * tests/test-filenamecat.c: Use progname module, to avoid link
32326         errors on non-glibc systems.
32327         * tests/test-fstrcmp.c: Likewise.
32328
32329 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32330
32331         gettimeofday: avoid warning: nested extern declaration of 'localtime'
32332         * lib/gettimeofday.c: Move extern declaration out of function.
32333
32334 2009-01-18  Bruno Haible  <bruno@clisp.org>
32335
32336         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
32337         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
32338         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
32339
32340 2009-01-18  Bruno Haible  <bruno@clisp.org>
32341
32342         * lib/strftime.c (MEMPCPY): Remove unused macro.
32343         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
32344
32345 2009-01-18  Martin Lambers  <marlam@marlam.de>
32346
32347         New module 'link'.
32348         * lib/unistd.in.h (link): New declaration.
32349         * lib/link.c: New file.
32350         * m4/link.m4: New file.
32351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
32352         HAVE_LINK.
32353         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
32354         * modules/link: New file.
32355         * doc/posix-functions/link.texi: Mention the new module.
32356
32357 2009-01-18  Bruno Haible  <bruno@clisp.org>
32358
32359         * tests/test-avltree_list.c (main): Call set_program_name.
32360         * tests/test-avltree_oset.c (main): Likewise.
32361         * tests/test-obstack-printf.c: Include progname.h.
32362         (main): Call set_program_name.
32363         * tests/test-quotearg.c: Include progname.h.
32364         (main): Call set_program_name.
32365         * tests/test-xmemdup0.c: Include progname.h.
32366         (main): Call set_program_name.
32367
32368 2009-01-18  Bruno Haible  <bruno@clisp.org>
32369
32370         New module 'alphasort'.
32371         * lib/dirent.in.h (alphasort): New declaration.
32372         * lib/alphasort.c: New file, from glibc with modifications.
32373         * m4/alphasort.m4: New file.
32374         * modules/alphasort: New file.
32375         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
32376         HAVE_ALPHASORT.
32377         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
32378         HAVE_ALPHASORT.
32379         * doc/posix-functions/alphasort.texi: Mention the new module and the
32380         portability problems.
32381
32382 2009-01-18  Bruno Haible  <bruno@clisp.org>
32383
32384         New module 'scandir'.
32385         * lib/dirent.in.h (scandir): New declaration.
32386         * lib/scandir.c: New file, from glibc with modifications.
32387         * m4/scandir.m4: New file.
32388         * modules/scandir: New file.
32389         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
32390         HAVE_SCANDIR.
32391         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
32392         HAVE_SCANDIR.
32393         * doc/posix-functions/scandir.texi: Mention the new module and the
32394         portability problems.
32395
32396 2009-01-17  Bruno Haible  <bruno@clisp.org>
32397
32398         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
32399         Update documentation.
32400         (func_remove_suffix): Escape all dots in the suffix. Update
32401         documentation.
32402         (func_filter_filelist): Update documentation.
32403         Reported by Ralf Wildenhues.
32404
32405 2009-01-17  Bruno Haible  <bruno@clisp.org>
32406
32407         * modules/dprintf-posix-tests: New file.
32408         * tests/test-dprintf-posix.sh: New file.
32409         * tests/test-dprintf-posix.c: New file.
32410
32411         New modules 'dprintf', 'dprintf-posix'.
32412         * lib/stdio.in.h (dprintf): New declaration.
32413         * lib/dprintf.c: New file.
32414         * m4/dprintf.m4: New file.
32415         * m4/dprintf-posix.m4: New file.
32416         * modules/dprintf: New file.
32417         * modules/dprintf-posix: New file.
32418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
32419         HAVE_DPRINTF, REPLACE_DPRINTF.
32420         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
32421         HAVE_DPRINTF, REPLACE_DPRINTF.
32422         * doc/posix-functions/dprintf.texi: Mention the new modules.
32423
32424 2009-01-17  Bruno Haible  <bruno@clisp.org>
32425
32426         * modules/vdprintf-posix-tests: New file.
32427         * tests/test-vdprintf-posix.sh: New file.
32428         * tests/test-vdprintf-posix.c: New file.
32429
32430         New modules 'vdprintf', 'vdprintf-posix'.
32431         * lib/stdio.in.h (vdprintf): New declaration.
32432         * lib/vdprintf.c: New file.
32433         * m4/vdprintf.m4: New file.
32434         * m4/vdprintf-posix.m4: New file.
32435         * modules/vdprintf: New file.
32436         * modules/vdprintf-posix: New file.
32437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
32438         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32439         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
32440         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32441         * doc/posix-functions/vdprintf.texi: Mention the new modules.
32442
32443 2009-01-17  Bruno Haible  <bruno@clisp.org>
32444
32445         Fix replacement of fopen on mingw.
32446         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
32447         mingw.
32448
32449 2009-01-17  Bruno Haible  <bruno@clisp.org>
32450
32451         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
32452         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
32453
32454 2009-01-17  Bruno Haible  <bruno@clisp.org>
32455
32456         Avoid test-fflush2.sh failure on mingw.
32457         * tests/test-fflush2.c: Include binary-io.h.
32458         (main): Put standard input into binary mode.
32459         * modules/fflush-tests (Depends-on): Add binary-io.
32460
32461 2009-01-17  Bruno Haible  <bruno@clisp.org>
32462
32463         * lib/wchar.in.h: In another particular situation, include only the
32464         system's <wchar.h> file.
32465         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
32466         Reported by Albert Chin-A-Young <china@thewrittenword.com>
32467         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
32468
32469 2009-01-17  Bruno Haible  <bruno@clisp.org>
32470
32471         Support for stripping executables in --enable-relocatable.
32472         * build-aux/install-reloc: Expect one more argument, or an environment
32473         variable RELOC_STRIP_PROG. If set, strip the destination program and
32474         its wrapper.
32475         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
32476         RELOC_STRIP_PROG.
32477         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
32478         to set RELOCATABLE_STRIP.
32479         * NEWS: Mention the new Makefile requirement.
32480
32481 2009-01-17  Bruno Haible  <bruno@clisp.org>
32482
32483         * build-aux/install-reloc: Remove debugging information left over by
32484         C compiler on MacOS X.
32485
32486 2009-01-17  Bruno Haible  <bruno@clisp.org>
32487
32488         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
32489         * lib/progreloc.c (find_executable): Fix type of pointer passed to
32490         _NSGetExecutablePath.
32491
32492 2009-01-16  Jim Meyering  <meyering@redhat.com>
32493
32494         strerror: avoid warnings about discarding "const"
32495         * lib/strerror.c (rpl_strerror): Instead of returning a const
32496         string from each and every "case", use a variable, and add a single
32497         cast after the switch.
32498
32499 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
32500
32501         * lib/arpa_inet.in.h: Add extern "C" block for C++.
32502
32503 2009-01-16  Bruno Haible  <bruno@clisp.org>
32504
32505         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
32506         array initializer syntax that also works in C++ mode.
32507         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32508
32509 2009-01-16  Jim Meyering  <meyering@redhat.com>
32510
32511         poll: suppress a warning
32512         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
32513         to ignore "...unsigned expression < 0 is always false" warnings.
32514
32515 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
32516
32517         poll: remove declarations of unused variables
32518         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
32519         sockbuf and optlen.
32520
32521 2009-01-15  Bruno Haible  <bruno@clisp.org>
32522
32523         Make fflush-after-ungetc POSIX compliant on BSD systems.
32524         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
32525         (clear_ungetc_buffer): Implement also for other systems.
32526         (rpl_fflush): On glibc systems, invoke
32527         clear_ungetc_buffer_preserving_position. Otherwise, invoke
32528         clear_ungetc_buffer after fetching the stream's position, not before.
32529
32530 2009-01-15  Bruno Haible  <bruno@clisp.org>
32531
32532         Make fflush-after-ungetc POSIX compliant on glibc systems.
32533         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
32534         after ungetc.
32535         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
32536         (rpl_fflush): On glibc systems, simply call the system's fflush
32537         function after clearing the ungetc buffer.
32538         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
32539         Instead, lseek only to the end of file, then use the system's fseeko
32540         for the rest. On glibc systems, reset the EOF indicator bit.
32541
32542 2009-01-15  Jim Meyering  <meyering@redhat.com>
32543
32544         openmp.m4: revert quote-adding change, for portability to older autoconf
32545         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
32546         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
32547         Simon Josefsson noticed the problem when using autoconf-2.61.
32548
32549 2009-01-15  Bruno Haible  <bruno@clisp.org>
32550
32551         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
32552         * tests/test-fflush2.c (ASSERT): Always fail.
32553         (main): Add two tests for fflush() after ungetc(), taking into account
32554         the Austin Group's clarification.
32555         Suggested by Eric Blake.
32556
32557 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
32558
32559         mktime.m4: remove K&R-style function prototypes
32560         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
32561         for the Sun C++ compiler.
32562
32563 2009-01-14  Bruno Haible  <bruno@clisp.org>
32564
32565         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
32566         while including <wchar.h>.
32567         * lib/wchar.in.h: In two particular situations on HP-UX, include only
32568         the system's <wchar.h> file.
32569         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32570
32571 2009-01-14  Bruno Haible  <bruno@clisp.org>
32572
32573         * m4/csharp.m4: Don't mention gettext on the serial number line.
32574         * m4/csharpexec.m4: Likewise.
32575         * m4/eaccess.m4: Likewise.
32576         * m4/javaexec.m4: Likewise.
32577         * m4/sig_atomic_t.m4: Likewise.
32578         * m4/tmpdir.m4: Likewise.
32579         * m4/intldir.m4: Bump gettext version.
32580         * m4/lib-ld.m4: Likewise.
32581
32582 2009-01-14  Bruno Haible  <bruno@clisp.org>
32583
32584         * lib/progname.c (set_program_name): Add more comments.
32585         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32586
32587 2009-01-14  Simon Josefsson  <simon@josefsson.org>
32588
32589         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
32590         were sys/stat.h does not define it.
32591
32592 2009-01-14  Jim Meyering  <meyering@redhat.com>
32593
32594         many *.m4 files: improve m4 quoting
32595         99% of this change was performed by running the following commands:
32596         git ls-files | grep '\.m4$' | xargs perl -pi \
32597           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
32598           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32599           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32600           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
32601         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
32602         The remainder were to add Copyright dates, increment serial numbers,
32603         undo some changes in comments, exclude m4/intl.m4, and add quotes
32604         around the "1" in ",1" where the unusual spacing prohibited the
32605         above regexps from doing the job.  For more details, see
32606         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
32607         * m4/acl.m4: Modified.
32608         * m4/afs.m4: Likewise.
32609         * m4/alloca.m4: Likewise.
32610         * m4/argp.m4: Likewise.
32611         * m4/argz.m4: Likewise.
32612         * m4/atexit.m4: Likewise.
32613         * m4/bison-i18n.m4: Likewise.
32614         * m4/bison.m4: Likewise.
32615         * m4/byteswap.m4: Likewise.
32616         * m4/c-stack.m4: Likewise.
32617         * m4/c-strtod.m4: Likewise.
32618         * m4/calloc.m4: Likewise.
32619         * m4/canonicalize-lgpl.m4: Likewise.
32620         * m4/chown.m4: Likewise.
32621         * m4/clock_time.m4: Likewise.
32622         * m4/codeset.m4: Likewise.
32623         * m4/copy-file.m4: Likewise.
32624         * m4/csharp.m4: Likewise.
32625         * m4/csharpcomp.m4: Likewise.
32626         * m4/csharpexec.m4: Likewise.
32627         * m4/d-ino.m4: Likewise.
32628         * m4/d-type.m4: Likewise.
32629         * m4/dirfd.m4: Likewise.
32630         * m4/double-slash-root.m4: Likewise.
32631         * m4/eaccess.m4: Likewise.
32632         * m4/eealloc.m4: Likewise.
32633         * m4/environ.m4: Likewise.
32634         * m4/errno_h.m4: Likewise.
32635         * m4/euidaccess.m4: Likewise.
32636         * m4/execute.m4: Likewise.
32637         * m4/fatal-signal.m4: Likewise.
32638         * m4/fchdir.m4: Likewise.
32639         * m4/fcntl_h.m4: Likewise.
32640         * m4/fileblocks.m4: Likewise.
32641         * m4/filenamecat.m4: Likewise.
32642         * m4/findprog.m4: Likewise.
32643         * m4/flexmember.m4: Likewise.
32644         * m4/fnmatch.m4: Likewise.
32645         * m4/fopen.m4: Likewise.
32646         * m4/fpending.m4: Likewise.
32647         * m4/fprintf-posix.m4: Likewise.
32648         * m4/free.m4: Likewise.
32649         * m4/frexp.m4: Likewise.
32650         * m4/frexpl.m4: Likewise.
32651         * m4/fsusage.m4: Likewise.
32652         * m4/ftruncate.m4: Likewise.
32653         * m4/gc-camellia.m4: Likewise.
32654         * m4/gc-random.m4: Likewise.
32655         * m4/gc.m4: Likewise.
32656         * m4/getaddrinfo.m4: Likewise.
32657         * m4/getcwd-abort-bug.m4: Likewise.
32658         * m4/getcwd-path-max.m4: Likewise.
32659         * m4/getdate.m4: Likewise.
32660         * m4/getdomainname.m4: Likewise.
32661         * m4/getgroups.m4: Likewise.
32662         * m4/gethostname.m4: Likewise.
32663         * m4/gethrxtime.m4: Likewise.
32664         * m4/getline.m4: Likewise.
32665         * m4/getloadavg.m4: Likewise.
32666         * m4/getndelim2.m4: Likewise.
32667         * m4/getpass.m4: Likewise.
32668         * m4/gettext.m4: Likewise.
32669         * m4/gettime.m4: Likewise.
32670         * m4/gettimeofday.m4: Likewise.
32671         * m4/gnulib-common.m4: Likewise.
32672         * m4/group-member.m4: Likewise.
32673         * m4/host-os.m4: Likewise.
32674         * m4/iconv.m4: Likewise.
32675         * m4/iconv_open.m4: Likewise.
32676         * m4/inet_ntop.m4: Likewise.
32677         * m4/inet_pton.m4: Likewise.
32678         * m4/inline.m4: Likewise.
32679         * m4/intldir.m4: Likewise.
32680         * m4/intlmacosx.m4: Likewise.
32681         * m4/intmax.m4: Likewise.
32682         * m4/intmax_t.m4: Likewise.
32683         * m4/inttypes.m4: Likewise.
32684         * m4/inttypes_h.m4: Likewise.
32685         * m4/inttypes-pri.m4: Likewise.
32686         * m4/isapipe.m4: Likewise.
32687         * m4/isnand.m4: Likewise.
32688         * m4/isnanf.m4: Likewise.
32689         * m4/isnanl.m4: Likewise.
32690         * m4/javacomp.m4: Likewise.
32691         * m4/javaexec.m4: Likewise.
32692         * m4/jm-winsz1.m4: Likewise.
32693         * m4/jm-winsz2.m4: Likewise.
32694         * m4/lchown.m4: Likewise.
32695         * m4/lcmessage.m4: Likewise.
32696         * m4/ldexpl.m4: Likewise.
32697         * m4/lib-ld.m4: Likewise.
32698         * m4/lib-link.m4: Likewise.
32699         * m4/libsigsegv.m4: Likewise.
32700         * m4/link-follow.m4: Likewise.
32701         * m4/localcharset.m4: Likewise.
32702         * m4/locale-fr.m4: Likewise.
32703         * m4/locale-ja.m4: Likewise.
32704         * m4/locale-tr.m4: Likewise.
32705         * m4/locale-zh.m4: Likewise.
32706         * m4/lock.m4: Likewise.
32707         * m4/longlong.m4: Likewise.
32708         * m4/ls-mntd-fs.m4: Likewise.
32709         * m4/lstat.m4: Likewise.
32710         * m4/malloc.m4: Likewise.
32711         * m4/mathl.m4: Likewise.
32712         * m4/mbrtowc.m4: Likewise.
32713         * m4/mbstate_t.m4: Likewise.
32714         * m4/mbswidth.m4: Likewise.
32715         * m4/memchr.m4: Likewise.
32716         * m4/memcmp.m4: Likewise.
32717         * m4/memcpy.m4: Likewise.
32718         * m4/memmem.m4: Likewise.
32719         * m4/memmove.m4: Likewise.
32720         * m4/mempcpy.m4: Likewise.
32721         * m4/memrchr.m4: Likewise.
32722         * m4/memset.m4: Likewise.
32723         * m4/minmax.m4: Likewise.
32724         * m4/mkdir-slash.m4: Likewise.
32725         * m4/mkdtemp.m4: Likewise.
32726         * m4/mktime.m4: Likewise.
32727         * m4/mmap-anon.m4: Likewise.
32728         * m4/mountlist.m4: Likewise.
32729         * m4/nanosleep.m4: Likewise.
32730         * m4/nls.m4: Likewise.
32731         * m4/nocrash.m4: Likewise.
32732         * m4/open.m4: Likewise.
32733         * m4/openat.m4: Likewise.
32734         * m4/openmp.m4: Likewise.
32735         * m4/pathmax.m4: Likewise.
32736         * m4/perl.m4: Likewise.
32737         * m4/physmem.m4: Likewise.
32738         * m4/pipe.m4: Likewise.
32739         * m4/po.m4: Likewise.
32740         * m4/poll.m4: Likewise.
32741         * m4/posixtm.m4: Likewise.
32742         * m4/posixver.m4: Likewise.
32743         * m4/printf-frexp.m4: Likewise.
32744         * m4/printf-frexpl.m4: Likewise.
32745         * m4/printf-posix.m4: Likewise.
32746         * m4/printf-posix-rpl.m4: Likewise.
32747         * m4/printf.m4: Likewise.
32748         * m4/progtest.m4: Likewise.
32749         * m4/putenv.m4: Likewise.
32750         * m4/readline.m4: Likewise.
32751         * m4/readlink.m4: Likewise.
32752         * m4/readutmp.m4: Likewise.
32753         * m4/realloc.m4: Likewise.
32754         * m4/regex.m4: Likewise.
32755         * m4/relocatable.m4: Likewise.
32756         * m4/relocatable-lib.m4: Likewise.
32757         * m4/rename-dest-slash.m4: Likewise.
32758         * m4/rename.m4: Likewise.
32759         * m4/rmdir-errno.m4: Likewise.
32760         * m4/rmdir.m4: Likewise.
32761         * m4/roundf.m4: Likewise.
32762         * m4/roundl.m4: Likewise.
32763         * m4/rpmatch.m4: Likewise.
32764         * m4/save-cwd.m4: Likewise.
32765         * m4/selinux-selinux-h.m4: Likewise.
32766         * m4/setenv.m4: Likewise.
32767         * m4/settime.m4: Likewise.
32768         * m4/sig2str.m4: Likewise.
32769         * m4/sig_atomic_t.m4: Likewise.
32770         * m4/signalblocking.m4: Likewise.
32771         * m4/signbit.m4: Likewise.
32772         * m4/sigpipe.m4: Likewise.
32773         * m4/sockets.m4: Likewise.
32774         * m4/sockpfaf.m4: Likewise.
32775         * m4/st_dm_mode.m4: Likewise.
32776         * m4/stat-time.m4: Likewise.
32777         * m4/stdbool.m4: Likewise.
32778         * m4/stdint.m4: Likewise.
32779         * m4/stdint_h.m4: Likewise.
32780         * m4/stpcpy.m4: Likewise.
32781         * m4/stpncpy.m4: Likewise.
32782         * m4/strcase.m4: Likewise.
32783         * m4/strchrnul.m4: Likewise.
32784         * m4/strcspn.m4: Likewise.
32785         * m4/strdup.m4: Likewise.
32786         * m4/strftime.m4: Likewise.
32787         * m4/strndup.m4: Likewise.
32788         * m4/strnlen.m4: Likewise.
32789         * m4/strpbrk.m4: Likewise.
32790         * m4/strptime.m4: Likewise.
32791         * m4/strsep.m4: Likewise.
32792         * m4/strtod.m4: Likewise.
32793         * m4/strtoimax.m4: Likewise.
32794         * m4/strtok_r.m4: Likewise.
32795         * m4/strtol.m4: Likewise.
32796         * m4/strtoll.m4: Likewise.
32797         * m4/strtoul.m4: Likewise.
32798         * m4/strtoull.m4: Likewise.
32799         * m4/strtoumax.m4: Likewise.
32800         * m4/strverscmp.m4: Likewise.
32801         * m4/threadlib.m4: Likewise.
32802         * m4/timegm.m4: Likewise.
32803         * m4/tm_gmtoff.m4: Likewise.
32804         * m4/tmpdir.m4: Likewise.
32805         * m4/tmpfile.m4: Likewise.
32806         * m4/tzset.m4: Likewise.
32807         * m4/uintmax_t.m4: Likewise.
32808         * m4/unlinkdir.m4: Likewise.
32809         * m4/unlocked-io.m4: Likewise.
32810         * m4/uptime.m4: Likewise.
32811         * m4/userspec.m4: Likewise.
32812         * m4/utimbuf.m4: Likewise.
32813         * m4/utime.m4: Likewise.
32814         * m4/utimes-null.m4: Likewise.
32815         * m4/utimes.m4: Likewise.
32816         * m4/vararrays.m4: Likewise.
32817         * m4/vasnprintf.m4: Likewise.
32818         * m4/vfprintf-posix.m4: Likewise.
32819         * m4/vprintf-posix.m4: Likewise.
32820         * m4/wait-process.m4: Likewise.
32821         * m4/wchar_t.m4: Likewise.
32822         * m4/wint_t.m4: Likewise.
32823         * m4/write-any-file.m4: Likewise.
32824         * m4/yield.m4: Likewise.
32825
32826 2009-01-13  Bruno Haible  <bruno@clisp.org>
32827
32828         Avoid test-copy-file.sh failures when ACL support insufficient.
32829         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
32830         TESTS_ENVIRONMENT.
32831         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
32832         Reported by Jim Meyering.
32833
32834 2009-01-13  Bruno Haible  <bruno@clisp.org>
32835
32836         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
32837         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
32838         * modules/unistdio/u8-printf-parse (Files): Likewise.
32839         * modules/unistdio/u32-printf-parse (Files): Likewise.
32840         * modules/unistdio/ulc-printf-parse (Files): Likewise.
32841
32842 2009-01-13  Simon Josefsson  <simon@josefsson.org>
32843
32844         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
32845         and m4/inttypes_h.m4 too.
32846
32847 2009-01-12  Eric Blake  <ebb9@byu.net>
32848
32849         tests: IRIX 6.2 cc can't compile -0.0 into .data
32850         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
32851         rather than at compile-time.
32852         * tests/test-floorl.c (minus_zero): Likewise.
32853         * tests/test-frexpl.c (minus_zero): Likewise.
32854         * tests/test-isnan.c (minus_zerol): Likewise.
32855         * tests/test-isnanl.h (minus_zero): Likewise.
32856         * tests/test-ldexpl.c (minus_zero): Likewise.
32857         * tests/test-roundl.c (minus_zero): Likewise.
32858         * tests/test-signbit.c (minus_zerol): Likewise.
32859         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32860         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32861         * tests/test-truncl.c (minus_zero): Likewise.
32862         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32863         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32864         Reported by Tom G. Christensen and Nelson H. F. Beebe.
32865
32866 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32867
32868         regex: fix glibc bug 9697
32869         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
32870         handling.
32871
32872 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32873
32874         regex: fix glibc bug 697
32875         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
32876         being NULL also if there are no backreferences.
32877
32878 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32879
32880         regex: merge glibc changes
32881         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
32882         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
32883         re_string_skip_chars, re_string_reconstruct): Likewise.
32884         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
32885
32886 2009-01-07  Jim Meyering  <meyering@redhat.com>
32887
32888         poll: filter through cppi
32889         * lib/poll.c: Indent cpp directives to reflect nesting.
32890
32891 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
32892
32893         poll: don't return uninitialized
32894         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
32895
32896 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
32897
32898         avoid compile failure on AIX 6.1
32899         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
32900         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
32901
32902 2009-01-04  Jim Meyering  <meyering@redhat.com>
32903
32904         remove duplicate inclusion of <stdio.h>
32905         * tests/test-fprintf-posix.c: Likewise.
32906         * tests/test-printf-posix.c: Likewise.
32907         * tests/test-snprintf-posix.c: Likewise.
32908         * tests/test-sprintf-posix.c: Likewise.
32909         * tests/test-vasprintf-posix.c: Likewise.
32910         * tests/test-vfprintf-posix.c: Likewise.
32911         * tests/test-vprintf-posix.c: Likewise.
32912         * tests/test-vsnprintf-posix.c: Likewise.
32913         * tests/test-vsprintf-posix.c: Likewise.
32914
32915 2009-01-03  Jim Meyering  <meyering@redhat.com>
32916
32917         gnulib-tool: fix sed-based filtering
32918         * gnulib-tool (func_filter_filelist): Remove extra backslash
32919         in sed_fff_filter definition.
32920
32921 2009-01-02  Jim Meyering  <meyering@redhat.com>
32922
32923         strftime: avoid compilation failure on Solaris 2.6
32924         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
32925         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
32926         Don't #define mbrlen or mbsinit, since now they're guaranteed to
32927         be available.  Reported by Tom G. Christensen.  Details in
32928         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
32929
32930 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32931             Bruno Haible  <bruno@clisp.org>
32932
32933         Speed up gnulib-tool by doing more string processing through shell
32934         built-ins.
32935         * gnulib-tool (fast_func_append): New variable.
32936         (func_remove_prefix, func_remove_suffix): New functions.
32937         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
32938         (func_filter_filelist): New function.
32939         (func_get_dependencies): Use func_remove_suffix instead of sed.
32940         (func_get_automake_snippet): Use func_filter_filelist instead of a
32941         subshell and sed invocation.
32942
32943 2009-01-01  Bruno Haible  <bruno@clisp.org>
32944
32945         Fix a security bug.
32946         * gnulib-tool (func_import, import, update): Don't allow the characters
32947         '"', '$', '`', '\' in macro arguments that become part of commands that
32948         are evaluated.
32949
32950 2009-01-01  Bruno Haible  <bruno@clisp.org>
32951
32952         * gnulib-tool (func_reset_sigpipe): Add more comments.
32953
32954 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32955
32956         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
32957         func_emit_tests_Makefile_am, func_import): Abort loops early if we
32958         already know the answer.
32959
32960 2009-01-01  Jim Meyering  <meyering@redhat.com>
32961
32962         * lib/version-etc.c (version_etc_va): Update copyright year.
32963
32964 2008-12-30  Bruno Haible  <bruno@clisp.org>
32965
32966         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
32967         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
32968         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
32969
32970 2008-12-29  Eric Blake  <ebb9@byu.net>
32971
32972         multiarch: avoid autoconf AC_REQUIRE bug
32973         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
32974         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
32975         2.63 and older.
32976         Reported by Bruno Haible, and analyzed in
32977         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
32978
32979 2008-12-29  Bruno Haible  <bruno@clisp.org>
32980
32981         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
32982         files in subdirectories correctly.
32983         Reported by Ralf Wildenhues.
32984
32985 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32986
32987         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
32988         rather than 'join FILE -', for Solaris join.
32989
32990 2008-12-29  Bruno Haible  <bruno@clisp.org>
32991
32992         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
32993         quoting.
32994         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32995         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
32996         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
32997         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
32998         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
32999         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
33000         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
33001         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
33002         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33003         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
33004         * m4/nls.m4 (AM_NLS): Likewise.
33005         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
33006         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
33007         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
33008         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
33009         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
33010         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
33011         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
33012         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
33013         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
33014         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
33015         * m4/xsize.m4 (gl_XSIZE): Likewise.
33016         Suggested by Jim Meyering.
33017
33018 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33019
33020         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
33021         * lib/parse-duration.c: use a switch instead of cascading if's.
33022
33023 2008-12-29  Eric Blake  <ebb9@byu.net>
33024
33025         wchar.h: supply WEOF on Irix 5.3
33026         * lib/wchar.in.h (wint_t): Also supply WEOF.
33027         * lib/wctype.in.h (wint_t): Likewise.
33028         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
33029         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
33030         Reported by Tom G. Christensen.
33031
33032 2008-12-26  Bruno Haible  <bruno@clisp.org>
33033
33034         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
33035         i486, i586, i686.
33036
33037 2008-12-26  Bruno Haible  <bruno@clisp.org>
33038
33039         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
33040
33041 2008-12-26  Bruno Haible  <bruno@clisp.org>
33042
33043         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
33044         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
33045         not __STDC_CONSTANT_MACROS.
33046         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33047
33048 2008-12-25  Bruno Haible  <bruno@clisp.org>
33049
33050         Add support for universal builds to vasnprintf.
33051         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
33052         universal builds, guess no.
33053         * modules/vasnprintf-posix (Depends-on): Add multiarch.
33054         * modules/vasprintf-posix (Depends-on): Likewise.
33055         * modules/fprintf-posix (Depends-on): Likewise.
33056         * modules/vfprintf-posix (Depends-on): Likewise.
33057         * modules/snprintf-posix (Depends-on): Likewise.
33058         * modules/vsnprintf-posix (Depends-on): Likewise.
33059         * modules/sprintf-posix (Depends-on): Likewise.
33060         * modules/vsprintf-posix (Depends-on): Likewise.
33061         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33062         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33063         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33064         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33065         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33066         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33067         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33068
33069         Add support for universal builds to <inttypes.h>.
33070         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
33071         _SCNu64_PREFIX): In Apple
33072         universal builds, define directly, using _LP64.
33073         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
33074         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
33075         * modules/inttypes (Depends-on): Add multiarch.
33076         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33077
33078         Add support for universal builds to <stdint.h>.
33079         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
33080         universal builds, define directly, using _LP64.
33081         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
33082         Apple universal builds, don't test for the size and suffix of ptrdiff_t
33083         and size_t.
33084         * modules/stdint (Depends-on): Add multiarch.
33085         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33086
33087         New module 'multiarch'.
33088         * modules/multiarch: New file.
33089         * m4/multiarch.m4: New file.
33090
33091 2008-12-25  Bruno Haible  <bruno@clisp.org>
33092
33093         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
33094
33095 2008-12-25  Bruno Haible  <bruno@clisp.org>
33096
33097         * modules/btowc (License): Relicense under LGPLv2+.
33098         * modules/mbsinit (License): Likewise.
33099         * modules/mbrtowc (License): Likewise.
33100         * modules/wcrtomb (License): Likewise.
33101         * modules/streq (License): Likewise.
33102         Reported by David Lutterkort <lutter@redhat.com>.
33103
33104 2008-12-23  Bruno Haible  <bruno@clisp.org>
33105
33106         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
33107
33108 2008-12-23  Bruno Haible  <bruno@clisp.org>
33109
33110         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
33111         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
33112         GETADDRINFO_LIB, not in LIBS.
33113         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
33114         * modules/canon-host (Link): Likewise.
33115         * NEWS: Mention the change.
33116         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
33117         GETADDRINFO_LIB.
33118
33119 2008-12-22  Bruno Haible  <bruno@clisp.org>
33120
33121         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
33122         * doc/posix-functions/iswalpha_l.texi: Likewise.
33123         * doc/posix-functions/iswblank_l.texi: Likewise.
33124         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33125         * doc/posix-functions/iswctype_l.texi: Likewise.
33126         * doc/posix-functions/iswdigit_l.texi: Likewise.
33127         * doc/posix-functions/iswgraph_l.texi: Likewise.
33128         * doc/posix-functions/iswlower_l.texi: Likewise.
33129         * doc/posix-functions/iswprint_l.texi: Likewise.
33130         * doc/posix-functions/iswpunct_l.texi: Likewise.
33131         * doc/posix-functions/iswspace_l.texi: Likewise.
33132         * doc/posix-functions/iswupper_l.texi: Likewise.
33133         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33134         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
33135         * doc/posix-functions/open_wmemstream.texi: Likewise.
33136         * doc/posix-functions/swscanf.texi: Likewise.
33137         * doc/posix-functions/towctrans_l.texi: Likewise.
33138         * doc/posix-functions/towlower.texi: Likewise.
33139         * doc/posix-functions/towlower_l.texi: Likewise.
33140         * doc/posix-functions/towupper.texi: Likewise.
33141         * doc/posix-functions/towupper_l.texi: Likewise.
33142         * doc/posix-functions/vfwprintf.texi: Likewise.
33143         * doc/posix-functions/vfwscanf.texi: Likewise.
33144         * doc/posix-functions/vswscanf.texi: Likewise.
33145         * doc/posix-functions/vwprintf.texi: Likewise.
33146         * doc/posix-functions/vwscanf.texi: Likewise.
33147         * doc/posix-functions/wcpcpy.texi: Likewise.
33148         * doc/posix-functions/wcpncpy.texi: Likewise.
33149         * doc/posix-functions/wcscasecmp.texi: Likewise.
33150         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
33151         * doc/posix-functions/wcscoll_l.texi: Likewise.
33152         * doc/posix-functions/wcsdup.texi: Likewise.
33153         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33154         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
33155         * doc/posix-functions/wcsnlen.texi: Likewise.
33156         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33157         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33158         * doc/posix-functions/wctrans_l.texi: Likewise.
33159         * doc/posix-functions/wctype_l.texi: Likewise.
33160         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
33161         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
33162         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
33163         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
33164         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
33165         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
33166         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
33167         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
33168         * doc/glibc-functions/wcschrnul.texi: Likewise.
33169         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33170         * doc/glibc-functions/wcstod_l.texi: Likewise.
33171         * doc/glibc-functions/wcstof_l.texi: Likewise.
33172         * doc/glibc-functions/wcstol_l.texi: Likewise.
33173         * doc/glibc-functions/wcstold_l.texi: Likewise.
33174         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33175         * doc/glibc-functions/wcstoq.texi: Likewise.
33176         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33177         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33178         * doc/glibc-functions/wcstouq.texi: Likewise.
33179         * doc/glibc-functions/wmempcpy.texi: Likewise.
33180
33181 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
33182             Eric Blake  <ebb9@byu.net>
33183             Paolo Bonzini  <bonzini@gnu.org>
33184             Bruno Haible  <bruno@clisp.org>
33185
33186         Make c-stack work on Haiku.
33187         * lib/c-stack.c (SA_ONSTACK): Define fallback.
33188         (c_stack_action): Use SA_ONSTACK flag.
33189
33190 2008-12-22  Bruno Haible  <bruno@clisp.org>
33191
33192         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
33193
33194 2008-12-22  Bruno Haible  <bruno@clisp.org>
33195
33196         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
33197         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
33198         being overridden.
33199         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
33200         New macros.
33201         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
33202         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
33203         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
33204         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
33205
33206 2008-12-22  Bruno Haible  <bruno@clisp.org>
33207
33208         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
33209         from test code.
33210
33211 2008-12-22  Eric Blake  <ebb9@byu.net>
33212
33213         Avoid gcc warnings on cygwin.
33214         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
33215         Avoid unused variable.
33216         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
33217         Likewise.
33218
33219 2008-12-22  Bruno Haible  <bruno@clisp.org>
33220
33221         Remove HAVE_MBRTOWC conditionals.
33222         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
33223         (mbscasecmp): Assume mbrtowc function.
33224         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
33225         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
33226         * lib/mbschr.c: Include mbuiter.h unconditionally.
33227         (mbschr): Assume mbrtowc function.
33228         * lib/mbscspn.c: Include mbuiter.h unconditionally.
33229         (mbscspn): Assume mbrtowc function.
33230         * lib/mbslen.c: Include mbuiter.h unconditionally.
33231         (mbslen): Assume mbrtowc function.
33232         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
33233         (mbsncasecmp): Assume mbrtowc function.
33234         * lib/mbsnlen.c: Include mbiter.h unconditionally.
33235         (mbsnlen): Assume mbrtowc function.
33236         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
33237         (mbspbrk): Assume mbrtowc function.
33238         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
33239         (mbspcasecmp): Assume mbrtowc function.
33240         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
33241         (mbsrchr): Assume mbrtowc function.
33242         * lib/mbssep.c: Include mbuiter.h unconditionally.
33243         (mbssep): Assume mbrtowc function.
33244         * lib/mbsspn.c: Include mbuiter.h unconditionally.
33245         (mbsspn): Assume mbrtowc function.
33246         * lib/mbsstr.c: Include mbuiter.h unconditionally.
33247         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
33248         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
33249         (mbstok_r): Assume mbrtowc function.
33250         * lib/propername.c: Include mbuiter.h unconditionally.
33251         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
33252         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
33253         (trim2): Assume mbrtowc function.
33254         * lib/mbswidth.c (mbsinit): Remove fallback definition.
33255         (mbsnwidth): Assume mbrtowc function.
33256         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
33257         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
33258         fallback definitions.
33259         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
33260
33261 2008-12-22  Bruno Haible  <bruno@clisp.org>
33262
33263         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
33264
33265 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
33266
33267         * modules/regex: Request emulations for the mb*/wc* functions we need.
33268         * m4/regex.m4: Don't look for those functions here.
33269         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
33270
33271 2008-12-22  Bruno Haible  <bruno@clisp.org>
33272
33273         * modules/fnmatch (Depends-on): Remove duplicated dependency.
33274
33275 2008-12-21  Bruno Haible  <bruno@clisp.org>
33276
33277         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
33278         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
33279         (Include): Remove conditionalization.
33280         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
33281         (Include): Remove conditionalization.
33282         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
33283         (Include): Remove conditionalization.
33284         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
33285         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33286         * NEWS: Mention the change.
33287         Reported by Alan Hourihane <alanh@fairlite.co.uk>
33288         via Sergey Poznyakoff <gray@gnu.org.ua>.
33289
33290 2008-12-21  Bruno Haible  <bruno@clisp.org>
33291
33292         * MODULES.html.sh (Extended multibyte and wide character utilities
33293         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
33294         wcrtomb, wcsrtombs.
33295         (Support for systems lacking POSIX:2008): Add accept, bind, close,
33296         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
33297         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
33298         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
33299
33300 2008-12-21  Bruno Haible  <bruno@clisp.org>
33301
33302         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
33303
33304 2008-12-21  Bruno Haible  <bruno@clisp.org>
33305
33306         * modules/wcsnrtombs-tests: New file.
33307         * tests/test-wcsnrtombs1.sh: New file.
33308         * tests/test-wcsnrtombs2.sh: New file.
33309         * tests/test-wcsnrtombs3.sh: New file.
33310         * tests/test-wcsnrtombs4.sh: New file.
33311         * tests/test-wcsnrtombs.c: New file.
33312
33313         New module 'wcsnrtombs'.
33314         * lib/wchar.in.h (wcsnrtombs): New declaration.
33315         * lib/wcsnrtombs.c: New file.
33316         * lib/wcsrtombs-state.c: New file.
33317         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
33318         (internal_state): Remove variable.
33319         * m4/wcsnrtombs.m4: New file.
33320         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
33321         compilation units.
33322         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
33323         HAVE_WCSNRTOMBS.
33324         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
33325         HAVE_WCSNRTOMBS.
33326         * modules/wcsnrtombs: New file.
33327         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
33328         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
33329
33330 2008-12-21  Bruno Haible  <bruno@clisp.org>
33331
33332         * modules/wcsrtombs-tests: New file.
33333         * tests/test-wcsrtombs1.sh: New file.
33334         * tests/test-wcsrtombs2.sh: New file.
33335         * tests/test-wcsrtombs3.sh: New file.
33336         * tests/test-wcsrtombs4.sh: New file.
33337         * tests/test-wcsrtombs.c: New file.
33338
33339         New module 'wcsrtombs'.
33340         * lib/wchar.in.h (wcsrtombs): New declaration.
33341         * lib/wcsrtombs.c: New file.
33342         * m4/wcsrtombs.m4: New file.
33343         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
33344         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33345         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
33346         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33347         * modules/wcsrtombs: New file.
33348         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
33349         bugs.
33350
33351 2008-12-21  Bruno Haible  <bruno@clisp.org>
33352
33353         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
33354         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
33355         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
33356         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
33357         if not correct.
33358         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
33359         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
33360         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33361         m4/locale-zh.m4, m4/codeset.m4.
33362         * doc/posix-functions/wcrtomb.texi: Document the bug.
33363
33364 2008-12-21  Bruno Haible  <bruno@clisp.org>
33365
33366         Work around a btowc() bug on IRIX 6.5.
33367         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
33368         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
33369         REPLACE_WTOBC if not.
33370         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
33371         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
33372         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
33373
33374 2008-12-21  Bruno Haible  <bruno@clisp.org>
33375
33376         * modules/wcrtomb-tests: New file.
33377         * tests/test-wcrtomb.sh: New file.
33378         * tests/test-wcrtomb.c: New file.
33379
33380         New module 'wcrtomb'.
33381         * lib/wchar.in.h (wcrtomb): New declaration.
33382         * lib/wcrtomb.c: New file.
33383         * m4/wcrtomb.m4: New file.
33384         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
33385         HAVE_WCRTOMB.
33386         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
33387         HAVE_WCRTOMB.
33388         * modules/wcrtomb: New file.
33389         * doc/posix-functions/wcrtomb.texi: Mention the new module.
33390
33391 2008-12-21  Bruno Haible  <bruno@clisp.org>
33392
33393         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
33394         * modules/mbsrtowcs (Files): Likewise.
33395         * modules/wctob (Files): Likewise.
33396         * modules/c-strcase-tests (Files): Likewise.
33397         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33398         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33399         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33400         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33401         * modules/vasnprintf-posix-tests (Files): Likewise.
33402
33403 2008-12-21  William Pursell  <bill.pursell@gmail.com>
33404
33405         gitlog-to-changelog: pass all command-line arguments to git-log
33406         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
33407         it is sometimes convenient to filter the commits in various ways.
33408         gitlog-to-changelog only allows --since to specify a start date,
33409         but git-log itself supports many other filtering mechanisms.
33410         At the moment, I want to filter by branch name.  Rather than
33411         adding a --branch option to gitlog-to-changelog, it seems more
33412         flexible to simply pass all options directly to git-log and let
33413         git do the work.  Notice that this effectively makes --since a
33414         redundant option for gitlog-to-changelog, but removing it would
33415         require current usage to change since calls would then require
33416         an additional '--'.
33417
33418 2008-12-21  Bruno Haible  <bruno@clisp.org>
33419
33420         * modules/mbsnrtowcs-tests: New file.
33421         * tests/test-mbsnrtowcs1.sh: New file.
33422         * tests/test-mbsnrtowcs2.sh: New file.
33423         * tests/test-mbsnrtowcs3.sh: New file.
33424         * tests/test-mbsnrtowcs4.sh: New file.
33425         * tests/test-mbsnrtowcs.c: New file.
33426
33427         New module 'mbsnrtowcs'.
33428         * lib/wchar.in.h (mbsnrtowcs): New declaration.
33429         * lib/mbsnrtowcs.c: New file.
33430         * lib/mbsrtowcs-state.c: New file.
33431         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
33432         (internal_state): Remove variable.
33433         * m4/mbsnrtowcs.m4: New file.
33434         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
33435         compilation units.
33436         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
33437         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33438         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
33439         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33440         * modules/mbsnrtowcs: New file.
33441         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
33442         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
33443         portability problem.
33444
33445 2008-12-21  Bruno Haible  <bruno@clisp.org>
33446
33447         Work around mbsrtowcs bug.
33448         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
33449         (gl_FUNC_MBSRTOWCS): Invoke it.
33450         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33451         m4/locale-zh.m4.
33452         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
33453
33454 2008-12-21  Bruno Haible  <bruno@clisp.org>
33455
33456         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
33457
33458 2008-12-21  Bruno Haible  <bruno@clisp.org>
33459
33460         Update doc for AIX.
33461         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
33462         16-bit wchar_t type.
33463         * doc/posix-functions/btowc.texi: Likewise.
33464         * doc/posix-functions/fgetwc.texi: Likewise.
33465         * doc/posix-functions/fgetws.texi: Likewise.
33466         * doc/posix-functions/fputwc.texi: Likewise.
33467         * doc/posix-functions/fputws.texi: Likewise.
33468         * doc/posix-functions/fwide.texi: Likewise.
33469         * doc/posix-functions/fwprintf.texi: Likewise.
33470         * doc/posix-functions/fwscanf.texi: Likewise.
33471         * doc/posix-functions/getwchar.texi: Likewise.
33472         * doc/posix-functions/getwc.texi: Likewise.
33473         * doc/posix-functions/iswalnum.texi: Likewise.
33474         * doc/posix-functions/iswalpha.texi: Likewise.
33475         * doc/posix-functions/iswblank.texi: Likewise.
33476         * doc/posix-functions/iswcntrl.texi: Likewise.
33477         * doc/posix-functions/iswctype.texi: Likewise.
33478         * doc/posix-functions/iswdigit.texi: Likewise.
33479         * doc/posix-functions/iswgraph.texi: Likewise.
33480         * doc/posix-functions/iswlower.texi: Likewise.
33481         * doc/posix-functions/iswprint.texi: Likewise.
33482         * doc/posix-functions/iswpunct.texi: Likewise.
33483         * doc/posix-functions/iswspace.texi: Likewise.
33484         * doc/posix-functions/iswupper.texi: Likewise.
33485         * doc/posix-functions/iswxdigit.texi: Likewise.
33486         * doc/posix-functions/mbrtowc.texi: Likewise.
33487         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33488         * doc/posix-functions/mbstowcs.texi: Likewise.
33489         * doc/posix-functions/mbtowc.texi: Likewise.
33490         * doc/posix-functions/putwchar.texi: Likewise.
33491         * doc/posix-functions/putwc.texi: Likewise.
33492         * doc/posix-functions/swprintf.texi: Likewise.
33493         * doc/posix-functions/tolower.texi: Likewise.
33494         * doc/posix-functions/toupper.texi: Likewise.
33495         * doc/posix-functions/towctrans.texi: Likewise.
33496         * doc/posix-functions/ungetwc.texi: Likewise.
33497         * doc/posix-functions/vswprintf.texi: Likewise.
33498         * doc/posix-functions/wcrtomb.texi: Likewise.
33499         * doc/posix-functions/wcscat.texi: Likewise.
33500         * doc/posix-functions/wcschr.texi: Likewise.
33501         * doc/posix-functions/wcscmp.texi: Likewise.
33502         * doc/posix-functions/wcscoll.texi: Likewise.
33503         * doc/posix-functions/wcscpy.texi: Likewise.
33504         * doc/posix-functions/wcscspn.texi: Likewise.
33505         * doc/posix-functions/wcsftime.texi: Likewise.
33506         * doc/posix-functions/wcslen.texi: Likewise.
33507         * doc/posix-functions/wcsncat.texi: Likewise.
33508         * doc/posix-functions/wcsncmp.texi: Likewise.
33509         * doc/posix-functions/wcsncpy.texi: Likewise.
33510         * doc/posix-functions/wcspbrk.texi: Likewise.
33511         * doc/posix-functions/wcsrchr.texi: Likewise.
33512         * doc/posix-functions/wcsrtombs.texi: Likewise.
33513         * doc/posix-functions/wcsspn.texi: Likewise.
33514         * doc/posix-functions/wcsstr.texi: Likewise.
33515         * doc/posix-functions/wcstod.texi: Likewise.
33516         * doc/posix-functions/wcstof.texi: Likewise.
33517         * doc/posix-functions/wcstoimax.texi: Likewise.
33518         * doc/posix-functions/wcstok.texi: Likewise.
33519         * doc/posix-functions/wcstold.texi: Likewise.
33520         * doc/posix-functions/wcstoll.texi: Likewise.
33521         * doc/posix-functions/wcstol.texi: Likewise.
33522         * doc/posix-functions/wcstombs.texi: Likewise.
33523         * doc/posix-functions/wcstoull.texi: Likewise.
33524         * doc/posix-functions/wcstoul.texi: Likewise.
33525         * doc/posix-functions/wcstoumax.texi: Likewise.
33526         * doc/posix-functions/wcswidth.texi: Likewise.
33527         * doc/posix-functions/wcsxfrm.texi: Likewise.
33528         * doc/posix-functions/wctob.texi: Likewise.
33529         * doc/posix-functions/wctomb.texi: Likewise.
33530         * doc/posix-functions/wctrans.texi: Likewise.
33531         * doc/posix-functions/wctype.texi: Likewise.
33532         * doc/posix-functions/wcwidth.texi: Likewise.
33533         * doc/posix-functions/wmemchr.texi: Likewise.
33534         * doc/posix-functions/wmemcmp.texi: Likewise.
33535         * doc/posix-functions/wmemcpy.texi: Likewise.
33536         * doc/posix-functions/wmemmove.texi: Likewise.
33537         * doc/posix-functions/wmemset.texi: Likewise.
33538         * doc/posix-functions/wprintf.texi: Likewise.
33539         * doc/posix-functions/wscanf.texi: Likewise.
33540
33541 2008-12-21  Bruno Haible  <bruno@clisp.org>
33542
33543         Update doc for HP-UX 11.11.
33544         * doc/posix-functions/btowc.texi: Clarify that the function is missing
33545         in HP-UX version 11.00, not in all versions of HP-UX 11.
33546         * doc/posix-functions/fwide.texi: Likewise.
33547         * doc/posix-functions/fwprintf.texi: Likewise.
33548         * doc/posix-functions/fwscanf.texi: Likewise.
33549         * doc/posix-functions/inet_ntop.texi: Likewise.
33550         * doc/posix-functions/inet_pton.texi: Likewise.
33551         * doc/posix-functions/mbrlen.texi: Likewise.
33552         * doc/posix-functions/mbrtowc.texi: Likewise.
33553         * doc/posix-functions/mbsinit.texi: Likewise.
33554         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33555         * doc/posix-functions/swprintf.texi: Likewise.
33556         * doc/posix-functions/swscanf.texi: Likewise.
33557         * doc/posix-functions/towctrans.texi: Likewise.
33558         * doc/posix-functions/vfwprintf.texi: Likewise.
33559         * doc/posix-functions/vswprintf.texi: Likewise.
33560         * doc/posix-functions/vwprintf.texi: Likewise.
33561         * doc/posix-functions/wcrtomb.texi: Likewise.
33562         * doc/posix-functions/wcsrtombs.texi: Likewise.
33563         * doc/posix-functions/wcsstr.texi: Likewise.
33564         * doc/posix-functions/wctob.texi: Likewise.
33565         * doc/posix-functions/wctrans.texi: Likewise.
33566         * doc/posix-functions/wmemchr.texi: Likewise.
33567         * doc/posix-functions/wmemcmp.texi: Likewise.
33568         * doc/posix-functions/wmemcpy.texi: Likewise.
33569         * doc/posix-functions/wmemmove.texi: Likewise.
33570         * doc/posix-functions/wmemset.texi: Likewise.
33571         * doc/posix-functions/wprintf.texi: Likewise.
33572         * doc/posix-functions/wscanf.texi: Likewise.
33573
33574 2008-12-21  Bruno Haible  <bruno@clisp.org>
33575
33576         Work around a portability problem.
33577         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
33578         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
33579
33580 2008-12-20  Bruno Haible  <bruno@clisp.org>
33581
33582         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
33583         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
33584         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
33585         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
33586         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
33587
33588         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
33589         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
33590         set.
33591         (GNULIB_defined_mbstate_t): New macro.
33592         (mbsinit): Redefine if REPLACE_MBSINIT is set.
33593         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
33594         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
33595         reuses the system's mbrtowc function but works around the bugs.
33596         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
33597         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
33598         macros.
33599         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
33600         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
33601         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
33602         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
33603         REPLACE_MBSINIT if mbsinit needs to be overridden.
33604         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
33605         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33606         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
33607         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33608         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33609         m4/locale-zh.m4.
33610         (Depends): Add mbsinit.
33611         * modules/mbsinit (Depends): Add mbrtowc.
33612         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
33613
33614 2008-12-20  Bruno Haible  <bruno@clisp.org>
33615
33616         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
33617         so that there are no conversion errors on AIX.
33618         * tests/test-mbsrtowcs.c (main): LIkewise.
33619
33620 2008-12-20  Bruno Haible  <bruno@clisp.org>
33621
33622         Work around wctob bug on Solaris <= 9.
33623         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
33624         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
33625         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
33626         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
33627         * modules/wctob (Files): Add m4/locale-fr.m4.
33628         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
33629
33630 2008-12-20  Bruno Haible  <bruno@clisp.org>
33631
33632         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
33633         /dev/null.
33634         * tests/test-select-in.sh: Likewise.
33635         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33636
33637 2008-12-20  Bruno Haible  <bruno@clisp.org>
33638
33639         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
33640         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
33641         Cygwin 1.5.x.
33642
33643 2008-12-20  Bruno Haible  <bruno@clisp.org>
33644
33645         Ensure mbstate_t is defined on HP-UX 11.11.
33646         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
33647         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
33648         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
33649         AC_USE_SYSTEM_EXTENSIONS.
33650         * modules/fnmatch (Depends-on): Add extensions.
33651         * modules/mbrlen (Depends-on): Likewise.
33652         * modules/mbrtowc (Depends-on): Likewise.
33653         * modules/mbsinit (Depends-on): Likewise.
33654         * modules/mbsrtowcs (Depends-on): Likewise.
33655         * modules/mbswidth (Depends-on): Likewise.
33656         * modules/quotearg (Depends-on): Likewise.
33657         * modules/strftime (Depends-on): Likewise.
33658
33659 2008-12-20  Bruno Haible  <bruno@clisp.org>
33660
33661         Ensure wctob is declared on IRIX 6.5.
33662         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
33663         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
33664         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
33665         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
33666         of HAVE_WCTOB.
33667         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
33668         HAVE_WCTOB.
33669         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
33670
33671 2008-12-19  Bruno Haible  <bruno@clisp.org>
33672
33673         * modules/mbsrtowcs-tests: New file.
33674         * tests/test-mbsrtowcs1.sh: New file.
33675         * tests/test-mbsrtowcs2.sh: New file.
33676         * tests/test-mbsrtowcs3.sh: New file.
33677         * tests/test-mbsrtowcs4.sh: New file.
33678         * tests/test-mbsrtowcs.c: New file.
33679
33680         New module 'mbsrtowcs'.
33681         * lib/wchar.in.h (mbsrtowcs): New declaration.
33682         * lib/mbsrtowcs.c: New file.
33683         * m4/mbsrtowcs.m4: New file.
33684         * modules/mbsrtowcs: New file.
33685         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
33686         HAVE_MBSRTOWCS.
33687         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
33688         HAVE_MBSRTOWCS.
33689         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
33690
33691 2008-12-19  Bruno Haible  <bruno@clisp.org>
33692
33693         New module 'mbrlen'.
33694         * lib/wchar.in.h (mbrlen): New declaration.
33695         * lib/mbrlen.c: New file.
33696         * m4/mbrlen.m4: New file.
33697         * modules/mbrlen: New file.
33698         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
33699         HAVE_MBRLEN.
33700         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
33701         HAVE_MBRLEN.
33702         * doc/posix-functions/mbrlen.texi: Document the new module.
33703
33704 2008-12-19  Bruno Haible  <bruno@clisp.org>
33705
33706         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
33707         * modules/mbrtowc (Depends-on): Add verify.
33708         Suggested by Paul Eggert.
33709
33710 2008-12-18  Bruno Haible  <bruno@clisp.org>
33711
33712         * modules/mbsinit-tests: New file.
33713         * tests/test-mbsinit.sh: New file.
33714         * tests/test-mbsinit.c: New file.
33715
33716 2008-12-18  Bruno Haible  <bruno@clisp.org>
33717
33718         * modules/mbrtowc-tests: New file.
33719         * tests/test-mbrtowc1.sh: New file.
33720         * tests/test-mbrtowc2.sh: New file.
33721         * tests/test-mbrtowc3.sh: New file.
33722         * tests/test-mbrtowc4.sh: New file.
33723         * tests/test-mbrtowc.c: New file.
33724
33725         New module 'mbrtowc'.
33726         * lib/wchar.in.h (mbstate_t): Override when the system does not have
33727         mbsinit and mbrtowc.
33728         (mbrtowc): New declaration.
33729         * lib/mbrtowc.c: New file.
33730         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
33731         * modules/mbrtowc: New file.
33732         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
33733         HAVE_MBRTOWC.
33734         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
33735         HAVE_MBRTOWC.
33736         * doc/posix-functions/mbrtowc.texi: Document the new module.
33737
33738 2008-12-18  Bruno Haible  <bruno@clisp.org>
33739
33740         New module 'wctob'.
33741         * lib/wchar.in.h (wctob): New declaration.
33742         * lib/wctob.c: New file.
33743         * m4/wctob.m4: New file.
33744         * modules/wctob: New file.
33745         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
33746         HAVE_WCTOB.
33747         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
33748         * doc/posix-functions/wctob.texi: Document the new module.
33749
33750 2008-12-18  Bruno Haible  <bruno@clisp.org>
33751
33752         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
33753         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
33754
33755 2008-12-18  Simon Josefsson  <simon@josefsson.org>
33756
33757         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
33758         G. Christensen" <tgc@jupiterrise.com>.
33759
33760         * lib/flock.c: Need to include errno.h.  Reported by "Tom
33761         G. Christensen" <tgc@jupiterrise.com>.
33762
33763         * lib/flock.c: Need to include string.h.  Reported by "Tom
33764         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
33765         <ebb9@byu.net>.
33766
33767 2008-12-18  Bruno Haible  <bruno@clisp.org>
33768
33769         * m4/locale-ja.m4: New file, from GNU gettext.
33770
33771 2008-12-17  Bruno Haible  <bruno@clisp.org>
33772
33773         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
33774         Suggested by Eric Blake.
33775
33776 2008-12-17  Bruno Haible  <bruno@clisp.org>
33777
33778         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
33779
33780 2008-12-17  Bruno Haible  <bruno@clisp.org>
33781
33782         * lib/mbsinit.c: Include verify.h. Verify an assumption.
33783         * modules/mbsinit (Depends-on): Add verify.
33784         Suggested by Paul Eggert.
33785
33786 2008-12-17  Bruno Haible  <bruno@clisp.org>
33787
33788         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
33789         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
33790         gl_FUNC_MBRTOWC.
33791         * m4/mbiter.m4 (gl_MBITER): LIkewise.
33792         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
33793         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
33794         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
33795         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
33796         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
33797         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
33798         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
33799         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
33800         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
33801         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
33802         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
33803         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
33804         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
33805         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
33806         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33807         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
33808         * modules/trim (configure.ac): Likewise.
33809
33810 2008-12-17  Bruno Haible  <bruno@clisp.org>
33811
33812         * modules/btowc-tests: New file.
33813         * tests/test-btowc1.sh: New file.
33814         * tests/test-btowc2.sh: New file.
33815         * tests/test-btowc.c: New file.
33816
33817         New module 'btowc'.
33818         * lib/wchar.in.h (btowc): New declaration.
33819         * lib/btowc.c: New file.
33820         * m4/btowc.m4: New file.
33821         * modules/btowc: New file.
33822         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
33823         HAVE_BTOWC.
33824         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
33825         * doc/posix-functions/btowc.texi: Document the new module.
33826
33827 2008-12-17  Bruno Haible  <bruno@clisp.org>
33828
33829         New module 'mbsinit'.
33830         * lib/wchar.in.h (mbsinit): New declaration.
33831         * lib/mbsinit.c: New file.
33832         * m4/mbsinit.m4: New file.
33833         * modules/mbsinit: New file.
33834         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
33835         HAVE_MBSINIT.
33836         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
33837         HAVE_MBSINIT.
33838         * doc/posix-functions/mbsinit.texi: Document the new module.
33839
33840 2008-12-16  Bruno Haible  <bruno@clisp.org>
33841
33842         * lib/unistd.in.h: Add comment.
33843         * tests/test-environ.c: Don't include <stdlib.h>.
33844
33845 2008-12-16  Bruno Haible  <bruno@clisp.org>
33846
33847         * lib/parse-duration.h (parse_duration): Document return value
33848         convention.
33849         * lib/parse-duration.c: Include specification header first. Add
33850         comments.
33851         (_): Remove macro.
33852         (parse_year_month_day, parse_hour_minute_second): Move side effects
33853         outside of strchr call.
33854         (parse_non_iso8601): Move side effects outside of isspace call.
33855         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
33856         call.
33857
33858 2008-12-16  Bruno Haible  <bruno@clisp.org>
33859
33860         * tests/test-parse-duration.sh: Produce no output when the test
33861         succeeds.
33862
33863 2008-12-16  Bruno Haible  <bruno@clisp.org>
33864
33865         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
33866         expressions.
33867
33868 2008-12-15  Bruno Haible  <bruno@clisp.org>
33869
33870         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
33871         * doc/glibc-functions/flistxattr.texi: Likewise.
33872         * doc/glibc-functions/fopencookie.texi: Likewise.
33873         * doc/glibc-functions/fremovexattr.texi: Likewise.
33874         * doc/glibc-functions/fsetxattr.texi: Likewise.
33875         * doc/glibc-functions/getxattr.texi: Likewise.
33876         * doc/glibc-functions/lgetxattr.texi: Likewise.
33877         * doc/glibc-functions/listxattr.texi: Likewise.
33878         * doc/glibc-functions/llistxattr.texi: Likewise.
33879         * doc/glibc-functions/lremovexattr.texi: Likewise.
33880         * doc/glibc-functions/lsetxattr.texi: Likewise.
33881         * doc/glibc-functions/removexattr.texi: Likewise.
33882         * doc/glibc-functions/setxattr.texi: Likewise.
33883         * doc/posix-functions/open_memstream.texi: Likewise.
33884
33885 2008-12-15  Eric Blake  <ebb9@byu.net>
33886
33887         Update doc for cygwin 1.7.
33888         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
33889         functions.
33890         * doc/posix-functions/fchmodat.texi: Likewise.
33891         * doc/posix-functions/fchownat.texi: Likewise.
33892         * doc/posix-functions/fdopendir.texi: Likewise.
33893         * doc/posix-functions/fmemopen.texi: Likewise.
33894         * doc/posix-functions/freeaddrinfo.texi: Likewise.
33895         * doc/posix-functions/fstatat.texi: Likewise.
33896         * doc/posix-functions/futimens.texi: Likewise.
33897         * doc/posix-functions/gai_strerror.texi: Likewise.
33898         * doc/posix-functions/getaddrinfo.texi: Likewise.
33899         * doc/posix-functions/getnameinfo.texi: Likewise.
33900         * doc/posix-functions/if_freenameindex.texi: Likewise.
33901         * doc/posix-functions/if_indextoname.texi: Likewise.
33902         * doc/posix-functions/if_nameindex.texi: Likewise.
33903         * doc/posix-functions/if_nametoindex.texi: Likewise.
33904         * doc/posix-functions/insque.texi: Likewise.
33905         * doc/posix-functions/linkat.texi: Likewise.
33906         * doc/posix-functions/llrint.texi: Likewise.
33907         * doc/posix-functions/llrintf.texi: Likewise.
33908         * doc/posix-functions/llrintl.texi: Likewise.
33909         * doc/posix-functions/lockf.texi: Likewise.
33910         * doc/posix-functions/lrintl.texi: Likewise.
33911         * doc/posix-functions/mkdirat.texi: Likewise.
33912         * doc/posix-functions/mkfifoat.texi: Likewise.
33913         * doc/posix-functions/mknodat.texi: Likewise.
33914         * doc/posix-functions/mq_close.texi: Likewise.
33915         * doc/posix-functions/mq_getattr.texi: Likewise.
33916         * doc/posix-functions/mq_notify.texi: Likewise.
33917         * doc/posix-functions/mq_open.texi: Likewise.
33918         * doc/posix-functions/mq_receive.texi: Likewise.
33919         * doc/posix-functions/mq_send.texi: Likewise.
33920         * doc/posix-functions/mq_setattr.texi: Likewise.
33921         * doc/posix-functions/mq_timedreceive.texi: Likewise.
33922         * doc/posix-functions/mq_timedsend.texi: Likewise.
33923         * doc/posix-functions/mq_unlink.texi: Likewise.
33924         * doc/posix-functions/open_memstream.texi: Likewise.
33925         * doc/posix-functions/openat.texi: Likewise.
33926         * doc/posix-functions/posix_fadvise.texi: Likewise.
33927         * doc/posix-functions/posix_fallocate.texi: Likewise.
33928         * doc/posix-functions/posix_madvise.texi: Likewise.
33929         * doc/posix-functions/posix_memalign.texi: Likewise.
33930         * doc/posix-functions/posix_openpt.texi: Likewise.
33931         * doc/posix-functions/readlinkat.texi: Likewise.
33932         * doc/posix-functions/remque.texi: Likewise.
33933         * doc/posix-functions/renameat.texi: Likewise.
33934         * doc/posix-functions/rintl.texi: Likewise.
33935         * doc/posix-functions/sem_unlink.texi: Likewise.
33936         * doc/posix-functions/shm_open.texi: Likewise.
33937         * doc/posix-functions/shm_unlink.texi: Likewise.
33938         * doc/posix-functions/signgam.texi: Likewise.
33939         * doc/posix-functions/sigset.texi: Likewise.
33940         * doc/posix-functions/stpcpy.texi: Likewise.
33941         * doc/posix-functions/stpncpy.texi: Likewise.
33942         * doc/posix-functions/strerror.texi: Likewise.
33943         * doc/posix-functions/strtod.texi: Likewise.
33944         * doc/posix-functions/symlinkat.texi: Likewise.
33945         * doc/posix-functions/unlinkat.texi: Likewise.
33946         * doc/posix-functions/utimensat.texi: Likewise.
33947         * doc/glibc-functions/bindresvport.texi: Likewise.
33948         * doc/glibc-functions/dn_expand.texi: Likewise.
33949         * doc/glibc-functions/exp10.texi: Likewise.
33950         * doc/glibc-functions/exp10f.texi: Likewise.
33951         * doc/glibc-functions/fgetxattr.texi: Likewise.
33952         * doc/glibc-functions/flistxattr.texi: Likewise.
33953         * doc/glibc-functions/fopencookie.texi: Likewise.
33954         * doc/glibc-functions/freeifaddrs.texi: Likewise.
33955         * doc/glibc-functions/fremovexattr.texi: Likewise.
33956         * doc/glibc-functions/fsetxattr.texi: Likewise.
33957         * doc/glibc-functions/getifaddrs.texi: Likewise.
33958         * doc/glibc-functions/getxattr.texi: Likewise.
33959         * doc/glibc-functions/lgetxattr.texi: Likewise.
33960         * doc/glibc-functions/listxattr.texi: Likewise.
33961         * doc/glibc-functions/llistxattr.texi: Likewise.
33962         * doc/glibc-functions/lremovexattr.texi: Likewise.
33963         * doc/glibc-functions/lsetxattr.texi: Likewise.
33964         * doc/glibc-functions/pow10.texi: Likewise.
33965         * doc/glibc-functions/pow10f.texi: Likewise.
33966         * doc/glibc-functions/rcmd_af.texi: Likewise.
33967         * doc/glibc-functions/removexattr.texi: Likewise.
33968         * doc/glibc-functions/res_init.texi: Likewise.
33969         * doc/glibc-functions/res_mkquery.texi: Likewise.
33970         * doc/glibc-functions/res_query.texi: Likewise.
33971         * doc/glibc-functions/res_querydomain.texi: Likewise.
33972         * doc/glibc-functions/res_send.texi: Likewise.
33973         * doc/glibc-functions/rresvport_af.texi: Likewise.
33974         * doc/glibc-functions/setxattr.texi: Likewise.
33975         * doc/glibc-functions/strcasestr.texi: Likewise.
33976
33977 2008-12-15  Bruno Haible  <bruno@clisp.org>
33978
33979         Fix compilation error on OSF/1 4.0.
33980         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
33981         <sys/time.h>, simply delegate to the system header.
33982         Reported by Daniel Richard G. <oss@teragram.com>.
33983
33984 2008-12-15  Bruno Haible  <bruno@clisp.org>
33985
33986         * doc/posix-functions/openat.texi: Mention the 'openat' module.
33987         * doc/posix-functions/fchmodat.texi: Likewise.
33988         * doc/posix-functions/fchownat.texi: Likewise.
33989         * doc/posix-functions/fdopendir.texi: Likewise.
33990         * doc/posix-functions/fstatat.texi: Likewise.
33991         * doc/posix-functions/mkdirat.texi: Likewise.
33992         * doc/posix-functions/unlinkat.texi: Likewise.
33993
33994 2008-12-14  Bruno Haible  <bruno@clisp.org>
33995
33996         Update doc for POSIX:2008.
33997         * doc/posix-functions/faccessat.texi: New file.
33998         * doc/posix-functions/fchmodat.texi: New file.
33999         * doc/posix-functions/fchownat.texi: New file.
34000         * doc/posix-functions/fdopendir.texi: New file.
34001         * doc/posix-functions/fstatat.texi: New file.
34002         * doc/posix-functions/futimens.texi: New file.
34003         * doc/posix-functions/linkat.texi: New file.
34004         * doc/posix-functions/mkdirat.texi: New file.
34005         * doc/posix-functions/mkfifoat.texi: New file.
34006         * doc/posix-functions/mknodat.texi: New file.
34007         * doc/posix-functions/open_wmemstream.texi: New file.
34008         * doc/posix-functions/openat.texi: New file.
34009         * doc/posix-functions/psiginfo.texi: New file.
34010         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
34011         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
34012         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
34013         * doc/posix-functions/readlinkat.texi: New file.
34014         * doc/posix-functions/renameat.texi: New file.
34015         * doc/posix-functions/strerror_l.texi: New file.
34016         * doc/posix-functions/symlinkat.texi: New file.
34017         * doc/posix-functions/unlinkat.texi: New file.
34018         * doc/posix-functions/utimensat.texi: New file.
34019         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34020
34021 2008-12-14  Bruno Haible  <bruno@clisp.org>
34022
34023         Update doc for POSIX:2008.
34024         * doc/posix-functions/alphasort.texi: Renamed from
34025         doc/glibc-functions/alphasort.texi.
34026         * doc/posix-functions/dirfd.texi: Renamed from
34027         doc/glibc-functions/dirfd.texi.
34028         * doc/posix-functions/dprintf.texi: Renamed from
34029         doc/glibc-functions/dprintf.texi.
34030         * doc/posix-functions/duplocale.texi: Renamed from
34031         doc/glibc-functions/duplocale.texi.
34032         * doc/posix-functions/fexecve.texi: Renamed from
34033         doc/glibc-functions/fexecve.texi.
34034         * doc/posix-functions/fmemopen.texi: Renamed from
34035         doc/glibc-functions/fmemopen.texi.
34036         * doc/posix-functions/freelocale.texi: Renamed from
34037         doc/glibc-functions/freelocale.texi.
34038         * doc/posix-functions/getdate_err.texi: Renamed from
34039         doc/glibc-functions/getdate_err.texi.
34040         * doc/posix-functions/isalnum_l.texi: Renamed from
34041         doc/glibc-functions/isalnum_l.texi.
34042         * doc/posix-functions/isalpha_l.texi: Renamed from
34043         doc/glibc-functions/isalpha_l.texi.
34044         * doc/posix-functions/isblank_l.texi: Renamed from
34045         doc/glibc-functions/isblank_l.texi.
34046         * doc/posix-functions/iscntrl_l.texi: Renamed from
34047         doc/glibc-functions/iscntrl_l.texi.
34048         * doc/posix-functions/isdigit_l.texi: Renamed from
34049         doc/glibc-functions/isdigit_l.texi.
34050         * doc/posix-functions/isgraph_l.texi: Renamed from
34051         doc/glibc-functions/isgraph_l.texi.
34052         * doc/posix-functions/islower_l.texi: Renamed from
34053         doc/glibc-functions/islower_l.texi.
34054         * doc/posix-functions/isprint_l.texi: Renamed from
34055         doc/glibc-functions/isprint_l.texi.
34056         * doc/posix-functions/ispunct_l.texi: Renamed from
34057         doc/glibc-functions/ispunct_l.texi.
34058         * doc/posix-functions/isspace_l.texi: Renamed from
34059         doc/glibc-functions/isspace_l.texi.
34060         * doc/posix-functions/isupper_l.texi: Renamed from
34061         doc/glibc-functions/isupper_l.texi.
34062         * doc/posix-functions/iswalnum_l.texi: Renamed from
34063         doc/glibc-functions/iswalnum_l.texi.
34064         * doc/posix-functions/iswalpha_l.texi: Renamed from
34065         doc/glibc-functions/iswalpha_l.texi.
34066         * doc/posix-functions/iswblank_l.texi: Renamed from
34067         doc/glibc-functions/iswblank_l.texi.
34068         * doc/posix-functions/iswcntrl_l.texi: Renamed from
34069         doc/glibc-functions/iswcntrl_l.texi.
34070         * doc/posix-functions/iswctype_l.texi: Renamed from
34071         doc/glibc-functions/iswctype_l.texi.
34072         * doc/posix-functions/iswdigit_l.texi: Renamed from
34073         doc/glibc-functions/iswdigit_l.texi.
34074         * doc/posix-functions/iswgraph_l.texi: Renamed from
34075         doc/glibc-functions/iswgraph_l.texi.
34076         * doc/posix-functions/iswlower_l.texi: Renamed from
34077         doc/glibc-functions/iswlower_l.texi.
34078         * doc/posix-functions/iswprint_l.texi: Renamed from
34079         doc/glibc-functions/iswprint_l.texi.
34080         * doc/posix-functions/iswpunct_l.texi: Renamed from
34081         doc/glibc-functions/iswpunct_l.texi.
34082         * doc/posix-functions/iswspace_l.texi: Renamed from
34083         doc/glibc-functions/iswspace_l.texi.
34084         * doc/posix-functions/iswupper_l.texi: Renamed from
34085         doc/glibc-functions/iswupper_l.texi.
34086         * doc/posix-functions/iswxdigit_l.texi: Renamed from
34087         doc/glibc-functions/iswxdigit_l.texi.
34088         * doc/posix-functions/isxdigit_l.texi: Renamed from
34089         doc/glibc-functions/isxdigit_l.texi.
34090         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
34091         doc/glibc-functions/mbsnrtowcs.texi.
34092         * doc/posix-functions/mkdtemp.texi: Renamed from
34093         doc/glibc-functions/mkdtemp.texi.
34094         * doc/posix-functions/newlocale.texi: Renamed from
34095         doc/glibc-functions/newlocale.texi.
34096         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
34097         doc/glibc-functions/nl_langinfo_l.texi.
34098         * doc/posix-functions/open_memstream.texi: Renamed from
34099         doc/glibc-functions/open_memstream.texi.
34100         * doc/posix-functions/opterr.texi: Renamed from
34101         doc/glibc-functions/opterr.texi.
34102         * doc/posix-functions/optind.texi: Renamed from
34103         doc/glibc-functions/optind.texi.
34104         * doc/posix-functions/optopt.texi: Renamed from
34105         doc/glibc-functions/optopt.texi.
34106         * doc/posix-functions/psignal.texi: Renamed from
34107         doc/glibc-functions/psignal.texi.
34108         * doc/posix-functions/scandir.texi: Renamed from
34109         doc/glibc-functions/scandir.texi.
34110         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
34111         doc/glibc-functions/sched_get_priority_min.texi.
34112         * doc/posix-functions/signgam.texi: Renamed from
34113         doc/glibc-functions/signgam.texi.
34114         * doc/posix-functions/stpcpy.texi: Renamed from
34115         doc/glibc-functions/stpcpy.texi.
34116         * doc/posix-functions/stpncpy.texi: Renamed from
34117         doc/glibc-functions/stpncpy.texi.
34118         * doc/posix-functions/strcasecmp_l.texi: Renamed from
34119         doc/glibc-functions/strcasecmp_l.texi.
34120         * doc/posix-functions/strcoll_l.texi: Renamed from
34121         doc/glibc-functions/strcoll_l.texi.
34122         * doc/posix-functions/strfmon_l.texi: Renamed from
34123         doc/glibc-functions/strfmon_l.texi.
34124         * doc/posix-functions/strftime_l.texi: Renamed from
34125         doc/glibc-functions/strftime_l.texi.
34126         * doc/posix-functions/strncasecmp_l.texi: Renamed from
34127         doc/glibc-functions/strncasecmp_l.texi.
34128         * doc/posix-functions/strndup.texi: Renamed from
34129         doc/glibc-functions/strndup.texi.
34130         * doc/posix-functions/strnlen.texi: Renamed from
34131         doc/glibc-functions/strnlen.texi.
34132         * doc/posix-functions/strsignal.texi: Renamed from
34133         doc/glibc-functions/strsignal.texi.
34134         * doc/posix-functions/strxfrm_l.texi: Renamed from
34135         doc/glibc-functions/strxfrm_l.texi.
34136         * doc/posix-functions/timer_gettime.texi: Renamed from
34137         doc/glibc-functions/timer_gettime.texi.
34138         * doc/posix-functions/tolower_l.texi: Renamed from
34139         doc/glibc-functions/tolower_l.texi.
34140         * doc/posix-functions/toupper_l.texi: Renamed from
34141         doc/glibc-functions/toupper_l.texi.
34142         * doc/posix-functions/towctrans_l.texi: Renamed from
34143         doc/glibc-functions/towctrans_l.texi.
34144         * doc/posix-functions/towlower_l.texi: Renamed from
34145         doc/glibc-functions/towlower_l.texi.
34146         * doc/posix-functions/towupper_l.texi: Renamed from
34147         doc/glibc-functions/towupper_l.texi.
34148         * doc/posix-functions/uselocale.texi: Renamed from
34149         doc/glibc-functions/uselocale.texi.
34150         * doc/posix-functions/vdprintf.texi: Renamed from
34151         doc/glibc-functions/vdprintf.texi.
34152         * doc/posix-functions/wcpcpy.texi:
34153         Renamed from doc/glibc-functions/wcpcpy.texi.
34154         * doc/posix-functions/wcpncpy.texi: Renamed from
34155         doc/glibc-functions/wcpncpy.texi.
34156         * doc/posix-functions/wcscasecmp.texi: Renamed from
34157         doc/glibc-functions/wcscasecmp.texi.
34158         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
34159         doc/glibc-functions/wcscasecmp_l.texi.
34160         * doc/posix-functions/wcscoll_l.texi: Renamed from
34161         doc/glibc-functions/wcscoll_l.texi.
34162         * doc/posix-functions/wcsdup.texi: Renamed from
34163         doc/glibc-functions/wcsdup.texi.
34164         * doc/posix-functions/wcsncasecmp.texi: Renamed from
34165         doc/glibc-functions/wcsncasecmp.texi.
34166         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
34167         doc/glibc-functions/wcsncasecmp_l.texi.
34168         * doc/posix-functions/wcsnlen.texi: Renamed from
34169         doc/glibc-functions/wcsnlen.texi.
34170         * doc/posix-functions/wcsnrtombs.texi: Renamed from
34171         doc/glibc-functions/wcsnrtombs.texi.
34172         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
34173         doc/glibc-functions/wcsxfrm_l.texi.
34174         * doc/posix-functions/wctrans_l.texi: Renamed from
34175         doc/glibc-functions/wctrans_l.texi.
34176         * doc/posix-functions/wctype_l.texi: Renamed from
34177         doc/glibc-functions/wctype_l.texi.
34178         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34179         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
34180         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
34181         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
34182         these subsections.
34183         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
34184         Remove sections.
34185
34186 2008-12-14  Bruno Haible  <bruno@clisp.org>
34187
34188         Update doc for POSIX:2008.
34189         * doc/posix-functions/*.texi: Update URL of POSIX specification.
34190
34191 2008-12-14  Bruno Haible  <bruno@clisp.org>
34192
34193         Update doc for POSIX:2008.
34194         * doc/pastposix-functions/bcmp.texi: Renamed from
34195         doc/posix-functions/bcmp.texi.
34196         * doc/pastposix-functions/bcopy.texi: Renamed from
34197         doc/posix-functions/bcopy.texi.
34198         * doc/pastposix-functions/bsd_signal.texi: Renamed from
34199         doc/posix-functions/bsd_signal.texi.
34200         * doc/pastposix-functions/bzero.texi: Renamed from
34201         doc/posix-functions/bzero.texi.
34202         * doc/pastposix-functions/ecvt.texi: Renamed from
34203         doc/posix-functions/ecvt.texi.
34204         * doc/pastposix-functions/fcvt.texi: Renamed from
34205         doc/posix-functions/fcvt.texi.
34206         * doc/pastposix-functions/ftime.texi: Renamed from
34207         doc/posix-functions/ftime.texi.
34208         * doc/pastposix-functions/gcvt.texi: Renamed from
34209         doc/posix-functions/gcvt.texi.
34210         * doc/pastposix-functions/getcontext.texi: Renamed from
34211         doc/posix-functions/getcontext.texi.
34212         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
34213         doc/posix-functions/gethostbyaddr.texi.
34214         * doc/pastposix-functions/gethostbyname.texi: Renamed from
34215         doc/posix-functions/gethostbyname.texi.
34216         * doc/pastposix-functions/getwd.texi: Renamed from
34217         doc/posix-functions/getwd.texi.
34218         * doc/pastposix-functions/h_errno.texi: Renamed from
34219         doc/posix-functions/h_errno.texi.
34220         * doc/pastposix-functions/index.texi: Renamed from
34221         doc/posix-functions/index.texi.
34222         * doc/pastposix-functions/makecontext.texi: Renamed from
34223         doc/posix-functions/makecontext.texi.
34224         * doc/pastposix-functions/mktemp.texi: Renamed from
34225         doc/posix-functions/mktemp.texi.
34226         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
34227         doc/posix-functions/pthread_attr_getstackaddr.texi.
34228         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
34229         doc/posix-functions/pthread_attr_setstackaddr.texi.
34230         * doc/pastposix-functions/rindex.texi: Renamed from
34231         doc/posix-functions/rindex.texi.
34232         * doc/pastposix-functions/scalb.texi: Renamed from
34233         doc/posix-functions/scalb.texi.
34234         * doc/pastposix-functions/setcontext.texi: Renamed from
34235         doc/posix-functions/setcontext.texi.
34236         * doc/pastposix-functions/swapcontext.texi: Renamed from
34237         doc/posix-functions/swapcontext.texi.
34238         * doc/pastposix-functions/ualarm.texi: Renamed from
34239         doc/posix-functions/ualarm.texi.
34240         * doc/pastposix-functions/usleep.texi: Renamed from
34241         doc/posix-functions/usleep.texi.
34242         * doc/pastposix-functions/vfork.texi: Renamed from
34243         doc/posix-functions/vfork.texi.
34244         * doc/pastposix-functions/wcswcs.texi: Renamed from
34245         doc/posix-functions/wcswcs.texi.
34246         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
34247         (Function Substitutes): Update.
34248
34249 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34250
34251         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
34252         m4/strerror.m4.
34253
34254 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34255             Bruno Haible  <bruno@clisp.org>
34256
34257         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
34258
34259 2008-12-13  Bruno Haible  <bruno@clisp.org>
34260
34261         * modules/strtoull (Depends-on): Remove unistd.
34262
34263 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34264
34265         * modules/strtoull (Depends-on): Add stdlib.
34266
34267 2008-12-11  Simon Josefsson  <simon@josefsson.org>
34268
34269         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
34270
34271 2008-12-10  Jim Meyering  <meyering@redhat.com>
34272
34273         gl_ASSERT: don't say assertions are disabled when they're not
34274         * m4/assert.m4 (gl_ASSERT): Do not make configure report
34275         "checking whether to enable assertions... no", when they are in
34276         fact enabled.  This is solely a bug in the output of configure.
34277         In spite of saying "no", NDEBUG was not defined in that case.
34278         Also, as noted by Eric Blake, leave assertions enabled upon
34279         --enable-assert=INVALID.
34280
34281 2008-12-10  Bruno Haible  <bruno@clisp.org>
34282
34283         Change MODULES.html to refer to POSIX:2008 where possible.
34284         * MODULES.html.sh (POSIX2008_URL): New variable.
34285         (posix_headers): Remove sys/timeb, ucontext.
34286         (posix2001_headers): New variable.
34287         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
34288         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
34289         index, makecontext, mktemp, pthread_attr_getstackaddr,
34290         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
34291         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
34292         (posix2001_functions): New variable.
34293         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
34294         otherwise.
34295
34296 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34297
34298         add missing include to parse-duration.c
34299         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
34300         * modules/parse-duration (Depends-on): Add xalloc.
34301
34302         fix sed script reading maint.mk
34303         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
34304         (syntax-check-rules): Use it.
34305
34306 2008-12-09  Bruno Haible  <bruno@clisp.org>
34307
34308         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
34309         MacOS X 10.4/PowerPC.
34310         Reported by Simon Josefsson.
34311
34312 2008-12-08  Jim Meyering  <meyering@redhat.com>
34313
34314         work around mingw's lack of some S_IF definitions
34315         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
34316         Reported by Simon Josefsson.
34317
34318 2008-12-08  Bruno Haible  <bruno@clisp.org>
34319
34320         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
34321         applied to variables. Needed on MacOS X 10.4/PowerPC.
34322         Reported by Simon Josefsson.
34323
34324 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
34325         and Eric Blake  <ebb9@byu.net>
34326
34327         assert: honor --enable-assert
34328         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
34329         order to honor --enable-assert, rather than treating it as a
34330         synonym for --disable-assert.
34331
34332 2008-12-08  Jim Meyering  <meyering@redhat.com>
34333
34334         * lib/posixtm.c: Remove now-useless declaration of mktime.
34335
34336         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
34337
34338 2008-12-07  Bruno Haible  <bruno@clisp.org>
34339
34340         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
34341         test_once): Mark functions as static.
34342         * tests/test-tls.c (test_tls): Likewise.
34343
34344 2008-12-07  Bruno Haible  <bruno@clisp.org>
34345
34346         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
34347         iconv_register_autodetect.
34348
34349 2008-12-07  Jim Meyering  <meyering@redhat.com>
34350
34351         posixtm.c: avoid a warning
34352         * lib/posixtm.c (posixtime): Don't initialize tm0.
34353         It's no longer needed to placate gcc4's -Wuninitialized,
34354         and the attempt to placate would elicit a new warning.
34355
34356         unicodeio.c: mark unused parameters
34357         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34358         (fallback_failure_callback): Likewise.
34359
34360 2008-12-07  Bruno Haible  <bruno@clisp.org>
34361
34362         * gnulib-tool (func_create_testdir): When building the tests
34363         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
34364         Reported by Simon Josefsson.
34365
34366 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34367
34368         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
34369
34370 2008-12-06  Bruno Haible  <bruno@clisp.org>
34371
34372         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
34373         Suggested by Eric Blake.
34374
34375 2008-12-06  Bruno Haible  <bruno@clisp.org>
34376
34377         Fix a c-stack test failure on MacOS X.
34378         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
34379         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
34380         handler for SIGBUS as well.
34381         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
34382         install a signal handler for SIGBUS as well.
34383         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
34384
34385 2008-12-06  Bruno Haible  <bruno@clisp.org>
34386
34387         Advocacy documentation.
34388         * doc/gnulib-intro.texi (Benefits): New section.
34389         * doc/gnulib.texi: Update.
34390
34391 2008-12-06  Bruno Haible  <bruno@clisp.org>
34392
34393         Document the 'manywarnings' module.
34394         * doc/manywarnings.texi: New file.
34395         * doc/gnulib.texi: Include it.
34396
34397 2008-12-05  Eric Blake  <ebb9@byu.net>
34398
34399         tests: silence some gcc warnings
34400         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
34401         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
34402         type mismatches.
34403
34404 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34405             Bruno Haible  <bruno@clisp.org>
34406
34407         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
34408
34409 2008-11-29  Jim Meyering  <meyering@redhat.com>
34410
34411         unicodeio.c: mark unused parameters
34412         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34413         (fallback_failure_callback): Likewise.
34414
34415         fts: fix a thinko
34416         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
34417         (set_stat_type): Return S_IF*-valued "type" directly.
34418         Prompted by James Youngman's spotting a related bug.
34419         Confirmed by further testing through find.
34420
34421         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
34422         * lib/fts.c (D_TYPE): Define.
34423         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
34424         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
34425         (s_ifmt_shift_bits): New function.
34426         (set_stat_type): New function.
34427         (fts_build): When not calling fts_stat, call set_stat_type
34428         to propagate dirent.d_type info to fts_read caller.
34429         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
34430         fts_statp->st_mode type information may be valid.
34431
34432 2008-11-28  Simon Josefsson  <simon@josefsson.org>
34433
34434         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
34435         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
34436         <sds@gnu.org>.
34437
34438 2008-11-20  Bruno Haible  <bruno@clisp.org>
34439
34440         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
34441         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
34442         INCLUDE_NEXT.
34443         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
34444         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
34445         * modules/math (Makefile.am): Substitute
34446         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
34447         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34448
34449 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34450             Bruno Haible  <bruno@clisp.org>
34451
34452         * lib/stdint.in.h: Define all type macros so that their expansion is
34453         a single typedef'ed token. Fixes a compilation failure in Boost which
34454         does "using ::int8_t;".
34455
34456 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34457
34458         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
34459         gl_MANYWARN_ALL_GCC.
34460         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
34461         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
34462         * modules/manywarnings: New file.
34463         * MODULES.html.sh: Mention manywarnings module.
34464
34465 2008-11-18  Bruno Haible  <bruno@clisp.org>
34466
34467         * doc/gnulib-tool.texi (Unit tests): New section.
34468
34469 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34470
34471         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
34472         paths like 'lib/po/foo.po'.
34473
34474 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34475
34476         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
34477         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
34478
34479 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34480
34481         * m4/warnings.m4: Use CPPFLAGS to really check whether the
34482         parameter works.
34483
34484 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34485
34486         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
34487
34488 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34489
34490         * modules/parse-duration-tests: New file.
34491         * tests/test-parse-duration.sh: New file.
34492         * tests/test-parse-duration.c: New file.
34493
34494         New module 'parse-duration'.
34495         * lib/parse-duration.h: New file.
34496         * lib/parse-duration.c: New file.
34497         * modules/parse-duration: New file.
34498
34499 2008-11-17  Bruno Haible  <bruno@clisp.org>
34500
34501         * tests/test-select-out.sh: Comment out the first pipe test.
34502         Reported by Simon Josefsson.
34503
34504 2008-11-17  Bruno Haible  <bruno@clisp.org>
34505
34506         * modules/getaddrinfo (Depends-on): Add servent, hostent.
34507         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
34508         gl_HOSTENT.
34509
34510 2008-11-17  Bruno Haible  <bruno@clisp.org>
34511
34512         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
34513         -lnetwork and -lnet. Needed for Haiku and BeOS.
34514
34515 2008-11-16  Bruno Haible  <bruno@clisp.org>
34516
34517         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
34518
34519 2008-11-16  Bruno Haible  <bruno@clisp.org>
34520
34521         Avoid test failure on Haiku.
34522         * tests/test-fsync.c: Include <errno.h>.
34523         (main): Don't require that fsync (0) fails.
34524
34525 2008-11-15  Bruno Haible  <bruno@clisp.org>
34526
34527         New module 'hostent'.
34528         * modules/hostent: New file.
34529         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
34530
34531 2008-11-15  Bruno Haible  <bruno@clisp.org>
34532
34533         New module 'servent'.
34534         * modules/servent: New file.
34535         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
34536
34537 2008-11-15  Bruno Haible  <bruno@clisp.org>
34538
34539         Avoid generating same test program with two different rules.
34540         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
34541         test-frexp to test-frexp-nolibm.
34542         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
34543         test-frexpl to test-frexpl-nolibm.
34544
34545 2008-11-15  Bruno Haible  <bruno@clisp.org>
34546
34547         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
34548         $(FREXPL_LIBM).
34549
34550 2008-11-15  Bruno Haible  <bruno@clisp.org>
34551
34552         * lib/netdb.in.h: Activate the definitions also when the system's
34553         <netdb.h> has 'struct addrinfo'.
34554         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
34555         EAI_OVERFLOW or AI_NUMERICSERV.
34556         * doc/posix-headers/netdb.texi: Document the problem.
34557
34558 2008-11-15  Bruno Haible  <bruno@clisp.org>
34559
34560         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
34561
34562         Make the 'sched' module work on platforms where <sched.h> exists but
34563         is incomplete (such as Haiku).
34564         * lib/sched.in.h; Include the system's <sched.h> if it exists.
34565         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
34566         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
34567         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
34568         HAVE_STRUCT_SCHED_PARAM.
34569         * modules/sched (Depends-on): Add include_next.
34570         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
34571         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
34572         * doc/posix-headers/sched.texi: Document the issue.
34573
34574 2008-11-13  Jim Meyering  <meyering@redhat.com>
34575
34576         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
34577         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
34578         test would fail due to the difference in the Report bugs to ...
34579         line.  The expected address is empty, "<>", while the actual
34580         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
34581
34582 2008-11-12  Bruno Haible  <bruno@clisp.org>
34583
34584         lstat: don't compile lstat.c on systems lacking lstat
34585         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
34586         which don't have lstat; this is handled by lib/sys_stat.in.h already.
34587         Reported by Daniel P. Berrange via Jim Meyering.
34588
34589 2008-11-12  Jim Meyering  <meyering@redhat.com>
34590
34591         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
34592
34593 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34594
34595         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
34596         instead.
34597
34598 2008-11-12  Bruno Haible  <bruno@clisp.org>
34599
34600         * lib/unicodeio.c: Include unistr.h.
34601         (utf8_wctomb): Remove function.
34602         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
34603
34604 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34605
34606         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
34607         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
34608         <bruno@clisp.org>.
34609         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
34610
34611 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34612
34613         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
34614         * doc/gnulib.texi: Add section for warnings.
34615
34616 2008-11-11  Bruno Haible  <bruno@clisp.org>
34617
34618         * lib/sockets.h: Add a comment.
34619
34620 2008-11-11  Karl Berry  <karl@gnu.org>
34621
34622         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
34623
34624 2008-11-11  Eric Blake  <ebb9@byu.net>
34625
34626         fdl.texi: avoid git symlinks
34627         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
34628
34629 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34630
34631         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
34632
34633 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34634
34635         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
34636         (gl_WARN_ADD): Substitute $2 if literal.
34637
34638 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34639
34640         * m4/warning.m4: Remove.
34641
34642 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34643
34644         * m4/warnings.m4: Almost complete rewrite. :-)
34645
34646 2008-11-10  Simon Josefsson  <simon@josefsson.org>
34647
34648         * modules/warnings: New module.
34649         * m4/warnings.m4: New file.
34650         * MODULES.html.sh: Mention warnings module.
34651         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
34652         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34653
34654 2008-11-10  Eric Blake  <ebb9@byu.net>
34655
34656         fdl.texi: make a symlink to the latest version
34657         * doc/standards.texi: Revert today's earlier change.
34658         * doc/fdl-1.2.texi: Rename from old fdl.texi...
34659         * doc/fdl.texi: ...and replace this with a symlink to the newer
34660         fdl-1.3.texi.
34661
34662 2008-11-10  Bruno Haible  <bruno@clisp.org>
34663
34664         * tests/test-select-fd.c (main): Accept the result file name as fourth
34665         argument.
34666         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
34667         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
34668
34669 2008-11-10  Bruno Haible  <bruno@clisp.org>
34670
34671         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
34672         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
34673         as autoconf-substituted macros.
34674         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
34675         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
34676         gl_NETDB_H_DEFAULTS. Set these variables.
34677         * modules/netdb (Makefile.am): Substitute these variables.
34678
34679 2008-11-10  Eric Blake  <ebb9@byu.net>
34680
34681         standards.texi: include correct file for FDL 1.3
34682         * doc/standards.texi (GNU Free Documentation License): Change
34683         include file to pull in FDL 1.3, not 1.2.
34684
34685         fdl.texi: revert accidental change to license
34686         * doc/fdl.texi: This is FDL 1.2, not 1.3.
34687
34688 2008-11-10  Bruno Haible  <bruno@clisp.org>
34689
34690         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
34691         cross-compiling guesses also when the native compile gives no result.
34692
34693 2008-11-10  Bruno Haible  <bruno@clisp.org>
34694
34695         * lib/spawni.c (__spawni): Force variable into the stack.
34696
34697 2008-11-10  Bruno Haible  <bruno@clisp.org>
34698
34699         Add support for Haiku.
34700         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
34701         glibc and BeOS, but also on Haiku.
34702         * lib/fpurge.c (fpurge): Likewise.
34703         * lib/freadable.c (freadable): Likewise.
34704         * lib/freadahead.c (freadahead): Likewise.
34705         * lib/freading.c (freading): Likewise.
34706         * lib/freadptr.c (freadptr): Likewise.
34707         * lib/freadseek.c (freadptrinc): Likewise.
34708         * lib/fseeko.c (rpl_fseeko): Likewise.
34709         * lib/fseterr.c (fseterr): Likewise.
34710         * lib/fwritable.c (fwritable): Likewise.
34711         * lib/fwriting.c (fwriting): Likewise.
34712         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
34713
34714 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34715
34716         * lib/config.charset: Treat Haiku like BeOS.
34717
34718 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34719
34720         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
34721         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
34722
34723 2008-11-08  Bruno Haible  <bruno@clisp.org>
34724
34725         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
34726         AC_CACHE_CHECK.
34727
34728 2008-11-08  Bruno Haible  <bruno@clisp.org>
34729
34730         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
34731
34732 2008-11-08  Bruno Haible  <bruno@clisp.org>
34733
34734         * tests/test-select-fd.c: New file.
34735         * tests/test-select-in.sh: New file.
34736         * tests/test-select-out.sh: New file.
34737         * tests/test-select-stdin.c: New file.
34738         * modules/select-tests (Files): Add the new files.
34739         (Depends-on): Add gettimeofday.
34740         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
34741         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
34742         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
34743
34744 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
34745             Bruno Haible  <bruno@clisp.org>
34746
34747         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
34748
34749 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
34750
34751         * build-aux/pmccabe2html: Added support for C++ source files.
34752
34753 2008-11-05  Ben Pfaff  <blp@gnu.org>
34754
34755         Fix lib/close.c build on Windows.
34756         * modules/close (Files): Add lib/w32sock.h.
34757
34758 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
34759
34760         Accept Bison's NEWS format.
34761         * build-aux/announce-gen (print_news_deltas): Tweak
34762         $re_prefix.
34763
34764 2008-11-04  Bruno Haible  <bruno@clisp.org>
34765
34766         * modules/random_r (Maintainer): Add glibc.
34767
34768 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34769
34770         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
34771         by karl@freefriends.org (Karl Berry).
34772         * doc/alloca.texi: Likewise.
34773         * doc/c-ctype.texi: Likewise.
34774         * doc/c-strcase.texi: Likewise.
34775         * doc/c-strcaseeq.texi: Likewise.
34776         * doc/c-strcasestr.texi: Likewise.
34777         * doc/c-strstr.texi: Likewise.
34778         * doc/c-strtod.texi: Likewise.
34779         * doc/c-strtold.texi: Likewise.
34780         * doc/ctime.texi: Likewise.
34781         * doc/error.texi: Likewise.
34782         * doc/fdl.texi: Likewise.
34783         * doc/gcd.texi: Likewise.
34784         * doc/getdate.texi: Likewise.
34785         * doc/gnulib-intro.texi: Likewise.
34786         * doc/gnulib-tool.texi: Likewise.
34787         * doc/gnulib.texi: Likewise.
34788         * doc/inet_ntoa.texi: Likewise.
34789         * doc/maintain.texi: Likewise.
34790         * doc/make-stds.texi: Likewise.
34791         * doc/quote.texi: Likewise.
34792         * doc/regexprops-generic.texi: Likewise.
34793         * doc/standards.texi: Likewise.
34794         * doc/verify.texi: Likewise.
34795         * doc/visibility.texi: Likewise.
34796         * doc/gnulib.texi (GNU Free Documentation License): Include
34797         fdl-1.3.texi instead of fdl.texi.
34798
34799 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34800
34801         * doc/fdl-1.3.texi: New file, from
34802         <http://www.gnu.org/licenses/fdl-1.3.texi>.
34803         * modules/fdl-1.3: Add.
34804         * MODULES.html.sh: Add fdl-1.3.
34805
34806 2008-11-03  Bruno Haible  <bruno@clisp.org>
34807
34808         Make determination of absolute name of header file work with AIX xlc.
34809         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
34810         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
34811         preprocessing.
34812         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34813         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
34814
34815 2008-11-03  Simon Josefsson  <simon@josefsson.org>
34816
34817         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
34818         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
34819         <ludo@gnu.org>.
34820
34821 2008-11-02  Bruno Haible  <bruno@clisp.org>
34822
34823         Mark 'strpbrk' obsolete.
34824         * modules/strpbrk (Status, Notice): New sections.
34825         * modules/strtok_r (Depends-on): Add strpbrk.
34826
34827 2008-11-02  Bruno Haible  <bruno@clisp.org>
34828
34829         Mark 'strdup' obsolete.
34830         * modules/strdup (Status, Notice): New sections.
34831         * modules/findprog (Depends-on): Add strdup.
34832         * modules/getaddrinfo (Depends-on): Likewise.
34833         * modules/localename (Depends-on): Likewise.
34834         * modules/relocatable-lib (Depends-on): Likewise.
34835         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
34836         * modules/relocatable-prog (Depends-on): Likewise.
34837         * modules/trim (Depends-on): Likewise.
34838         * modules/unictype/gen-ctype (Depends-on): Likewise.
34839         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34840
34841 2008-11-02  Bruno Haible  <bruno@clisp.org>
34842
34843         Mark 'strcspn' obsolete.
34844         * modules/strcspn (Status, Notice): New sections.
34845
34846 2008-11-02  Bruno Haible  <bruno@clisp.org>
34847
34848         Mark 'rmdir' obsolete.
34849         * modules/rmdir (Status, Notice): New sections.
34850         * modules/clean-temp (Depends-on): Add rmdir.
34851         * modules/openat (Depends-on): Likewise.
34852
34853 2008-11-02  Bruno Haible  <bruno@clisp.org>
34854
34855         Mark 'raise' obsolete.
34856         * modules/raise (Status, Notice): New sections.
34857         (Include): Specify <signal.h>.
34858         * modules/stdio (Depends-on): Add raise.
34859         * modules/write (Depends-on): Likewise.
34860
34861 2008-11-02  Bruno Haible  <bruno@clisp.org>
34862
34863         Mark 'memset' obsolete.
34864         * modules/memset (Status, Notice): New sections.
34865
34866 2008-11-02  Bruno Haible  <bruno@clisp.org>
34867
34868         Mark 'memmove' obsolete.
34869         * modules/memmove (Status, Notice): New sections.
34870         * modules/argp (Depends-on): Add memmove.
34871         * modules/argz (Depends-on): Likewise.
34872         * modules/canonicalize (Depends-on): Likewise.
34873         * modules/canonicalize-lgpl (Depends-on): Likewise.
34874         * modules/fts (Depends-on): Likewise.
34875         * modules/getcwd (Depends-on): Likewise.
34876         * modules/human (Depends-on): Likewise.
34877         * modules/regex (Depends-on): Likewise.
34878         * modules/striconveh (Depends-on): Likewise.
34879         * modules/trim (Depends-on): Likewise.
34880         * modules/unistr/u8-move (Depends-on): Likewise.
34881         * modules/unistr/u16-move (Depends-on): Likewise.
34882         * modules/unistr/u32-move (Depends-on): Likewise.
34883
34884 2008-11-02  Bruno Haible  <bruno@clisp.org>
34885
34886         Mark 'memcpy' obsolete.
34887         * modules/memcpy (Status, Notice): New sections.
34888
34889 2008-11-02  Bruno Haible  <bruno@clisp.org>
34890
34891         Mark 'memcmp' obsolete.
34892         * modules/memcmp (Status, Notice): New sections.
34893         * modules/argmatch (Depends-on): Add memchr.
34894         * modules/backupfile (Depends-on): Likewise.
34895         * modules/c-strcasestr (Depends-on): Likewise.
34896         * modules/crypto/des (Depends-on): Likewise.
34897         * modules/csharpcomp (Depends-on): Likewise.
34898         * modules/fnmatch (Depends-on): Likewise.
34899         * modules/git-merge-changelog (Depends-on): Likewise.
34900         * modules/isnand (Depends-on): Likewise.
34901         * modules/isnand-nolibm (Depends-on): Likewise.
34902         * modules/isnanf (Depends-on): Likewise.
34903         * modules/isnanf-nolibm (Depends-on): Likewise.
34904         * modules/isnanl (Depends-on): Likewise.
34905         * modules/isnanl-nolibm (Depends-on): Likewise.
34906         * modules/mbchar (Depends-on): Likewise.
34907         * modules/memcoll (Depends-on): Likewise.
34908         * modules/quotearg (Depends-on): Likewise.
34909         * modules/regex (Depends-on): Likewise.
34910         * modules/relocatable-prog (Depends-on): Likewise.
34911         * modules/same (Depends-on): Likewise.
34912         * modules/signbit (Depends-on): Likewise.
34913         * modules/strcasestr-simple (Depends-on): Likewise.
34914         * modules/unictype/gen-ctype (Depends-on): Likewise.
34915         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34916         * modules/uniname/uniname (Depends-on): Likewise.
34917         * modules/unistr/u8-cmp (Depends-on): Likewise.
34918
34919 2008-11-02  Bruno Haible  <bruno@clisp.org>
34920
34921         Mark 'memchr' obsolete.
34922         * modules/memchr (Status, Notice): New sections.
34923         * modules/argp (Depends-on): Add memchr.
34924         * modules/base64 (Depends-on): Likewise.
34925         * modules/c-strcasestr (Depends-on): Likewise.
34926         * modules/chdir-long (Depends-on): Likewise.
34927         * modules/fnmatch (Depends-on): Likewise.
34928         * modules/getsubopt (Depends-on): Likewise.
34929         * modules/git-merge-changelog (Depends-on): Likewise.
34930         * modules/glob (Depends-on): Likewise.
34931         * modules/strcasestr-simple (Depends-on): Likewise.
34932         * modules/strnlen (Depends-on): Likewise.
34933
34934 2008-11-02  Bruno Haible  <bruno@clisp.org>
34935
34936         Mark 'atexit' obsolete.
34937         * modules/atexit (Status, Notice): New sections.
34938         * modules/chdir-long (Depends-on): Add atexit.
34939         * modules/wait-process (Depends-on): Likewise.
34940
34941 2008-11-02  Bruno Haible  <bruno@clisp.org>
34942
34943         * gnulib-tool: New option --with-obsolete.
34944         (func_usage): Document it.
34945         (func_modules_transitive_closure): Drop obsolete dependencies if
34946         incobsolete is not true.
34947         (func_import): Read and save the incobsolete variable to the cache.
34948
34949 2008-11-02  Bruno Haible  <bruno@clisp.org>
34950
34951         * modules/TEMPLATE-EXTENDED: New field 'Status'.
34952         * gnulib-tool: New option --extract-status.
34953         (func_usage): Document it.
34954         (sed_extract_prog): Recognize it.
34955         (func_get_status): New function.
34956
34957 2008-10-30  Simon Josefsson  <simon@josefsson.org>
34958
34959         * modules/sockets (License): Change from LGPL to LGPLv2+.
34960
34961 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34962
34963         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
34964
34965 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34966
34967         * MODULES.html.sh (Support for systems lacking POSIX:2001):
34968         Mention times and sys_times.
34969         * modules/sys_times, modules/sys_times-tests: New modules.
34970         * modules/times, modules/times-tests: Likewise
34971         * m4/sys_times_h.m4: New file.
34972         * lib/sys_times.in.h: Likewise
34973         * lib/times.c: Likewise.
34974         * tests/test-sys_times.c: Likewise.
34975         * tests/test-times.c: Likewise.
34976         * doc/posix-headers/sys_times.texi: Update.
34977         * doc/posix-functions/times.texi: Update.
34978
34979 2008-10-28  Jim Meyering  <meyering@redhat.com>
34980
34981         * modules/tempname (Depends-on): Add lstat.
34982
34983         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
34984
34985 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34986
34987         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
34988         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
34989         using idiom used elsewhere in gnulib.
34990
34991 2008-10-27  Jim Meyering  <meyering@redhat.com>
34992
34993         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
34994
34995 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34996
34997         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
34998         TESTS_ENVIRONMENT, for shell scripts that needs to call built
34999         programs.
35000         * tests/test-argp-2.sh: Use $EXEEXT when needed.
35001
35002 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35003
35004         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
35005
35006 2008-10-27  Bruno Haible  <bruno@clisp.org>
35007
35008         * tests/test-lstat.c: Include <stdio.h>.
35009
35010 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35011
35012         * modules/lstat-tests: New module.
35013         * tests/test-lstat.c: New file.
35014
35015 2008-10-26  Jim Meyering  <meyering@redhat.com>
35016
35017         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
35018
35019 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35020             Bruno Haible  <bruno@clisp.org>
35021
35022         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
35023         * modules/configmake (Include): Add a note that the include must come
35024         after all system headers.
35025         * lib/javaversion.c: Include configmake.h after all other includes.
35026
35027 2008-10-26  Bruno Haible  <bruno@clisp.org>
35028
35029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
35030         HAVE_STRUCT_RANDOM_DATA to 1.
35031         (gl_STDLIB_H): Simplify.
35032
35033 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35034
35035         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
35036         substitute HAVE_STRUCT_RANDOM_DATA.
35037         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
35038         random_data.
35039         * modules/stdlib (Makefile.am): Substitute
35040         HAVE_STRUCT_RANDOM_DATA.
35041
35042 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35043
35044         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
35045         * doc/gnulib-intro.texi (Copyright): Likewise.
35046
35047 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35048
35049         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
35050         findings.
35051
35052 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
35053             Bruno Haible  <bruno@clisp.org>
35054
35055         * lib/unistd.in.h: Include <winsock2.h>.
35056         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
35057         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
35058         Provide dummy declarations.
35059         (gethostname): Override.
35060         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
35061         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
35062         gl_PREREQ_SYS_H_WINSOCK2.
35063         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
35064         * doc/posix-functions/gethostname.texi: More details.
35065
35066 2008-10-25  Bruno Haible  <bruno@clisp.org>
35067
35068         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35069         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
35070         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
35071
35072         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
35073         here ...
35074         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
35075         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
35076         gl_UNISTD_H_DEFAULTS.
35077
35078 2008-10-25  Eric Blake  <ebb9@byu.net>
35079
35080         signbit: avoid spurious compiler failure
35081         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
35082         declarations inside function.
35083
35084 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35085             Bruno Haible  <bruno@clisp.org>
35086
35087         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
35088         * modules/random_r (Depends-on): Add stdint.
35089
35090 2008-10-24  Bruno Haible  <bruno@clisp.org>
35091
35092         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
35093         Eggert.
35094         * modules/strerror (License): Likewise.
35095
35096 2008-10-24  Jim Meyering  <meyering@redhat.com>
35097
35098         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
35099         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
35100
35101 2008-10-24  Eric Blake  <ebb9@byu.net>
35102
35103         getgroups: fix compilation when getgroups is available
35104         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
35105         but with <config.h> override of getgroups disabled.
35106
35107 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35108
35109         * doc/gnulib.texi (Header files): Add note about C++ problems.
35110         Explained by Bruno Haible <bruno@clisp.org>.
35111
35112 2008-10-23  Bruno Haible  <bruno@clisp.org>
35113
35114         Define a dummy SA_NODEFER macro on Interix.
35115         * lib/signal.in.h (SA_NODEFER): Define fallback.
35116         Reported by Aleksey Cheusov <cheusov@tut.by> via
35117         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
35118
35119 2008-10-23  Bruno Haible  <bruno@clisp.org>
35120
35121         * modules/freadahead (License): Change to LGPLv2+.
35122         Suggested by Simon Josefsson.
35123
35124 2008-10-23  Jim Meyering  <meyering@redhat.com>
35125
35126         random_r: new module
35127         * modules/random_r: New file.
35128         * m4/random_r.m4: New file.
35129         * lib/random_r.c: New file, from glibc.
35130         * modules/random_r-tests: New file.
35131         * tests/test-random_r.c: New file.
35132         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
35133          Declare.
35134         (RAND_MAX): Define.
35135         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
35136         * modules/stdlib: Substitute them, too.
35137         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
35138         * doc/glibc-functions/initstate_r.texi: Mention the new module.
35139         * doc/glibc-functions/random_r.texi: Likewise.
35140         * doc/glibc-functions/setstate_r.texi: Likewise.
35141         * doc/glibc-functions/srandom_r.texi: Likewise.
35142         * config/srclist.txt: Mention it.
35143
35144 2008-10-23  David Lutterkort  <lutter@redhat.com>
35145
35146         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
35147         link requirement
35148
35149 2008-10-23  Jim Meyering  <meyering@redhat.com>
35150
35151         selinux-h: mark parameters of stub functions as intentionally unused
35152         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
35153         * lib/se-context.in.h: Likewise.
35154
35155 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35156
35157         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
35158
35159 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35160
35161         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
35162
35163 2008-10-22  Eric Blake  <ebb9@byu.net>
35164
35165         glthread/thread: avoid compiler warning
35166         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
35167         Add unreachable abort to silence compiler.
35168
35169 2008-10-22  Eric Blake  <ebb9@byu.net>
35170
35171         netdb: also supply struct addrinfo for cygwin 1.5.x
35172         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
35173         older cygwin.
35174         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
35175         cygwin.
35176         * doc/posix-headers/netdb.texi (netdb.h): Document this.
35177
35178 2008-10-22  Bruno Haible  <bruno@clisp.org>
35179
35180         * users.txt: Update entry about pspp.
35181
35182 2008-10-21  Bruno Haible  <bruno@clisp.org>
35183
35184         Simplification.
35185         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
35186         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
35187
35188         Simplification.
35189         * lib/ioctl.c (ioctl): Don't undefine.
35190         * lib/socket.c (socket): Don't undefine.
35191
35192         Remove unused module indicator macros.
35193         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
35194         GNULIB_$1 as a C macro.
35195
35196         * doc/posix-functions/close.texi: Undo last change.
35197         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
35198         Windows platforms.
35199
35200 2008-10-21  Bruno Haible  <bruno@clisp.org>
35201
35202         Add gethostname() declaration to <unistd.h>.
35203         * lib/unistd.in.h (gethostname): New declaration.
35204         * lib/gethostname.c: Include <unistd.h>.
35205         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
35206         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
35207         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
35208         and HAVE_GETHOSTNAME.
35209         * modules/gethostname (Depends-on): Add unistd.
35210         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35211         (Include): Specify <unistd.h>.
35212         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
35213         HAVE_GETHOSTNAME.
35214         * tests/test-gethostname.c: Include <unistd.h> first.
35215
35216 2008-10-21  Bruno Haible  <bruno@clisp.org>
35217
35218         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
35219         * modules/select-tests (Depends-on): Likewise.
35220         Reported by Simon Josefsson.
35221
35222 2008-10-21  Simon Josefsson  <simon@josefsson.org>
35223
35224         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
35225         * lib/accept.c: New file, based on winsock.c.
35226         * lib/bind.c: New file, based on winsock.c.
35227         * lib/connect.c: New file, based on winsock.c.
35228         * lib/getpeername.c: New file, based on winsock.c.
35229         * lib/getsockname.c: New file, based on winsock.c.
35230         * lib/getsockopt.c: New file, based on winsock.c.
35231         * lib/ioctl.c: New file, based on winsock.c.
35232         * lib/listen.c: New file, based on winsock.c.
35233         * lib/recv.c: New file, based on winsock.c.
35234         * lib/recvfrom.c: New file, based on winsock.c.
35235         * lib/send.c: New file, based on winsock.c.
35236         * lib/sendto.c: New file, based on winsock.c.
35237         * lib/setsockopt.c: New file, based on winsock.c.
35238         * lib/shutdown.c: New file, based on winsock.c.
35239         * lib/socket.c: New file, based on winsock.c.
35240         * lib/w32sock.h: New file, based on winsock.c.
35241         * lib/winsock.c: Remove file.
35242         * modules/accept: Likewise.
35243         * modules/bind: Likewise.
35244         * modules/connect: Likewise.
35245         * modules/getpeername: Likewise.
35246         * modules/getsockname: Likewise.
35247         * modules/getsockopt: Likewise.
35248         * modules/ioctl: Likewise.
35249         * modules/listen: Likewise.
35250         * modules/recv: Likewise.
35251         * modules/recvfrom: Likewise.
35252         * modules/send: Likewise.
35253         * modules/sendto: Likewise.
35254         * modules/setsockopt: Likewise.
35255         * modules/shutdown: Likewise.
35256         * modules/socket: Use socket.c instead of winsock.c.
35257         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
35258         * doc/posix-functions/accept.texi: Doc fix.
35259         * doc/posix-functions/bind.texi: Doc fix.
35260         * doc/posix-functions/close.texi: Doc fix.
35261         * doc/posix-functions/connect.texi: Doc fix.
35262         * doc/posix-functions/getpeername.texi: Doc fix.
35263         * doc/posix-functions/getsockname.texi: Doc fix.
35264         * doc/posix-functions/getsockopt.texi: Doc fix.
35265         * doc/posix-functions/ioctl.texi: Doc fix.
35266         * doc/posix-functions/listen.texi: Doc fix.
35267         * doc/posix-functions/recv.texi: Doc fix.
35268         * doc/posix-functions/recvfrom.texi: Doc fix.
35269         * doc/posix-functions/send.texi: Doc fix.
35270         * doc/posix-functions/sendto.texi: Doc fix.
35271         * doc/posix-functions/setsockopt.texi: Doc fix.
35272         * doc/posix-functions/shutdown.texi: Doc fix.
35273         * doc/posix-functions/socket.texi: Doc fix.
35274
35275 2008-10-20  Bruno Haible  <bruno@clisp.org>
35276
35277         Take into account the role of SIGABRT_COMPAT on Windows 2008.
35278         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
35279         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
35280         as an alias for SIGABRT.
35281         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
35282         (sigaction): Map it to SIGABRT.
35283         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
35284
35285 2008-10-20  Bruno Haible  <bruno@clisp.org>
35286
35287         * lib/fts.c: Don't include lstat.h.
35288         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
35289
35290         Move the lstat() declaration to <sys/stat.h>.
35291         * lib/lstat.h: Remove file.
35292         * lib/sys_stat.in.h: Add special invocation convention.
35293         (lstat): New declaration.
35294         * lib/lstat.c (orig_lstat): New function.
35295         (rpl_lstat): Use orig_lstat instead of lstat.
35296         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
35297         AC_C_INLINE. Set REPLACE_LSTAT.
35298         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
35299         and REPLACE_LSTAT.
35300         * modules/lstat (Files): Remove lib/lstat.h.
35301         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35302         (Include): Specify <sys/stat.h> instead of lstat.h.
35303         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
35304         REPLACE_LSTAT.
35305         * NEWS: Mention the change.
35306
35307 2008-10-20  Bruno Haible  <bruno@clisp.org>
35308
35309         * modules/posix_spawn-tests: New file.
35310         * tests/test-posix_spawn3.c: New file.
35311
35312 2008-10-20  Bruno Haible  <bruno@clisp.org>
35313
35314         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
35315         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35316         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
35317         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35318         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
35319
35320 2008-10-20  Bruno Haible  <bruno@clisp.org>
35321
35322         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
35323         of posix_spawn on AIX 5.3.
35324
35325 2008-10-20  Bruno Haible  <bruno@clisp.org>
35326
35327         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
35328
35329 2008-10-20  Bruno Haible  <bruno@clisp.org>
35330
35331         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
35332         of AC_LANG_PROGRAM.
35333
35334 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35335
35336         * lib/netdb.in.h: Don't define GNU specific constants until they
35337         are supported or needed.  Reported by Bruno Haible
35338         <bruno@clisp.org>.
35339
35340 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35341
35342         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
35343
35344 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35345
35346         * lib/getaddrinfo.h: Remove file.
35347         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
35348         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
35349         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
35350         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
35351         * modules/netdb: Substitute GNULIB_GETADDRINFO.
35352         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
35353         * tests/test-getaddrinfo.c: Likewise.
35354         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
35355         * NEWS: Mention change.
35356
35357 2008-10-19  Bruno Haible  <bruno@clisp.org>
35358
35359         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
35360
35361 2008-10-19  Bruno Haible  <bruno@clisp.org>
35362
35363         * lib/wait-process.c: Include simply <sys/wait.h>.
35364         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
35365         WIFSTOPPED): Remove fallback definitions.
35366         * modules/wait-process (Depends-on): Add sys_wait.
35367
35368         New module 'sys_wait'.
35369         * modules/sys_wait: New file.
35370         * lib/sys_wait.in.h: New file, partially copied from
35371         lib/wait-process.c.
35372         * m4/sys_wait_h.m4: New file.
35373         * doc/posix-headers/sys_wait.texi: Mention the new module.
35374
35375 2008-10-19  Bruno Haible  <bruno@clisp.org>
35376
35377         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
35378
35379 2008-10-19  Bruno Haible  <bruno@clisp.org>
35380
35381         Assume that waitpid() fills an 'int' status, not a 'union wait'.
35382         * lib/wait-process.c (WAIT_T): Remove type.
35383         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
35384         (wait_subprocess): Update.
35385
35386 2008-10-19  Bruno Haible  <bruno@clisp.org>
35387
35388         New module 'atoll'.
35389         * modules/atoll: New file.
35390         * lib/stdlib.in.h (atoll): New declaration.
35391         * lib/atoll.c: New file, from glibc with modifications.
35392         * m4/atoll.m4: New file.
35393         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
35394         HAVE_ATOLL.
35395         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
35396         * doc/posix-functions/atoll.texi: Mention the new module.
35397
35398 2008-10-19  Bruno Haible  <bruno@clisp.org>
35399
35400         Add strtoull() declaration to <stdlib.h>.
35401         * lib/stdlib.in.h (strtoull): New declaration.
35402         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35403         Set HAVE_STRTOULL.
35404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
35405         HAVE_STRTOULL.
35406         * modules/strtoull (Depends-on): Add stdlib.
35407         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35408         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
35409         HAVE_STRTOULL.
35410
35411 2008-10-19  Bruno Haible  <bruno@clisp.org>
35412
35413         Add strtoll() declaration to <stdlib.h>.
35414         * lib/stdlib.in.h (strtoll): New declaration.
35415         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35416         Set HAVE_STRTOLL.
35417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
35418         HAVE_STRTOLL.
35419         * modules/strtoll (Depends-on): Add stdlib.
35420         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35421         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
35422
35423 2008-10-19  Bruno Haible  <bruno@clisp.org>
35424
35425         * modules/bcopy (Depends-on): Add strings.
35426         (Include): Specify <strings.h>.
35427
35428 2008-10-19  Bruno Haible  <bruno@clisp.org>
35429
35430         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
35431
35432 2008-10-19  Bruno Haible  <bruno@clisp.org>
35433
35434         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
35435         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
35436         mingw.
35437
35438 2008-10-19  Bruno Haible  <bruno@clisp.org>
35439
35440         * lib/atanl.c: Don't include isnanl.h.
35441         * lib/cosl.c: Likewise.
35442         * lib/ldexpl.c: Likewise.
35443         * lib/logl.c: Likewise.
35444         * lib/sinl.c: Likewise.
35445         * lib/sqrtl.c: Likewise.
35446         * lib/tanl.c: Likewise.
35447
35448         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
35449         * lib/isnanf.h: Remove file.
35450         * lib/isnand.h: Remove file.
35451         * lib/isnanl.h: Remove file.
35452         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
35453         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
35454         macros.
35455         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
35456         HAVE_ISNANF, don't define it as a C macro.
35457         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
35458         HAVE_ISNAND, don't define it as a C macro.
35459         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
35460         HAVE_ISNANL, don't define it as a C macro.
35461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
35462         HAVE_ISNAN[FDL].
35463         * modules/isnanf (Files): Remove lib/isnanf.h.
35464         (Depends-on): Add math.
35465         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35466         (Include): Specify <math.h> instead of isnanf.h.
35467         * modules/isnand (Files): Remove lib/isnand.h.
35468         (Depends-on): Add math.
35469         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35470         (Include): Specify <math.h> instead of isnand.h.
35471         * modules/isnanl (Files): Remove lib/isnanl.h.
35472         (Depends-on): Add math.
35473         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35474         (Include): Specify <math.h> instead of isnanl.h.
35475         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
35476         HAVE_ISNAN[FDL].
35477         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
35478         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
35479         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
35480         * NEWS: Mention the change.
35481
35482 2008-10-18  Bruno Haible  <bruno@clisp.org>
35483
35484         Add getusershell(), setusershell(), endusershell() declarations to
35485         <unistd.h>.
35486         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
35487         declarations.
35488         * lib/getusershell.c: Include unistd.h.
35489         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
35490         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35491         HAVE_GETUSERSHELL.
35492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
35493         and HAVE_GETUSERSHELL.
35494         * modules/getusershell (Depends-on): Add unistd, extensions.
35495         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35496         (Include): Specify <unistd.h>.
35497         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
35498         HAVE_GETUSERSHELL.
35499
35500 2008-10-18  Bruno Haible  <bruno@clisp.org>
35501
35502         Add a getloadavg() declaration to <stdlib.h>.
35503         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
35504         getloadavg declaration.
35505         (getloadavg): New declaration.
35506         * lib/getloadavg.c: Include <stdlib.h> first.
35507         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
35508         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
35509         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
35510         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
35511         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35512         * modules/getloadavg (Depends-on): Add stdlib, extensions.
35513         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35514         (Include): Specify <stdlib.h>.
35515         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
35516         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35517
35518 2008-10-18  Bruno Haible  <bruno@clisp.org>
35519
35520         * lib/dirchownmod.c: Don't include lchmod.h.
35521
35522         Move the lchmod() declaration to <sys/stat.h>.
35523         * lib/lchmod.h: Remove file.
35524         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
35525         (lchmod): New declaration, moved here from lib/lchown.h.
35526         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
35527         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
35528         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
35529         and HAVE_LCHMOD.
35530         * modules/lchmod (Files): Remove lib/lchmod.h.
35531         (Depends-on): Add sys_stat, extensions.
35532         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35533         (Include): Specify <sys/stat.h> instead of lchmod.h.
35534         * modules/sys_stat (Depends-on): Add link-warning.
35535         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
35536         definition of GL_LINK_WARNING.
35537         * NEWS: Mention the change.
35538
35539 2008-10-18  Bruno Haible  <bruno@clisp.org>
35540
35541         * lib/fchdir.c: Don't include dirfd.h.
35542         * lib/fts.c: Likewise.
35543         * lib/getcwd.c: Likewise.
35544         * lib/glob.c: Likewise.
35545
35546         Move the dirfd() declaration to <dirent.h>.
35547         * lib/dirfd.h: Remove file.
35548         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
35549         (dirfd): New declaration.
35550         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
35551         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
35552         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
35553         HAVE_DECL_DIRFD.
35554         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
35555         HAVE_DECL_DIRFD.
35556         * modules/dirfd (Files): Remove lib/dirfd.h.
35557         (Depends-on): Add dirent, extensions.
35558         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
35559         (Include): Specify <dirent.h> instead of dirfd.h.
35560         * modules/dirent (Depends-on): Add link-warning.
35561         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
35562         definition of GL_LINK_WARNING.
35563         * NEWS: Mention the change.
35564
35565 2008-10-18  Bruno Haible  <bruno@clisp.org>
35566
35567         Move the euidaccess() declaration to <unistd.h>.
35568         * lib/euidaccess.h: Remove file.
35569         * lib/unistd.in.h (euidaccess): New declaration.
35570         * lib/euidaccess.c: Don't include euidaccess.h.
35571         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
35572         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
35573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
35574         and HAVE_EUIDACCESS.
35575         * modules/euidaccess (Files): Remove lib/euidaccess.h.
35576         (Depends-on): Add unistd.
35577         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35578         (Include): Specify <unistd.h> instead of euidaccess.h.
35579         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
35580         HAVE_EUIDACCESS.
35581         * NEWS: Mention the change.
35582
35583 2008-10-18  Bruno Haible  <bruno@clisp.org>
35584
35585         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
35586
35587         Move the getdomainname() declaration to <unistd.h>.
35588         * lib/getdomainname.h: Remove file.
35589         * lib/unistd.in.h (getdomainname): New declaration.
35590         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
35591         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
35592         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35593         HAVE_GETDOMAINNAME.
35594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35595         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
35596         * modules/getdomainname (Files): Remove lib/getdomainname.h.
35597         (Depends-on): Add unistd, extensions.
35598         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35599         (Includes): Specify <unistd.h> instead of getdomainname.h.
35600         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
35601         HAVE_GETDOMAINNAME.
35602         * NEWS: Mention the change.
35603
35604 2008-10-18  Bruno Haible  <bruno@clisp.org>
35605
35606         * modules/dirent: New file.
35607         * m4/dirent_h.m4: New file.
35608         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
35609         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
35610         * modules/fchdir (Files): Remove lib/dirent.in.h.
35611         (Depends-on): Add dirent.
35612         (Makefile.am): Move rules to modules/dirent.
35613         * doc/posix-headers/dirent.texi: Mention the new module.
35614
35615 2008-10-18  Bruno Haible  <bruno@clisp.org>
35616
35617         Avoid -Wunused-parameter warnings in public gnulib header files.
35618         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
35619         macro.
35620         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
35621
35622 2008-10-18  Bruno Haible  <bruno@clisp.org>
35623
35624         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
35625         * doc/glibc-functions/error.texi: Mention the module 'error'.
35626         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
35627         * doc/glibc-functions/getdomainname.texi: Mention the module
35628         'getdomainname'.
35629         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
35630         * doc/glibc-functions/getpagesize.texi: Mention the module
35631         'getpagesize'.
35632         * doc/glibc-functions/getusershell.texi: Mention the module
35633         'getusershell'.
35634         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
35635         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
35636         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
35637         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
35638         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
35639         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
35640         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
35641         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
35642         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
35643         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
35644         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
35645         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
35646         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
35647         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
35648
35649 2008-10-17  Bruno Haible  <bruno@clisp.org>
35650
35651         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
35652         HP-UX and IRIX, use -0.0L.
35653         * tests/test-ceill.c (minus_zero): Likewise.
35654         * tests/test-floorl.c (minus_zero): Likewise.
35655         * tests/test-frexpl.c (minus_zero): Likewise.
35656         * tests/test-isnan.c (minus_zerol): Likewise.
35657         * tests/test-isnanl.h (minus_zero): Likewise.
35658         * tests/test-ldexpl.c (minus_zero): Likewise.
35659         * tests/test-roundl.c (minus_zero): Likewise.
35660         * tests/test-signbit.c (minus_zerol): Likewise.
35661         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35662         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35663         * tests/test-truncl.c (minus_zero): Likewise.
35664         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35665         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35666         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
35667         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35668
35669 2008-10-17  Bruno Haible  <bruno@clisp.org>
35670
35671         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
35672         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
35673         that it gets activated only for gcc >= 3.0.
35674         * lib/dirent.in.h: Likewise.
35675         * lib/errno.in.h: Likewise.
35676         * lib/fcntl.in.h: Likewise.
35677         * lib/float.in.h: Likewise.
35678         * lib/iconv.in.h: Likewise.
35679         * lib/inttypes.in.h: Likewise.
35680         * lib/locale.in.h: Likewise.
35681         * lib/math.in.h: Likewise.
35682         * lib/netdb.in.h: Likewise.
35683         * lib/netinet_in.in.h: Likewise.
35684         * lib/search.in.h: Likewise.
35685         * lib/signal.in.h: Likewise.
35686         * lib/spawn.in.h: Likewise.
35687         * lib/stdarg.in.h: Likewise.
35688         * lib/stdint.in.h: Likewise.
35689         * lib/stdio.in.h: Likewise.
35690         * lib/stdlib.in.h: Likewise.
35691         * lib/string.in.h: Likewise.
35692         * lib/strings.in.h: Likewise.
35693         * lib/sys_file.in.h: Likewise.
35694         * lib/sys_ioctl.in.h: Likewise.
35695         * lib/sys_select.in.h: Likewise.
35696         * lib/sys_socket.in.h: Likewise.
35697         * lib/sys_stat.in.h: Likewise.
35698         * lib/sys_time.in.h: Likewise.
35699         * lib/sysexits.in.h: Likewise.
35700         * lib/time.in.h: Likewise.
35701         * lib/unistd.in.h: Likewise.
35702         * lib/wchar.in.h: Likewise.
35703         * lib/wctype.in.h: Likewise.
35704         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35705
35706 2008-10-17  Jim Meyering  <meyering@redhat.com>
35707
35708         ignore-value: don't depend on inline module
35709         * modules/ignore-value (Depends-on): Remove 'inline'.
35710         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
35711         Suggestion from Bruno Haible.
35712
35713 2008-10-17  Bruno Haible  <bruno@clisp.org>
35714
35715         New implementation of condition variables for Win32.
35716         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
35717         (gl_linked_waitqueue_t): New type.
35718         (gl_cond_t): Use it.
35719         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
35720         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
35721         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
35722         (glthread_cond_init_func, glthread_cond_wait_func,
35723         glthread_cond_timedwait_func, glthread_cond_signal_func,
35724         glthread_cond_broadcast_func, glthread_cond_destroy_func):
35725         Reimplemented on the basis of gl_linked_waitqueue_t.
35726         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
35727         gl_waitqueue_t.
35728         (gl_rwlock_t): Update.
35729         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
35730
35731 2008-10-17  Simon Josefsson  <simon@josefsson.org>
35732
35733         * modules/recvfrom (Depends-on): Add dependency on getpeername.
35734         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35735
35736 2008-10-17  Jim Meyering  <meyering@redhat.com>
35737
35738         ignore-value: new module
35739         * modules/ignore-value: New file.
35740         * lib/ignore-value.h: New file.
35741         * MODULES.html.sh (Compiler warning management): New section,
35742         just for this module.  More to come.
35743
35744 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35745
35746         open-safer.c: avoid 'signed and unsigned in conditional...' warning
35747         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
35748         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
35749
35750 2008-10-16  Jim Meyering  <meyering@redhat.com>
35751
35752         openat-die.c: avoid 'no previous prototype' warning
35753         * lib/openat-die.c: Include "openat.h".
35754         Reported by Reuben Thomas <rrt@sc3d.org>.
35755
35756 2008-10-16  Simon Josefsson  <simon@josefsson.org>
35757
35758         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
35759         * lib/netdb.in.h: Fix typo.
35760         Reported by Bruno Haible  <bruno@clisp.org>
35761
35762         * lib/netdb.in.h: Include sys/socket.h for platforms without
35763         netdb.h, to get structures like hostent on MinGW.
35764         * modules/netdb (Depends-on): Add sys_socket.
35765
35766 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35767
35768         * modules/netdb, modules/netdb-tests: New file.
35769         * m4/netdb_h.m4: New file.
35770         * lib/netdb.in.h: Add, currently just an empty file pending
35771         definitions.
35772         * tests/test-netdb.c: New file.
35773         * doc/posix-headers/netdb.texi: Mention that we replace it if
35774         needed.
35775         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35776         netdb.
35777
35778 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35779
35780         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
35781         with code.
35782
35783 2008-10-13  Bruno Haible  <bruno@clisp.org>
35784
35785         * lib/glthread/cond.c (glthread_cond_wait_func,
35786         glthread_cond_timedwait_func): Add a comment.
35787
35788 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35789
35790         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
35791         * tests/test-select.c: Likewise,
35792
35793 2008-10-13  Bruno Haible  <bruno@clisp.org>
35794
35795         * lib/glthread/cond.c (glthread_cond_wait_func,
35796         glthread_cond_timedwait_func): Fix variable name.
35797         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35798
35799 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
35800
35801         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
35802         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
35803         struct sockaddr.sa_len.
35804         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
35805
35806 2008-10-13  Simon Josefsson  <simon@josefsson.org>
35807
35808         * build-aux/pmccabe2html: Add css and css_url parameters.
35809
35810 2008-10-12  Bruno Haible  <bruno@clisp.org>
35811
35812         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
35813         calling aclx_get.
35814         Reported by Rainer Tammer <tammer@tammer.net>.
35815
35816 2008-10-12  Bruno Haible  <bruno@clisp.org>
35817
35818         Use msvcrt aware primitives for creation/termination of Win32 threads.
35819         * lib/glthread/thread.c: Include <process.h>.
35820         (glthread_create_func): Use _beginthreadex instead of CreateThread.
35821         (wrapper_func): Update signature.
35822         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
35823
35824 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35825             Bruno Haible  <bruno@clisp.org>
35826
35827         Provide a Win32 implementation of the 'cond' module.
35828         * lib/glthread/cond.h [USE_WIN32]: New implementation.
35829         * lib/glthread/cond.c (glthread_cond_init_func,
35830         glthread_cond_wait_func, glthread_cond_timedwait_func,
35831         glthread_cond_signal_func, glthread_cond_broadcast_func,
35832         glthread_cond_destroy_func) [USE_WIN32]: New functions.
35833         * modules/cond (Dependencies): Add gettimeofday.
35834
35835 2008-10-11  Bruno Haible  <bruno@clisp.org>
35836
35837         Make sleep work on older versions of mingw.
35838         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
35839         only whether it exists.
35840         * doc/posix-functions/sleep.texi: Mention the problem with older
35841         versions of mingw.
35842
35843 2008-10-11  Bruno Haible  <bruno@clisp.org>
35844
35845         New module 'shutdown'.
35846         * modules/shutdown: New file.
35847         * lib/sys_socket.in.h (shutdown): New declaration.
35848         * lib/winsock.c (shutdown): New function.
35849         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35850         GNULIB_SHUTDOWN.
35851         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
35852         * doc/posix-functions/shutdown.texi: Document the new module.
35853
35854 2008-10-11  Jim Meyering  <meyering@redhat.com>
35855
35856         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
35857
35858 2008-10-11  Bruno Haible  <bruno@clisp.org>
35859
35860         New module 'fclose'.
35861         * modules/fclose: New file.
35862         * lib/stdio.in.h (fclose): New declaration.
35863         * lib/fclose.c: New file.
35864         * m4/fclose.m4: New file.
35865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
35866         REPLACE_FCLOSE.
35867         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
35868         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
35869         REPLACE_FCLOSE.
35870         * modules/close (Depends-on): fclose.
35871         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
35872
35873 2008-10-11  Bruno Haible  <bruno@clisp.org>
35874
35875         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
35876         set errno and don't call _close.
35877
35878 2008-10-10  Bruno Haible  <bruno@clisp.org>
35879
35880         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
35881         ACL, not afterwards. Fixes test failure on Cygwin.
35882
35883 2008-10-09  Ben Pfaff  <blp@gnu.org>
35884
35885         * build-aux/announce-gen: Fix gnulib version related part of usage
35886         message.  Die with a useful error message if no tarballs are
35887         found.
35888
35889 2008-10-10  Jim Meyering  <meyering@redhat.com>
35890
35891         bootstrap: use git's --depth=N option only if it's supported
35892         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
35893         recognize the --depth option.  Reported by Pádraig Brady.
35894
35895 2008-10-09  Bruno Haible  <bruno@clisp.org>
35896
35897         New module 'ioctl'.
35898         * modules/ioctl: New file.
35899         * lib/sys_socket.in.h (ioctl): Remove declaration.
35900         * lib/winsock.c: Include <sys/ioctl.h>.
35901         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
35902         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35903         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
35904         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
35905         * doc/posix-functions/ioctl.texi: Mention the new module.
35906
35907 2008-10-09  Bruno Haible  <bruno@clisp.org>
35908
35909         New module 'sys_ioctl'.
35910         * lib/sys_ioctl.in.h: New file.
35911         * m4/sys_ioctl_h.m4: New file.
35912         * modules/sys_ioctl: New file.
35913         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
35914
35915 2008-10-09  Bruno Haible  <bruno@clisp.org>
35916
35917         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
35918         * lib/winsock.c: Include <stdarg.h>.
35919         (rpl_ioctl): Change to second argument 'int' and then varargs.
35920
35921 2008-10-09  Bruno Haible  <bruno@clisp.org>
35922
35923         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
35924         when the sys_socket module is present and the system has <winsock2.h>.
35925
35926 2008-10-09  Bruno Haible  <bruno@clisp.org>
35927
35928         * doc/posix-functions/close.texi: Mention module 'close' instead of
35929         module 'sys_socket'.
35930
35931 2008-10-09  Bruno Haible  <bruno@clisp.org>
35932
35933         * doc/glibc-headers/sys_ioctl.texi: New file.
35934         * doc/gnulib.texi: Include it.
35935
35936 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35937             Bruno Haible  <bruno@clisp.org>
35938
35939         Combine the two replacements of 'close'.
35940         * lib/sys_socket.in.h (close): Define to a reminder to include
35941         <unistd.h>.
35942         (_gl_close_fd_maybe_socket): New declaration.
35943         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
35944         * lib/winsock.c (close): Remove undefinition.
35945         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
35946         needed for the gnulib module 'close'.
35947         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
35948         define to an error symbol or to a warning, if suitable.
35949         * lib/close.c: Include <sys/socket.h>.
35950         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
35951         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
35952         UNISTD_H_HAVE_WINSOCK2_H.
35953         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
35954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35955         UNISTD_H_HAVE_WINSOCK2_H.
35956         * modules/sys_socket (Files): Add m4/unistd_h.m4.
35957         (configure.ac): Set a module indicator.
35958         (Makefile.am): Substitute GNULIB_CLOSE.
35959         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
35960         * modules/poll-tests (Depends-on): Add close.
35961         * modules/select-tests (Depends-on): Likewise.
35962
35963 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35964             Bruno Haible  <bruno@clisp.org>
35965
35966         New module 'close'.
35967         * modules/close: New file.
35968         * lib/unistd.in.h (close): Move declaration out of the
35969         FCHDIR_REPLACEMENT scope.
35970         (_gl_unregister_fd): New declaration.
35971         * lib/close.c: New file.
35972         * lib/fchdir.c (rpl_close): Remove function.
35973         * m4/close.m4: New file.
35974         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35975         close.
35976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
35977         REPLACE_CLOSE.
35978         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
35979         REPLACE_CLOSE.
35980         * modules/fchdir (Depends-on): Add close.
35981
35982 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35983             Bruno Haible  <bruno@clisp.org>
35984
35985         * lib/fcntl.in.h (open): Simplify conditionals.
35986         (_gl_register_fd): New declaration.
35987         * lib/fchdir.c (rpl_open): Remove function.
35988         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
35989         also.
35990         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
35991         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35992         open.
35993
35994 2008-10-09  Jim Meyering  <meyering@redhat.com>
35995
35996         GNUmakefile: use the more name-space-friendly "_version"
35997         * top/GNUmakefile (_dummy): Update.
35998         (_version): Rename from "version".
35999
36000 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36001             Bruno Haible  <bruno@clisp.org>
36002
36003         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
36004         rpl_close.
36005         (_gl_register_fd): New function, extracted from rpl_open.
36006         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
36007         (rpl_open, rpl_opendir): Use _gl_register_fd.
36008
36009 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36010
36011         Fix organization of 'open' replacement.
36012         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
36013         (gl_FUNC_OPEN): Use it.
36014         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
36015
36016 2008-10-08  Bruno Haible  <bruno@clisp.org>
36017
36018         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
36019
36020 2008-10-08  Simon Josefsson  <simon@josefsson.org>
36021
36022         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
36023         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
36024         listen).
36025
36026 2008-10-08  Eric Blake  <ebb9@byu.net>
36027
36028         GNUmakefile: add 'make version' target
36029         * top/GNUmakefile (_curr-ver): Split version update rules...
36030         (version): ...into a target.
36031
36032 2008-10-07  Bruno Haible  <bruno@clisp.org>
36033
36034         Use a more portable replacement expression for -0.0L.
36035         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
36036         instead of -0.0L. Fix m4 quotation.
36037
36038         * tests/test-signbit.c: Include <float.h>.
36039         (minus_zero): New variable.
36040         (test_signbitl): Use minus_zero instead of -zero.
36041         * modules/signbit-tests (Depends-on): Add float.
36042
36043         * tests/test-ceill.c: Include <float.h>.
36044         (zero): Remove variable.
36045         (minus_zero): New variable.
36046         (main): Use minus_zero instead of -zero.
36047         * modules/ceill-tests (Depends-on): Add float.
36048
36049         * tests/test-floorl.c: Include <float.h>.
36050         (zero): Remove variable.
36051         (minus_zero): New variable.
36052         (main): Use minus_zero instead of -zero.
36053         * modules/floorl-tests (Depends-on): Add float.
36054
36055         * tests/test-roundl.c: Include <float.h>.
36056         (zero): Remove variable.
36057         (minus_zero): New variable.
36058         (main): Use minus_zero instead of -zero.
36059         * modules/roundl-tests (Depends-on): Add float.
36060
36061         * tests/test-truncl.c: Include <float.h>.
36062         (zero): Remove variable.
36063         (minus_zero): New variable.
36064         (main): Use minus_zero instead of -zero.
36065         * modules/truncl-tests (Depends-on): Add float.
36066
36067         * tests/test-frexpl.c (zero): Remove variable.
36068         (minus_zero): New variable.
36069         (main): Use minus_zero instead of -zero.
36070         * modules/frexpl-tests (Depends-on): Add float.
36071
36072         * tests/test-isnan.c (zerol): Remove variable.
36073         (minus_zerol): New variable.
36074         (test_long_double): Use minus_zerol instead of -zerol.
36075         * modules/isnan-tests (Depends-on): Add float.
36076
36077         * tests/test-isnanl.h (zero): Remove variable.
36078         (minus_zero): New variable.
36079         (main): Use minus_zero instead of -zero.
36080         * modules/isnanl-nolibm-tests (Depends-on): Add float.
36081         * modules/isnanl-tests (Depends-on): Add float.
36082
36083         * tests/test-ldexpl.c (zero): Remove variable.
36084         (minus_zero): New variable.
36085         (main): Use minus_zero instead of -zero.
36086         * modules/ldexpl-tests (Depends-on): Add float.
36087
36088         * tests/test-snprintf-posix.h (zerol): Remove variable.
36089         (minus_zerol): New variable.
36090         (test_function): Use minus_zerol instead of -zerol.
36091         * modules/snprintf-posix-tests (Depends-on): Add float.
36092         * modules/vsnprintf-posix-tests (Depends-on): Add float.
36093
36094         * tests/test-sprintf-posix.h (zerol): Remove variable.
36095         (minus_zerol): New variable.
36096         (test_function): Use minus_zerol instead of -zerol.
36097         * modules/sprintf-posix-tests (Depends-on): Add float.
36098         * modules/vsprintf-posix-tests (Depends-on): Add float.
36099
36100         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
36101         (minus_zerol): New variable.
36102         (test_function): Use minus_zerol instead of -zerol.
36103         * modules/vasnprintf-posix-tests (Depends-on): Add float.
36104
36105         * tests/test-vasprintf-posix.c (zerol): Remove variable.
36106         (minus_zerol): New variable.
36107         (test_function): Use minus_zerol instead of -zerol.
36108         * modules/vasprintf-posix-tests (Depends-on): Add float.
36109
36110 2008-10-07  Simon Josefsson  <simon@josefsson.org>
36111
36112         * MODULES.html.sh (Support for building documentation): Mention
36113         pmccabe2html.  Sort entries.
36114
36115         Add pmccabe2html module, from gnupdf.
36116         * build-aux/pmccabe.css: New file.
36117         * build-aux/pmccabe2html: New file.
36118         * m4/pmccabe2html.m4: New file.
36119         * modules/pmccabe2html: New file.
36120
36121 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
36122
36123         flock: new module
36124         * MODULES.html.sh: Add to list of modules.
36125         * lib/flock.c: flock implementation for Windows and Unix systems
36126         which have fcntl.
36127         * doc/glibc-functions/flock.texi: Update documentation.
36128         * lib/sys_file.in.h: <sys/file.h> header file.
36129         * m4/flock.m4: M4 macros.
36130         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
36131         * modules/flock: flock module.
36132         * modules/flock-tests: flock tests module.
36133         * modules/sys_file: sys/file.h module.
36134         * tests/test-flock.c: test suite for flock.
36135
36136 2008-10-06  Jim Meyering  <meyering@redhat.com>
36137
36138         bootstrap: check for LT_INIT more portably still ;-)
36139         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
36140         Spotted by Bruno Haible.
36141
36142 2008-10-06  Eric Blake  <ebb9@byu.net>
36143
36144         test-signbit: avoid tripping Irix cc bug on -0.0L
36145         * tests/test-signbit.c (minus_zerol): Delete, and replace with
36146         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
36147         entire testsuite consistent and avoids an Irix 6.2 bug.
36148
36149 2008-10-05  Bruno Haible  <bruno@clisp.org>
36150             Jim Meyering  <jim@meyering.net>
36151
36152         Add an option for ignoring EPIPE during close_stdout.
36153         * lib/closeout.h: Include <stdbool.h>.
36154         (close_stdout_set_ignore_EPIPE): New declaration.
36155         * lib/closeout.c: Include <stdbool.h>.
36156         (ignore_EPIPE): New variable.
36157         (close_stdout_set_ignore_EPIPE): New function.
36158         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
36159         * lib/close-stream.c (close_stream): Mention the possible EPIPE
36160         failure.
36161         * modules/closeout (Depends-on): Add stdbool.
36162
36163 2008-10-05  Bruno Haible  <bruno@clisp.org>
36164
36165         * modules/accept: New file.
36166         * modules/bind: New file.
36167         * modules/connect: New file.
36168         * modules/getpeername: New file.
36169         * modules/getsockname: New file.
36170         * modules/getsockopt: New file.
36171         * modules/listen: New file.
36172         * modules/recv: New file.
36173         * modules/recvfrom: New file.
36174         * modules/send: New file.
36175         * modules/sendto: New file.
36176         * modules/setsockopt: New file.
36177         * modules/socket: New file.
36178         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
36179         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36180         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
36181         the particular module is requested. Add a link warning when the
36182         particular module is not requested.
36183         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
36184         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
36185         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
36186         the particular module is requested.
36187         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
36188         gl_SYS_SOCKET_H_DEFAULTS): New macros.
36189         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
36190         * modules/sys_socket (Depends-on): Add link-warning.
36191         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
36192         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
36193         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
36194         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
36195         GL_LINK_WARNING.
36196         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
36197         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
36198         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
36199         * doc/posix-functions/getpeername.texi: Mention the new module
36200         'getpeername'.
36201         * doc/posix-functions/getsockname.texi: Mention the new module
36202         'getsockname'.
36203         * doc/posix-functions/getsockopt.texi: Mention the new module
36204         'getsockopt'.
36205         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
36206         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
36207         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
36208         * doc/posix-functions/send.texi: Mention the new module 'send'.
36209         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
36210         * doc/posix-functions/setsockopt.texi: Mention the new module
36211         'setsockopt'.
36212         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
36213         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
36214         listen, connect, accept.
36215         * modules/select-tests (Depends-on): Likewise.
36216
36217 2008-10-05  Bruno Haible  <bruno@clisp.org>
36218
36219         * lib/winsock.c (strerror): Remove unused #undef.
36220         (rpl_close): Remove unused local variable.
36221
36222         * modules/sys_socket (Depends-on); Add errno.
36223
36224 2008-10-05  Bruno Haible  <bruno@clisp.org>
36225
36226         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
36227         (select): Add a link warning when the 'select' module is not used.
36228         * modules/sys_select (Depends-on): Add link-warning.
36229         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
36230         Suggested by Paolo Bonzini.
36231
36232 2008-10-05  Jim Meyering  <meyering@redhat.com>
36233
36234         bootstrap: check for LT_INIT more portably
36235         * build-aux/bootstrap: Avoid using grep -E, since it's not
36236         portable enough.  Suggestion from Bruno Haible.
36237
36238 2008-10-05  Bruno Haible  <bruno@clisp.org>
36239
36240         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
36241         as being fixed by gnulib.
36242
36243 2008-10-05  Bruno Haible  <bruno@clisp.org>
36244
36245         * modules/select-tests: New file, mostly copied from
36246         modules/sys_select-tests.
36247         * tests/test-select.c: New file, mostly copied from
36248         tests/test-sys_select.c.
36249         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
36250         * modules/sys_select-tests (Depends-on): Remove all dependencies.
36251         (Makefile.am): Remove test_sys_select_LDADD.
36252
36253         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
36254         to an undefined symbol, for an error message.
36255         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
36256         (gl_SYS_SELECT_H_DEFAULTS): New macro.
36257         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
36258         winsock-select.c here.
36259         * modules/sys_select (Files): Remove lib/winsock-select.c.
36260         (Depends-on): Remove alloca.
36261         (Makefile.am): Substitute GNULIB_SELECT.
36262         * modules/select: New file.
36263         * doc/posix-functions/select.texi: Update.
36264
36265 2008-10-05  Bruno Haible  <bruno@clisp.org>
36266
36267         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
36268         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
36269         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
36270         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
36271         getdtablesize.
36272         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
36273         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
36274
36275 2008-10-05  Bruno Haible  <bruno@clisp.org>
36276
36277         * modules/getdtablesize-tests: New file.
36278         * tests/test-getdtablesize.c: New file.
36279
36280         New module 'getdtablesize'.
36281         * lib/unistd.in.h (getdtablesize): New declaration.
36282         * lib/getdtablesize.c: New file.
36283         * m4/getdtablesize.m4: New file.
36284         * modules/getdtablesize: New file.
36285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36286         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
36287         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
36288         HAVE_GETDTABLESIZE.
36289         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
36290
36291 2008-10-05  Bruno Haible  <bruno@clisp.org>
36292
36293         * modules/sched (Makefile.am): Fix typo.
36294         Reported by Simon Josefsson.
36295
36296 2008-10-05  Jim Meyering  <meyering@redhat.com>
36297
36298         bootstrap: check for LT_INIT, too
36299         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
36300         are deprecated.  Suggestion from Ralf Wildenhues.
36301
36302 2008-10-05  Bruno Haible  <bruno@clisp.org>
36303
36304         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
36305         overriding them by ours.
36306         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
36307
36308 2008-10-05  Jim Meyering  <meyering@redhat.com>
36309
36310         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
36311         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
36312         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
36313
36314 2008-10-04  Bruno Haible  <bruno@clisp.org>
36315
36316         * modules/dup2 (License): Change to LGPLv2+.
36317         * modules/sleep (License): Likewise.
36318         * modules/perror (License): Likewise.
36319         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
36320         Blake.
36321         * modules/signal (License): Likewise.
36322         * modules/sigprocmask (License): Likewise.
36323         * modules/raise (License): Change to LGPLv2+, with approval by Jim
36324         Meyering.
36325
36326 2008-10-04  Bruno Haible  <bruno@clisp.org>
36327
36328         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
36329         Reported by Rainer Tammer <tammer@tammer.net>.
36330
36331 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
36332             Bruno Haible  <bruno@clisp.org>
36333
36334         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
36335         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
36336         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
36337
36338 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
36339
36340         filevercmp: new module
36341         * lib/filevercmp.h: New function filevercmp comparing version strings.
36342         * lib/filevercmp.c: Implementation of filevercmp function.
36343         * modules/filevercmp: Module metadata.
36344         * tests/test-filevercmp.c: Unit test for new module.
36345         * modules/filevercmp-tests: Unit test metadata.
36346         * MODULES.html.sh: Add filevercmp module.
36347
36348 2008-10-03  Bruno Haible  <bruno@clisp.org>
36349
36350         * lib/c-ctype.h: Add comment.
36351         Reported by Jim Meyering.
36352
36353 2008-10-02  Bruno Haible  <bruno@clisp.org>
36354
36355         * modules/posix_spawn-internal (Depends-on): Add 'open'.
36356
36357 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36358
36359         * build-aux/bootstrap: Allow renaming bootstrap, and change the
36360         name of bootstrap.conf accordingly.
36361
36362 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36363
36364         * build-aux/bootstrap: Install git-merge-changelog configuration
36365         items into .gitconfig if needed.
36366
36367 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36368
36369         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
36370         git repository, and initialize/update it accordingly.
36371
36372 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
36373
36374         * modules/fsync-tests: New file.
36375         * tests/test-fsync.c: New file.
36376
36377         New module 'fsync'.
36378         * lib/fsync.c: New file.
36379         * m4/fsync.m4: New file.
36380         * modules/fsync: New file.
36381         * lib/unistd.in.h (fsync): New declaration.
36382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
36383         GNULIB_FSYNC and HAVE_FSYNC.
36384         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
36385         * MODULES.html.sh (posix_functions): Add fsync.
36386         * doc/posix-functions/fsync.texi: Mention the new module.
36387
36388 2008-10-02  Jim Meyering  <meyering@redhat.com>
36389
36390         fts.c: sync with similar code from coreutils' remove.c
36391         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
36392         Guard also with "#if defined __linux__", since for now at least,
36393         this code is Linux-kernel-specific.
36394
36395 2008-10-02  Jim Meyering  <meyering@redhat.com>
36396
36397         fts: bug fixes
36398         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
36399         Include <sys/vfs.h>, not <sys/statfs.h>.
36400
36401         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
36402         Include <sys/vfs.h>, not <sys/statfs.h>.
36403
36404 2008-10-01  Bruno Haible  <bruno@clisp.org>
36405
36406         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
36407         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
36408         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
36409         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
36410         * doc/posix-functions/posix_spawnp.texi: Likewise.
36411         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
36412         whether posix_spawn actually works.
36413         * m4/pipe.m4 (gl_PIPE): Likewise.
36414         * modules/execute (Files): Add m4/posix_spawn.m4.
36415         * modules/pipe (Files): Add m4/posix_spawn.m4.
36416         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
36417
36418 2008-10-01  Jim Meyering  <meyering@redhat.com>
36419
36420         remove trailing spaces
36421         * NEWS: Likewise.
36422         * lib/poll.c (poll): Likewise.
36423         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
36424         * lib/winsock.c (rpl_close): Likewise.
36425         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
36426         * modules/yield: Likewise.
36427         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
36428         * tests/test-sys_select.c (connect_to_socket): Likewise.
36429
36430         fts.c: adjust a new interface to be more generally useful
36431         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
36432         (fts_build): Adjust caller.
36433
36434 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36435
36436         * modules/cond-tests: New file.
36437         * tests/test-cond.c: New file.
36438
36439 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36440             Bruno Haible  <bruno@clisp.org>
36441
36442         * modules/cond (Dependencies): Add errno, time.
36443         * lib/glthread/cond.h: Include <time.h>.
36444         (gl_cond_define, gl_cond_define_initialized): Use the same definition
36445         across platforms.
36446
36447 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36448             Bruno Haible  <bruno@clisp.org>
36449
36450         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
36451
36452 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36453             Bruno Haible  <bruno@clisp.org>
36454
36455         * modules/tls-tests (Depends-on): Add thread, yield.
36456         (configure.ac): Remove all checks.
36457         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
36458         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36459         gl_thread_self): Remove definitions. Include glthread/thread.h and
36460         glthread/yield.h instead.
36461         (test_tls): Pass an additional NULL argument to gl_thread_join.
36462
36463 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36464             Bruno Haible  <bruno@clisp.org>
36465
36466         * modules/lock-tests (Depends-on): Add thread, yield.
36467         (configure.ac): Remove all checks.
36468         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
36469         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36470         gl_thread_self): Remove definitions. Include glthread/thread.h and
36471         glthread/yield.h instead.
36472         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
36473         additional NULL argument to gl_thread_join.
36474
36475 2008-09-30  Bruno Haible  <bruno@clisp.org>
36476
36477         Fix the Win32 implementation of the 'thread' module.
36478         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
36479         pointer type.
36480         (gl_thread_self): Invoke gl_thread_self_func.
36481         (gl_thread_self_func): New declaration.
36482         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
36483         (do_init_self_key, init_self_key): New functions.
36484         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
36485         Remove some fields.
36486         (running_threads, running_lock): Remove variables.
36487         (get_current_thread_handle): New function.
36488         (gl_thread_self_func, wrapper_func, glthread_create_func,
36489         glthread_join_func, gl_thread_exit_func): Largely rewritten and
36490         simplified.
36491
36492 2008-09-30  Bruno Haible  <bruno@clisp.org>
36493
36494         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
36495         files.
36496
36497 2008-09-30  Jim Meyering  <meyering@redhat.com>
36498
36499         fts.m4: correct the test for statfs.f_type
36500         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
36501         when checking for statfs.f_type.
36502
36503 2008-09-15  Simon Josefsson  <simon@josefsson.org>
36504
36505         tests: avoid some compiler warnings
36506         * tests/test-memchr.c (main): Pass NULL indirectly.
36507         * tests/test-getdate.c (main): Remove unused variable 'ret'.
36508
36509 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
36510
36511         getdate.y: disallow countable dayshifts like "4 yesterday ago"
36512         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
36513         exactly specified dayshifts.
36514         (dayshift): New rule.
36515         (rel): Add dayshift.
36516         (relative_time_table) [tomorrow, yesterday, today, now]:
36517         Use tDAY_SHIFT in place of tDAY_UNIT.
36518         * tests/test-getdate.c: Add tests for now-disallowed countable
36519         dayshifts, e.g., "4 yesterday ago".
36520
36521 2008-09-29  Bruno Haible  <bruno@clisp.org>
36522
36523         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
36524         * tests/test-posix_spawn1.in.sh: Renamed from
36525         tests/test-posix_spawn.in.sh.
36526         * tests/test-posix_spawn2.c: New file.
36527         * tests/test-posix_spawn2.in.sh: New file.
36528         * modules/posix_spawnp-tests (Files): Update.
36529         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
36530
36531 2008-09-29  Bruno Haible  <bruno@clisp.org>
36532
36533         Propagate effects of putenv/setenv/unsetenv to child processes.
36534         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
36535         * lib/pipe.c (create_pipe): Likewise.
36536
36537 2008-09-29  Bruno Haible  <bruno@clisp.org>
36538
36539         Enable use of shell scripts as executables in mingw.
36540         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
36541         run the program as a shell script.
36542         * lib/pipe.c (create_pipe): Likewise.
36543         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
36544         resulting array.
36545
36546 2008-09-29  Eric Blake  <ebb9@byu.net>
36547
36548         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
36549
36550 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
36551
36552         * doc/posix-functions/accept.texi: Update mingw problems.
36553         * doc/posix-functions/bind.texi: Update mingw problems.
36554         * doc/posix-functions/close.texi: Update mingw problems.
36555         * doc/posix-functions/connect.texi: Update mingw problems.
36556         * doc/posix-functions/getpeername.texi: Update mingw problems.
36557         * doc/posix-functions/getsockname.texi: Update mingw problems.
36558         * doc/posix-functions/getsockopt.texi: Update mingw problems.
36559         * doc/posix-functions/ioctl.texi: Update mingw problems.
36560         * doc/posix-functions/listen.texi: Update mingw problems.
36561         * doc/posix-functions/recv.texi: Update mingw problems.
36562         * doc/posix-functions/recvfrom.texi: Update mingw problems.
36563         * doc/posix-functions/select.texi: Update mingw problems.
36564         * doc/posix-functions/send.texi: Update mingw problems.
36565         * doc/posix-functions/sendto.texi: Update mingw problems.
36566         * doc/posix-functions/setsockopt.texi: Update mingw problems.
36567         * doc/posix-functions/socket.texi: Update mingw problems.
36568
36569 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
36570             Bruno Haible  <bruno@clisp.org>
36571
36572         * lib/sys_select.in.h: Include sys/time.h.
36573         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
36574         * modules/sys_select: Depend on sys_time.
36575         * tests/test-sys_select.c: Test that sys/select.h defines struct
36576         timeval fully.
36577
36578 2008-09-29  Bruno Haible  <bruno@clisp.org>
36579
36580         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
36581         * lib/sys_select.in.h: Likewise.
36582
36583 2008-09-29  Bruno Haible  <bruno@clisp.org>
36584
36585         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
36586
36587 2008-09-29  Bruno Haible  <bruno@clisp.org>
36588
36589         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
36590         Set LIBSOCKET instead of augmenting LIBS.
36591         * modules/sockets (Link): New section.
36592         * modules/sockets-tests (test_sockets_LDADD): New variable.
36593         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
36594         * modules/poll-tests (test_poll_LDADD): New variable.
36595         * NEWS: Document the change.
36596
36597 2008-09-29  Bruno Haible  <bruno@clisp.org>
36598
36599         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
36600         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
36601         ARPA_INET_H directly.
36602         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36603
36604 2008-09-28  Bruno Haible  <bruno@clisp.org>
36605
36606         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
36607         from gl_HEADER_SYS_SOCKET.
36608         (gl_HEADER_SYS_SOCKET): Invoke it.
36609         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36610
36611 2008-09-28  Bruno Haible  <bruno@clisp.org>
36612
36613         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
36614         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
36615         Needed on OSF/1 4.0.
36616
36617 2008-09-28  Bruno Haible  <bruno@clisp.org>
36618
36619         Override open more carefully.
36620         * lib/open.c (orig_open): New function.
36621         (rpl_open): Use orig_open instead of open.
36622         * lib/fcntl.in.h: Add special invocation convention.
36623         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
36624         (gl_FUNC_OPEN): Invoke it.
36625
36626         Override freopen more carefully.
36627         * lib/freopen.c (orig_freopen): New function.
36628         (rpl_freopen): Use orig_freopen instead of freopen.
36629         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
36630         (gl_FUNC_FREOPEN): Invoke it.
36631
36632         Override fopen more carefully.
36633         * lib/fopen.c (orig_fopen): New function.
36634         (rpl_fopen): Use orig_fopen instead of fopen.
36635         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
36636         (gl_FUNC_FOPEN): Invoke it.
36637         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
36638
36639 2008-09-28  Bruno Haible  <bruno@clisp.org>
36640
36641         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
36642         SIGPIPE.
36643
36644 2008-09-28  Bruno Haible  <bruno@clisp.org>
36645
36646         * tests/test-sigaction.c (handler, main): Disable the check whether
36647         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
36648         glibc systems with LinuxThreads.
36649
36650 2008-09-28  Bruno Haible  <bruno@clisp.org>
36651
36652         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
36653
36654         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
36655         with AIX xlc.
36656         * lib/fcntl.in.h (open): Likewise.
36657         Reported by Rainer Tammer <tammer@tammer.net>.
36658
36659 2008-09-28  Bruno Haible  <bruno@clisp.org>
36660
36661         * modules/posix_spawnp-tests: New file.
36662         * tests/test-posix_spawn.c: New file.
36663         * tests/test-posix_spawn.in.sh: New file.
36664
36665         New module 'posix_spawnp'.
36666         * modules/posix_spawnp: New file.
36667         * lib/spawnp.c: New file, from GNU libc with modifications.
36668         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
36669
36670         New module 'posix_spawn'.
36671         * modules/posix_spawn: New file.
36672         * lib/spawn.c: New file, from GNU libc with modifications.
36673         * doc/posix-functions/posix_spawn.texi: Mention the new module.
36674
36675         New module 'posix_spawnattr_destroy'.
36676         * modules/posix_spawnattr_destroy: New file.
36677         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
36678         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
36679         module.
36680
36681         New module 'posix_spawnattr_setsigmask'.
36682         * modules/posix_spawnattr_setsigmask: New file.
36683         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
36684         modifications.
36685         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
36686         new module.
36687
36688         New module 'posix_spawnattr_getsigmask'.
36689         * modules/posix_spawnattr_getsigmask: New file.
36690         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
36691         modifications.
36692         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
36693         new module.
36694
36695         New module 'posix_spawnattr_setsigdefault'.
36696         * modules/posix_spawnattr_setsigdefault: New file.
36697         * lib/spawnattr_setdefault.c: New file, from GNU libc with
36698         modifications.
36699         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
36700         new module.
36701
36702         New module 'posix_spawnattr_getsigdefault'.
36703         * modules/posix_spawnattr_getsigdefault: New file.
36704         * lib/spawnattr_getdefault.c: New file, from GNU libc with
36705         modifications.
36706         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
36707         new module.
36708
36709         New module 'posix_spawnattr_setschedpolicy'.
36710         * modules/posix_spawnattr_setschedpolicy: New file.
36711         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
36712         modifications.
36713         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
36714         new module.
36715
36716         New module 'posix_spawnattr_getschedpolicy'.
36717         * modules/posix_spawnattr_getschedpolicy: New file.
36718         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
36719         modifications.
36720         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
36721         new module.
36722
36723         New module 'posix_spawnattr_setschedparam'.
36724         * modules/posix_spawnattr_setschedparam: New file.
36725         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
36726         modifications.
36727         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
36728         new module.
36729
36730         New module 'posix_spawnattr_getschedparam'.
36731         * modules/posix_spawnattr_getschedparam: New file.
36732         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
36733         modifications.
36734         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
36735         new module.
36736
36737         New module 'posix_spawnattr_setpgroup'.
36738         * modules/posix_spawnattr_setpgroup: New file.
36739         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
36740         modifications.
36741         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
36742         module.
36743
36744         New module 'posix_spawnattr_getpgroup'.
36745         * modules/posix_spawnattr_getpgroup: New file.
36746         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
36747         modifications.
36748         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
36749         module.
36750
36751         New module 'posix_spawnattr_setflags'.
36752         * modules/posix_spawnattr_setflags: New file.
36753         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
36754         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
36755         module.
36756
36757         New module 'posix_spawnattr_getflags'.
36758         * modules/posix_spawnattr_getflags: New file.
36759         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
36760         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
36761         module.
36762
36763         New module 'posix_spawnattr_init'.
36764         * modules/posix_spawnattr_init: New file.
36765         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
36766         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
36767         module.
36768
36769         New module 'posix_spawn_file_actions_destroy'.
36770         * modules/posix_spawn_file_actions_destroy: New file.
36771         * lib/spawn_faction_destroy.c: New file, from GNU libc with
36772         modifications.
36773         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
36774         the new module.
36775
36776         New module 'posix_spawn_file_actions_addopen'.
36777         * modules/posix_spawn_file_actions_addopen: New file.
36778         * lib/spawn_faction_addopen.c: New file, from GNU libc with
36779         modifications.
36780         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
36781         the new module.
36782
36783         New module 'posix_spawn_file_actions_adddup2'.
36784         * modules/posix_spawn_file_actions_adddup2: New file.
36785         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
36786         modifications.
36787         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
36788         the new module.
36789
36790         New module 'posix_spawn_file_actions_addclose'.
36791         * modules/posix_spawn_file_actions_addclose: New file.
36792         * lib/spawn_faction_addclose.c: New file, from GNU libc with
36793         modifications.
36794         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
36795         the new module.
36796
36797         New module 'posix_spawn_file_actions_init'.
36798         * modules/posix_spawn_file_actions_init: New file.
36799         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
36800         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
36801         new module.
36802
36803         New module 'posix_spawn-internal'.
36804         * modules/posix_spawn-internal: New file.
36805         * lib/spawn_int.h: New file, from GNU libc with modifications.
36806         * lib/spawni.c: New file, from GNU libc with modifications.
36807         * m4/posix_spawn.m4: New file.
36808
36809         New module 'spawn'.
36810         * modules/spawn: New file.
36811         * lib/spawn.in.h: New file, from GNU libc with modifications.
36812         * m4/spawn_h.m4: New file.
36813         * doc/posix-headers/spawn.texi: Mention the new module.
36814
36815 2008-09-28  Bruno Haible  <bruno@clisp.org>
36816
36817         * modules/sched-tests: New file.
36818         * tests/test-sched.c: New file.
36819
36820         New module 'sched'.
36821         * modules/sched: New file.
36822         * lib/sched.in.h: New file.
36823         * m4/sched_h.m4: New file.
36824         * doc/posix-headers/sched.texi: Mention the new module.
36825
36826 2008-09-27  Eric Blake  <ebb9@byu.net>
36827
36828         Fix previous patch, and tweak references to $0.
36829         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
36830         (func_version, func_gnulib_dir): Don't call this program
36831         gnulib-tool.
36832         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
36833         with using $0 in function.
36834         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
36835         (func_fatal_error): Reuse the name the user invoked us with.
36836
36837 2008-09-27  Bruno Haible  <bruno@clisp.org>
36838
36839         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
36840         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
36841         (gl_ICONV_H): Not here.
36842         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36843         instead of assigning ICONV_H directly.
36844
36845         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
36846         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
36847         WCHAR_H directly.
36848
36849 2008-09-27  Bruno Haible  <bruno@clisp.org>
36850
36851         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
36852         * modules/arpa_inet (Depends-on): Add link-warning.
36853         (Makefile.am): Insert the definition of GL_LINK-WARNING.
36854         * modules/unistd (Makefile.am): Likewise.
36855
36856 2008-09-26  Bruno Haible  <bruno@clisp.org>
36857
36858         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
36859         variables.
36860         (func_version): Essentially copied from gnulib-tool.
36861         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
36862         func_readlink): Copied from gnulib-tool.
36863
36864 2008-09-26  Bruno Haible  <bruno@clisp.org>
36865
36866         * gnulib-tool (func_version): Change directory to $gnulib_dir before
36867         invoking git-version-gen.
36868
36869 2008-09-26  Bruno Haible  <bruno@clisp.org>
36870
36871         * posix-modules: Update to directory names changed on 2008-01-19.
36872         Remove commas in output before splitting into words. No more need to
36873         avoid 'ftruncate' since 2007-02-19.
36874
36875 2008-09-26  Bruno Haible  <bruno@clisp.org>
36876
36877         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
36878
36879 2008-09-26  Bruno Haible  <bruno@clisp.org>
36880
36881         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
36882         * modules/fwriteerror (Depends-on): Add errno.
36883
36884 2008-09-26  Bruno Haible  <bruno@clisp.org>
36885
36886         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
36887         * tests/test-vc-list-files-cvs.sh: Likewise.
36888
36889 2008-09-26  Bruno Haible  <bruno@clisp.org>
36890
36891         * doc/posix-headers/sys_resource.texi: Reorder items.
36892
36893 2008-09-26  Jim Meyering  <meyering@redhat.com>
36894
36895         fts: tweak inode comparison function
36896         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
36897         inode numbers, as documented.
36898
36899         fts: sort dirent entries on inode number before traversing
36900         This avoids a quadratic, seek-related performance penalty when
36901         operating on a directory containing many entries (measurable at 10k;
36902         3.5 hours at 2 million entries with a cold cache) on certain types
36903         of file systems, including ext3 and ext4, but not tmpfs.
36904         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
36905         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
36906         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
36907         (fs_handles_readdir_ordered_dirents_efficiently): New function.
36908         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
36909         (fts_build): Set the stat.st_ino member from D_INO.
36910         If it is likely to be useful, sort dirent entries on inode number.
36911
36912         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
36913         and the struct statfs.f_type member.
36914         * modules/fts (Depends-on): Add d-ino.
36915
36916 2008-09-26  Bruno Haible  <bruno@clisp.org>
36917
36918         * modules/sigpipe-die (Depends-on): Add sigpipe.
36919
36920         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
36921         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
36922         and GNULIB_STDIO_H_SIGPIPE are set.
36923         * lib/stdio-write.c: New file.
36924         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
36925         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36926         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36927         REPLACE_STDIO_WRITE_FUNCS.
36928         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
36929         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36930         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36931         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36932         * modules/stdio (Files): Add lib/stdio-write.c.
36933         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
36934         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36935         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36936         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36937         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
36938         REPLACE_FPRINTF_POSIX.
36939         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
36940         REPLACE_PRINTF_POSIX.
36941         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
36942         REPLACE_VFPRINTF_POSIX.
36943         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
36944         REPLACE_VPRINTF_POSIX.
36945         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
36946         SIGPIPE issue.
36947         * doc/posix-functions/fputc.texi: Likewise.
36948         * doc/posix-functions/fputs.texi: Likewise.
36949         * doc/posix-functions/fwrite.texi: Likewise.
36950         * doc/posix-functions/printf.texi: Likewise.
36951         * doc/posix-functions/putc.texi: Likewise.
36952         * doc/posix-functions/putchar.texi: Likewise.
36953         * doc/posix-functions/puts.texi: Likewise.
36954         * doc/posix-functions/vfprintf.texi: Likewise.
36955         * doc/posix-functions/vprintf.texi: Likewise.
36956
36957         * modules/safe-write (Depends-on): Add write.
36958
36959         * modules/sigpipe-tests: New file.
36960         * tests/test-sigpipe.c: New file.
36961         * tests/test-sigpipe.sh: New file.
36962
36963         * modules/write: New file.
36964         * lib/unistd.in.h: Include <sys/types.h>.
36965         (write): New declaration.
36966         * lib/write.c: New file.
36967         * m4/write.m4: New file.
36968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36969         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
36970         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
36971         GNULIB_WRITE, REPLACE_WRITE.
36972         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
36973         and the SIGPIPE issue.
36974
36975         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
36976         (raise): New declaration.
36977         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
36978         (ext_signal): New function.
36979         (rpl_raise): New function.
36980         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
36981         GNULIB_SIGNAL_H_SIGPIPE.
36982         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
36983         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
36984
36985         * modules/sigpipe: New file.
36986         * m4/sigpipe.m4: New file.
36987
36988 2008-09-25  Derek Price  <derek@ximbiot.com>
36989             Bruno Haible  <bruno@clisp.org>
36990
36991         * gnulib-tool (func_import): Report all license incompatibilities, not
36992         just the first one.
36993
36994 2008-09-25  Bruno Haible  <bruno@clisp.org>
36995
36996         * gnulib-tool (func_import): When computing the edits, consider not
36997         only the Makefile.ams that exist but also those that will be generated.
36998
36999 2008-09-25  Simon Josefsson  <simon@josefsson.org>
37000
37001         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
37002         fixes gnulib-tool --test warning about duplicate dependency.
37003
37004 2008-09-25  Bruno Haible  <bruno@clisp.org>
37005
37006         * gnulib-tool: Don't ask the user to perform edits in the generated
37007         Makefile.ams.
37008         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
37009         apply to the Makefile.am being generated.
37010         (func_emit_tests_Makefile_am): Execute edits that apply to the
37011         Makefile.am being generated.
37012         (func_import): Setup list of Makefile.am edits before emitting the
37013         Makefile.ams, not at the end.
37014         (func_create_testdir): Update.
37015         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37016
37017 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37018
37019         * gnulib-tool (func_import): Store the --tests-base option in the
37020         comment in gnulib-cache.m4.
37021
37022 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
37023
37024         * NEWS: Document increased portability that sys_select now provides.
37025
37026         * lib/sys_select.in.h: Install select wrapper.
37027         * lib/sys_socket.in.h: Use more descriptive name when there is no
37028         select wrapper.
37029         * lib/winsock-select.c: New.
37030         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
37031         Require gl_HEADER_SYS_SOCKET.
37032         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
37033         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
37034         * tests/test-sys_select.c: Add functional tests.
37035
37036 2008-09-24  Eric Blake  <ebb9@byu.net>
37037
37038         open, fopen: close fd leak in last patch
37039         * lib/open.c (rpl_open): Close fd before returning error.
37040         * lib/fopen.c (rpl_fopen): Close fd before returning error.
37041         * doc/posix-functions/open.texi (open): Document that Irix also
37042         has the bug.
37043         * doc/posix-functions/fopen.texi (fopen): Likewise.
37044         Reported by Paolo Bonzini.
37045
37046 2008-09-24  Bruno Haible  <bruno@clisp.org>
37047
37048         Ensure that a filename ending in a slash cannot be used to access a
37049         non-directory.
37050         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
37051         to check whether it's really a directory.
37052         * lib/fopen.c: Include fcntl.h, unistd.h.
37053         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
37054         and fdopen().
37055         * modules/fopen (Depends-on): Add unistd.
37056         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
37057         * tests/test-fopen.c (main): Likewise.
37058         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
37059         * doc/posix-functions/fopen.texi: Likewise.
37060         Reported by Eric Blake.
37061
37062 2008-09-23  Eric Blake  <ebb9@byu.net>
37063
37064         c-stack: avoid compiler optimizations when provoking overflow
37065         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
37066         recursion harder to optimize, to ensure a stack overflow occurs.
37067         * tests/test-c-stack.c (recurse): Likewise.
37068         Borrowed from libsigsegv.
37069
37070         c-stack: work around Irix sigaltstack bug
37071         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
37072         whether sigaltstack uses wrong end of stack_t (copied in part from
37073         libsigsegv).
37074         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
37075         Irix bug, without requiring an over-allocation.
37076         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
37077         bug.
37078
37079         fopen: document mingw bug on directories
37080         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
37081         not allowing a stream visiting a directory, even though reading
37082         from such a stream is not portable.
37083
37084 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37085
37086         * lib/poll.c: Rewrite.
37087         * modules/poll: Depend on alloca.
37088
37089 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37090
37091         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
37092         instead define prototypes for a full set of wrappers.  Ensure
37093         that Cygwin does not use the compatibility code, which is only
37094         for MinGW.
37095         * lib/winsock.c: New.
37096         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
37097         * modules/sys_socket: Add lib/winsock.c.
37098
37099         * modules/poll-tests: Add errno and perror.
37100         * tests/test-poll.c: Use ioctl, not ioctlsocket.
37101
37102 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37103
37104         * tests/test-poll.c: Downgrade minimum needed Winsock version.
37105
37106 2008-09-23  Bruno Haible  <bruno@clisp.org>
37107
37108         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
37109         * doc/glibc-functions/*: Likewise.
37110
37111 2008-09-23  Simon Josefsson  <simon@josefsson.org>
37112
37113         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
37114         success.
37115
37116 2008-09-22  Eric Blake  <ebb9@byu.net>
37117             Bruno Haible  <bruno@clisp.org>
37118
37119         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
37120         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
37121         supply %A but mishandle pseudo-NaN.
37122         Reported by Simon Josefsson.
37123
37124 2008-09-21  Bruno Haible  <bruno@clisp.org>
37125
37126         * tests/test-lock.c (main): Tweak skip message.
37127         * tests/test-tls.c (main): Likewise.
37128
37129 2008-09-21  Bruno Haible  <bruno@clisp.org>
37130
37131         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
37132         whether 'struct sigaction' has sa_sigaction here...
37133         (gl_PREREQ_SIG_HANDLER_H): ... not here.
37134         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
37135
37136 2008-09-21  Bruno Haible  <bruno@clisp.org>
37137
37138         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
37139         section.
37140         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
37141         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
37142         the new section.
37143         (Support for obsolete systems lacking POSIX:2001): New section.
37144         (String handling <string.h>): Move strdup to the new section.
37145         Suggested by Simon Josefsson and Paolo Bonzini.
37146
37147 2008-09-21  Bruno Haible  <bruno@clisp.org>
37148
37149         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
37150         exponents in %e and %g results on 'long double'. Needed for mingw's
37151         improved *printf functions.
37152         * tests/test-vasprintf-posix.c (test_function): Likewise.
37153         * tests/test-snprintf-posix.h (test_function): Likewise.
37154         * tests/test-sprintf-posix.h (test_function): Likewise.
37155         Reported by Eric Blake.
37156
37157 2008-09-21  Bruno Haible  <bruno@clisp.org>
37158
37159         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
37160         * tests/test-sprintf-posix.h (test_function): Likewise.
37161
37162 2008-09-21  Bruno Haible  <bruno@clisp.org>
37163
37164         * modules/getpass (Depends-on): Add strdup-posix.
37165
37166         New module 'strdup-posix'.
37167         * modules/strdup-posix: New file.
37168         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
37169         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
37170         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37171         REPLACE_STRDUP.
37172         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
37173         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
37174         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37175         strdup-posix.
37176
37177         * modules/strdup (Depends-on): Remove malloc-posix.
37178
37179 2008-09-20  Bruno Haible  <bruno@clisp.org>
37180
37181         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
37182         Wildenhues.
37183
37184 2008-09-20  Bruno Haible  <bruno@clisp.org>
37185
37186         Ensure that wint_t gets defined on IRIX 5.3.
37187         * lib/wchar.in.h (wint_t): Define if not defined by the system.
37188         * lib/wctype.in.h (wint_t): Likewise.
37189         (__wctype_wint_t): Remove type.
37190         (isw*): Use wint_t instead of __wctype_wint_t.
37191         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
37192         * modules/wchar (Files): Add m4/wint_t.m4.
37193         (Makefile.am): Substitute HAVE_WINT_T.
37194         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
37195         * tests/test-wctype.c: Check that wint_t is defined.
37196         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
37197         * doc/posix-headers/wctype.texi: Likewise.
37198         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37199
37200 2008-09-18  Bruno Haible  <bruno@clisp.org>
37201
37202         * gnulib-tool (func_exit): Update comment.
37203
37204 2008-09-18  Simon Josefsson  <simon@josefsson.org>
37205
37206         * modules/getaddrinfo (Depends-on): Remove strdup, this module
37207         assumes strdup exists and does not depend on strdup to return
37208         ENOMEM on out of memory conditions.
37209
37210 2008-09-18  Bruno Haible  <bruno@clisp.org>
37211
37212         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
37213         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
37214         digits for the exponent.
37215
37216 2008-09-18  Jim Meyering  <meyering@redhat.com>
37217             Bruno Haible  <bruno@clisp.org>
37218
37219         * lib/vasnprintf.c (decimal_point_char): Define also if
37220         NEED_PRINTF_INFINITE_LONG_DOUBLE.
37221
37222 2008-09-16  Bruno Haible  <bruno@clisp.org>
37223         and Eric Blake  <ebb9@byu.net>
37224
37225         vasnprintf: support Irix 5.3
37226         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
37227         that mishandle long double infinity.
37228         Reported by Tom G. Christensen.
37229
37230 2008-09-16  Bruno Haible  <bruno@clisp.org>
37231
37232         * doc/glibc-functions/scandir.texi: Mention the function is missing on
37233         Solaris 9.
37234         * doc/glibc-functions/alphasort.texi: Likewise.
37235         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
37236
37237 2008-09-16  Jim Meyering  <meyering@redhat.com>
37238
37239         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
37240         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
37241         a umask modification leak out of a subshell.  Otherwise, the
37242         opensolaris /bin/sh would be accepted and thus cause unwarranted
37243         failures in the coreutils test suite.
37244
37245 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
37246
37247         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
37248         to succeed.
37249
37250 2008-09-16  Jim Meyering  <meyering@redhat.com>
37251
37252         avoid spurious test failure when library is built without ACL support
37253         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
37254         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
37255         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
37256         * tests/test-copy-acl.sh: Likewise.
37257
37258 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37259
37260         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
37261         based on character occurrence counts.
37262
37263 2008-09-15  Eric Blake  <ebb9@byu.net>
37264
37265         tests: avoid some compiler warnings
37266         * tests/test-memchr.c (main): Pass NULL indirectly.
37267         * tests/test-closein.c (main): Avoid unused variable.
37268
37269 2008-09-15  Bruno Haible  <bruno@clisp.org>
37270
37271         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
37272         are missing on OpenBSD 4.0 individually.
37273         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37274
37275 2008-09-15  Bruno Haible  <bruno@clisp.org>
37276
37277         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
37278         * doc/posix-functions/strerror.texi: Mention also Cygwin.
37279         * doc/posix-functions/perror.texi: Likewise.
37280         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
37281         is missing.
37282         Reported by Eric Blake.
37283
37284         * lib/errno.in.h: Use replacement values >= 2000.
37285         Reported by Eric Blake.
37286
37287 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37288
37289         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
37290         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
37291         limit.
37292         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
37293         compareseq was aborted.
37294
37295 2008-09-14  Bruno Haible  <bruno@clisp.org>
37296
37297         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
37298         yvec_edit_count.
37299         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
37300         (fstrcmp_bounded): Simplify result computation accordingly.
37301
37302 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37303
37304         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
37305         (fstrcmp): Define in terms of fstrcmp_bounded.
37306         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
37307         lower_bound argument.
37308         Return quickly if the result is certainly < lower_bound.
37309         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
37310
37311 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37312
37313         * lib/diffseq.h (EARLY_ABORT): New macro.
37314         (compareseq): Change return type to bool. Return true when EARLY_ABORT
37315         evaluates to true.
37316
37317 2008-09-14  Bruno Haible  <bruno@clisp.org>
37318
37319         * modules/perror-tests: New file.
37320         * tests/test-perror.sh: New file.
37321         * tests/test-perror.c: New file.
37322
37323         New module 'perror'.
37324         * lib/stdio.in.h (perror): New declaration.
37325         * lib/perror.c: New file.
37326         * m4/perror.m4: New file.
37327         * modules/perror: New file.
37328         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
37329         * doc/posix-functions/perror.texi: Mention the perror module.
37330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
37331         REPLACE_PERROR.
37332         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
37333         REPLACE_PERROR.
37334
37335 2008-09-14  Bruno Haible  <bruno@clisp.org>
37336
37337         * modules/stdio (Makefile.am): Reorder to match the order in
37338         lib/stdio.in.h.
37339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37340
37341 2008-09-13  Bruno Haible  <bruno@clisp.org>
37342
37343         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
37344
37345 2008-09-13  Bruno Haible  <bruno@clisp.org>
37346
37347         Extend strerror to cover the added errno values.
37348         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
37349         (rpl_strerror): Provide error messages for the added errno values and
37350         for the WSA* values.
37351         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
37352         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
37353         strerror.
37354         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
37355         * modules/strerror (Depends-on): Add errno.
37356         * doc/posix-functions/strerror.texi: Document the change.
37357         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
37358         and EOVERFLOW.
37359
37360 2008-09-13  Bruno Haible  <bruno@clisp.org>
37361
37362         * modules/EOVERFLOW: Remove file.
37363         * m4/eoverflow.m4: Remove file.
37364         * modules/EOVERFLOW-tests: Remove file.
37365         * tests/test-EOVERFLOW.c: Remove file.
37366         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
37367         * modules/ftell (Depends-on): Likewise.
37368         * modules/getdelim (Depends-on): Likewise.
37369         * modules/getugroups (Depends-on): Likewise.
37370         * modules/poll (Depends-on): Likewise.
37371         * modules/snprintf (Depends-on): Likewise.
37372         * modules/sprintf-posix (Depends-on): Likewise.
37373         * modules/vasnprintf (Depends-on): Likewise.
37374         * modules/vasprintf (Depends-on): Likewise.
37375         * modules/vfprintf-posix (Depends-on): Likewise.
37376         * modules/vsnprintf (Depends-on): Likewise.
37377         * modules/vsprintf-posix (Depends-on): Likewise.
37378         * modules/xvasprintf (Depends-on): Likewise.
37379         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37380         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
37381         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
37382         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
37383         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37384         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
37385         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
37386         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
37387         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37388         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
37389         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
37390         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
37391         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37392         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
37393         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
37394         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
37395         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37396         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
37397         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
37398         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
37399         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37400         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
37401         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
37402         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
37403         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
37404         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37405         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
37406         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
37407         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
37408         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
37409         * MODULES.html.sh: Remove EOVERFLOW.
37410         * NEWS: Mention the change.
37411
37412 2008-09-13  Bruno Haible  <bruno@clisp.org>
37413
37414         * modules/errno-tests: New file.
37415         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
37416
37417         * lib/errno.in.h: New file.
37418         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
37419         * modules/errno: New file.
37420         * doc/posix-headers/errno.texi: Update documentation.
37421         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
37422
37423 2008-09-13  Bruno Haible  <bruno@clisp.org>
37424
37425         * tests/test-poll.c: Use #if for native Windows, rather than testing
37426         __MSVCRT__.
37427
37428 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37429             Bruno Haible  <bruno@clisp.org>
37430
37431         * lib/glob.c: Don't include <pwd.h> on native Windows.
37432         (WINDOWS32): New macro.
37433         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
37434
37435 2008-09-13  Bruno Haible  <bruno@clisp.org>
37436
37437         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
37438         (ETIMEDOUT): Remove macro.
37439         (glthread_cond_timedwait_multithreaded): New declaration.
37440         (glthread_cond_timedwait): Use it.
37441         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
37442         (glthread_cond_timedwait_multithreaded): New function.
37443
37444 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37445
37446         * modules/poll-tests: Do not check for io.h.
37447         * tests/test-poll.c: Check for __MSVCRT__ instead.
37448
37449 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37450
37451         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
37452         * modules/poll-tests: Add inet_pton, stdbool, sockets.
37453         * tests/test-poll.c: Use them.  Use _pipe on Windows.
37454
37455 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37456
37457         * modules/poll-tests: New.
37458         * tests/test-poll.c: New.
37459
37460 2008-09-12  Eric Blake  <ebb9@byu.net>
37461
37462         frexp: test for NetBSD failure on -0.0
37463         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
37464         not all, bugs from NetBSD 3.0 have been fixed.
37465         * doc/posix-functions/frexp.texi (frexp): Document bug.
37466         Reported by Thomas Klausner.
37467
37468         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
37469         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
37470         literal -0.0.
37471         Reported by Jonathan C. Patschke <jp@centtech.com>.
37472
37473 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37474
37475         * lib/glthread/cond.h: Use dummy implementation also if
37476         USE_WIN32_THREADS.
37477
37478 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37479
37480         * modules/fnmatch-posix (License): Change to LGPLv2+.
37481         * modules/fnmatch-gnu (License): Likewise.
37482
37483 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37484
37485         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
37486
37487 2008-09-11  Jim Meyering  <meyering@redhat.com>
37488
37489         * users.txt: Add gtk-vnc.
37490
37491 2008-09-08  Simon Josefsson  <simon@josefsson.org>
37492
37493         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
37494         rotate amounts.
37495
37496         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
37497         required for 16-bit and 8-bit rotates.
37498         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
37499         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
37500         UINT8_MAX instead of hard-coded constants.
37501         Suggested by Paul Eggert.
37502
37503 2008-09-07  Bruno Haible  <bruno@clisp.org>
37504
37505         * tests/test-striconveh.c (main): Check behaviour when converting from
37506         UTF-7.
37507
37508         Make striconveh work better with stateful encodings.
37509         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
37510         that iconv does not increment the inptr when returning -1/EINVAL.
37511
37512 2008-09-07  Bruno Haible  <bruno@clisp.org>
37513
37514         * build-aux/config.rpath: Update according to libtool-2.2.6.
37515         * build-aux/config.libpath: Likewise.
37516
37517 2008-09-06  Bruno Haible  <bruno@clisp.org>
37518
37519         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
37520         * lib/freadptr.c (freadptr): Likewise.
37521         * lib/freadseek.c (freadptrinc): Likewise.
37522         Reported by Simon Josefsson.
37523
37524 2008-09-06  Bruno Haible  <bruno@clisp.org>
37525
37526         * modules/freadptr (License): Change to LGPLv2+.
37527         * modules/freadseek (License): Likewise.
37528         Suggested by Eric Blake.
37529
37530         * modules/memchr2 (License): Change to LGPLv2+.
37531         Approved by Eric Blake.
37532
37533 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37534             Bruno Haible  <bruno@clisp.org>
37535
37536         Make gnulib-tool work with native 'sed' on AIX.
37537         * gnulib-tool (sed_noop): New variable.
37538         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
37539         func_add_or_update, func_create_testdir): Use it to initialize sed
37540         script variables.
37541         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37542
37543 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
37544             Bruno Haible  <bruno@clisp.org>
37545
37546         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
37547         also works after #include directives.
37548
37549 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
37550
37551         getdate.y: reject an out-of-range timezone value
37552         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
37553         the range [-24...+24].  When specified with only one or two digits,
37554         * tests/test-getdate.c: Tests for the fix.
37555         * doc/getdate.texi: Document this change.
37556
37557 2008-09-03  Bruno Haible  <bruno@clisp.org>
37558
37559         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
37560
37561 2008-09-02  Simon Josefsson  <simon@josefsson.org>
37562
37563         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
37564         <bruce.korb@gmail.com> with ideas from Ben Pfaff
37565         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
37566         Blake <ebb9@byu.net>.
37567
37568         * tests/test-bitrotate.c: Add more test vectors.
37569
37570 2008-09-02  Eric Blake  <ebb9@byu.net>
37571
37572         vasnprintf-posix: handle large precision via %.*d
37573         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
37574         when handling it ourselves.
37575         * tests/test-vasnprintf-posix.c (test_function): Add test.
37576         * tests/test-snprintf-posix.h (test_function): Likewise.
37577         * tests/test-sprintf-posix.h (test_function): Likewise.
37578         * tests/test-vasprintf-posix.c (test_function): Likewise.
37579         Reported by Alain Guibert.
37580
37581 2008-09-01  Eric Blake  <ebb9@byu.net>
37582
37583         c-stack: make configure-time check more robust
37584         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
37585         successful sigaction call.
37586         Reported by Tom G. Christensen.
37587
37588 2008-09-01  Bruno Haible  <bruno@clisp.org>
37589
37590         New module 'findprog-lgpl'.
37591         * modules/findprog-lgpl: New file.
37592         * lib/findprog-lgpl.c: New file.
37593         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
37594         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
37595         to decide whether to use strdup or xstrdup, concatenated_filename or
37596         xconcatenated_filename.
37597
37598 2008-09-01  Bruno Haible  <bruno@clisp.org>
37599
37600         Split module 'concat-filename' into 'concat-filename' (LGPL) and
37601         'xconcat-filename' (GPL).
37602         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
37603         (License): Change to LGPLv2+.
37604         * modules/xconcat-filename: New file.
37605         * lib/concat-filename.h (concatenated_filename): Change specification.
37606         (xconcatenated_filename): New declaration.
37607         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
37608         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
37609         memory situations.
37610         * lib/xconcat-filename.c: New file.
37611         * NEWS: Mention the change.
37612         * lib/findprog.c: Include concat-filename.h, not filename.h.
37613         (find_in_path): Use xconcatenated_filename instead of
37614         concatenated_filename.
37615         * lib/javacomp.c: Include concat-filename.h, not filename.h.
37616         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37617         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37618         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37619         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
37620         instead of concatenated_filename.
37621         * lib/javaexec.c: Include concat-filename.h, not filename.h.
37622         (execute_java_class): Use xconcatenated_filename instead of
37623         concatenated_filename.
37624         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
37625         * modules/javacomp (Depends-on): Likewise.
37626         * modules/javaexec (Depends-on): Likewise.
37627
37628 2008-09-01  Bruno Haible  <bruno@clisp.org>
37629
37630         Split module 'filename' into 'filename' and 'concat-filename'.
37631         * modules/filename: Keep only lib/filename.h.
37632         (License): Change to LGPLv2+.
37633         * modules/concat-filename: New file, extracted from modules/filename.
37634         * lib/filename.h (concatenated_filename): Remove declaration.
37635         * lib/concat-filename.h: New file, extracted from lib/filename.h.
37636         * lib/concat-filename.c: Include concat-filename.h.
37637         * NEWS: Mention the change.
37638
37639 2008-09-01  Simon Josefsson  <simon@josefsson.org>
37640
37641         * lib/bitrotate.h (rotl8, rotr8): Add.
37642
37643         * modules/bitrotate (configure.ac): Need
37644         AC_REQUIRE([AC_C_INLINE]).
37645         (Description): Mention stdint.h.  Reported by Bruno Haible
37646         <bruno@clisp.org>.
37647
37648         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
37649         Paolo Bonzini <bonzini@gnu.org>.
37650
37651 2008-08-31  Bruno Haible  <bruno@clisp.org>
37652
37653         Assume Solaris specific bi-arch conventions on Solaris systems.
37654         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
37655         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
37656         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
37657         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
37658         like acl_libdirstem.
37659         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
37660         acl_libdirstem.
37661         * NEWS: Mention the change.
37662         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
37663
37664 2008-08-31  Jim Meyering  <meyering@redhat.com>
37665
37666         * lib/strftime.h: Add comments describing the two added arguments.
37667
37668         remove duplicate #include directives
37669         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
37670         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
37671
37672 2008-08-31  Bruno Haible  <bruno@clisp.org>
37673
37674         New module 'sigpipe-die'.
37675         * modules/sigpipe-die: New file.
37676         * lib/sigpipe-die.h: New file.
37677         * lib/sigpipe-die.c: New file.
37678         * MODULES.html.sh (Signal handling): Add sigpipe-die.
37679
37680 2008-08-31  Bruno Haible  <bruno@clisp.org>
37681
37682         Don't override previously installed signal handlers.
37683         * lib/fatal-signal.c (saved_sigactions): New variable.
37684         (uninstall_handlers): Reset the signal to the saved handler, not
37685         to SIG_DFL (except when ignored).
37686         (install_handlers): Save the previous handlers.
37687
37688 2008-08-30  Bruno Haible  <bruno@clisp.org>
37689
37690         * gnulib-tool (func_reset_sigpipe): New function.
37691         (func_get_automake_snippet, func_modules_transitive_closure,
37692         func_import): Invoke it before a join command that reads from stdin,
37693         to avoid "echo: write error: Broken pipe" error messages on stderr.
37694         Reported by Sam Steingold <sds@gnu.org>.
37695
37696 2008-08-30  Bruno Haible  <bruno@clisp.org>
37697
37698         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
37699         Code copied from m4/open.m4.
37700         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
37701         access and the filename ends in a slash. Code copied from lib/open.c.
37702         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
37703         * tests/test-fopen.c (main): Check against bug with trailing slash.
37704
37705 2008-08-29  Bruno Haible  <bruno@clisp.org>
37706
37707         Avoid some "gcc -pedantic" warnings.
37708         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
37709         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
37710         * lib/dirent.in.h: Likewise.
37711         * lib/fcntl.in.h: Likewise.
37712         * lib/float.in.h: Likewise.
37713         * lib/iconv.in.h: Likewise.
37714         * lib/inttypes.in.h: Likewise.
37715         * lib/locale.in.h: Likewise.
37716         * lib/math.in.h: Likewise.
37717         * lib/netinet_in.in.h: Likewise.
37718         * lib/search.in.h: Likewise.
37719         * lib/signal.in.h: Likewise.
37720         * lib/stdarg.in.h: Likewise.
37721         * lib/stdint.in.h: Likewise.
37722         * lib/stdio.in.h: Likewise.
37723         * lib/stdlib.in.h: Likewise.
37724         * lib/string.in.h: Likewise.
37725         * lib/strings.in.h: Likewise.
37726         * lib/sys_select.in.h: Likewise.
37727         * lib/sys_socket.in.h: Likewise.
37728         * lib/sys_stat.in.h: Likewise.
37729         * lib/sys_time.in.h: Likewise.
37730         * lib/sysexits.in.h: Likewise.
37731         * lib/time.in.h: Likewise.
37732         * lib/unistd.in.h: Likewise.
37733         * lib/wchar.in.h: Likewise.
37734         * lib/wctype.in.h: Likewise.
37735         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
37736         * modules/fchdir (Makefile.am): Likewise.
37737         * modules/fcntl (Makefile.am): Likewise.
37738         * modules/float (Makefile.am): Likewise.
37739         * modules/iconv_open (Makefile.am): Likewise.
37740         * modules/inttypes (Makefile.am): Likewise.
37741         * modules/locale (Makefile.am): Likewise.
37742         * modules/math (Makefile.am): Likewise.
37743         * modules/netinet_in (Makefile.am): Likewise.
37744         * modules/search (Makefile.am): Likewise.
37745         * modules/signal (Makefile.am): Likewise.
37746         * modules/stdarg (Makefile.am): Likewise.
37747         * modules/stdint (Makefile.am): Likewise.
37748         * modules/stdio (Makefile.am): Likewise.
37749         * modules/stdlib (Makefile.am): Likewise.
37750         * modules/string (Makefile.am): Likewise.
37751         * modules/strings (Makefile.am): Likewise.
37752         * modules/sys_select (Makefile.am): Likewise.
37753         * modules/sys_socket (Makefile.am): Likewise.
37754         * modules/sys_stat (Makefile.am): Likewise.
37755         * modules/sys_time (Makefile.am): Likewise.
37756         * modules/sysexits (Makefile.am): Likewise.
37757         * modules/time (Makefile.am): Likewise.
37758         * modules/unistd (Makefile.am): Likewise.
37759         * modules/wchar (Makefile.am): Likewise.
37760         * modules/wctype (Makefile.am): Likewise.
37761         Reported by Reuben Thomas <rrt@sc3d.org>.
37762
37763 2008-08-29  Bruno Haible  <bruno@clisp.org>
37764
37765         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
37766         any more.
37767
37768 2008-08-29  Simon Josefsson  <simon@josefsson.org>
37769
37770         * MODULES.html.sh (Misc): Add bitrotate.
37771
37772         * modules/bitrotate: New file.
37773
37774         * lib/bitrotate.h: New file.
37775
37776         * modules/bitrotate-tests: New file.
37777
37778         * tests/test-bitrotate.c: New file.
37779
37780         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
37781         on the bitrotate module.
37782
37783         * lib/arctwo.c: Use new bitrotate module.
37784
37785 2008-08-29  Jim Meyering  <meyering@redhat.com>
37786
37787         bootstrap: merge changes from coreutils
37788         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
37789         of copied files.  Remove a kludge, now that this is fixed.
37790         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
37791         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
37792         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
37793
37794 2008-08-29  Bruno Haible  <bruno@clisp.org>
37795
37796         * MODULES.html.sh: Remove --cvs-urls option.
37797
37798 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
37799
37800         maint.mk: adjust to file name change
37801         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
37802
37803 2008-08-28  Jim Meyering  <meyering@redhat.com>
37804
37805         * modules/getndelim2 (License): Relicense to LGPLv2+.
37806         Approved by Richard Stallman for the version of 1995, and by
37807         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
37808
37809 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
37810
37811         * lib/getdelim.c (flockfile, funlockfile): Make all of them
37812         dummy if one is not available.  Do not touch them if
37813         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
37814         (getc_maybe_unlocked): New.
37815         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
37816
37817 2008-08-26  Eric Blake  <ebb9@byu.net>
37818
37819         doc/INSTALL: resync from autoconf
37820         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
37821         (INSTALL_PRELUDE): Delete; this is done more efficiently by
37822         moving...
37823         * install.texi [!autoconf]: ...here.  Resync from autoconf.
37824         * INSTALL: Regenerate.
37825         * INSTALL.ISO: New file.
37826         * INSTALL.UTF-8: Likewise.
37827
37828 2008-08-26  Jim Meyering  <meyering@redhat.com>
37829
37830         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
37831         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
37832         these definitions conditional, so that they may be overridden, too.
37833
37834 2008-08-26  Bruno Haible  <bruno@clisp.org>
37835
37836         Generate INSTALL file variants with prettier quotes.
37837         * doc/Makefile (INSTALL_PRELUDE): New macro.
37838         (INSTALL): Use it.
37839         (INSTALL.ISO, INSTALL.UTF-8): New rules.
37840
37841 2008-08-26  Bruno Haible  <bruno@clisp.org>
37842
37843         Run makeinfo in an English locale.
37844         * doc/Makefile (MAKEINFO): New variable.
37845
37846 2008-08-26  Bruno Haible  <bruno@clisp.org>
37847
37848         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
37849         Suggested by Eric Blake.
37850
37851 2008-08-25  Bruno Haible  <bruno@clisp.org>
37852
37853         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
37854
37855 2008-08-25  Eric Blake  <ebb9@byu.net>
37856
37857         c-stack: test that stack overflow can be caught
37858         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
37859         that platform allows handling stack overflow; at least OS/2 EMX
37860         has sigaltstack, but crashes before transferring control to
37861         handler on stack overflow.
37862         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
37863         check for HAVE_STACK_OVERFLOW_HANDLING.
37864         Reported by Elbert Pol.
37865
37866 2008-08-25  Bruno Haible  <bruno@clisp.org>
37867
37868         * doc/posix-functions/strftime.texi: Fix description of strftime
37869         module.
37870
37871 2008-08-24  Bruno Haible  <bruno@clisp.org>
37872
37873         * tests/uniwidth/test-uc_width2.c: New file.
37874         * tests/uniwidth/test-uc_width2.sh: New file.
37875         * modules/uniwidth/width-tests (Files): Add the new files.
37876         (TESTS): Add uniwidth/test-uc_width2.sh.
37877         (TESTS_ENVIRONMENT): New variable.
37878         (check_PROGRAMS): Add test-uc_width2.
37879         (test_uc_width2_SOURCES): New variable.
37880
37881         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
37882         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
37883         not 0x00AB.
37884         Reported by Alexander V. Lukyanov <lav@netis.ru>.
37885
37886 2008-08-22  Eric Blake  <ebb9@byu.net>
37887
37888         test-lock, test-tls: mention why a test is skipped
37889         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
37890         skipped.
37891         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
37892
37893         count-one-bits: relax license
37894         * modules/count-one-bits (License): Relicense to LGPLv2+.
37895         Suggested by Ludovic Courtès, approved by Ben Pfaff.
37896
37897 2008-08-22  Andreas Schwab  <schwab@suse.de>
37898
37899         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37900         Remove spurious space in assignment.
37901
37902 2008-08-21  Simon Josefsson  <simon@josefsson.org>
37903
37904         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
37905         Paul Eggert <eggert@CS.UCLA.EDU>.
37906
37907 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
37908
37909         * modules/gettext: Add m4/threadlib.m4.
37910
37911 2008-08-19  Eric Blake  <ebb9@byu.net>
37912
37913         test-c-stack: fix compilation failure on FreeBSD 5.0
37914         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
37915         headers before <sys/resource.h>.
37916         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
37917         the bug.
37918         Reported by Nelson H. F. Beebe.
37919
37920         strverscmp: migrate from "strverscmp.h" to <string.h>
37921         * modules/string (Makefile.am): Add new hooks.
37922         * modules/strverscmp (Files): Remove strverscmp.h.
37923         (Depends-on): Add string.
37924         (configure.ac): Add indicator.
37925         (Include): Mention new header.
37926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
37927         defaults.
37928         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
37929         results.
37930         * lib/strverscmp.h: Delete.
37931         * lib/string.in.h (strverscmp): Provide declaration, when needed.
37932         * tests/test-strverscmp.c (includes): Adjust client.
37933         * lib/check-version.c (includes): Likewise.
37934         * NEWS: Document the change.
37935
37936         strverscmp: add unit test
37937         * modules/strverscmp-tests: New file.
37938         * tests/test-strverscmp.c: Likewise.
37939
37940 2008-08-19  Simon Josefsson  <simon@josefsson.org>
37941
37942         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
37943         regarding Windows crypto stuff, from Mono.
37944
37945 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
37946
37947         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
37948         if present, for intel RND.  Return error on failures.
37949
37950 2008-08-18  Ben Pfaff  <blp@gnu.org>
37951
37952         gitlog-to-changelog: give better diagnostic for failed pipe-open
37953         * build-aux/gitlog-to-changelog: Improve error message: suggest
37954         that the version of Git may be too old.
37955
37956 2008-08-18  Simon Josefsson  <simon@josefsson.org>
37957
37958         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
37959         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
37960
37961 2008-08-18  Bruno Haible  <bruno@clisp.org>
37962
37963         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
37964         pthread_in_use().
37965
37966 2008-08-18  Bruno Haible  <bruno@clisp.org>
37967
37968         * lib/glthread/threadlib.c: Include <pthread.h>.
37969
37970 2008-08-18  Bruno Haible  <bruno@clisp.org>
37971
37972         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
37973         glthread_recursive_lock_* macros.
37974         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
37975         Fix syntax error.
37976
37977 2008-08-18  Bruno Haible  <bruno@clisp.org>
37978
37979         * lib/glthread/thread.c: Avoid forcing a context switch right after
37980         thread creation.
37981
37982 2008-08-17  Bruno Haible  <bruno@clisp.org>
37983
37984         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
37985         * lib/glthread/thread.h: Provide Win32 specific implementation.
37986         * modules/thread (Files): Add lib/glthread/thread.c.
37987         (Depends-on): Add lock.
37988         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
37989
37990 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37991
37992         New module 'yield'.
37993         * modules/yield: New file.
37994         * lib/glthread/yield.h: New file.
37995         * m4/yield.m4: New file.
37996         * MODULES.html.sh (Multithreading): Add yield.
37997
37998 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37999
38000         New module 'thread'.
38001         * modules/thread: New file.
38002         * lib/glthread/thread.h: New file.
38003         * m4/thread.m4: New file.
38004         * MODULES.html.sh (Multithreading): Add thread.
38005
38006 2008-08-17  Bruno Haible  <bruno@clisp.org>
38007
38008         * lib/glthread/lock.h: Include <stdlib.h> always.
38009         * lib/glthread/tls.h: Likewise.
38010         * lib/glthread/cond.h: Likewise.
38011
38012 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38013
38014         New module 'cond'.
38015         * modules/cond: New file.
38016         * lib/glthread/cond.h: New file.
38017         * lib/glthread/cond.c: New file.
38018         * m4/cond.m4: New file.
38019         * MODULES.html.sh (Multithreading): Add cond.
38020
38021 2008-08-16  Eric Blake  <ebb9@byu.net>
38022
38023         c-stack: fix regression on Irix 5.3 from 2008-06-21
38024         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
38025         sa_sigaction...
38026         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
38027         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
38028         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
38029         * modules/signal (Makefile.am): Use the value.
38030         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
38031         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
38032         * doc/posix-headers/signal.texi (signal.h): Document this
38033         portability issue.
38034         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
38035         Reported by Tom G. Christensen.
38036
38037 2008-08-17  Bruno Haible  <bruno@clisp.org>
38038
38039         New module 'threadlib'.
38040         * modules/threadlib: New file.
38041         * lib/glthread/threadlib.c: New file, extracted from
38042         lib/glthread/lock.c.
38043         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
38044         functions.
38045         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
38046         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
38047         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
38048         macros.
38049         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
38050         (gl_DISABLE_THREADS): Remove macro.
38051         * modules/lock (Files): Remove build-aux/config.rpath.
38052         (Depends-on): Remove havelib. Add threadlib.
38053         (configure.ac-early): Remove section.
38054         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
38055         * modules/tls (Depends-on): Remove lock. Add threadlib.
38056         (Link): New section, copied from threadlib.
38057         * MODULES.html.sh (Multithreading): Add threadlib.
38058
38059 2008-08-14  Bruno Haible  <bruno@clisp.org>
38060
38061         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
38062         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
38063         glthread_rwlock_unlock, glthread_rwlock_destroy,
38064         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
38065         glthread_recursive_lock_destroy): Define as macros always.
38066         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
38067         glthread_lock_lock.
38068         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
38069         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
38070         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
38071         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
38072         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
38073         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
38074         (glthread_recursive_lock_lock_func): Renamed from
38075         glthread_recursive_lock_lock.
38076         (glthread_recursive_lock_unlock_func): Renamed from
38077         glthread_recursive_lock_unlock.
38078         (glthread_recursive_lock_destroy_func): Renamed from
38079         glthread_recursive_lock_destroy.
38080
38081 2008-08-14  Bruno Haible  <bruno@clisp.org>
38082
38083         * lib/glthread/lock.h: Renamed from lib/lock.h.
38084         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
38085         * lib/glthread/tls.h: Renamed from lib/tls.h.
38086         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
38087         * lib/fstrcmp.c: Update includes.
38088         * lib/strsignal.c: Update includes.
38089         * modules/lock (Files, Makefile.am): Update.
38090         (Include): Change to "glthread/lock.h".
38091         * modules/tls (Files, Makefile.am): Update.
38092         (Include): Change to "glthread/tls.h".
38093         * tests/test-lock.c: Update includes.
38094         * tests/test-tls.c: Update includes.
38095         * NEWS: Mention the renamed header files.
38096
38097 2008-08-11  Jim Meyering  <meyering@redhat.com>
38098
38099         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
38100
38101 2008-08-11  Eric Blake  <ebb9@byu.net>
38102
38103         test-c-stack: avoid C99-ism
38104         * tests/test-c-stack.c (main): Fix whitespace, move declaration
38105         before statement.
38106         Reported by Alain Guibert.
38107
38108 2008-08-10  Jim Meyering  <meyering@redhat.com>
38109
38110         ensure that return value of uinttostr et al are not ignored
38111         * lib/inttostr.h (__GNUC_PREREQ): Define.
38112         (__attribute_warn_unused_result__): Define.
38113         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
38114
38115 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
38116
38117         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
38118         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
38119
38120 2008-08-07  Jim Meyering  <meyering@redhat.com>
38121
38122         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
38123
38124         * modules/mkstemp (License): Relicense under LGPLv2+.
38125         * modules/tempname (License): Likewise.
38126
38127 2008-08-06  Bruno Haible  <bruno@clisp.org>
38128
38129         * lib/poll.c (poll): Further micro-optimization.
38130
38131 2008-08-06  Jim Meyering  <meyering@redhat.com>
38132
38133         inet_pton.c: use locale-independent tolower
38134         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
38135         (inet_pton6): Use c_tolower rather than tolower.
38136         * modules/inet_pton (Depends-on): Add c-ctype.
38137
38138 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
38139
38140         * lib/poll.c (poll): Avoid division when timeout is 0, cache
38141         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
38142
38143 2008-08-06  Jim Meyering  <meyering@redhat.com>
38144
38145         * modules/inet_pton (License): Relicense under LGPLv2+.
38146
38147 2008-08-03  Bruno Haible  <bruno@clisp.org>
38148
38149         Additional non-aborting API for lock and tls.
38150         * lib/lock.h: Include <errno.h>.
38151         (glthread_lock_init): New macro/function.
38152         (gl_lock_init): Define as wrapper around glthread_lock_init.
38153         (glthread_lock_lock): New macro/function.
38154         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
38155         (glthread_lock_unlock): New macro/function.
38156         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
38157         (glthread_lock_destroy): New macro/function.
38158         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
38159         (glthread_rwlock_init): New macro/function.
38160         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
38161         (glthread_rwlock_rdlock): New macro/function.
38162         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
38163         (glthread_rwlock_wrlock): New macro/function.
38164         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
38165         (glthread_rwlock_unlock): New macro/function.
38166         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
38167         (glthread_rwlock_destroy): New macro/function.
38168         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
38169         (glthread_recursive_lock_init): New macro/function.
38170         (gl_recursive_lock_init): Define as wrapper around
38171         glthread_recursive_lock_init.
38172         (glthread_recursive_lock_lock): New macro/function.
38173         (gl_recursive_lock_lock): Define as wrapper around
38174         glthread_recursive_lock_lock.
38175         (glthread_recursive_lock_unlock): New macro/function.
38176         (gl_recursive_lock_unlock): Define as wrapper around
38177         glthread_recursive_lock_unlock.
38178         (glthread_recursive_lock_destroy): New macro/function.
38179         (gl_recursive_lock_destroy): Define as wrapper around
38180         glthread_recursive_lock_destroy.
38181         (glthread_once): New macro/function.
38182         (gl_once): Define as wrapper around glthread_once.
38183         Update function declarations.
38184         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
38185         glthread_rwlock_init. Return error code.
38186         (glthread_rwlock_rdlock_multithreaded): Renamed from
38187         glthread_rwlock_rdlock. Return error code.
38188         (glthread_rwlock_wrlock_multithreaded): Renamed from
38189         glthread_rwlock_wrlock. Return error code.
38190         (glthread_rwlock_unlock_multithreaded): Renamed from
38191         glthread_rwlock_unlock. Return error code.
38192         (glthread_rwlock_destroy_multithreaded): Renamed from
38193         glthread_rwlock_destroy. Return error code.
38194         (glthread_recursive_lock_init_multithreaded): Renamed from
38195         glthread_recursive_lock_init. Return error code.
38196         (glthread_recursive_lock_lock_multithreaded): Renamed from
38197         glthread_recursive_lock_lock. Return error code.
38198         (glthread_recursive_lock_unlock_multithreaded): Renamed from
38199         glthread_recursive_lock_unlock. Return error code.
38200         (glthread_recursive_lock_destroy_multithreaded): Renamed from
38201         glthread_recursive_lock_destroy. Return error code.
38202         (glthread_once_call): Make static.
38203         (glthread_once_multithreaded): Renamed from glthread_once.
38204         * lib/tls.h: Include <errno.h>.
38205         (glthread_tls_key_init): New macro/function.
38206         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
38207         (glthread_tls_set): New macro/function.
38208         (gl_tls_set): Define as wrapper around glthread_tls_set.
38209         (glthread_tls_key_destroy): New macro/function.
38210         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
38211         Update function declarations.
38212         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
38213         glthread_tls_get.
38214         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38215
38216 2008-08-04  Eric Blake  <ebb9@byu.net>
38217
38218         gnumakefile: use space, not TAB, outside of targets
38219         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
38220
38221 2008-08-02  Jim Meyering  <meyering@redhat.com>
38222
38223         getdate.y: avoid locale-dependent date parsing failure
38224         In Turkish locales, getdate would fail to recognize keywords
38225         containing a lowercase "i".  The solution is not to rely on
38226         locale-sensitive case-conversion.
38227         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
38228         (lookup_word): Use c_toupper in place of toupper.
38229         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
38230         Reported by Vefa Bicakci <bicave@superonline.com> in
38231         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
38232         * modules/getdate (Depends-on): Add c-ctype.
38233
38234 2008-08-02  Bruno Haible  <bruno@clisp.org>
38235
38236         * gnulib-tool (func_import): When updating or creating a .gitignore
38237         file, prepend each added line with a slash, and ignore leading slashes
38238         from the existing lines.
38239         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38240
38241 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38242
38243         Portability fix for GNU make 3.79.1.
38244         * top/GNUmakefile: Avoid 'else COND', which older GNU make
38245         versions do not understand.
38246
38247 2008-08-01  Bruno Haible  <bruno@clisp.org>
38248
38249         Work around bug of HP-UX 10.20 cc with -0.0 literal.
38250         * tests/test-isnanf.h (zero): New variable.
38251         (main): Avoid literal -0.0f.
38252         * tests/test-isnand.h (zero): New variable.
38253         (main): Avoid literal -0.0.
38254         * tests/test-isnanl.h (zero): New variable.
38255         (main): Avoid literal -0.0L.
38256         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
38257         (test_float, test_double, test_long_double): Avoid literals -0.0f,
38258         -0.0, -0.0L.
38259         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
38260         (test_signbitd): Avoid literal -0.0.
38261         (test_signbitl): Avoid literal -0.0L.
38262         * tests/test-ceilf1.c (zero): New variable.
38263         (main): Avoid literal -0.0f.
38264         * tests/test-ceill.c (zero): New variable.
38265         (main): Avoid literal -0.0L.
38266         * tests/test-floorf1.c (zero): New variable.
38267         (main): Avoid literal -0.0f.
38268         * tests/test-floorl.c (zero): New variable.
38269         (main): Avoid literal -0.0L.
38270         * tests/test-roundf1.c (zero): New variable.
38271         (main): Avoid literal -0.0f.
38272         * tests/test-round1.c (zero): New variable.
38273         (main): Avoid literal -0.0.
38274         * tests/test-roundl.c (zero): New variable.
38275         (main): Avoid literal -0.0L.
38276         * tests/test-truncf1.c (zero): New variable.
38277         (main): Avoid literal -0.0f.
38278         * tests/test-trunc1.c (zero): New variable.
38279         (main): Avoid literal -0.0.
38280         * tests/test-truncl.c (zero): New variable.
38281         (main): Avoid literal -0.0L.
38282         * tests/test-frexp.c (zero): New variable.
38283         (main): Avoid literal -0.0.
38284         * tests/test-frexpl.c (zero): New variable.
38285         (main): Avoid literal -0.0L.
38286         * tests/test-ldexpl.c (zero): New variable.
38287         (main): Avoid literal -0.0L.
38288         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38289         (zerod, zerol): New variables.
38290         (test_function): Avoid literals -0.0, -0.0L.
38291         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38292         (zerod, zerol): New variables.
38293         (test_function): Avoid literals -0.0, -0.0L.
38294         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38295         (zerod, zerol): New variables.
38296         (test_function): Avoid literals -0.0, -0.0L.
38297         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38298         (zerod, zerol): New variables.
38299         (test_function): Avoid literals -0.0, -0.0L.
38300         * tests/test-strtod.c (zero): New variable.
38301         (main): Avoid literal -0.0.
38302         Reported by Jonathan C. Patschke <jp@centtech.com>.
38303
38304 2008-07-31  Jim Meyering  <meyering@redhat.com>
38305
38306         sha256.h: correct definition of SHA224_DIGEST_SIZE
38307         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
38308         Reported by Paulie Pena IV <paulie4@gmail.com>.
38309         Define as 224 / 8, rather than as a literal.
38310         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
38311         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
38312         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
38313
38314 2008-07-31  Bruno Haible  <bruno@clisp.org>
38315
38316         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
38317         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
38318         Reported by Jonathan Patschke <jp@centtech.com>.
38319
38320 2008-07-31  Bruno Haible  <bruno@clisp.org>
38321
38322         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
38323         Reported by Paolo Bonzini <bonzini@gnu.org>.
38324
38325 2008-07-30  Eric Blake  <ebb9@byu.net>
38326
38327         test-strtod: allow compilation without -lm
38328         * tests/test-strtod.c (main): Avoid link dependence on fabs.
38329         Reported by Dennis Clarke <blastwave@gmail.com>.
38330
38331 2008-07-28  Jim Meyering  <meyering@redhat.com>
38332
38333         bootstrap: work also when there are no .po files in po/
38334         * build-aux/bootstrap (update_po_files): Complete the change
38335         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
38336
38337 2008-07-27  Jim Meyering  <meyering@redhat.com>
38338
38339         * users.txt: Add zile.
38340
38341 2008-07-26  Ben Pfaff  <blp@gnu.org>
38342
38343         Add missing dependencies on new m4/exponent[fdl].m4 files.
38344         * modules/isnanf-nolibm: Add m4/exponentf.m4.
38345         * modules/isnand-nolibm: Add m4/exponentd.m4.
38346         * modules/isnanl-nolibm: Add m4/exponentl.m4.
38347         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
38348         m4/isnan[fdl].m4, because the macros actually used moved.
38349         Reported by Jim Meyering.
38350
38351 2008-07-14  Ben Pfaff  <blp@gnu.org>
38352
38353         Add isinf module.
38354         * lib/isinf.c: New file.
38355         * lib/math.in.h: Define isinf macro if we have decided to replace
38356         it.
38357         * m4/isinf.m4: New file.
38358         * m4/math_h.m4: Initialize and substitute variables for isinf
38359         module.
38360         * modules/isinf: New file.
38361         * modules/isinf-tests: New file.
38362         * modules/math: Add substitutions for new module.
38363         * tests/test-isinf.c: New file.
38364         * doc/posix-functions/isinf.texi: Mention new module.
38365         * MODULES.html.sh: Mention new module.
38366
38367 2008-07-14  Ben Pfaff  <blp@gnu.org>
38368
38369         Factor out some macros for use by additional modules.
38370         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
38371         exponentf.m4.
38372         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
38373         exponentd.m4.
38374         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
38375         file exponentl.m4.
38376         * m4/exponentf.m4: New file.
38377         * m4/exponentd.m4: New file.
38378         * m4/exponentl.m4: New file.
38379         * modules/isnanf: Use new file m4/exponentf.m4.
38380         * modules/isnand: Use new file m4/exponentd.m4.
38381         * modules/isnanl: Use new file m4/exponentl.m4.
38382
38383 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
38384
38385         mktime.c: normalize tp->tm_isdst value to -1/0/1.
38386         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
38387         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
38388         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
38389
38390         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
38391         readlink on platforms without PATH_MAX.
38392
38393 2008-07-21  Eric Blake  <ebb9@byu.net>
38394
38395         Warn, not fail, on stale version.
38396         * top/GNUmakefile (_curr-ver): Tone down previous patch.
38397
38398         Don't allow installation with stale devel version number.
38399         * top/GNUmakefile (_is-install-target): New macro.
38400         (_curr-ver): Forbid installation with stale version number.
38401
38402 2008-07-20  Bruno Haible  <bruno@clisp.org>
38403
38404         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
38405         TESTS_ENVIRONMENT.
38406         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
38407
38408 2008-07-20  Bruno Haible  <bruno@clisp.org>
38409
38410         * lib/c-stack.h (c_stack_action): Add documentation.
38411         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
38412
38413 2008-07-20  Bruno Haible  <bruno@clisp.org>
38414
38415         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
38416         * modules/readlink (License): Likewise.
38417
38418 2008-07-17  Eric Blake  <ebb9@byu.net>
38419
38420         * modules/c-stack (Link): Fix typo.
38421
38422         Make c-stack use libsigsegv, when available.
38423         * modules/c-stack (Depends-on): Add libsigsegv.
38424         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
38425         needed.
38426         * lib/c-stack.c (SIGSTKSZ): Define fallback.
38427         (segv_handler, overflow_handler, c_stack_action)
38428         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
38429         implementation when libsigsegv is available, but only when using
38430         the library is necessary.
38431         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
38432         comment, explaining why XSI check fails on Linux.
38433         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
38434         * tests/test-c-stack2.sh: Tweak skip message.
38435         * NEWS: Document new link-time requirements.
38436
38437 2008-07-16  Eric Blake  <ebb9@byu.net>
38438
38439         c-stack: Expose false positives when not using libsigsegv.
38440         * modules/c-stack-tests (Files): Expand test.
38441         * tests/test-c-stack.c (main): Add means to conditionally trigger
38442         non-overflow SIGSEGV.
38443         * tests/test-c-stack2.sh: New file.
38444
38445 2008-07-14  Bruno Haible  <bruno@clisp.org>
38446
38447         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
38448         Reported by Eric Blake.
38449
38450 2008-07-14  Sam Steingold  <sds@gnu.org>
38451             Bruno Haible  <bruno@clisp.org>
38452
38453         New module libsigsegv.
38454         * modules/libsigsegv: New file.
38455         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
38456         modifications.
38457         * MODULES.html.sh (Signal handling): New section.
38458
38459 2008-07-14  Bruno Haible  <bruno@clisp.org>
38460
38461         * modules/unictype/ctype-* (Description): Add the word "function".
38462         Improves the resulting doc in MODULES.html.
38463
38464 2008-07-12  Ben Pfaff  <blp@gnu.org>
38465
38466         Add longlong module.
38467         * modules/longlong: New file.
38468
38469 2008-07-12  Bruno Haible  <bruno@clisp.org>
38470
38471         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
38472         to empty.
38473
38474 2008-07-10  Ben Pfaff  <blp@gnu.org>
38475
38476         Add isnan module.
38477         * doc/posix-functions/isnan.texi: Mention new module.
38478         * lib/math.in.h: Define isnan macro if we have decided to replace
38479         it.
38480         * m4/isnan.m4: New file.
38481         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
38482         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
38483         also.
38484         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
38485         redundancy.
38486         * m4/math_h.m4: Initialize and substitute variables for isnan
38487         module.
38488         * modules/isnan: New file.
38489         * modules/isnan-tests: New file.
38490         * modules/math: Add substitutions for new module.
38491         * tests/test-isnan.c: New file.
38492         * MODULES.html.sh: Mention new module.
38493
38494 2008-07-10  Ben Pfaff  <blp@gnu.org>
38495
38496         Add isnanf module.
38497         * lib/isnanf.m4: New file.
38498         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
38499         (gl_HAVE_ISNANF_IN_LIBM): New macro.
38500         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
38501         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
38502         * modules/isnanf: New file.
38503         * modules/isnanf-tests: New file.
38504         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
38505         files.
38506         * tests/test-isnanf-nolibm.c: factored most of its contents into
38507         new file tests/test-isnanf.h.
38508         * tests/test-isnanf.h: New file.
38509         * tests/test-isnanf.c: New file.
38510         * MODULES.html.sh: Mention new module.
38511         * doc/glibc-functions/isnanf.texi: Mention new module.
38512
38513 2008-07-10  Ben Pfaff  <blp@gnu.org>
38514
38515         Add isnand module.
38516         * lib/isnand.h: New file.
38517         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
38518         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
38519         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
38520         functionality also.
38521         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
38522         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
38523         (gl_HAVE_ISNAND_IN_LIBM): New macro.
38524         * modules/isnand: New file.
38525         * modules/isnand-tests: New file.
38526         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
38527         files.
38528         * tests/test-isnand-nolibm.c: factored most of its contents into
38529         new file tests/test-isnand.h.
38530         * tests/test-isnand.h: New file.
38531         * tests/test-isnand.c: New file.
38532         * MODULES.html.sh: Mention new module.
38533
38534 2008-07-10  Ben Pfaff  <blp@gnu.org>
38535
38536         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
38537         * lib/isnand.h: Rename lib/isnand-nolibm.h.
38538         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
38539         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
38540         * modules/isnanf-nolibm: Update references to renamed files.
38541         * modules/isnand-nolibm: Likewise.
38542         * modules/isnanf-nolibm-tests: Likewise.
38543         * modules/isnand-nolibm-tests: Likewise.
38544         * lib/frexp.c: Likewise.
38545         * lib/isfinite.c: Likewise.
38546         * lib/signbitd.c: Likewise.
38547         * lib/signbitf.c: Likewise.
38548         * lib/vasnprintf.c: Likewise.
38549         * tests/test-ceilf1.c: Likewise.
38550         * tests/test-ceilf2.c: Likewise.
38551         * tests/test-floorf1.c: Likewise.
38552         * tests/test-floorf2.c: Likewise.
38553         * tests/test-frexp.c: Likewise.
38554         * tests/test-round1.c: Likewise.
38555         * tests/test-round2.c: Likewise.
38556         * tests/test-roundf1.c: Likewise.
38557         * tests/test-strtod.c: Likewise.
38558         * tests/test-trunc1.c: Likewise.
38559         * tests/test-trunc2.c: Likewise.
38560         * tests/test-truncf1.c: Likewise.
38561         * tests/test-truncf2.c: Likewise.
38562         * NEWS: Mention the renamed header files.
38563
38564 2008-07-11  Jim Meyering  <meyering@redhat.com>
38565
38566         vc-list-files: make the last-resort awk code more portable
38567         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
38568         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
38569         does not support it.
38570
38571 2008-07-10  Eric Blake  <ebb9@byu.net>
38572
38573         Work with tar's bootstrap.
38574         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
38575         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
38576         an m4 comment.
38577
38578 2008-07-09  Jim Meyering  <meyering@redhat.com>
38579
38580         posix-shell.m4: fix typo that made this test malfunction
38581         * m4/posix-shell.m4: Remove capitalization in variable name.
38582
38583 2008-07-08  Bruno Haible  <bruno@clisp.org>
38584
38585         * m4/onceonly.m4: Update comments.
38586         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38587
38588 2008-07-04  Jim Meyering  <meyering@redhat.com>
38589
38590         * users.txt: Add vc-dwim.
38591         (bison, coreutils): Use the gitweb URL.
38592
38593 2008-07-03  Jim Meyering  <meyering@redhat.com>
38594
38595         * users.txt: Add libffcall.  From Sam Steingold.
38596
38597 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
38598
38599         getdate.y: do not ignore TZ with relative day, month or year offset
38600         * lib/getdate.y (get_date): Move the tz-handling block to follow the
38601         relative-date-handling, since otherwise, the latter would clobber the
38602         sole output (an updated Start value) of the tz-handling block.
38603         * tests/test-getdate.c: Tests for the fix
38604
38605 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38606
38607         Recognize 'foo_LIBRARIES += libgnu.a'.
38608         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
38609         makefile snippet has already specified an installation location,
38610         also using '+='.
38611
38612 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
38613
38614         getdate.y: factor out common actions
38615         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
38616         Use them in place of open-coded actions.
38617
38618 2008-07-01  Simon Josefsson  <simon@josefsson.org>
38619
38620         Add self-test for getdate module.
38621         * modules/getdate-tests: New file.
38622         * tests/test-getdate.c: New file.
38623
38624 2008-06-29  Bruno Haible  <bruno@clisp.org>
38625
38626         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
38627         .gitignore.
38628         Reported by Sylvain Beucler <beuc@beuc.net>.
38629
38630 2008-06-29  Bruno Haible  <bruno@clisp.org>
38631
38632         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
38633         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
38634
38635 2008-06-29  Bruno Haible  <bruno@clisp.org>
38636
38637         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
38638         EXTRA_DIST.
38639         Reported by Sylvain Beucler <beuc@beuc.net>.
38640
38641 2008-06-26  Jim Meyering  <meyering@redhat.com>
38642
38643         make several modules depend on the "open" module
38644         This provides slightly increased consistency when opening-for-write
38645         the name of a non-directory spelled with a trailing slash.
38646         * modules/chdir-safer: Likewise.
38647         * modules/chown: Likewise.
38648         * modules/clean-temp: Likewise.
38649         * modules/copy-file: Likewise.
38650         * modules/fchdir: Likewise.
38651         * modules/fcntl-safer: Likewise.
38652         * modules/pipe: Likewise.
38653         * modules/utime: Likewise.
38654         Prompted by Eric Blake and Bruno Haible.
38655
38656 2008-06-24  Andreas Schwab  <schwab@suse.de>
38657
38658         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
38659         literals can be used as initializers for global variables.
38660
38661 2008-06-23  Eric Blake  <ebb9@byu.net>
38662
38663         Make gnulib-cache.m4 easier to diff.
38664         * gnulib-tool (func_import): Allow newlines when reading cached
38665         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
38666
38667 2008-06-23  Bruno Haible  <bruno@clisp.org>
38668
38669         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
38670         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
38671         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
38672         m4/signalblocking.m4.
38673         (gl_PREREQ_SIGACTION): Don't invoke it.
38674         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
38675         gl_PREREQ_SIG_HANDLER_H.
38676         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38677         Don't check for sigaction here.
38678
38679 2008-06-23  Bruno Haible  <bruno@clisp.org>
38680
38681         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
38682         (install_handlers): Don't set the SA_RESETHAND flag.
38683
38684 2008-06-23  Bruno Haible  <bruno@clisp.org>
38685
38686         * m4/sigaction.m4: Comment fixes.
38687         * lib/signal.in.h: Likewise.
38688
38689 2008-06-23  Eric Blake  <ebb9@byu.net>
38690
38691         Fix typo.
38692         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
38693
38694         Avoid SA_ namespace.
38695         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
38696         Reported by Ralf Wildenhues.
38697
38698         Avoid test failure due to SA_RESTORER.
38699         * tests/test-sigaction.c (SA_MASK): New macro.
38700         (main): Avoid failing due to extension flags being set.
38701         Reported by Jim Meyering.
38702
38703         Revert use of sig-handler.h in sigprocmask.c.
38704         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
38705         it requires the existence of struct sigaction.
38706         * lib/sigprocmask.c (handler_t): Restore typedef.
38707         (rpl_signal, old_handlers): Use local type.
38708
38709 2008-06-22  Bruno Haible  <bruno@clisp.org>
38710
38711         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
38712         conditionally.
38713         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38714
38715 2008-06-22  Bruno Haible  <bruno@clisp.org>
38716
38717         * doc/posix-functions/siginterrupt.texi: Move note.
38718
38719         * lib/signal.in.h (SA_RESTART): New macro.
38720         * lib/sigaction.c: Update comment.
38721
38722         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
38723
38724         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
38725         (gl_PREREQ_SIGPROCMASK): Invoke it.
38726         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
38727
38728         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
38729
38730         * lib/sigprocmask.c: Update a comment.
38731
38732 2008-06-21  Eric Blake  <ebb9@byu.net>
38733
38734         Use sigaction module rather than signal().
38735         * modules/c-stack (Depends-on): Add sigaction.
38736         * modules/fatal-signal (Depends-on): Likewise.
38737         * modules/nanosleep (Depends-on): Likewise.
38738         * modules/sigprocmask (Files): Add sig-handler.h.
38739         * modules/sigaction (Files): Likewise.
38740         * lib/sig-handler.h (get_handler): New file, suggested by Paul
38741         Eggert.
38742         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
38743         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
38744         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38745         (init_fatal_signals): Likewise.
38746         * lib/nanosleep.c (rpl_nanosleep): Likewise.
38747         (siginterrupt): Delete fallback.
38748         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
38749         instead.
38750         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
38751         siginterrupt.
38752
38753         New module sigaction, for mingw.
38754         * modules/sigaction: New module...
38755         * modules/sigaction-tests: ...and its test.
38756         * m4/sigaction.m4: New file.
38757         * lib/sigaction.c: Likewise.
38758         * tests/test-sigaction.c: Likewise.
38759         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
38760         * modules/signal (Makefile.am): Likewise.
38761         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
38762         needed.
38763         * doc/posix-headers/signal.texi (signal.h): Mention provided
38764         types.
38765         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
38766         that sigaction is preferable.
38767         * doc/posix-functions/sigaction.texi (sigaction): Mention new
38768         module.
38769         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38770         sigaction.
38771
38772         Improve robustness of sigprocmask by overriding signal.
38773         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
38774         is in use.
38775         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
38776         (SIGKILL, SIGSTOP): Provide fallbacks.
38777         (rpl_signal): Implement.
38778         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
38779         signal can be called inside handlers.
38780
38781         Fix nanosleep module on mingw.
38782         * modules/nanosleep (Depends-on): Add sys_select.
38783         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
38784
38785         Fix licensing of sigprocmask.
38786         * modules/raise (License): Relicense as LGPL.
38787
38788 2008-06-21  Bruno Haible  <bruno@clisp.org>
38789
38790         * lib/propername.c (proper_name_utf8): Don't use the transliterated
38791         result if it contains question marks.
38792         Reported by Michael Geng <linux@michaelgeng.de>.
38793
38794 2008-06-19  Bruno Haible  <bruno@clisp.org>
38795
38796         Fix CVS-ism.
38797         * doc/gnulib.texi: Include updated-stamp.texi.
38798         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
38799         (updated-stamp.texi): New rule.
38800         (gnulib.info): Depend on it.
38801         * doc/.gitignore: Add updated-stamp.texi.
38802         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
38803
38804 2008-06-19  Bruno Haible  <bruno@clisp.org>
38805
38806         * doc/Makefile (gnulib.info): Update and simplify dependencies.
38807         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38808
38809 2008-06-19  Eric Blake  <ebb9@byu.net>
38810
38811         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
38812         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
38813         Reported by Stepan Kasal.
38814
38815 2008-06-18  Bruno Haible  <bruno@clisp.org>
38816
38817         * lib/fatal-signal.c (init_fatal_signals): Add comment.
38818         Reported by Eric Blake.
38819
38820 2008-06-18  Eric Blake  <ebb9@byu.net>
38821
38822         Work around cygwin 1.5.25 strsignal bug.
38823         * tests/test-strsignal.c: Allow for const char *.
38824         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
38825
38826 2008-06-18  Simon Josefsson  <simon@josefsson.org>
38827
38828         * users.txt: Update URL to article and add author/date
38829         information.
38830
38831 2008-06-17  Bruno Haible  <bruno@clisp.org>
38832
38833         New macro gl_DISABLE_THREADS.
38834         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
38835         if the user did not pass --enable-threads or --disable-threads option.
38836         (gl_DISABLE_THREADS): New macro.
38837         Reported by Eric Blake <ebb9@byu.net>.
38838
38839 2008-06-17  Bruno Haible  <bruno@clisp.org>
38840
38841         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
38842         when the macro ignores it.
38843         Based on a patch by Eric Blake <ebb9@byu.net>.
38844
38845 2008-06-17  Bruno Haible  <bruno@clisp.org>
38846
38847         * modules/tls (License): Change to LGPLv2+.
38848         Reported by Eric Blake.
38849
38850 2008-06-17  Eric Blake  <ebb9@byu.net>
38851
38852         Simplify c-stack prerequisites.
38853         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
38854         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
38855         no longer requires <ucontext.h> to exist.  Optimize setrlimit
38856         check.
38857         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
38858         <sys/resource.h>.
38859
38860         Move c-stack test into testsuite.
38861         * modules/c-stack-tests: New file.
38862         * lib/c-stack.c [DEBUG]: Move test program...
38863         * tests/test-c-stack.c: ...into this new file.  Skip rather than
38864         fail test if sigaltstack is lacking.
38865         * tests/test-c-stack.sh: New driver file.
38866
38867 2008-06-16  Eric Blake  <ebb9@byu.net>
38868
38869         Use raise module consistently.
38870         * modules/fatal-signal (Depends-on): Add raise.
38871         * modules/sigprocmask (Depends-on): Likewise.
38872         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
38873         * lib/sigprocmask.c (sigprocmask): Likewise.
38874         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38875         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
38876
38877         Fix compliance bug in sigpending.
38878         * lib/sigprocmask.c (sigpending): Return pending array via
38879         parameter, not return value.
38880
38881 2008-06-14  Eric Blake  <ebb9@byu.net>
38882
38883         Improve obstack-printf test code.
38884         * tests/test-obstack-printf.c (test_function): Fix comment, and
38885         simplify usage of obstack_* in macros.  Add a test for coverage.
38886         Reported by Bruno Haible.
38887
38888 2008-06-14  Bruno Haible  <bruno@clisp.org>
38889
38890         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
38891         array size as a constant, not as a const variable.
38892         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
38893         AC_USE_SYSTEM_EXTENSIONS.
38894         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38895         Test whether the obstack_printf function actually exists.
38896         * modules/obstack-printf (Depends-on): Add extensions.
38897         (Include): Remove obstack.h.
38898         * modules/obstack-printf-posix (Depends-on): Add extensions.
38899         (Include): Remove obstack.h.
38900
38901 2008-06-13  Eric Blake  <ebb9@byu.net>
38902
38903         Add obstack-printf and obstack-printf-posix modules.
38904         * modules/obstack-printf: New file.
38905         * modules/obstack-printf-posix: Likewise.
38906         * MODULES.html.sh (Misc): Mention them.
38907         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38908         Likewise.
38909         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38910         Likewise.
38911         * modules/stdio (Makefile.am): Accomodate new modules.
38912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38913         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
38914         Declare.
38915         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
38916         functions.
38917         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
38918         (gl_REPLACE_OBSTACK_PRINTF): New macros
38919         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
38920         * tests/test-obstack-printf.c: New file.
38921         * modules/obstack-printf-tests: Likewise.
38922         * modules/obstack-printf-posix-tests: Likewise.
38923
38924 2008-06-11  Bruno Haible  <bruno@clisp.org>
38925
38926         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
38927         * lib/open.c: Include errno.h.
38928         (open): Fail when attempting to write to a file that has a trailing
38929         slash.
38930         * tests/test-open.c (main): Test against trailing slash bug.
38931         * doc/posix-functions/open.texi: Mention the trailing slash bug.
38932
38933 2008-06-10  Bruno Haible  <bruno@clisp.org>
38934
38935         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
38936         for $? to work inside the trap command, with various /bin/sh-s.
38937         * tests/test-vc-list-files-cvs.sh: Likewise.
38938
38939 2008-06-10  Bruno Haible  <bruno@clisp.org>
38940
38941         * lib/acl-internal.h: Don't include gettext.h here.
38942         * lib/set-mode-acl.c: Include gettext.h here.
38943         * lib/copy-acl.c: Likewise.
38944
38945 2008-06-10  Bruno Haible  <bruno@clisp.org>
38946
38947         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
38948         * lib/wait-process.c (wait_subprocess): Likewise.
38949         * lib/execute.h (execute): Add termsigp argument.
38950         * lib/execute.c (execute): Likewise.
38951         * lib/csharpcomp.c (compile_csharp_using_pnet,
38952         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
38953         * lib/csharpexec.c (execute_csharp_using_pnet,
38954         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
38955         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
38956         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
38957         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
38958         is_jikes_present): Update.
38959         * lib/javaexec.c (execute_java_class): Update.
38960         * lib/javaversion.c (execute_and_read_line): Update.
38961         * NEWS: Document the changes.
38962         Reported by Eric Blake.
38963
38964 2008-06-10  Eric Blake  <ebb9@byu.net>
38965
38966         Add missing include.
38967         * tests/test-strstr.c (includes): Add <signal.h>.
38968         * tests/test-strcasestr.c (includes): Likewise.
38969         * tests/test-memmem.c (includes): Likewise.
38970
38971 2008-06-10  Bruno Haible  <bruno@clisp.org>
38972
38973         * lib/wait-process.c (wait_subprocess): Add an assertion.
38974
38975 2008-06-10  Bruno Haible  <bruno@clisp.org>
38976
38977         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
38978
38979 2008-06-10  Bruno Haible  <bruno@clisp.org>
38980
38981         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
38982         using alarm().
38983         * tests/test-strcasestr.c (main): Likewise.
38984         * tests/test-strstr.c (main): Likewise.
38985
38986 2008-06-09  Bruno Haible  <bruno@clisp.org>
38987
38988         Work around the Solaris 10 ACE ACLs ABI change.
38989         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
38990         declare if ACL_NO_TRIVIAL is present.
38991         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
38992         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
38993         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
38994         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
38995         define if ACL_NO_TRIVIAL is present.
38996         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
38997         and use the current ABI.
38998         (file_has_acl): Use same #if condition as elsewhere.
38999         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
39000         in use, and use the current ABI.
39001         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
39002         Reported by Jim Meyering.
39003
39004 2008-06-09  Eric Blake  <ebb9@byu.net>
39005
39006         Work around environments that (stupidly) ignore SIGALRM.
39007         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
39008         before using alarm().
39009         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39010         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39011         Reported by Ian Beckwith <ianb@erislabs.net>.
39012
39013         Produce autobuild blurb earlier in log.
39014         * modules/autobuild (configure.ac-early): Move AB_INIT here.
39015
39016 2008-06-09  Jim Meyering  <meyering@redhat.com>
39017         and OndÅ™ej Vašík  <ovasik@redhat.com>
39018
39019         utimens.c: correct kernel bug work-around
39020         OndÅ™ej Vašík found that the invalid return value of 280 indicates
39021         failure, not success, and the kernel bug we're trying to work
39022         around affects not just the utimensat call, but also the fallback
39023         futimens call.
39024         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
39025         not success.
39026         [HAVE_FUTIMENS]: Use the same work-around, here.
39027
39028 2008-06-09  Jim Meyering  <meyering@redhat.com>
39029
39030         add more guards around definition of ACE_-related code
39031         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
39032         ALLOW and ACE_OWNER are also defined.
39033
39034 2008-06-08  Bruno Haible  <bruno@clisp.org>
39035
39036         * lib/acl-internal.h: Add me as co-author.
39037         * lib/file-has-acl.c: Likewise.
39038         * lib/set-mode-acl.c: Likewise.
39039         * lib/copy-acl.c: Likewise.
39040
39041 2008-06-08  Bruno Haible  <bruno@clisp.org>
39042
39043         Add support for AIX ACLs.
39044         * lib/acl-internal.h (acl_nontrivial): New declaration.
39045         * lib/file-has-acl.c (acl_nontrivial): New function.
39046         (file_has_acl): Add implementation using AIX 4 ACL API.
39047         * lib/set-mode-acl.c (qset_acl): Likewise.
39048         * lib/copy-acl.c (qcopy_acl): Likewise.
39049
39050 2008-06-08  Bruno Haible  <bruno@clisp.org>
39051
39052         Add support for HP-UX ACLs.
39053         * lib/acl-internal.h (acl_nontrivial): New declaration.
39054         * lib/file-has-acl.c (acl_nontrivial): New function.
39055         (file_has_acl): Add implementation using HP-UX 11 ACL API.
39056         * lib/set-mode-acl.c (qset_acl): Likewise.
39057         * lib/copy-acl.c (qcopy_acl): Likewise.
39058
39059 2008-06-08  Bruno Haible  <bruno@clisp.org>
39060
39061         Add support for Cygwin ACLs.
39062         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
39063         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
39064         the chmod_or_fchmod call.
39065         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
39066
39067 2008-06-08  Bruno Haible  <bruno@clisp.org>
39068
39069         Fix bug with setuid modes in Solaris 10+ code.
39070         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
39071         succeeded, when the mode contains some special bits.
39072
39073 2008-06-08  Bruno Haible  <bruno@clisp.org>
39074
39075         Add support for Solaris 7..10 ACLs.
39076         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
39077         declarations.
39078         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
39079         functions.
39080         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
39081         * lib/set-mode-acl.c (qset_acl): Likewise.
39082         * lib/copy-acl.c (qcopy_acl): Likewise.
39083
39084 2008-06-08  Bruno Haible  <bruno@clisp.org>
39085
39086         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
39087         declaration.
39088         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
39089         (acl_access_nontrivial): Remove MacOS X case.
39090         (file_has_acl): Use acl_extended_nontrivial.
39091         * lib/copy-acl.c (qcopy_acl): Likewise.
39092
39093 2008-06-08  Bruno Haible  <bruno@clisp.org>
39094
39095         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
39096
39097 2008-06-08  Jim Meyering  <meyering@redhat.com>
39098
39099         * modules/acl (Maintainer): Add Bruno Haible.
39100
39101 2008-06-07  Bruno Haible  <bruno@clisp.org>
39102
39103         Improve support for Tru64 ACLs.
39104         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
39105         ACL on OSF/1.
39106
39107 2008-06-07  Bruno Haible  <bruno@clisp.org>
39108
39109         Add support for MacOS X ACLs.
39110         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
39111         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
39112         * lib/set-mode-acl.c (qset_acl): Likewise.
39113         * lib/copy-acl.c (qcopy_acl): Likewise.
39114
39115 2008-06-07  Bruno Haible  <bruno@clisp.org>
39116
39117         Fix memory leak introduced on 2008-05-22.
39118         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
39119         use.
39120
39121 2008-06-07  Bruno Haible  <bruno@clisp.org>
39122
39123         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
39124         to construct an empty ACL.
39125
39126 2008-06-07  Bruno Haible  <bruno@clisp.org>
39127
39128         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
39129         precisely.
39130         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
39131
39132 2008-06-07  Bruno Haible  <bruno@clisp.org>
39133
39134         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
39135         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
39136
39137 2008-06-07  Bruno Haible  <bruno@clisp.org>
39138
39139         * doc/posix-functions/_setjmp.texi: Explain the use of this function
39140         regardless of POSIX.
39141         * doc/posix-functions/_longjmp.texi: Likewise.
39142         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
39143         SystemV platform in this case.
39144
39145 2008-06-06  Eric Blake  <ebb9@byu.net>
39146
39147         Document abort() bugs.
39148         * doc/posix-functions/abort.texi (abort): Mention anomalies.
39149
39150         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
39151         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
39152         sigsetjmp.
39153         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
39154         siglongjmp, but only as a macro.
39155         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
39156         is obsolete.
39157         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
39158
39159         Tweak documentation to cover cygwin argz bugs.
39160         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
39161         argz bug fix; no code change needed since no cygwin releases
39162         occurred between the last fix and the bug being tested.
39163         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
39164         module and recently fixed cygwin bugs.
39165         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
39166         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
39167         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
39168         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
39169         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
39170         Likewise.
39171         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
39172         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
39173         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
39174         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
39175         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
39176         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
39177         Likewise.
39178
39179         Avoid gcc warning on cygwin.
39180         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
39181         !ACL_NO_TRIVIAL]: Avoid unused variable.
39182
39183 2008-06-05  Eric Blake  <ebb9@byu.net>
39184
39185         Be tolerant of UNKNOWN version in gnulib-tool test dir.
39186         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
39187         git-version-gen fails to come up with a version.
39188         Reported by Simon Josefsson.
39189
39190 2008-06-05  Jim Meyering  <meyering@redhat.com>
39191             Paul Eggert  <eggert@cs.ucla.edu>
39192
39193         utimens.c: work around a probable Linux kernel bug
39194         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
39195         appears to be a kernel bug that causes utimensat to return 280
39196         instead of 0, indicating success.
39197
39198 2008-06-04  Bruno Haible  <bruno@clisp.org>
39199
39200         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
39201         2008-06-01 commit.
39202
39203 2008-06-04  Bruno Haible  <bruno@clisp.org>
39204
39205         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
39206         * lib/file-has-acl.c (acl_access_nontrivial): New function.
39207         (file_has_acl): Use it. Save errno afterwards.
39208         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
39209
39210 2008-06-03  Bruno Haible  <bruno@clisp.org>
39211
39212         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
39213         draft code. Simplify #ifs.
39214         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
39215         Put Solaris code after POSIX-draft code. Fix comments regarding
39216         Solaris 10, HP-UX. Mention Cygwin.
39217         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
39218
39219 2008-06-03  Eric Blake  <ebb9@byu.net>
39220
39221         Provide fallback for older kernels.
39222         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
39223         Provide runtime fallback if kernel lacks support.
39224         Reported by Mike Frysinger.
39225
39226 2008-06-02  Bruno Haible  <bruno@clisp.org>
39227
39228         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
39229         it exists.
39230
39231 2008-06-02  Bruno Haible  <bruno@clisp.org>
39232
39233         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
39234         * lib/copy-acl.c (qcopy_acl): Update comment.
39235
39236 2008-06-02  Bruno Haible  <bruno@clisp.org>
39237
39238         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
39239         like ACL APIs.
39240
39241 2008-06-02  Bruno Haible  <bruno@clisp.org>
39242
39243         * tests/test-file-has-acl.sh: Use different code for Cygwin.
39244         * tests/test-set-mode-acl.sh: Likewise.
39245         * tests/test-copy-acl.sh: Likewise.
39246         * tests/test-copy-file.sh: Likewise.
39247
39248 2008-06-02  Bruno Haible  <bruno@clisp.org>
39249
39250         * tests/test-file-has-acl.sh: Remove unused code.
39251
39252 2008-06-01  Bruno Haible  <bruno@clisp.org>
39253
39254         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
39255         (copy_acl): Just a wrapper around qcopy_acl that emits the error
39256         messages.
39257         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
39258
39259 2008-06-01  Bruno Haible  <bruno@clisp.org>
39260
39261         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
39262         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
39263         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
39264         APIs.
39265         * modules/acl-tests (configure.ac): Remove tests now contained in
39266         m4/acl.m4.
39267
39268 2008-06-02  Jim Meyering  <meyering@redhat.com>
39269
39270         announce-gen: use a better key-server host name
39271         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
39272         it may be more consistently reliable.  Suggested by Werner Koch
39273         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
39274
39275 2008-06-01  Bruno Haible  <bruno@clisp.org>
39276
39277         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
39278         Reported by Voroskoi Andras <voroskoi@gmail.com>.
39279
39280 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
39281
39282         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
39283
39284 2008-06-01  Bruno Haible  <bruno@clisp.org>
39285
39286         New ACL tests.
39287         * tests/test-file-has-acl.sh: New file.
39288         * tests/test-file-has-acl.c: New file.
39289         * tests/test-set-mode-acl.sh: New file.
39290         * tests/test-set-mode-acl.c: New file.
39291         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
39292         * tests/test-copy-acl.c: New file.
39293         * modules/acl-tests: New file, based on modules/copy-file-tests.
39294         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
39295         (Depends-on): Add acl-tests.
39296         (configure.ac): Remove checks.
39297         (Makefile.am): Don't create test-sameacls program here any more.
39298
39299 2008-06-01  Bruno Haible  <bruno@clisp.org>
39300
39301         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
39302         * tests/test-sameacls.c: Include progname.h.
39303         (main): Invoke set_program_name. Portability fixes for MacOS X,
39304         Solaris, HP-UX.
39305
39306 2008-06-01  Bruno Haible  <bruno@clisp.org>
39307
39308         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
39309         function.
39310         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
39311
39312 2008-06-01  Bruno Haible  <bruno@clisp.org>
39313
39314         * modules/rpmatch (Depends-on): Add strdup.
39315
39316 2008-06-01  Bruno Haible  <bruno@clisp.org>
39317
39318         * lib/pipe.c: Include unistd-safer.h.
39319         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
39320         * modules/pipe (Depends-on): Add unistd-safer.
39321
39322 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39323
39324         * modules/autobuild (configure.ac): Call AB_INIT.
39325
39326 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39327
39328         * tests/test-getaddrinfo.c: Don't print debug messages by default.
39329         Suggested by Bruno Haible <bruno@clisp.org>.
39330
39331 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39332
39333         * tests/test-base64.c: Cast size_t to unsigned long when invoking
39334         printf.  Use %lu instead of %d.  Reported by Bruno Haible
39335         <bruno@clisp.org>.
39336
39337 2008-05-29  Eric Blake  <ebb9@byu.net>
39338
39339         Prefer new POSIX 200x interfaces over futimesat.
39340         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
39341         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
39342         when available.
39343         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
39344
39345 2008-05-28  Bruno Haible  <bruno@clisp.org>
39346
39347         * modules/stpcpy (License): Change to LGPLv2+.
39348         Requested by David Lutterkort <dlutter@redhat.com>.
39349
39350 2008-05-27  Bruno Haible  <bruno@clisp.org>
39351
39352         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
39353         current mingw.
39354         Reported by Jose E. Marchesi <jemarch@gnu.org>.
39355
39356 2008-05-27  Bruno Haible  <bruno@clisp.org>
39357
39358         * modules/iconv_open (Link): New section, from module 'iconv'.
39359         * modules/striconv (Link): Likewise.
39360         * modules/striconveh (Link): Likewise.
39361         * modules/xstriconv (Link): Likewise.
39362         * modules/unicodeio (Link): Likewise.
39363         * modules/propername (Link): Likewise.
39364         Reported by Jim Meyering.
39365
39366 2008-05-26  Jim Meyering  <meyering@redhat.com>
39367
39368         sha256: do not artificially restrict buffer length to be < 2^32
39369         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
39370         uint32_t to size_t.
39371         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
39372         to match.
39373
39374         avoid unaligned access errors, e.g., on sparc
39375         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
39376         direct access through a possibly-unaligned uint64* pointer.
39377         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
39378         direct access through a possibly-unaligned uint32* pointer.
39379         Prompted by this patch from Tom "spot" Callaway:
39380         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
39381
39382         sha512.c: fix typo in comment
39383         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
39384
39385 2008-05-25  Bruno Haible  <bruno@clisp.org>
39386
39387         * lib/set-mode-acl.c: Renamed from lib/acl.c.
39388         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
39389         (Makefile.am): Update lib_SOURCES.
39390
39391 2008-05-25  Bruno Haible  <bruno@clisp.org>
39392
39393         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
39394
39395 2008-05-25  Jim Meyering  <meyering@redhat.com>
39396
39397         useless-if-before-free: freed expr may have white-space differences
39398         * build-aux/useless-if-before-free: Recognize cases in which the
39399         freed expression differs from the tested one in embedded white
39400         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
39401         $1 was used, so we can't make any regexp shy.  Improved tests now
39402         detect this.
39403
39404         useless-if-before-free: accept white space in the expression.
39405         * build-aux/useless-if-before-free: For now, any white space
39406         in the expression must be identical in the free argument.
39407
39408         useless-if-before-free: efficiency tweak
39409         * build-aux/useless-if-before-free: Make the expression-matching
39410         regexp "shy".
39411         Make the *outer* regexp shy, not the expr-matching one.
39412
39413         update code-in-comment to accept cast of free arg
39414         * build-aux/useless-if-before-free: Update regexp.
39415
39416 2008-05-25  Bruno Haible  <bruno@clisp.org>
39417
39418         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
39419         * modules/copy-file-tests (Files, Makefile.am): Update.
39420         * tests/test-copy-file.c (func_test_copy): Update.
39421
39422 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
39423
39424         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
39425
39426 2008-05-23  Bruno Haible  <bruno@clisp.org>
39427
39428         Improve support for ACLs on OSF/1.
39429         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
39430         Remove fallback for unknown flavors of ACLs.
39431
39432 2008-05-22  Bruno Haible  <bruno@clisp.org>
39433
39434         Add support for ACLs on OSF/1.
39435         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
39436         replacements.
39437         (acl_free_text): New macro fallback.
39438         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
39439         acl_free.
39440         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
39441         acl_free_text function. Require AC_C_INLINE.
39442
39443 2008-05-22  Bruno Haible  <bruno@clisp.org>
39444
39445         Make copy_acl work on MacOS X 10.5.
39446         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
39447         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
39448         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
39449         If MODE_INSIDE_ACL, don't assume that every system has the same text
39450         representation for ACLs as FreeBSD.
39451         * lib/copy-acl.c (copy_acl): Add support for platforms with
39452         !MODE_INSIDE_ACL.
39453         * lib/file-has-acl.c (file_has_acl): Likewise.
39454         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
39455         FreeBSD, MacOS X, or IRIX, respectively.
39456
39457 2008-05-22  Bruno Haible  <bruno@clisp.org>
39458
39459         * lib/acl.h: Don't include <sys/acl.h>.
39460         (GETACLCNT): Move fallback to lib/acl-internal.h.
39461         * lib/acl-internal.h: Include <sys/acl.h> here.
39462         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
39463
39464 2008-05-22  Bruno Haible  <bruno@clisp.org>
39465
39466         Split off copy_acl function to separate file.
39467         * lib/copy-acl.c: New file, extracted from lib/acl.c.
39468         * lib/acl.c (copy_acl): Moved function to separate file.
39469         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
39470         * modules/acl (Files): Add lib/copy-acl.c.
39471         (Makefiles.am): Augment lib_SOURCES.
39472
39473 2008-05-22  Bruno Haible  <bruno@clisp.org>
39474
39475         * modules/copy-file-tests: New file.
39476         * tests/test-copy-file.sh: New file.
39477         * tests/test-copy-file.c: New file.
39478         * tests/test-copy-file-sameacls.c: New file.
39479
39480 2008-05-22  Eric Blake  <ebb9@byu.net>
39481
39482         Avoid gcc warning.
39483         * tests/test-memcmp.c (main): Pass NULL indirectly.
39484
39485 2008-05-21  Bruno Haible  <bruno@clisp.org>
39486
39487         Add reference doc about ACLs.
39488         * doc/acl-resources.txt: New file.
39489         * doc/acl-cygwin.txt: New file.
39490
39491 2008-05-21  Bruno Haible  <bruno@clisp.org>
39492
39493         Avoid one more warning from gcc.
39494         * lib/vasnprintf.c (IF_LINT): Update comments.
39495         (VASNPRINTF): Use it also for the 'prefix' array initializer.
39496
39497 2008-05-21  Jim Meyering  <meyering@redhat.com>
39498
39499         avoid a warning from gcc
39500         * lib/vasnprintf.c (IF_LINT): Define.
39501         (scale10_round_decimal_long_double):
39502         Use it to avoid a "may be used uninitialized" warning.
39503         (scale10_round_decimal_double): Likewise.
39504
39505 2008-05-21  Simon Josefsson  <simon@josefsson.org>
39506
39507         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
39508         declared.
39509
39510 2008-05-20  Bruno Haible  <bruno@clisp.org>
39511
39512         * tests/test-memcmp.c (main): Test also the sign of the result. Test
39513         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
39514
39515 2008-05-20  Simon Josefsson  <simon@josefsson.org>
39516
39517         * modules/memcmp-tests: New file.
39518         * tests/test-memcmp.c: New file.
39519
39520 2008-05-19  Bruno Haible  <bruno@clisp.org>
39521
39522         * modules/propername (Notice, configure.ac): Put quoted "..." into
39523         --keyword option.
39524         * lib/propername.h: Update comments accordingly.
39525         Reported by Eric Blake.
39526
39527 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
39528
39529         * modules/getpass-gnu (Depends-on): Add fseeko.
39530
39531 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39532
39533         * modules/base64-tests: New file.
39534
39535 2008-05-19  Bo Borgerson <gigabo@gmail.com>
39536
39537         * lib/base64.c (base64_decode_ctx): If a decode context structure
39538         was passed in use it to ignore newlines.  If a context structure
39539         was _not_ passed in, continue to treat newlines as garbage (this
39540         is the historical behavior).  Formerly base64_decode.
39541         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39542         takes a decode context structure.
39543         * lib/base64.h (base64_decode): Macro for four-argument calls.
39544         (base64_decode_alloc): Likewise.
39545         * lib/base64.c (base64_decode_ctx): If a decode context structure
39546         was passed in use it to ignore newlines.  If a context structure
39547         was _not_ passed in, continue to treat newlines as garbage (this
39548         is the historical behavior).  Formerly base64_decode.
39549         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39550         takes a decode context structure.
39551         * lib/base64.h (base64_decode): Macro for four-argument calls.
39552         (base64_decode_alloc): Likewise.
39553
39554 2008-05-19  Jim Meyering  <meyering@redhat.com>
39555
39556         avoid a warning from gcc
39557         * lib/trim.c (IF_LINT): Define.
39558         (trim2): Use it to avoid a "may be used uninitialized" warning.
39559
39560         Fix doc typo.
39561         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
39562
39563 2008-05-19  Bruno Haible  <bruno@clisp.org>
39564
39565         * doc/glibc-functions/getpass.texi: Document limits of other
39566         implementations.
39567
39568 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39569             Bruno Haible <bruno@clisp.org>
39570
39571         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
39572
39573 2008-05-18  Bruno Haible  <bruno@clisp.org>
39574
39575         * modules/propername: New file, from GNU gettext.
39576         * lib/propername.h: New file, from GNU gettext.
39577         * lib/propername.c: New file, from GNU gettext.
39578         * MODULES.html.sh (Internationalization functions): Add propername.
39579
39580 2008-05-16  Jim Meyering  <meyering@redhat.com>
39581             Bruno Haible  <bruno@clisp.org>
39582
39583         Avoid some warnings from "gcc -Wshadow".
39584         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
39585
39586 2008-05-15  Eric Blake  <ebb9@byu.net>
39587
39588         Extend previous patch to cygwin 1.7.0.
39589         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
39590         fast implementation in cygwin >= 1.7.0.
39591         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39592         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39593
39594 2008-05-15  Bruno Haible  <bruno@clisp.org>
39595
39596         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
39597         implementation in glibc >= 2.9.
39598         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39599         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39600
39601 2008-05-15  Bruno Haible  <bruno@clisp.org>
39602
39603         * MODULES.html.sh (Internationalization functions): Remove linebreak.
39604         (Unicode string functions): Add unilbrk/*.
39605         Reported by Karl Berry.
39606
39607 2008-05-15  Eric Blake  <ebb9@byu.net>
39608
39609         Fix violation of <stdbool.h> replacement in regex.
39610         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
39611         * lib/regexec.c (re_search_internal): Likewise.
39612         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
39613
39614 2008-05-15  Jim Meyering  <meyering@redhat.com>
39615
39616         avoid distracting test output when git or cvs is not found
39617         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
39618         * tests/test-vc-list-files-git.sh: Likewise.
39619
39620 2008-05-15  Eric Blake  <ebb9@byu.net>
39621
39622         Glibc finally accepted the memmem speedup code, bugzilla #5514.
39623         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
39624         glibc version.
39625         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39626         * doc/posix-functions/strstr.texi (strstr): Likewise.
39627         * lib/str-two-way.h (MAX): Sychronize with glibc.
39628
39629 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
39630
39631         * lib/regcomp.c (optimize_utf8): Add a note on why we test
39632         opr.ctx_type.
39633         (calc_first): Initialize constraint field.
39634         (duplicate_node_closure): Use it instead of special casing ANCHORS.
39635         Fix grammar.
39636         (duplicate_node): Merge constraint field for all node types.
39637         (calc_eclosure_iter): Look at constraint field for all node types.
39638         * lib/regex_internal.c (create_cd_newstate): Don't look at
39639         opr.ctx_type.
39640
39641 2008-05-14  Bruno Haible  <bruno@clisp.org>
39642
39643         Help GCC to do better code generation.
39644         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
39645         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
39646         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
39647         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
39648         Declare with attribute 'malloc' if supported.
39649
39650 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
39651
39652         use "echo STR|wc -c" rather than unportable "expr length STR"
39653         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
39654         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
39655
39656 2008-05-14  Jim Meyering  <meyering@redhat.com>
39657
39658         use dd ibs=$n count=1 ... rather than less-portable head -c$n
39659         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
39660         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
39661         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
39662         via Collin Lasse.
39663
39664 2008-05-14  Eric Blake  <ebb9@byu.net>
39665
39666         Avoid quadratic growth in gl_LIBSOURCES.
39667         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
39668         Suggested by Bruno Haible.
39669
39670         Test xmemdup0.
39671         * modules/xmemdup0-tests: New file.
39672         * tests/test-xmemdup0.c: Likewise.
39673
39674 2008-05-13  Eric Blake  <ebb9@byu.net>
39675
39676         Split xmemdup0 into its own module.
39677         * modules/xmemdup0: New file.
39678         * lib/xmemdup0.h: Likewise.
39679         * lib/xmemdup0.c: Likewise.
39680         * MODULES.html.sh (Memory management functions): Add xmemdup0.
39681         * lib/xalloc.h (xmemdup0): Remove.
39682         * lib/xmalloc.c (xmemdup0): Likewise.
39683
39684 2008-05-13  Eric Blake  <ebb9@byu.net>
39685             Bruno Haible  <bruno@clisp.org>
39686
39687         Reduce number of forks required during autoconf.
39688         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
39689         and gl_LIBSOURCES_DIR.
39690         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
39691         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
39692         m4_syscmd per file.
39693         <m4_foreach_w>: Move...
39694         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
39695
39696 2008-05-13  Eric Blake  <ebb9@byu.net>
39697
39698         * gnulib-tool: Fix various comment typos.
39699
39700 2008-05-12  Bruno Haible  <bruno@clisp.org>
39701
39702         Tailor the linebreaking algorithm.
39703         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
39704
39705 2008-05-12  Bruno Haible  <bruno@clisp.org>
39706
39707         Update to Unicode 5.0.0.
39708         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39709         LBP_JV, LBP_JT. Redistribute values.
39710         (unilbrk_table): Change size.
39711         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
39712         Unicode TR#14 rev. 22.
39713         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39714         LBP_JV, LBP_JT. Redistribute values.
39715         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
39716         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
39717         Update.
39718         * lib/unilbrk/lbrkprop1.h: Regenerated.
39719         * lib/unilbrk/lbrkprop2.h: Regenerated.
39720         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
39721         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
39722         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
39723         Likewise.
39724         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
39725         Likewise.
39726         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
39727         result.
39728         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39729         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39730         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
39731         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
39732         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
39733         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
39734
39735 2008-05-11  Bruno Haible  <bruno@clisp.org>
39736
39737         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
39738
39739 2008-05-11  Bruno Haible  <bruno@clisp.org>
39740
39741         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
39742         * modules/unilbrk/gen-lbrk: New file.
39743
39744 2008-05-11  Bruno Haible  <bruno@clisp.org>
39745
39746         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
39747         * m4/sha512.m4 (gl_SHA512): Likewise.
39748
39749 2008-05-11  Jim Meyering  <meyering@redhat.com>
39750
39751         New modules: crypto/sha256, crypto/sha512 (from coreutils)
39752         * modules/crypto/sha256: New file.
39753         * modules/crypto/sha512: Likewise.
39754         * lib/sha256.c: Likewise.
39755         * lib/sha256.h: Likewise.
39756         * lib/sha512.c: Likewise.
39757         * lib/sha512.h: Likewise.
39758         * lib/u64.h: Likewise.
39759         * m4/sha256.m4: Likewise.
39760         * m4/sha512.m4: Likewise.
39761         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
39762
39763 2008-05-10  Bruno Haible  <bruno@clisp.org>
39764
39765         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
39766         (Input/Output <stdio.h>): Add xprintf.
39767         (Signal handling <signal.h>): Add strsignal.
39768         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
39769         (Core language properties): Add func.
39770         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
39771         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
39772         strings.
39773         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
39774         (Input/output): New section.
39775         (File system functions): Add openat-die, stat-macros.
39776         (Networking functions): Add sockets.
39777         (Unicode string functions): Add unictype/*.
39778         (Support for building libraries and executables): Add gperf.
39779         (Support for building documentation): Add agpl-3.0.
39780         (Misc): Add nocrash.
39781
39782 2008-05-10  Bruno Haible  <bruno@clisp.org>
39783
39784         * modules/unictype/gen-ctype: New file.
39785
39786 2008-05-10  Jim Meyering  <meyering@redhat.com>
39787
39788         Make chdir-safer.c more efficient on a system with no symlinks.
39789         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
39790         also if ELOOP is zero.  Suggested by Bruno Haible.
39791
39792         Make chdir-safer.c slightly safer.
39793         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
39794         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
39795
39796         Avoid compile failure on systems without ELOOP (like mingw).
39797         * lib/chdir-safer.c (ELOOP): Define if not already defined.
39798         Reported by Bruno Haible.
39799
39800 2008-05-10  Bruno Haible  <bruno@clisp.org>
39801
39802         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
39803         (is_utf8_encoding): Use a case-insensitive comparison.
39804         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
39805         streq.
39806
39807 2008-05-10  Bruno Haible  <bruno@clisp.org>
39808
39809         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
39810         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
39811         * lib/unilbrk/ulc-common.h (iconv_string_length,
39812         iconv_string_keeping_offsets): Remove declarations.
39813         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
39814         Don't include <iconv.h>, streq.h, xsize.h.
39815         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
39816         conversion.
39817         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
39818         <iconv.h>, streq.h, xsize.h.
39819         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
39820         conversion.
39821         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
39822         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
39823         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
39824         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
39825
39826 2008-05-10  Bruno Haible  <bruno@clisp.org>
39827
39828         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
39829         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
39830
39831         * modules/unilbrk/u32-width-linebreaks-tests: New file.
39832         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
39833
39834         * modules/unilbrk/u16-width-linebreaks-tests: New file.
39835         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
39836
39837         * modules/unilbrk/u8-width-linebreaks-tests: New file.
39838         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
39839
39840         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
39841         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
39842
39843         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
39844         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
39845
39846         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
39847         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
39848
39849         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
39850         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
39851
39852 2008-05-10  Bruno Haible  <bruno@clisp.org>
39853
39854         Split up 'linebreak' module.
39855         * lib/unilbrk.h: New file, based on lib/linebreak.h.
39856         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
39857         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
39858         modifications.
39859         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
39860         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
39861         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
39862         lib/linebreak.c.
39863         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
39864         lib/linebreak.c.
39865         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
39866         lib/linebreak.c.
39867         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
39868         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
39869         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
39870         lib/linebreak.c.
39871         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
39872         lib/linebreak.c.
39873         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
39874         lib/linebreak.c.
39875         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
39876         lib/linebreak.c.
39877         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
39878         lib/linebreak.c.
39879         * modules/unilbrk/base: New file.
39880         * modules/unilbrk/tables: New file.
39881         * modules/unilbrk/u8-possible-linebreaks: New file.
39882         * modules/unilbrk/u16-possible-linebreaks: New file.
39883         * modules/unilbrk/u32-possible-linebreaks: New file.
39884         * modules/unilbrk/ulc-common: New file.
39885         * modules/unilbrk/ulc-possible-linebreaks: New file.
39886         * modules/unilbrk/u8-width-linebreaks: New file.
39887         * modules/unilbrk/u16-width-linebreaks: New file.
39888         * modules/unilbrk/u32-width-linebreaks: New file.
39889         * modules/unilbrk/ulc-width-linebreaks: New file.
39890         * lib/linebreak.h: Remove file.
39891         * lib/linebreak.c: Remove file.
39892         * m4/linebreak.m4: Remove file.
39893         * modules/linebreak: Remove file.
39894         * NEWS: Mention the changes.
39895
39896 2008-05-09  Eric Blake  <ebb9@byu.net>
39897
39898         Add xmemdup0.
39899         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
39900         implementation.
39901         * lib/xmalloc.c (xmemdup0): New C implementation.
39902
39903 2008-05-08  Bruno Haible  <bruno@clisp.org>
39904
39905         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
39906
39907 2008-05-07  Eric Blake  <ebb9@byu.net>
39908
39909         Support cross-compilation of <wctype.h>.
39910         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
39911         AC_CACHE_CHECK.
39912
39913 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
39914
39915         * build-aux/vc-list-files: Add support for bzr.
39916
39917 2008-05-03  Jim Meyering  <meyering@redhat.com>
39918
39919         avoid failed assertion with tight malloc
39920         * tests/test-getndelim2.c: Correct an off-by-one assertion.
39921
39922 2008-05-03  Simon Josefsson  <simon@josefsson.org>
39923
39924         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
39925         are needed from arpa/inet.h.
39926         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
39927         Reported by Bruno Haible.
39928
39929 2008-05-02  Jim Meyering  <meyering@redhat.com>
39930
39931         avoid compilation error on FreeBSD 6
39932         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
39933
39934 2008-05-01  Jim Meyering  <meyering@redhat.com>
39935
39936         useless-if-before-free: correct --help's exit status description
39937         * build-aux/useless-if-before-free (usage): Like grep, exit 0
39938         for one or more matches, etc.  Reported by Bruno Haible.
39939
39940         vc-list-files: make the stand-alone gnulib test work
39941         * modules/vc-list-files-tests (configure.ac):
39942         Define and AC_SUBST abs_aux_dir.
39943         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
39944         $(abs_top_srcdir) to each script and having each of them
39945         duplicate the work of setting PATH, set PATH here, using
39946         the new variable, abs_aux_dir instead.
39947         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
39948         * tests/test-vc-list-files-git.sh: Likewise.
39949         Reported by Bruno Haible.
39950
39951 2008-05-01  Bruno Haible  <bruno@clisp.org>
39952
39953         * lib/getndelim2.c (getndelim2): Fix newsize computation during
39954         reallocation. Rename 'done' to 'found_delimiter'.
39955
39956 2008-05-01  Jim Meyering  <meyering@redhat.com>
39957
39958         vc-list-files: accommodate /bin/sh like the one from Solaris 10
39959         * build-aux/vc-list-files: Use `...`, not $(...).
39960
39961 2008-04-30  Jim Meyering  <meyering@redhat.com>
39962
39963         add tests for vc-list-files
39964         * modules/vc-list-files-tests: New module.
39965         * tests/test-vc-list-files-cvs.sh: New file.
39966         * tests/test-vc-list-files-git.sh: New file.
39967
39968         avoid a warning from gcc
39969         * lib/getndelim2.c (IF_LINT): Define.
39970         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
39971
39972         vc-list-files: work properly with build-aux/cvsu, too
39973         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
39974         to all cvs-based clauses.
39975
39976         vc-list-files: work properly in the CVS+awk case, too
39977         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
39978
39979         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
39980         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
39981         take more than one file argument, so .  Add quotes, just in case $dir
39982         ever contains a shell meta-character.  Prompted by Soren Hansen in
39983         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
39984
39985 2008-04-29  Eric Blake  <ebb9@byu.net>
39986
39987         Optimize getndelim2 to use block operations when possible.
39988         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
39989         freadseek, and memchr2.
39990         * lib/getndelim2.c (getndelim2): Use them for block reads.
39991
39992 2008-04-29  Bruno Haible  <bruno@clisp.org>
39993
39994         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
39995         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39996         * modules/inet_ntop (Depends-on): Add extensions.
39997         * modules/inet_pton (Depends-on): Likewise.
39998         Reported by Simon Josefsson.
39999
40000 2008-04-29  Jim Meyering  <meyering@redhat.com>
40001
40002         When the is more than one match in a block, match all of them.
40003         * build-aux/useless-if-before-free: Iterate through each block
40004         until there are no more matches.
40005
40006         Fix broken useless-if-before-free script.
40007         * build-aux/useless-if-before-free: Fix typo: missing "?" after
40008         the expression to match cast of argument to free-like function.
40009
40010 2008-04-29  Eric Blake  <ebb9@byu.net>
40011
40012         Use new header.
40013         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
40014
40015 2008-04-29  Jim Meyering  <meyering@redhat.com>
40016
40017         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
40018         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
40019         by gnulib to exist and to declare e.g., inet_ntop.
40020         Don't include "inet_ntop.h", now removed.
40021
40022         * m4/arpa_inet_h.m4: Remove trailing blanks.
40023
40024 2008-04-29  Eric Blake  <ebb9@byu.net>
40025
40026         Silence valgrind on safe reads beyond potential array bounds.
40027         * lib/rawmemchr.valgrind: New file.
40028         * lib/strchrnul.valgrind: Likewise.
40029         * modules/rawmemchr (Files): Distribute new file.
40030         * modules/strchrnul (Files): Likewise.
40031         Suggested by Bruno Haible.
40032
40033 2008-04-29  Bruno Haible  <bruno@clisp.org>
40034
40035         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
40036         (inet_ntop, inet_pton): Change portability warning's wording.
40037         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
40038         Invoke gl_CHECK_NEXT_HEADERS.
40039         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
40040         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
40041         set ARPA_INET_H.
40042         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40043         * modules/arpa_inet (Description): No longer only for systems that
40044         lack it.
40045         (Depends-on): Add include_next.
40046         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
40047         HAVE_ARPA_INET_H.
40048
40049 2008-04-29  Jim Meyering  <meyering@redhat.com>
40050
40051         * modules/mkdir (License): Re-license as LGPLv2+.
40052
40053 2008-04-29  Bruno Haible  <bruno@clisp.org>
40054
40055         * modules/rawmemchr (Maintainer): Set to Eric.
40056         * modules/strchrnul (Maintainer): Likewise.
40057
40058 2008-04-29  Simon Josefsson  <simon@josefsson.org>
40059
40060         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
40061         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
40062
40063         * modules/arpa_inet (arpa/inet.h): Use them.
40064
40065 2008-04-28  Eric Blake  <ebb9@byu.net>
40066
40067         Test getndelim2.
40068         * modules/getndelim2-tests: New file.
40069         * tests/test-getndelim2.c: Likewise.
40070         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
40071         stream.
40072         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
40073
40074         * MODULES.html.sh: Document new module.
40075
40076 2008-04-20  Bruno Haible  <bruno@clisp.org>
40077
40078         * lib/c-stack.c (die): Use raise.
40079         * modules/c-stack (Depends-on): Add raise.
40080
40081 2008-04-28  Bruno Haible  <bruno@clisp.org>
40082
40083         Expect rpmatch to be declared.
40084         * lib/yesno.c (rpmatch): Remove declaration.
40085
40086         Declare rpmatch.
40087         * lib/stdlib.in.h (rpmatch): New declaration.
40088         * lib/rpmatch.c: Include <stdlib.h> first.
40089         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
40090         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
40091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
40092         HAVE_RPMATCH.
40093         * modules/rpmatch (Depends-on): Add stdlib, extensions.
40094         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40095         (Include): Set to <stdlib.h>.
40096         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
40097         HAVE_RPMATCH.
40098         * NEWS: Document the change.
40099
40100 2008-04-28  Bruno Haible  <bruno@clisp.org>
40101
40102         Change rpmatch to use nl_langinfo when appropriate.
40103         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
40104         (N_): New macro.
40105         (localized_pattern): New function/macro.
40106         (try): Remove match, nomatch arguments. Copy the pattern into safe
40107         memory before caching it.
40108         (rpmatch): Use localized_pattern. Add translator comments.
40109         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
40110         Suggested by Eric Blake.
40111         * modules/rpmatch (Depends-on): Add stdbool.
40112
40113 2008-04-28  Eric Blake  <ebb9@byu.net>
40114
40115         Add rawmemchr module, matching glibc.
40116         * modules/string (Makefile.am): New indicator.
40117         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
40118         * lib/string.in.h (rawmemchr): Declare when appropriate.
40119         * modules/rawmemchr: New file.
40120         * m4/rawmemchr.m4: Likewise.
40121         * lib/rawmemchr.c: Likewise.
40122         * modules/rawmemchr-tests: Likewise.
40123         * tests/test-rawmemchr.c: Likewise.
40124         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
40125         module.
40126         * modules/strchrnul (Depends-on): Add rawmemchr.
40127         * lib/strchrnul.c (strchrnul): Optimize a corner case.
40128
40129         Whitespace cleanup.
40130         * tests/test-strchrnul.c: Reindent.
40131         * lib/strchrnul.c: Likewise.
40132
40133         Optimize and test strchrnul.
40134         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
40135         * modules/strchrnul-tests: New file.
40136         * tests/test-strchrnul.c: Likewise.
40137
40138         Remove intprops dependency.
40139         * modules/memchr (Depends-on): Remove intprops.
40140         * modules/memrchr (Depends-on): Likewise.
40141         * modules/memchr2 (Depends-on): Likewise.
40142         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
40143         * lib/memrchr.c (__memrchr): Likewise.
40144         * lib/memrchr2.c (memchr2): Likewise.
40145         Reported by Simon Josefsson.
40146
40147 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40148
40149         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
40150         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40151
40152 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40153
40154         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
40155
40156         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
40157
40158         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
40159
40160         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
40161         declarations.
40162         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
40163
40164         * m4/inet_pton.m4: Don't check for header files.
40165
40166         * m4/inet_ntop.m4: Don't check for header files.
40167
40168 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40169
40170         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
40171         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
40172         trigger for cygwin).
40173         Reported by Bruno Haible  <bruno@clisp.org>.
40174
40175 2008-04-28  Bruno Haible  <bruno@clisp.org>
40176
40177         * doc/posix-functions/strdup.texi: Mention mingw problem.
40178
40179 2008-04-27  Bruno Haible  <bruno@clisp.org>
40180
40181         * modules/stat-time-tests (Depends-on): Add sleep.
40182         * tests/test-stat-time.c (force_unlink): New function.
40183         (cleanup): Use it.
40184         (test_mtime): Remove the ctime related tests.
40185         (test_ctime): New function, containing the ctime related tests.
40186         (main): Call test_ctime, except on native Windows platforms.
40187
40188 2008-04-27  Bruno Haible  <bruno@clisp.org>
40189
40190         * lib/rpmatch.c (rpmatch): Add some comments.
40191         Reported by James Youngman <jay@gnu.org>.
40192
40193 2008-04-27  Bruno Haible  <bruno@clisp.org>
40194
40195         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
40196         quiet NaNs.
40197
40198 2008-04-27  Bruno Haible  <bruno@clisp.org>
40199
40200         Make test-yesno.sh work on mingw.
40201         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
40202         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
40203         (main): Set stdin to binary mode.
40204         * modules/yesno-tests (Depends-on): Add binary-io.
40205
40206 2008-04-27  Bruno Haible  <bruno@clisp.org>
40207
40208         Fix 'isfinite' on x86, x86_64, ia64 platforms.
40209         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
40210         argument that lie outside the IEEE 854 domain.
40211         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
40212         (gl_ISFINITE): Use it.
40213         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
40214
40215 2008-04-27  Bruno Haible  <bruno@clisp.org>
40216
40217         Allow local renaming in config.h.
40218         * lib/memrchr.c (memrchr): Don't undefine outside libc.
40219
40220 2008-04-27  Bruno Haible  <bruno@clisp.org>
40221
40222         * lib/memchr.c (__memchr): Change type of 'i'.
40223         * lib/memchr2.c (memchr2): Likewise.
40224
40225 2008-04-26  Eric Blake  <ebb9@byu.net>
40226         and Bruno Haible  <bruno@clisp.org>
40227
40228         Optimize and test memrchr.
40229         * modules/memrchr (Depends-on): Add intprops.
40230         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
40231         * modules/memrchr-tests: New file.
40232         * tests/test-memrchr.c: New file.
40233
40234 2008-04-26  Bruno Haible  <bruno@clisp.org>
40235
40236         Add tentative support for DragonFly BSD.
40237         * lib/stdio-impl.h: Add macros for DragonFly BSD.
40238         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
40239         fp.
40240         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40241         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
40242         * lib/fpurge.c (fpurge): Likewise.
40243         * lib/freadable.c (freaadable): Likewise.
40244         * lib/freadahead.c (freadahead): Likewise.
40245         * lib/freading.c (freading): Likewise.
40246         * lib/freadptr.c (freadptr): Likewise.
40247         * lib/freadseek.c (freadptrinc): Likewise.
40248         * lib/fseeko.c (fseeko): Likewise.
40249         * lib/fseterr.c (fseterr): Likewise.
40250         * lib/fwritable.c (fwritable): Likewise.
40251         * lib/fwriting.c (fwriting): Likewise.
40252
40253 2008-04-26  Bruno Haible  <bruno@clisp.org>
40254
40255         * lib/stdio-impl.h: New file.
40256         * lib/fbufmode.c: Include stdio-impl.h.
40257         (fbufmode): Use fp_, remove redundant #defines.
40258         * lib/fflush.c: Include stdio-impl.h.
40259         (clear_ungetc_buffer): Remove redundant #defines.
40260         * lib/fpurge.c: Include stdio-impl.h.
40261         (fpurge): Remove redundant #defines.
40262         * lib/freadable.c: Include stdio-impl.h.
40263         (freadable): Remove redundant #defines.
40264         * lib/freadahead.c: Include stdio-impl.h.
40265         (freadahead): Remove redundant #defines.
40266         * lib/freading.c: Include stdio-impl.h.
40267         (freading): Remove redundant #defines.
40268         * lib/freadptr.c: Include stdio-impl.h.
40269         (freadptr): Remove redundant #defines.
40270         * lib/freadseek.c: Include stdio-impl.h.
40271         (freadptrinc): Remove redundant #defines.
40272         * lib/fseeko.c: Include stdio-impl.h.
40273         (rpl_fseeko): Remove redundant #defines.
40274         * lib/fseterr.c: Include stdio-impl.h.
40275         (fseterr): Remove redundant #defines.
40276         * lib/fwritable.c: Include stdio-impl.h.
40277         (fwritable: Remove redundant #defines.
40278         * lib/fwriting.c: Include stdio-impl.h.
40279         (fwriting): Remove redundant #defines.
40280         * modules/fbufmode (Files): Add lib/stdio-impl.h.
40281         * modules/fflush (Files): Likewise.
40282         * modules/fpurge (Files): Likewise.
40283         * modules/freadable (Files): Likewise.
40284         * modules/freadahead (Files): Likewise.
40285         * modules/freading (Files): Likewise.
40286         * modules/freadptr (Files): Likewise.
40287         * modules/freadseek (Files): Likewise.
40288         * modules/fseeko (Files): Likewise.
40289         * modules/fseterr (Files): Likewise.
40290         * modules/fwritable (Files): Likewise.
40291         * modules/fwriting (Files): Likewise.
40292
40293 2008-04-26  Bruno Haible  <bruno@clisp.org>
40294
40295         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40296         restore_seek_optimization, update_fpos_cache): New functions, extracted
40297         from rpl_fflush.
40298         (rpl_fflush): Use them.
40299         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
40300         (gl_REPLACE_FFLUSH): Use it.
40301
40302 2008-04-26  Bruno Haible  <bruno@clisp.org>
40303
40304         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
40305         on Solaris.
40306         * tests/test-xstrtoimax.sh: Likewise.
40307         * tests/test-xstrtoumax.sh: Likewise.
40308         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40309
40310 2008-04-26  Bruno Haible  <bruno@clisp.org>
40311
40312         * modules/memchr-tests: New file.
40313         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
40314
40315 2008-04-26  Eric Blake  <ebb9@byu.net>
40316             Bruno Haible  <bruno@clisp.org>
40317
40318         * lib/memchr.c: Include intprops.h.
40319         (__memchr): Optimize parallel detection of matching bytes. Rename local
40320         variables. Add explanatory comments.
40321
40322 2008-04-26  Bruno Haible  <bruno@clisp.org>
40323
40324         Fix module 'memchr', broken since 2000-10-28.
40325         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
40326
40327 2008-04-26  Bruno Haible  <bruno@clisp.org>
40328
40329         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
40330         comments.
40331
40332 2008-04-25  Eric Blake  <ebb9@byu.net>
40333
40334         Use native fstatat on cygwin 1.7.0.
40335         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
40336         first.
40337
40338 2008-04-23  Eric Blake  <ebb9@byu.net>
40339
40340         Improve memchr2 performance.
40341         * lib/memchr2.c (memchr2): Further optimize parallel detection of
40342         NUL bytes.
40343         * modules/memchr2 (Depends-on): Use intprops.h.
40344
40345 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40346
40347         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
40348         an inline function instead of a CPP macro.  Patch by Ben Pfaff
40349         <blp@cs.stanford.edu>.
40350
40351 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40352
40353         * lib/arpa_inet.in.h: New file.
40354
40355         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
40356         (Makefile.am): Sed in substitute header file.
40357
40358         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
40359         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
40360
40361         * modules/inet_ntop (configure.ac): Use
40362         gl_ARPA_INET_MODULE_INDICATOR.
40363
40364         * modules/inet_pton (configure.ac): Use
40365         gl_ARPA_INET_MODULE_INDICATOR.
40366
40367 2008-04-22  Jim Meyering  <meyering@redhat.com>
40368
40369         * modules/verify (License): Re-license as LGPLv2+.
40370
40371 2008-04-22  Simon Josefsson  <simon@josefsson.org>
40372
40373         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
40374         parameter to void* as per POSIX standard (MinGW uses char*).
40375
40376 2008-04-21  Bruno Haible  <bruno@clisp.org>
40377
40378         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
40379         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
40380         Define to replacements if REPLACE_ISWCNTRL is 1.
40381         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
40382         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
40383         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
40384         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
40385         what it fixes.
40386         * doc/posix-functions/iswalpha.texi: Likewise.
40387         * doc/posix-functions/iswblank.texi: Likewise.
40388         * doc/posix-functions/iswcntrl.texi: Likewise.
40389         * doc/posix-functions/iswdigit.texi: Likewise.
40390         * doc/posix-functions/iswgraph.texi: Likewise.
40391         * doc/posix-functions/iswlower.texi: Likewise.
40392         * doc/posix-functions/iswprint.texi: Likewise.
40393         * doc/posix-functions/iswpunct.texi: Likewise.
40394         * doc/posix-functions/iswspace.texi: Likewise.
40395         * doc/posix-functions/iswupper.texi: Likewise.
40396         * doc/posix-functions/iswxdigit.texi: Likewise.
40397         Reported by Alain Guibert.
40398
40399 2008-04-21  Bruno Haible  <bruno@clisp.org>
40400
40401         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
40402         Patch by Alain Guibert.
40403
40404 2008-04-21  Bruno Haible  <bruno@clisp.org>
40405
40406         Fix test failures on mingw.
40407         * tests/test-xstrtol.c (print_no_progname): New function.
40408         (main): Install it in error_print_progname hook.
40409         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
40410         * tests/test-xstrtoimax.sh: Likewise.
40411         * tests/test-xstrtoumax.sh: Likewise.
40412
40413 2008-04-21  Bruno Haible  <bruno@clisp.org>
40414
40415         Fix test failure on mingw.
40416         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
40417
40418 2008-04-21  Bruno Haible  <bruno@clisp.org>
40419
40420         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
40421         Actually assign a value.
40422
40423 2008-04-20  Bruno Haible  <bruno@clisp.org>
40424
40425         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
40426         take 2.
40427         * lib/canonicalize.c (canonicalize_file_name): Elide if the
40428         'canonicalize-lgpl' module is also used.
40429         * lib/canonicalize-lgpl.c: Undo last change.
40430         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
40431
40432 2008-04-20  Bruno Haible  <bruno@clisp.org>
40433
40434         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
40435         config.h. Provide _mkdir based fallback for mingw.
40436         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
40437         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
40438         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
40439         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
40440         rather than defining mkdir in config.h.
40441         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
40442         (gl_SYS_STAT_H_DEFAULTS): New macro.
40443         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
40444         HAVE_IO_H any more.
40445         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
40446         HAVE_DECL_MKDIR and HAVE_IO_H.
40447
40448 2008-04-20  Bruno Haible  <bruno@clisp.org>
40449
40450         * lib/isapipe.c: Port to native Windows platforms.
40451
40452 2008-04-20  Bruno Haible  <bruno@clisp.org>
40453
40454         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
40455
40456 2008-04-21  Eric Blake  <ebb9@byu.net>
40457
40458         Work around preprocessors that don't handle UINTMAX_MAX.
40459         * lib/memchr2.c (memchr2): Avoid embedded #if.
40460         Reported by Alain Guibert, fix suggested by Bruno Haible.
40461
40462 2008-04-21  Simon Josefsson  <simon@josefsson.org>
40463
40464         * doc/posix-functions/strftime.texi (strftime): Explain better
40465         Windows incompatibility.  Suggested by Micah Cowan
40466         <micah@cowan.name>.
40467
40468 2008-04-20  Bruno Haible  <bruno@clisp.org>
40469
40470         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
40471         unistr/u8-mblen.
40472
40473 2008-04-20  Bruno Haible  <bruno@clisp.org>
40474
40475         Fix test failure on platforms with non-GNU iconv.
40476         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
40477         (U_TO_U8): Use it, rather than u16_to_u8.
40478         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
40479         units at the end of the input string.
40480         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
40481
40482 2008-04-20  Bruno Haible  <bruno@clisp.org>
40483
40484         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
40485         when the resulting length is 0.
40486         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
40487
40488 2008-04-20  Bruno Haible  <bruno@clisp.org>
40489
40490         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
40491         works.
40492         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
40493
40494 2008-04-20  Bruno Haible  <bruno@clisp.org>
40495
40496         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
40497         * modules/tsearch-tests (configure.ac): Test for initstate function.
40498
40499 2008-04-20  Bruno Haible  <bruno@clisp.org>
40500
40501         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
40502         for nlink_t if missing.
40503         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
40504
40505 2008-04-19  Bruno Haible  <bruno@clisp.org>
40506
40507         Work around snprintf bug on Linux libc5.
40508         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
40509         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40510         gl_SNPRINTF_SIZE1.
40511         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40512         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
40513         that test failed.
40514         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40515         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
40516         * modules/snprintf (Files): Add m4/printf.m4.
40517         * modules/vsnprintf (Files): Likewise.
40518         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
40519         * doc/posix-functions/vsnprintf.texi: Likewise.
40520
40521 2008-04-19  Bruno Haible  <bruno@clisp.org>
40522
40523         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
40524         from 0.0058 to less than 10^-7.
40525
40526 2008-04-19  Bruno Haible  <bruno@clisp.org>
40527
40528         Fix rounding when a precision is given.
40529         * lib/vasnprintf.c (is_borderline): New function.
40530         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
40531         9...9x.
40532         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
40533         %e, %g.
40534         * tests/test-vasprintf-posix.c (test_function): Likewise.
40535         * tests/test-snprintf-posix.h (test_function): Likewise.
40536         * tests/test-sprintf-posix.h (test_function): Likewise.
40537         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
40538         * tests/test-printf-posix.h (test_function): Likewise.
40539         * tests/test-printf-posix.output: Update.
40540         Reported by John Darrington <john@darrington.wattle.id.au> via
40541         Ben Pfaff <blp@cs.stanford.edu>.
40542
40543 2008-04-18  Simon Josefsson  <simon@josefsson.org>
40544
40545         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
40546         Suggested by Bruno Haible <bruno@clisp.org>.
40547
40548 2008-04-17  Bruno Haible  <bruno@clisp.org>
40549
40550         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
40551         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
40552         implementation.
40553         Patch by Bruce Merry <bmerry@gmail.com>.
40554
40555 2008-04-17  Simon Josefsson  <simon@josefsson.org>
40556
40557         * doc/posix-functions/strftime.texi (strftime): Mention that %e
40558         doesn't work under Windows.
40559
40560 2008-04-16  Bruno Haible  <bruno@clisp.org>
40561
40562         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
40563         New macros.
40564         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
40565         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
40566         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
40567         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
40568         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
40569         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
40570         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
40571         macros.
40572         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
40573         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
40574         Northern Sotho, Uighur.
40575
40576 2008-04-16  Bruno Haible  <bruno@clisp.org>
40577
40578         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
40579         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
40580         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
40581         Reported by Daniel Bergström <daniel@octocode.com>.
40582
40583 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
40584             Bruno Haible  <bruno@clisp.org>
40585
40586         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
40587         function.
40588         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
40589         New functions, mostly extracted from gl_locale_name_default.
40590         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
40591
40592 2008-04-16  Eric Blake  <ebb9@byu.net>
40593
40594         Adjust strtod detection to catch glibc 2.7 bug.
40595         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
40596         Reported by John Gatewood Ham.
40597
40598 2008-04-16  Bruno Haible  <bruno@clisp.org>
40599
40600         Add tentative support for Linux libc5.
40601         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
40602         * lib/fpurge.c (fpurge): Likewise.
40603         * lib/freadable.c (freadable): Likewise.
40604         * lib/freadahead.c (freadahead): Likewise.
40605         * lib/freading.c (freading): Likewise.
40606         * lib/freadptr.c (freadptr): Likewise.
40607         * lib/freadseek.c (freadptrinc): Likewise.
40608         * lib/fseeko.c (rpl_fseeko): Likewise.
40609         * lib/fseterr.c (fseterr): Likewise.
40610         * lib/fwritable.c (fwritable): Likewise.
40611         * lib/fwriting.c (fwriting): Likewise.
40612         Reported by Alain Guibert <alguibert+bts@free.fr>.
40613
40614 2008-04-15  Bruno Haible  <bruno@clisp.org>
40615
40616         * modules/mathl (configure.ac): Define module indicator.
40617
40618 2008-04-15  Bruno Haible  <bruno@clisp.org>
40619
40620         * lib/logl.c (logl): Remove unused variables.
40621
40622 2008-04-15  Bruno Haible  <bruno@clisp.org>
40623
40624         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
40625         fails.
40626
40627 2008-04-15  Bruno Haible  <bruno@clisp.org>
40628
40629         * lib/trim.c (trim2): Fix argument of isspace() macro.
40630
40631 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
40632
40633         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
40634         to 0.
40635         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
40636
40637 2008-04-14  Bruno Haible  <bruno@clisp.org>
40638
40639         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
40640         AC_LANG_PROGRAM argument.
40641         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
40642         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
40643         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40644         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40645         * m4/math_h.m4 (gl_MATH_H): Likewise.
40646         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40647         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40648         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40649         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
40650         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40651         * m4/regex.m4 (gl_REGEX): Likewise.
40652         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
40653         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
40654         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40655         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
40656         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40657         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40658         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40659         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40660
40661 2008-04-14  Jim Meyering  <meyering@redhat.com>
40662
40663         test-strtod: fix typos: s/abs/fabs/
40664         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
40665
40666 2008-04-13  Bruno Haible  <bruno@clisp.org>
40667
40668         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
40669         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
40670         module is also used and while not building the reloc-wrapper.
40671
40672 2008-04-13  Bruno Haible  <bruno@clisp.org>
40673
40674         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
40675
40676 2008-04-13  Bruno Haible  <bruno@clisp.org>
40677
40678         Fix AIX compilation failure introduced on 2008-04-02.
40679         * tests/test-frexp.c (exp): Undefine before redefining.
40680         * tests/test-frexpl.c (exp): Likewise.
40681
40682 2008-04-13  Bruno Haible  <bruno@clisp.org>
40683
40684         Work around a HP-UX stdio bug.
40685         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
40686         * tests/test-ftello.c (main): Likewise.
40687         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
40688         * doc/posix-functions/ftello.texi: Likewise.
40689
40690 2008-04-13  Bruno Haible  <bruno@clisp.org>
40691
40692         Make test-signbit pass on HP-UX/hppa.
40693         * tests/test-signbit.c (minus_zerol): New variable.
40694         (test_signbitl): Use it.
40695
40696 2008-04-13  Bruno Haible  <bruno@clisp.org>
40697
40698         Make truncl work on OSF/1 4.0.
40699         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
40700         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40701         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40702         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
40703         HAVE_DECL_TRUNCL.
40704         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
40705         HAVE_DECL_TRUNCL.
40706         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
40707
40708 2008-04-13  Bruno Haible  <bruno@clisp.org>
40709
40710         * lib/unictype.h: Remove trailing comma from enumeration definitions.
40711
40712 2008-04-13  Bruno Haible  <bruno@clisp.org>
40713
40714         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
40715         expression, so as to avoid HP-UX 11 cc compiler bug.
40716
40717 2008-04-13  Bruno Haible  <bruno@clisp.org>
40718
40719         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
40720
40721 2008-04-13  Bruno Haible  <bruno@clisp.org>
40722
40723         * lib/git-merge-changelog.c: Remove empty declaration outside of
40724         functions.
40725
40726 2008-04-13  Bruno Haible  <bruno@clisp.org>
40727
40728         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
40729
40730 2008-04-13  Bruno Haible  <bruno@clisp.org>
40731
40732         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
40733         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
40734         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
40735         also if it exists but lacks definitions of the SHUT_* macros.
40736         * modules/sys_socket (Description): Update.
40737         Reported by Elbert Pol <e.pol@chello.nl>.
40738
40739 2008-04-13  Bruno Haible  <bruno@clisp.org>
40740
40741         * lib/localcharset.c (OS2): Don't redefine if already defined.
40742         Reported by Elbert Pol <e.pol@chello.nl>.
40743
40744 2008-04-13  Bruno Haible  <bruno@clisp.org>
40745
40746         * lib/binary-io.h [__EMX__]: Include <io.h>.
40747         Reported by Elbert Pol <e.pol@chello.nl>.
40748
40749 2008-04-12  Bruno Haible  <bruno@clisp.org>
40750
40751         * lib/fpucw.h: Enable the definitions also for x86_64.
40752         Needed for NetBSD/x86_64.
40753         Reported by Thomas Klausner <tk@giga.or.at>.
40754
40755 2008-04-12  Bruno Haible  <bruno@clisp.org>
40756
40757         * tests/test-strtod.c: Include isnand.h.
40758         (main): Use isnand instead of isnan.
40759         Reported by Jim Meyering.
40760
40761 2008-04-12  Bruno Haible  <bruno@clisp.org>
40762
40763         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
40764         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40765
40766 2008-04-12  Jim Meyering  <meyering@redhat.com>
40767
40768         * m4/math_h.m4 (gl_MATH_H): Fix typos.
40769
40770 2008-04-12  Bruno Haible  <bruno@clisp.org>
40771
40772         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
40773         Reported by Elbert Pol <e.pol@chello.nl>.
40774
40775 2008-04-12  Eric Blake  <ebb9@byu.net>
40776
40777         Work around Solaris 10 math.h bug.
40778         * m4/math_h.m4 (gl_MATH_H): Check for bug.
40779         (gl_MATH_H_DEFAULTS): Set up default.
40780         * modules/math (Makefile.am): Replace new indicators.
40781         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
40782         * tests/test-math.c (main): Test this.
40783         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
40784         * doc/posix-headers/math.texi (math.h): Mention bug.
40785         Reported by Nelson H. F. Beebe and Jim Meyering.
40786
40787 2008-04-11  Bruno Haible  <bruno@clisp.org>
40788
40789         Adapt to future versions of Apple GCC.
40790         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
40791         Reported by Peter O'Gorman <peter@pogma.com>.
40792
40793 2008-04-11  Bruno Haible  <bruno@clisp.org>
40794
40795         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
40796
40797 2008-04-11  Bruno Haible  <bruno@clisp.org>
40798
40799         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
40800
40801         * modules/getaddrinfo-tests (Makefile.am): Define
40802         test_getaddrinfo_LDADD.
40803
40804 2008-04-11  Bruno Haible  <bruno@clisp.org>
40805
40806         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
40807         (init): Fix syntax error.
40808         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
40809         is declared.
40810
40811 2008-04-11  Bruno Haible  <bruno@clisp.org>
40812
40813         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
40814         * modules/glob (Depends-on): Add stdbool.
40815
40816 2008-04-11  Bruno Haible  <bruno@clisp.org>
40817
40818         * lib/trim.c: Include <string.h>.
40819
40820 2008-04-11  Eric Blake  <ebb9@byu.net>
40821
40822         Avoid compile failure on OS/2.
40823         * lib/regex_internal.h (internal_function): Disable optimization
40824         on OS/2 (__EMX__), where it caused compiler error.
40825         Reported by Elbert Pol.
40826
40827 2008-04-11  Bruno Haible  <bruno@clisp.org>
40828
40829         Flush the standard error stream before aborting. Needed on mingw.
40830         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
40831         * tests/test-array_list.c (ASSERT): Likewise.
40832         * tests/test-array_oset.c (ASSERT): Likewise.
40833         * tests/test-avltree_list.c (ASSERT): Likewise.
40834         * tests/test-avltree_oset.c (ASSERT): Likewise.
40835         * tests/test-avltreehash_list.c (ASSERT): Likewise.
40836         * tests/test-binary-io.c (ASSERT): Likewise.
40837         * tests/test-byteswap.c (ASSERT): Likewise.
40838         * tests/test-c-ctype.c (ASSERT): Likewise.
40839         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
40840         * tests/test-c-strcasestr.c (ASSERT): Likewise.
40841         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
40842         * tests/test-c-strstr.c (ASSERT): Likewise.
40843         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
40844         * tests/test-canonicalize.c (ASSERT): Likewise.
40845         * tests/test-carray_list.c (ASSERT): Likewise.
40846         * tests/test-ceilf1.c (ASSERT): Likewise.
40847         * tests/test-ceilf2.c (ASSERT): Likewise.
40848         * tests/test-ceill.c (ASSERT): Likewise.
40849         * tests/test-count-one-bits.c (ASSERT): Likewise.
40850         * tests/test-fbufmode.c (ASSERT): Likewise.
40851         * tests/test-fflush2.c (ASSERT): Likewise.
40852         * tests/test-floorf1.c (ASSERT): Likewise.
40853         * tests/test-floorf2.c (ASSERT): Likewise.
40854         * tests/test-floorl.c (ASSERT): Likewise.
40855         * tests/test-fopen.c (ASSERT): Likewise.
40856         * tests/test-fpending.c (ASSERT): Likewise.
40857         * tests/test-fprintf-posix.c (ASSERT): Likewise.
40858         * tests/test-fpurge.c (ASSERT): Likewise.
40859         * tests/test-freadable.c (ASSERT): Likewise.
40860         * tests/test-freadahead.c (ASSERT): Likewise.
40861         * tests/test-freading.c (ASSERT): Likewise.
40862         * tests/test-freadptr.c (ASSERT): Likewise.
40863         * tests/test-freadptr2.c (ASSERT): Likewise.
40864         * tests/test-freadseek.c (ASSERT): Likewise.
40865         * tests/test-freopen.c (ASSERT): Likewise.
40866         * tests/test-frexp.c (ASSERT): Likewise.
40867         * tests/test-frexpl.c (ASSERT): Likewise.
40868         * tests/test-fseek.c (ASSERT): Likewise.
40869         * tests/test-fseeko.c (ASSERT): Likewise.
40870         * tests/test-fstrcmp.c (ASSERT): Likewise.
40871         * tests/test-ftell.c (ASSERT): Likewise.
40872         * tests/test-ftello.c (ASSERT): Likewise.
40873         * tests/test-func.c (ASSERT): Likewise.
40874         * tests/test-fwritable.c (ASSERT): Likewise.
40875         * tests/test-fwriting.c (ASSERT): Likewise.
40876         * tests/test-getdelim.c (ASSERT): Likewise.
40877         * tests/test-getline.c (ASSERT): Likewise.
40878         * tests/test-i-ring.c (ASSERT): Likewise.
40879         * tests/test-iconv-utf.c (ASSERT): Likewise.
40880         * tests/test-iconv.c (ASSERT): Likewise.
40881         * tests/test-isfinite.c (ASSERT): Likewise.
40882         * tests/test-isnand.c (ASSERT): Likewise.
40883         * tests/test-isnanf.c (ASSERT): Likewise.
40884         * tests/test-isnanl.h (ASSERT): Likewise.
40885         * tests/test-ldexpl.c (ASSERT): Likewise.
40886         * tests/test-linked_list.c (ASSERT): Likewise.
40887         * tests/test-linkedhash_list.c (ASSERT): Likewise.
40888         * tests/test-localename.c (ASSERT): Likewise.
40889         * tests/test-lseek.c (ASSERT): Likewise.
40890         * tests/test-mbscasecmp.c (ASSERT): Likewise.
40891         * tests/test-mbscasestr1.c (ASSERT): Likewise.
40892         * tests/test-mbscasestr2.c (ASSERT): Likewise.
40893         * tests/test-mbscasestr3.c (ASSERT): Likewise.
40894         * tests/test-mbscasestr4.c (ASSERT): Likewise.
40895         * tests/test-mbschr.c (ASSERT): Likewise.
40896         * tests/test-mbscspn.c (ASSERT): Likewise.
40897         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
40898         * tests/test-mbspbrk.c (ASSERT): Likewise.
40899         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
40900         * tests/test-mbsrchr.c (ASSERT): Likewise.
40901         * tests/test-mbsspn.c (ASSERT): Likewise.
40902         * tests/test-mbsstr1.c (ASSERT): Likewise.
40903         * tests/test-mbsstr2.c (ASSERT): Likewise.
40904         * tests/test-mbsstr3.c (ASSERT): Likewise.
40905         * tests/test-memchr2.c (ASSERT): Likewise.
40906         * tests/test-memmem.c (ASSERT): Likewise.
40907         * tests/test-open.c (ASSERT): Likewise.
40908         * tests/test-printf-frexp.c (ASSERT): Likewise.
40909         * tests/test-printf-frexpl.c (ASSERT): Likewise.
40910         * tests/test-printf-posix.c (ASSERT): Likewise.
40911         * tests/test-quotearg.c (ASSERT): Likewise.
40912         * tests/test-rbtree_list.c (ASSERT): Likewise.
40913         * tests/test-rbtree_oset.c (ASSERT): Likewise.
40914         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
40915         * tests/test-round1.c (ASSERT): Likewise.
40916         * tests/test-roundf1.c (ASSERT): Likewise.
40917         * tests/test-roundl.c (ASSERT): Likewise.
40918         * tests/test-signbit.c (ASSERT): Likewise.
40919         * tests/test-sleep.c (ASSERT): Likewise.
40920         * tests/test-snprintf-posix.c (ASSERT): Likewise.
40921         * tests/test-snprintf.c (ASSERT): Likewise.
40922         * tests/test-sprintf-posix.c (ASSERT): Likewise.
40923         * tests/test-stat-time.c (ASSERT): Likewise.
40924         * tests/test-strcasestr.c (ASSERT): Likewise.
40925         * tests/test-strerror.c (ASSERT): Likewise.
40926         * tests/test-striconv.c (ASSERT): Likewise.
40927         * tests/test-striconveh.c (ASSERT): Likewise.
40928         * tests/test-striconveha.c (ASSERT): Likewise.
40929         * tests/test-strsignal.c (ASSERT): Likewise.
40930         * tests/test-strstr.c (ASSERT): Likewise.
40931         * tests/test-strtod.c (ASSERT): Likewise.
40932         * tests/test-trunc1.c (ASSERT): Likewise.
40933         * tests/test-trunc2.c (ASSERT): Likewise.
40934         * tests/test-truncf1.c (ASSERT): Likewise.
40935         * tests/test-truncf2.c (ASSERT): Likewise.
40936         * tests/test-truncl.c (ASSERT): Likewise.
40937         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
40938         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
40939         * tests/test-vasnprintf.c (ASSERT): Likewise.
40940         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
40941         * tests/test-vasprintf.c (ASSERT): Likewise.
40942         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
40943         * tests/test-vprintf-posix.c (ASSERT): Likewise.
40944         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
40945         * tests/test-vsnprintf.c (ASSERT): Likewise.
40946         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
40947         * tests/test-wcwidth.c (ASSERT): Likewise.
40948         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
40949         * tests/test-xprintf-posix.c (ASSERT): Likewise.
40950         * tests/test-xvasprintf.c (ASSERT): Likewise.
40951         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
40952         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
40953         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
40954         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
40955         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
40956         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
40957         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
40958         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
40959         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
40960         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
40961         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
40962         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
40963         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
40964         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
40965         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
40966         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
40967         * tests/unictype/test-block_list.c (ASSERT): Likewise.
40968         * tests/unictype/test-block_of.c (ASSERT): Likewise.
40969         * tests/unictype/test-block_test.c (ASSERT): Likewise.
40970         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
40971         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
40972         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
40973         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
40974         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
40975         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
40976         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
40977         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
40978         * tests/unictype/test-combining.c (ASSERT): Likewise.
40979         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
40980         * tests/unictype/test-digit.c (ASSERT): Likewise.
40981         * tests/unictype/test-mirror.c (ASSERT): Likewise.
40982         * tests/unictype/test-numeric.c (ASSERT): Likewise.
40983         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
40984         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
40985         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
40986         * tests/unictype/test-scripts.c (ASSERT): Likewise.
40987         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
40988         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
40989         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
40990         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
40991         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
40992         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
40993         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
40994         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
40995         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
40996         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
40997         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
40998         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
40999         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
41000         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
41001         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
41002         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
41003         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
41004         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
41005         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
41006         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
41007         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
41008         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
41009         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
41010         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
41011         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
41012         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
41013         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
41014         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
41015         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
41016         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
41017         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
41018         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
41019         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
41020         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
41021         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
41022         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
41023         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
41024         Reported by Eric Blake.
41025
41026 2008-04-11  Bruno Haible  <bruno@clisp.org>
41027
41028         * lib/wchar.in.h: Tweak comment.
41029
41030 2008-04-11  Bruno Haible  <bruno@clisp.org>
41031
41032         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
41033         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
41034         gl_COMMON.
41035         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
41036
41037 2008-04-11  Bruno Haible  <bruno@clisp.org>
41038
41039         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
41040
41041 2008-04-11  Simon Josefsson  <simon@josefsson.org>
41042
41043         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
41044         of attempting to use non-existing /dev/*random.  Based on patch
41045         from Adam Strzelecki <ono@java.pl> in
41046         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
41047
41048 2008-04-08  Bruno Haible  <bruno@clisp.org>
41049
41050         Add tentative support for emx+gcc.
41051         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
41052         * lib/fpurge.c (fpurge): Likewise.
41053         * lib/freadable.c (freadable): Likewise.
41054         * lib/freadahead.c (freadahead): Likewise.
41055         * lib/freading.c (freading): Likewise.
41056         * lib/freadptr.c (freadptr): Likewise.
41057         * lib/freadseek.c (freadptrinc): Likewise.
41058         * lib/fseeko.c (rpl_fseeko): Likewise.
41059         * lib/fseterr.c (fseterr): Likewise.
41060         * lib/fwritable.c (fwritable): Likewise.
41061         * lib/fwriting.c (fwriting): Likewise.
41062         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
41063
41064 2008-04-09  Eric Blake  <ebb9@byu.net>
41065
41066         Avoid some autoconf warnings.
41067         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
41068         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
41069         * m4/afs.m4 (gl_AFS): Likewise.
41070         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
41071         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
41072         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41073         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
41074         (gl_INTEGER_TYPE_SUFFIX): Likewise.
41075         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
41076         (AC_CHECK_DECLS_ONCE): Likewise.
41077         Rename file...
41078         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
41079         gnulib-tool requires autoconf 2.59 or better.
41080         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
41081
41082 2008-04-08  Eric Blake  <ebb9@byu.net>
41083
41084         Use 'git describe --match' if present (added in git 1.5.5).
41085         * build-aux/git-version-gen: Limit result to tags that match 'v*'
41086         if possible.
41087
41088 2008-04-08  Bruno Haible  <bruno@clisp.org>
41089
41090         Add tentative support for OpenServer.
41091         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
41092         _ptr, _cnt.
41093         * lib/fpurge.c (fpurge): Likewise.
41094         * lib/freadable.c (freadable): Likewise.
41095         * lib/freadahead.c (freadahead): Likewise.
41096         * lib/freading.c (freading): Likewise.
41097         * lib/freadptr.c (freadptr): Likewise.
41098         * lib/freadseek.c (freadptrinc): Likewise.
41099         * lib/fseeko.c (rpl_fseeko): Likewise.
41100         * lib/fseterr.c (fseterr): Likewise.
41101         * lib/fwritable.c (fwritable): Likewise.
41102         * lib/fwriting.c (fwriting): Likewise.
41103         Reported by Roger Cornelius <rac@tenzing.org> and
41104         Brian K. White <brian@aljex.com>.
41105
41106 2008-04-06  Jim Meyering  <meyering@redhat.com>
41107
41108         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
41109
41110 2008-04-06  Bruno Haible  <bruno@clisp.org>
41111
41112         Avoid possible error with non-ASCII bytes in UTF-8 locales.
41113         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
41114         * tests/test-printf-posix.sh: Likewise.
41115         * tests/test-vfprintf-posix.sh: Likewise.
41116         * tests/test-vprintf-posix.sh: Likewise.
41117         * tests/test-xprintf-posix.sh: Likewise.
41118
41119 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41120
41121         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
41122         hide error from 'ls', needed on OS/2.
41123         Report by Elbert Pol <elbert.pol@gmail.com>.
41124
41125 2008-04-04  Eric Blake  <ebb9@byu.net>
41126
41127         Make test-fseeko.c failures meaningful.
41128         * tests/test-fseeko.c: Print line number on failure.
41129         * tests/test-fseek.c: Likewise.
41130         Reported by Nelson H. F. Beebe.
41131
41132         Improve strtod bug detection check.
41133         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
41134         required for Solaris 10.
41135         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
41136
41137 2008-04-04  Bruno Haible  <bruno@clisp.org>
41138
41139         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
41140         by m4/setenv.m4.
41141
41142 2008-04-03  Eric Blake  <ebb9@byu.net>
41143
41144         Ensure sane .version contents.
41145         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
41146         version string.
41147         * build-aux/git-version-gen: Improve documentation.
41148
41149         Make GNU make output nicer.
41150         * top/GNUmakefile [!_have-Makefile]: Add dependency on
41151         MAKECMDGOALS to enforce message for all command line targets.  Set
41152         srcdir for use in maint.mk.
41153
41154         Another maintainer tweak.
41155         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
41156         a target that regenerates version.
41157
41158 2008-04-03  Jim Meyering  <meyering@redhat.com>
41159
41160         vc-list-files: don't cause coreutils "make po-check" failure
41161         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
41162
41163 2008-04-03  Eric Blake  <ebb9@byu.net>
41164
41165         Allow VPATH usage of vc-list-files.
41166         * build-aux/vc-list-files (scriptversion): Add timestamp.
41167         (options): Add --help, --version, -C.
41168         (CVS): Support installed cvsu.
41169
41170 2008-04-02  Bruno Haible  <bruno@clisp.org>
41171
41172         Avoid some "statement with no effect" warnings from gcc.
41173         * tests/test-wctype.c (main): Explicitly ignore unused values.
41174         Reported by Jim Meyering.
41175
41176 2008-04-02  Jim Meyering  <meyering@redhat.com>
41177
41178         Avoid some warnings from "gcc -Wshadow".
41179         * tests/test-frexp.c (exp): Define to a different identifier.
41180         * tests/test-frexpl.c (exp): Likewise.
41181
41182 2008-04-03  Jim Meyering  <meyering@redhat.com>
41183
41184         bootstrap: remove dangling *.[ch] symlinks from lib
41185         * build-aux/bootstrap [dangling symlink removal]: Move find's
41186         -depth option to precede all others, to avoid a warning.
41187         Remove *.[ch] files too, and from "$source_base" (usually lib/).
41188
41189 2008-04-02  Bruno Haible  <bruno@clisp.org>
41190
41191         Avoid some warnings from "gcc -Wshadow".
41192         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
41193         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
41194         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
41195         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
41196         Reported by Jim Meyering.
41197
41198 2008-04-01  Bruno Haible  <bruno@clisp.org>
41199
41200         Fix test to work on IRIX 6.5 with cc.
41201         * tests/test-math.c (numeric_equal): New function.
41202         (main): Use it.
41203
41204 2008-04-01  Bruno Haible  <bruno@clisp.org>
41205
41206         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
41207
41208 2008-04-01  Bruno Haible  <bruno@clisp.org>
41209
41210         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
41211         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41212         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
41213         (Depends-on): Remove math.
41214
41215         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
41216         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41217         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
41218         (Depends-on): Remove math.
41219
41220         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
41221         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41222         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
41223         (Depends-on): Remove math.
41224         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
41225         (Depends-on): Remove math.
41226
41227         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
41228         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41229         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
41230         (Depends-on): Remove math.
41231         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
41232         (Depends-on): Remove math.
41233
41234         * tests/test-round1.c: Include nan.h.
41235         (main): Use NaNd instead of NAN.
41236         * modules/round-tests (Files): Add tests/nan.h.
41237
41238         * tests/test-trunc1.c: Include nan.h.
41239         (main): Use NaNd instead of NAN.
41240         * modules/trunc-tests (Files): Add tests/nan.h.
41241
41242         * tests/test-roundf1.c: Include nan.h.
41243         (main): Use NaNf instead of NAN.
41244         * modules/roundf-tests (Files): Add tests/nan.h.
41245
41246         * tests/test-truncf1.c: Include nan.h.
41247         (main): Use NaNf instead of NAN.
41248         * modules/truncf-tests (Files): Add tests/nan.h.
41249
41250         * tests/test-ceilf1.c: Include nan.h.
41251         (main): Use NaNf instead of NAN.
41252         * modules/ceilf-tests (Files): Add tests/nan.h.
41253
41254         * tests/test-floorf1.c: Include nan.h.
41255         (main): Use NaNf instead of NAN.
41256         * modules/floorf-tests (Files): Add tests/nan.h.
41257
41258         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
41259         (main): Use NaNf instead of NAN.
41260         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
41261
41262         * tests/test-isnand.c: Include nan.h instead of <math.h>.
41263         (main): Use NaNd instead of NAN.
41264         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
41265
41266         * tests/test-frexp.c: Include nan.h.
41267         (main): Use NaNd instead of NAN.
41268         * modules/frexp-tests (Files): Add tests/nan.h.
41269
41270         * lib/isnan.c: Don't include <math.h>.
41271         (FUNC): Don't use NAN macro.
41272         * modules/isnand-nolibm (Depends-on): Remove math.
41273         * modules/isnanf-nolibm (Depends-on): Remove math.
41274         * modules/isnanl (Depends-on): Remove math.
41275         * modules/isnanl-nolibm (Depends-on): Remove math.
41276
41277         * tests/nan.h: New file.
41278
41279 2008-04-01  Eric Blake  <ebb9@byu.net>
41280
41281         Fix typos.
41282         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
41283         values to be the right type.
41284
41285         For now, cater to gnulib strtod inaccuracies.
41286         * tests/test-strtod.c (main): Allow 1-ulp error on expected
41287         fractional results.  While not as nice from a QoI perspective, it
41288         is a quicker patch than correctly implementing decimal to binary
41289         rounding.
41290
41291 2008-03-31  Eric Blake  <ebb9@byu.net>
41292
41293         Guarantee a definition of NAN.
41294         * lib/math.in.h (NAN): Define if missing.
41295         * tests/test-math.c (main): Test it.
41296         * doc/posix-headers/math.texi (math.h): Document this.
41297         * lib/isnan.c (rpl_isnand): Use it.
41298         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
41299         * tests/test-floorf1.c (NaN): Likewise.
41300         * tests/test-frexp.c (NaN): Likewise.
41301         * tests/test-isnand.c (NaN): Likewise.
41302         * tests/test-isnanf.c (NaN): Likewise.
41303         * tests/test-round1.c (NaN): Likewise.
41304         * tests/test-roundf1.c (NaN): Likewise.
41305         * tests/test-snprintf-posix.h (NaN): Likewise.
41306         * tests/test-sprintf-posix.h (NaN): Likewise.
41307         * tests/test-trunc1.c (NaN): Likewise.
41308         * tests/test-truncf1.c (NaN): Likewise.
41309         * tests/test-vasnprintf-posix.c (NaN): Likewise.
41310         * tests/test-vasprintf-posix.c (NaN): Likewise.
41311         * modules/isnand-nolibm (Depends-on): Add math.
41312         * modules/isnanf-nolibm (Depends-on): Likewise.
41313         * modules/isnanl (Depends-on): Likewise.
41314         * modules/isnanl-nolibm (Depends-on): Likewise.
41315         * modules/snprintf-posix-tests (Depends-on): Likewise.
41316         * modules/sprintf-posix-tests (Depends-on): Likewise.
41317         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
41318         * modules/vsprintf-posix-tests (Depends-on): Likewise.
41319         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
41320         * modules/vasprintf-posix-tests (Depends-on): Likewise.
41321
41322 2008-03-31  Bruno Haible  <bruno@clisp.org>
41323
41324         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
41325         * doc/posix-functions/strtod.texi: Likewise.
41326
41327 2008-03-31  Bruno Haible  <bruno@clisp.org>
41328
41329         * tests/test-strtod.c (main): Don't use C99 syntax.
41330
41331 2008-03-31  Bruno Haible  <bruno@clisp.org>
41332
41333         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
41334         Reported by Eric Blake.
41335
41336 2008-03-31  Jim Meyering  <meyering@redhat.com>
41337
41338         Don't compare actual signbit return values.
41339         * tests/test-strtod.c (main): Rather, compare only their
41340         zero/non-zero nature.
41341
41342 2008-03-31  Eric Blake  <ebb9@byu.net>
41343
41344         More strtod documentation.
41345         * doc/posix-functions/strtod.texi (strtod): Interpret more test
41346         failures as distinct bugs.
41347
41348 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41349
41350         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
41351         Problem reported by Erik Benada in
41352         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
41353
41354 2008-03-30  Bruno Haible  <bruno@clisp.org>
41355
41356         * tests/test-strtod.c: Add comments about which assertion fails on which
41357         platform.
41358         * doc/posix-functions/strtod.texi: Add info about many more platforms.
41359
41360 2008-03-30  Eric Blake  <ebb9@byu.net>
41361
41362         Test signbit behavior on zeros.
41363         * tests/test-signbit.c (test_signbitf): Add tests for zero.
41364         (test_signbitd, test_signbitl): Likewise.
41365
41366         More strtod touchups.
41367         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
41368         sign of negative underflow, for now.  Use .5, not .1.
41369         * doc/posix-functions/strtod.texi (strtod): Mention these
41370         limitations.
41371         Reported by Jim Meyering.
41372
41373 2008-03-30  Bruno Haible  <bruno@clisp.org>
41374
41375         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
41376         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
41377
41378 2008-03-30  Bruno Haible  <bruno@clisp.org>
41379
41380         Avoid failure when attempting to return empty iconv results on some
41381         platforms.
41382         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
41383         allocation, don't report ENOMEM when the resulting string is empty.
41384
41385 2008-03-30  Bruno Haible  <bruno@clisp.org>
41386
41387         Fix buffer overrun.
41388         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
41389         Don't consider the width for tmp_length. Check count against tmp_length
41390         before doing the padding. Ensure enough allocation during padding.
41391
41392 2008-03-30  Eric Blake  <ebb9@byu.net>
41393
41394         strtod touchups.
41395         * lib/strtod.c (strtod): Avoid compiler warnings.
41396         Reported by Jim Meyering.
41397
41398 2008-03-30  Bruno Haible  <bruno@clisp.org>
41399
41400         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
41401         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
41402         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
41403         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
41404         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
41405         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
41406         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
41407         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
41408
41409         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
41410         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
41411         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
41412         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
41413         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
41414         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
41415         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
41416         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
41417
41418         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
41419         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
41420         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
41421         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
41422         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
41423         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
41424         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
41425         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
41426
41427         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
41428         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
41429
41430         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
41431         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
41432
41433         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
41434         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
41435
41436         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
41437         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
41438         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
41439
41440         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
41441         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
41442         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
41443
41444         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
41445         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
41446         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
41447
41448         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
41449         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
41450         * modules/vasprintf (Depends-on): Add EOVERFLOW.
41451
41452         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
41453         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
41454         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
41455         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
41456         (Depends-on): Add EOVERFLOW.
41457         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
41458         (Depends-on): Add EOVERFLOW.
41459         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41460         (Depends-on): Add EOVERFLOW.
41461         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41462         (Depends-on): Add EOVERFLOW.
41463         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41464         (Depends-on): Add EOVERFLOW.
41465         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41466         (Depends-on): Add EOVERFLOW.
41467         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41468         (Depends-on): Add EOVERFLOW.
41469         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41470         (Depends-on): Add EOVERFLOW.
41471
41472         * lib/sprintf.c (EOVERFLOW): Remove fallback.
41473         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
41474         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
41475
41476         * lib/snprintf.c (EOVERFLOW): Remove fallback.
41477         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
41478         * modules/snprintf (Depends-on): Add EOVERFLOW.
41479
41480         * lib/poll.c (EOVERFLOW): Remove fallback.
41481         * modules/poll (Depends-on): Add EOVERFLOW.
41482
41483         * lib/getugroups.c (EOVERFLOW): Remove fallback.
41484         * modules/getugroups (Depends-on): Add EOVERFLOW.
41485
41486         * lib/getdelim.c (EOVERFLOW): Remove fallback.
41487         * modules/getdelim (Depends-on): Add EOVERFLOW.
41488
41489         * lib/ftell.c (EOVERFLOW): Remove fallback.
41490         * modules/ftell (Depends-on): Add EOVERFLOW.
41491
41492         * lib/fprintf.c (EOVERFLOW): Remove fallback.
41493         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
41494         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
41495
41496         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
41497
41498         * modules/EOVERFLOW-tests: New file.
41499         * tests/test-EOVERFLOW.c: New file.
41500
41501         * modules/EOVERFLOW: New file.
41502         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
41503
41504 2008-03-30  Bruno Haible  <bruno@clisp.org>
41505
41506         Fix bug introduced on 2007-06-10.
41507         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
41508         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
41509
41510 2008-03-30  Bruno Haible  <bruno@clisp.org>
41511
41512         Improve freadseek's efficiency after ungetc.
41513         * lib/freadseek.c: Include freadahead.h.
41514         (freadptrinc): New function, extracted from freadseek.
41515         (freadseek): Use it in a loop. Use freadahead to determine the number
41516         of loop iterations.
41517         * modules/freadseek (Depends-on): Add freadahead.
41518         (configure.ac): Require AC_C_INLINE.
41519
41520 2008-03-30  Bruno Haible  <bruno@clisp.org>
41521
41522         * lib/freadseek.c (freadseek): Don't ignore the return value of
41523         freadptr.
41524
41525 2008-03-29  Eric Blake  <ebb9@byu.net>
41526
41527         Add hex float support.
41528         * modules/strtod (Depends-on): Add c-ctype.
41529         (Link): Mention POW_LIB.
41530         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
41531         whitespace between 'e' and exponent.
41532         * tests/test-strtod.c (main): Enable hex float tests.
41533         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
41534         now provides.
41535
41536         Document various strtod bugs, with some fixes.
41537         * doc/posix-functions/strtod.texi (strtod): Document bugs with
41538         "-0x", "inf", "nan", and hex constants.
41539         * doc/posix-functions/atof.texi (atof): Likewise.
41540         * modules/stdlib (Makefile.am): Support strtod.
41541         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41542         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
41543         detect additional strtod bugs.
41544         * lib/stdlib.in.h (rpl_strtod): Add declarations.
41545         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
41546         bool where appropriate.  Parse 'inf' and 'nan'.
41547         * tests/test-strtod.c: New file.
41548         * modules/strtod (Depends-on): Add stdbool, stdlib.
41549         (configure.ac): Turn on module indicator.
41550         * modules/strtod-tests: New module.
41551
41552 2008-03-29  Eric Blake  <ebb9@byu.net>
41553
41554         Fix ftell on mingw.
41555         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
41556         * modules/ftell-tests (Depends-on): Add binary-io.
41557         * modules/ftello-tests (Depends-on): Likewise.
41558         * tests/test-ftell.c (main): Enhance test to cover behavior after
41559         ungetc.  Enforce binary mode.
41560         * tests/test-ftello.c (main): Likewise.
41561
41562         Pass test-freadseek on cygwin.
41563         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
41564         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
41565         ungetc buffer.
41566
41567         * tests/test-fflush2.c (main): Fix typo.
41568
41569 2008-03-29  Bruno Haible  <bruno@clisp.org>
41570
41571         * tests/test-fflush2.c (main): Temporarily disable the contents of
41572         this test.
41573         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
41574         Reported by Eric Blake.
41575
41576 2008-03-28  Simon Josefsson  <simon@josefsson.org>
41577
41578         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
41579         (GC_SHA224_DIGEST_SIZE): Add.
41580
41581         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
41582         (gc_hash_digest_length): Likewise.
41583         (gc_hash_buffer): Likewise.
41584
41585 2008-03-25  Bruno Haible  <bruno@clisp.org>
41586
41587         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
41588         detail which gettext release to use.
41589         Reported by Simon Josefsson.
41590
41591 2008-03-26  Jim Meyering  <meyering@redhat.com>
41592
41593         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
41594         * modules/gnumakefile (clean-GNUmakefile): Also, use
41595         test ... && ... || : syntax rather than if-then ... fi.
41596
41597         gnumakefile: Don't double-quote-expand $(VPATH) value.
41598         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
41599
41600 2008-03-24  Eric Blake  <ebb9@byu.net>
41601
41602         Alter GNUmakefile to install into top directory.
41603         * modules/maintainer-makefile: Split, and add dependency...
41604         * modules/gnumakefile: to this new module.
41605         * build-aux/GNUmakefile: Move...
41606         * top/GNUmakefile: ...here.
41607         * build-aux/maint.mk: Move...
41608         * top/maint.mk: ...here.
41609         * MODULES.html.sh (Support for maintaining...): Document new
41610         module.
41611
41612 2008-03-23  Bruno Haible  <bruno@clisp.org>
41613
41614         * gnulib-tool: New options --vc-files, --no-vc-files.
41615         (func_usage): Document them.
41616         (vc_files): New variable.
41617         (func_import): Consider vc_files.
41618         (func_create_testdir): Set vc_files to empty.
41619         Suggested by Jim Meyering and Karl Berry.
41620
41621 2008-03-23  Bruno Haible  <bruno@clisp.org>
41622
41623         Fix regex compilation error on HP-UX 11.
41624         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
41625         * modules/regex (Files): Add m4/mbstate_t.m4.
41626         Reported by Ton Voon <ton.voon@altinity.com>.
41627
41628 2008-03-23  Bruno Haible  <bruno@clisp.org>
41629
41630         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
41631
41632 2008-03-23  Eric Blake  <ebb9@byu.net>
41633             Bruno Haible  <bruno@clisp.org>
41634
41635         Install files from top/ in the destination directory.
41636         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41637         augmentation also for the files from top/.
41638         (func_import, func_create_testdir): Rewrite file names:
41639         top/filename -> filename.
41640
41641 2008-03-23  Bruno Haible  <bruno@clisp.org>
41642
41643         Tweak "gnulib --version" output.
41644         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
41645
41646 2008-03-23  Bruno Haible  <bruno@clisp.org>
41647
41648         Tweak "gnulib --version" output.
41649         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
41650         rather than contents of ChangeLog, when possible.
41651
41652 2008-03-21  Eric Blake  <ebb9@byu.net>
41653
41654         More --version tweaks.
41655         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
41656         date of last ChangeLog entry.
41657
41658 2008-03-21  Jim Meyering  <meyering@redhat.com>
41659
41660         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
41661
41662 2008-03-20  Eric Blake  <ebb9@byu.net>
41663
41664         VPATH fix.
41665         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
41666
41667 2008-03-20  Simon Josefsson  <simon@josefsson.org>
41668
41669         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
41670         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
41671
41672 2008-03-20  Eric Blake  <ebb9@byu.net>
41673
41674         Sync GNUmakefile with coreutils.
41675         * build-aux/GNUmakefile (have-Makefile): Rename...
41676         (_have-Makefile): ...to this, for namespace consideration.
41677         (GNUmakefile.cfg): Include, if present.
41678         (_autoreconf): Define a default.
41679         (_is-dist-target): New rule for rebuilds to pick up intra-release
41680         version.
41681         (maint-cfg.mk): Rename...
41682         (cfg.mk): ...to this.
41683
41684 2008-03-18  Jim Meyering  <meyering@redhat.com>
41685
41686         New script and module: mktempd
41687         * MODULES.html.sh (maint+release support): Add mktempd.
41688         * build-aux/mktempd: New file.
41689         * modules/mktempd: New file.
41690
41691 2008-03-15  Jim Meyering  <meyering@redhat.com>
41692
41693         Undo last change.
41694         * lib/sha1.c, lib/md5.c: 63 != ~63.
41695         Reported by Andreas Schwab.
41696
41697         sha1.c, md5.c: Hoist a redundant expression.
41698         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
41699         "ctx->buflen" only once, before calling *_process_block.
41700         * lib/md5.c (md5_process_bytes): Likewise.
41701
41702 2008-03-14  Eric Blake  <ebb9@byu.net>
41703
41704         Bump copyright year in files generated by gnulib-tool.
41705         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
41706         gnulib-tool, rather than hard-coding it.
41707
41708         Fix 'gnulib-tool --version' output to work with git.
41709         * gnulib-tool (func_gnulib_dir): New function, extracted from...
41710         (startup): ...here.
41711         (func_version): Use it to invoke git-version-gen, rather than
41712         relying on CVS keyword expansion.  Modernize wording.
41713         (cvsdatestamp, last_checkin_date, version): Kill unused
41714         variables.
41715
41716 2008-03-12  Jim Meyering  <meyering@redhat.com>
41717
41718         Recognize optional cast of the argument to free.
41719         * build-aux/useless-if-before-free: Update regexps.
41720
41721         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
41722
41723 2008-03-11  Bruno Haible  <bruno@clisp.org>
41724
41725         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
41726         by a single package.
41727         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
41728         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
41729         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
41730         Reported by Sam Steingold <sds@gnu.org>.
41731
41732 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41733
41734         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
41735         repositories.
41736
41737 2008-03-11  Bruno Haible  <bruno@clisp.org>
41738
41739         Avoid conflicts between local macro definitions.
41740         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41741         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
41742
41743 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
41744             Bruno Haible  <bruno@clisp.org>
41745
41746         Make va_copy work with some version of xlc on AIX 5.1.
41747         * lib/stdarg.in.h: New file.
41748         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
41749         On AIX, use a <stdarg.h> file substitute.
41750         * modules/stdarg (Files): Add lib/stdarg.in.h.
41751         (Depends-on): Add include_next.
41752         (Makefile.am): Build a stdarg.h substitute if requested.
41753         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
41754
41755 2008-03-10  Bruno Haible  <bruno@clisp.org>
41756
41757         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
41758         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41759         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41760
41761 2008-03-10  Bruno Haible  <bruno@clisp.org>
41762
41763         * modules/stdlib (Depends-on): Add include_next, remove
41764         absolute-header.
41765
41766 2008-03-09  Bruno Haible  <bruno@clisp.org>
41767
41768         * lib/freadahead.h (freadahead): Document more precisely.
41769         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
41770         the sum of both buffer sizes.
41771         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
41772         * NEWS: Document the change.
41773
41774 2008-03-09  Bruno Haible  <bruno@clisp.org>
41775
41776         Extend freadptr to return also the buffer size.
41777         * lib/freadptr.h (freadptr): Add sizep argument.
41778         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
41779         (freadptr): Add sizep argument. Determine buffer size like freadahead
41780         does.
41781         * tests/test-freadptr.c: Don't include freadahead.h.
41782         (main): Adapt for new calling convention of freadptr.
41783         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
41784         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
41785         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
41786         tests/test-freadptr2.sh.
41787         (Depends): Remove freadahead.
41788         (TESTS): Add test-freadptr2.sh.
41789         (check_PROGRAMS): Add test-freadptr2.
41790
41791 2008-03-09  Bruno Haible  <bruno@clisp.org>
41792
41793         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
41794         Report and solution by Simon Josefsson.
41795
41796 2008-03-06  Bruno Haible  <bruno@clisp.org>
41797
41798         Make fflush after ungetc work on BSD platforms.
41799         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
41800         * tests/test-fflush2.c: New file.
41801         * tests/test-fflush2.sh: New file.
41802         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
41803         tests/test-fflush2.c.
41804         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
41805         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
41806
41807 2008-03-06  Eric Blake  <ebb9@byu.net>
41808
41809         Likewise for ftello.
41810         * modules/ftello (Dependencies): Add extensions.
41811         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
41812
41813 2008-03-06  Bruno Haible  <bruno@clisp.org>
41814
41815         * modules/fseeko (Dependencies): Add extensions.
41816         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
41817         Needed on glibc systems.
41818
41819 2008-03-06  Bruno Haible  <bruno@clisp.org>
41820
41821         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
41822         email address.
41823         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41824
41825 2008-03-06  Bruno Haible  <bruno@clisp.org>
41826
41827         * users.txt: Add libgnupdf.
41828
41829 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41830
41831         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
41832         (Header File Substitutes, Function Substitutes,
41833         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
41834         (Build robot for gnulib): Fix typo.
41835
41836 2008-03-06  Bruno Haible  <bruno@clisp.org>
41837
41838         * doc/gnulib-tool.texi (VCS Issues): Small updates.
41839         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41840
41841 2008-03-06  Bruno Haible  <bruno@clisp.org>
41842
41843         * doc/func.texi: New file, extracted from doc/gnulib.texi.
41844         * doc/gnulib.texi: Include it.
41845
41846 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41847
41848         * modules/func (License): Change license to unlimited; there was
41849         no LGPL parts in the module anyway.
41850
41851 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41852
41853         * modules/__func__: Renamed to modules/func.
41854         * modules/__func__-tests: Renamed to modules/func-tests.
41855         * tests/test-__func__.c: Renamed to tests/test-func.c.
41856         * m4/__func__.m4: Renamed to m4/func.m4.
41857         * doc/gnulib.texi (__func__): Section renamed to func.
41858         Suggested by Eric Blake <ebb9@byu.net>.
41859
41860 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41861
41862         * doc/gnulib.texi (__func__): Use C99 terminology when talking
41863         about __func__.  Make example self-contained.  Suggested by Eric
41864         Blake <ebb9@byu.net>.
41865
41866         * tests/test-__func__.c (main): Avoid extraneous () around __func.
41867         Suggested by Eric Blake <ebb9@byu.net>.
41868
41869 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41870
41871         * modules/__func__: New file.
41872         * modules/__func__-tests: New file.
41873         * tests/test-__func__.c: New file.
41874         * m4/__func__.m4: New file.
41875         * doc/gnulib.texi (__func__): Document __func__ module.
41876
41877 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41878
41879         * modules/byteswap (License): Re-license as LGPLv2+.
41880
41881 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41882
41883         * doc/Makefile: Add pdf target.
41884
41885 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41886
41887         * modules/inline (License): Use 'unlimited', since there are only
41888         *.m4 files in this module.
41889
41890 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41891             Bruno Haible  <bruno@clisp.org>
41892
41893         Add support for HP C 7.1 on OpenVMS 8.3.
41894         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
41895
41896 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41897
41898         Update VMS specifics.
41899         * lib/getopt.c [VMS]: Remove include of unixlib.h.
41900
41901 2008-03-02  Jim Meyering  <meyering@redhat.com>
41902
41903         Remove the last dependency on the "free" module.
41904         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
41905         Reported by Bob Proulx.
41906
41907         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
41908
41909         Remove useless "if" tests before free.  Deprecate "free" module.
41910         * doc/posix-functions/free.texi: Mention that this
41911         module is no longer useful.
41912         * modules/free (Notice): Say this module is obsolete.
41913         * modules/readutmp (Depends-on): Remove free.
41914         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
41915         * lib/putenv.c (putenv): Likewise.
41916         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
41917         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
41918         * tests/test-c-strcasestr.c (main): Likewise.
41919         * tests/test-c-strstr.c (main): Likewise.
41920         * tests/test-mbscasestr1.c (main): Likewise.
41921         * tests/test-mbscasestr2.c (main): Likewise.
41922         * tests/test-mbsstr1.c (main): Likewise.
41923         * tests/test-mbsstr2.c (main): Likewise.
41924         * tests/test-memmem.c (main): Likewise.
41925         * tests/test-strcasestr.c (main): Likewise.
41926         * tests/test-striconv.c (main): Likewise.
41927         * tests/test-striconveh.c (main): Likewise.
41928         * tests/test-striconveha.c (main): Likewise.
41929         * tests/test-strstr.c (main): Likewise.
41930
41931         * build-aux/git-version-gen: Adjust a comment and the Usage string.
41932
41933         bootstrap: sync from coreutils again
41934         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
41935
41936 2008-03-01  Jim Meyering  <meyering@redhat.com>
41937
41938         bootstrap: sync from coreutils
41939         * build-aux/bootstrap (update_po_files): Copy a .po file into place
41940         also when the target doesn't exist.
41941
41942 2008-03-01  Eric Blake  <ebb9@byu.net>
41943
41944         Fix bugs in last patch.
41945         * lib/memchr2.c (memchr2): Fix typo.
41946         * tests/test-memchr2.c: Test previous bug, and don't use GNU
41947         extension.
41948         Reported by Bruce Korb.
41949
41950         New module 'memchr2'.
41951         * modules/memchr2: New file.
41952         * modules/memchr2-tests: Likewise.
41953         * lib/memchr2.h: Likewise.
41954         * lib/memchr2.c: Likewise, based on memchr.c.
41955         * tests/test-memchr2.c: New test.
41956         * MODULES.html.sh (String handling): Add memchr2.
41957
41958 2008-02-29  Bruno Haible  <bruno@clisp.org>
41959
41960         * modules/freadseek-tests: New file.
41961         * tests/test-freadseek.sh: New file.
41962         * tests/test-freadseek.c: New file.
41963
41964         New module 'freadseek'.
41965         * modules/freadseek: New file.
41966         * lib/freadseek.h: New file.
41967         * lib/freadseek.c: New file.
41968         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
41969
41970 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41971
41972         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
41973         wydawca.
41974
41975         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
41976         program_invocation_name and program_invocation_short_name are
41977         present.
41978
41979 2008-02-28  Bruno Haible  <bruno@clisp.org>
41980
41981         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
41982         * tests/test-freadptr.sh: Also test non-seekable stdin.
41983
41984 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
41985
41986         * build-aux/bootstrap (source_base, m4_base)
41987         (doc_base, tests_base): New variables.
41988         (gnulib_tool_options): Do not hardcode base directories, use
41989         the above variables instead.
41990
41991 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
41992
41993         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
41994
41995 2008-02-28  Bruno Haible  <bruno@clisp.org>
41996
41997         * modules/freadptr-tests: New file.
41998         * tests/test-freadptr.sh: New file.
41999         * tests/test-freadptr.c: New file.
42000
42001         New module 'freadptr'.
42002         * modules/freadptr: New file.
42003         * lib/freadptr.h: New file.
42004         * lib/freadptr.c: New file.
42005         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
42006
42007 2008-02-26  Karl Berry  <karl@freefriends.org>
42008
42009         Sync from Libtool:
42010         * libltdl/argz.c (argz_add, argz_count): New functions.
42011         * libltdl/argz.in.h: Declare them.
42012         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
42013
42014 2008-02-22  Bruno Haible  <bruno@clisp.org>
42015
42016         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
42017         is a pointer type.  Needed for HP-UX 10.
42018         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
42019         * doc/posix-functions/gmtime_r.texi: Likewise.
42020         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42021
42022 2008-02-24  Bruno Haible  <bruno@clisp.org>
42023
42024         * modules/environ-tests: New file.
42025         * tests/test-environ.c: New file.
42026
42027         New module 'environ'.
42028         * modules/environ: New file.
42029         * lib/unistd.in.h (environ): New declaration.
42030         * m4/environ.m4: New file.
42031         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
42032         after use.
42033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
42034         HAVE_DECL_ENVIRON.
42035         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
42036         HAVE_DECL_ENVIRON.
42037         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
42038         wrong claim that 'environ' is missing on some systems.
42039         * modules/execute (Depends-on): Add environ.
42040         * lib/execute.c (environ): Remove fallback declaration.
42041         * modules/pipe (Depends-on): Add environ.
42042         * lib/pipe.c (environ): Remove fallback declaration.
42043         * modules/setenv (Depends-on): Add environ.
42044         * lib/setenv.c (environ): Remove fallback declaration.
42045         * modules/unsetenv (Depends-on): Add environ.
42046         * lib/unsetenv.c (environ): Remove fallback declaration.
42047         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
42048         m4/environ.m4.
42049         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
42050         (gl_PREREQ_UNSETENV): Likewise.
42051
42052 2008-02-24  Bruno Haible  <bruno@clisp.org>
42053
42054         * doc/posix-functions/environ.texi: Document the MacOS X problem.
42055
42056 2008-02-20  Bob Proulx  <bob@proulx.com>
42057
42058         Enable use of older two part flavor 'git describe'.
42059         * build-aux/git-version-gen: If using the older two part flavor of
42060         git version then recreate the third part now present in the
42061         newer three part flavor of git describe.
42062
42063 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
42064
42065         * lib/fts.c (fts_build): Typo correction to comment.
42066
42067 2008-02-17  Bruno Haible  <bruno@clisp.org>
42068
42069         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
42070         generating no-op conflicts.
42071
42072 2008-02-17  Bruno Haible  <bruno@clisp.org>
42073
42074         Speed up by 10%.
42075         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
42076         result_entries, rather than an index-based loop.
42077
42078 2008-02-17  Bruno Haible  <bruno@clisp.org>
42079
42080         Speed up by 25%.
42081         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
42082         'hashcode_cached'.
42083         (entry_create): New function.
42084         (entry_hashcode): Use the cached hashcode if possible.
42085         (read_changelog_file, try_split_merged_entry): Use entry_create.
42086
42087 2008-02-17  Bruno Haible  <bruno@clisp.org>
42088
42089         Speed up from O(n^2) to O(n) for long ChangeLog files.
42090         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
42091         (read_changelog_file): Change implementation of entries_reversed list
42092         to rbtreehash.
42093         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
42094
42095 2008-02-17  Bruno Haible  <bruno@clisp.org>
42096
42097         New option --split-merged-entry.
42098         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
42099         (find_paragraph_end, try_split_merged_entry): New functions.
42100         (long_options): Add option --split-merged-entry.
42101         (usage): Document option --split-merged-entry.
42102         (main): Implement option --split-merged-entry.
42103         Reported by Eric Blake.
42104
42105 2008-02-17  Bruno Haible  <bruno@clisp.org>
42106
42107         * lib/git-merge-changelog.c: Include c-strstr.h.
42108         (main): Support the "git pull --rebase" situation.
42109         * modules/git-merge-changelog (Depends-on): Add c-strstr.
42110         Reported by Eric Blake.
42111
42112 2008-02-16  Eric Blake  <ebb9@byu.net>
42113
42114         Avoid doubling \ in common case of "c-maybe" quoting style.
42115         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
42116         eliding outer quotes.
42117         * lib/quotearg.h: Document this.
42118         * tests/test-quotearg.c (result_strings, inputs, results_g)
42119         (flag_results, locale_results): Test it by adding a new string to
42120         each test group.
42121         (compare_strings): Test new string.
42122
42123 2008-02-13  Eric Blake  <ebb9@byu.net>
42124
42125         Avoid trigraph quoting in default output.
42126         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
42127         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
42128         unless explicitly requested.
42129         * tests/test-quotearg.c (flag_results, main): Add additional tests.
42130
42131 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
42132
42133         Don't rely on signed integer overflowing to negative value.
42134         * lib/getugroups.c (getugroups): Include <limits.h>.
42135         Instead, compare against INT_MAX, and increment only if the test passes.
42136
42137 2008-02-13  Jim Meyering  <meyering@redhat.com>
42138         and Eric Blake  <ebb9@byu.net>
42139
42140         Avoid shadowing warning and compile errors on Linux.
42141         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
42142         forwarding macros on Linux.
42143         (dcgettext): Define a stub, for Linux.
42144         (results_g, main): Avoid warnings.
42145
42146 2008-02-12  Eric Blake  <ebb9@byu.net>
42147
42148         Silence warning in last patch.
42149         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
42150
42151         Quotearg part 4: add tests, fix c-maybe colon quoting.
42152         * lib/quotearg.h: Improve documentation.
42153         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
42154         escapes when adding outer quotes.  When quoting trigraphs, use
42155         valid C notation.  When quoting NUL, omit extra characters if next
42156         character is not digit.  Alter prototype.
42157         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
42158         callers.
42159         * modules/quotearg-tests: New module.
42160         * tests/test-quotearg.c: New test.
42161
42162 2008-02-07  Eric Blake  <ebb9@byu.net>
42163
42164         Quotearg part 3: add flag to control outer quote elision.
42165         * lib/quotearg.h (c_maybe_quoting_style): New style.
42166         (enum quoting_flags): Better documentation of flags.
42167         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
42168         c-maybe style.
42169         (quotearg_buffer_restyled): Handle new flag to elide outer
42170         quotes.
42171
42172         Quotearg part 2: add flag that can control NUL elision.
42173         * lib/quotearg.h (set_quoting_flags): New prototype.
42174         * lib/quotearg.c (struct quoting_options): Add flag field.
42175         (set_quoting_flags): New function.
42176         (quotearg_buffer_restyled): Add flags parameter.
42177         (quotearg_alloc_mem): Set the flag if length cannot be returned.
42178         (quotearg_n_options): Set the flag, since length cannot be
42179         returned.
42180         (quoting_options_from_style): Default flags correctly.
42181
42182         Quotearg part 1: more wrappers, restore quotearg_char state.
42183         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
42184         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
42185         (quotearg_colon_mem): New wrappers.
42186         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
42187         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
42188         functions.
42189         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
42190         (quotearg_colon_mem): New functions.
42191
42192 2008-02-11  Bruno Haible  <bruno@clisp.org>
42193
42194         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
42195         library in the current directory: it does not work with parallel make.
42196         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42197
42198 2008-02-11  Bruno Haible  <bruno@clisp.org>
42199
42200         * .gitattributes: New file.
42201
42202 2008-02-11  Jim Meyering  <meyering@redhat.com>
42203
42204         useless-if-before-free: Fix reversed exit values.
42205         * build-aux/useless-if-before-free: Use correct values
42206         for EXIT_MATCH and EXIT_NO_MATCH.
42207
42208         * build-aux/useless-if-before-free: Close stdout carefully.
42209
42210 2008-02-10  Bruno Haible  <bruno@clisp.org>
42211
42212         New module 'git-merge-changelog'.
42213         * modules/git-merge-changelog: New file.
42214         * lib/git-merge-changelog.c: New file.
42215
42216 2008-02-10  Jim Meyering  <meyering@redhat.com>
42217
42218         useless-if-before-free: New option: --list (-l).
42219
42220         useless-if-before-free: Don't exit immediately upon open failure.
42221         * build-aux/useless-if-before-free: Exit 2 for errors.
42222         Upon failure to open a file, don't exit immediately.
42223         Rather, just warn and continue with any remaining files.
42224
42225 2008-02-10  Bruno Haible  <bruno@clisp.org>
42226
42227         New abstract list operation 'node_set_value'.
42228         * lib/gl_list.h (gl_list_node_set_value): New function.
42229         (struct gl_list_implementation): New field node_set_value.
42230         * lib/gl_list.c (gl_list_node_set_value): New function.
42231         * lib/gl_array_list.c (gl_array_node_set_value): New function.
42232         (gl_array_list_implementation): Update.
42233         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
42234         (gl_carray_list_implementation): Update.
42235         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
42236         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42237         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42238         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
42239         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42240         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42241         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42242         Update.
42243         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42244         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
42245         (gl_sublist_list_implementation): Update.
42246
42247 2008-02-10  Bruno Haible  <bruno@clisp.org>
42248
42249         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
42250         Needed when ELEMENT is #defined to 'some_type *'.
42251
42252 2008-02-10  Jim Meyering  <meyering@redhat.com>
42253
42254         New script and module: useless-if-before-free
42255         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
42256         * build-aux/useless-if-before-free: New file.
42257         * modules/useless-if-before-free: New file.
42258
42259         * build-aux/gitlog-to-changelog: Use committer date, not author date.
42260
42261         xstrtol_error: Fix typo.
42262         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
42263         s/exit_failure/exit_status/.
42264
42265 2008-02-09  Jim Meyering  <meyering@redhat.com>
42266
42267         New script and module: gitlog-to-changelog
42268         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
42269         * modules/gitlog-to-changelog: New file.
42270         * build-aux/gitlog-to-changelog: New file.
42271
42272 2008-02-08  Jim Meyering  <meyering@redhat.com>
42273
42274         Avoid two "parameter unused" warnings.
42275         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
42276         Mark "st" as used.
42277
42278         Use "git COMMAND", not "git-COMMAND".
42279         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
42280         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
42281         * build-aux/git-version-gen: Use "git status", not "git-status".
42282
42283 2008-02-07  Bruno Haible  <bruno@clisp.org>
42284
42285         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
42286         Avoids a crash on Windows Vista.
42287         Reported by Adam Strzelecki <ono@java.pl> via
42288         Simon Josefsson <simon@josefsson.org>.
42289
42290 2008-02-06  Bruno Haible  <bruno@clisp.org>
42291
42292         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
42293         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
42294         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
42295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
42296         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42297         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42298         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
42299         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
42300         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42301         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42302         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42303         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42304         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42305         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42306         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42307         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
42308         left-adjust flag.
42309         * tests/test-snprintf-posix.h (test_function): Likewise.
42310         * tests/test-sprintf-posix.h (test_function): Likewise.
42311         * tests/test-vasprintf-posix.c (test_function): Likewise.
42312         * doc/posix-functions/fprintf.texi: Update.
42313         * doc/posix-functions/printf.texi: Update.
42314         * doc/posix-functions/snprintf.texi: Update.
42315         * doc/posix-functions/sprintf.texi: Update.
42316         * doc/posix-functions/vfprintf.texi: Update.
42317         * doc/posix-functions/vprintf.texi: Update.
42318         * doc/posix-functions/vsnprintf.texi: Update.
42319         * doc/posix-functions/vsprintf.texi: Update.
42320         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42321
42322 2008-02-06  Bruno Haible  <bruno@clisp.org>
42323
42324         Fix bug introduced on 2008-01-26.
42325         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
42326
42327 2008-02-06  Bruno Haible  <bruno@clisp.org>
42328
42329         Fix bug introduced on 2007-06-10.
42330         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
42331         !NEED_PRINTF_FLAG_ZERO.
42332
42333 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
42334
42335         getloadavg: use libperfstat on AIX5
42336         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
42337
42338 2008-02-03  Bruno Haible  <bruno@clisp.org>
42339
42340         * lib/diffseq.h: Add comments about required #includes.
42341         Reported by Michael Biggs <gnulib@doubleplum.net>.
42342
42343 2008-02-01  Bruno Haible  <bruno@clisp.org>
42344
42345         * users.txt: Add gnuit.
42346
42347 2008-01-31  Bruno Haible  <bruno@clisp.org>
42348
42349         * lib/md4.c (set_uint32): Mark as inline.
42350         * lib/md5.c (set_uint32): Likewise.
42351         * lib/sha1.c (set_uint32): Likewise.
42352         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
42353         * m4/md5.m4 (gl_MD5): Likewise.
42354         * m4/sha1.m4 (gl_SHA1): Likewise.
42355
42356 2008-01-31  Jim Meyering  <meyering@redhat.com>
42357
42358         Use "sizeof VAR", rather than a literal "4".
42359         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
42360         * lib/md4.c (md4_read_ctx): Likewise.
42361         * lib/sha1.c (sha1_read_ctx): Likewise.
42362
42363 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42364
42365         * tests/test-sha1.c: New file, based on test-md5.c.
42366
42367         * modules/crypto/sha1-tests: New file.
42368
42369 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42370
42371         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
42372
42373 2008-01-31  Jim Meyering  <meyering@redhat.com>
42374
42375         Prefer "sizeof v" over the equivalent "4".
42376         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
42377         * lib/md5.c (set_uint32): Likewise.
42378         * lib/sha1.c (set_uint32): Likewise.
42379
42380 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42381
42382         * lib/sha1.c (set_uint32): Mark function as static.
42383
42384 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42385
42386         md2: clarify comments to say that alignment is not required.
42387         * lib/md2.h: Remove warning about alignment in comment.
42388         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
42389         never been required.
42390
42391 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42392
42393         md4: adapt alignment constraint fix from sha1.
42394         * lib/md4.c (set_uint32): New function, from sha1.c
42395         (md4_read_ctx): Use it.
42396         (md4_finish_ctx): Doc fix.
42397         * lib/md4.h: Doc fix.
42398
42399 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42400
42401         md5: adapt alignment constraint fix from sha1.
42402         * lib/md5.c (set_uint32): New function, from sha1.c
42403         (md5_read_ctx): Use it.
42404         (md5_finish_ctx): Doc fix.
42405         * lib/md5.h: Doc fix.
42406
42407 2008-01-30  Peter Palfrader  <weasel@debian.org>
42408
42409         sha1: remove the result buffer alignment constraint
42410         * lib/sha1.c (set_uint32): New function.
42411         (sha1_read_ctx): Rewrite to remove the result buffer alignment
42412         constraint.
42413         (sha1_finish_ctx): Remove comment warning about alignment constraint.
42414         * lib/sha1.h: Likewise.
42415
42416 2008-01-30  Andreas Schwab  <schwab@suse.de>
42417             Bruno Haible  <bruno@clisp.org>
42418
42419         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
42420         correct definition of LDBL_MIN_EXP.
42421
42422 2008-01-30  Karl Berry  <karl@gnu.org>
42423
42424         * config/srclist-update: try to preserve x bit on updates.
42425         * config/srclistvars.sh: update for karl.
42426
42427 2008-01-29  Jim Meyering  <meyering@redhat.com>
42428
42429         vasnprintf.c: Avoid warning about unused label
42430         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
42431         "overflow" label definition and associated code with the
42432         same cpp condition that guards the sole use of that label.
42433
42434 2008-01-26  Bruno Haible  <bruno@clisp.org>
42435
42436         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
42437         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
42438         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
42439         * lib/isnanl-nolibm.h (isnanl): Likewise.
42440         Reported by Paul Eggert <eggert@cs.ucla.edu>.
42441
42442 2008-01-26  Bruno Haible  <bruno@clisp.org>
42443
42444         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
42445         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
42446
42447 2008-01-26  Bruno Haible  <bruno@clisp.org>
42448
42449         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
42450         GCC >= 4.0 built-in.
42451         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
42452
42453 2008-01-26  Bruno Haible  <bruno@clisp.org>
42454
42455         Rename isnan, applicable to 'double' only, to isnand.
42456         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
42457         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
42458         (configure.ac): Update.
42459         (Include): Replace "isnan.h" with "isnand.h".
42460         * m4/isnand.m4: Renamed from m4/isnan.m4.
42461         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
42462         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
42463         instead of isnan.c.
42464         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
42465         instead of HAVE_ISNAN_IN_LIBC.
42466         (isnand): Renamed from isnan.
42467         * lib/isnand.c: New file.
42468         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
42469         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
42470         (Makefile.am): Update.
42471         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
42472         Include isnand.h instead of isnan.h.
42473         (main): Test isnand instead of isnan.
42474         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
42475         isnan-nolibm.
42476         * modules/frexp (Depends-on): Likewise.
42477         * modules/frexp-tests (Depends-on): Likewise.
42478         * modules/frexp-nolibm (Depends-on): Likewise.
42479         * modules/frexp-nolibm-tests (Depends-on): Likewise.
42480         * modules/isfinite (Depends-on): Likewise.
42481         * modules/round-tests (Depends-on): Likewise.
42482         * modules/signbit (Depends-on): Likewise.
42483         * modules/signbit-tests (Depends-on): Likewise.
42484         * modules/snprintf-posix (Depends-on): Likewise.
42485         * modules/sprintf-posix (Depends-on): Likewise.
42486         * modules/trunc-tests (Depends-on): Likewise.
42487         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42488         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42489         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42490         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42491         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42492         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42493         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42494         * modules/vasnprintf-posix (Depends-on): Likewise.
42495         * modules/vasprintf-posix (Depends-on): Likewise.
42496         * modules/vfprintf-posix (Depends-on): Likewise.
42497         * modules/vsnprintf-posix (Depends-on): Likewise.
42498         * modules/vsprintf-posix (Depends-on): Likewise.
42499         * lib/frexp.c: Include isnand.h instead of isnan.h.
42500         (ISNAN): Set to isnand instead of isnan.
42501         * lib/isfinite.c: Include isnand.h instead of isnan.h.
42502         (gl_isfinited): Use isnand instead of isnan.
42503         * lib/signbitd.c: Include isnand.h instead of isnan.h.
42504         (gl_signbitd): Use isnand instead of isnan.
42505         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
42506         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
42507         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
42508         (main): Use isnand instead of isnan.
42509         * tests/test-round1.c: Include isnand.h.
42510         (main): Use isnand instead of isnan.
42511         * tests/test-round2.c: Include isnand.h instead of isnan.h.
42512         (ISNAN): Set to isnand instead of isnan.
42513         * tests/test-trunc1.c: Include isnand.h.
42514         (main): Use isnand instead of isnan.
42515         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
42516         (equal): Use isnand instead of isnan.
42517         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
42518         isnand-nolibm.
42519         * NEWS: Mention the change.
42520
42521 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42522             Bruno Haible  <bruno@clisp.org>
42523
42524         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
42525         the GCC builtins for signbits are present and set
42526         REPLACE_SIGNBIT_USING_GCC if so.
42527         * lib/math.in.h (signbit): Define using GCC builtins if
42528         REPLACE_SIGNBIT_USING_GCC is set.
42529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
42530         REPLACE_SIGNBIT_USING_GCC.
42531         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
42532
42533 2008-01-25  Jim Meyering  <meyering@redhat.com>
42534
42535         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
42536         * lib/poll.c: Include <config.h>, not "config.h".
42537         * tests/test-getaddrinfo.c: Likewise.
42538
42539 2008-01-25  Simon Josefsson  <simon@josefsson.org>
42540
42541         * modules/sockets-tests: New file.
42542
42543 2008-01-24  Simon Josefsson  <simon@josefsson.org>
42544
42545         * modules/sockets: New module, can be used to call WSA_Startup and
42546         WSA_Cleanup when needed.
42547
42548         * lib/sockets.h, lib/sockets.c: New files.
42549
42550         * m4/sockets.m4: New file.
42551
42552         * tests/test-sockets.c: New file.
42553
42554 2008-01-19  Bruno Haible  <bruno@clisp.org>
42555
42556         * doc/posix-headers: Renamed from doc/headers.
42557         * doc/posix-functions: Renamed from doc/functions.
42558         * doc/gnulib.texi: Update.
42559
42560 2008-01-19  Bruno Haible  <bruno@clisp.org>
42561
42562         * doc/glibc-functions/strcasestr.texi: Include contents of
42563         doc/functions/strcasestr.texi, fixing the list of platforms.
42564         * doc/functions/strcasestr.texi: Remove file.
42565
42566 2008-01-19  Bruno Haible  <bruno@clisp.org>
42567
42568         * doc/glibc-functions/memmem.texi: Include contents of
42569         doc/functions/memmem.texi.
42570         * doc/functions/memmem.texi: Remove file.
42571
42572 2008-01-18  Bruno Haible  <bruno@clisp.org>
42573
42574         * doc/glibc-functions/*.texi: New files.
42575         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
42576         to use the new files.
42577
42578 2008-01-17  Bruno Haible  <bruno@clisp.org>
42579
42580         * tests/test-gethostname.c (main): Fix printf statement.
42581
42582 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42583
42584         * modules/gethostname-tests: New file.
42585
42586         * tests/test-gethostname.c: New file.
42587
42588 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42589
42590         * lib/gethostname.c: Include string.h unconditionally, strncpy is
42591         used by the UNAME case.  Reported by Bruno Haible
42592         <bruno@clisp.org>.
42593
42594 2008-01-17  Eric Blake  <ebb9@byu.net>
42595
42596         Convert c-strcasestr to be more efficient.
42597         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
42598         (Depends-on): Add c-strcase, remove malloca, strnlen.
42599         * tests/test-c-strcasestr.c (main): Enhance test.
42600         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
42601
42602 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42603
42604         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
42605         Use it in creating po/Makevars.
42606
42607 2008-01-15  Simon Josefsson  <simon@josefsson.org>
42608
42609         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
42610         Applications that requires it should initialize libgcrypt
42611         manually.
42612
42613 2008-01-16  Simon Josefsson  <simon@josefsson.org>
42614
42615         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
42616
42617 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
42618
42619         Fix problem with getdate on mingw32 reported by Simon Josefsson
42620         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
42621         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
42622         tzname", when deciding whether to declare tzname.
42623         * lib/strftime.c (tzname): Likewise.
42624
42625 2008-01-15  Bruno Haible  <bruno@clisp.org>
42626
42627         Work around a MacOS X 10.5 bug in frexpl().
42628         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
42629         * doc/functions/frexpl.texi: Document the bug.
42630         Reported by Elias Pipping <pipping@gentoo.org>.
42631
42632 2008-01-14  Eric Blake  <ebb9@byu.net>
42633
42634         Touch up previous patch.
42635         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
42636         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
42637
42638         Convert strcasestr module to use Two-Way algorithm.
42639         * modules/strcasestr-simple: New module, based on the old
42640         strcasestr, but with Two-Way rather than KMP.
42641         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
42642         * lib/string.in.h (rpl_strcasestr): Declare.
42643         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
42644         performance.
42645         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
42646         * modules/string (Makefile.am): Support strcasestr.
42647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42648         * modules/strcasestr-tests (Depends-on): Check for alarm.
42649         * tests/test-strcasestr.c: Augment test.
42650         * lib/str-two-way.h: Clean up stray macro.
42651         * NEWS: Document new module.
42652         * MODULES.html.sh (string handling): Likewise.
42653         * doc/functions/strcasestr.texi: New file.
42654         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
42655         here, since it is not a POSIX function.
42656
42657 2008-01-14  Colin Watson  <cjwatson@debian.org>
42658             Bruno Haible  <bruno@clisp.org>
42659
42660         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
42661         works fine; if not, set REPLACE_STRSIGNAL.
42662         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
42663         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42664         REPLACE_STRSIGNAL.
42665         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
42666         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
42667         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
42668
42669 2008-01-14  Bruno Haible  <bruno@clisp.org>
42670
42671         * modules/strsignal (Include): Change to <string.h>.
42672
42673 2008-01-14  Colin Watson  <cjwatson@debian.org>
42674
42675         * modules/argp (Notice): Add a notice recommending to change
42676         XGETTEXT_OPTIONS.
42677         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
42678
42679 2008-01-13  Colin Watson  <cjwatson@debian.org>
42680
42681         * modules/strsignal-tests: New file.
42682         * tests/test-strsignal.c: New file.
42683
42684         * lib/strsignal.c: New file, from glibc with modifications.
42685         * lib/siglist.h: New file, from glibc with modifications.
42686         * lib/string.in.h (strsignal): New declaration.
42687         * m4/strsignal.m4: New file.
42688         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42689         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
42690         * modules/strsignal: New file.
42691         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
42692         HAVE_DECL_STRSIGNAL.
42693
42694 2008-01-13  Bruno Haible  <bruno@clisp.org>
42695
42696         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
42697         locale encoding is not ASCII. Needed for OpenBSD 4.0.
42698         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42699         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42700
42701 2008-01-13  Bruno Haible  <bruno@clisp.org>
42702
42703         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
42704         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
42705         * lib/argp.h (__attribute__): Likewise.
42706         * lib/c-stack.c (__attribute__): Likewise.
42707         * lib/error.h (__attribute__): Likewise.
42708         * lib/fts.c (__attribute__): Likewise.
42709         * lib/openat.h (__attribute__): Likewise.
42710         * lib/stdio.in.h (__attribute__): Likewise.
42711         * lib/string.in.h (__attribute__): Likewise.
42712         * lib/utimens.c (__attribute__): Likewise.
42713         * lib/vasnprintf.h (__attribute__): Likewise.
42714         * lib/xalloc.h (__attribute__): Likewise.
42715         * lib/xprintf.h (__attribute__): Likewise.
42716         * lib/xstrtol.h (__attribute__): Likewise.
42717         * lib/xvasprintf.h (__attribute__): Likewise.
42718
42719 2008-01-12  Bruno Haible  <bruno@clisp.org>
42720
42721         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
42722         * doc/glibc-headers/a.out.texi: New file.
42723         * doc/glibc-headers/aliases.texi: New file.
42724         * doc/glibc-headers/alloca.texi: New file.
42725         * doc/glibc-headers/ar.texi: New file.
42726         * doc/glibc-headers/argp.texi: New file.
42727         * doc/glibc-headers/argz.texi: New file.
42728         * doc/glibc-headers/byteswap.texi: New file.
42729         * doc/glibc-headers/crypt.texi: New file.
42730         * doc/glibc-headers/endian.texi: New file.
42731         * doc/glibc-headers/envz.texi: New file.
42732         * doc/glibc-headers/err.texi: New file.
42733         * doc/glibc-headers/error.texi: New file.
42734         * doc/glibc-headers/execinfo.texi: New file.
42735         * doc/glibc-headers/fpu_control.texi: New file.
42736         * doc/glibc-headers/fstab.texi: New file.
42737         * doc/glibc-headers/fts.texi: New file.
42738         * doc/glibc-headers/getopt.texi: New file.
42739         * doc/glibc-headers/ieee754.texi: New file.
42740         * doc/glibc-headers/ifaddrs.texi: New file.
42741         * doc/glibc-headers/libintl.texi: New file.
42742         * doc/glibc-headers/mcheck.texi: New file.
42743         * doc/glibc-headers/mntent.texi: New file.
42744         * doc/glibc-headers/obstack.texi: New file.
42745         * doc/glibc-headers/paths.texi: New file.
42746         * doc/glibc-headers/printf.texi: New file.
42747         * doc/glibc-headers/pty.texi: New file.
42748         * doc/glibc-headers/resolv.texi: New file.
42749         * doc/glibc-headers/shadow.texi: New file.
42750         * doc/glibc-headers/sysexits.texi: New file.
42751         * doc/glibc-headers/ttyent.texi: New file.
42752
42753 2008-01-12  Jim Meyering  <meyering@redhat.com>
42754
42755         announce-gen: emit Gnulib's git-based version string.
42756         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
42757         New option --gnulib-version=V, where V is expected to be
42758         the output of running git describe in the gnulib directory.
42759         (get_tool_versions): Request feedback on xdelta.  I suspect it's
42760         not useful, and plan to stop publishing an xdelta file with each
42761         coreutils release.
42762
42763         * build-aux/announce-gen: Also check for lzma-compressed files.
42764
42765 2008-01-11  Bruno Haible  <bruno@clisp.org>
42766
42767         * tests/test-memmem.c (main): Increase maximum allowed time.
42768         * tests/test-strstr.c (main): Likewise.
42769
42770 2008-01-11  Bruno Haible  <bruno@clisp.org>
42771
42772         * doc/functions/memmem.texi: Add more precisions about platforms.
42773         * doc/functions/strstr.texi: Likewise.
42774
42775 2008-01-10  Eric Blake  <ebb9@byu.net>
42776
42777         * m4/strstr.m4: Delete cruft from copy-n-paste.
42778         Reported by Bruno Haible.
42779
42780 2008-01-10  Bruno Haible  <bruno@clisp.org>
42781
42782         Make c-strstr rely on strstr.
42783         * lib/c-strstr.c: Don't include str-kmp.h.
42784         (c_strstr): Define in terms of strstr.
42785         * modules/c-strstr (Files): Remove lib/str-kmp.h.
42786         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
42787
42788 2008-01-10  Bruno Haible  <bruno@clisp.org>
42789
42790         * doc/gnulib.texi (String Functions in C Locale): New section.
42791         * doc/c-ctype.texi: New file.
42792         * doc/c-strcase.texi: New file.
42793         * doc/c-strcaseeq.texi: New file.
42794         * doc/c-strcasestr.texi: New file.
42795         * doc/c-strstr.texi: New file.
42796         * doc/c-strtod.texi: New file.
42797         * doc/c-strtold.texi: New file.
42798
42799 2008-01-10  Eric Blake  <ebb9@byu.net>
42800
42801         * lib/relocatable.h: Fix a comment.
42802
42803 2008-01-10  Eric Blake  <ebb9@byu.net>
42804
42805         Share two-way algorithm.
42806         * lib/str-two-way.h: New file, merged from...
42807         * lib/memmem.c: ...here...
42808         * lib/strstr.c: ...and here.
42809         * modules/memmem (Files): Use it.
42810         * modules/strstr (Files): Likewise.
42811
42812         Avoid quadratic strstr implementations.
42813         * lib/strstr.c: New file.
42814         * m4/strstr.m4: Likewise.
42815         * modules/strstr: Likewise.
42816         * modules/strstr-tests: Likewise.
42817         * tests/test-strstr.c: Likewise.
42818         * lib/string.in.h (rpl_strstr): Declare.
42819         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
42820         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
42821         * modules/string (Makefile.am): Likewise.
42822         * MODULES.html.sh (string handling): Mention new module.
42823         * doc/functions/strstr.texi (strstr): Document the bug.
42824
42825 2008-01-10  Bruno Haible  <bruno@clisp.org>
42826
42827         * lib/relocatable.h (relocate): State whether result is freshly
42828         allocated or not.
42829         * lib/relocatable.c (relocate): Return a freshly allocated string
42830         instead of a pointer to a privately held string.
42831         Reported by Sylvain Beucler <beuc@gnu.org>.
42832
42833 2008-01-10  Colin Watson  <cjwatson@debian.org>
42834
42835         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
42836         s/S_ISNLK/S_ISLNK/.
42837
42838 2008-01-09  Bruno Haible  <bruno@clisp.org>
42839
42840         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
42841         and other files.
42842         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
42843         if it's only a guess.
42844         * modules/memmem: Simplify by depending on memmem-simple.
42845
42846 2008-01-09  Bruno Haible  <bruno@clisp.org>
42847
42848         Work around OpenBSD 4.0 tdelete() bug.
42849         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
42850         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
42851         macros and don't redefine the enum values.
42852         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
42853         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
42854         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
42855
42856 2008-01-09  Bruno Haible  <bruno@clisp.org>
42857
42858         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
42859         (main): Don't perform the tests if setlocale did not install a UTF-8
42860         locale. Needed on OpenBSD 4.0.
42861         * modules/wcwidth-tests (Depends-on): Add localcharset.
42862
42863 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
42864
42865         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
42866         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
42867         * NEWS: announce this.
42868         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
42869
42870 2008-01-09  Simon Josefsson  <simon@josefsson.org>
42871         and Eric Blake  <ebb9@byu.net>
42872
42873         Add memmem-simple module.
42874         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
42875         (gl_FUNC_MEMMEM): Separate performance from presence checks.
42876         * modules/memmem-simple: New file.
42877         * modules/memmem (Description): Tweak.
42878         * MODULES.html.sh (string handling): Mention new module.
42879         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
42880         addressed by memmem-simple.
42881         * NEWS: Document the difference.
42882
42883 2008-01-09  Eric Blake  <ebb9@byu.net>
42884
42885         Give gcc some memmem optimization hints.
42886         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
42887         (strcasestr): Declare as pure.
42888         * modules/memmem (Maintainer): Claim my implementation.
42889
42890 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42891
42892         Support AIX 6.1 and higher.
42893         * build-aux/config.libpath: Likewise.
42894         * build-aux/config.rpath: Likewise.
42895
42896 2008-01-08  Jim Meyering  <meyering@redhat.com>
42897             Bruno Haible  <bruno@clisp.org>
42898
42899         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
42900         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
42901         Reported by Peter Fales in
42902         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
42903
42904 2008-01-08  Bruno Haible  <bruno@clisp.org>
42905
42906         * modules/unictype/category-of (Depends-on): Add
42907         unictype/category-none.
42908         * modules/unictype/category-and-tests (Depends-on): Add
42909         unictype/category-{L,N,Lu,Nd}.
42910         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
42911         * modules/unictype/category-or-tests (Depends-on): Add
42912         unictype/category-{L,N}.
42913         * modules/unictype/category-name-tests (Depends-on): Add
42914         unictype/category-{Z,Nl}.
42915         Reported by Simon Josefsson.
42916
42917 2008-01-08  Bruno Haible  <bruno@clisp.org>
42918
42919         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
42920         convention better.
42921         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
42922         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
42923         Reported by Peter Miller <millerp@canb.auug.org.au>.
42924
42925 2008-01-08  Eric Blake  <ebb9@byu.net>
42926
42927         Rewrite memmem to guarantee linear complexity without malloc.
42928         * lib/memmem.c (memmem): Use Two-Way rather than
42929         Knuth-Morris-Pratt, to allow O(1) space usage.
42930         (critical_factorization, two_way_short_needle)
42931         (two_way_long_needle): New functions.
42932         (knuth_morris_pratt): Delete.
42933         * modules/memmem (Depends-on): No longer need malloca or stdbool.
42934         Add stdint.
42935         * tests/test-memmem.c (main): Add tests for periodic needle and
42936         sublinear performance.
42937         * doc/functions/memmem.texi (memmem): Document other deficiencies
42938         in cygwin and older glibc.
42939
42940 2008-01-08  Bruno Haible  <bruno@clisp.org>
42941
42942         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
42943         augmentation.
42944
42945 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
42946
42947         Add a configure time option: --disable-acl.
42948         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
42949         AC_ARG_ENABLE(acl).
42950
42951 2008-01-06  Simon Josefsson  <simon@josefsson.org>
42952
42953         * tests/test-localename.c: Don't include obsolete "setenv.h".
42954
42955         * modules/localename-tests (Depends-on): Need unsetenv.
42956
42957 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42958
42959         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
42960
42961 2008-01-06  Colin Watson  <cjwatson@debian.org>
42962
42963         * users.txt: Add man-db.
42964
42965 2008-01-07  Bruno Haible  <bruno@clisp.org>
42966
42967         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
42968         previous section name.
42969
42970 2008-01-07  Bruno Haible  <bruno@clisp.org>
42971
42972         * lib/progname.c (set_program_name): Don't strip off a leading
42973         "lt-" prefix outside a .libs directory.
42974         Suggested by Paul Eggert.
42975
42976 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
42977             Bruno Haible  <bruno@clisp.org>
42978
42979         Improve memory cleanup in 'relocatable' module.
42980         * lib/relocatable.h (compute_curr_prefix): Change return type to
42981         'char *'.
42982         * lib/relocatable.c (compute_curr_prefix): Change return type to
42983         'char *'. Free curr_installdir after use.
42984         (relocate): Free curr_prefix_better after use.
42985         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
42986
42987 2008-01-01  Bruno Haible  <bruno@clisp.org>
42988
42989         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
42990         failure on older glibc systems.
42991         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42992
42993 2008-01-05  Eric Blake  <ebb9@byu.net>
42994
42995         Avoid quadratic system memmem.
42996         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
42997         Reported by Ralf Wildenhues.
42998
42999         Fix memmem test for mingw.
43000         * modules/memmem-tests (configure.ac): Check for alarm.
43001         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
43002         it.
43003         * doc/functions/memmem.texi: New file.
43004         * doc/gnulib.texi (Function Substitutes): Add memmem.
43005         Reported by Bruno Haible.
43006
43007 2008-01-04  Bruno Haible  <bruno@clisp.org>
43008
43009         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
43010         Require gl_HEADER_STRINGS_H_DEFAULTS, not
43011         gl_HEADER_STRING_H_DEFAULTS.
43012
43013 2008-01-04  Eric Blake  <ebb9@byu.net>
43014
43015         Shorten duration of memmem test.
43016         * tests/test-memmem.c (main): Use alarm to declare failure if test
43017         is taking too long.
43018         Reported by Ralf Wildenhues.
43019
43020 2007-12-21  Simon Josefsson  <simon@josefsson.org>
43021
43022         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
43023         string, needed by strerror.
43024
43025 2008-01-03  Colin Watson  <cjwatson@debian.org>
43026             Bruno Haible  <bruno@clisp.org>
43027
43028         * doc/gnulib-tool.texi (Localization): New section.
43029
43030 2008-01-02  Bruno Haible  <bruno@clisp.org>
43031
43032         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
43033         variables to 'unsigned char *' type.
43034         Reported by Paul Eggert.
43035
43036 2008-01-02  Jim Meyering  <jim@meyering.net>
43037
43038         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
43039
43040 2007-12-31  Jim Meyering  <jim@meyering.net>
43041
43042         Avoid use of private FTS type name.
43043         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
43044
43045 2007-12-30  Karl Berry  <karl@gnu.org>
43046
43047         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
43048         work around defect in Texinfo and/or the standalone Info browser.
43049
43050 2007-12-30  Bruno Haible  <bruno@clisp.org>
43051
43052         Unify 5 copies of the KMP code.
43053         * lib/str-kmp.h: New file.
43054         * lib/c-strcasestr.c: Include str-kmp.h.
43055         (knuth_morris_pratt): Remove function.
43056         (c_strcasestr): Update.
43057         * lib/c-strstr.c: Include str-kmp.h.
43058         (knuth_morris_pratt): Remove function.
43059         (c_strcasestr): Update.
43060         * lib/mbscasestr.c: Include str-kmp.h.
43061         (knuth_morris_pratt_unibyte): Remove function.
43062         * lib/mbsstr.c: Include str-kmp.h.
43063         (knuth_morris_pratt_unibyte): Remove function.
43064         * lib/strcasestr.c: Include str-kmp.h.
43065         (knuth_morris_pratt): Remove function.
43066         (strcasestr): Update.
43067         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
43068         * modules/c-strstr (Files): Likewise.
43069         * modules/mbscasestr (Files): Likewise.
43070         * modules/mbsstr (Files): Likewise.
43071         * modules/strcasestr (Files): Likewise.
43072         Suggested by Paul Eggert.
43073
43074 2007-12-30  Bruno Haible  <bruno@clisp.org>
43075
43076         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
43077         defined.
43078
43079 2007-12-30  Bruno Haible  <bruno@clisp.org>
43080
43081         * lib/xmalloca.h: Include xalloc.h.
43082         (xnmalloca): New macro.
43083
43084 2007-12-30  Bruno Haible  <bruno@clisp.org>
43085
43086         * lib/malloca.h (nmalloca): New macro.
43087         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
43088         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
43089         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
43090         knuth_morris_pratt_multibyte): Likewise.
43091         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
43092         knuth_morris_pratt_multibyte): Likewise.
43093         * lib/memmem.c (knuth_morris_pratt): Likewise.
43094         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
43095
43096 2007-12-25  Bruno Haible  <bruno@clisp.org>
43097
43098         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
43099         * lib/glob.c: Don't include openat.h.
43100         (link_exists2_p): Add back the code that deals with the
43101         !GLOB_ALTDIRFUNC case.
43102         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
43103         let it do the filename concatenation.
43104         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
43105         * modules/glob (Depends-on): Remove openat.
43106
43107 2007-12-31  Bruno Haible  <bruno@clisp.org>
43108
43109         * modules/dirfd (License): Change to LGPLv2+.
43110         Approved by Jim Meyering.
43111
43112 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43113
43114         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
43115         when multiplying M by sizeof (size_t).
43116
43117 2007-12-10  Martin Lambers  <marlam@marlam.de>
43118
43119         Override getpagesize on mingw.
43120         * lib/getpagesize.c: New file.
43121         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
43122         * modules/getpagesize (Files): Add lib/getpagesize.c.
43123         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
43124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43125         REPLACE_GETPAGESIZE.
43126         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
43127
43128 2007-12-25  Bruno Haible  <bruno@clisp.org>
43129
43130         * modules/localcharset (Notice): New field.
43131         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
43132         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
43133
43134 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43135             Bruno Haible  <bruno@clisp.org>
43136
43137         Avoid using the syntax symbol() in formatted documentation.
43138         * MODULES.html.sh (func_module): When replacing symbol() with a
43139         hyperlink, remove the parentheses. Show an error if some remain.
43140         Recognize and render the '...' syntax.
43141         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
43142         Rework. Add paragraph about GCC's inlining.
43143         * doc/alloca.texi: Likewise.
43144         * doc/error.texi: Remove parentheses from symbol reference.
43145         * doc/gnulib-intro.texi: Likewise.
43146         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
43147         * modules/fnmatch (Description): Reword to say "the ... function".
43148         * modules/full-read (Description): Likewise.
43149         * modules/full-write (Description): Likewise.
43150         * modules/safe-read (Description): Likewise.
43151         * modules/safe-write (Description): Likewise.
43152         * modules/strchrnul (Description): Likewise.
43153         * modules/trim (Description): Likewise.
43154         * modules/error (Description): Remove parentheses from symbol
43155         references.
43156         * modules/verror (Description): Likewise.
43157         Reported by Karl Berry.
43158
43159 2007-12-25  Bruno Haible  <bruno@clisp.org>
43160
43161         Fixup after 2007-10-16 commit.
43162         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
43163
43164 2007-12-24  Bruno Haible  <bruno@clisp.org>
43165
43166         Make --enable-relocatable work with DESTDIR.
43167         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
43168         to compute installdir from destprog.
43169         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
43170         also set the RELOC_DESTDIR variable.
43171         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43172
43173 2007-12-24  Bruno Haible  <bruno@clisp.org>
43174
43175         Fix link error due to xalloc_die().
43176         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
43177         of xreadlink.
43178         * lib/relocwrapper.c: Update comments.
43179         * build-aux/install-reloc: Remove xreadlink.c from file list.
43180         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
43181         xreadlink.c.
43182         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43183
43184 2007-12-24  Bruno Haible  <bruno@clisp.org>
43185
43186         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
43187         * lib/setenv.h: Remove file.
43188         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
43189         lib/setenv.h.
43190         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
43191         (Depends-on): Add stdlib.
43192         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
43193         gl_FUNC_UNSETENV.
43194         (Include): Replace setenv.h with <stdlib.h>.
43195         * modules/unsetenv: New file.
43196         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
43197         * lib/unsetenv.c: Include <stdlib.h> first.
43198         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
43199         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
43200         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
43201         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
43202         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
43203         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43204         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
43205         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43206         * doc/functions/unsetenv.texi: Update.
43207         * modules/xsetenv (Depends-on): Add unsetenv.
43208         * modules/getdate (Depends-on): Likewise.
43209         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
43210         * lib/xsetenv.c: Don't include setenv.h.
43211         * lib/getdate.y: Likewise.
43212         * lib/relocwrapper.c: Likewise.
43213         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
43214         (Depends-on): Add stdlib.
43215         * NEWS: Mention the changes.
43216         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43217
43218 2007-12-23  Bruno Haible  <bruno@clisp.org>
43219
43220         * lib/memmem.c (memmem): Use lowercase variable names. Tab
43221         indentation.
43222
43223 2007-12-23  Bruno Haible  <bruno@clisp.org>
43224
43225         * lib/c-strcasestr.c: Add more comments.
43226         * lib/c-strstr.c: Likewise.
43227         * lib/mbscasestr.c: Likewise.
43228         * lib/mbsstr.c: Likewise.
43229         * lib/strcasestr.c: Likewise.
43230         * lib/memmem.c: Likewise.
43231
43232 2007-12-23  Bruno Haible  <bruno@clisp.org>
43233
43234         * tests/test-memmem.c: Include <string.h> first.
43235
43236 2007-12-22  Bruno Haible  <bruno@clisp.org>
43237
43238         * gnulib-tool (func_create_testdir): Change $auxdir while generating
43239         the contents of $testsbase.
43240         Reported by Ralf Wildenhues.
43241
43242 2007-12-22  Bruno Haible  <bruno@clisp.org>
43243
43244         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
43245         two variables local_ldadd_before, local_ldadd_last.
43246
43247 2007-12-20  Eric Blake  <ebb9@byu.net>
43248
43249         Work around circular library issue when cross-compiling.
43250         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
43251         that progname.o does not need to pull in rpl_memcmp.
43252
43253 2007-12-19  Eric Blake  <ebb9@byu.net>
43254
43255         Fix memmem to avoid O(n^2) worst-case complexity.
43256         * lib/memmem.c (knuth_morris_pratt): New function.
43257         (memmem): Use it if first few naive iterations fail.
43258         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
43259         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
43260         * modules/memchr (License): Likewise.
43261         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
43262         malloca.
43263         * tests/test-memmem.c: Rewrite, borrowing ideas from
43264         test-mbsstr1.c; the old version wouldn't even compile!
43265         * modules/memmem-tests: New file.
43266         * lib/string.in.h (rpl_memmem): Add declaration.
43267         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
43268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
43269         REPLACE_MEMMEM.
43270
43271 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43272
43273         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
43274         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
43275         before any system include files, and undef after them all.  This
43276         should fix a problem on VMS reported by John E. Malmberg in
43277         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
43278
43279 2007-12-17  Eric Blake  <ebb9@byu.net>
43280
43281         Revert addition of verify, for BSD/OS.
43282         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
43283         can't handle large files, for the sake of obsolete platforms.
43284         * modules/fseeko (Depends-on): Remove verify.
43285         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
43286         * doc/functions/ftello.texi (ftello): Likewise.
43287         * doc/functions/fgetpos.texi (fgetpos): Likewise.
43288         Reported by Larry Jones.
43289
43290 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
43291
43292         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
43293         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
43294
43295 2007-12-17  Jim Meyering  <meyering@redhat.com>
43296
43297         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
43298         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
43299         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
43300         * modules/getcwd (Depends-on): Add openat.
43301         Reported by Petr Salinger.
43302
43303 2007-12-17  Bruno Haible  <bruno@clisp.org>
43304
43305         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
43306         avoid a segmentation fault of the configure test on x86_64 systems.
43307
43308 2007-12-15  Jim Meyering  <meyering@redhat.com>
43309
43310         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
43311
43312 2007-12-13  Eric Blake  <ebb9@byu.net>
43313
43314         Another fseek test.
43315         * tests/test-fseek.c (main): Also test ungetc handling.
43316         * tests/test-fseeko.c (main): Likewise.
43317         * modules/fseeko (Depends-on): Add verify.
43318         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
43319         large.
43320         Reported by Larry Jones.
43321
43322         Fix fseeko on mingw.
43323         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
43324         seek.
43325
43326         Beef up fseek tests.
43327         * tests/test-fseek.c (main): Also test eof handling.
43328         * tests/test-fseeko.c (main): Likewise.
43329         Reported by Larry Jones.
43330
43331 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
43332
43333         Fix fseeko on BSD-based platforms.
43334         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
43335         successful seek.
43336
43337 2007-12-12  Eric Blake  <ebb9@byu.net>
43338
43339         Allow circular dependency of separate libtests.a
43340         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
43341         when use_libtests.
43342
43343 2007-12-11  Eric Blake  <ebb9@byu.net>
43344
43345         Fix bug with -0.0L in previous patch.
43346         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
43347         * tests/test-isnan.c (main): Also test on zeroes.
43348         * tests/test-isnanf.c (main): Likewise.
43349         * tests/test-isnanl.h (main): Likewise.
43350
43351         Detect pseudo-denormals on x86 even when cross-compiling.
43352         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
43353         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
43354         invalid bit patterns that happen to satisfy ==.
43355
43356         Avoid link failures with separate libtests.a.
43357         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
43358         last, to satisfy circular dependencies.
43359
43360 2007-12-11  Eric Blake  <ebb9@byu.net>
43361         and Bruno Haible  <bruno@clisp.org>
43362
43363         Fix OpenBSD 4.0 <float.h> handling of long double.
43364         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
43365         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
43366         * doc/headers/float.texi (float.h): Document OpenBSD bug.
43367
43368 2007-12-11  Jim Meyering  <meyering@redhat.com>
43369
43370         * users.txt: Add libvirt.
43371
43372         Support versions of autoconf prior to 2.59c.
43373         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
43374         if it is not already defined.
43375
43376 2007-12-09  Bruno Haible  <bruno@clisp.org>
43377
43378         Let 'gnulib-tool --import' collect sources needed for the tests in
43379         tests/ rather than in lib/.
43380         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
43381         argument. If true, add rules to generate libtests.a, and put libtests.a
43382         into $(LDADD). Consider source files in subdirectories and set
43383         uses_subdirs.
43384         (func_emit_initmacro_start, func_emit_initmacro_end,
43385         func_emit_initmacro_done): Pass all arguments explicitly.
43386         (func_import): Determine two module lists main_modules,
43387         testsrelated_modules. Determine use_libtests. Determine two variables
43388         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
43389         instead of just sed_transform_lib_file. Determine two variables
43390         main_files and testsrelated_files. Compute 'files' as the union of
43391         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
43392         func_add_or_update. In the generated gnulib-comp.m4, collect the
43393         object files for tests/ in different variables than those for lib/.
43394         Substitute LIBTESTS_LIBDEPS.
43395         (func_create_testdir): Combine the uses_subdirs results from
43396         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
43397
43398 2007-12-09  Bruno Haible  <bruno@clisp.org>
43399
43400         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
43401         the build-aux directory.
43402
43403 2007-12-09  Bruno Haible  <bruno@clisp.org>
43404
43405         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
43406         introduced on 2006-09-09.
43407
43408 2007-12-07  Jim Meyering  <meyering@redhat.com>
43409
43410         Let these macros work also with autoconf-2.59.
43411         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
43412         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
43413         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43414
43415 2007-12-06  Jim Meyering  <meyering@redhat.com>
43416
43417         Avoid a configure-time syntax error in gl_FUNC_ACL.
43418         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
43419         function in each branch, before testing the cache variable.
43420
43421 2007-12-04  Eric Blake  <ebb9@byu.net>
43422
43423         Make scripts executable.
43424         * build-aux/config.guess: Add execute permissions.
43425         * build-aux/config.sub: Likewise.
43426         * build-aux/gendocs.sh: Likewise.
43427
43428         Fix frexp on mingw.
43429         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
43430         cross-compiling.
43431         * doc/functions/frexp.texi (frexp): Document the bug.
43432
43433         Make cygwin fseeko check more reliable.
43434         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
43435         version numbers, rather than unrelated feature check.
43436         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
43437         * doc/functions/ftello.texi (ftello): Likewise.
43438         Reported by Bruno Haible.
43439
43440         * m4/strerror.m4: Bump version number.
43441
43442 2007-12-03  Bruno Haible  <bruno@clisp.org>
43443
43444         * doc/functions/mprotect.texi: Mention the mingw problem.
43445
43446 2007-12-03  Eric Blake  <ebb9@byu.net>
43447
43448         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
43449         REPLACE_STRERROR is initialized before this macro.
43450
43451 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
43452
43453         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
43454         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
43455         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
43456         put -lsec in even for programs other than 'ls'.  This fixes a problem
43457         for gettext reported by Bruno Haible in
43458         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
43459         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
43460         Add support for Solaris 10.  This isn't efficient, but should get the
43461         job done for now.
43462
43463 2007-12-03  James Youngman  <jay@gnu.org>
43464
43465         * doc/regexprops-generic.texi: change "an close-group" to "a
43466         close-group" and "illegal" to "not allowed".
43467
43468 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43469
43470         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
43471         pr_byname.h. Needed for the rare case when the maintainer has done
43472         "make maintainer-clean" in the source directory and then attempts a
43473         build outside the source directory.
43474         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
43475         scripts_byname.h.
43476
43477 2007-12-02  Martin Lambers <marlam@marlam.de>
43478             Bruno Haible  <bruno@clisp.org>
43479
43480         * lib/getpagesize.h: Remove file.
43481         * lib/unistd.in.h: Include declaration of getpagesize here.
43482         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
43483         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
43484         HAVE_SYS_PARAM_H.
43485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
43486         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43487         * modules/getpagesize (Files): Remove lib/getpagesize.h.
43488         (Depends-on): Add unistd.
43489         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43490         (Include): Use <unistd.h> instead of getpagesize.h.
43491         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
43492         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43493         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
43494         gl_GETPAGESIZE invocation, already handled by module dependency.
43495         * lib/pagealign_alloc.c: Don't include getpagesize.h.
43496
43497 2007-12-02  Bruno Haible  <bruno@clisp.org>
43498
43499         * modules/strings-tests: New file.
43500         * tests/test-strings.c: New file.
43501
43502         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
43503         * lib/strings.in.h: New file.
43504         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
43505         * m4/strings_h.m4: New file.
43506         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
43507         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
43508         * modules/strings: New file.
43509         * modules/string (Makefile.am): Update.
43510         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
43511         Reported by Karl Berry.
43512
43513 2007-12-01  Eric Blake  <ebb9@byu.net>
43514
43515         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
43516         accomodate fix in cygwin 1.5.25.
43517
43518 2007-12-01  Jim Meyering  <meyering@redhat.com>
43519
43520         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
43521         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
43522         that would inhibit utf8-optimization of a regexp containing line-
43523         or buffer-anchors, e.g., `^', `$'.
43524
43525 2007-11-30  Bruno Haible  <bruno@clisp.org>
43526
43527         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
43528         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
43529         glthread_recursive_lock_init.
43530         * lib/lock.c (glthread_recursive_lock_init)
43531         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
43532         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43533
43534 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
43535
43536         New function qset_acl, like set_acl but with syscall semantics.
43537         * lib/acl.h (qset_acl): New decl.
43538         * lib/acl.c (qset_acl): New function.
43539         (set_acl): Use new function.  Use more-consistent diagnostics.
43540
43541 2007-11-28  Jim Meyering  <meyering@redhat.com>
43542
43543         * modules/physmem (License): Change from GPL to LGPLv2+.
43544
43545 2007-11-26  Bruno Haible  <bruno@clisp.org>
43546
43547         * lib/vasnprintf.c (decode_long_double): Don't abort if the
43548         'long double' type has excess precision.
43549         Reported by Jim Meyering in
43550         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
43551
43552 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43553
43554         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
43555         Sync from <http://gnu.org/licenses>.
43556         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
43557         with license text from same location.
43558         * doc/maintain.texi, doc/standards.texi:  Sync from
43559         <http://savannah.gnu.org/projects/gnustandards>.
43560
43561 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
43562         and Jim Meyering  <meyering@redhat.com>
43563
43564         Adjust getdate' grammar to accept a slightly more regular language.
43565         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
43566         Before, the former was rejected.
43567         * lib/getdate.y (digits_to_date_time): New function, factored
43568         out of ...
43569         (number): ...here.  Just call digits_to_date_time.
43570         (hybrid): New non-terminal to handle an <unsigned number,
43571         signed relative offset> sequence consistently.
43572
43573 2007-11-18  Jim Meyering  <meyering@redhat.com>
43574
43575         Pull my changes from coreutils:
43576         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
43577         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
43578         use of $gnulib_tool_option_extras, so that it's separated from the
43579         preceding argument.
43580
43581         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
43582         * build-aux/bootstrap (cp_mark_as_generated): Create any required
43583         parent destination directories before copying a file into place.
43584
43585 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
43586
43587         bootstrap: work also with 4-argument variant of AC_INIT
43588         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
43589
43590 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43591
43592         Port test-getaddrinfo to Solaris.
43593         Problem reported by Bruno Haible in
43594         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
43595         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
43596         explanation of setting 'hints'.
43597         Don't reject an implementation merely because it returns EAI_SERVICE.
43598         (EAI_SERVICE): Define to 0 if not defined.
43599
43600 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43601
43602         The license of gnu-make and posix-shell is now "GPLed build tool".
43603         * modules/gnu-make (License): Likewise.
43604         * modules/posix-shell (License): Likewise.
43605
43606         New module posix-shell, for determining a POSIX shell
43607         or perhaps something that is close enough to a POSIX shell.
43608         * m4/posix-shell.m4: New file.
43609         * modules/posix-shell: New file.
43610
43611         * MODULES.html.sh: Mention new module.
43612
43613         New module gnu-make, for determining whether we're using GNU Make.
43614         * m4/gnu-make.m4: New file.
43615         * modules/gnu-make: New file.
43616         * MODULES.html.sh: Mention new module.
43617
43618 2007-11-14  Jim Meyering  <meyering@redhat.com>
43619
43620         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
43621         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
43622         use this macro to create a function _definition_.
43623         Remove useless "#undef ARGMATCH_DIE".
43624
43625 2007-11-14  Bruno Haible  <bruno@clisp.org>
43626
43627         * lib/config.charset: Update for OpenBSD 4.1.
43628         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
43629
43630 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
43631
43632         Document 64-bit #if problems in stdint.texi.
43633         * doc/headers/stdint.texi (stdint.h): Mention problems with
43634         64-bit-#if, and how to work around them.
43635
43636         Don't insist on 'long long int' support in the preprocessor.  It
43637         breaks too many things.  For example, PRIdMAX still uses a 'long
43638         long int' format with the latest Sun compiler, even though
43639         HAVE_LONG_LONG_INT isn't defined due to that compiler's
43640         preprocessor problem.  This causes the latest coreutils to dump
43641         core on Solaris 10 sparc with the Sun C compiler.
43642         Instead, fix the 2007-10-16 problem in a different way, by evaluating
43643         the troublesome expressions at configure-time, not at #if-time.
43644         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
43645         preprocessor.
43646         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
43647         compile-time C checks, done at 'configure'-time.
43648         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
43649         * modules/inttypes (Makefile): Substitute the new symbols that
43650         gl_INTTYPES_H now generates.
43651         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
43652
43653 2007-11-12  Bruno Haible  <bruno@clisp.org>
43654
43655         Tests for Unicode character classification functions.
43656
43657         * modules/unictype/bidicategory-byname-tests: New file.
43658         * modules/unictype/bidicategory-name-tests: New file.
43659         * modules/unictype/bidicategory-of-tests: New file.
43660         * modules/unictype/bidicategory-test-tests: New file.
43661         * modules/unictype/block-list-tests: New file.
43662         * modules/unictype/block-of-tests: New file.
43663         * modules/unictype/block-test-tests: New file.
43664         * modules/unictype/category-C-tests: New file.
43665         * modules/unictype/category-Cc-tests: New file.
43666         * modules/unictype/category-Cf-tests: New file.
43667         * modules/unictype/category-Cn-tests: New file.
43668         * modules/unictype/category-Co-tests: New file.
43669         * modules/unictype/category-Cs-tests: New file.
43670         * modules/unictype/category-L-tests: New file.
43671         * modules/unictype/category-Ll-tests: New file.
43672         * modules/unictype/category-Lm-tests: New file.
43673         * modules/unictype/category-Lo-tests: New file.
43674         * modules/unictype/category-Lt-tests: New file.
43675         * modules/unictype/category-Lu-tests: New file.
43676         * modules/unictype/category-M-tests: New file.
43677         * modules/unictype/category-Mc-tests: New file.
43678         * modules/unictype/category-Me-tests: New file.
43679         * modules/unictype/category-Mn-tests: New file.
43680         * modules/unictype/category-N-tests: New file.
43681         * modules/unictype/category-Nd-tests: New file.
43682         * modules/unictype/category-Nl-tests: New file.
43683         * modules/unictype/category-No-tests: New file.
43684         * modules/unictype/category-P-tests: New file.
43685         * modules/unictype/category-Pc-tests: New file.
43686         * modules/unictype/category-Pd-tests: New file.
43687         * modules/unictype/category-Pe-tests: New file.
43688         * modules/unictype/category-Pf-tests: New file.
43689         * modules/unictype/category-Pi-tests: New file.
43690         * modules/unictype/category-Po-tests: New file.
43691         * modules/unictype/category-Ps-tests: New file.
43692         * modules/unictype/category-S-tests: New file.
43693         * modules/unictype/category-Sc-tests: New file.
43694         * modules/unictype/category-Sk-tests: New file.
43695         * modules/unictype/category-Sm-tests: New file.
43696         * modules/unictype/category-So-tests: New file.
43697         * modules/unictype/category-Z-tests: New file.
43698         * modules/unictype/category-Zl-tests: New file.
43699         * modules/unictype/category-Zp-tests: New file.
43700         * modules/unictype/category-Zs-tests: New file.
43701         * modules/unictype/category-and-not-tests: New file.
43702         * modules/unictype/category-and-tests: New file.
43703         * modules/unictype/category-byname-tests: New file.
43704         * modules/unictype/category-name-tests: New file.
43705         * modules/unictype/category-none-tests: New file.
43706         * modules/unictype/category-of-tests: New file.
43707         * modules/unictype/category-or-tests: New file.
43708         * modules/unictype/category-test-withtable-tests: New file.
43709         * modules/unictype/combining-class-tests: New file.
43710         * modules/unictype/ctype-alnum-tests: New file.
43711         * modules/unictype/ctype-alpha-tests: New file.
43712         * modules/unictype/ctype-blank-tests: New file.
43713         * modules/unictype/ctype-cntrl-tests: New file.
43714         * modules/unictype/ctype-digit-tests: New file.
43715         * modules/unictype/ctype-graph-tests: New file.
43716         * modules/unictype/ctype-lower-tests: New file.
43717         * modules/unictype/ctype-print-tests: New file.
43718         * modules/unictype/ctype-punct-tests: New file.
43719         * modules/unictype/ctype-space-tests: New file.
43720         * modules/unictype/ctype-upper-tests: New file.
43721         * modules/unictype/ctype-xdigit-tests: New file.
43722         * modules/unictype/decimal-digit-tests: New file.
43723         * modules/unictype/digit-tests: New file.
43724         * modules/unictype/mirror-tests: New file.
43725         * modules/unictype/numeric-tests: New file.
43726         * modules/unictype/property-alphabetic-tests: New file.
43727         * modules/unictype/property-ascii-hex-digit-tests: New file.
43728         * modules/unictype/property-bidi-arabic-digit-tests: New file.
43729         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
43730         * modules/unictype/property-bidi-block-separator-tests: New file.
43731         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
43732         * modules/unictype/property-bidi-common-separator-tests: New file.
43733         * modules/unictype/property-bidi-control-tests: New file.
43734         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
43735         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
43736         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
43737         * modules/unictype/property-bidi-european-digit-tests: New file.
43738         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
43739         * modules/unictype/property-bidi-left-to-right-tests: New file.
43740         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
43741         * modules/unictype/property-bidi-other-neutral-tests: New file.
43742         * modules/unictype/property-bidi-pdf-tests: New file.
43743         * modules/unictype/property-bidi-segment-separator-tests: New file.
43744         * modules/unictype/property-bidi-whitespace-tests: New file.
43745         * modules/unictype/property-byname-tests: New file.
43746         * modules/unictype/property-combining-tests: New file.
43747         * modules/unictype/property-composite-tests: New file.
43748         * modules/unictype/property-currency-symbol-tests: New file.
43749         * modules/unictype/property-dash-tests: New file.
43750         * modules/unictype/property-decimal-digit-tests: New file.
43751         * modules/unictype/property-default-ignorable-code-point-tests: New file.
43752         * modules/unictype/property-deprecated-tests: New file.
43753         * modules/unictype/property-diacritic-tests: New file.
43754         * modules/unictype/property-extender-tests: New file.
43755         * modules/unictype/property-format-control-tests: New file.
43756         * modules/unictype/property-grapheme-base-tests: New file.
43757         * modules/unictype/property-grapheme-extend-tests: New file.
43758         * modules/unictype/property-grapheme-link-tests: New file.
43759         * modules/unictype/property-hex-digit-tests: New file.
43760         * modules/unictype/property-hyphen-tests: New file.
43761         * modules/unictype/property-id-continue-tests: New file.
43762         * modules/unictype/property-id-start-tests: New file.
43763         * modules/unictype/property-ideographic-tests: New file.
43764         * modules/unictype/property-ids-binary-operator-tests: New file.
43765         * modules/unictype/property-ids-trinary-operator-tests: New file.
43766         * modules/unictype/property-ignorable-control-tests: New file.
43767         * modules/unictype/property-iso-control-tests: New file.
43768         * modules/unictype/property-join-control-tests: New file.
43769         * modules/unictype/property-left-of-pair-tests: New file.
43770         * modules/unictype/property-line-separator-tests: New file.
43771         * modules/unictype/property-logical-order-exception-tests: New file.
43772         * modules/unictype/property-lowercase-tests: New file.
43773         * modules/unictype/property-math-tests: New file.
43774         * modules/unictype/property-non-break-tests: New file.
43775         * modules/unictype/property-not-a-character-tests: New file.
43776         * modules/unictype/property-numeric-tests: New file.
43777         * modules/unictype/property-other-alphabetic-tests: New file.
43778         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
43779         * modules/unictype/property-other-grapheme-extend-tests: New file.
43780         * modules/unictype/property-other-id-continue-tests: New file.
43781         * modules/unictype/property-other-id-start-tests: New file.
43782         * modules/unictype/property-other-lowercase-tests: New file.
43783         * modules/unictype/property-other-math-tests: New file.
43784         * modules/unictype/property-other-uppercase-tests: New file.
43785         * modules/unictype/property-paired-punctuation-tests: New file.
43786         * modules/unictype/property-paragraph-separator-tests: New file.
43787         * modules/unictype/property-pattern-syntax-tests: New file.
43788         * modules/unictype/property-pattern-white-space-tests: New file.
43789         * modules/unictype/property-private-use-tests: New file.
43790         * modules/unictype/property-punctuation-tests: New file.
43791         * modules/unictype/property-quotation-mark-tests: New file.
43792         * modules/unictype/property-radical-tests: New file.
43793         * modules/unictype/property-sentence-terminal-tests: New file.
43794         * modules/unictype/property-soft-dotted-tests: New file.
43795         * modules/unictype/property-space-tests: New file.
43796         * modules/unictype/property-terminal-punctuation-tests: New file.
43797         * modules/unictype/property-test-tests: New file.
43798         * modules/unictype/property-titlecase-tests: New file.
43799         * modules/unictype/property-unassigned-code-value-tests: New file.
43800         * modules/unictype/property-unified-ideograph-tests: New file.
43801         * modules/unictype/property-uppercase-tests: New file.
43802         * modules/unictype/property-variation-selector-tests: New file.
43803         * modules/unictype/property-white-space-tests: New file.
43804         * modules/unictype/property-xid-continue-tests: New file.
43805         * modules/unictype/property-xid-start-tests: New file.
43806         * modules/unictype/property-zero-width-tests: New file.
43807         * modules/unictype/scripts-tests: New file.
43808         * modules/unictype/syntax-c-ident-tests: New file.
43809         * modules/unictype/syntax-c-whitespace-tests: New file.
43810         * modules/unictype/syntax-java-ident-tests: New file.
43811         * modules/unictype/syntax-java-whitespace-tests: New file.
43812         * tests/unictype/test-bidi_byname.c: New file.
43813         * tests/unictype/test-bidi_name.c: New file.
43814         * tests/unictype/test-bidi_of.c: New file.
43815         * tests/unictype/test-bidi_test.c: New file.
43816         * tests/unictype/test-block_list.c: New file.
43817         * tests/unictype/test-block_of.c: New file.
43818         * tests/unictype/test-block_test.c: New file.
43819         * tests/unictype/test-categ_and.c: New file.
43820         * tests/unictype/test-categ_and_not.c: New file.
43821         * tests/unictype/test-categ_byname.c: New file.
43822         * tests/unictype/test-categ_name.c: New file.
43823         * tests/unictype/test-categ_none.c: New file.
43824         * tests/unictype/test-categ_of.c: New file.
43825         * tests/unictype/test-categ_or.c: New file.
43826         * tests/unictype/test-categ_test_withtable.c: New file.
43827         * tests/unictype/test-combining.c: New file.
43828         * tests/unictype/test-decdigit.c: New file.
43829         * tests/unictype/test-digit.c: New file.
43830         * tests/unictype/test-mirror.c: New file.
43831         * tests/unictype/test-numeric.c: New file.
43832         * tests/unictype/test-pr_byname.c: New file.
43833         * tests/unictype/test-pr_test.c: New file.
43834         * tests/unictype/test-predicate-part1.h: New file.
43835         * tests/unictype/test-predicate-part2.h: New file.
43836         * tests/unictype/test-scripts.c: New file.
43837         * tests/unictype/test-sy_c_ident.c: New file.
43838         * tests/unictype/test-sy_java_ident.c: New file.
43839
43840         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
43841         for Unicode 5.0.0.
43842         * tests/unictype/test-categ_Cc.c: Likewise.
43843         * tests/unictype/test-categ_Cf.c: Likewise.
43844         * tests/unictype/test-categ_Cn.c: Likewise.
43845         * tests/unictype/test-categ_Co.c: Likewise.
43846         * tests/unictype/test-categ_Cs.c: Likewise.
43847         * tests/unictype/test-categ_L.c: Likewise.
43848         * tests/unictype/test-categ_Ll.c: Likewise.
43849         * tests/unictype/test-categ_Lm.c: Likewise.
43850         * tests/unictype/test-categ_Lo.c: Likewise.
43851         * tests/unictype/test-categ_Lt.c: Likewise.
43852         * tests/unictype/test-categ_Lu.c: Likewise.
43853         * tests/unictype/test-categ_M.c: Likewise.
43854         * tests/unictype/test-categ_Mc.c: Likewise.
43855         * tests/unictype/test-categ_Me.c: Likewise.
43856         * tests/unictype/test-categ_Mn.c: Likewise.
43857         * tests/unictype/test-categ_N.c: Likewise.
43858         * tests/unictype/test-categ_Nd.c: Likewise.
43859         * tests/unictype/test-categ_Nl.c: Likewise.
43860         * tests/unictype/test-categ_No.c: Likewise.
43861         * tests/unictype/test-categ_P.c: Likewise.
43862         * tests/unictype/test-categ_Pc.c: Likewise.
43863         * tests/unictype/test-categ_Pd.c: Likewise.
43864         * tests/unictype/test-categ_Pe.c: Likewise.
43865         * tests/unictype/test-categ_Pf.c: Likewise.
43866         * tests/unictype/test-categ_Pi.c: Likewise.
43867         * tests/unictype/test-categ_Po.c: Likewise.
43868         * tests/unictype/test-categ_Ps.c: Likewise.
43869         * tests/unictype/test-categ_S.c: Likewise.
43870         * tests/unictype/test-categ_Sc.c: Likewise.
43871         * tests/unictype/test-categ_Sk.c: Likewise.
43872         * tests/unictype/test-categ_Sm.c: Likewise.
43873         * tests/unictype/test-categ_So.c: Likewise.
43874         * tests/unictype/test-categ_Z.c: Likewise.
43875         * tests/unictype/test-categ_Zl.c: Likewise.
43876         * tests/unictype/test-categ_Zp.c: Likewise.
43877         * tests/unictype/test-categ_Zs.c: Likewise.
43878         * tests/unictype/test-ctype_alnum.c: Likewise.
43879         * tests/unictype/test-ctype_alpha.c: Likewise.
43880         * tests/unictype/test-ctype_blank.c: Likewise.
43881         * tests/unictype/test-ctype_cntrl.c: Likewise.
43882         * tests/unictype/test-ctype_digit.c: Likewise.
43883         * tests/unictype/test-ctype_graph.c: Likewise.
43884         * tests/unictype/test-ctype_lower.c: Likewise.
43885         * tests/unictype/test-ctype_print.c: Likewise.
43886         * tests/unictype/test-ctype_punct.c: Likewise.
43887         * tests/unictype/test-ctype_space.c: Likewise.
43888         * tests/unictype/test-ctype_upper.c: Likewise.
43889         * tests/unictype/test-ctype_xdigit.c: Likewise.
43890         * tests/unictype/test-decdigit.h: Likewise.
43891         * tests/unictype/test-digit.h: Likewise.
43892         * tests/unictype/test-numeric.h: Likewise.
43893         * tests/unictype/test-pr_alphabetic.c: Likewise.
43894         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
43895         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
43896         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
43897         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
43898         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
43899         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
43900         * tests/unictype/test-pr_bidi_control.c: Likewise.
43901         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
43902         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
43903         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
43904         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
43905         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
43906         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
43907         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
43908         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
43909         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
43910         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
43911         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
43912         * tests/unictype/test-pr_combining.c: Likewise.
43913         * tests/unictype/test-pr_composite.c: Likewise.
43914         * tests/unictype/test-pr_currency_symbol.c: Likewise.
43915         * tests/unictype/test-pr_dash.c: Likewise.
43916         * tests/unictype/test-pr_decimal_digit.c: Likewise.
43917         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
43918         * tests/unictype/test-pr_deprecated.c: Likewise.
43919         * tests/unictype/test-pr_diacritic.c: Likewise.
43920         * tests/unictype/test-pr_extender.c: Likewise.
43921         * tests/unictype/test-pr_format_control.c: Likewise.
43922         * tests/unictype/test-pr_grapheme_base.c: Likewise.
43923         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
43924         * tests/unictype/test-pr_grapheme_link.c: Likewise.
43925         * tests/unictype/test-pr_hex_digit.c: Likewise.
43926         * tests/unictype/test-pr_hyphen.c: Likewise.
43927         * tests/unictype/test-pr_id_continue.c: Likewise.
43928         * tests/unictype/test-pr_id_start.c: Likewise.
43929         * tests/unictype/test-pr_ideographic.c: Likewise.
43930         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
43931         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
43932         * tests/unictype/test-pr_ignorable_control.c: Likewise.
43933         * tests/unictype/test-pr_iso_control.c: Likewise.
43934         * tests/unictype/test-pr_join_control.c: Likewise.
43935         * tests/unictype/test-pr_left_of_pair.c: Likewise.
43936         * tests/unictype/test-pr_line_separator.c: Likewise.
43937         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
43938         * tests/unictype/test-pr_lowercase.c: Likewise.
43939         * tests/unictype/test-pr_math.c: Likewise.
43940         * tests/unictype/test-pr_non_break.c: Likewise.
43941         * tests/unictype/test-pr_not_a_character.c: Likewise.
43942         * tests/unictype/test-pr_numeric.c: Likewise.
43943         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
43944         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
43945         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
43946         * tests/unictype/test-pr_other_id_continue.c: Likewise.
43947         * tests/unictype/test-pr_other_id_start.c: Likewise.
43948         * tests/unictype/test-pr_other_lowercase.c: Likewise.
43949         * tests/unictype/test-pr_other_math.c: Likewise.
43950         * tests/unictype/test-pr_other_uppercase.c: Likewise.
43951         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
43952         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
43953         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
43954         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
43955         * tests/unictype/test-pr_private_use.c: Likewise.
43956         * tests/unictype/test-pr_punctuation.c: Likewise.
43957         * tests/unictype/test-pr_quotation_mark.c: Likewise.
43958         * tests/unictype/test-pr_radical.c: Likewise.
43959         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
43960         * tests/unictype/test-pr_soft_dotted.c: Likewise.
43961         * tests/unictype/test-pr_space.c: Likewise.
43962         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
43963         * tests/unictype/test-pr_titlecase.c: Likewise.
43964         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
43965         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
43966         * tests/unictype/test-pr_uppercase.c: Likewise.
43967         * tests/unictype/test-pr_variation_selector.c: Likewise.
43968         * tests/unictype/test-pr_white_space.c: Likewise.
43969         * tests/unictype/test-pr_xid_continue.c: Likewise.
43970         * tests/unictype/test-pr_xid_start.c: Likewise.
43971         * tests/unictype/test-pr_zero_width.c: Likewise.
43972         * tests/unictype/test-sy_c_whitespace.c: Likewise.
43973         * tests/unictype/test-sy_java_whitespace.c: Likewise.
43974
43975 2007-11-12  Bruno Haible  <bruno@clisp.org>
43976
43977         Unicode character classification functions.
43978         * lib/unictype.h: New file.
43979         * modules/unictype/base: New file.
43980         * modules/unictype/category-L: New file.
43981         * modules/unictype/category-Lu: New file.
43982         * modules/unictype/category-Ll: New file.
43983         * modules/unictype/category-Lt: New file.
43984         * modules/unictype/category-Lm: New file.
43985         * modules/unictype/category-Lo: New file.
43986         * modules/unictype/category-M: New file.
43987         * modules/unictype/category-Mn: New file.
43988         * modules/unictype/category-Mc: New file.
43989         * modules/unictype/category-Me: New file.
43990         * modules/unictype/category-N: New file.
43991         * modules/unictype/category-Nd: New file.
43992         * modules/unictype/category-Nl: New file.
43993         * modules/unictype/category-No: New file.
43994         * modules/unictype/category-P: New file.
43995         * modules/unictype/category-Pc: New file.
43996         * modules/unictype/category-Pd: New file.
43997         * modules/unictype/category-Ps: New file.
43998         * modules/unictype/category-Pe: New file.
43999         * modules/unictype/category-Pi: New file.
44000         * modules/unictype/category-Pf: New file.
44001         * modules/unictype/category-Po: New file.
44002         * modules/unictype/category-S: New file.
44003         * modules/unictype/category-Sm: New file.
44004         * modules/unictype/category-Sc: New file.
44005         * modules/unictype/category-Sk: New file.
44006         * modules/unictype/category-So: New file.
44007         * modules/unictype/category-Z: New file.
44008         * modules/unictype/category-Zs: New file.
44009         * modules/unictype/category-Zl: New file.
44010         * modules/unictype/category-Zp: New file.
44011         * modules/unictype/category-C: New file.
44012         * modules/unictype/category-Cc: New file.
44013         * modules/unictype/category-Cf: New file.
44014         * modules/unictype/category-Cs: New file.
44015         * modules/unictype/category-Co: New file.
44016         * modules/unictype/category-Cn: New file.
44017         * modules/unictype/category-or: New file.
44018         * modules/unictype/category-of: New file.
44019         * modules/unictype/category-test: New file.
44020         * modules/unictype/category-test-withtable: New file.
44021         * modules/unictype/category-byname: New file.
44022         * modules/unictype/category-none: New file.
44023         * modules/unictype/category-and: New file.
44024         * modules/unictype/category-and-not: New file.
44025         * modules/unictype/category-name: New file.
44026         * modules/unictype/combining-class: New file.
44027         * modules/unictype/category-all: New file.
44028         * modules/unictype/bidicategory-all: New file.
44029         * modules/unictype/bidicategory-byname: New file.
44030         * modules/unictype/bidicategory-name: New file.
44031         * modules/unictype/bidicategory-of: New file.
44032         * modules/unictype/bidicategory-test: New file.
44033         * modules/unictype/decimal-digit: New file.
44034         * modules/unictype/digit: New file.
44035         * modules/unictype/numeric: New file.
44036         * modules/unictype/mirror: New file.
44037         * modules/unictype/property-white-space: New file.
44038         * modules/unictype/property-alphabetic: New file.
44039         * modules/unictype/property-other-alphabetic: New file.
44040         * modules/unictype/property-not-a-character: New file.
44041         * modules/unictype/property-default-ignorable-code-point: New file.
44042         * modules/unictype/property-other-default-ignorable-code-point: New
44043         file.
44044         * modules/unictype/property-deprecated: New file.
44045         * modules/unictype/property-logical-order-exception: New file.
44046         * modules/unictype/property-variation-selector: New file.
44047         * modules/unictype/property-private-use: New file.
44048         * modules/unictype/property-unassigned-code-value: New file.
44049         * modules/unictype/property-uppercase: New file.
44050         * modules/unictype/property-other-uppercase: New file.
44051         * modules/unictype/property-lowercase: New file.
44052         * modules/unictype/property-other-lowercase: New file.
44053         * modules/unictype/property-titlecase: New file.
44054         * modules/unictype/property-soft-dotted: New file.
44055         * modules/unictype/property-id-start: New file.
44056         * modules/unictype/property-other-id-start: New file.
44057         * modules/unictype/property-id-continue: New file.
44058         * modules/unictype/property-other-id-continue: New file.
44059         * modules/unictype/property-xid-start: New file.
44060         * modules/unictype/property-xid-continue: New file.
44061         * modules/unictype/property-pattern-white-space: New file.
44062         * modules/unictype/property-pattern-syntax: New file.
44063         * modules/unictype/property-join-control: New file.
44064         * modules/unictype/property-grapheme-base: New file.
44065         * modules/unictype/property-grapheme-extend: New file.
44066         * modules/unictype/property-other-grapheme-extend: New file.
44067         * modules/unictype/property-grapheme-link: New file.
44068         * modules/unictype/property-bidi-control: New file.
44069         * modules/unictype/property-bidi-left-to-right: New file.
44070         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
44071         * modules/unictype/property-bidi-arabic-right-to-left: New file.
44072         * modules/unictype/property-bidi-european-digit: New file.
44073         * modules/unictype/property-bidi-eur-num-separator: New file.
44074         * modules/unictype/property-bidi-eur-num-terminator: New file.
44075         * modules/unictype/property-bidi-arabic-digit: New file.
44076         * modules/unictype/property-bidi-common-separator: New file.
44077         * modules/unictype/property-bidi-block-separator: New file.
44078         * modules/unictype/property-bidi-segment-separator: New file.
44079         * modules/unictype/property-bidi-whitespace: New file.
44080         * modules/unictype/property-bidi-non-spacing-mark: New file.
44081         * modules/unictype/property-bidi-boundary-neutral: New file.
44082         * modules/unictype/property-bidi-pdf: New file.
44083         * modules/unictype/property-bidi-embedding-or-override: New file.
44084         * modules/unictype/property-bidi-other-neutral: New file.
44085         * modules/unictype/property-hex-digit: New file.
44086         * modules/unictype/property-ascii-hex-digit: New file.
44087         * modules/unictype/property-ideographic: New file.
44088         * modules/unictype/property-unified-ideograph: New file.
44089         * modules/unictype/property-radical: New file.
44090         * modules/unictype/property-ids-binary-operator: New file.
44091         * modules/unictype/property-ids-trinary-operator: New file.
44092         * modules/unictype/property-zero-width: New file.
44093         * modules/unictype/property-space: New file.
44094         * modules/unictype/property-non-break: New file.
44095         * modules/unictype/property-iso-control: New file.
44096         * modules/unictype/property-format-control: New file.
44097         * modules/unictype/property-dash: New file.
44098         * modules/unictype/property-hyphen: New file.
44099         * modules/unictype/property-punctuation: New file.
44100         * modules/unictype/property-line-separator: New file.
44101         * modules/unictype/property-paragraph-separator: New file.
44102         * modules/unictype/property-quotation-mark: New file.
44103         * modules/unictype/property-sentence-terminal: New file.
44104         * modules/unictype/property-terminal-punctuation: New file.
44105         * modules/unictype/property-currency-symbol: New file.
44106         * modules/unictype/property-math: New file.
44107         * modules/unictype/property-other-math: New file.
44108         * modules/unictype/property-paired-punctuation: New file.
44109         * modules/unictype/property-left-of-pair: New file.
44110         * modules/unictype/property-combining: New file.
44111         * modules/unictype/property-composite: New file.
44112         * modules/unictype/property-decimal-digit: New file.
44113         * modules/unictype/property-numeric: New file.
44114         * modules/unictype/property-diacritic: New file.
44115         * modules/unictype/property-extender: New file.
44116         * modules/unictype/property-ignorable-control: New file.
44117         * modules/unictype/property-test: New file.
44118         * modules/unictype/property-byname: New file.
44119         * modules/unictype/property-all: New file.
44120         * modules/unictype/scripts: New file.
44121         * modules/unictype/scripts-all: New file.
44122         * modules/unictype/block-of: New file.
44123         * modules/unictype/block-test: New file.
44124         * modules/unictype/block-list: New file.
44125         * modules/unictype/block-all: New file.
44126         * modules/unictype/syntax-c-whitespace: New file.
44127         * modules/unictype/syntax-java-whitespace: New file.
44128         * modules/unictype/syntax-c-ident: New file.
44129         * modules/unictype/syntax-java-ident: New file.
44130         * modules/unictype/ctype-alnum: New file.
44131         * modules/unictype/ctype-alpha: New file.
44132         * modules/unictype/ctype-cntrl: New file.
44133         * modules/unictype/ctype-digit: New file.
44134         * modules/unictype/ctype-graph: New file.
44135         * modules/unictype/ctype-lower: New file.
44136         * modules/unictype/ctype-print: New file.
44137         * modules/unictype/ctype-punct: New file.
44138         * modules/unictype/ctype-space: New file.
44139         * modules/unictype/ctype-upper: New file.
44140         * modules/unictype/ctype-xdigit: New file.
44141         * modules/unictype/ctype-blank: New file.
44142         * lib/unictype/bidi_byname.c: New file.
44143         * lib/unictype/bidi_name.c: New file.
44144         * lib/unictype/bidi_of.c: New file.
44145         * lib/unictype/bidi_test.c: New file.
44146         * lib/unictype/bitmap.h: New file.
44147         * lib/unictype/block_test.c: New file.
44148         * lib/unictype/blocks.c: New file.
44149         * lib/unictype/categ_C.c: New file.
44150         * lib/unictype/categ_Cc.c: New file.
44151         * lib/unictype/categ_Cf.c: New file.
44152         * lib/unictype/categ_Cn.c: New file.
44153         * lib/unictype/categ_Co.c: New file.
44154         * lib/unictype/categ_Cs.c: New file.
44155         * lib/unictype/categ_L.c: New file.
44156         * lib/unictype/categ_Ll.c: New file.
44157         * lib/unictype/categ_Lm.c: New file.
44158         * lib/unictype/categ_Lo.c: New file.
44159         * lib/unictype/categ_Lt.c: New file.
44160         * lib/unictype/categ_Lu.c: New file.
44161         * lib/unictype/categ_M.c: New file.
44162         * lib/unictype/categ_Mc.c: New file.
44163         * lib/unictype/categ_Me.c: New file.
44164         * lib/unictype/categ_Mn.c: New file.
44165         * lib/unictype/categ_N.c: New file.
44166         * lib/unictype/categ_Nd.c: New file.
44167         * lib/unictype/categ_Nl.c: New file.
44168         * lib/unictype/categ_No.c: New file.
44169         * lib/unictype/categ_P.c: New file.
44170         * lib/unictype/categ_Pc.c: New file.
44171         * lib/unictype/categ_Pd.c: New file.
44172         * lib/unictype/categ_Pe.c: New file.
44173         * lib/unictype/categ_Pf.c: New file.
44174         * lib/unictype/categ_Pi.c: New file.
44175         * lib/unictype/categ_Po.c: New file.
44176         * lib/unictype/categ_Ps.c: New file.
44177         * lib/unictype/categ_S.c: New file.
44178         * lib/unictype/categ_Sc.c: New file.
44179         * lib/unictype/categ_Sk.c: New file.
44180         * lib/unictype/categ_Sm.c: New file.
44181         * lib/unictype/categ_So.c: New file.
44182         * lib/unictype/categ_Z.c: New file.
44183         * lib/unictype/categ_Zl.c: New file.
44184         * lib/unictype/categ_Zp.c: New file.
44185         * lib/unictype/categ_Zs.c: New file.
44186         * lib/unictype/categ_and.c: New file.
44187         * lib/unictype/categ_and_not.c: New file.
44188         * lib/unictype/categ_byname.c: New file.
44189         * lib/unictype/categ_name.c: New file.
44190         * lib/unictype/categ_none.c: New file.
44191         * lib/unictype/categ_of.c: New file.
44192         * lib/unictype/categ_or.c: New file.
44193         * lib/unictype/categ_test.c: New file.
44194         * lib/unictype/combining.c: New file.
44195         * lib/unictype/ctype_alnum.c: New file.
44196         * lib/unictype/ctype_alpha.c: New file.
44197         * lib/unictype/ctype_blank.c: New file.
44198         * lib/unictype/ctype_cntrl.c: New file.
44199         * lib/unictype/ctype_digit.c: New file.
44200         * lib/unictype/ctype_graph.c: New file.
44201         * lib/unictype/ctype_lower.c: New file.
44202         * lib/unictype/ctype_print.c: New file.
44203         * lib/unictype/ctype_punct.c: New file.
44204         * lib/unictype/ctype_space.c: New file.
44205         * lib/unictype/ctype_upper.c: New file.
44206         * lib/unictype/ctype_xdigit.c: New file.
44207         * lib/unictype/decdigit.c: New file.
44208         * lib/unictype/digit.c: New file.
44209         * lib/unictype/identsyntaxmap.h: New file.
44210         * lib/unictype/mirror.c: New file.
44211         * lib/unictype/numeric.c: New file.
44212         * lib/unictype/pr_alphabetic.c: New file.
44213         * lib/unictype/pr_ascii_hex_digit.c: New file.
44214         * lib/unictype/pr_bidi_arabic_digit.c: New file.
44215         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
44216         * lib/unictype/pr_bidi_block_separator.c: New file.
44217         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
44218         * lib/unictype/pr_bidi_common_separator.c: New file.
44219         * lib/unictype/pr_bidi_control.c: New file.
44220         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
44221         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
44222         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
44223         * lib/unictype/pr_bidi_european_digit.c: New file.
44224         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
44225         * lib/unictype/pr_bidi_left_to_right.c: New file.
44226         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
44227         * lib/unictype/pr_bidi_other_neutral.c: New file.
44228         * lib/unictype/pr_bidi_pdf.c: New file.
44229         * lib/unictype/pr_bidi_segment_separator.c: New file.
44230         * lib/unictype/pr_bidi_whitespace.c: New file.
44231         * lib/unictype/pr_byname.c: New file.
44232         * lib/unictype/pr_byname.gperf: New file.
44233         * lib/unictype/pr_combining.c: New file.
44234         * lib/unictype/pr_composite.c: New file.
44235         * lib/unictype/pr_currency_symbol.c: New file.
44236         * lib/unictype/pr_dash.c: New file.
44237         * lib/unictype/pr_decimal_digit.c: New file.
44238         * lib/unictype/pr_default_ignorable_code_point.c: New file.
44239         * lib/unictype/pr_deprecated.c: New file.
44240         * lib/unictype/pr_diacritic.c: New file.
44241         * lib/unictype/pr_extender.c: New file.
44242         * lib/unictype/pr_format_control.c: New file.
44243         * lib/unictype/pr_grapheme_base.c: New file.
44244         * lib/unictype/pr_grapheme_extend.c: New file.
44245         * lib/unictype/pr_grapheme_link.c: New file.
44246         * lib/unictype/pr_hex_digit.c: New file.
44247         * lib/unictype/pr_hyphen.c: New file.
44248         * lib/unictype/pr_id_continue.c: New file.
44249         * lib/unictype/pr_id_start.c: New file.
44250         * lib/unictype/pr_ideographic.c: New file.
44251         * lib/unictype/pr_ids_binary_operator.c: New file.
44252         * lib/unictype/pr_ids_trinary_operator.c: New file.
44253         * lib/unictype/pr_ignorable_control.c: New file.
44254         * lib/unictype/pr_iso_control.c: New file.
44255         * lib/unictype/pr_join_control.c: New file.
44256         * lib/unictype/pr_left_of_pair.c: New file.
44257         * lib/unictype/pr_line_separator.c: New file.
44258         * lib/unictype/pr_logical_order_exception.c: New file.
44259         * lib/unictype/pr_lowercase.c: New file.
44260         * lib/unictype/pr_math.c: New file.
44261         * lib/unictype/pr_non_break.c: New file.
44262         * lib/unictype/pr_not_a_character.c: New file.
44263         * lib/unictype/pr_numeric.c: New file.
44264         * lib/unictype/pr_other_alphabetic.c: New file.
44265         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
44266         * lib/unictype/pr_other_grapheme_extend.c: New file.
44267         * lib/unictype/pr_other_id_continue.c: New file.
44268         * lib/unictype/pr_other_id_start.c: New file.
44269         * lib/unictype/pr_other_lowercase.c: New file.
44270         * lib/unictype/pr_other_math.c: New file.
44271         * lib/unictype/pr_other_uppercase.c: New file.
44272         * lib/unictype/pr_paired_punctuation.c: New file.
44273         * lib/unictype/pr_paragraph_separator.c: New file.
44274         * lib/unictype/pr_pattern_syntax.c: New file.
44275         * lib/unictype/pr_pattern_white_space.c: New file.
44276         * lib/unictype/pr_private_use.c: New file.
44277         * lib/unictype/pr_punctuation.c: New file.
44278         * lib/unictype/pr_quotation_mark.c: New file.
44279         * lib/unictype/pr_radical.c: New file.
44280         * lib/unictype/pr_sentence_terminal.c: New file.
44281         * lib/unictype/pr_soft_dotted.c: New file.
44282         * lib/unictype/pr_space.c: New file.
44283         * lib/unictype/pr_terminal_punctuation.c: New file.
44284         * lib/unictype/pr_test.c: New file.
44285         * lib/unictype/pr_titlecase.c: New file.
44286         * lib/unictype/pr_unassigned_code_value.c: New file.
44287         * lib/unictype/pr_unified_ideograph.c: New file.
44288         * lib/unictype/pr_uppercase.c: New file.
44289         * lib/unictype/pr_variation_selector.c: New file.
44290         * lib/unictype/pr_white_space.c: New file.
44291         * lib/unictype/pr_xid_continue.c: New file.
44292         * lib/unictype/pr_xid_start.c: New file.
44293         * lib/unictype/pr_zero_width.c: New file.
44294         * lib/unictype/scripts.c: New file.
44295         * lib/unictype/sy_c_ident.c: New file.
44296         * lib/unictype/sy_c_whitespace.c: New file.
44297         * lib/unictype/sy_java_ident.c: New file.
44298         * lib/unictype/sy_java_whitespace.c: New file.
44299
44300         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
44301         Unicode 5.0.0.
44302         * lib/unictype/blocks.h: Likewise.
44303         * lib/unictype/categ_C.h: Likewise.
44304         * lib/unictype/categ_Cc.h: Likewise.
44305         * lib/unictype/categ_Cf.h: Likewise.
44306         * lib/unictype/categ_Cn.h: Likewise.
44307         * lib/unictype/categ_Co.h: Likewise.
44308         * lib/unictype/categ_Cs.h: Likewise.
44309         * lib/unictype/categ_L.h: Likewise.
44310         * lib/unictype/categ_Ll.h: Likewise.
44311         * lib/unictype/categ_Lm.h: Likewise.
44312         * lib/unictype/categ_Lo.h: Likewise.
44313         * lib/unictype/categ_Lt.h: Likewise.
44314         * lib/unictype/categ_Lu.h: Likewise.
44315         * lib/unictype/categ_M.h: Likewise.
44316         * lib/unictype/categ_Mc.h: Likewise.
44317         * lib/unictype/categ_Me.h: Likewise.
44318         * lib/unictype/categ_Mn.h: Likewise.
44319         * lib/unictype/categ_N.h: Likewise.
44320         * lib/unictype/categ_Nd.h: Likewise.
44321         * lib/unictype/categ_Nl.h: Likewise.
44322         * lib/unictype/categ_No.h: Likewise.
44323         * lib/unictype/categ_P.h: Likewise.
44324         * lib/unictype/categ_Pc.h: Likewise.
44325         * lib/unictype/categ_Pd.h: Likewise.
44326         * lib/unictype/categ_Pe.h: Likewise.
44327         * lib/unictype/categ_Pf.h: Likewise.
44328         * lib/unictype/categ_Pi.h: Likewise.
44329         * lib/unictype/categ_Po.h: Likewise.
44330         * lib/unictype/categ_Ps.h: Likewise.
44331         * lib/unictype/categ_S.h: Likewise.
44332         * lib/unictype/categ_Sc.h: Likewise.
44333         * lib/unictype/categ_Sk.h: Likewise.
44334         * lib/unictype/categ_Sm.h: Likewise.
44335         * lib/unictype/categ_So.h: Likewise.
44336         * lib/unictype/categ_Z.h: Likewise.
44337         * lib/unictype/categ_Zl.h: Likewise.
44338         * lib/unictype/categ_Zp.h: Likewise.
44339         * lib/unictype/categ_Zs.h: Likewise.
44340         * lib/unictype/categ_of.h: Likewise.
44341         * lib/unictype/combining.h: Likewise.
44342         * lib/unictype/ctype_alnum.h: Likewise.
44343         * lib/unictype/ctype_alpha.h: Likewise.
44344         * lib/unictype/ctype_blank.h: Likewise.
44345         * lib/unictype/ctype_cntrl.h: Likewise.
44346         * lib/unictype/ctype_digit.h: Likewise.
44347         * lib/unictype/ctype_graph.h: Likewise.
44348         * lib/unictype/ctype_lower.h: Likewise.
44349         * lib/unictype/ctype_print.h: Likewise.
44350         * lib/unictype/ctype_punct.h: Likewise.
44351         * lib/unictype/ctype_space.h: Likewise.
44352         * lib/unictype/ctype_upper.h: Likewise.
44353         * lib/unictype/ctype_xdigit.h: Likewise.
44354         * lib/unictype/decdigit.h: Likewise.
44355         * lib/unictype/digit.h: Likewise.
44356         * lib/unictype/mirror.h: Likewise.
44357         * lib/unictype/numeric.h: Likewise.
44358         * lib/unictype/pr_alphabetic.h: Likewise.
44359         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44360         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44361         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44362         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44363         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44364         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44365         * lib/unictype/pr_bidi_control.h: Likewise.
44366         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44367         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44368         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44369         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44370         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44371         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44372         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44373         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44374         * lib/unictype/pr_bidi_pdf.h: Likewise.
44375         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44376         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44377         * lib/unictype/pr_combining.h: Likewise.
44378         * lib/unictype/pr_composite.h: Likewise.
44379         * lib/unictype/pr_currency_symbol.h: Likewise.
44380         * lib/unictype/pr_dash.h: Likewise.
44381         * lib/unictype/pr_decimal_digit.h: Likewise.
44382         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44383         * lib/unictype/pr_deprecated.h: Likewise.
44384         * lib/unictype/pr_diacritic.h: Likewise.
44385         * lib/unictype/pr_extender.h: Likewise.
44386         * lib/unictype/pr_format_control.h: Likewise.
44387         * lib/unictype/pr_grapheme_base.h: Likewise.
44388         * lib/unictype/pr_grapheme_extend.h: Likewise.
44389         * lib/unictype/pr_grapheme_link.h: Likewise.
44390         * lib/unictype/pr_hex_digit.h: Likewise.
44391         * lib/unictype/pr_hyphen.h: Likewise.
44392         * lib/unictype/pr_id_continue.h: Likewise.
44393         * lib/unictype/pr_id_start.h: Likewise.
44394         * lib/unictype/pr_ideographic.h: Likewise.
44395         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44396         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44397         * lib/unictype/pr_ignorable_control.h: Likewise.
44398         * lib/unictype/pr_iso_control.h: Likewise.
44399         * lib/unictype/pr_join_control.h: Likewise.
44400         * lib/unictype/pr_left_of_pair.h: Likewise.
44401         * lib/unictype/pr_line_separator.h: Likewise.
44402         * lib/unictype/pr_logical_order_exception.h: Likewise.
44403         * lib/unictype/pr_lowercase.h: Likewise.
44404         * lib/unictype/pr_math.h: Likewise.
44405         * lib/unictype/pr_non_break.h: Likewise.
44406         * lib/unictype/pr_not_a_character.h: Likewise.
44407         * lib/unictype/pr_numeric.h: Likewise.
44408         * lib/unictype/pr_other_alphabetic.h: Likewise.
44409         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44410         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44411         * lib/unictype/pr_other_id_continue.h: Likewise.
44412         * lib/unictype/pr_other_id_start.h: Likewise.
44413         * lib/unictype/pr_other_lowercase.h: Likewise.
44414         * lib/unictype/pr_other_math.h: Likewise.
44415         * lib/unictype/pr_other_uppercase.h: Likewise.
44416         * lib/unictype/pr_paired_punctuation.h: Likewise.
44417         * lib/unictype/pr_paragraph_separator.h: Likewise.
44418         * lib/unictype/pr_pattern_syntax.h: Likewise.
44419         * lib/unictype/pr_pattern_white_space.h: Likewise.
44420         * lib/unictype/pr_private_use.h: Likewise.
44421         * lib/unictype/pr_punctuation.h: Likewise.
44422         * lib/unictype/pr_quotation_mark.h: Likewise.
44423         * lib/unictype/pr_radical.h: Likewise.
44424         * lib/unictype/pr_sentence_terminal.h: Likewise.
44425         * lib/unictype/pr_soft_dotted.h: Likewise.
44426         * lib/unictype/pr_space.h: Likewise.
44427         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44428         * lib/unictype/pr_titlecase.h: Likewise.
44429         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44430         * lib/unictype/pr_unified_ideograph.h: Likewise.
44431         * lib/unictype/pr_uppercase.h: Likewise.
44432         * lib/unictype/pr_variation_selector.h: Likewise.
44433         * lib/unictype/pr_white_space.h: Likewise.
44434         * lib/unictype/pr_xid_continue.h: Likewise.
44435         * lib/unictype/pr_xid_start.h: Likewise.
44436         * lib/unictype/pr_zero_width.h: Likewise.
44437         * lib/unictype/scripts.h: Likewise.
44438         * lib/unictype/scripts_byname.gperf: Likewise.
44439         * lib/unictype/sy_c_ident.h: Likewise.
44440         * lib/unictype/sy_c_whitespace.h: Likewise.
44441         * lib/unictype/sy_java_ident.h: Likewise.
44442         * lib/unictype/sy_java_whitespace.h: Likewise.
44443
44444         * lib/unictype/Makefile: New file.
44445         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
44446         glibc.
44447         * lib/unictype/3level.h: New file, copied from glibc.
44448         * lib/unictype/3levelbit.h: New file.
44449
44450 2007-11-11  Bruno Haible  <bruno@clisp.org>
44451
44452         * modules/gperf: New file.
44453         * modules/iconv_open (Depends-on): Add it.
44454         (Makefile.am): Remove the GPERF definition.
44455
44456 2007-11-11  Bruno Haible  <bruno@clisp.org>
44457
44458         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
44459         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
44460
44461 2007-11-11  Bruno Haible  <bruno@clisp.org>
44462
44463         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
44464         (usage): Remove function.
44465
44466 2007-11-11  Bruno Haible  <bruno@clisp.org>
44467
44468         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
44469         gl_FUNC_CEILF_LIBS.
44470         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
44471         gl_FUNC_CEIL_LIBS.
44472         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
44473         gl_FUNC_CEILL_LIBS.
44474         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
44475         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
44476         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
44477
44478 2007-11-11  Bruno Haible  <bruno@clisp.org>
44479
44480         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
44481         roundf were declared but do not exist on functions.
44482         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
44483         roundl were declared but do not exist on functions.
44484         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
44485         HAVE_FLOORL_AND_CEILL, respectively.
44486         Needed for Sun C on Solaris 10.
44487
44488 2007-11-11  Bruno Haible  <bruno@clisp.org>
44489
44490         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
44491         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
44492         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
44493         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
44494         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
44495         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
44496         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
44497         HAVE_DECL_ROUNDF.
44498         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
44499         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
44500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
44501         of HAVE_DECL_ROUND*.
44502         * modules/math (Makefile.am): Update.
44503
44504 2007-11-10  Bruno Haible  <bruno@clisp.org>
44505
44506         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
44507         ptrdiff_t as m4/intl.m4.
44508
44509 2007-11-10  Jim Meyering  <meyering@redhat.com>
44510
44511         Avoid link failure for the argmatch test.
44512         * tests/test-argmatch.c (usage): Define function to avoid a link
44513         failure: argmatch_die requires a usage function.
44514
44515 2007-11-09  Bruno Haible  <bruno@clisp.org>
44516
44517         * doc/functions/snprintf.texi: Mention BeOS deficiency.
44518         * doc/functions/vsnprintf.texi: Likewise.
44519         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
44520         with a size argument < 2.
44521
44522 2007-11-09  Bruno Haible  <bruno@clisp.org>
44523
44524         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
44525         buffer. Fixes an inefficiency introduced on 2007-11-03.
44526
44527 2007-11-09  Bruno Haible  <bruno@clisp.org>
44528
44529         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
44530         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
44531
44532 2007-11-08  Jim Meyering  <meyering@redhat.com>
44533
44534         Change cache variable name prefix "jm_" to "gl_" everywhere.
44535         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
44536         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
44537         * m4/uptime.m4: s/gl_/jm_/
44538
44539 2007-11-07  Bruno Haible  <bruno@clisp.org>
44540
44541         Update to GNU gettext 0.17.
44542         * m4/intl.m4: Update to GNU gettext 0.17.
44543         * m4/po.m4: Likewise.
44544         * modules/gettext (Files): Remove m4/ulonglong.m4.
44545         (configure.ac): Require gettext infrastructure from version 0.17.
44546
44547 2007-11-06  Bruno Haible  <bruno@clisp.org>
44548
44549         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
44550         symbolic values are not defined in a public header.
44551         * lib/freadable.c (freadable) [QNX]: Likewise.
44552         * lib/freadahead.c (freadahead) [QNX]: Likewise.
44553         * lib/freading.c (freading) [QNX]: Likewise.
44554         * lib/fseterr.c (fseterr) [QNX]: Likewise.
44555         * lib/fwritable.c (fwritable) [QNX]: Likewise.
44556         * lib/fwriting.c (fwriting) [QNX]: Likewise.
44557         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
44558         Reported by Alain Magloire.
44559
44560         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
44561
44562 2007-11-05  Bruno Haible  <bruno@clisp.org>
44563
44564         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
44565         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
44566         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
44567         Reported by Eric Blake.
44568
44569 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44570             Bruno Haible  <bruno@clisp.org>
44571
44572         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
44573         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
44574         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
44575         (malloc): Undefine also before including <stdlib.h>.
44576         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
44577         Needed on OSF/1 4.0.
44578
44579 2007-11-05  Jim Meyering  <meyering@redhat.com>
44580
44581         git-version-gen: sync from coreutils.
44582         * build-aux/git-version-gen: Add comments.
44583         Change the first '-' to '.' in the snapshot version string,
44584         e.g., 6.9-377-08144 -> 6.9.377-08144
44585         Remove first parameter.
44586         Don't declare a version "-dirty" merely because a time
44587         stamp has changed.
44588
44589 2007-11-04  Bruno Haible  <bruno@clisp.org>
44590
44591         * lib/lock.h: Protect all macro definitions containing an 'if'
44592         statement through a "do { ... } while (0)".
44593         * lib/tls.h: Likewise.
44594
44595 2007-11-04  Bruno Haible  <bruno@clisp.org>
44596
44597         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
44598
44599 2007-11-04  Bruno Haible  <bruno@clisp.org>
44600
44601         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
44602         * modules/fprintf-posix (Depends-on): Add nocrash.
44603         * modules/snprintf-posix (Depends-on): Likewise.
44604         * modules/sprintf-posix (Depends-on): Likewise.
44605         * modules/vasnprintf-posix (Depends-on): Likewise.
44606         * modules/vasprintf-posix (Depends-on): Likewise.
44607         * modules/vfprintf-posix (Depends-on): Likewise.
44608         * modules/vsnprintf-posix (Depends-on): Likewise.
44609         * modules/vsprintf-posix (Depends-on): Likewise.
44610         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44611         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44612         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44613         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44614         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44615         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44616         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44617
44618 2007-11-04  Bruno Haible  <bruno@clisp.org>
44619
44620         * modules/nocrash: New file.
44621         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
44622         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
44623
44624 2007-11-04  Bruno Haible  <bruno@clisp.org>
44625
44626         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
44627         precision handling.
44628         * tests/test-vasprintf-posix.c (test_function): Likewise.
44629         * tests/test-snprintf-posix.h (test_function): Likewise.
44630         * tests/test-sprintf-posix.h (test_function): Likewise.
44631
44632         Fix *printf behaviour for large precisions on mingw and BeOS.
44633         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
44634         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
44635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
44636         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44637         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44638         gl_PRINTF_PRECISION and test its result. Invoke
44639         gl_PREREQ_VASNPRINTF_PRECISION.
44640         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44641         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44642         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44643         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44644         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44645         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44646         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44647         * doc/functions/fprintf.texi: Update.
44648         * doc/functions/printf.texi: Update.
44649         * doc/functions/snprintf.texi: Update.
44650         * doc/functions/sprintf.texi: Update.
44651         * doc/functions/vfprintf.texi: Update.
44652         * doc/functions/vprintf.texi: Update.
44653         * doc/functions/vsnprintf.texi: Update.
44654         * doc/functions/vsprintf.texi: Update.
44655
44656 2007-11-04  Bruno Haible  <bruno@clisp.org>
44657
44658         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
44659
44660 2007-11-04  Bruno Haible  <bruno@clisp.org>
44661
44662         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
44663         Reported by Sylvain Beucler <beuc@gnu.org>.
44664
44665 2007-11-03  Bruno Haible  <bruno@clisp.org>
44666
44667         * tests/test-fprintf-posix2.sh: New file.
44668         * tests/test-fprintf-posix2.c: New file.
44669         * modules/fprintf-posix-tests (Files): Add them.
44670         (TESTS): Add test-fprintf-posix2.sh.
44671         (configure.ac): Check for getrlimit and setrlimit.
44672         (check_PROGRAMS): Add test-fprintf-posix2.
44673
44674         * tests/test-printf-posix2.sh: New file.
44675         * tests/test-printf-posix2.c: New file.
44676         * modules/printf-posix-tests (Files): Add them.
44677         (TESTS): Add test-printf-posix2.sh.
44678         (configure.ac): Check for getrlimit and setrlimit.
44679         (check_PROGRAMS): Add test-printf-posix2.
44680
44681         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
44682         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
44683         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
44684         (decode_double): New function, copied from decode_long_double.
44685         (scale10_round_decimal_decoded): New function, extracted from
44686         scale10_round_decimal_long_double.
44687         (scale10_round_decimal_long_double): Use it.
44688         (scale10_round_decimal_double): New function.
44689         (floorlog10): New function.
44690         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
44691         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
44692         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44693         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44694         gl_PRINTF_ENOMEM and test its result. Invoke
44695         gl_PREREQ_VASNPRINTF_ENOMEM.
44696         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44697         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44698         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44699         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44700         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44701         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44702         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44703         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
44704         * modules/snprintf-posix (Depends-on): Likewise.
44705         * modules/sprintf-posix (Depends-on): Likewise.
44706         * modules/vasnprintf-posix (Depends-on): Likewise.
44707         * modules/vasprintf-posix (Depends-on): Likewise.
44708         * modules/vfprintf-posix (Depends-on): Likewise.
44709         * modules/vsnprintf-posix (Depends-on): Likewise.
44710         * modules/vsprintf-posix (Depends-on): Likewise.
44711         * doc/functions/fprintf.texi: Update.
44712         * doc/functions/printf.texi: Update.
44713         * doc/functions/snprintf.texi: Update.
44714         * doc/functions/sprintf.texi: Update.
44715         * doc/functions/vfprintf.texi: Update.
44716         * doc/functions/vprintf.texi: Update.
44717         * doc/functions/vsnprintf.texi: Update.
44718         * doc/functions/vsprintf.texi: Update.
44719
44720 2007-11-03  Bruno Haible  <bruno@clisp.org>
44721
44722         * modules/frexp-nolibm-tests: New file.
44723
44724         * modules/frexp-nolibm: New file.
44725         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
44726
44727 2007-11-03  Bruno Haible  <bruno@clisp.org>
44728
44729         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
44730         value is C99 compliant.
44731         Needed for OSF/1 5.1.
44732
44733 2007-11-03  Bruno Haible  <bruno@clisp.org>
44734
44735         Fix out-of-memory handling of vasnprintf.
44736         * lib/printf-parse.c: Include <errno.h>.
44737         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
44738         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
44739         is already set.
44740
44741 2007-11-02  Eric Blake  <ebb9@byu.net>
44742
44743         Fix tests on cygwin.
44744         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
44745
44746 2007-11-01  Bruno Haible  <bruno@clisp.org>
44747
44748         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
44749         warning.
44750         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
44751         needed for POSIX compatibility.
44752
44753 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44754
44755         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
44756         for compatibility with GNU.
44757
44758 2007-11-01  Bruno Haible  <bruno@clisp.org>
44759
44760         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
44761         (putenv): Renamed from rpl_putenv. Change argument type from
44762         'const char *' to 'char *'.
44763         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
44764         of defining putenv in config.h, just set REPLACE_PUTENV.
44765         * modules/putenv (Depends-on): Add stdlib.
44766         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44767         (Include): Use <stdlib.h>.
44768         * lib/stdlib.in.h (putenv): New declaration.
44769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
44770         REPLACE_PUTENV.
44771         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
44772         REPLACE_PUTENV.
44773         Needed for MacOS X 10.5.0.
44774         Reported by Peter O'Gorman <peter@pogma.com>.
44775
44776 2007-11-01  Jim Meyering  <meyering@redhat.com>
44777
44778         Treat an empty date string exactly like "0".
44779         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
44780         if the remaining date string (to be parsed) is empty, use "0".
44781         Reported by Mischa Molhoek and discussed in this thread:
44782         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
44783
44784 2007-10-31  Bruno Haible  <bruno@clisp.org>
44785
44786         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
44787         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
44788         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
44789         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
44790         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
44791         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
44792
44793 2007-10-31  Bruno Haible  <bruno@clisp.org>
44794
44795         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
44796         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
44797         (AC_TYPE_LONG_LONG_INT): Use it.
44798         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
44799         it as well.
44800         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
44801         to m4/longlong.m4.
44802         * modules/stdint (Files): Remove m4/ulonglong.m4.
44803         * modules/strtoull (Files): Use m4/longlong.m4 instead of
44804         m4/ulonglong.m4.
44805         * modules/strtoumax (Files): Likewise.
44806
44807 2007-10-30  Bruno Haible  <bruno@clisp.org>
44808
44809         * modules/xvasprintf-posix: New file.
44810         Suggested by Eric Blake.
44811
44812 2007-10-30  Bruno Haible  <bruno@clisp.org>
44813
44814         * modules/xprintf-posix-tests: New file.
44815         * tests/test-xprintf-posix.sh: New file.
44816         * tests/test-xprintf-posix.c: New file.
44817         * tests/test-xfprintf-posix.c: New file.
44818
44819         * modules/xprintf-posix: New file.
44820
44821 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44822
44823         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
44824         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
44825         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
44826
44827 2007-10-29  Bruno Haible  <bruno@clisp.org>
44828
44829         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
44830         contain the special marker '_cv_'.
44831         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44832         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44833         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44834         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
44835         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44836         Reported by Ralf Wildenhues.
44837
44838 2007-10-29  Bruno Haible  <bruno@clisp.org>
44839
44840         * gnulib-tool (func_import): When --lgpl is not specified, set
44841         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
44842         GPLv3.
44843         Reported by Simon Josefsson.
44844
44845 2007-10-28  Bruno Haible  <bruno@clisp.org>
44846
44847         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
44848         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
44849         HAVE_DECL_ISFINITE.
44850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44851         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
44852         HAVE_DECL_ISFINITE.
44853
44854 2007-10-28  Bruno Haible  <bruno@clisp.org>
44855
44856         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
44857         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
44858
44859 2007-10-28  Bruno Haible  <bruno@clisp.org>
44860
44861         Fix link errors with Sun C 5.0 on Solaris 10.
44862         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
44863         function is declared but not present in the compiler's libm.
44864         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44865         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44866         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
44867         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
44868         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
44869         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
44870         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
44871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44872         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
44873         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
44874         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
44875         HAVE_DECL_FLOORL.
44876
44877 2007-10-28  Bruno Haible  <bruno@clisp.org>
44878
44879         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
44880         gl_FUNC_FLOORL. Cache the result.
44881         (gl_FUNC_FLOORL): Use it.
44882         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
44883         gl_FUNC_CEILL. Cache the result.
44884         (gl_FUNC_CEILL): Use it.
44885
44886         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
44887         gl_FUNC_FLOOR. Cache the result.
44888         (gl_FUNC_FLOOR): Use it.
44889         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
44890         gl_FUNC_CEIL. Cache the result.
44891         (gl_FUNC_CEIL): Use it.
44892
44893         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
44894         gl_FUNC_FLOORF. Cache the result.
44895         (gl_FUNC_FLOORF): Use it.
44896         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
44897         gl_FUNC_CEILF. Cache the result.
44898         (gl_FUNC_CEILF): Use it.
44899
44900 2007-10-28  Bruno Haible  <bruno@clisp.org>
44901
44902         * gnulib-tool: Allow specifying the LGPL version number through
44903         --lgpl=2 or --lgpl=3.
44904         (func_usage): Document --lgpl with argument.
44905         Handle --lgpl=... arguments.
44906         (func_import): Recognize also gl_LGPL calls with an argument. When
44907         --lgpl=2 is used and the module's license is just LGPL, report an
44908         error. Set sed_transform_lib_file according to the lgpl variable. In
44909         the generated files, use --lgpl or gl_LGPL invocations with argument,
44910         if necessary.
44911         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
44912         an LGPv2+ license.
44913         * doc/gnulib-tool.texi (Modified imports): Update explanation of
44914         gl_LGPL macro.
44915
44916 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44917             Bruno Haible  <bruno@clisp.org>
44918
44919         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
44920         (u16_uctomb_aux): Likewise.
44921         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
44922         !HAVE_INLINE.
44923         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
44924
44925 2007-10-28  Bruno Haible  <bruno@clisp.org>
44926
44927         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
44928         Invoke AM_GETTEXT_OPTION if it exists.
44929         * modules/vasprintf: Likewise.
44930         * modules/verror: Likewise.
44931         * modules/xprintf: Likewise.
44932         * modules/xvasprintf: Likewise.
44933
44934 2007-10-27  Ben Pfaff  <blp@gnu.org>
44935
44936         * lib/math.in.h: Define isfinite macro and prototypes for
44937         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
44938         implementations.
44939         * m4/math_h.m4: New substitutions for isfinite module.
44940         * lib/isfinite.c: New file.
44941         * m4/isfinite.m4: New file.
44942         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
44943         * modules/isfinite: New file.
44944         * modules/isfinite-tests: New file.
44945         * tests/tests-isfinite.c: New file.
44946         * doc/functions/isfinite.texi: Mention isfinite module.
44947         * MODULES.html.sh: Mention new module.
44948
44949 2007-10-27  Ben Pfaff  <blp@gnu.org>
44950
44951         Ralf Wildenhues reported that Tru64 4.0D declares the round
44952         functions but does not have definitions.
44953         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
44954         cannot be found in any library, set the output variable to
44955         "missing" instead of "".
44956         * m4/round.m4: Also use our substitute if we cannot find round in
44957         any library, even if it is declared.
44958         * m4/roundf.m4: Likewise for roundf.
44959         * m4/roundl.m4: Likewise for roundl.
44960         * lib/math.in.h: Undefine roundf, round, roundl before defining
44961         their replacements, to allow for hypothetical systems where these
44962         may be defined as macros but not available in libraries.
44963
44964 2007-10-27  Bruno Haible  <bruno@clisp.org>
44965
44966         * doc/gnulib.texi: Invoke @firstparagraphindent.
44967         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
44968         changes in gnulib.
44969         (Source changes): New section.
44970
44971 2007-10-26  Bruno Haible  <bruno@clisp.org>
44972
44973         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
44974         borrowed from autoconf.
44975
44976 2007-10-26  Bruno Haible  <bruno@clisp.org>
44977
44978         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
44979         strerror returned the empty string. Needed on HP-UX 11.00.
44980
44981 2007-10-24  Micah Cowan  <micah@cowan.name>
44982
44983         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
44984         * build-aux/bootstrap: Remove support for now-unnecessary option,
44985         --cvs-user, and envvars CVS_USER, CVS_RSH.
44986
44987 2007-10-24  Jim Meyering  <meyering@redhat.com>
44988
44989         Avoid diagnostics from sha1sum when there is no cached checksum.
44990         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
44991         if the po.s1 file hasn't been created yet.
44992
44993         * build-aux/bootstrap: Sync from coreutils:
44994         2007-10-24  Jim Meyering  <meyering@redhat.com>
44995         Get gnulib from the git repository, not from an obsolete cvs one.
44996         * build-aux/bootstrap: Suggestion from Micah Cowan.
44997         2007-10-04  Jim Meyering  <jim@meyering.net>
44998         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
44999         (update_po_files): Work also when there are no .po files in po/.
45000
45001 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45002
45003         * README: Append ".git" to git and cg examples.
45004         Problem reported by Benoit Sigoure.
45005
45006 2007-10-23  Micah Cowan  <micah@cowan.name>
45007
45008         * users.txt: Add wget.
45009
45010 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45011
45012         Fix linking of some unistdio tests on FreeBSD.
45013         * modules/unistdio/u16-vsnprintf-tests
45014         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
45015         * modules/unistdio/u16-vsprintf-tests
45016         (test_u16_vsnprintf1_LDADD): Likewise.
45017         * modules/unistdio/u32-vsnprintf-tests
45018         (test_u32_vsnprintf1_LDADD): Likewise.
45019         * modules/unistdio/u32-vsprintf-tests
45020         (test_u32_vsprintf1_LDADD): Likewise.
45021         * modules/unistdio/u8-vsnprintf-tests
45022         (test_u8_vsnprintf1_LDADD): Likewise.
45023         * modules/unistdio/u8-vsprintf-tests
45024         (test_u8_vsprintf1_LDADD): Likewise.
45025         * modules/unistdio/ulc-vsnprintf-tests
45026         (test_ulc_vsnprintf1_LDADD): Likewise.
45027         * modules/unistdio/ulc-vsprintf-tests
45028         (test_ulc_vsprintf1_LDADD): Likewise.
45029
45030         Fix linking of some uniconv tests on FreeBSD.
45031         * modules/uniconv/u16-conv-from-enc-tests
45032         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
45033         * modules/uniconv/u16-conv-to-enc-tests
45034         (test_u16_conv_to_enc_LDADD): Likewise.
45035         * modules/uniconv/u16-strconv-from-enc-tests
45036         (test_u16_strconv_from_enc_LDADD): Likewise.
45037         * modules/uniconv/u16-strconv-to-enc-tests
45038         (test_u16_strconv_to_enc_LDADD): Likewise.
45039         * modules/uniconv/u32-conv-from-enc-tests
45040         (test_u32_conv_from_enc_LDADD): Likewise.
45041         * modules/uniconv/u32-conv-to-enc-tests
45042         (test_u32_conv_to_enc_LDADD): Likewise.
45043         * modules/uniconv/u32-strconv-from-enc-tests
45044         (test_u32_strconv_from_enc_LDADD): Likewise.
45045         * modules/uniconv/u32-strconv-to-enc-tests
45046         (test_u32_strconv_to_enc_LDADD): Likewise.
45047         * modules/uniconv/u8-conv-from-enc-tests
45048         (test_u8_conv_from_enc_LDADD): Likewise.
45049         * modules/uniconv/u8-conv-to-enc-tests
45050         (test_u8_conv_to_enc_LDADD): Likewise.
45051         * modules/uniconv/u8-strconv-from-enc-tests
45052         (test_u8_strconv_from_enc_LDADD): Likewise.
45053         * modules/uniconv/u8-strconv-to-enc-tests
45054         (test_u8_strconv_to_enc_LDADD): Likewise.
45055
45056 2007-10-22  Bruno Haible  <bruno@clisp.org>
45057
45058         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
45059         size.
45060
45061 2007-10-22  Eric Blake  <ebb9@byu.net>
45062
45063         Tweak x*printf documentation.
45064         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
45065         variable name and comments.
45066         Suggested by Bruno Haible.
45067
45068 2007-10-22  Bruno Haible  <bruno@clisp.org>
45069
45070         * lib/acl.c (copy_acl): Fix file name in comment.
45071
45072 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45073
45074         Fix Tru64 problem with stdbool.h.
45075         * lib/stdbool.in.h (false, true):
45076         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
45077         Don't declare as an enum in this situation; it runs afoul of Tru64.
45078         Problem reported by Steven M. Schweda in
45079         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
45080
45081 2007-10-22  Eric Blake  <ebb9@byu.net>
45082
45083         Also wrap vf?printf.
45084         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
45085         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
45086         (xvprintf, xvfprintf): New functions.
45087
45088 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45089
45090         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
45091         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
45092
45093         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
45094         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
45095
45096 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45097
45098         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
45099         by Bruno Haible.
45100
45101 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45102
45103         * lib/getloadavg.c
45104         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
45105         Undef `sys' after including sys/table.h, for Tru64 4.0D.
45106
45107         * tests/test-i-ring.c: Work for C89.
45108
45109 2007-10-22  Bruno Haible  <bruno@clisp.org>
45110
45111         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
45112         -1u, in preprocessor expression, so that we don't test for the bug
45113         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
45114         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
45115
45116 2007-10-22  Eric Blake  <ebb9@byu.net>
45117
45118         * tests/test-yesno.sh: Silence stderr during test.
45119
45120 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45121
45122         * modules/crypto/gc-camellia: New file.
45123
45124         * m4/gc-camellia.m4: New file.
45125
45126         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
45127
45128         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
45129
45130 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45131
45132         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
45133         --help to stdout.  Reported by sms@antinode.org (Steven
45134         M. Schweda).
45135
45136 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45137
45138         * users.txt: Fix link to libksba.
45139
45140 2007-10-21  Ben Pfaff  <blp@gnu.org>
45141
45142         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
45143         round.c roundf implementation that depends on floorf and ceilf to
45144         be tested unconditionally.
45145
45146 2007-10-21  Ben Pfaff  <blp@gnu.org>
45147
45148         * m4/check-libm-func.m4: Removed.
45149         * m4/check-math-lib.m4: New file.
45150         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
45151         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
45152         definition and lack of AC_LIBOBJ([roundf]).
45153         * m4/roundl.m4: Ditto, and similarly for roundl.
45154         * modules/round: Reference new m4 file.
45155         * modules/roundf: Ditto.
45156         * modules/roundl: Ditto.
45157         * tests/test-round2.c (main): Use ROUND instead of round.
45158         Bug report from Bruno Haible.
45159
45160 2007-10-21  Bruno Haible  <bruno@clisp.org>
45161
45162         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
45163         context.
45164
45165 2007-10-21  Bruno Haible  <bruno@clisp.org>
45166
45167         * tests/test-wcwidth.c (main): Allow negative result for some control
45168         characters.
45169
45170         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
45171         Needed on OSF/1 5.1.
45172
45173 2007-10-21  Bruno Haible  <bruno@clisp.org>
45174
45175         * tests/test-floorf1.c: Include isnanf.h.
45176         (main): Use isnanf() instead of isnan().
45177         * tests/test-ceilf1.c: Include isnanf.h.
45178         (main): Use isnanf() instead of isnan().
45179         * tests/test-truncf1.c: Include isnanf.h.
45180         (main): Use isnanf() instead of isnan().
45181         * tests/test-roundf1.c: Include isnanf.h.
45182         (main): Use isnanf() instead of isnan().
45183
45184 2007-10-21  Eric Blake  <ebb9@byu.net>
45185
45186         * users.txt: Update URL for m4.
45187
45188 2007-10-21  Bruno Haible  <bruno@clisp.org>
45189
45190         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
45191
45192 2007-10-21  Bruno Haible  <bruno@clisp.org>
45193
45194         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
45195         Git's management files if the CVS files are not present.
45196
45197 2007-10-20  Bruno Haible  <bruno@clisp.org>
45198
45199         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
45200         gcc-3.4.x.
45201
45202 2007-10-20  Ben Pfaff  <blp@gnu.org>
45203
45204         * lib/math.in.h: Declare round, roundf, roundl if we are providing
45205         implementations.
45206         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
45207         * lib/round.c: New file.
45208         * lib/roundf.c: New file.
45209         * lib/roundl.c: New file.
45210         * m4/round.m4: New file.
45211         * m4/roundf.m4: New file.
45212         * m4/roundl.m4: New file.
45213         * m4/check-libm-func-m4: New file.
45214         * modules/math: Replace round, roundf, roundl related @VARS@ in
45215         math.in.h.
45216         * modules/round: New file.
45217         * modules/round-tests: New file.
45218         * modules/roundf: New file.
45219         * modules/roundf-tests: New file.
45220         * modules/roundl: New file.
45221         * modules/roundl-tests: New file.
45222         * tests/test-round1.c: New file.
45223         * tests/test-round2.c: New file.
45224         * tests/test-roundf1.c: New file.
45225         * tests/test-roundf2.c: New file.
45226         * tests/test-roundl.c: New file.
45227         * doc/functions/round.texi: Mention round module.
45228         * doc/functions/roundf.texi: Mention roundf module.
45229         * doc/functions/roundl.texi: Mention roundl module.
45230         * MODULES.html.sh: Mention new modules.
45231         Thanks to Bruno Haible for suggestions.
45232
45233 2007-10-20  Jim Meyering  <meyering@redhat.com>
45234
45235         * lib/xprintf.c: Include <config.h> unconditionally.
45236
45237         Change xprintf's license to GPL.
45238         * modules/xprintf (License): s/LGPL/GPL/, since this module
45239         depends on modules (exit and exitfail) which are GPL.
45240         Suggestion from Bruno Haible.
45241
45242         xprintf fixes.
45243         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
45244         Use a clearer diagnostic.
45245         Patch from Bruno Haible.
45246
45247 2007-10-20  Bruno Haible  <bruno@clisp.org>
45248
45249         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
45250         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
45251         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45252
45253 2007-10-20  Bruno Haible  <bruno@clisp.org>
45254
45255         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
45256         precision in the comparison result > x - 1 or similar.
45257         * tests/test-ceilf2.c (correct_result_p): Likewise.
45258         * tests/test-truncf2.c (correct_result_p): Likewise.
45259         * tests/test-trunc2.c (correct_result_p): Likewise.
45260         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45261
45262 2007-10-20  Bruno Haible  <bruno@clisp.org>
45263
45264         * modules/ceil: New file.
45265         * m4/ceil.m4: New file.
45266         * doc/functions/ceil.texi: Mention the 'ceil' module.
45267
45268 2007-10-20  Bruno Haible  <bruno@clisp.org>
45269
45270         * modules/floor: New file.
45271         * m4/floor.m4: New file.
45272         * doc/functions/floor.texi: Mention the 'floor' module.
45273
45274 2007-10-20  Bruno Haible  <bruno@clisp.org>
45275
45276         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
45277         of %a.
45278         * modules/floorf-tests (Depends-on): Likewise.
45279         * modules/truncf-tests (Depends-on): Likewise.
45280         * modules/trunc-tests (Depends-on): Likewise.
45281         Reported by Ben Pfaff.
45282
45283 2007-10-19  Jim Meyering  <meyering@redhat.com>
45284
45285         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
45286         Don't bother testing specific errno values.  Just test ferror.
45287
45288         New module: xprintf
45289         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
45290
45291 2007-10-19  Bruno Haible  <bruno@clisp.org>
45292
45293         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
45294         syntax.
45295         * modules/javaexec (Makefile.am): Likewise.
45296         * modules/relocatable-prog (Makefile.am): Likewise.
45297         Suggested by Jim Meyering.
45298
45299 2007-10-18  Bruno Haible  <bruno@clisp.org>
45300
45301         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
45302         Reported by Jim Meyering.
45303
45304 2007-10-18  Eric Blake  <ebb9@byu.net>
45305
45306         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
45307
45308 2007-10-18  Bruno Haible  <bruno@clisp.org>
45309
45310         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
45311         the format string into writable memory. Needed in Fortify conditions.
45312
45313 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
45314             Bruno Haible  <bruno@clisp.org>
45315
45316         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
45317         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
45318         * modules/trim (Depends-on): Add mbchar.
45319         (configure.ac): Add gl_FUNC_MBRTOWC.
45320         (Makefile.am): Augment lib_SOURCES.
45321
45322 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45323
45324         Modify glob.c to use fstatat and dirfd, to simplify it.
45325         Suggested by Eric Blake.
45326         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
45327         Don't include <stdbool.h>; not used.
45328         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
45329         (link_exists_p): Simplify implementation, since we can now assume
45330         dirfd and fstatat.
45331         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
45332
45333 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45334
45335         * gnulib-tool (func_get_dependencies): Fix sed script to
45336         match only tests.
45337
45338 2007-10-17  Bruno Haible  <bruno@clisp.org>
45339
45340         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
45341         allow locale names without encoding suffix.
45342         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45343         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45344
45345 2007-10-16  Bruno Haible  <bruno@clisp.org>
45346
45347         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
45348         * lib/getgroups.c (getgroups): Likewise.
45349         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
45350
45351 2007-10-16  Bruno Haible  <bruno@clisp.org>
45352
45353         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
45354         * modules/malloc-posix (License): Likewise.
45355         * modules/realloc-posix (License): Likewise.
45356         * modules/calloc-posix (License): Likewise.
45357         * modules/intprops (License): Change from GPL to LGPL, with
45358         Paul Eggert's approval.
45359
45360 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45361
45362         Merge glibc changes into lib/glob.c.
45363
45364         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
45365         2007-10-15 04:59:03 UTC.  Here are the changes:
45366
45367         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
45368
45369         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
45370
45371         * lib/glob.c: Add some branch prediction throughout.
45372
45373         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
45374
45375         [BZ #5103]
45376         * lib/glob.c (glob): Recognize patterns starting \/.
45377
45378         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
45379
45380         [BZ #3996]
45381         * lib/glob.c (attribute_hidden): Define if not defined.
45382         (glob): Unescape dirname, filename or username when needed and not
45383         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
45384         is NULL.  Handle unescaped [ in pattern without closing ].
45385         Don't pass GLOB_CHECK down to recursive glob for directories.
45386         (__glob_pattern_type): New function.
45387         (__glob_pattern_p): Implement using __glob_pattern_type.
45388         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
45389         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
45390         Remove unreachable code.
45391
45392         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
45393
45394         * lib/glob.c (glob_in_dir): Add some comments and asserts to
45395         explain why there are no leaks.
45396
45397         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
45398
45399         [BZ #3253]
45400         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
45401         time, rather allocate increasingly bigger arrays of pointers, if
45402         possible with alloca, if too large with malloc.
45403
45404 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45405
45406         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
45407         Problem reported by H.Merijn Brand in
45408         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
45409         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
45410         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45411
45412 2007-10-15  Bruno Haible  <bruno@clisp.org>
45413
45414         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
45415         with explicit rpl_ prefix.
45416         * lib/fopen.c (fopen): Likewise.
45417         * lib/freopen.c (freopen): Likewise.
45418         * lib/iconv.c (iconv): Likewise.
45419         * lib/iconv_close.c (iconv_close): Likewise.
45420
45421 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45422
45423         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
45424
45425 2007-10-15  Bruno Haible  <bruno@clisp.org>
45426
45427         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
45428         <stddef.h> instead of <stdlib.h> since we only need NULL.
45429         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45430
45431 2007-10-15  Bruno Haible  <bruno@clisp.org>
45432
45433         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
45434         Replace paragraph talking about LIBOBJS.
45435         Reported by Colin Watson <cjwatson@debian.org>.
45436
45437 2007-10-15  Bruno Haible  <bruno@clisp.org>
45438
45439         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
45440         <stdlib.h> before using NULL.
45441
45442 2007-10-15  Simon Josefsson  <simon@josefsson.org>
45443
45444         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
45445         Reported by Albert Chin <china@thewrittenword.com>.
45446
45447 2007-10-14  Bruno Haible  <bruno@clisp.org>
45448
45449         * modules/iconv_open-utf-tests: New file.
45450         * tests/test-iconv-utf.c: New file.
45451
45452         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
45453         * modules/iconv_open-utf: New file.
45454         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
45455         (iconv, iconv_close): New declarations.
45456         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
45457         be defined.
45458         (iconv_open): Add special handling of conversion between UTF-8 and
45459         UTF-{16,32}{BE,LE}.
45460         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
45461         * lib/iconv_close.c: New file.
45462         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
45463         gl_FUNC_ICONV_OPEN.
45464         (gl_FUNC_ICONV_OPEN): Use it.
45465         (gl_FUNC_ICONV_OPEN_UTF): New macro.
45466         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
45467         and REPLACE_ICONV_UTF.
45468         * modules/iconv_open (Depends-on): Add c-strcase.
45469         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
45470         ICONV_CONST.
45471         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
45472
45473 2007-10-13  Albert Chin  <china@thewrittenword.com>
45474             Bruno Haible  <bruno@clisp.org>
45475
45476         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
45477         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
45478
45479 2007-10-13  Bruno Haible  <bruno@clisp.org>
45480
45481         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
45482         defined, use the ISO C99 inline semantics.
45483         * lib/argp.h (ARGP_EI): Likewise.
45484
45485 2007-10-13  Bruno Haible  <bruno@clisp.org>
45486
45487         Handle 'inline' change in gcc 4.3.0.
45488         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
45489         argp_fmtstream_write, argp_fmtstream_set_lmargin,
45490         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
45491         argp_fmtstream_point): Disable 'extern' declaration if the function
45492         definition is going to be provided inline.
45493         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
45494         semantics, not the ISO C99 inline semantics.
45495         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
45496         'extern' declaration if the function definition is going to be provided
45497         inline.
45498         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
45499         the GNU C inline semantics, not the ISO C99 inline semantics. With
45500         GCC 4.2, avoid a warning.
45501
45502 2007-10-13  Bruno Haible  <bruno@clisp.org>
45503
45504         * lib/freading.h (freading): Enable the use of __freading for
45505         glibc >= 2.7.
45506         * lib/freading.c (freading): Likewise.
45507
45508 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45509
45510         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
45511         "warning: C99 inline functions are not supported; using GNU89".
45512
45513 2007-10-12  Bruno Haible  <bruno@clisp.org>
45514
45515         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
45516         of 2.
45517         * tests/test-ceilf2.c: New file.
45518         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
45519
45520         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
45521         * modules/ceilf-tests: Update.
45522
45523 2007-10-12  Bruno Haible  <bruno@clisp.org>
45524
45525         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
45526         of 2.
45527         * tests/test-floorf2.c: New file.
45528         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
45529
45530         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
45531         * modules/floorf-tests: Update.
45532
45533 2007-10-12  Bruno Haible  <bruno@clisp.org>
45534
45535         * tests/test-trunc2.c: New file.
45536         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
45537
45538         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
45539         * modules/trunc-tests: Update.
45540
45541 2007-10-12  Bruno Haible  <bruno@clisp.org>
45542
45543         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
45544         of 2.
45545         * tests/test-truncf2.c: New file.
45546         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
45547
45548         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
45549         * modules/truncf-tests: Update.
45550
45551 2007-10-11  Eric Blake  <ebb9@byu.net>
45552
45553         Don't claim strerror is broken on Interix.
45554         * doc/functions/strerror.texi (strerror): Known broken systems are
45555         now Solaris 8, and not Interix.
45556         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
45557         Interix on cross-compile.
45558         Reported by Martin Koeppe in
45559         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
45560
45561 2007-10-11  Bruno Haible  <bruno@clisp.org>
45562
45563         * modules/i-ring-tests: New file.
45564         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
45565         instead of assert.
45566
45567 2007-10-11  Bruno Haible  <bruno@clisp.org>
45568
45569         * modules/filenamecat-tests: New file.
45570         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
45571         * lib/filenamecat.c: Remove test code.
45572
45573 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45574
45575         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
45576
45577         * lib/strerror.c: Include <string.h> always, to test interface,
45578         and to remove the need for the dummy.
45579         Include intprops.h to compute width instead of doing it ourselves
45580         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
45581         (strerror): Define it to return NULL if there's no system strerror.
45582         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
45583         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
45584         ancient pre-strerror Unix systems well any more.  Saying "unknown
45585         system error" is enough.
45586         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
45587         simpler strerror.c implementation.
45588         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
45589         Simplify the tests to reflect the simpler strerror implementation.
45590         * modules/strerror (Depends-on): Add intprops.
45591
45592 2007-10-09  Eric Blake  <ebb9@byu.net>
45593
45594         Silence test-fpending.
45595         * modules/fpending-tests (Files): Add wrapper script.
45596         * tests/test-fpending.sh: New file.
45597
45598 2007-10-09  Bruno Haible  <bruno@clisp.org>
45599
45600         * MODULES.html.sh (func_module): Don't create a hyperlink for
45601         function names like 'printf_frexp'.
45602         (Misc): Add crc, memxor.
45603         (Characteristics of floating types): New section.
45604         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
45605         isnanf-nolibm, signbit, trunc, truncf, truncl.
45606         (Enhancements for ISO C 99 functions): New subsection Input/output.
45607         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
45608         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
45609         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
45610         (Compatibility checks for POSIX:2001 functions): Add clock-time.
45611         (Enhancements for POSIX:2001 functions): Add chdir-long.
45612         (File system functions): Add areadlink, chdir-safer, read-file.
45613         Remove cycle-check.
45614         (File system as inode set): New section.
45615         (Date and time): Add gethrxtime.
45616         (Multithreading): Add openmp.
45617         (Internationalization functions): Add localename.
45618         (Unicode string functions): Add unistr/u*-mbsnlen.
45619         (Support for maintaining and releasing projects): Add git-version-gen.
45620         (Lone files): Remove directories.
45621
45622 2007-10-08  Ben Pfaff  <blp@gnu.org>
45623
45624         * lib/xmalloca.h: Fix typo in comment.
45625
45626 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45627
45628         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
45629         when avoiding problems with integer overflow.  Use a portable test
45630         instead.
45631
45632 2007-10-08  Simon Josefsson  <simon@josefsson.org>
45633
45634         * modules/dummy (License): Change to LGPLv2+.
45635         * modules/float (License): Likewise
45636         * modules/realloc (License): Likewise
45637         * modules/stdlib (License): Likewise
45638
45639 2007-10-07  Bruno Haible  <bruno@clisp.org>
45640
45641         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
45642         * floor.c (TWO_MANT_DIG): Likewise.
45643         * ceil.c (TWO_MANT_DIG): Likewise.
45644         Reported by Ben Pfaff.
45645
45646 2007-10-07  Bruno Haible  <bruno@clisp.org>
45647
45648         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
45649         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
45650         * lib/frexp.c (FUNC): Likewise.
45651         * lib/printf-frexp.h (printf_frexp): Likewise.
45652         * lib/printf-frexpl.h (printf_frexpl): Likewise.
45653         * lib/printf-frexp.c (FUNC): Likewise.
45654         Suggested by Jim Meyering.
45655
45656 2007-10-07  Jim Meyering  <meyering@redhat.com>
45657
45658         Make xnanosleep's integer overflow test more robust.
45659         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
45660         so that gcc-4.3.0 doesn't optimize away this test for overflow.
45661
45662 2007-10-07  Bruno Haible  <bruno@clisp.org>
45663
45664         * NEWS: Mention the license change.
45665
45666         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
45667         abbreviations in the modules files.
45668
45669         Change copyright notice from GPLv2+ to GPLv3+.
45670         * README: Change copyright notice.
45671         * MODULES.html.sh: Likewise.
45672         * build-aux/bootstrap.conf: Likewise.
45673         * build-aux/config.libpath: Likewise.
45674         * build-aux/csharpcomp.sh.in: Likewise.
45675         * build-aux/csharpexec.sh.in: Likewise.
45676         * build-aux/install-reloc: Likewise.
45677         * build-aux/javacomp.sh.in: Likewise.
45678         * build-aux/javaexec.sh.in: Likewise.
45679         * build-aux/ldd.sh.in: Likewise.
45680         * build-aux/reloc-ldflags: Likewise.
45681         * build-aux/relocatable.sh.in: Likewise.
45682         * build-aux/x-to-1.in: Likewise.
45683         * check-module: Likewise.
45684         * config/srclistvars.sh: Likewise.
45685         * gnulib-tool: Likewise.
45686         * lib/acl-internal.h: Likewise.
45687         * lib/acl.c: Likewise.
45688         * lib/acl.h: Likewise.
45689         * lib/acl_entries.c: Likewise.
45690         * lib/areadlink-with-size.c: Likewise.
45691         * lib/areadlink.c: Likewise.
45692         * lib/areadlink.h: Likewise.
45693         * lib/argmatch.c: Likewise.
45694         * lib/argmatch.h: Likewise.
45695         * lib/argp-ba.c: Likewise.
45696         * lib/argp-eexst.c: Likewise.
45697         * lib/argp-fmtstream.c: Likewise.
45698         * lib/argp-fmtstream.h: Likewise.
45699         * lib/argp-fs-xinl.c: Likewise.
45700         * lib/argp-help.c: Likewise.
45701         * lib/argp-namefrob.h: Likewise.
45702         * lib/argp-parse.c: Likewise.
45703         * lib/argp-pin.c: Likewise.
45704         * lib/argp-pv.c: Likewise.
45705         * lib/argp-pvh.c: Likewise.
45706         * lib/argp-xinl.c: Likewise.
45707         * lib/argp.h: Likewise.
45708         * lib/at-func.c: Likewise.
45709         * lib/atanl.c: Likewise.
45710         * lib/backupfile.c: Likewise.
45711         * lib/backupfile.h: Likewise.
45712         * lib/basename.c: Likewise.
45713         * lib/binary-io.h: Likewise.
45714         * lib/byteswap.in.h: Likewise.
45715         * lib/c-stack.c: Likewise.
45716         * lib/c-stack.h: Likewise.
45717         * lib/c-strcasestr.c: Likewise.
45718         * lib/c-strcasestr.h: Likewise.
45719         * lib/c-strstr.c: Likewise.
45720         * lib/c-strstr.h: Likewise.
45721         * lib/c-strtod.c: Likewise.
45722         * lib/calloc.c: Likewise.
45723         * lib/canon-host.c: Likewise.
45724         * lib/canon-host.h: Likewise.
45725         * lib/canonicalize-lgpl.c: Likewise.
45726         * lib/canonicalize.c: Likewise.
45727         * lib/canonicalize.h: Likewise.
45728         * lib/ceil.c: Likewise.
45729         * lib/ceilf.c: Likewise.
45730         * lib/ceill.c: Likewise.
45731         * lib/chdir-long.c: Likewise.
45732         * lib/chdir-long.h: Likewise.
45733         * lib/chdir-safer.c: Likewise.
45734         * lib/chdir-safer.h: Likewise.
45735         * lib/chown.c: Likewise.
45736         * lib/classpath.c: Likewise.
45737         * lib/classpath.h: Likewise.
45738         * lib/clean-temp.c: Likewise.
45739         * lib/clean-temp.h: Likewise.
45740         * lib/cloexec.c: Likewise.
45741         * lib/close-stream.c: Likewise.
45742         * lib/closein.c: Likewise.
45743         * lib/closein.h: Likewise.
45744         * lib/closeout.c: Likewise.
45745         * lib/closeout.h: Likewise.
45746         * lib/concat-filename.c: Likewise.
45747         * lib/copy-file.c: Likewise.
45748         * lib/copy-file.h: Likewise.
45749         * lib/count-one-bits.h: Likewise.
45750         * lib/crc.c: Likewise.
45751         * lib/crc.h: Likewise.
45752         * lib/creat-safer.c: Likewise.
45753         * lib/csharpcomp.c: Likewise.
45754         * lib/csharpcomp.h: Likewise.
45755         * lib/csharpexec.c: Likewise.
45756         * lib/csharpexec.h: Likewise.
45757         * lib/cycle-check.c: Likewise.
45758         * lib/cycle-check.h: Likewise.
45759         * lib/diacrit.c: Likewise.
45760         * lib/diacrit.h: Likewise.
45761         * lib/diffseq.h: Likewise.
45762         * lib/dirchownmod.c: Likewise.
45763         * lib/dirent.in.h: Likewise.
45764         * lib/dirfd.c: Likewise.
45765         * lib/dirfd.h: Likewise.
45766         * lib/dirname.c: Likewise.
45767         * lib/dirname.h: Likewise.
45768         * lib/dummy.c: Likewise.
45769         * lib/dup-safer.c: Likewise.
45770         * lib/dup2.c: Likewise.
45771         * lib/eealloc.h: Likewise.
45772         * lib/error.c: Likewise.
45773         * lib/error.h: Likewise.
45774         * lib/euidaccess.c: Likewise.
45775         * lib/exclude.c: Likewise.
45776         * lib/exclude.h: Likewise.
45777         * lib/execute.c: Likewise.
45778         * lib/execute.h: Likewise.
45779         * lib/exitfail.c: Likewise.
45780         * lib/exitfail.h: Likewise.
45781         * lib/expl.c: Likewise.
45782         * lib/fatal-signal.c: Likewise.
45783         * lib/fatal-signal.h: Likewise.
45784         * lib/fbufmode.c: Likewise.
45785         * lib/fbufmode.h: Likewise.
45786         * lib/fchdir.c: Likewise.
45787         * lib/fchmodat.c: Likewise.
45788         * lib/fchownat.c: Likewise.
45789         * lib/fcntl--.h: Likewise.
45790         * lib/fcntl-safer.h: Likewise.
45791         * lib/fcntl.in.h: Likewise.
45792         * lib/fd-safer.c: Likewise.
45793         * lib/fflush.c: Likewise.
45794         * lib/file-has-acl.c: Likewise.
45795         * lib/file-set.c: Likewise.
45796         * lib/file-type.c: Likewise.
45797         * lib/file-type.h: Likewise.
45798         * lib/fileblocks.c: Likewise.
45799         * lib/filemode.c: Likewise.
45800         * lib/filemode.h: Likewise.
45801         * lib/filename.h: Likewise.
45802         * lib/filenamecat.c: Likewise.
45803         * lib/filenamecat.h: Likewise.
45804         * lib/findprog.c: Likewise.
45805         * lib/findprog.h: Likewise.
45806         * lib/float.in.h: Likewise.
45807         * lib/floor.c: Likewise.
45808         * lib/floorf.c: Likewise.
45809         * lib/floorl.c: Likewise.
45810         * lib/fopen-safer.c: Likewise.
45811         * lib/fopen.c: Likewise.
45812         * lib/fpending.c: Likewise.
45813         * lib/fpending.h: Likewise.
45814         * lib/fprintf.c: Likewise.
45815         * lib/fprintftime.h: Likewise.
45816         * lib/fpucw.h: Likewise.
45817         * lib/fpurge.c: Likewise.
45818         * lib/fpurge.h: Likewise.
45819         * lib/freadable.c: Likewise.
45820         * lib/freadable.h: Likewise.
45821         * lib/freadahead.c: Likewise.
45822         * lib/freadahead.h: Likewise.
45823         * lib/freading.c: Likewise.
45824         * lib/freading.h: Likewise.
45825         * lib/free.c: Likewise.
45826         * lib/freopen.c: Likewise.
45827         * lib/frexp.c: Likewise.
45828         * lib/frexpl.c: Likewise.
45829         * lib/fseek.c: Likewise.
45830         * lib/fseterr.c: Likewise.
45831         * lib/fseterr.h: Likewise.
45832         * lib/fstatat.c: Likewise.
45833         * lib/fstrcmp.c: Likewise.
45834         * lib/fstrcmp.h: Likewise.
45835         * lib/fsusage.c: Likewise.
45836         * lib/fsusage.h: Likewise.
45837         * lib/ftell.c: Likewise.
45838         * lib/ftello.c: Likewise.
45839         * lib/fts-cycle.c: Likewise.
45840         * lib/fts.c: Likewise.
45841         * lib/fts_.h: Likewise.
45842         * lib/full-read.c: Likewise.
45843         * lib/full-read.h: Likewise.
45844         * lib/full-write.c: Likewise.
45845         * lib/full-write.h: Likewise.
45846         * lib/fwritable.c: Likewise.
45847         * lib/fwritable.h: Likewise.
45848         * lib/fwriteerror.c: Likewise.
45849         * lib/fwriteerror.h: Likewise.
45850         * lib/fwriting.c: Likewise.
45851         * lib/fwriting.h: Likewise.
45852         * lib/gcd.c: Likewise.
45853         * lib/gcd.h: Likewise.
45854         * lib/getcwd.c: Likewise.
45855         * lib/getdate.h: Likewise.
45856         * lib/getdate.y: Likewise.
45857         * lib/getdomainname.c: Likewise.
45858         * lib/getdomainname.h: Likewise.
45859         * lib/getgroups.c: Likewise.
45860         * lib/gethostname.c: Likewise.
45861         * lib/gethrxtime.c: Likewise.
45862         * lib/gethrxtime.h: Likewise.
45863         * lib/getloadavg.c: Likewise.
45864         * lib/getndelim2.c: Likewise.
45865         * lib/getndelim2.h: Likewise.
45866         * lib/getnline.c: Likewise.
45867         * lib/getnline.h: Likewise.
45868         * lib/getopt.c: Likewise.
45869         * lib/getopt.in.h: Likewise.
45870         * lib/getopt1.c: Likewise.
45871         * lib/getopt_int.h: Likewise.
45872         * lib/getpagesize.h: Likewise.
45873         * lib/getsubopt.c: Likewise.
45874         * lib/gettime.c: Likewise.
45875         * lib/getugroups.c: Likewise.
45876         * lib/getugroups.h: Likewise.
45877         * lib/getusershell.c: Likewise.
45878         * lib/gl_anyavltree_list1.h: Likewise.
45879         * lib/gl_anyavltree_list2.h: Likewise.
45880         * lib/gl_anyhash_list1.h: Likewise.
45881         * lib/gl_anyhash_list2.h: Likewise.
45882         * lib/gl_anylinked_list1.h: Likewise.
45883         * lib/gl_anylinked_list2.h: Likewise.
45884         * lib/gl_anyrbtree_list1.h: Likewise.
45885         * lib/gl_anyrbtree_list2.h: Likewise.
45886         * lib/gl_anytree_list1.h: Likewise.
45887         * lib/gl_anytree_list2.h: Likewise.
45888         * lib/gl_anytree_oset.h: Likewise.
45889         * lib/gl_anytreehash_list1.h: Likewise.
45890         * lib/gl_anytreehash_list2.h: Likewise.
45891         * lib/gl_array_list.c: Likewise.
45892         * lib/gl_array_list.h: Likewise.
45893         * lib/gl_array_oset.c: Likewise.
45894         * lib/gl_array_oset.h: Likewise.
45895         * lib/gl_avltree_list.c: Likewise.
45896         * lib/gl_avltree_list.h: Likewise.
45897         * lib/gl_avltree_oset.c: Likewise.
45898         * lib/gl_avltree_oset.h: Likewise.
45899         * lib/gl_avltreehash_list.c: Likewise.
45900         * lib/gl_avltreehash_list.h: Likewise.
45901         * lib/gl_carray_list.c: Likewise.
45902         * lib/gl_carray_list.h: Likewise.
45903         * lib/gl_linked_list.c: Likewise.
45904         * lib/gl_linked_list.h: Likewise.
45905         * lib/gl_linkedhash_list.c: Likewise.
45906         * lib/gl_linkedhash_list.h: Likewise.
45907         * lib/gl_list.c: Likewise.
45908         * lib/gl_list.h: Likewise.
45909         * lib/gl_oset.c: Likewise.
45910         * lib/gl_oset.h: Likewise.
45911         * lib/gl_rbtree_list.c: Likewise.
45912         * lib/gl_rbtree_list.h: Likewise.
45913         * lib/gl_rbtree_oset.c: Likewise.
45914         * lib/gl_rbtree_oset.h: Likewise.
45915         * lib/gl_rbtreehash_list.c: Likewise.
45916         * lib/gl_rbtreehash_list.h: Likewise.
45917         * lib/gl_sublist.c: Likewise.
45918         * lib/gl_sublist.h: Likewise.
45919         * lib/group-member.c: Likewise.
45920         * lib/group-member.h: Likewise.
45921         * lib/hard-locale.c: Likewise.
45922         * lib/hard-locale.h: Likewise.
45923         * lib/hash-pjw.c: Likewise.
45924         * lib/hash-pjw.h: Likewise.
45925         * lib/hash-triple.c: Likewise.
45926         * lib/hash.c: Likewise.
45927         * lib/hash.h: Likewise.
45928         * lib/human.c: Likewise.
45929         * lib/human.h: Likewise.
45930         * lib/i-ring.c: Likewise.
45931         * lib/i-ring.h: Likewise.
45932         * lib/idcache.c: Likewise.
45933         * lib/imaxabs.c: Likewise.
45934         * lib/imaxdiv.c: Likewise.
45935         * lib/inet_pton.c: Likewise.
45936         * lib/inet_pton.h: Likewise.
45937         * lib/intprops.h: Likewise.
45938         * lib/inttostr.c: Likewise.
45939         * lib/inttostr.h: Likewise.
45940         * lib/inttypes.in.h: Likewise.
45941         * lib/isapipe.c: Likewise.
45942         * lib/isdir.c: Likewise.
45943         * lib/isnan.c: Likewise.
45944         * lib/isnan.h: Likewise.
45945         * lib/isnanf.c: Likewise.
45946         * lib/isnanf.h: Likewise.
45947         * lib/isnanl-nolibm.h: Likewise.
45948         * lib/isnanl.c: Likewise.
45949         * lib/isnanl.h: Likewise.
45950         * lib/javacomp.c: Likewise.
45951         * lib/javacomp.h: Likewise.
45952         * lib/javaexec.c: Likewise.
45953         * lib/javaexec.h: Likewise.
45954         * lib/javaversion.c: Likewise.
45955         * lib/javaversion.h: Likewise.
45956         * lib/javaversion.java: Likewise.
45957         * lib/lbrkprop.h: Likewise.
45958         * lib/lchmod.h: Likewise.
45959         * lib/lchown.c: Likewise.
45960         * lib/ldexpl.c: Likewise.
45961         * lib/linebreak.c: Likewise.
45962         * lib/linebreak.h: Likewise.
45963         * lib/linebuffer.c: Likewise.
45964         * lib/linebuffer.h: Likewise.
45965         * lib/locale.in.h: Likewise.
45966         * lib/logl.c: Likewise.
45967         * lib/long-options.c: Likewise.
45968         * lib/long-options.h: Likewise.
45969         * lib/lstat.c: Likewise.
45970         * lib/lstat.h: Likewise.
45971         * lib/math.in.h: Likewise.
45972         * lib/mbchar.c: Likewise.
45973         * lib/mbchar.h: Likewise.
45974         * lib/mbfile.h: Likewise.
45975         * lib/mbiter.h: Likewise.
45976         * lib/mbscasecmp.c: Likewise.
45977         * lib/mbscasestr.c: Likewise.
45978         * lib/mbschr.c: Likewise.
45979         * lib/mbscspn.c: Likewise.
45980         * lib/mbslen.c: Likewise.
45981         * lib/mbsncasecmp.c: Likewise.
45982         * lib/mbsnlen.c: Likewise.
45983         * lib/mbspbrk.c: Likewise.
45984         * lib/mbspcasecmp.c: Likewise.
45985         * lib/mbsrchr.c: Likewise.
45986         * lib/mbssep.c: Likewise.
45987         * lib/mbsspn.c: Likewise.
45988         * lib/mbsstr.c: Likewise.
45989         * lib/mbstok_r.c: Likewise.
45990         * lib/mbswidth.c: Likewise.
45991         * lib/mbswidth.h: Likewise.
45992         * lib/mbuiter.h: Likewise.
45993         * lib/memcasecmp.c: Likewise.
45994         * lib/memcasecmp.h: Likewise.
45995         * lib/memchr.c: Likewise.
45996         * lib/memcmp.c: Likewise.
45997         * lib/memcoll.c: Likewise.
45998         * lib/memcoll.h: Likewise.
45999         * lib/memcpy.c: Likewise.
46000         * lib/memrchr.c: Likewise.
46001         * lib/mkancesdirs.c: Likewise.
46002         * lib/mkdir-p.c: Likewise.
46003         * lib/mkdir-p.h: Likewise.
46004         * lib/mkdir.c: Likewise.
46005         * lib/mkdirat.c: Likewise.
46006         * lib/mkdtemp.c: Likewise.
46007         * lib/mkstemp-safer.c: Likewise.
46008         * lib/mkstemp.c: Likewise.
46009         * lib/modechange.c: Likewise.
46010         * lib/modechange.h: Likewise.
46011         * lib/mountlist.c: Likewise.
46012         * lib/mountlist.h: Likewise.
46013         * lib/mpsort.c: Likewise.
46014         * lib/nanosleep.c: Likewise.
46015         * lib/obstack.c: Likewise.
46016         * lib/obstack.h: Likewise.
46017         * lib/open-safer.c: Likewise.
46018         * lib/open.c: Likewise.
46019         * lib/openat-die.c: Likewise.
46020         * lib/openat-priv.h: Likewise.
46021         * lib/openat-proc.c: Likewise.
46022         * lib/openat.c: Likewise.
46023         * lib/openat.h: Likewise.
46024         * lib/pagealign_alloc.c: Likewise.
46025         * lib/pagealign_alloc.h: Likewise.
46026         * lib/physmem.c: Likewise.
46027         * lib/physmem.h: Likewise.
46028         * lib/pipe-safer.c: Likewise.
46029         * lib/pipe.c: Likewise.
46030         * lib/pipe.h: Likewise.
46031         * lib/posixtm.c: Likewise.
46032         * lib/posixtm.h: Likewise.
46033         * lib/posixver.c: Likewise.
46034         * lib/printf-frexp.c: Likewise.
46035         * lib/printf-frexp.h: Likewise.
46036         * lib/printf-frexpl.c: Likewise.
46037         * lib/printf-frexpl.h: Likewise.
46038         * lib/printf.c: Likewise.
46039         * lib/progname.c: Likewise.
46040         * lib/progname.h: Likewise.
46041         * lib/progreloc.c: Likewise.
46042         * lib/putenv.c: Likewise.
46043         * lib/quote.c: Likewise.
46044         * lib/quote.h: Likewise.
46045         * lib/quotearg.c: Likewise.
46046         * lib/quotearg.h: Likewise.
46047         * lib/raise.c: Likewise.
46048         * lib/readline.c: Likewise.
46049         * lib/readline.h: Likewise.
46050         * lib/readlink.c: Likewise.
46051         * lib/readtokens.c: Likewise.
46052         * lib/readtokens.h: Likewise.
46053         * lib/readtokens0.c: Likewise.
46054         * lib/readtokens0.h: Likewise.
46055         * lib/readutmp.c: Likewise.
46056         * lib/readutmp.h: Likewise.
46057         * lib/realloc.c: Likewise.
46058         * lib/relocwrapper.c: Likewise.
46059         * lib/rename-dest-slash.c: Likewise.
46060         * lib/rename.c: Likewise.
46061         * lib/rmdir.c: Likewise.
46062         * lib/rpmatch.c: Likewise.
46063         * lib/safe-read.c: Likewise.
46064         * lib/safe-read.h: Likewise.
46065         * lib/safe-write.c: Likewise.
46066         * lib/safe-write.h: Likewise.
46067         * lib/same-inode.h: Likewise.
46068         * lib/same.c: Likewise.
46069         * lib/same.h: Likewise.
46070         * lib/save-cwd.c: Likewise.
46071         * lib/save-cwd.h: Likewise.
46072         * lib/savedir.c: Likewise.
46073         * lib/savedir.h: Likewise.
46074         * lib/savewd.c: Likewise.
46075         * lib/savewd.h: Likewise.
46076         * lib/search.in.h: Likewise.
46077         * lib/setenv.c: Likewise.
46078         * lib/setenv.h: Likewise.
46079         * lib/settime.c: Likewise.
46080         * lib/sh-quote.c: Likewise.
46081         * lib/sh-quote.h: Likewise.
46082         * lib/sig2str.c: Likewise.
46083         * lib/sig2str.h: Likewise.
46084         * lib/signal.in.h: Likewise.
46085         * lib/signbitd.c: Likewise.
46086         * lib/signbitf.c: Likewise.
46087         * lib/signbitl.c: Likewise.
46088         * lib/sigprocmask.c: Likewise.
46089         * lib/sincosl.c: Likewise.
46090         * lib/sleep.c: Likewise.
46091         * lib/sprintf.c: Likewise.
46092         * lib/sqrtl.c: Likewise.
46093         * lib/stat-time.h: Likewise.
46094         * lib/stdio--.h: Likewise.
46095         * lib/stdio-safer.h: Likewise.
46096         * lib/stdlib--.h: Likewise.
46097         * lib/stdlib-safer.h: Likewise.
46098         * lib/stdlib.in.h: Likewise.
46099         * lib/stpcpy.c: Likewise.
46100         * lib/stpncpy.c: Likewise.
46101         * lib/strchrnul.c: Likewise.
46102         * lib/strcspn.c: Likewise.
46103         * lib/strerror.c: Likewise.
46104         * lib/strftime.c: Likewise.
46105         * lib/strftime.h: Likewise.
46106         * lib/striconveh.c: Likewise.
46107         * lib/striconveh.h: Likewise.
46108         * lib/striconveha.c: Likewise.
46109         * lib/striconveha.h: Likewise.
46110         * lib/stripslash.c: Likewise.
46111         * lib/strnlen1.c: Likewise.
46112         * lib/strnlen1.h: Likewise.
46113         * lib/strtod.c: Likewise.
46114         * lib/strtoimax.c: Likewise.
46115         * lib/strtok_r.c: Likewise.
46116         * lib/strtol.c: Likewise.
46117         * lib/strtoll.c: Likewise.
46118         * lib/strtoul.c: Likewise.
46119         * lib/strtoull.c: Likewise.
46120         * lib/sysexits.in.h: Likewise.
46121         * lib/tempname.c: Likewise.
46122         * lib/tempname.h: Likewise.
46123         * lib/timespec.h: Likewise.
46124         * lib/tls.c: Likewise.
46125         * lib/tls.h: Likewise.
46126         * lib/tmpdir.c: Likewise.
46127         * lib/tmpdir.h: Likewise.
46128         * lib/tmpfile-safer.c: Likewise.
46129         * lib/tmpfile.c: Likewise.
46130         * lib/trigl.c: Likewise.
46131         * lib/trigl.h: Likewise.
46132         * lib/trim.c: Likewise.
46133         * lib/trim.h: Likewise.
46134         * lib/trunc.c: Likewise.
46135         * lib/truncf.c: Likewise.
46136         * lib/truncl.c: Likewise.
46137         * lib/tsearch.c: Likewise.
46138         * lib/unicodeio.c: Likewise.
46139         * lib/unicodeio.h: Likewise.
46140         * lib/unistd--.h: Likewise.
46141         * lib/unistd-safer.h: Likewise.
46142         * lib/unistdio/ulc-fprintf.c: Likewise.
46143         * lib/unistdio/ulc-vfprintf.c: Likewise.
46144         * lib/unlinkdir.c: Likewise.
46145         * lib/unlinkdir.h: Likewise.
46146         * lib/unlocked-io.h: Likewise.
46147         * lib/unsetenv.c: Likewise.
46148         * lib/userspec.c: Likewise.
46149         * lib/utime.c: Likewise.
46150         * lib/utimecmp.c: Likewise.
46151         * lib/utimecmp.h: Likewise.
46152         * lib/utimens.c: Likewise.
46153         * lib/verify.h: Likewise.
46154         * lib/verror.c: Likewise.
46155         * lib/verror.h: Likewise.
46156         * lib/version-etc-fsf.c: Likewise.
46157         * lib/version-etc.c: Likewise.
46158         * lib/version-etc.h: Likewise.
46159         * lib/vfprintf.c: Likewise.
46160         * lib/vprintf.c: Likewise.
46161         * lib/vsprintf.c: Likewise.
46162         * lib/w32spawn.h: Likewise.
46163         * lib/wait-process.c: Likewise.
46164         * lib/wait-process.h: Likewise.
46165         * lib/wcwidth.c: Likewise.
46166         * lib/write-any-file.c: Likewise.
46167         * lib/xalloc-die.c: Likewise.
46168         * lib/xalloc.h: Likewise.
46169         * lib/xasprintf.c: Likewise.
46170         * lib/xgetcwd.c: Likewise.
46171         * lib/xgetcwd.h: Likewise.
46172         * lib/xgetdomainname.c: Likewise.
46173         * lib/xgetdomainname.h: Likewise.
46174         * lib/xgethostname.c: Likewise.
46175         * lib/xmalloc.c: Likewise.
46176         * lib/xmalloca.c: Likewise.
46177         * lib/xmalloca.h: Likewise.
46178         * lib/xmemcoll.c: Likewise.
46179         * lib/xnanosleep.c: Likewise.
46180         * lib/xreadlink.c: Likewise.
46181         * lib/xreadlink.h: Likewise.
46182         * lib/xsetenv.c: Likewise.
46183         * lib/xsetenv.h: Likewise.
46184         * lib/xstriconv.c: Likewise.
46185         * lib/xstriconv.h: Likewise.
46186         * lib/xstrndup.c: Likewise.
46187         * lib/xstrndup.h: Likewise.
46188         * lib/xstrtod.c: Likewise.
46189         * lib/xstrtod.h: Likewise.
46190         * lib/xstrtol-error.c: Likewise.
46191         * lib/xstrtol.c: Likewise.
46192         * lib/xstrtol.h: Likewise.
46193         * lib/xtime.h: Likewise.
46194         * lib/xvasprintf.c: Likewise.
46195         * lib/xvasprintf.h: Likewise.
46196         * lib/yesno.c: Likewise.
46197         * lib/yesno.h: Likewise.
46198         * posix-modules: Likewise.
46199         * tests/test-alloca-opt.c: Likewise.
46200         * tests/test-arcfour.c: Likewise.
46201         * tests/test-arctwo.c: Likewise.
46202         * tests/test-argmatch.c: Likewise.
46203         * tests/test-argp-2.sh: Likewise.
46204         * tests/test-argp.c: Likewise.
46205         * tests/test-arpa_inet.c: Likewise.
46206         * tests/test-array_list.c: Likewise.
46207         * tests/test-array_oset.c: Likewise.
46208         * tests/test-atexit.c: Likewise.
46209         * tests/test-avltree_list.c: Likewise.
46210         * tests/test-avltree_oset.c: Likewise.
46211         * tests/test-avltreehash_list.c: Likewise.
46212         * tests/test-base64.c: Likewise.
46213         * tests/test-binary-io.c: Likewise.
46214         * tests/test-byteswap.c: Likewise.
46215         * tests/test-c-ctype.c: Likewise.
46216         * tests/test-c-strcasecmp.c: Likewise.
46217         * tests/test-c-strcasestr.c: Likewise.
46218         * tests/test-c-strncasecmp.c: Likewise.
46219         * tests/test-c-strstr.c: Likewise.
46220         * tests/test-canonicalize-lgpl.c: Likewise.
46221         * tests/test-canonicalize.c: Likewise.
46222         * tests/test-carray_list.c: Likewise.
46223         * tests/test-ceilf.c: Likewise.
46224         * tests/test-ceill.c: Likewise.
46225         * tests/test-count-one-bits.c: Likewise.
46226         * tests/test-crc.c: Likewise.
46227         * tests/test-dirname.c: Likewise.
46228         * tests/test-fbufmode.c: Likewise.
46229         * tests/test-fcntl.c: Likewise.
46230         * tests/test-fflush.c: Likewise.
46231         * tests/test-floorf.c: Likewise.
46232         * tests/test-floorl.c: Likewise.
46233         * tests/test-fopen.c: Likewise.
46234         * tests/test-fprintf-posix.c: Likewise.
46235         * tests/test-fprintf-posix.h: Likewise.
46236         * tests/test-fpurge.c: Likewise.
46237         * tests/test-freadable.c: Likewise.
46238         * tests/test-freadahead.c: Likewise.
46239         * tests/test-freading.c: Likewise.
46240         * tests/test-freopen.c: Likewise.
46241         * tests/test-frexp.c: Likewise.
46242         * tests/test-frexpl.c: Likewise.
46243         * tests/test-fseek.c: Likewise.
46244         * tests/test-fseeko.c: Likewise.
46245         * tests/test-fseterr.c: Likewise.
46246         * tests/test-fstrcmp.c: Likewise.
46247         * tests/test-ftell.c: Likewise.
46248         * tests/test-ftello.c: Likewise.
46249         * tests/test-fwritable.c: Likewise.
46250         * tests/test-fwriting.c: Likewise.
46251         * tests/test-getaddrinfo.c: Likewise.
46252         * tests/test-getpass.c: Likewise.
46253         * tests/test-gettimeofday.c: Likewise.
46254         * tests/test-hmac-md5.c: Likewise.
46255         * tests/test-hmac-sha1.c: Likewise.
46256         * tests/test-iconv.c: Likewise.
46257         * tests/test-iconvme.c: Likewise.
46258         * tests/test-inttypes.c: Likewise.
46259         * tests/test-isnan.c: Likewise.
46260         * tests/test-isnanf.c: Likewise.
46261         * tests/test-isnanl-nolibm.c: Likewise.
46262         * tests/test-isnanl.c: Likewise.
46263         * tests/test-isnanl.h: Likewise.
46264         * tests/test-ldexpl.c: Likewise.
46265         * tests/test-linked_list.c: Likewise.
46266         * tests/test-linkedhash_list.c: Likewise.
46267         * tests/test-locale.c: Likewise.
46268         * tests/test-localename.c: Likewise.
46269         * tests/test-lock.c: Likewise.
46270         * tests/test-lseek.c: Likewise.
46271         * tests/test-malloca.c: Likewise.
46272         * tests/test-math.c: Likewise.
46273         * tests/test-mbscasecmp.c: Likewise.
46274         * tests/test-mbscasestr1.c: Likewise.
46275         * tests/test-mbscasestr2.c: Likewise.
46276         * tests/test-mbscasestr3.c: Likewise.
46277         * tests/test-mbscasestr4.c: Likewise.
46278         * tests/test-mbschr.c: Likewise.
46279         * tests/test-mbscspn.c: Likewise.
46280         * tests/test-mbsncasecmp.c: Likewise.
46281         * tests/test-mbspbrk.c: Likewise.
46282         * tests/test-mbspcasecmp.c: Likewise.
46283         * tests/test-mbsrchr.c: Likewise.
46284         * tests/test-mbsspn.c: Likewise.
46285         * tests/test-mbsstr1.c: Likewise.
46286         * tests/test-mbsstr2.c: Likewise.
46287         * tests/test-mbsstr3.c: Likewise.
46288         * tests/test-md5.c: Likewise.
46289         * tests/test-memmem.c: Likewise.
46290         * tests/test-netinet_in.c: Likewise.
46291         * tests/test-open.c: Likewise.
46292         * tests/test-printf-frexp.c: Likewise.
46293         * tests/test-printf-frexpl.c: Likewise.
46294         * tests/test-printf-posix.c: Likewise.
46295         * tests/test-printf-posix.h: Likewise.
46296         * tests/test-rbtree_list.c: Likewise.
46297         * tests/test-rbtree_oset.c: Likewise.
46298         * tests/test-rbtreehash_list.c: Likewise.
46299         * tests/test-read-file.c: Likewise.
46300         * tests/test-rijndael.c: Likewise.
46301         * tests/test-search.c: Likewise.
46302         * tests/test-signbit.c: Likewise.
46303         * tests/test-sleep.c: Likewise.
46304         * tests/test-snprintf-posix.c: Likewise.
46305         * tests/test-snprintf-posix.h: Likewise.
46306         * tests/test-snprintf.c: Likewise.
46307         * tests/test-sprintf-posix.c: Likewise.
46308         * tests/test-sprintf-posix.h: Likewise.
46309         * tests/test-stat-time.c: Likewise.
46310         * tests/test-stdbool.c: Likewise.
46311         * tests/test-stdint.c: Likewise.
46312         * tests/test-stdio.c: Likewise.
46313         * tests/test-stdlib.c: Likewise.
46314         * tests/test-stpncpy.c: Likewise.
46315         * tests/test-strcasestr.c: Likewise.
46316         * tests/test-striconv.c: Likewise.
46317         * tests/test-striconveh.c: Likewise.
46318         * tests/test-striconveha.c: Likewise.
46319         * tests/test-string.c: Likewise.
46320         * tests/test-sys_select.c: Likewise.
46321         * tests/test-sys_socket.c: Likewise.
46322         * tests/test-sys_stat.c: Likewise.
46323         * tests/test-sys_time.c: Likewise.
46324         * tests/test-sysexits.c: Likewise.
46325         * tests/test-time.c: Likewise.
46326         * tests/test-tls.c: Likewise.
46327         * tests/test-trunc.c: Likewise.
46328         * tests/test-truncf.c: Likewise.
46329         * tests/test-truncl.c: Likewise.
46330         * tests/test-unistd.c: Likewise.
46331         * tests/test-vasnprintf-posix.c: Likewise.
46332         * tests/test-vasnprintf-posix2.c: Likewise.
46333         * tests/test-vasnprintf.c: Likewise.
46334         * tests/test-vasprintf-posix.c: Likewise.
46335         * tests/test-vasprintf.c: Likewise.
46336         * tests/test-verify.c: Likewise.
46337         * tests/test-vfprintf-posix.c: Likewise.
46338         * tests/test-vprintf-posix.c: Likewise.
46339         * tests/test-vsnprintf-posix.c: Likewise.
46340         * tests/test-vsnprintf.c: Likewise.
46341         * tests/test-vsprintf-posix.c: Likewise.
46342         * tests/test-wchar.c: Likewise.
46343         * tests/test-wctype.c: Likewise.
46344         * tests/test-wcwidth.c: Likewise.
46345         * tests/test-xstrtol.c: Likewise.
46346         * tests/test-xvasprintf.c: Likewise.
46347         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
46348         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
46349         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46350         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46351         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46352         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
46353         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46354         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46355         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46356         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
46357         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46358         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46359         * tests/uniname/test-uninames.c: Likewise.
46360         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
46361         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
46362         * tests/unistdio/test-u16-printf1.h: Likewise.
46363         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
46364         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
46365         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
46366         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
46367         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
46368         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
46369         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
46370         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
46371         * tests/unistdio/test-u32-printf1.h: Likewise.
46372         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
46373         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
46374         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
46375         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
46376         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
46377         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
46378         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
46379         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
46380         * tests/unistdio/test-u8-printf1.h: Likewise.
46381         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
46382         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
46383         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
46384         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
46385         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
46386         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
46387         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
46388         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
46389         * tests/unistdio/test-ulc-printf1.h: Likewise.
46390         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
46391         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
46392         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
46393         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
46394         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
46395         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
46396         * tests/uniwidth/test-u16-strwidth.c: Likewise.
46397         * tests/uniwidth/test-u16-width.c: Likewise.
46398         * tests/uniwidth/test-u32-strwidth.c: Likewise.
46399         * tests/uniwidth/test-u32-width.c: Likewise.
46400         * tests/uniwidth/test-u8-strwidth.c: Likewise.
46401         * tests/uniwidth/test-u8-width.c: Likewise.
46402         * tests/uniwidth/test-uc_width.c: Likewise.
46403         * config/srclist-update: Likewise.
46404         (fixlicense): Update to GPLv3+.
46405
46406         Change copyright notice from LGPLv2.1+ to LGPLv3+.
46407         * tests/test-tsearch.c: Change copyright notice.
46408
46409         Change copyright notice from LGPLv2.0+ to LGPLv3+.
46410         * lib/c-strcaseeq.h: Change copyright notice.
46411         * lib/streq.h: Likewise.
46412         * lib/uniconv.h: Likewise.
46413         * lib/uniconv/u-conv-from-enc.h: Likewise.
46414         * lib/uniconv/u-conv-to-enc.h: Likewise.
46415         * lib/uniconv/u-strconv-from-enc.h: Likewise.
46416         * lib/uniconv/u-strconv-to-enc.h: Likewise.
46417         * lib/uniconv/u16-conv-from-enc.c: Likewise.
46418         * lib/uniconv/u16-conv-to-enc.c: Likewise.
46419         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
46420         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
46421         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
46422         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
46423         * lib/uniconv/u32-conv-from-enc.c: Likewise.
46424         * lib/uniconv/u32-conv-to-enc.c: Likewise.
46425         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
46426         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
46427         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
46428         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
46429         * lib/uniconv/u8-conv-from-enc.c: Likewise.
46430         * lib/uniconv/u8-conv-to-enc.c: Likewise.
46431         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
46432         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
46433         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
46434         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
46435         * lib/uniname.h: Likewise.
46436         * lib/uniname/uniname.c: Likewise.
46437         * lib/unistdio.h: Likewise.
46438         * lib/unistdio/u-asnprintf.h: Likewise.
46439         * lib/unistdio/u-asprintf.h: Likewise.
46440         * lib/unistdio/u-printf-args.c: Likewise.
46441         * lib/unistdio/u-printf-args.h: Likewise.
46442         * lib/unistdio/u-printf-parse.h: Likewise.
46443         * lib/unistdio/u-snprintf.h: Likewise.
46444         * lib/unistdio/u-sprintf.h: Likewise.
46445         * lib/unistdio/u-vasprintf.h: Likewise.
46446         * lib/unistdio/u-vsnprintf.h: Likewise.
46447         * lib/unistdio/u-vsprintf.h: Likewise.
46448         * lib/unistdio/u16-asnprintf.c: Likewise.
46449         * lib/unistdio/u16-asprintf.c: Likewise.
46450         * lib/unistdio/u16-printf-parse.c: Likewise.
46451         * lib/unistdio/u16-snprintf.c: Likewise.
46452         * lib/unistdio/u16-sprintf.c: Likewise.
46453         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
46454         * lib/unistdio/u16-u16-asprintf.c: Likewise.
46455         * lib/unistdio/u16-u16-snprintf.c: Likewise.
46456         * lib/unistdio/u16-u16-sprintf.c: Likewise.
46457         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
46458         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
46459         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
46460         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
46461         * lib/unistdio/u16-vasnprintf.c: Likewise.
46462         * lib/unistdio/u16-vasprintf.c: Likewise.
46463         * lib/unistdio/u16-vsnprintf.c: Likewise.
46464         * lib/unistdio/u16-vsprintf.c: Likewise.
46465         * lib/unistdio/u32-asnprintf.c: Likewise.
46466         * lib/unistdio/u32-asprintf.c: Likewise.
46467         * lib/unistdio/u32-printf-parse.c: Likewise.
46468         * lib/unistdio/u32-snprintf.c: Likewise.
46469         * lib/unistdio/u32-sprintf.c: Likewise.
46470         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
46471         * lib/unistdio/u32-u32-asprintf.c: Likewise.
46472         * lib/unistdio/u32-u32-snprintf.c: Likewise.
46473         * lib/unistdio/u32-u32-sprintf.c: Likewise.
46474         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
46475         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
46476         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
46477         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
46478         * lib/unistdio/u32-vasnprintf.c: Likewise.
46479         * lib/unistdio/u32-vasprintf.c: Likewise.
46480         * lib/unistdio/u32-vsnprintf.c: Likewise.
46481         * lib/unistdio/u32-vsprintf.c: Likewise.
46482         * lib/unistdio/u8-asnprintf.c: Likewise.
46483         * lib/unistdio/u8-asprintf.c: Likewise.
46484         * lib/unistdio/u8-printf-parse.c: Likewise.
46485         * lib/unistdio/u8-snprintf.c: Likewise.
46486         * lib/unistdio/u8-sprintf.c: Likewise.
46487         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
46488         * lib/unistdio/u8-u8-asprintf.c: Likewise.
46489         * lib/unistdio/u8-u8-snprintf.c: Likewise.
46490         * lib/unistdio/u8-u8-sprintf.c: Likewise.
46491         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
46492         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
46493         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
46494         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
46495         * lib/unistdio/u8-vasnprintf.c: Likewise.
46496         * lib/unistdio/u8-vasprintf.c: Likewise.
46497         * lib/unistdio/u8-vsnprintf.c: Likewise.
46498         * lib/unistdio/u8-vsprintf.c: Likewise.
46499         * lib/unistdio/ulc-asnprintf.c: Likewise.
46500         * lib/unistdio/ulc-asprintf.c: Likewise.
46501         * lib/unistdio/ulc-printf-parse.c: Likewise.
46502         * lib/unistdio/ulc-snprintf.c: Likewise.
46503         * lib/unistdio/ulc-sprintf.c: Likewise.
46504         * lib/unistdio/ulc-vasnprintf.c: Likewise.
46505         * lib/unistdio/ulc-vasprintf.c: Likewise.
46506         * lib/unistdio/ulc-vsnprintf.c: Likewise.
46507         * lib/unistdio/ulc-vsprintf.c: Likewise.
46508         * lib/unistr.h: Likewise.
46509         * lib/unistr/u-cpy-alloc.h: Likewise.
46510         * lib/unistr/u-cpy.h: Likewise.
46511         * lib/unistr/u-endswith.h: Likewise.
46512         * lib/unistr/u-move.h: Likewise.
46513         * lib/unistr/u-set.h: Likewise.
46514         * lib/unistr/u-startswith.h: Likewise.
46515         * lib/unistr/u-stpcpy.h: Likewise.
46516         * lib/unistr/u-stpncpy.h: Likewise.
46517         * lib/unistr/u-strcat.h: Likewise.
46518         * lib/unistr/u-strcpy.h: Likewise.
46519         * lib/unistr/u-strcspn.h: Likewise.
46520         * lib/unistr/u-strdup.h: Likewise.
46521         * lib/unistr/u-strlen.h: Likewise.
46522         * lib/unistr/u-strncat.h: Likewise.
46523         * lib/unistr/u-strncpy.h: Likewise.
46524         * lib/unistr/u-strnlen.h: Likewise.
46525         * lib/unistr/u-strpbrk.h: Likewise.
46526         * lib/unistr/u-strspn.h: Likewise.
46527         * lib/unistr/u-strstr.h: Likewise.
46528         * lib/unistr/u-strtok.h: Likewise.
46529         * lib/unistr/u16-check.c: Likewise.
46530         * lib/unistr/u16-chr.c: Likewise.
46531         * lib/unistr/u16-cmp.c: Likewise.
46532         * lib/unistr/u16-cpy-alloc.c: Likewise.
46533         * lib/unistr/u16-cpy.c: Likewise.
46534         * lib/unistr/u16-endswith.c: Likewise.
46535         * lib/unistr/u16-mblen.c: Likewise.
46536         * lib/unistr/u16-mbsnlen.c: Likewise.
46537         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46538         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46539         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46540         * lib/unistr/u16-mbtouc.c: Likewise.
46541         * lib/unistr/u16-mbtoucr.c: Likewise.
46542         * lib/unistr/u16-move.c: Likewise.
46543         * lib/unistr/u16-next.c: Likewise.
46544         * lib/unistr/u16-prev.c: Likewise.
46545         * lib/unistr/u16-set.c: Likewise.
46546         * lib/unistr/u16-startswith.c: Likewise.
46547         * lib/unistr/u16-stpcpy.c: Likewise.
46548         * lib/unistr/u16-stpncpy.c: Likewise.
46549         * lib/unistr/u16-strcat.c: Likewise.
46550         * lib/unistr/u16-strchr.c: Likewise.
46551         * lib/unistr/u16-strcmp.c: Likewise.
46552         * lib/unistr/u16-strcpy.c: Likewise.
46553         * lib/unistr/u16-strcspn.c: Likewise.
46554         * lib/unistr/u16-strdup.c: Likewise.
46555         * lib/unistr/u16-strlen.c: Likewise.
46556         * lib/unistr/u16-strmblen.c: Likewise.
46557         * lib/unistr/u16-strmbtouc.c: Likewise.
46558         * lib/unistr/u16-strncat.c: Likewise.
46559         * lib/unistr/u16-strncmp.c: Likewise.
46560         * lib/unistr/u16-strncpy.c: Likewise.
46561         * lib/unistr/u16-strnlen.c: Likewise.
46562         * lib/unistr/u16-strpbrk.c: Likewise.
46563         * lib/unistr/u16-strrchr.c: Likewise.
46564         * lib/unistr/u16-strspn.c: Likewise.
46565         * lib/unistr/u16-strstr.c: Likewise.
46566         * lib/unistr/u16-strtok.c: Likewise.
46567         * lib/unistr/u16-to-u32.c: Likewise.
46568         * lib/unistr/u16-to-u8.c: Likewise.
46569         * lib/unistr/u16-uctomb-aux.c: Likewise.
46570         * lib/unistr/u16-uctomb.c: Likewise.
46571         * lib/unistr/u32-check.c: Likewise.
46572         * lib/unistr/u32-chr.c: Likewise.
46573         * lib/unistr/u32-cmp.c: Likewise.
46574         * lib/unistr/u32-cpy-alloc.c: Likewise.
46575         * lib/unistr/u32-cpy.c: Likewise.
46576         * lib/unistr/u32-endswith.c: Likewise.
46577         * lib/unistr/u32-mblen.c: Likewise.
46578         * lib/unistr/u32-mbsnlen.c: Likewise.
46579         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46580         * lib/unistr/u32-mbtouc.c: Likewise.
46581         * lib/unistr/u32-mbtoucr.c: Likewise.
46582         * lib/unistr/u32-move.c: Likewise.
46583         * lib/unistr/u32-next.c: Likewise.
46584         * lib/unistr/u32-prev.c: Likewise.
46585         * lib/unistr/u32-set.c: Likewise.
46586         * lib/unistr/u32-startswith.c: Likewise.
46587         * lib/unistr/u32-stpcpy.c: Likewise.
46588         * lib/unistr/u32-stpncpy.c: Likewise.
46589         * lib/unistr/u32-strcat.c: Likewise.
46590         * lib/unistr/u32-strchr.c: Likewise.
46591         * lib/unistr/u32-strcmp.c: Likewise.
46592         * lib/unistr/u32-strcpy.c: Likewise.
46593         * lib/unistr/u32-strcspn.c: Likewise.
46594         * lib/unistr/u32-strdup.c: Likewise.
46595         * lib/unistr/u32-strlen.c: Likewise.
46596         * lib/unistr/u32-strmblen.c: Likewise.
46597         * lib/unistr/u32-strmbtouc.c: Likewise.
46598         * lib/unistr/u32-strncat.c: Likewise.
46599         * lib/unistr/u32-strncmp.c: Likewise.
46600         * lib/unistr/u32-strncpy.c: Likewise.
46601         * lib/unistr/u32-strnlen.c: Likewise.
46602         * lib/unistr/u32-strpbrk.c: Likewise.
46603         * lib/unistr/u32-strrchr.c: Likewise.
46604         * lib/unistr/u32-strspn.c: Likewise.
46605         * lib/unistr/u32-strstr.c: Likewise.
46606         * lib/unistr/u32-strtok.c: Likewise.
46607         * lib/unistr/u32-to-u16.c: Likewise.
46608         * lib/unistr/u32-to-u8.c: Likewise.
46609         * lib/unistr/u32-uctomb.c: Likewise.
46610         * lib/unistr/u8-check.c: Likewise.
46611         * lib/unistr/u8-chr.c: Likewise.
46612         * lib/unistr/u8-cmp.c: Likewise.
46613         * lib/unistr/u8-cpy-alloc.c: Likewise.
46614         * lib/unistr/u8-cpy.c: Likewise.
46615         * lib/unistr/u8-endswith.c: Likewise.
46616         * lib/unistr/u8-mblen.c: Likewise.
46617         * lib/unistr/u8-mbsnlen.c: Likewise.
46618         * lib/unistr/u8-mbtouc-aux.c: Likewise.
46619         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46620         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46621         * lib/unistr/u8-mbtouc.c: Likewise.
46622         * lib/unistr/u8-mbtoucr.c: Likewise.
46623         * lib/unistr/u8-move.c: Likewise.
46624         * lib/unistr/u8-next.c: Likewise.
46625         * lib/unistr/u8-prev.c: Likewise.
46626         * lib/unistr/u8-set.c: Likewise.
46627         * lib/unistr/u8-startswith.c: Likewise.
46628         * lib/unistr/u8-stpcpy.c: Likewise.
46629         * lib/unistr/u8-stpncpy.c: Likewise.
46630         * lib/unistr/u8-strcat.c: Likewise.
46631         * lib/unistr/u8-strchr.c: Likewise.
46632         * lib/unistr/u8-strcmp.c: Likewise.
46633         * lib/unistr/u8-strcpy.c: Likewise.
46634         * lib/unistr/u8-strcspn.c: Likewise.
46635         * lib/unistr/u8-strdup.c: Likewise.
46636         * lib/unistr/u8-strlen.c: Likewise.
46637         * lib/unistr/u8-strmblen.c: Likewise.
46638         * lib/unistr/u8-strmbtouc.c: Likewise.
46639         * lib/unistr/u8-strncat.c: Likewise.
46640         * lib/unistr/u8-strncmp.c: Likewise.
46641         * lib/unistr/u8-strncpy.c: Likewise.
46642         * lib/unistr/u8-strnlen.c: Likewise.
46643         * lib/unistr/u8-strpbrk.c: Likewise.
46644         * lib/unistr/u8-strrchr.c: Likewise.
46645         * lib/unistr/u8-strspn.c: Likewise.
46646         * lib/unistr/u8-strstr.c: Likewise.
46647         * lib/unistr/u8-strtok.c: Likewise.
46648         * lib/unistr/u8-to-u16.c: Likewise.
46649         * lib/unistr/u8-to-u32.c: Likewise.
46650         * lib/unistr/u8-uctomb-aux.c: Likewise.
46651         * lib/unistr/u8-uctomb.c: Likewise.
46652         * lib/unitypes.h: Likewise.
46653         * lib/uniwidth.h: Likewise.
46654         * lib/uniwidth/cjk.h: Likewise.
46655         * lib/uniwidth/u16-strwidth.c: Likewise.
46656         * lib/uniwidth/u16-width.c: Likewise.
46657         * lib/uniwidth/u32-strwidth.c: Likewise.
46658         * lib/uniwidth/u32-width.c: Likewise.
46659         * lib/uniwidth/u8-strwidth.c: Likewise.
46660         * lib/uniwidth/u8-width.c: Likewise.
46661         * lib/uniwidth/width.c: Likewise.
46662
46663 2007-10-07  Bruno Haible  <bruno@clisp.org>
46664
46665         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
46666         The file is still under LGPL (see modules/inttypes).
46667
46668 2007-10-06  Bruno Haible  <bruno@clisp.org>
46669
46670         * modules/trunc (Dependencies): Add 'extensions'.
46671         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
46672         Reported by Ben Pfaff <blp@gnu.org>.
46673
46674 2007-10-06  Bruno Haible  <bruno@clisp.org>
46675
46676         * modules/freopen-tests: New file.
46677         * tests/test-freopen.c: New file.
46678
46679         * modules/fopen-tests: New file.
46680         * tests/test-fopen.c: New file.
46681
46682         * modules/fopen: New file.
46683         * lib/fopen.c: New file.
46684         * m4/fopen.m4: New file.
46685         * modules/freopen: New file.
46686         * lib/freopen.c: New file.
46687         * m4/freopen.m4: New file.
46688         * lib/stdio.in.h (fopen, freopen): New declarations.
46689         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
46690         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46691         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
46692         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46693         * doc/functions/fopen.texi: Mention the 'fopen' module.
46694         * doc/functions/freopen.texi: Mention the 'freopen' module.
46695
46696 2007-10-06  Bruno Haible  <bruno@clisp.org>
46697
46698         * modules/open-tests: New file.
46699         * tests/test-open.c: New file.
46700
46701         * modules/open: New file.
46702         * lib/open.c: New file.
46703         * m4/open.m4: New file.
46704         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
46705         lib/open.c does.
46706         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
46707         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
46708         macros.
46709         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
46710         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
46711         REPLACE_OPEN.
46712         * doc/functions/open.texi: Mention the 'open' module.
46713
46714 2007-10-04  Bruno Haible  <bruno@clisp.org>
46715
46716         * modules/ceill-tests: New file.
46717         * tests/test-ceill.c: New file.
46718
46719         * modules/ceill: New file.
46720         * lib/ceill.c: Replace entire file.
46721         * m4/ceill.m4: New file.
46722         * lib/math.in.h (ceill): Replace declaration.
46723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
46724         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
46725         * doc/functions/ceill.texi: Mention the 'ceill' module.
46726         * modules/mathl (Files): Remove lib/ceill.c.
46727         (Depends-on): Add ceill.
46728
46729 2007-10-04  Bruno Haible  <bruno@clisp.org>
46730
46731         * modules/ceilf-tests: New file.
46732         * tests/test-ceilf.c: New file.
46733
46734         * modules/ceilf: New file.
46735         * lib/ceil.c: New file.
46736         * lib/ceilf.c: New file.
46737         * m4/ceilf.m4: New file.
46738         * lib/math.in.h (ceilf): New declaration.
46739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
46740         HAVE_DECL_CEILF.
46741         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
46742         HAVE_DECL_CEILF.
46743         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
46744
46745 2007-10-04  Bruno Haible  <bruno@clisp.org>
46746
46747         * modules/floorl-tests: New file.
46748         * tests/test-floorl.c: New file.
46749
46750         * modules/floorl: New file.
46751         * lib/floorl.c: Replace entire file.
46752         * m4/floorl.m4: New file.
46753         * lib/math.in.h (floorl): Replace declaration.
46754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
46755         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
46756         * doc/functions/floorl.texi: Mention the 'floorl' module.
46757         * modules/mathl (Files): Remove lib/floorl.c.
46758         (Depends-on): Add floorl.
46759
46760 2007-10-04  Bruno Haible  <bruno@clisp.org>
46761
46762         * modules/floorf-tests: New file.
46763         * tests/test-floorf.c: New file.
46764
46765         * modules/floorf: New file.
46766         * lib/floor.c: New file.
46767         * lib/floorf.c: New file.
46768         * m4/floorf.m4: New file.
46769         * lib/math.in.h (floorf): New declaration.
46770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
46771         HAVE_DECL_FLOORF.
46772         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
46773         HAVE_DECL_FLOORF.
46774         * doc/functions/floorf.texi: Mention the 'floorf' module.
46775
46776 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
46777             Bruno Haible  <bruno@clisp.org>
46778
46779         Advertise for the Git server instead of the CVS server.
46780         * doc/gnulib-intro.texi (Steady Development): Mention the Git
46781         repository instead of the CVS one.
46782         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
46783         about all VCS systems generically.
46784         * doc/gnulib.texi (Introduction): Capitalize `Git'.
46785
46786 2007-10-04  Bruno Haible  <bruno@clisp.org>
46787
46788         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
46789         means.
46790         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
46791
46792 2007-10-04  Bruno Haible  <bruno@clisp.org>
46793
46794         * modules/truncl-tests: New file.
46795         * tests/test-truncl.c: New file.
46796
46797         * modules/truncl: New file.
46798         * lib/truncl.c: New file.
46799         * m4/truncl.m4: New file.
46800         * lib/math.in.h (truncl): New declaration.
46801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
46802         HAVE_DECL_TRUNCL.
46803         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
46804         HAVE_DECL_TRUNCL.
46805         * doc/functions/truncl.texi: Mention the 'truncl' module.
46806
46807 2007-10-04  Bruno Haible  <bruno@clisp.org>
46808
46809         * modules/truncf-tests: New file.
46810         * tests/test-truncf.c: New file.
46811
46812         * modules/truncf: New file.
46813         * lib/trunc.c: Make paramerizable through USE_* macros.
46814         * lib/truncf.c: New file.
46815         * m4/truncf.m4: New file.
46816         * lib/math.in.h (truncf): New declaration.
46817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
46818         HAVE_DECL_TRUNCF.
46819         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
46820         HAVE_DECL_TRUNCF.
46821         * doc/functions/truncf.texi: Mention the 'truncf' module.
46822
46823 2007-10-03  Bruno Haible  <bruno@clisp.org>
46824
46825         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46826         augmentation also for tests modules.
46827         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
46828         * modules/atexit-tests (Makefile.am): Likewise.
46829         * modules/binary-io-tests (Makefile.am): Likewise.
46830         * modules/c-strcase-tests (Makefile.am): Likewise.
46831         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
46832         * modules/canonicalize-tests (Makefile.am): Likewise.
46833         * modules/closein-tests (Makefile.am): Likewise.
46834         * modules/fprintf-posix-tests (Makefile.am): Likewise.
46835         * modules/freadahead-tests (Makefile.am): Likewise.
46836         * modules/fseek-tests (Makefile.am): Likewise.
46837         * modules/fseeko-tests (Makefile.am): Likewise.
46838         * modules/ftell-tests (Makefile.am): Likewise.
46839         * modules/ftello-tests (Makefile.am): Likewise.
46840         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
46841         * modules/isnanl-tests (Makefile.am): Likewise.
46842         * modules/lseek-tests (Makefile.am): Likewise.
46843         * modules/mbscasecmp-tests (Makefile.am): Likewise.
46844         * modules/mbscasestr-tests (Makefile.am): Likewise.
46845         * modules/mbschr-tests (Makefile.am): Likewise.
46846         * modules/mbscspn-tests (Makefile.am): Likewise.
46847         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
46848         * modules/mbspbrk-tests (Makefile.am): Likewise.
46849         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
46850         * modules/mbsrchr-tests (Makefile.am): Likewise.
46851         * modules/mbsspn-tests (Makefile.am): Likewise.
46852         * modules/mbsstr-tests (Makefile.am): Likewise.
46853         * modules/printf-posix-tests (Makefile.am): Likewise.
46854         * modules/snprintf-posix-tests (Makefile.am): Likewise.
46855         * modules/sprintf-posix-tests (Makefile.am): Likewise.
46856         * modules/tsearch-tests (Makefile.am): Likewise.
46857         * modules/uniname/uniname-tests (Makefile.am): Likewise.
46858         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
46859         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
46860         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
46861         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
46862         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
46863         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
46864         * modules/vprintf-posix-tests (Makefile.am): Likewise.
46865         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
46866         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
46867         * modules/xstrtoimax-tests (Makefile.am): Likewise.
46868         * modules/xstrtol-tests (Makefile.am): Likewise.
46869         * modules/xstrtoumax-tests (Makefile.am): Likewise.
46870         * modules/yesno-tests (Makefile.am): Likewise.
46871
46872 2007-10-03  Bruno Haible  <bruno@clisp.org>
46873
46874         * modules/trunc-tests: New file.
46875         * tests/test-trunc.c: New file.
46876
46877         * modules/trunc: New file.
46878         * lib/trunc.c: New file.
46879         * m4/trunc.m4: New file.
46880         * lib/math.in.h (trunc): New declaration.
46881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
46882         HAVE_DECL_TRUNC.
46883         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
46884         HAVE_DECL_TRUNC.
46885         * doc/functions/trunc.texi: Mention the 'trunc' module.
46886
46887 2007-10-03  Bruno Haible  <bruno@clisp.org>
46888
46889         * tests/test-fpending.c: New file, mostly copied
46890         from coreutils/lib/t-fpending.c.
46891         * modules/fpending-tests: New file.
46892
46893 2007-10-03  Bruno Haible  <bruno@clisp.org>
46894
46895         Port the stdio extensions to QNX (untested).
46896         * lib/fseterr.c (fseterr): Add support for QNX.
46897         * lib/fbufmode.c (fbufmode): Likewise.
46898         * lib/freadable.c (freadable): Likewise.
46899         * lib/fwritable.c (fwritable): Likewise.
46900         * lib/freading.c (freading): Likewise.
46901         * lib/fwriting.c (fwriting): Likewise.
46902         * lib/freadahead.c (freadahed): Likewise.
46903         * lib/fpurge.c (fpurge): Likewise.
46904         * lib/fseeko.c (rpl_fseeko): Likewise.
46905
46906 2007-10-03  Bruno Haible  <bruno@clisp.org>
46907             Jim Meyering  <jim@meyering.net>
46908             Eric Blake  <ebb9@byu.net>
46909
46910         * doc/relocatable.texi: Use @command instead of @program.
46911
46912 2007-10-02  Jim Meyering  <jim@meyering.net>
46913
46914         Perform one more "_.h" -> ".in.h" substitution.
46915         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
46916         instead of unistd_.h here, too.
46917
46918 2007-10-01  Bruno Haible  <bruno@clisp.org>
46919
46920         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
46921         Needed for the alloca-opt module.
46922
46923 2007-09-30  Bruno Haible  <bruno@clisp.org>
46924
46925         * lib/alloca.in.h: Renamed from lib/alloca_.h.
46926         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
46927         alloca_.h.
46928         * lib/argz.in.h: Renamed from lib/argz_.h.
46929         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
46930         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
46931         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
46932         byteswap_.h.
46933         * lib/dirent.in.h: Renamed from lib/dirent_.h.
46934         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
46935         dirent_.h.
46936         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
46937         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
46938         fcntl_.h.
46939         * lib/float.in.h: Renamed from lib/float_.h.
46940         * modules/float (Files, Makefile.am): Use float.in.h instead of
46941         float_.h.
46942         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
46943         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
46944         fnmatch_.h.
46945         * lib/getopt.in.h: Renamed from lib/getopt_.h.
46946         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
46947         getopt_.h.
46948         * lib/glob.in.h: Renamed from lib/glob_.h.
46949         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
46950         * lib/iconv.in.h: Renamed from lib/iconv_.h.
46951         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
46952         iconv_.h.
46953         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
46954         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
46955         inttypes_.h.
46956         * lib/locale.in.h: Renamed from lib/locale_.h.
46957         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
46958         locale_.h.
46959         * lib/math.in.h: Renamed from lib/math_.h.
46960         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
46961         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
46962         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
46963         of netinet_in_.h. Add dependency.
46964         * lib/poll.in.h: Renamed from lib/poll_.h.
46965         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
46966         * lib/search.in.h: Renamed from lib/search_.h.
46967         * modules/search (Files, Makefile.am): Use search.in.h instead of
46968         search_.h.
46969         * lib/signal.in.h: Renamed from lib/signal_.h.
46970         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
46971         _signal.h.
46972         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
46973         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
46974         stdbool_.h.
46975         * lib/stdint.in.h: Renamed from lib/stdint_.h.
46976         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
46977         stdint_.h.
46978         * lib/stdio.in.h: Renamed from lib/stdio_.h.
46979         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
46980         stdio_.h.
46981         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
46982         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
46983         stdlib_.h.
46984         * lib/string.in.h: Renamed from lib/string_.h.
46985         * modules/string (Files, Makefile.am): Use string.in.h instead of
46986         string_.h.
46987         * doc/gnulib-tool.texi (Initial import): Update.
46988         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
46989         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
46990         of sys_select_.h. Add dependency.
46991         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
46992         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
46993         of sys_socket_.h.
46994         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
46995         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
46996         sys_stat_.h.
46997         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
46998         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
46999         sys_time_.h.
47000         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
47001         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
47002         sysexits_.h.
47003         * lib/time.in.h: Renamed from lib/time_.h.
47004         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
47005         * lib/unistd.in.h: Renamed from lib/unistd_.h.
47006         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
47007         unistd_.h.
47008         * lib/wchar.in.h: Renamed from lib/wchar_.h.
47009         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
47010         wchar_.h.
47011         * lib/wctype.in.h: Renamed from lib/wctype_.h.
47012         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
47013         wctype_.h.
47014         * build-aux/bootstrap (slurp): Update.
47015         * lib/.cppi-disable: Update.
47016
47017 2007-09-30  Bruno Haible  <bruno@clisp.org>
47018
47019         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
47020         Needed on BeOS.
47021
47022 2007-09-30  Bruno Haible  <bruno@clisp.org>
47023
47024         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
47025
47026 2007-09-29  Bruno Haible  <bruno@clisp.org>
47027
47028         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
47029
47030 2007-09-29  Bruno Haible  <bruno@clisp.org>
47031
47032         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
47033         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
47034         * build-aux/install-reloc: Compile also areadlink.c.
47035         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
47036
47037 2007-09-29  Bruno Haible  <bruno@clisp.org>
47038
47039         * gnulib-tool (func_emit_initmacro_done): Indentation.
47040
47041 2007-09-29  Bruno Haible  <bruno@clisp.org>
47042
47043         * README: Add CVS checkout update instructions.
47044         Info from Bob Proulx <bob@proulx.com>.
47045
47046 2007-09-28  Eric Blake  <ebb9@byu.net>
47047
47048         Provide move-if-change.
47049         * build-aux/move-if-change: New file, based on best practice
47050         rather than any canonical upstream location.
47051
47052 2007-09-28  Jim Meyering  <jim@meyering.net>
47053
47054         Fix canonicalize loop-detection corner case.
47055         Do not attempt to stat the symlink values stored via seen_triple.
47056         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
47057         on linux-2.6.18, (but not 2.6.22).
47058         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
47059         triple_compare.  The former compares dev,ino,filename, while the latter
47060         would actually stat dirname(filename) when dev and ino were equal.
47061         * lib/hash-triple.c: Install <string.h>.
47062         (STREQ): Define.
47063         (triple_compare_ino_str): New function.
47064         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
47065
47066 2007-09-28  Eric Blake  <ebb9@byu.net>
47067
47068         Enforce that AC_REPLACE_FUNCS files exist.
47069         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
47070         override check for typos.
47071
47072         Fix test-closein on Solaris 10.
47073         * tests/test-closein.c (main): Don't assume stdin can be inherited
47074         closed on all systems.
47075         * tests/test-closein.sh: Likewise.
47076         Reported by Piotr Tarnowski.
47077
47078 2007-09-28  Jim Meyering  <jim@meyering.net>
47079
47080         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
47081
47082 2007-09-27  Jim Meyering  <jim@meyering.net>
47083
47084         canonicalize: Avoid a false-positive cycle failure.
47085         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
47086         Sort.  Remove cycle-check.
47087         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
47088         not cycle-check.h.
47089         (seen_triple): New function.
47090         (canonicalize_filename_mode): Use it instead of cycle-check.
47091         * tests/test-canonicalize.c: Add a test for this bug.
47092         * tests/test-canonicalize.sh: Set up and run the test.
47093
47094         New module, file-set, from coreutils.
47095         * modules/file-set: Define it.
47096         * lib/file-set.c, lib/file-set.h: Implement.
47097
47098         New module, hash-triple, from coreutils.
47099         * modules/hash-triple: Define it.
47100         * lib/hash-triple.c, lib/hash-triple.h: Implement.
47101
47102 2007-09-25  Eric Blake  <ebb9@byu.net>
47103
47104         Fix strerror on Interix.
47105         * lib/string_.h (strerror): Declare replacement.
47106         * doc/functions/strerror.texi (strerror): Document the Interix
47107         shortcoming.
47108         * modules/string (Makefile.am): Support new hooks.
47109         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
47110         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
47111         gl_FUNC_STRERROR_SEPARATE.
47112         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
47113         * lib/strerror.c (rpl_strerror): Provide replacement.
47114         * modules/strerror (Depends-on): Add string.
47115         (configure.ac): Detect use of module.
47116         * tests/test-strerror.c: New file.
47117         * modules/strerror-tests: New test module.
47118         * modules/argp (Depends-on): Add strerror.
47119         * modules/error (Depends-on): Likewise.
47120         Reported by Martin Koeppe.
47121
47122 2007-09-24  Bruno Haible  <bruno@clisp.org>
47123
47124         * README: Update git instructions.
47125
47126 2007-09-24  Eric Blake  <ebb9@byu.net>
47127
47128         Revert fpending breakage from 2007-09-08.
47129         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
47130         __fpending.c.
47131
47132 2007-09-24  Jim Meyering  <jim@meyering.net>
47133
47134         filenamecat.c: Add a test.
47135         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
47136         showing how the function works when DIR is the empty string.
47137
47138 2007-09-21  Simon Josefsson  <simon@josefsson.org>
47139
47140         * tests/test-canonicalize.sh: Turn on executable bit.
47141
47142 2007-09-19  Eric Blake  <ebb9@byu.net>
47143
47144         * README: Update CVS instructions.
47145
47146 2007-09-18  Bruno Haible  <bruno@clisp.org>
47147
47148         * modules/areadlink: New file.
47149         * lib/areadlink.h (areadlink): New declaration.
47150         * lib/areadlink.c: New file, based on lib/xreadlink.c.
47151
47152 2007-09-17  Jim Meyering  <jim@meyering.net>
47153
47154         * lib/savewd.c (ESTALE) [!defined]: Define.
47155         Reported to be required on Interix by Martin Koeppe.
47156
47157 2007-09-17  Bruno Haible  <bruno@clisp.org>
47158
47159         * gnulib-tool (func_version): Use $version.
47160
47161 2007-09-16  Bruno Haible  <bruno@clisp.org>
47162
47163         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
47164         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
47165         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
47166         Reported by Greg Schafer <gschafer@zip.com.au>.
47167
47168 2007-09-15  Bruno Haible  <bruno@clisp.org>
47169
47170         * gnulib-tool (sed): Try a little harder to make bash understand the
47171         alias.
47172         Reported by Bruce Korb <bruce.korb@gmail.com>.
47173
47174 2007-09-13  Eric Blake  <ebb9@byu.net>
47175
47176         * ChangeLog: Remove conflict markers.
47177
47178 2007-09-13  Simon Josefsson  <simon@josefsson.org>
47179
47180         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
47181         Reported by Bruno Haible <bruno@clisp.org>.
47182
47183 2007-09-12  Bruno Haible  <bruno@clisp.org>
47184
47185         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
47186         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
47187         is not defined.
47188
47189 2007-09-12  Eric Blake  <ebb9@byu.net>
47190
47191         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
47192         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
47193         Autoconf definition.
47194         * modules/euidaccess (Depends-on): Add extensions, for
47195         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
47196         * modules/fnmatch (Depends-on): Likewise.
47197         * modules/getaddrinfo (Depends-on): Likewise.
47198         * modules/getdelim (Depends-on): Likewise.
47199         * modules/getline (Depends-on): Likewise.
47200         * modules/getsubopt (Depends-on): Likewise.
47201         * modules/gettext (Depends-on): Likewise.
47202         * modules/group-member (Depends-on): Likewise.
47203         * modules/mbchar (Depends-on): Likewise.
47204         * modules/memmem (Depends-on): Likewise.
47205         * modules/mempcpy (Depends-on): Likewise.
47206         * modules/memrchr (Depends-on): Likewise.
47207         * modules/pagealign_alloc (Depends-on): Likewise.
47208         * modules/readutmp (Depends-on): Likewise.
47209         * modules/stpcpy (Depends-on): Likewise.
47210         * modules/stpncpy (Depends-on): Likewise.
47211         * modules/strchrnul (Depends-on): Likewise.
47212         * modules/strndup (Depends-on): Likewise.
47213         * modules/strsep (Depends-on): Likewise.
47214         * modules/strverscmp (Depends-on): Likewise.
47215         * modules/vasprintf (Depends-on): Likewise.
47216         * modules/wcwidth (Depends-on): Likewise.
47217         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
47218         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
47219         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
47220         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
47221         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47222         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47223         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
47224         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47225         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
47226         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
47227         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47228         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
47229         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
47230         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47231         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
47232         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47233         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47234         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
47235         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47236         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
47237         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47238         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
47239         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
47240         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
47241         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
47242         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47243         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
47244         so that lock.m4 can be used in gettext without extensions module.
47245
47246 2007-09-11  Bruno Haible  <bruno@clisp.org>
47247
47248         * m4/isc-posix.m4: Remove file.
47249         Suggested by Eric Blake.
47250
47251 2007-09-11  Eric Blake  <ebb9@byu.net>
47252
47253         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
47254
47255 2007-09-10  Bruno Haible  <bruno@clisp.org>
47256
47257         * posix-modules: Fix typo in error message.
47258         Reported by Matt <mkraai@beckman.com>.
47259
47260 2007-09-09  Bruno Haible  <bruno@clisp.org>
47261
47262         * doc/functions/getdelim.texi: Update list of platforms lacking the
47263         function.
47264         * doc/functions/getline.texi: Likewise.
47265
47266 2007-09-09  Jim Meyering  <jim@meyering.net>
47267
47268         * lib/hash.c (hash_initialize): Detect calloc failure.
47269         Reported by Bruno Haible.
47270
47271 2007-09-09  Bruno Haible  <bruno@clisp.org>
47272
47273         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
47274         malloc or realloc fails.
47275
47276 2007-09-09  Bruno Haible  <bruno@clisp.org>
47277
47278         * modules/getcwd (Depends-on): Add malloc-posix.
47279         * modules/glob (Depends-on): Likewise.
47280         * modules/putenv (Depends-on): Likewise.
47281         * modules/strdup (Depends-on): Likewise.
47282         * modules/getdelim (Depends-on): Add realloc-posix.
47283         * modules/read-file (Depends-on): Likewise.
47284
47285 2007-09-09  Bruno Haible  <bruno@clisp.org>
47286
47287         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
47288         (gl_FUNC_MALLOC_POSIX): Require it.
47289         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
47290         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
47291         * modules/realloc (Files): Add m4/malloc.m4.
47292         * modules/calloc (Files): Likewise.
47293
47294 2007-09-09  Bruno Haible  <bruno@clisp.org>
47295
47296         * modules/malloc-posix: New file.
47297         * modules/malloc (Depends-on): Add malloc-posix.
47298         * lib/malloc.c: Include errno.h.
47299         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
47300         and a POSIX-compatible malloc into a single function. Set ENOMEM
47301         when returning NULL.
47302         * m4/malloc.m4: New file.
47303         * doc/functions/malloc.texi: Mention the malloc-posix module.
47304         * lib/stdlib_.h (malloc): New declaration.
47305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47306         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
47307         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
47308         and HAVE_MALLOC_POSIX.
47309
47310 2007-09-09  Bruno Haible  <bruno@clisp.org>
47311
47312         * modules/realloc-posix: New file.
47313         * modules/realloc (Depends-on): Add realloc-posix.
47314         * lib/realloc.c: Include errno.h.
47315         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
47316         and a POSIX-compatible realloc into a single function. Set ENOMEM
47317         when returning NULL.
47318         * m4/realloc.m4: New file.
47319         * doc/functions/realloc.texi: Mention the realloc-posix module.
47320         * lib/stdlib_.h (realloc): New declaration.
47321         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47322         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
47323         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
47324         and HAVE_REALLOC_POSIX.
47325
47326 2007-09-09  Bruno Haible  <bruno@clisp.org>
47327
47328         * modules/calloc-posix: New file.
47329         * modules/calloc (Depends-on): Add calloc-posix.
47330         * lib/calloc.c: Include errno.h.
47331         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
47332         and a POSIX-compatible calloc into a single function. Set ENOMEM
47333         when returning NULL.
47334         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
47335         * doc/functions/calloc.texi: Mention the calloc-posix module.
47336         * lib/stdlib_.h (calloc): New declaration.
47337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47338         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
47339         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
47340         and HAVE_CALLOC_POSIX.
47341
47342 2007-09-09  Bruno Haible  <bruno@clisp.org>
47343
47344         Allow for modules to show an arbitrary notice.
47345         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
47346         * gnulib-tool: New option --extract-notice.
47347         (func_usage): Document it.
47348         (sed_extract_prog): Update.
47349         (func_get_notice): New function.
47350         (func_modules_notice): New function.
47351         (func_import, func_create_testdir): Invoke it.
47352         Suggested by Jim Meyering.
47353
47354 2007-09-09  Bruno Haible  <bruno@clisp.org>
47355
47356         * gnulib-tool: New options --verbose, --quiet.
47357         (func_usage): Document them.
47358         (verbose): New variable.
47359         (func_execute_command): New function.
47360         (func_import): Don't show the module list and the file list if
47361         $verbose < 0.
47362         (func_create_testdir): Likewise. Use func_execute_command.
47363         (func_create_megatestdir): Use func_execute_command.
47364
47365 2007-09-08  Bruno Haible  <bruno@clisp.org>
47366
47367         * gnulib-tool (func_import): Prefer rsync over wget when available,
47368         for fetching the PO files.
47369
47370 2007-09-08  Bruno Haible  <bruno@clisp.org>
47371
47372         * posix-modules: New file. Portions copied from gnulib-tool.
47373         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
47374
47375 2007-09-08  Jim Meyering  <jim@meyering.net>
47376
47377         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
47378         * lib/fpending.h: Rename from __fpending.h.
47379         * lib/fpending.c: Rename from __fpending.c.
47380         Include "fpending.h", not "__fpending.h".
47381         * lib/__fpending.h, lib/__fpending.c: Remove files.
47382         * modules/fpending (Files): Reflect new file names.
47383         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
47384
47385 2007-09-08  Bruno Haible  <bruno@clisp.org>
47386
47387         * m4/inttypes-h.m4: Remove stub file.
47388
47389 2007-09-07  Simon Josefsson  <simon@josefsson.org>
47390
47391         * doc/headers/stdint.texi: Discuss #include_next issue.
47392
47393 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47394
47395         * build-aux/bootstrap: Remove obsolete comment about wget --help.
47396
47397 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47398
47399         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
47400         in variable name.
47401
47402 2007-09-03  Jim Meyering  <jim@meyering.net>
47403
47404         New module: git-version-gen.
47405         * modules/git-version-gen: New file.
47406
47407         Import changes from coreutils for bootstrap script.
47408
47409         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
47410
47411         bootstrap: uses rsync to download the .po files
47412         * build-aux/bootstrap (po_download_command_format): New global.
47413         (download_po_files): Use rsync.
47414         (update_po_files): Don't remove .po files after download,
47415         so future rsync runs can take advantage of the copies.
47416
47417         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
47418
47419         Solve the unnecessary-.po-file-regeneration problem once and for all.
47420         * build-aux/bootstrap (download_po_files): New function, renamed from
47421         get_translations.  Now, downloads, but doesn't update LINGUAS.
47422         (update_po_files): New function.
47423
47424         bootstrap: Ignore more.
47425         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
47426         uniwidth to e.g., lib/.gitignore.
47427         (slurp): Handle the sys_stat_.h -> sys mapping, too.
47428
47429         * build-aux/bootstrap: New setting: vc_ignore.
47430         (insert_sorted_if_absent): Create $file if absent.
47431         Adapt to new, possibly empty, list: $vc_ignore.
47432
47433         bootstrap: generate more ignorable names
47434         * build-aux/bootstrap (slurp): When generating ignorable names,
47435         also map .sin to .sed, .gperf to .c, and .y to .c.
47436
47437 2007-09-03  Jim Meyering  <jim@meyering.net>
47438
47439         * build-aux/git-version-gen: New file, from coreutils.  For details, see
47440         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
47441
47442 2007-09-02  Bruno Haible  <bruno@clisp.org>
47443
47444         Fix mis-recognition of 'mcs' on QNX 6.
47445         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
47446         output contains the string "Mono".
47447         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
47448         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
47449
47450 2007-09-01  Bruno Haible  <bruno@clisp.org>
47451
47452         Fix collision between uniwidth/* and linebreak modules.
47453         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
47454         u32_width): Remove declarations.
47455         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
47456         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
47457         streq3, streq2, streq1, streq0): Remove functions.
47458         (STREQ): Remove macro.
47459         (is_cjk_encoding): Remove function.
47460         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
47461         (uc_width, u8_width, u16_width, u32_width): Remove functions.
47462         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
47463         * NEWS: Document the change.
47464
47465 2007-09-01  Bruno Haible  <bruno@clisp.org>
47466
47467         * lib/streq.h: Add double-inclusion guard.
47468
47469 2007-09-01  Karl Berry  <karl@gnu.org>
47470
47471         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
47472
47473 2007-08-28  Jim Meyering  <jim@meyering.net>
47474
47475         Rename mreadlink_with_size to areadlink_with_size.
47476         * NEWS: Document the change.
47477         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
47478         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
47479         * lib/mreadlink.h: Rename this to...
47480         * lib/areadlink.h: ...this.
47481         * modules/mreadlink-with-size: Rename this to...
47482         * modules/areadlink-with-size: ...this.
47483         * lib/canonicalize.c: Reflect the renaming.
47484         * modules/canonicalize: Likewise.
47485
47486 2007-08-26  Bruno Haible  <bruno@clisp.org>
47487
47488         * gnulib-tool (func_import): When deciding which files to remove,
47489         consider also dangling symbolic links.
47490         Reported by Eric Blake.
47491
47492 2007-08-26  Bruno Haible  <bruno@clisp.org>
47493
47494         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
47495
47496 2007-08-23  Simon Josefsson  <simon@josefsson.org>
47497
47498         * lib/readline.c: Don't include getline.h, the prototype is now
47499         found in stdio.h.
47500
47501 2007-08-23  Jim Meyering  <jim@meyering.net>
47502
47503         Getdelim touchup.
47504         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
47505         around the funlockfile call, since funlockfile never sets errno.
47506         Don't set errno upon failed realloc.
47507
47508 2007-08-22  Eric Blake  <ebb9@byu.net>
47509
47510         Getline touchups.
47511         * lib/getdelim.c (getdelim): Revert regression that required *n to
47512         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
47513         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
47514         getdelim, rather than whether implementation is missing.
47515         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
47516         * lib/stdio_.h (getline): Also declare if replacement is
47517         required.
47518         * doc/functions/getdelim.texi: New file.
47519         * doc/functions/getline.texi: Likewise.
47520         * doc/gnulib.texi (Function Substitutes): Add new files.
47521         Reported by Bruno Haible.
47522
47523 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
47524
47525         * users.txt: Add Guile.
47526
47527 2007-08-22  Eric Blake  <ebb9@byu.net>
47528
47529         * tests/test-getdelim.c (main): Use remove, not unlink.
47530         * tests/test-getline.c (main): Likewise.
47531
47532         Move getline and getdelim into stdio.h, per POSIX 200x.
47533         * modules/getline (Files): Remove getline.h.
47534         (Depends-on): Add stdio.
47535         (configure.ac): Add module indicator.
47536         * modules/getdelim (Files): Remove getdelim.h.
47537         (Depends-on): Add stdio.
47538         (configure.ac): Add module indicator.
47539         * modules/stdio (Makefile.am): Work with new indicators.
47540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
47541         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
47542         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47543         * lib/getdelim.h: Delete.
47544         * lib/getline.h: Delete.
47545         * lib/stdio_.h (getdelim, getline): Declare.
47546         * modules/getdelim-tests: New module.
47547         * modules/getline-tests: Likewise.
47548         * tests/test-getdelim.c: New file.
47549         * tests/test-getline.c: Likewise.
47550         * NEWS: Document the change.
47551         * lib/getline.c: Update choice of header.
47552         * lib/csharpcomp.c: Likewise.
47553         * lib/getpass.c: Likewise.
47554         * lib/javacomp.c: Likewise.
47555         * lib/javaversion.c: Likewise.
47556         * lib/yesno.c: Likewise.
47557         * lib/getdelim.c: Likewise.
47558         (getdelim): Set errno on failure, and avoid memory leak.
47559
47560 2007-08-19  Bruno Haible  <bruno@clisp.org>
47561
47562         * modules/closein (Depends-on): Add freadahead.
47563         * lib/closein.c: Include freadahead.h.
47564         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
47565         is zero.
47566
47567 2007-08-19  Bruno Haible  <bruno@clisp.org>
47568
47569         * modules/freadahead-tests: New file.
47570         * tests/test-freadahead.sh: New file.
47571         * tests/test-freadahead.c: New file.
47572
47573         * modules/freadahead: New file.
47574         * lib/freadahead.h: New file.
47575         * lib/freadahead.c: New file.
47576         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
47577         fbufmode, fpurge, freadable, fwritable.
47578
47579 2007-08-19  Eric Blake  <ebb9@byu.net>
47580
47581         Test yesno in combination with closein.
47582         * lib/yesno.c (yesno): Document use of stdin.
47583         * modules/yesno-tests (Files): New module.
47584         * tests/test-yesno.c (main): New file.
47585         * tests/test-yesno.sh: Likewise.
47586
47587 2007-08-19  Bruno Haible  <bruno@clisp.org>
47588
47589         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
47590         * lib/fseeko.c (rpl_fseeko): Likewise.
47591         * lib/fseterr.c (fseterr): Likewise.
47592
47593 2007-08-19  Bruno Haible  <bruno@clisp.org>
47594
47595         * tests/test-lseek.c (main): Disable a test for BeOS.
47596         * doc/functions/lseek.texi: Document the BeOS bug.
47597
47598 2007-08-19  Bruno Haible  <bruno@clisp.org>
47599             Eric Blake  <ebb9@byu.net>
47600
47601         * lib/lseek.c: Include <sys/stat.h>.
47602         (rpl_lseek): Add workaround code also for Unix platforms.
47603         Needed for BeOS.
47604         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
47605         * doc/functions/lseek.texi: Document BeOS definiency.
47606
47607 2007-08-18  Bruno Haible  <bruno@clisp.org>
47608
47609         * modules/fstrcmp-tests: New file.
47610         * tests/test-fstrcmp.c: New file.
47611
47612 2007-08-18  Bruno Haible  <bruno@clisp.org>
47613
47614         * modules/fstrcmp: New file, from GNU gettext with modifications.
47615         * lib/fstrcmp.h: New file, from GNU gettext.
47616         * lib/fstrcmp.c: New file, from GNU gettext.
47617         * MODULES.html.sh (String handling): Add fstrcmp.
47618
47619 2007-08-18  Bruno Haible  <bruno@clisp.org>
47620
47621         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
47622         'bool'.
47623         (diag, compareseq): Remove const from the ctxt argument.
47624         (USE_HEURISTIC): Undefine at the end.
47625
47626 2007-08-18  Jim Meyering  <jim@meyering.net>
47627
47628         New file: lib/idcache.h
47629         * NEWS: Mention the addition.
47630         * modules/idcache (Files): Add lib/idcache.h
47631         * lib/idcache.c: Include "idcache.h".
47632         Don't include <sys/types.h>.
47633         Add a FIXME comment.
47634         Move file-scoped "static" declarations to the top.
47635         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
47636
47637 2007-08-17  Bruno Haible  <bruno@clisp.org>
47638         and Paul Eggert  <eggert@cs.ucla.edu>
47639
47640         * MODULES.html.sh: Add diffseq.
47641         * modules/diffseq: New file.
47642         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
47643         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
47644
47645 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47646
47647         Import changes from coreutils for bootstrap script.
47648
47649         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
47650
47651         * build-aux/bootstrap (slurp): Work even in environments where
47652         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
47653         current code does not slurp files whose names start with ".", and
47654         this looks like it might be a troublesome area.
47655
47656         2007-07-11  Jim Meyering  <jim@meyering.net>
47657
47658         If there's a GPL vN copyright comment, require that N == 3.
47659
47660         2007-07-08  Jim Meyering  <jim@meyering.net>
47661
47662         Run the coreutils-specific code only if tests/Makefile.am.in exists.
47663         * build-aux/bootstrap (mam_template): Move definition out of loop.
47664
47665         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
47666
47667         * build-aux/bootstrap (symlink_to_dir): Rename function from
47668         symlink_to_gnulib.  Add a directory parameter.  Update all
47669         callers.
47670         (cp_mark_as_generated): Also check for -- and link to -- files in
47671         gl/.
47672
47673         2007-07-08  Jim Meyering  <jim@meyering.net>
47674
47675         Adapt to deeper hierarchy in gnulib.
47676         * build-aux/bootstrap (symlink_to_dir): If the destination
47677         directory doesn't exist, create it. This is required at least for
47678         "lib/uniwidth/cjk.h".
47679
47680         2007-05-15  Jim Meyering  <jim@meyering.net>
47681
47682         * build-aux/bootstrap: Now that generated Makefile.am files
47683         are no longer under version control, they must be created at
47684         bootstrap time.
47685
47686 2007-08-14  Ben Pfaff  <blp@gnu.org>
47687
47688         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
47689
47690 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47691
47692         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
47693         given the changes below.
47694         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
47695         even on hosts that have padding bits beyond the supported 64.
47696
47697 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47698
47699         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
47700         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
47701         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
47702         depends on it.
47703         (xstrtol_error): Remove.
47704         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
47705         but with a different signature.
47706         (ATTRIBUTE_NORETURN, __attribute__): New macros.
47707         * lib/xstrtol-error.c: Include exitfail.h.
47708         (xstrtol_fatal): New function, with a different signature from the
47709         old xstrtol_error, so that the caller need not worry about passing
47710         in an exit status, or about storage management of the option argument.
47711         (xstrtol_error): Now a static function.  Redo signature to
47712         implement xstrtol_fatal.  Output the correct number of hyphens in
47713         front of the option so that the caller need not worry about
47714         storage management.
47715         (N_): New macro.
47716         (_): Remove; not used now.
47717         * modules/xstrtol: Depend on getopt.
47718         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
47719         of old STRTOL_FATAL_ERROR macro.
47720         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
47721         of test program.
47722         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
47723         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
47724
47725 2007-08-08  Eric Blake  <ebb9@byu.net>
47726
47727         * lib/xstrtol-error.c: Add missing include.
47728
47729         Move xstrtol messages into gnulib domain, when --pobase is used.
47730         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
47731         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
47732         * modules/xstrtol (Files): Distribute new file.
47733         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
47734         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
47735         * tests/test-xstrtol.c: ...into new file.
47736         * tests/test-xstrtoul.c: Also test xstrtoul.
47737         * tests/test-xstrtoimax.c: Also test xstrtoimax.
47738         * tests/test-xstrtoumax.c: Also test xstrtoumax.
47739         * tests/test-xstrtol.sh: Drive the tests.
47740         * tests/test-xstrtoimax.sh: Likewise.
47741         * tests/test-xstrtoumax.sh: Likewise.
47742         * modules/xstrtol-tests: New module.
47743         * modules/xstrtoimax-tests: Likewise.
47744         * modules/xstrtoumax-tests: Likewise.
47745
47746 2007-08-08  Jim Meyering  <jim@meyering.net>
47747
47748         New function: mfile_name_concat.
47749         * lib/filenamecat.c (mfile_name_concat): New function, just like
47750         file_name_concat, but return NULL upon failure rather than exiting
47751         with a diagnostic.
47752         * lib/filenamecat.h: Declare it.
47753
47754 2007-08-07  Bruno Haible  <bruno@clisp.org>
47755
47756         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
47757         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
47758         warning from gcc.
47759         Reported by Eric Blake.
47760
47761 2007-08-07  Simon Josefsson  <simon@josefsson.org>
47762
47763         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
47764         * modules/crypto/arcfour (License): Likewise.
47765         * modules/crypto/des-tests (License): Likewise.
47766         * modules/crypto/gc-arctwo-tests (License): Likewise.
47767         * modules/crypto/gc-des-tests (License): Likewise.
47768         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
47769         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
47770         * modules/crypto/gc-md2-tests (License): Likewise.
47771         * modules/crypto/gc-md4-tests (License): Likewise.
47772         * modules/crypto/gc-md5-tests (License): Likewise.
47773         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
47774         * modules/crypto/gc-rijndael-tests (License): Likewise.
47775         * modules/crypto/gc-sha1-tests (License): Likewise.
47776         * modules/crypto/gc-tests (License): Likewise.
47777         * modules/crypto/hmac-md5 (License): Likewise.
47778         * modules/crypto/hmac-sha1 (License): Likewise.
47779         * modules/crypto/md2-tests (License): Likewise.
47780         * modules/crypto/md4-tests (License): Likewise.
47781         * modules/crypto/md5 (License): Likewise.
47782         * modules/crypto/rijndael (License): Likewise.
47783         * modules/crypto/sha1 (License): Likewise.
47784         * modules/memxor (License): Likewise.
47785
47786 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
47787         and Bruno Haible  <bruno@clisp.org>
47788
47789         * NEWS: Describe interface changes to human, xstrtol.
47790         * lib/human.h: Include <xstrtol.h>.
47791         (human_options): Return enum strtol_error, not int.  Remove
47792         bool arg; take int * instead.
47793         * lib/human.c: Don't include "gettext.h".
47794         (_): Remove; no longer used.
47795         Don't include <xstrtol.h>, since human.h does it.
47796         (human_options): Adjust to abovementioned interface changes.
47797         Do not report error to stderr; that's now the caller's
47798         responsibility.
47799         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
47800         interface change.
47801         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
47802         Str, Argument_type_string.  All uses changed.  Put " argument"
47803         in diagnostics to make them clearer.  Change wording of suffix
47804         message for clarity.
47805         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
47806         Argument_type_string.
47807         (STRTOL_FATAL_WARN): Remove; no longer used.
47808         * modules/human (Depends-on): Remove gettext-h.
47809
47810 2007-08-06  Simon Josefsson  <simon@josefsson.org>
47811
47812         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
47813
47814 2007-07-31  Bruno Haible  <bruno@clisp.org>
47815
47816         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
47817         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
47818         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
47819
47820 2007-07-31  Bruno Haible  <bruno@clisp.org>
47821
47822         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
47823         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
47824
47825 2007-07-30  Bruno Haible  <bruno@clisp.org>
47826
47827         * modules/base64 (License): Use the synonymous term "LGPLv2+".
47828         * modules/c-ctype (License): Likewise.
47829         * modules/c-strcase (License): Likewise.
47830         * modules/check-version (License): Likewise.
47831         * modules/iconv (License): Likewise.
47832         * modules/iconv_open (License): Likewise.
47833         * modules/read-file (License): Likewise.
47834         * modules/striconv (License): Likewise.
47835         * modules/strverscmp (License): Likewise.
47836         * modules/vasprintf (License): Likewise.
47837         * modules/crypto/des (License): Likewise.
47838         * modules/crypto/gc (License): Likewise.
47839         * modules/crypto/gc-arcfour (License): Likewise.
47840         * modules/crypto/gc-arctwo (License): Likewise.
47841         * modules/crypto/gc-des (License): Likewise.
47842         * modules/crypto/gc-hmac-md5 (License): Likewise.
47843         * modules/crypto/gc-hmac-sha1 (License): Likewise.
47844         * modules/crypto/gc-md2 (License): Likewise.
47845         * modules/crypto/gc-md4 (License): Likewise.
47846         * modules/crypto/gc-md5 (License): Likewise.
47847         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
47848         * modules/crypto/gc-random (License): Likewise.
47849         * modules/crypto/gc-rijndael (License): Likewise.
47850         * modules/crypto/gc-sha1 (License): Likewise.
47851         * modules/crypto/md2 (License): Likewise.
47852         * modules/crypto/md4 (License): Likewise.
47853
47854 2007-07-30  Jim Meyering  <jim@meyering.net>
47855
47856         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
47857         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
47858         it has valid stat data.  This bug would cause du not to count the
47859         sizes of inaccessible directories.
47860         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
47861         in <http://bugzilla.redhat.com/250077>.
47862
47863 2007-07-25  Peter O'Gorman  <peter@pogma.com>
47864             Bruno Haible  <bruno@clisp.org>
47865
47866         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
47867         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
47868         #include_next, gives a diagnostic about it, but reports no error in
47869         the exit code.
47870         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47871
47872 2007-07-24  Ben Pfaff  <blp@gnu.org>
47873
47874         Improve name: "count-one-bits" is better than "popcount".
47875         * MODULES.html.sh: Update name.
47876         * lib/popcount.h: Renamed lib/count-one-bits.h.
47877         (popcount): Renamed count_one_bits.
47878         (popcountl): Renamed count_one_bits_l.
47879         (popcountll): Renamed count_one_bits_ll.
47880         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
47881         * modules/popcount: Renamed module/count-one-bits.
47882         * modules/popcount-tests: Renamed module/count-one-bits-tests.
47883         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
47884
47885 2007-07-23  Ben Pfaff  <blp@gnu.org>
47886
47887         * lib/popcount.h (popcount32): Reduce size of constants, to allow
47888         better code generation, and add U to large constants to avoid
47889         warnings, in non-GCC case.
47890         Suggested by Bruno Haible.
47891
47892 2007-07-23  Ben Pfaff  <blp@gnu.org>
47893
47894         * lib/popcount.h: Use verify_true instead of if...abort.
47895         * modules/popcount: Depend on verify module.
47896         Suggested by Jim Meyering.
47897
47898 2007-07-23  Bruno Haible  <bruno@clisp.org>
47899
47900         * gnulib-tool (func_import): Create a .cvsignore file also when the
47901         directory is not yet in CVS but the toplevel directory is. When
47902         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
47903         Reported by Karl Berry.
47904
47905 2007-07-22  Ben Pfaff  <blp@gnu.org>
47906
47907         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
47908         case.
47909         Suggested by Eric Blake.
47910
47911 2007-07-22  Ben Pfaff  <blp@gnu.org>
47912
47913         New module: popcount.
47914         * MODULES.html.sh: Add popcount.
47915         * modules/popcount: New file.
47916         * modules/popcount-tests: New file.
47917         * tests/test-popcount.c: New file.
47918         * lib/popcount.h: New file.
47919         * m4/popcount.m4: New file.
47920
47921 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47922
47923         * build-aux/announce-gen: Update to GPLv3.
47924
47925         * build-aux/config.guess: Update from config.
47926
47927 2007-07-21  Bruno Haible  <bruno@clisp.org>
47928
47929         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
47930         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
47931
47932 2007-07-20  Jim Meyering  <jim@meyering.net>
47933
47934         * check-module: Diagnose a self-dependency.
47935
47936 2007-07-19  Bruno Haible  <bruno@clisp.org>
47937
47938         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
47939         empty.
47940         Reported by Eric Blake.
47941
47942 2007-07-18  Bruno Haible  <bruno@clisp.org>
47943
47944         * gnulib-tool: New options --po-base, --po-domain.
47945         (func_usage): Document them.
47946         (pobase, po_domain): New variables.
47947         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
47948         DEFAULT_TEXT_DOMAIN.
47949         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
47950         (func_import): Consider pobase and po_domain. Create a po/ directory.
47951         (func_create_testdir): Set pobase and po_domain to empty.
47952         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
47953         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
47954
47955 2007-07-18  Bruno Haible  <bruno@clisp.org>
47956
47957         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47958         EXTRA_DIST augmentation for files in build-aux/.
47959
47960 2007-07-16  Bruno Haible  <bruno@clisp.org>
47961
47962         * modules/lseek (License): Use the synonymous term "LGPLv2+".
47963         * modules/getdelim (License): Likewise.
47964
47965 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47966
47967         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
47968         * modules/d-type (License): Likewise.
47969         * modules/extensions (License): Likewise.
47970         * modules/fnmatch (License): Likewise.
47971         * modules/fseeko (License): Likewise.
47972         * modules/getaddrinfo (License): Likewise.
47973         * modules/getline (License): Likewise.
47974         * modules/getlogin_r (License): Likewise.
47975         * modules/getpass (License): Likewise.
47976         * modules/gettimeofday (License): Likewise.
47977         * modules/glob (License): Likewise.
47978         * modules/inet_ntop (License): Likewise.
47979         * modules/malloc (License): Likewise.
47980         * modules/malloca (License): Likewise.
47981         * modules/memmem (License): Likewise.
47982         * modules/mempcpy (License): Likewise.
47983         * modules/memset (License): Likewise.
47984         * modules/minmax (License): Likewise.
47985         * modules/mktime (License): Likewise.
47986         * modules/netinet_in (License): Likewise.
47987         * modules/pathmax (License): Likewise.
47988         * modules/poll (License): Likewise.
47989         * modules/regex (License): Likewise.
47990         * modules/snprintf (License): Likewise.
47991         * modules/stdbool (License): Likewise.
47992         * modules/stdint (License): Likewise.
47993         * modules/stdio (License): Likewise.
47994         * modules/strcase (License): Likewise.
47995         * modules/strcasestr (License): Likewise.
47996         * modules/strdup (License): Likewise.
47997         * modules/string (License): Likewise.
47998         * modules/strndup (License): Likewise.
47999         * modules/strnlen (License): Likewise.
48000         * modules/strpbrk (License): Likewise.
48001         * modules/strptime (License): Likewise.
48002         * modules/strsep (License): Likewise.
48003         * modules/sys_select (License): Likewise.
48004         * modules/sys_socket (License): Likewise.
48005         * modules/sys_stat (License): Likewise.
48006         * modules/sys_time (License): Likewise.
48007         * modules/time (License): Likewise.
48008         * modules/time_r (License): Likewise.
48009         * modules/timegm (License): Likewise.
48010         * modules/unistd (License): Likewise.
48011         * modules/vsnprintf (License): Likewise.
48012         * modules/wctype (License): Likewise.
48013
48014 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48015
48016         * modules/argz (License): LGPLv2+.
48017
48018 2007-07-15  Karl Berry  <karl@gnu.org>
48019
48020         * doc/gnulib.texi: revise node structure per new fdl.texi.
48021
48022 2007-07-14  Bruno Haible  <bruno@clisp.org>
48023
48024         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
48025         the output file.
48026         * lib/uniname/uninames.h: Regenerated.
48027
48028 2007-07-14  Karl Berry  <karl@gnu.org>
48029
48030         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
48031         omitting sectioning and index commands.
48032
48033 2007-07-13  Bruno Haible  <bruno@clisp.org>
48034
48035         New gnulib-tool option --more-symlinks.
48036         * gnulib-tool (func_usage): Document --more-symlinks.
48037         (do_copyrights): New variable.
48038         Recognize option --more-symlinks.
48039         (func_import): Don't add a copyright notice transform to
48040         sed_transform_lib_file if do_copyrights is empty.
48041
48042 2007-07-13  Bruno Haible  <bruno@clisp.org>
48043
48044         * lib/vasnprintf.c (decimal_point_char): Define also if
48045         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
48046         && !NEED_PRINTF_DIRECTIVE_A.
48047         Reported by Clemens Koller <clemens.koller@anagramm.de> via
48048         Gary V. Vaughan <gary@gnu.org>.
48049
48050 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
48051
48052         * lib/inttypes_.h: Undo previous change, since it was fixed
48053         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
48054
48055 2007-07-13  Bruno Haible  <bruno@clisp.org>
48056
48057         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
48058         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
48059
48060 2007-07-13  Jim Meyering  <jim@meyering.net>
48061
48062         df: Don't fail for Tru64's "file-on-file mount".
48063         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
48064         so we fall through and use statfs instead.  Details here:
48065         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
48066         Reported by Albert Chin.
48067
48068 2007-07-13  Bruno Haible  <bruno@clisp.org>
48069
48070         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
48071         * modules/configmake (License): Likewise.
48072         * modules/gettext (License): Likewise.
48073         * modules/gettext-h (License): Likewise.
48074         * modules/include_next (License): Likewise.
48075         * modules/link-warning (License): Likewise.
48076         * modules/localcharset (License): Likewise.
48077         * modules/localename (License): Likewise.
48078         * modules/lock (License): Likewise.
48079         * modules/relocatable-lib-lgpl (License): Likewise.
48080         * modules/size_max (License): Likewise.
48081         * modules/vasnprintf (License): Likewise.
48082         * modules/wchar (License): Likewise.
48083         * modules/xsize (License): Likewise.
48084
48085 2007-07-13  Bruno Haible  <bruno@clisp.org>
48086
48087         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
48088         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
48089
48090 2007-07-12  Bruno Haible  <bruno@clisp.org>
48091
48092         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
48093         in the modules files.
48094
48095 2007-07-11  Karl Berry  <karl@gnu.org>
48096
48097         * MODULES.html.sh (func_module): use
48098          sed -e '\|^'"${includefile}"'$|d'
48099          instead of /.../d, to avoid errors on $includefile's containing /.
48100
48101 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48102
48103         * gnulib-tool (func_import): Avoid duplication of --avoid
48104         statements
48105         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
48106         names to `_' in variable names.
48107
48108 2007-07-10  Eric Blake  <ebb9@byu.net>
48109
48110         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
48111         * NEWS: Document this change.
48112
48113 2007-07-08  Bruno Haible  <bruno@clisp.org>
48114
48115         Update to Unicode 5.0.
48116         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
48117         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
48118         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
48119         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
48120         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
48121         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
48122         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
48123         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
48124         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
48125         U+10A3F, U+1D242..U+1D244.
48126         (nonspacing_table_ind): Update.
48127         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
48128         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
48129
48130 2007-07-08  Bruno Haible  <bruno@clisp.org>
48131
48132         Update to Unicode 5.0.
48133         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
48134         code transform. Extend the name index field of unicode_name_to_code and
48135         unicode_code_to_name from 16 to 24 bits.
48136         * lib/uniname/uniname.c (unicode_character_name,
48137         unicode_name_character): Add the range 0x12xxx to the code transform.
48138         * lib/uniname/uninames.h: Regenerated.
48139         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
48140
48141 2007-07-07  Bruno Haible  <bruno@clisp.org>
48142
48143         * modules/wcwidth-tests: New file.
48144         * tests/test-wcwidth.c: New file.
48145
48146         Work around MacOS X wcwidth() bug.
48147         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
48148         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
48149         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
48150         original wcwidth in non-UTF-8 locales.
48151         * modules/wcwidth (Depends-on): Add localcharset, streq,
48152         uniwidth/width.
48153         * doc/functions/wcwidth.texi: Update.
48154
48155 2007-07-07  Bruno Haible  <bruno@clisp.org>
48156
48157         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
48158         (wcwidth): New declaration.
48159         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
48160         macros.
48161         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
48162         here. Prepare for creating <wchar.h> unconditionally.
48163         * modules/wchar (Depends-on): Add link-warning.
48164         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
48165         REPLACE_WCWIDTH, and GL_LINK_WARNING.
48166         * lib/wcwidth.h: Remove file.
48167         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
48168         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
48169         * modules/wcwidth (Files): Remove lib/wcwidth.h.
48170         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
48171         (Include): Replace wcwidth.h with <wchar.h>.
48172         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
48173         * lib/mbchar.h: Don't include wcwidth.h.
48174         * lib/mbswidth.c: Likewise.
48175         * NEWS: Mention the change.
48176
48177 2007-07-07  Bruno Haible  <bruno@clisp.org>
48178
48179         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
48180         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
48181         definition with an external declaration.
48182         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
48183         defined as a function. Remove AC_C_INLINE requirement.
48184         * modules/wcwidth (Files): Add lib/wcwidth.c.
48185         (Makefile.am): Remove redundant statement.
48186
48187 2007-07-07  Bruno Haible  <bruno@clisp.org>
48188
48189         * MODULES.html.sh (Unicode string functions): Add the new modules.
48190
48191         * tests/uniwidth/test-u32-strwidth.c: New file.
48192         * modules/uniwidth/u32-strwidth-tests: New file.
48193
48194         * lib/uniwidth/u32-strwidth.c: New file.
48195         * modules/uniwidth/u32-strwidth: New file.
48196
48197         * tests/uniwidth/test-u16-strwidth.c: New file.
48198         * modules/uniwidth/u16-strwidth-tests: New file.
48199
48200         * lib/uniwidth/u16-strwidth.c: New file.
48201         * modules/uniwidth/u16-strwidth: New file.
48202
48203         * tests/uniwidth/test-u8-strwidth.c: New file.
48204         * modules/uniwidth/u8-strwidth-tests: New file.
48205
48206         * lib/uniwidth/u8-strwidth.c: New file.
48207         * modules/uniwidth/u8-strwidth: New file.
48208
48209         * tests/uniwidth/test-u32-width.c: New file.
48210         * modules/uniwidth/u32-width-tests: New file.
48211
48212         * lib/uniwidth/u32-width.c: New file.
48213         * modules/uniwidth/u32-width: New file.
48214
48215         * tests/uniwidth/test-u16-width.c: New file.
48216         * modules/uniwidth/u16-width-tests: New file.
48217
48218         * lib/uniwidth/u16-width.c: New file.
48219         * modules/uniwidth/u16-width: New file.
48220
48221         * tests/uniwidth/test-u8-width.c: New file.
48222         * modules/uniwidth/u8-width-tests: New file.
48223
48224         * lib/uniwidth/u8-width.c: New file.
48225         * modules/uniwidth/u8-width: New file.
48226
48227         * tests/uniwidth/test-uc_width.c: New file.
48228         * modules/uniwidth/width-tests: New file.
48229
48230         * lib/uniwidth/width.c: New file, from GNU libiconv.
48231         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
48232         * modules/uniwidth/width: New file.
48233
48234         * lib/uniwidth.h: New file, from GNU libiconv.
48235         * modules/uniwidth/base: New file.
48236
48237 2007-07-07  Bruno Haible  <bruno@clisp.org>
48238
48239         * lib/uniname.h: New file, from GNU gettext.
48240         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
48241         * lib/uniname/uninames.h: New file, from GNU gettext.
48242         * lib/uniname/uniname.c: New file, from GNU gettext.
48243         * tests/uniname/test-uninames.sh: New file.
48244         * tests/uniname/test-uninames.c: New file, from GNU gettext.
48245         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
48246         * modules/uniname/base: New file.
48247         * modules/uniname/uniname: New file.
48248         * modules/uniname/uniname-tests: New file.
48249         * MODULES.html.sh (Unicode string functions): Add the new modules.
48250
48251 2007-07-06  Bruno Haible  <bruno@clisp.org>
48252
48253         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
48254
48255 2007-07-06  Bruno Haible  <bruno@clisp.org>
48256
48257         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
48258         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
48259         includes <cygwin/sys_time.h> which includes <sys/select.h> which
48260         include <sys/time.h>.
48261         Reported by Eric Blake.
48262
48263 2007-07-06  Eric Blake  <ebb9@byu.net>
48264
48265         Fix testing canonicalize on cygwin.
48266         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48267         Revert patch from 2007-06-19.
48268         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
48269         canonicalize module is also in use.
48270         * tests/test-canonicalize.c: New file.
48271         * tests/test-canonicalize.sh: Likewise.
48272         * modules/canonicalize-tests: Likewise.
48273
48274 2007-07-06  Jim Meyering  <jim@meyering.net>
48275
48276         * lib/getugroups.c (getugroups): Detect getgrent failure.
48277         Adjust comment to reflect reality: this function may return -1.
48278
48279 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
48280
48281         * build-aux/bootstrap (TP_URL,get_translations): Update to use
48282         the new TP address.
48283         (usage): Fix typo
48284         (gnulib_mk): New variable.
48285
48286 2007-07-05  Jim Meyering  <jim@meyering.net>
48287
48288         Don't let endgrent clobber errno, no matter how improbable.
48289         * lib/getugroups.c (getugroups): Save and restore errno around
48290         endgrent call.
48291
48292         Close the group DB even when failing with 2^31 or more members.
48293         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
48294
48295 2007-07-04  Jim Meyering  <jim@meyering.net>
48296
48297         * lib/getugroups.h: New file.
48298         * lib/getugroups.c: Include "getugroups.h".
48299         Remove uses of "register" keyword.
48300         Move local variable, "cp", down into scope where used.
48301         Give "username" parameter the "const" attribute.
48302         * modules/getugroups (Files): Add lib/getugroups.h
48303
48304 2007-07-04  Karl Berry  <karl@gnu.org>
48305
48306         * MODULES.html.sh (func_all_modules): Complete rename of
48307         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
48308
48309 2007-07-02  Bruno Haible  <bruno@clisp.org>
48310
48311         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
48312         mode, when inttypes.h comes from gnulib.
48313         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48314
48315 2007-07-02  Simon Josefsson  <simon@josefsson.org>
48316
48317         * NEWS: Mention lgpl module name change.
48318
48319         * modules/lgpl-2.1: Renamed from lgpl.
48320
48321         * NEWS: Mention gpl module name change.
48322
48323         * modules/gpl-3.0: New file, based on gpl-2.0.
48324
48325         * modules/gpl-2.0: Renamed from gpl.
48326
48327         * modules/gpl: Fix filename, doc/gpl.texi is now found at
48328         doc/gpl-2.0.texi.
48329
48330 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
48331
48332         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
48333         #define __STDC_LIMIT_MACROS temporarily while including
48334         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
48335         Problem reported by Joel E. Denny in
48336         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
48337
48338 2007-07-01  Bruno Haible  <bruno@clisp.org>
48339
48340         * lib/unistdio.h: New file.
48341         * lib/unistdio/u-asnprintf.h: New file.
48342         * lib/unistdio/u-asprintf.h: New file.
48343         * lib/unistdio/u-printf-args.c: New file.
48344         * lib/unistdio/u-printf-args.h: New file.
48345         * lib/unistdio/u-printf-parse.h: New file.
48346         * lib/unistdio/u-snprintf.h: New file.
48347         * lib/unistdio/u-sprintf.h: New file.
48348         * lib/unistdio/u-vasprintf.h: New file.
48349         * lib/unistdio/u-vsnprintf.h: New file.
48350         * lib/unistdio/u-vsprintf.h: New file.
48351         * lib/unistdio/ulc-asnprintf.c: New file.
48352         * lib/unistdio/ulc-asprintf.c: New file.
48353         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
48354         * lib/unistdio/ulc-printf-parse.c: New file.
48355         * lib/unistdio/ulc-snprintf.c: New file.
48356         * lib/unistdio/ulc-sprintf.c: New file.
48357         * lib/unistdio/ulc-vasnprintf.c: New file.
48358         * lib/unistdio/ulc-vasprintf.c: New file.
48359         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
48360         * lib/unistdio/ulc-vsnprintf.c: New file.
48361         * lib/unistdio/ulc-vsprintf.c: New file.
48362         * lib/unistdio/u8-asnprintf.c: New file.
48363         * lib/unistdio/u8-asprintf.c: New file.
48364         * lib/unistdio/u8-printf-parse.c: New file.
48365         * lib/unistdio/u8-snprintf.c: New file.
48366         * lib/unistdio/u8-sprintf.c: New file.
48367         * lib/unistdio/u8-vasnprintf.c: New file.
48368         * lib/unistdio/u8-vasprintf.c: New file.
48369         * lib/unistdio/u8-vsnprintf.c: New file.
48370         * lib/unistdio/u8-vsprintf.c: New file.
48371         * lib/unistdio/u8-u8-asnprintf.c: New file.
48372         * lib/unistdio/u8-u8-asprintf.c: New file.
48373         * lib/unistdio/u8-u8-snprintf.c: New file.
48374         * lib/unistdio/u8-u8-sprintf.c: New file.
48375         * lib/unistdio/u8-u8-vasnprintf.c: New file.
48376         * lib/unistdio/u8-u8-vasprintf.c: New file.
48377         * lib/unistdio/u8-u8-vsnprintf.c: New file.
48378         * lib/unistdio/u8-u8-vsprintf.c: New file.
48379         * lib/unistdio/u16-asnprintf.c: New file.
48380         * lib/unistdio/u16-asprintf.c: New file.
48381         * lib/unistdio/u16-printf-parse.c: New file.
48382         * lib/unistdio/u16-snprintf.c: New file.
48383         * lib/unistdio/u16-sprintf.c: New file.
48384         * lib/unistdio/u16-vasnprintf.c: New file.
48385         * lib/unistdio/u16-vasprintf.c: New file.
48386         * lib/unistdio/u16-vsnprintf.c: New file.
48387         * lib/unistdio/u16-vsprintf.c: New file.
48388         * lib/unistdio/u16-u16-asnprintf.c: New file.
48389         * lib/unistdio/u16-u16-asprintf.c: New file.
48390         * lib/unistdio/u16-u16-snprintf.c: New file.
48391         * lib/unistdio/u16-u16-sprintf.c: New file.
48392         * lib/unistdio/u16-u16-vasnprintf.c: New file.
48393         * lib/unistdio/u16-u16-vasprintf.c: New file.
48394         * lib/unistdio/u16-u16-vsnprintf.c: New file.
48395         * lib/unistdio/u16-u16-vsprintf.c: New file.
48396         * lib/unistdio/u32-asnprintf.c: New file.
48397         * lib/unistdio/u32-asprintf.c: New file.
48398         * lib/unistdio/u32-printf-parse.c: New file.
48399         * lib/unistdio/u32-snprintf.c: New file.
48400         * lib/unistdio/u32-sprintf.c: New file.
48401         * lib/unistdio/u32-vasnprintf.c: New file.
48402         * lib/unistdio/u32-vasprintf.c: New file.
48403         * lib/unistdio/u32-vsnprintf.c: New file.
48404         * lib/unistdio/u32-vsprintf.c: New file.
48405         * lib/unistdio/u32-u32-asnprintf.c: New file.
48406         * lib/unistdio/u32-u32-asprintf.c: New file.
48407         * lib/unistdio/u32-u32-snprintf.c: New file.
48408         * lib/unistdio/u32-u32-sprintf.c: New file.
48409         * lib/unistdio/u32-u32-vasnprintf.c: New file.
48410         * lib/unistdio/u32-u32-vasprintf.c: New file.
48411         * lib/unistdio/u32-u32-vsnprintf.c: New file.
48412         * lib/unistdio/u32-u32-vsprintf.c: New file.
48413         * tests/unistdio/test-ulc-asnprintf1.c: New file.
48414         * tests/unistdio/test-ulc-asnprintf1.h: New file.
48415         * tests/unistdio/test-ulc-printf1.h: New file.
48416         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
48417         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
48418         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
48419         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
48420         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
48421         * tests/unistdio/test-ulc-vasprintf1.c: New file.
48422         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
48423         * tests/unistdio/test-ulc-vsprintf1.c: New file.
48424         * tests/unistdio/test-u8-asnprintf1.c: New file.
48425         * tests/unistdio/test-u8-asnprintf1.h: New file.
48426         * tests/unistdio/test-u8-printf1.h: New file.
48427         * tests/unistdio/test-u8-vasnprintf1.c: New file.
48428         * tests/unistdio/test-u8-vasnprintf2.c: New file.
48429         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
48430         * tests/unistdio/test-u8-vasnprintf3.c: New file.
48431         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
48432         * tests/unistdio/test-u8-vasprintf1.c: New file.
48433         * tests/unistdio/test-u8-vsnprintf1.c: New file.
48434         * tests/unistdio/test-u8-vsprintf1.c: New file.
48435         * tests/unistdio/test-u16-asnprintf1.c: New file.
48436         * tests/unistdio/test-u16-asnprintf1.h: New file.
48437         * tests/unistdio/test-u16-printf1.h: New file.
48438         * tests/unistdio/test-u16-vasnprintf1.c: New file.
48439         * tests/unistdio/test-u16-vasnprintf2.c: New file.
48440         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
48441         * tests/unistdio/test-u16-vasnprintf3.c: New file.
48442         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
48443         * tests/unistdio/test-u16-vasprintf1.c: New file.
48444         * tests/unistdio/test-u16-vsnprintf1.c: New file.
48445         * tests/unistdio/test-u16-vsprintf1.c: New file.
48446         * tests/unistdio/test-u32-asnprintf1.c: New file.
48447         * tests/unistdio/test-u32-asnprintf1.h: New file.
48448         * tests/unistdio/test-u32-printf1.h: New file.
48449         * tests/unistdio/test-u32-vasnprintf1.c: New file.
48450         * tests/unistdio/test-u32-vasnprintf2.c: New file.
48451         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
48452         * tests/unistdio/test-u32-vasnprintf3.c: New file.
48453         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
48454         * tests/unistdio/test-u32-vasprintf1.c: New file.
48455         * tests/unistdio/test-u32-vsnprintf1.c: New file.
48456         * tests/unistdio/test-u32-vsprintf1.c: New file.
48457         * modules/unistdio/base: New file.
48458         * modules/unistdio/u-printf-args: New file.
48459         * modules/unistdio/ulc-asnprintf: New file.
48460         * modules/unistdio/ulc-asprintf: New file.
48461         * modules/unistdio/ulc-fprintf: New file.
48462         * modules/unistdio/ulc-printf-parse: New file.
48463         * modules/unistdio/ulc-snprintf: New file.
48464         * modules/unistdio/ulc-sprintf: New file.
48465         * modules/unistdio/ulc-vasnprintf: New file.
48466         * modules/unistdio/ulc-vasprintf: New file.
48467         * modules/unistdio/ulc-vfprintf: New file.
48468         * modules/unistdio/ulc-vsnprintf: New file.
48469         * modules/unistdio/ulc-vsprintf: New file.
48470         * modules/unistdio/u8-asnprintf: New file.
48471         * modules/unistdio/u8-asprintf: New file.
48472         * modules/unistdio/u8-printf-parse: New file.
48473         * modules/unistdio/u8-snprintf: New file.
48474         * modules/unistdio/u8-sprintf: New file.
48475         * modules/unistdio/u8-vasnprintf: New file.
48476         * modules/unistdio/u8-vasprintf: New file.
48477         * modules/unistdio/u8-vsnprintf: New file.
48478         * modules/unistdio/u8-vsprintf: New file.
48479         * modules/unistdio/u8-u8-asnprintf: New file.
48480         * modules/unistdio/u8-u8-asprintf: New file.
48481         * modules/unistdio/u8-u8-snprintf: New file.
48482         * modules/unistdio/u8-u8-sprintf: New file.
48483         * modules/unistdio/u8-u8-vasnprintf: New file.
48484         * modules/unistdio/u8-u8-vasprintf: New file.
48485         * modules/unistdio/u8-u8-vsnprintf: New file.
48486         * modules/unistdio/u8-u8-vsprintf: New file.
48487         * modules/unistdio/u16-asnprintf: New file.
48488         * modules/unistdio/u16-asprintf: New file.
48489         * modules/unistdio/u16-printf-parse: New file.
48490         * modules/unistdio/u16-snprintf: New file.
48491         * modules/unistdio/u16-sprintf: New file.
48492         * modules/unistdio/u16-vasnprintf: New file.
48493         * modules/unistdio/u16-vasprintf: New file.
48494         * modules/unistdio/u16-vsnprintf: New file.
48495         * modules/unistdio/u16-vsprintf: New file.
48496         * modules/unistdio/u16-u16-asnprintf: New file.
48497         * modules/unistdio/u16-u16-asprintf: New file.
48498         * modules/unistdio/u16-u16-snprintf: New file.
48499         * modules/unistdio/u16-u16-sprintf: New file.
48500         * modules/unistdio/u16-u16-vasnprintf: New file.
48501         * modules/unistdio/u16-u16-vasprintf: New file.
48502         * modules/unistdio/u16-u16-vsnprintf: New file.
48503         * modules/unistdio/u16-u16-vsprintf: New file.
48504         * modules/unistdio/u32-asnprintf: New file.
48505         * modules/unistdio/u32-asprintf: New file.
48506         * modules/unistdio/u32-printf-parse: New file.
48507         * modules/unistdio/u32-snprintf: New file.
48508         * modules/unistdio/u32-sprintf: New file.
48509         * modules/unistdio/u32-vasnprintf: New file.
48510         * modules/unistdio/u32-vasprintf: New file.
48511         * modules/unistdio/u32-vsnprintf: New file.
48512         * modules/unistdio/u32-vsprintf: New file.
48513         * modules/unistdio/u32-u32-asnprintf: New file.
48514         * modules/unistdio/u32-u32-asprintf: New file.
48515         * modules/unistdio/u32-u32-snprintf: New file.
48516         * modules/unistdio/u32-u32-sprintf: New file.
48517         * modules/unistdio/u32-u32-vasnprintf: New file.
48518         * modules/unistdio/u32-u32-vasprintf: New file.
48519         * modules/unistdio/u32-u32-vsnprintf: New file.
48520         * modules/unistdio/u32-u32-vsprintf: New file.
48521         * modules/unistdio/ulc-asnprintf-tests: New file.
48522         * modules/unistdio/ulc-vasnprintf-tests: New file.
48523         * modules/unistdio/ulc-vasprintf-tests: New file.
48524         * modules/unistdio/ulc-vsnprintf-tests: New file.
48525         * modules/unistdio/ulc-vsprintf-tests: New file.
48526         * modules/unistdio/u8-asnprintf-tests: New file.
48527         * modules/unistdio/u8-vasnprintf-tests: New file.
48528         * modules/unistdio/u8-vasprintf-tests: New file.
48529         * modules/unistdio/u8-vsnprintf-tests: New file.
48530         * modules/unistdio/u8-vsprintf-tests: New file.
48531         * modules/unistdio/u16-asnprintf-tests: New file.
48532         * modules/unistdio/u16-vasnprintf-tests: New file.
48533         * modules/unistdio/u16-vasprintf-tests: New file.
48534         * modules/unistdio/u16-vsnprintf-tests: New file.
48535         * modules/unistdio/u16-vsprintf-tests: New file.
48536         * modules/unistdio/u32-asnprintf-tests: New file.
48537         * modules/unistdio/u32-vasnprintf-tests: New file.
48538         * modules/unistdio/u32-vasprintf-tests: New file.
48539         * modules/unistdio/u32-vsnprintf-tests: New file.
48540         * modules/unistdio/u32-vsprintf-tests: New file.
48541         * MODULES.html.sh (Unicode string functions): Add the new modules.
48542
48543 2007-07-01  Bruno Haible  <bruno@clisp.org>
48544
48545         * lib/sprintf.c (sprintf): Limit the available length estimation,
48546         to avoid address wraparound.
48547         * lib/vsprintf.c (vsprintf): Likewise.
48548         * modules/sprintf-posix (Dependencies): Add stdint.
48549         * modules/vsprintf-posix (Dependencies): Likewise.
48550
48551 2007-07-01  Bruno Haible  <bruno@clisp.org>
48552
48553         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
48554         Windows PATH as well. Conservative double-quoting. Comments.
48555
48556 2007-07-01  Bruno Haible  <bruno@clisp.org>
48557             Eric Blake  <ebb9@byu.net>
48558             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48559
48560         * gnulib-tool (self_abspathname): Fix algorithm to cope with
48561         empty components in $PATH, denoting '.'.
48562
48563 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48564
48565         * gnulib-tool: Fix indentation.
48566         (func_create_megatestdir): Likewise.
48567         Report by Bruno Haible.
48568
48569 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48570
48571         Sync from Automake.
48572         * build-aux/gnupload: Fix shell portability issues with for loops.
48573         Report by Karl Berry.
48574
48575 2007-06-29  Simon Josefsson  <simon@josefsson.org>
48576
48577         * build-aux/maint.mk (POURL): Use translationproject.org.
48578
48579 2007-06-27  Simon Josefsson  <simon@josefsson.org>
48580             Bruno Haible  <bruno@clisp.org>
48581
48582         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
48583         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
48584         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
48585         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
48586         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
48587
48588 2007-06-27  Bruno Haible  <bruno@clisp.org>
48589
48590         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
48591         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
48592
48593 2007-06-26  Karl Berry  <karl@gnu.org>
48594
48595         * MODULES.html.sh: remove xreadlink-with-size.
48596
48597 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48598
48599         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
48600         method that I hope also handles the double-include problem noted
48601         by Bruno Haible in
48602         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
48603
48604 2007-06-23  Bruno Haible  <bruno@clisp.org>
48605
48606         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48607         Don't let the 'mostlyclean' target fail if the last subdirectory could
48608         not be removed.
48609         Reported by Karl Berry.
48610
48611 2007-06-23  Bruno Haible  <bruno@clisp.org>
48612
48613         * gnulib-tool (echo): Add a speedier workaround for ksh.
48614         * tests/test-echo.sh: Likewise.
48615
48616 2007-06-23  Bruno Haible  <bruno@clisp.org>
48617
48618         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
48619         * tests/test-echo.sh: Likewise.
48620
48621 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48622
48623         * gnulib-tool (IFS): Initialize early, so we don't set it to
48624         empty later.
48625         (self_abspathname): Rewrite algorithm to set it, reindent.
48626         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
48627         (func_create_megatestdir): Merge some sed scripts.
48628
48629 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48630
48631         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
48632         exposed by Sun Studio 11 cc on Solaris 8.
48633
48634 2007-06-22  Bruno Haible  <bruno@clisp.org>
48635
48636         * gnulib-tool (echo): Ensure the echo primitive does not interpret
48637         backslashes.
48638         * tests/test-echo.sh: New file.
48639
48640 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48641
48642         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
48643         simplify `sed_replace_build_aux' scripts, they are portable but
48644         echoing them with `echo' is not.
48645         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
48646
48647 2007-06-21  Karl Berry  <karl@gnu.org>
48648
48649         * config/srclist.txt: guess we can't handle the licenses via
48650         srclist at the moment.
48651
48652 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
48653
48654         * MODULES.html.sh: Add include_next.
48655         * modules/include_next: New file.
48656
48657 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48658
48659         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
48660         INCLUDE_NEXT.
48661         (gl_CHECK_NEXT_HEADERS): New macro.
48662         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
48663         the obsolescent gl_ABSOLUTE_HEADER.
48664         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
48665         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
48666         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
48667         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48668         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
48669         * m4/math_h.m4 (gl_MATH_H): Likewise.
48670         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48671         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
48672         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48673         * m4/stdint.m4 (gl_STDINT_H): Likewise.
48674         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
48675         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
48676         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
48677         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48678         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48679         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48680         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
48681         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
48682         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48683         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48684         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48685         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48686         * m4/inttypes.m4 (gl_INTTYPES_H): Define
48687         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
48688         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
48689         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
48690         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
48691         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
48692         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
48693         * lib/float_.h: Likewise.
48694         * lib/inttypes_.h: Likewise.
48695         * lib/math_.h: Likewise.
48696         * lib/search_.h: Likewise.
48697         * lib/signal_.h: Likewise.
48698         * lib/stdint_.h: Likewise.
48699         * lib/stdio_.h: Likewise.
48700         * lib/stdlib_.h: Likewise.
48701         * lib/string_.h: Likewise.
48702         * lib/sys_stat_.h: Likewise.
48703         * lib/sys_time_.h: Likewise.
48704         * lib/time_.h: Likewise.
48705         * lib/unistd_.h: Likewise.
48706         * lib/wchar_.h: Likewise.
48707         * lib/wctype_.h: Likewise.
48708         * lib/dirent_.h: Likewise.
48709         * lib/iconv_.h: Likewise.
48710         * lib/locale_.h: Likewise.
48711         * lib/netinet_in_.h: Likewise.
48712         * lib/sys_select_.h: Likewise.
48713         * lib/sys_socket_.h: Likewise.
48714         * lib/sysexits_.h: Likewise.
48715         * modules/fcntl (Depends-on): Depend on include_next, not
48716         absolute_header.
48717         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
48718         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
48719         * modules/fchdir: Likewise.
48720         * modules/float: Likewise.
48721         * modules/iconv_open: Likewise.
48722         * modules/inttypes: Likewise.
48723         * modules/locale: Likewise.
48724         * modules/math: Likewise.
48725         * modules/netinet_in: Likewise.
48726         * modules/search: Likewise.
48727         * modules/signal: Likewise.
48728         * modules/stdint: Likewise.
48729         * modules/stdio: Likewise.
48730         * modules/stdlib: Likewise.
48731         * modules/string: Likewise.
48732         * modules/sys_select: Likewise.
48733         * modules/sys_socket: Likewise.
48734         * modules/sys_stat: Likewise.
48735         * modules/sys_time: Likewise.
48736         * modules/sysexits: Likewise.
48737         * modules/time: Likewise.
48738         * modules/unistd: Likewise.
48739         * modules/wchar: Likewise.
48740         * modules/wctype: Likewise.
48741         * modules/sys_stat: Change maintainer to "all".
48742         * modules/unistd: Likewise.
48743
48744 2007-06-20  Karl Berry  <karl@gnu.org>
48745
48746         * config/srclist.txt: track www changes in license files.
48747
48748 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
48749
48750         * build-aux/bootstrap: Remove stray dot.
48751         Make sure build_aux settings are honored when linking
48752         gnulib_extra_files.
48753
48754 2007-06-19  Eric Blake  <ebb9@byu.net>
48755
48756         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48757         Allow compilation on cygwin.
48758
48759 2007-06-19  Jim Meyering  <jim@meyering.net>
48760
48761         xreadlink-with-size: Remove module.  No longer used.
48762         Ex-callers now use xreadlink or mreadlink-with-size.
48763         * modules/xreadlink-with-size: Remove module.
48764         * lib/xreadlink-with-size.c: Remove file.
48765         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
48766         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
48767         just before the function definition *is* accurate.
48768
48769         Eliminate one way canonicalize_filename_mode could exit.
48770         * lib/canonicalize.c (canonicalize_filename_mode):
48771         Use mreadlink_with_size, not xreadlink_with_size.
48772
48773 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
48774
48775         Detect porting problems to FreeBSD/arm, which has time_t wider than
48776         long int.  Original problem reported for GNU diff by Xin Li in
48777         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
48778         * modules/getdate (Depends-on): Add intprops, verify.
48779         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
48780         is an integer type no wider than long int.
48781
48782 2007-06-18  Jim Meyering  <jim@meyering.net>
48783
48784         New module: mreadlink-with-size.
48785         * MODULES.html.sh: Add mreadlink-with-size.
48786         * modules/mreadlink-with-size: New module
48787         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
48788         not xreadlink-with-size.
48789         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
48790
48791 2007-06-16  Bruno Haible  <bruno@clisp.org>
48792
48793         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
48794         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
48795         Reported by Gary V. Vaughan <gary@gnu.org>.
48796
48797 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
48798
48799         Revamp lchown so that it lives in unistd.h where it belongs.
48800         * lib/lchown.h: Remove.
48801         * lib/dirchownmod.c: Don't include lib/lchown.h.
48802         * lib/fchownat.c: Likewise.
48803         * lib/openat.c: Likewise.
48804         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
48805         does not follow symlinks.
48806         (EOPNOTSUPP): Define if not defined.
48807         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
48808         is defined to 0.
48809         (lchown): New decl.
48810         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
48811         Do not check for lchown decl.
48812         Set REPLACE_LCHOWN.
48813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
48814         REPLACE_LCHOWN.
48815         * modules/chown: Make it clear it follows symlinks.
48816         * modules/lchown: Make it clear it doesn't follow symlinks.
48817         (Files): Remove lib/lchown.h
48818         (Depends-on): Add unistd.
48819         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
48820         (Include): Include <unistd.h>, not "lchown.h".
48821         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
48822         REPLACE_LCHOWN.
48823
48824 2007-06-15  Jim Meyering  <jim@meyering.net>
48825
48826         Change license (GPL to LGPL) of fsusage and dependents.
48827         * modules/fsusage (License): Change to LGPL.
48828         * modules/full-read (License): Likewise.
48829         * modules/full-write (License): Likewise.
48830         * modules/safe-read (License): Likewise.
48831         * modules/safe-write (License): Likewise.
48832
48833 2007-06-14  Ben Pfaff  <blp@gnu.org>
48834
48835         Missing part of allocsa -> malloca transition.
48836         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
48837         gl_MALLOCA.
48838
48839 2007-06-12  Bruno Haible  <bruno@clisp.org>
48840
48841         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
48842         to ia64, x86_64, i386.
48843         Reported by Eric Blake.
48844
48845 2007-06-12  Bruno Haible  <bruno@clisp.org>
48846
48847         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
48848         cross-compiling to x86_64.
48849
48850 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
48851
48852         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
48853         glitch reported by Ralf Wildenhues in
48854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
48855
48856         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
48857         Vin Shelton.
48858
48859 2007-06-11  Bruno Haible  <bruno@clisp.org>
48860
48861         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
48862         replacement string.
48863         Reported by Eric Blake.
48864
48865 2007-06-10  Bruno Haible  <bruno@clisp.org>
48866
48867         Prepare vasnprintf code for use with Unicode strings.
48868         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
48869         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
48870         TYPE_U32_STRING.
48871         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
48872         a_u32_string variants.
48873         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48874         * lib/printf-args.c: Don't include config.h and the specification
48875         header if PRINTF_FETCHARGS is already defined.
48876         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48877         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
48878         TYPE_U16_STRING, TYPE_U32_STRING.
48879         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
48880         u16_directive, u16_directives, u32_directive, u32_directives): New
48881         types.
48882         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
48883         New declarations.
48884         * lib/printf-parse.c: Don't include config.h and the specification
48885         header if PRINTF_PARSE is already defined. Eliminate the set of
48886         parameters for WIDE_CHAR_VERSION; the user of this file must provide
48887         them now. Include c-ctype.h.
48888         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
48889         directive and CHAR_T_ONLY_ASCII.
48890         * lib/vasnprintf.c: Don't include config.h and the specification header
48891         if VASNPRINTF is already defined.
48892         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
48893         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
48894         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
48895         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
48896         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
48897         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
48898         code accordingly.
48899         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
48900         pad_ourselves also in this case, with the 'c' and 's' directives, and
48901         with a different notion of "width".
48902         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
48903
48904 2007-06-10  Bruno Haible  <bruno@clisp.org>
48905
48906         * modules/unistr/u32-mbsnlen: New file.
48907         * lib/unistr/u32-mbsnlen.c: New file.
48908
48909         * modules/unistr/u16-mbsnlen: New file.
48910         * lib/unistr/u16-mbsnlen.c: New file.
48911
48912         * modules/unistr/u8-mbsnlen: New file.
48913         * lib/unistr/u8-mbsnlen.c: New file.
48914
48915         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
48916         declarations.
48917
48918 2007-06-10  Bruno Haible  <bruno@clisp.org>
48919
48920         * lib/string_.h (mbsnlen): New declaration.
48921         * lib/mbsnlen.c: New file.
48922         * m4/mbsnlen.m4: New file.
48923         * modules/mbsnlen: New file.
48924         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
48925         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
48926         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
48927
48928 2007-06-10  Bruno Haible  <bruno@clisp.org>
48929
48930         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
48931
48932 2007-06-10  Bruno Haible  <bruno@clisp.org>
48933
48934         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
48935         * lib/mbuiter.h: Likewise.
48936
48937 2007-06-10  Bruno Haible  <bruno@clisp.org>
48938
48939         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
48940         declaration.
48941
48942 2007-06-10  Karl Berry  <karl@gnu.org>
48943
48944         * config/srclist.txt: remove gettext entries, Bruno prefers
48945         to update individually.
48946
48947 2007-06-10  Bruno Haible  <bruno@clisp.org>
48948
48949         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
48950         'maxlen'. Ensure only length + width bytes are allocated, not
48951         length + 1 + width.
48952
48953 2007-06-09  Bruno Haible  <bruno@clisp.org>
48954
48955         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
48956         (CHAR_T): Remove macro.
48957         (VASNPRINTF): Update.
48958
48959 2007-06-09  Bruno Haible  <bruno@clisp.org>
48960
48961         * MODULES.html.sh (Unicode string functions): Add the new modules.
48962
48963         * modules/uniconv/u32-conv-to-enc: New file.
48964         * lib/uniconv/u32-conv-to-enc.c: New file.
48965         * modules/uniconv/u32-conv-to-enc-tests: New file.
48966         * tests/uniconv/test-u32-conv-to-enc.c: New file.
48967
48968         * modules/uniconv/u16-conv-to-enc: New file.
48969         * lib/uniconv/u16-conv-to-enc.c: New file.
48970         * lib/uniconv/u-conv-to-enc.h: New file.
48971         * modules/uniconv/u16-conv-to-enc-tests: New file.
48972         * tests/uniconv/test-u16-conv-to-enc.c: New file.
48973
48974         * modules/uniconv/u8-conv-to-enc: New file.
48975         * lib/uniconv/u8-conv-to-enc.c: New file.
48976         * modules/uniconv/u8-conv-to-enc-tests: New file.
48977         * tests/uniconv/test-u8-conv-to-enc.c: New file.
48978
48979         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48980         u32_conv_to_encoding): New declarations.
48981
48982 2007-06-09  Bruno Haible  <bruno@clisp.org>
48983
48984         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
48985
48986 2007-06-09  Bruno Haible  <bruno@clisp.org>
48987
48988         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
48989         * modules/malloca: Renamed from modules/allocsa, updated.
48990         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
48991         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
48992         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
48993         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
48994         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
48995         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
48996         * modules/xmalloca: Renamed from modules/xallocsa, updated.
48997         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
48998         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
48999         * modules/c-strcasestr (Depends-on): Update.
49000         * lib/c-strcasestr.c: Update.
49001         * modules/c-strstr (Depends-on): Update.
49002         * lib/c-strstr.c: Update.
49003         * modules/canonicalize-lgpl (Depends-on): Update.
49004         * lib/canonicalize-lgpl.c: Update.
49005         * modules/clean-temp (Depends-on): Update.
49006         * lib/clean-temp.c: Update.
49007         * modules/csharpcomp (Depends-on): Update.
49008         * lib/csharpcomp.c: Update.
49009         * modules/csharpexec (Depends-on): Update.
49010         * lib/csharpexec.c: Update.
49011         * modules/javacomp (Depends-on): Update.
49012         * lib/javacomp.c: Update.
49013         * modules/javaexec (Depends-on): Update.
49014         * lib/javaexec.c: Update.
49015         * modules/mbscasestr (Depends-on): Update.
49016         * lib/mbscasestr.c: Update.
49017         * modules/mbsstr (Depends-on): Update.
49018         * lib/mbsstr.c: Update.
49019         * modules/setenv (Depends-on): Update.
49020         * lib/setenv.c: Update.
49021         * modules/strcasestr (Depends-on): Update.
49022         * lib/strcasestr.c: Update.
49023         * modules/striconveha (Depends-on): Update.
49024         * lib/striconveha.c: Update.
49025         * modules/relocatable-prog-wrapper (Files): Update.
49026         * lib/relocwrapper.c: Update.
49027         * build-aux/install-reloc: Update.
49028         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
49029
49030 2007-06-08  Bruno Haible  <bruno@clisp.org>
49031
49032         Port to uClibc.
49033         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
49034         * lib/fpurge.c (fpurge): Likewise.
49035         * lib/freading.c (freading): Likewise.
49036         * lib/fseeko.c (rpl_fseeko): Likewise.
49037         * lib/fseterr.c (fseterr): Likewise.
49038         * lib/fwriting.c (fwriting): Likewise.
49039         * tests/test-fflush.c (main): Avoid a failure on uClibc.
49040
49041 2007-06-08  Bruno Haible  <bruno@clisp.org>
49042
49043         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
49044         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
49045         * modules/gettext (Files): Add m4/intlmacosx.m4.
49046
49047 2007-06-07  Bruno Haible  <bruno@clisp.org>
49048
49049         * modules/localename-tests: New file.
49050         * tests/test-localename.c: New file.
49051
49052         New module 'localename'.
49053         * lib/localename.h: New file.
49054         * lib/localename.c: New file, from GNU gettext.
49055         * m4/localename.m4: New file.
49056         * modules/localename: New file.
49057
49058 2007-06-07  Bruno Haible  <bruno@clisp.org>
49059
49060         Work around the lack of <wchar.h> on some builds of uClibc.
49061         * doc/headers/wchar.texi: Update.
49062         * lib/wchar_.h: Include <wchar.h> only if it exists.
49063         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
49064         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
49065         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
49066         doesn't exist.
49067         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
49068         * modules/mbfile (Depends-on): Add wchar.
49069         * modules/mbiter (Depends-on): Likewise.
49070         * modules/mbuiter (Depends-on): Likewise.
49071         Reported by Simon Josefsson.
49072
49073 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
49074
49075         Work around problem reported by Steven M. Schweda in
49076         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
49077         Tru64 5.1B with the Compaq compiler environment installed declares
49078         an 'isblank' function but does not define it in the C library.
49079         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
49080         * lib/regex_internal.h (isblank): Likewise.
49081         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
49082         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49083
49084 2007-06-05  Bruno Haible  <bruno@clisp.org>
49085
49086         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
49087         ia64.
49088         * modules/printf-safe: New file.
49089         * modules/fprintf-posix (Depends-on): Add printf-safe.
49090         * modules/printf-posix (Depends-on): Likewise.
49091         * modules/snprintf-posix (Depends-on): Likewise.
49092         * modules/sprintf-posix (Depends-on): Likewise.
49093         * modules/vasnprintf-posix (Depends-on): Likewise.
49094         * modules/vasprintf-posix (Depends-on): Likewise.
49095         * modules/vfprintf-posix (Depends-on): Likewise.
49096         * modules/vprintf-posix (Depends-on): Likewise.
49097         * modules/vsnprintf-posix (Depends-on): Likewise.
49098         * modules/vsprintf-posix (Depends-on): Likewise.
49099         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
49100         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
49101         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
49102         "no" on i386, x86_64, ia64.
49103         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
49104         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49105         on i386, x86_64, ia64.
49106         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
49107         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49108         on i386, x86_64, ia64.
49109         * tests/test-vasnprintf-posix.c: Include float.h.
49110         (LDBL80_WORDS): New macro.
49111         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49112         on i386, x86_64, ia64.
49113         * tests/test-vasprintf-posix.c: Include float.h.
49114         (LDBL80_WORDS): New macro.
49115         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49116         on i386, x86_64, ia64.
49117         * tests/test-snprintf-posix.c: Include float.h.
49118         * tests/test-sprintf-posix.c: Likewise.
49119         * tests/test-vsnprintf-posix.c: Likewise.
49120         * tests/test-vsprintf-posix.c: Likewise.
49121
49122 2007-06-05  Bruno Haible  <bruno@clisp.org>
49123
49124         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
49125         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
49126         non-IEEE numbers on i386, x86_64, ia64.
49127         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
49128         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
49129         * tests/test-isnanl.h: Include float.h.
49130         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
49131
49132 2007-06-05  Bruno Haible  <bruno@clisp.org>
49133
49134         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
49135         also the %a / %A. Handle the %a / %A code before this extra handling.
49136
49137 2007-06-05  Bruno Haible  <bruno@clisp.org>
49138
49139         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
49140         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
49141
49142 2007-06-05  Bruno Haible  <bruno@clisp.org>
49143
49144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
49145         typo in variable name.
49146
49147 2007-06-05  Eric Blake  <ebb9@byu.net>
49148
49149         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
49150         Reported by Simon Josefsson.
49151
49152 2007-06-04  Bruno Haible  <bruno@clisp.org>
49153
49154         Avoid test failures on some PowerPC platforms.
49155         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
49156         Define differently for PowerPC.
49157         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
49158         Reported by Gary V. Vaughan <gary@gnu.org>.
49159
49160 2007-06-02  Bruno Haible  <bruno@clisp.org>
49161
49162         Fix test-stdint failure on FreeBSD/ia64.
49163         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
49164         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
49165         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
49166         * doc/headers/stdint.texi: Update.
49167
49168 2007-06-01  Bruno Haible  <bruno@clisp.org>
49169
49170         * tests/test-binary-io.c (main): Pass a third argument to open().
49171         Reported by Gary V. Vaughan <gary@gnu.org>.
49172
49173 2007-06-01  Bruno Haible  <bruno@clisp.org>
49174
49175         * doc/functions/frexpl.texi: Update for mingw.
49176
49177 2007-06-01  Bruno Haible  <bruno@clisp.org>
49178
49179         * tests/test-lseek.c (main): Disable test of errno for invalid third
49180         argument.
49181         * doc/functions/lseek.texi: Update.
49182         Reported by Gary V. Vaughan <gary@gnu.org>.
49183
49184 2007-05-28  Bruno Haible  <bruno@clisp.org>
49185
49186         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
49187
49188 2007-05-31  Eric Blake  <ebb9@byu.net>
49189
49190         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
49191         cross compiling.
49192
49193 2007-05-30  Eric Blake  <ebb9@byu.net>
49194         and Bruno Haible  <bruno@clisp.org>
49195
49196         Work around mingw test failures exposed by m4-1.4.9b.
49197         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
49198         * tests/test-unistd.c: Disable uid_t and git_t tests for the
49199         moment.
49200
49201 2007-05-30  Bruno Haible  <bruno@clisp.org>
49202
49203         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
49204         assuming that they are closed. Needed on HP-UX 11.
49205
49206 2007-05-29  Bruno Haible  <bruno@clisp.org>
49207
49208         Fix a problem with #include_next.
49209         * lib/dirent_.h: Split the double-inclusion guard.
49210         * lib/fcntl_.h: Likewise.
49211         * lib/float_.h: Likewise.
49212         * lib/iconv_.h: Likewise.
49213         * lib/inttypes_.h: Likewise.
49214         * lib/locale_.h: Likewise.
49215         * lib/math_.h: Likewise.
49216         * lib/netinet_in_.h: Likewise.
49217         * lib/search_.h: Likewise.
49218         * lib/signal_.h: Likewise.
49219         * lib/stdint_.h: Likewise.
49220         * lib/stdio_.h: Likewise.
49221         * lib/stdlib_.h: Likewise.
49222         * lib/string_.h: Likewise.
49223         * lib/sys_select_.h: Likewise.
49224         * lib/sys_socket_.h: Likewise.
49225         * lib/sys_stat_.h: Likewise.
49226         * lib/sys_time_.h: Likewise.
49227         * lib/sysexits_.h: Likewise.
49228         * lib/time_.h: Likewise.
49229         * lib/unistd_.h: Likewise.
49230         * lib/wchar_.h: Likewise.
49231         * lib/wctype_.h: Likewise.
49232
49233 2007-05-29  Bruno Haible  <bruno@clisp.org>
49234
49235         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
49236         for the moment.
49237
49238 2007-05-29  Bruno Haible  <bruno@clisp.org>
49239
49240         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
49241         invocation.
49242         Reported by Eric Blake.
49243
49244 2007-05-29  Bruno Haible  <bruno@clisp.org>
49245
49246         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
49247         compiling case.
49248
49249 2007-05-29  Eric Blake  <ebb9@byu.net>
49250             Bruno Haible  <bruno@clisp.org>
49251
49252         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
49253         cross compiles.
49254
49255 2007-05-28  Eric Blake  <ebb9@byu.net>
49256
49257         * modules/closein-tests (test_closein_LDADD): Support test on
49258         cygwin with libtool.
49259
49260 2007-05-28  Bruno Haible  <bruno@clisp.org>
49261
49262         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
49263         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49264         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49265         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49266         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49267         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49268         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49269         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49270         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49271
49272 2007-05-28  Eric Blake  <ebb9@byu.net>
49273
49274         Unconditionally include <config.h> in unit tests.
49275         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
49276         * tests/test-allocsa.c, tests/test-arcfour.c,
49277         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
49278         tests/test-array_list.c, tests/test-array_oset.c,
49279         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
49280         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
49281         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
49282         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
49283         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
49284         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
49285         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
49286         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
49287         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
49288         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
49289         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
49290         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
49291         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
49292         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
49293         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
49294         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
49295         test-md5.c, test-memmem.c, test-printf-posix.c,
49296         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
49297         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
49298         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
49299         test-strcasestr.c, test-striconv.c, test-striconveh.c,
49300         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
49301         test-vasnprintf-posix2.c, test-vasnprintf.c,
49302         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
49303         test-vfprintf-posix.c, test-vprintf-posix.c,
49304         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
49305         test-xvasprintf.c: Likewise.
49306
49307 2007-05-28  Bruno Haible  <bruno@clisp.org>
49308
49309         * gnulib-tool (func_import): Remember the --with-tests command-line
49310         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
49311         Reported by Eric Blake.
49312
49313 2007-05-28  Bruno Haible  <bruno@clisp.org>
49314
49315         * modules/ftell-tests: New file.
49316         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
49317         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
49318
49319         * lib/ftell.c: New file.
49320         * modules/ftell: New file.
49321         * m4/ftell.m4: New file.
49322         * doc/functions/ftell.texi: Update.
49323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
49324         REPLACE_FTELL.
49325         * lib/stdio_.h (rpl_ftell): New declaration.
49326         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
49327         REPLACE_FTELL.
49328
49329 2007-05-28  Eric Blake  <ebb9@byu.net>
49330
49331         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
49332
49333 2007-05-28  Bruno Haible  <bruno@clisp.org>
49334
49335         * modules/fseek-tests: New file.
49336         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
49337         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
49338
49339         * lib/fseek.c: New file.
49340         * modules/fseek: New file.
49341         * m4/fseek.m4: New file.
49342         * doc/functions/fseek.texi: Update.
49343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
49344         REPLACE_FSEEK.
49345         * lib/stdio_.h (rpl_fseek): New declaration.
49346         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
49347         REPLACE_FSEEK.
49348
49349 2007-05-28  Bruno Haible  <bruno@clisp.org>
49350
49351         * lib/stdio_.h (fflush): More comments.
49352
49353 2007-05-28  Bruno Haible  <bruno@clisp.org>
49354
49355         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
49356         runtime test.
49357
49358 2007-05-28  Eric Blake  <ebb9@byu.net>
49359
49360         Improve lseek module.
49361         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
49362         * lib/unistd_.h (lseek): Scale back link warning message.
49363         * tests/test-lseek.c: Beef up test.
49364         * tests/test-lseek.sh: Exercise more facets of lseek.
49365         Reported by Bruno Haible.
49366
49367 2007-05-28  Bruno Haible  <bruno@clisp.org>
49368
49369         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
49370         to define.
49371
49372 2007-05-27  Bruno Haible  <bruno@clisp.org>
49373
49374         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
49375
49376 2007-05-27  Bruno Haible  <bruno@clisp.org>
49377
49378         * modules/openmp: New file.
49379         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
49380         Noah Misch.
49381
49382 2007-05-26  Bruno Haible  <bruno@clisp.org>
49383
49384         * modules/chdir-long (Depends-on): Add fchdir.
49385         * modules/chdir-safer (Depends-on): Likewise.
49386         * modules/fts (Depends-on): Likewise.
49387         * modules/fts-lgpl (Depends-on): Likewise.
49388         * modules/openat (Depends-on): Likewise.
49389         * modules/savewd (Depends-on): Likewise.
49390
49391 2007-05-24  Eric Blake  <ebb9@byu.net>
49392
49393         Fix lseek on mingw.
49394         * modules/lseek: New module.
49395         * m4/lseek.m4: New file.
49396         * lib/lseek.c: New file.
49397         * modules/lseek-tests: New file.
49398         * tests/test-lseek.c: New file.
49399         * tests/test-lseek.sh: New file.
49400         * MODULES.html.sh: Document lseek module.
49401         * modules/fflush (Depends-on): Add lseek, fseeko.
49402         * modules/fseeko (Depends-on): Likewise.
49403         * modules/ftello (Depends-on): Likewise.
49404         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
49405         broken.
49406         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
49407         broken.
49408         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
49409         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
49410         * lib/ftello.c (rpl_ftello): Likewise.
49411         * tests/test-fseeko.c (main): Test this.
49412         * tests/test-fseeko.sh: Likewise.
49413         * tests/test-ftello.c (main): Likewise.
49414         * tests/test-ftello.sh: Likewise.
49415         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
49416         implies replacing fseek.
49417         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
49418         HAVE_FTELLO.
49419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
49420         * modules/unistd (Makefile.am): Likewise.
49421         * lib/unistd_.h (lseek): Declare a replacement.
49422         * doc/functions/lseek.texi (lseek): Document this fix.
49423         * doc/functions/fseek.texi (fseek): Likewise.
49424         * doc/functions/ftell.texi (ftell): Likewise.
49425
49426 2007-05-24  Bruno Haible  <bruno@clisp.org>
49427
49428         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
49429         in the printed representation of a NaN.
49430         * tests/test-vasprintf-posix.c (test_function): Likewise.
49431         * tests/test-snprintf-posix.h (test_function): Likewise.
49432         * tests/test-sprintf-posix.h (test_function): Likewise.
49433         Reported by Eric Blake.
49434
49435 2007-05-23  Eric Blake  <ebb9@byu.net>
49436
49437         Fix fseeko/ftello on cygwin 1.5.24.
49438         * doc/functions/fseeko.texi (fseeko): Document the fix.
49439         * doc/functions/ftello.texi (ftello): Document the fix.
49440         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
49441         * doc/functions/stdout.text (stdout): New file.
49442         * doc/functions/stderr.text (stderr): New file.
49443         * doc/gnulib.texi (Function Substitutes): Use new files.
49444         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
49445         prior to 1.7.0.
49446         * tests/test-ftello.c (main): Likewise for ftello.
49447         * tests/test-fseeko.sh: New file.
49448         * tests/test-ftello.sh: New file.
49449         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
49450         with seekable stdin.
49451         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
49452         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
49453         (gl_REPLACE_FSEEKO): New macro.
49454         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
49455         * modules/fseeko (Files): Distribute fseeko.c.
49456         * modules/ftello (Files): Distribute ftello.c.
49457         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
49458         mode.
49459         * lib/ftello.c (rpl_ftello): New file.
49460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
49461         fseeko, ftello.
49462         (gl_STDIN_LARGE_OFFSET): New macro.
49463         * modules/stdio (Makefile.am): Perform the replacement.
49464         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
49465
49466 2007-05-23  Bruno Haible  <bruno@clisp.org>
49467
49468         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
49469         GNULIB_POSIXCHECK is defined.
49470
49471 2007-05-21  Bruno Haible  <bruno@clisp.org>
49472
49473         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
49474         Check also the output for NaN arguments. When cross-compiling, guess
49475         no on IRIX.
49476         * lib/vasnprintf.c: Update comments.
49477         * tests/test-vasnprintf-posix.c (strisnan): New function.
49478         (test_function): Use it.
49479         * tests/test-vasprintf-posix.c (strisnan): New function.
49480         (test_function): Use it.
49481         * tests/test-snprintf-posix.h (strisnan): New function.
49482         (test_function): Use it.
49483         * tests/test-sprintf-posix.h (strisnan): New function.
49484         (test_function): Use it.
49485         Reported by Eric Blake.
49486
49487 2007-05-20  Bruno Haible  <bruno@clisp.org>
49488
49489         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
49490         numbers that fails on BeOS.
49491         * doc/functions/frexpl.texi: Update.
49492
49493 2007-05-20  Jim Meyering  <jim@meyering.net>
49494
49495         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
49496         forced upon us by glibc-2.6.
49497
49498 2007-05-20  Bruno Haible  <bruno@clisp.org>
49499
49500         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
49501         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
49502         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
49503         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
49504         NEED_PRINTF_INFINITE.
49505         (is_infinitel): New function.
49506         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
49507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
49508         gl_PREREQ_VASNPRINTF_INFINITE.
49509         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
49510         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49511         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
49512         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
49513         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
49514         gl_PREREQ_VASNPRINTF_INFINITE.
49515         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49516         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49517         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49518         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49519         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49520         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49521         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49522         * doc/functions/fprintf.texi: Update.
49523         * doc/functions/printf.texi: Update.
49524         * doc/functions/snprintf.texi: Update.
49525         * doc/functions/sprintf.texi: Update.
49526         * doc/functions/vfprintf.texi: Update.
49527         * doc/functions/vprintf.texi: Update.
49528         * doc/functions/vsnprintf.texi: Update.
49529         * doc/functions/vsprintf.texi: Update.
49530
49531 2007-05-20  Bruno Haible  <bruno@clisp.org>
49532
49533         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
49534         was not found in libc.
49535         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49536
49537 2007-05-20  Bruno Haible  <bruno@clisp.org>
49538
49539         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49540         printed as "-nan" instead of "nan".
49541         * tests/test-vasprintf-posix.c (test_function): Likewise.
49542         * tests/test-snprintf-posix.h (test_function): Likewise.
49543         * tests/test-sprintf-posix.h (test_function): Likewise.
49544         Needed for HP-UX 11.
49545
49546 2007-05-20  Jim Meyering  <jim@meyering.net>
49547
49548         Fix buggy test for the fchownat-deref bug.
49549         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
49550         symlink required for the run-test.  Without it, this test would
49551         always declare that fchownat doesn't work, and client code would
49552         unnecessarily use the replacement function with fixed libc.
49553         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
49554         Reported by Greg Schafer.
49555
49556 2007-05-19  Bruno Haible  <bruno@clisp.org>
49557
49558         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
49559         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
49560         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
49561         Needed for IRIX 6.5 and Solaris 2.5.1.
49562
49563 2007-05-19  Bruno Haible  <bruno@clisp.org>
49564
49565         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
49566         (test_function): Skip tests involving -0.0 on platforms where
49567         -0.0 = 0.0.
49568         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
49569         (test_function): Skip tests involving -0.0 on platforms where
49570         -0.0 = 0.0.
49571         * tests/test-snprintf-posix.h (have_minus_zero): New function.
49572         (test_function): Skip tests involving -0.0 on platforms where
49573         -0.0 = 0.0.
49574         * tests/test-sprintf-posix.h (have_minus_zero): New function.
49575         (test_function): Skip tests involving -0.0 on platforms where
49576         -0.0 = 0.0.
49577         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
49578         tests.
49579         * tests/test-printf-posix.h (test_function): Likewise.
49580         * tests/test-printf-posix.output: Remove all -0.0 related results.
49581         Needed for IRIX 6.5.
49582
49583 2007-05-19  Bruno Haible  <bruno@clisp.org>
49584
49585         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49586         printed as "nan0x7fffffff" instead of "nan".
49587         * tests/test-vasprintf-posix.c (test_function): Likewise.
49588         * tests/test-snprintf-posix.h (test_function): Likewise.
49589         * tests/test-sprintf-posix.h (test_function): Likewise.
49590         * tests/test-fprintf-posix.h (NaN): Remove macro.
49591         (test_function): Remove all NaN related tests.
49592         * tests/test-printf-posix.h (NaN): Remove macro.
49593         (test_function): Remove all NaN related tests.
49594         * tests/test-printf-posix.output: Remove all NaN related results.
49595         Needed for IRIX 6.5.
49596
49597 2007-05-19  Bruno Haible  <bruno@clisp.org>
49598
49599         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
49600         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49601
49602 2007-05-19  Bruno Haible  <bruno@clisp.org>
49603
49604         * lib/float_.h: New file.
49605         * m4/float_h.m4: New file.
49606         * modules/float: New file.
49607         * modules/isnanl (Dependencies): Add float.
49608         * modules/isnanl-nolibm (Dependencies): Likewise.
49609         * modules/mathl (Dependencies): Likewise.
49610         * modules/printf-frexpl (Dependencies): Likewise.
49611         * modules/signbit (Dependencies): Likewise.
49612         * modules/vasnprintf (Dependencies): Likewise.
49613         * doc/headers/float.texi: Update.
49614
49615 2007-05-19  Jim Meyering  <jim@meyering.net>
49616
49617         * lib/utimens.c (gl_futimens): Rename from futimens,
49618         now that glibc-2.6 declares futimens.
49619         * lib/utimens.h: Likewise.
49620
49621 2007-05-19  Bruno Haible  <bruno@clisp.org>
49622
49623         Avoid test failures on mingw.
49624         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
49625         * tests/test-printf-posix.sh: Likewise.
49626         * tests/test-vfprintf-posix.sh: Likewise.
49627         * tests/test-vprintf-posix.sh: Likewise.
49628
49629 2007-05-19  Bruno Haible  <bruno@clisp.org>
49630
49631         Fix *printf result for NaN, Inf, -0.0 on mingw.
49632         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
49633         * lib/vasnprintf.c: Include math.h and isnan.h.
49634         (is_infinite_or_zero): New function.
49635         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
49636         values in the %f, %F, %e, %E, %g, %G directives.
49637         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
49638         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49639         gl_PRINTF_INFINITE and test its result. Invoke
49640         gl_PREREQ_VASNPRINTF_INFINITE.
49641         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49642         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49643         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49644         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49645         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49646         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49647         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49648         * doc/functions/fprintf.texi: Update.
49649         * doc/functions/printf.texi: Update.
49650         * doc/functions/snprintf.texi: Update.
49651         * doc/functions/sprintf.texi: Update.
49652         * doc/functions/vfprintf.texi: Update.
49653         * doc/functions/vprintf.texi: Update.
49654         * doc/functions/vsnprintf.texi: Update.
49655         * doc/functions/vsprintf.texi: Update.
49656
49657 2007-05-19  Bruno Haible  <bruno@clisp.org>
49658
49659         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
49660         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
49661         Instead of multiplying with 10^k, set extra_zeroes to k.
49662         (scale10_round_long_double): Remove function.
49663
49664 2007-05-18  Bruno Haible  <bruno@clisp.org>
49665
49666         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
49667         introduced on 2007-05-06.
49668
49669 2007-05-18  Bruno Haible  <bruno@clisp.org>
49670
49671         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
49672         %g directives.
49673         * tests/test-vasprintf-posix.c (test_function): Likewise.
49674         * tests/test-snprintf-posix.h (test_function): Likewise.
49675         * tests/test-sprintf-posix.h (test_function): Likewise.
49676
49677 2007-05-18  Bruno Haible  <bruno@clisp.org>
49678
49679         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
49680         (strmatch): New function.
49681         (test_function): Test the %f directive on numbers of various exponents.
49682         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
49683         (strmatch): New function.
49684         (test_function): Test the %f directive on numbers of various exponents.
49685         * tests/test-snprintf-posix.h (strmatch): New function.
49686         (test_function): Test the %f directive on numbers of various exponents.
49687         * tests/test-sprintf-posix.h (strmatch): New function.
49688         (test_function): Test the %f directive on numbers of various exponents.
49689         * tests/test-snprintf-posix.c (SIZEOF): New macro.
49690         * tests/test-sprintf-posix.c (SIZEOF): New macro.
49691         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
49692         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
49693
49694 2007-05-18  Bruno Haible  <bruno@clisp.org>
49695
49696         Add support for 'long double' number output.
49697         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
49698         * lib/vasnprintf.c: Include math.h and float+.h.
49699         (mp_limb_t): New type.
49700         (GMP_LIMB_BITS): New macro.
49701         (mp_twolimb_t): New type.
49702         (GMP_TWOLIMB_BITS): New macro.
49703         (mpn_t): New type.
49704         (multiply, divide, convert_to_decimal, decode_long_double,
49705         scale10_round_long_double, scale10_round_decimal_long_double,
49706         floorlog10l): New functions.
49707         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
49708         for the %f, %F, %e, %E, %g, %G directives.
49709         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
49710         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49711         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
49712         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
49713         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49714         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49715         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49716         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49717         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49718         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49719         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49720         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
49721         * modules/snprintf-posix (Depends-on): Likewise.
49722         * modules/sprintf-posix (Depends-on): Likewise.
49723         * modules/vasnprintf-posix (Depends-on): Likewise.
49724         * modules/vasprintf-posix (Depends-on): Likewise.
49725         * modules/vfprintf-posix (Depends-on): Likewise.
49726         * modules/vsnprintf-posix (Depends-on): Likewise.
49727         * modules/vsprintf-posix (Depends-on): Likewise.
49728         * modules/vasnprintf (Files): Add lib/float+.h.
49729         * doc/functions/fprintf.texi: Update.
49730         * doc/functions/printf.texi: Update.
49731         * doc/functions/snprintf.texi: Update.
49732         * doc/functions/sprintf.texi: Update.
49733         * doc/functions/vfprintf.texi: Update.
49734         * doc/functions/vprintf.texi: Update.
49735         * doc/functions/vsnprintf.texi: Update.
49736         * doc/functions/vsprintf.texi: Update.
49737
49738 2007-05-18  Bruno Haible  <bruno@clisp.org>
49739
49740         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
49741
49742 2007-05-18  Bruno Haible  <bruno@clisp.org>
49743
49744         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
49745         for printing 64-bit integers. Needed for mingw.
49746
49747 2007-05-18  Bruno Haible  <bruno@clisp.org>
49748
49749         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49750         gl_FUNC_FREXPL_WORKS.
49751         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
49752
49753 2007-05-18  Bruno Haible  <bruno@clisp.org>
49754
49755         * modules/frexpl-nolibm-tests: New file.
49756
49757         * modules/frexpl-nolibm: New file.
49758         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
49759
49760 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
49761
49762         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
49763         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49764         GCC 4.2, which otherwise issues a lot of warnings.
49765         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
49766         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
49767         Likewise.
49768         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
49769         * modules/iconv_open (iconv.h): Likewise.
49770         * modules/locale (locale.h): Likewise.
49771         * modules/netinet_in (netinet/in.h): Likewise.
49772         * modules/sys_select (sys_select.h): Likewise.
49773         * modules/sys_socket (sys/socket.h): Likewise.
49774         * modules/sys_stat (sys/stat.h): Likewise.
49775         * modules/sysexits (sysexits.h): Likewise.
49776         * modules/unistd (unistd.h): Likewise.
49777
49778 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49779
49780         * modules/closein-tests (Makefile.am): Distribute
49781         `test-closein.sh'.
49782
49783 2007-05-17  Bruno Haible  <bruno@clisp.org>
49784
49785         * tests/test-printf-posix.output: Renamed from
49786         tests/test-fprintf-posix.out.
49787         * modules/fprintf-posix-tests: Update.
49788         * modules/printf-posix-tests: Update.
49789         * modules/vfprintf-posix-tests: Update.
49790         * modules/vprintf-posix-tests: Update.
49791         * tests/test-fprintf-posix.sh: Update.
49792         * tests/test-printf-posix.sh: Update.
49793         * tests/test-vfprintf-posix.sh: Update.
49794         * tests/test-vprintf-posix.sh: Update.
49795         Reported by Ralf Wildenhues.
49796
49797 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49798
49799         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
49800         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49801         GCC 4.2, which otherwise issues a lot of warnings.
49802         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
49803         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
49804         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
49805         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
49806         it should no longer be needed.
49807         * lib/string_.h: Likewise.
49808         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
49809         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
49810         * modules/inttypes (inttypes.h): Likewise.
49811         * modules/math (math.h): Likewise.
49812         * modules/search (search.h): Likewise.
49813         * modules/signal (signal.h): Likewise.
49814         * modules/stdint (stdint.h): Likewise.
49815         * modules/stdio (stdio.h): Likewise.
49816         * modules/stdlib (stdlib.h): Likewise.
49817         * modules/string (string.h): Likewise.
49818         * modules/sys_time (sys/time.h): Likewise.
49819         * modules/time (time.h): Likewise.
49820         * modules/wchar (wchar.h): Likewise.
49821         * modules/wctype (wtype.h): Likewise.
49822
49823 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49824
49825         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
49826
49827 2007-05-13  Bruno Haible  <bruno@clisp.org>
49828
49829         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
49830         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49831         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
49832         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49833         (gl_PREREQ_STRTOK_R): Don't require it here.
49834
49835 2007-05-13  Bruno Haible  <bruno@clisp.org>
49836
49837         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
49838         when used in C++ mode.
49839
49840 2007-05-12  Bruno Haible  <bruno@clisp.org>
49841
49842         * lib/linebuffer.h: Tweak doc.
49843         * lib/linebuffer.c: Likewise.
49844
49845 2007-05-12  James Youngman  <jay@gnu.org>
49846
49847         * lib/linebuffer.c (readlinebuffer_delim): New function,
49848         like readlinebuffer, but use a caller-specified delimiter.
49849         (readlinebuffer): Just call readlinebuffer_delim with '\n'
49850         as the delimiter.
49851         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
49852
49853 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49854
49855         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
49856         * modules/openat (Files): Remove openat-die.c.
49857         (Depends-on): Add openat-die.
49858         * modules/openat-die: New module.
49859
49860 2007-05-06  Bruno Haible  <bruno@clisp.org>
49861
49862         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
49863         Update with info about Cygwin.
49864         * doc/functions/fprintf.texi: Update.
49865         * doc/functions/printf.texi: Update.
49866         * doc/functions/snprintf.texi: Update.
49867         * doc/functions/sprintf.texi: Update.
49868         * doc/functions/vfprintf.texi: Update.
49869         * doc/functions/vprintf.texi: Update.
49870         * doc/functions/vsnprintf.texi: Update.
49871         * doc/functions/vsprintf.texi: Update.
49872         Reported by Eric Blake.
49873
49874 2007-05-06  Bruno Haible  <bruno@clisp.org>
49875
49876         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
49877         padding ourselves for the floating-point directives.
49878         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
49879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
49880         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49881         gl_PRINTF_FLAG_ZERO and test its result. Invoke
49882         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
49883         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49884         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49885         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49886         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49887         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49888         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49889         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49890         * tests/test-snprintf-posix.h (test_function): Also check the width
49891         and some flags in the %f directive.
49892         * tests/test-sprintf-posix.h (test_function): Likewise.
49893         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49894         * tests/test-vasprintf-posix.c (test_function): Likewise.
49895         * doc/functions/fprintf.texi: Update.
49896         * doc/functions/printf.texi: Update.
49897         * doc/functions/snprintf.texi: Update.
49898         * doc/functions/sprintf.texi: Update.
49899         * doc/functions/vfprintf.texi: Update.
49900         * doc/functions/vprintf.texi: Update.
49901         * doc/functions/vsnprintf.texi: Update.
49902         * doc/functions/vsprintf.texi: Update.
49903
49904 2007-05-06  Bruno Haible  <bruno@clisp.org>
49905
49906         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
49907         pass the ' flag character to sprintf or snprintf.
49908         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
49909         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
49910         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49911         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
49912         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
49913         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49914         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49915         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49916         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49917         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49918         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49919         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49920         * tests/test-snprintf-posix.h (test_function): Also check the grouping
49921         flag.
49922         * tests/test-sprintf-posix.h (test_function): Likewise.
49923         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49924         * tests/test-vasprintf-posix.c (test_function): Likewise.
49925         * doc/functions/fprintf.texi: Update.
49926         * doc/functions/printf.texi: Update.
49927         * doc/functions/snprintf.texi: Update.
49928         * doc/functions/sprintf.texi: Update.
49929         * doc/functions/vfprintf.texi: Update.
49930         * doc/functions/vprintf.texi: Update.
49931         * doc/functions/vsnprintf.texi: Update.
49932         * doc/functions/vsprintf.texi: Update.
49933
49934 2007-05-01  Bruno Haible  <bruno@clisp.org>
49935
49936         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
49937
49938 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
49939
49940         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
49941         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
49942
49943 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49944
49945         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
49946         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
49947         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
49948
49949 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
49950
49951         * lib/argp-help.c (struct hol_entry): New member `ord'.
49952         (HOL_ENTRY_PTRCMP): Use ord for comparison
49953         (hol_sort): Initialize ord.
49954
49955 2007-05-01  Bruno Haible  <bruno@clisp.org>
49956
49957         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
49958         Reported by Eric Blake.
49959         * doc/gnulib.texi (Function Substitutes): Update.
49960
49961 2007-05-01  Bruno Haible  <bruno@clisp.org>
49962
49963         * doc/functions.texi: Remove file, now redundant through
49964         doc/functions/*.texi.
49965
49966 2007-05-01  Bruno Haible  <bruno@clisp.org>
49967
49968         * modules/argp (Depends-on): Add sleep.
49969
49970 2007-05-01  Bruno Haible  <bruno@clisp.org>
49971
49972         * modules/sleep-tests: New file.
49973         * tests/test-sleep.c: New file.
49974
49975         * modules/sleep: New file.
49976         * lib/sleep.c: New file.
49977         * m4/sleep.m4: New file.
49978         * lib/unistd_.h (sleep): New declaration.
49979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
49980         HAVE_SLEEP.
49981         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
49982         * doc/functions/sleep.texi: Document the sleep module.
49983
49984 2007-05-01  Bruno Haible  <bruno@clisp.org>
49985
49986         * lib/sigprocmask.h: Remove file.
49987         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
49988         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
49989         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
49990         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
49991         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
49992         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
49993         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
49994         HAVE_SIGSET_T as a shell variable.
49995         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
49996         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
49997         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
49998         (Depends-on): Add signal. Remove verify.
49999         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
50000         (Include): Mention <signal.h> instead of sigprocmask.h.
50001         * NEWS: Mention the change.
50002         * lib/fatal-signal.c: Don't include sigprocmask.h.
50003
50004 2007-05-01  Bruno Haible  <bruno@clisp.org>
50005
50006         * modules/signal: New file.
50007         * lib/signal_.h: New file.
50008         * m4/signal_h.m4: New file.
50009
50010 2007-05-01  Bruno Haible  <bruno@clisp.org>
50011
50012         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
50013         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
50014         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
50015         HAVE_WCTYPE_CTMP_BUG into wctype.h.
50016
50017 2007-05-01  Bruno Haible  <bruno@clisp.org>
50018
50019         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
50020         configure time.
50021         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
50022         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
50023         * modules/sys_stat (Makefile.am): Substitute their values into
50024         sys/stat.h.
50025
50026 2007-05-01  Bruno Haible  <bruno@clisp.org>
50027
50028         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
50029         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
50030         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
50031
50032 2007-05-01  Bruno Haible  <bruno@clisp.org>
50033
50034         * doc/header/assert.texi: Undo last change: don't mention the gnulib
50035         'assert' module here.
50036
50037 2007-05-01  Bruno Haible  <bruno@clisp.org>
50038
50039         * doc/functions/*.texi: New files.
50040         * doc/functions/google-ranking.txt: New file.
50041         * doc/gnulib.texi (Function Substitutes): New chapter.
50042         (ctime, inet_ntoa): Remove sections.
50043         * doc/ctime.texi: Remove file.
50044         * doc/inet_ntoa.texi: Remove file.
50045         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
50046         dependencies.
50047         (%.info): New rule, specifying a --reference-limit.
50048
50049 2007-05-01  Bruno Haible  <bruno@clisp.org>
50050
50051         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
50052
50053 2007-05-01  Bruno Haible  <bruno@clisp.org>
50054
50055         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
50056         the portability of 'mkdir' to mingw systems.
50057
50058 2007-05-01  Bruno Haible  <bruno@clisp.org>
50059
50060         * doc/headers/google-ranking.txt: New file.
50061
50062 2007-04-30  Eric Blake  <ebb9@byu.net>
50063
50064         Prefer fseeko to fseek.
50065         * modules/getpass (Depends-on): Add fseeko.
50066         * lib/getpass.c (getpass): Use fseeko, not fseek.
50067
50068 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
50069
50070         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
50071         assumes the sorting is stable, while most qsort implementations
50072         are not.  Use argument addresses to ensure they never compare as
50073         equal.
50074
50075         * tests/test-argp-2.sh (usage-indent test): Fix output
50076         (func_compare): Restore diff options
50077         * tests/test-argp.c: Restore #include "progname.h"
50078
50079 2007-04-29  Bruno Haible  <bruno@clisp.org>
50080
50081         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
50082         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50083         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
50084         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50085         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
50086         (configure.ac): Define CHECK_SNPRINTF_POSIX.
50087         (TESTS, check_PROGRAMS): Add test-snprintf.
50088         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
50089         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
50090         (TESTS, check_PROGRAMS): Add test-vsnprintf.
50091         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
50092         assertions that fail on HP-UX, OSF/1, or IRIX.
50093         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
50094
50095 2007-04-29  Bruno Haible  <bruno@clisp.org>
50096
50097         * MODULES.html.sh (posix_functions): Remove 'contents'.
50098
50099 2007-04-29  Karl Berry  <karl@gnu.org>
50100
50101         * config/srclist.txt (gendocs_template_min): new entry.
50102
50103 2007-04-29  Bruno Haible  <bruno@clisp.org>
50104
50105         Work around fpurge bug on BSD systems.
50106         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
50107         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
50108         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
50109         fpurge to rpl_fpurge if the system already has this function.
50110         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
50111         the case where the system already has this function. Correct invariants
50112         on BSD systems.
50113         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
50114         BSD systems.
50115
50116 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50117
50118         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
50119         proposed by Sven Verdoolaege.
50120
50121         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
50122         options.
50123         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
50124         (usage and help tests): Update
50125
50126 2007-04-29  Bruno Haible  <bruno@clisp.org>
50127
50128         * tests/test-fflush.c (main): Use a file of size 17, not 10.
50129         Print more information in case of failure. Disable a test on BeOS.
50130
50131 2007-04-29  Bruno Haible  <bruno@clisp.org>
50132
50133         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
50134         This helps debugging on systems on which no gdb is available.
50135
50136 2007-04-29  Bruno Haible  <bruno@clisp.org>
50137
50138         * lib/freading.h: Improve comments.
50139         * lib/fwriting.h: Likewise.
50140         * tests/test-freading.c (main): Don't check freading immediately after
50141         repositioning. Needed for glibc.
50142
50143 2007-04-29  Bruno Haible  <bruno@clisp.org>
50144
50145         * lib/freading.c (freading): Trivial simplification.
50146
50147 2007-04-28  Bruno Haible  <bruno@clisp.org>
50148
50149         * tests/test-fwriting.c (main): Also test the interaction between
50150         fflush and fwriting.
50151         * modules/fwriting-tests (Depends-on): Add fflush.
50152
50153         * tests/test-freading.c (main): Also test the interaction between
50154         fflush and freading.
50155         * modules/freading-tests (Depends-on): Add fflush.
50156
50157 2007-04-28  Bruno Haible  <bruno@clisp.org>
50158
50159         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
50160         fseeko and ftello.
50161         Suggested by Eric Blake.
50162
50163 2007-04-28  Jim Meyering  <jim@meyering.net>
50164
50165         Avoid false-negative in gl_STDINT_H's C99 conformance test.
50166         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
50167         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
50168
50169 2007-04-27  Eric Blake  <ebb9@byu.net>
50170
50171         * doc/headers/assert.texi (assert.h): Document assert module use.
50172
50173 2007-04-27  Bruno Haible  <bruno@clisp.org>
50174
50175         * doc/headers/*.texi: New files.
50176         * doc/gnulib.texi (Header File Substitutes): New chapter.
50177         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
50178         dependencies.
50179         (standards.info ,standards.html, standards.dvi): Update dependencies.
50180         (mostlyclean, clean): New targets.
50181
50182 2007-04-27  Bruno Haible  <bruno@clisp.org>
50183
50184         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
50185         * modules/sysexits (Files, Makefile.am): Update.
50186
50187         * lib/sys_socket_.h: Renamed from lib/socket_.h.
50188         * modules/sys_socket (Files, Makefile.am): Update.
50189
50190         * lib/sys_stat_.h: Renamed from lib/stat_.h.
50191         * modules/sys_stat (Files, Makefile.am): Update.
50192
50193 2007-04-27  Eric Blake  <ebb9@byu.net>
50194
50195         * lib/freading.h: Improve comments.
50196         * lib/fwriting.h: Likewise.
50197         * lib/fflush.c: Likewise.
50198
50199         Fix closein for mingw.
50200         * modules/closein-tests: Add tests for closein.
50201         * tests/test-closein.c: New file.
50202         * tests/test-closein.sh: Likewise.
50203         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
50204         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
50205
50206 2007-04-27  Bruno Haible  <bruno@clisp.org>
50207
50208         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
50209         version is < 6.
50210         * lib/math_.h [__DECC]: Likewise.
50211         * lib/stdio_.h [__DECC]: Likewise.
50212         * lib/stdlib_.h [__DECC]: Likewise.
50213         * lib/string_.h [__DECC]: Likewise.
50214         * lib/time_.h [__DECC]: Likewise.
50215         * lib/wchar_.h [__DECC]: Likewise.
50216         * lib/wctype_.h [__DECC]: Likewise.
50217
50218 2007-04-27  Bruno Haible  <bruno@clisp.org>
50219
50220         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
50221
50222 2007-04-27  Bruno Haible  <bruno@clisp.org>
50223
50224         * lib/fflush.c: Add comments.
50225         * modules/fpurge-tests (Depends-on): Add fflush.
50226         * modules/freadable-tests (Depends-on): Likewise.
50227         * modules/fwritable-tests (Depends-on): Likewise.
50228
50229 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
50230
50231         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
50232         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
50233         Report by Bruno Haible <bruno@clisp.org>.
50234
50235 2007-04-26  Eric Blake  <ebb9@byu.net>
50236
50237         Fix fflush on mingw.
50238         * modules/fflush (Depends-on): Add freading.
50239         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
50240         but unread data.
50241
50242 2007-04-26  Eric Blake  <ebb9@byu.net>
50243         and Bruno Haible  <bruno@clisp.org>
50244
50245         Implement freading and fwriting.
50246         * lib/freading.c: New file.
50247         * lib/freading.h: Likewise.
50248         * m4/freading.m4: Likewise.
50249         * modules/freading: Likewise.
50250         * modules/freading-tests: Likewise.
50251         * tests/test-freading.c: Likewise.
50252         * lib/fwriting.c: New file.
50253         * lib/fwriting.h: Likewise.
50254         * m4/fwriting.m4: Likewise.
50255         * modules/fwriting: Likewise.
50256         * modules/fwriting-tests: Likewise.
50257         * tests/test-fwriting.c: Likewise.
50258         * MODULES.html.sh (File stream based Input/Output): Mention them.
50259
50260 2007-04-26  Bruno Haible  <bruno@clisp.org>
50261
50262         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
50263         'long' when we assume it.
50264         Suggested by Eric Blake.
50265
50266 2007-04-26  Bruno Haible  <bruno@clisp.org>
50267
50268         Ensure fseeko, ftello are declared on glibc systems.
50269         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
50270         * modules/fseeko (configure.ac-early): Likewise.
50271         * modules/ftello (configure.ac-early): Likewise.
50272         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
50273         AC_FUNC_FSEEKO for this.
50274         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
50275         (gl_CHECK_FSEEKO): Remove macro.
50276
50277 2007-04-26  Bruno Haible  <bruno@clisp.org>
50278
50279         * tests/test-fflush.c (main): Also check the ftell result after
50280         fflush and fseek/fseeko.
50281         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
50282         file descriptor position cache in the stream.
50283         * lib/fseeko.c (rpl_fseeko): Likewise.
50284
50285 2007-04-26  Bruno Haible  <bruno@clisp.org>
50286
50287         * modules/fflush-tests (Depends-on): Add fseeko.
50288
50289 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
50290             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50291
50292         * lib/argz_.h: ensure error_t definition is obtained in same
50293         mechanism system argz.h would have.
50294         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
50295         argz facilities are known bad.  Err on the side of caution if
50296         cross-compiling.
50297
50298 2007-04-25  Eric Blake  <ebb9@byu.net>
50299
50300         * lib/fpurge.c (includes): Use stdlib.h for free.
50301         * tests/test-fflush.c (main): Also test fflush-fseeko.
50302
50303 2007-04-25  Bruno Haible  <bruno@clisp.org>
50304
50305         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
50306         * lib/fseeko.c: New file.
50307         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
50308         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
50309         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
50310         gl_FUNC_FSEEKO.
50311         (gl_FUNC_FSEEKO): Invoke it.
50312         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
50313         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
50314         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
50315
50316 2007-04-25  Bruno Haible  <bruno@clisp.org>
50317
50318         * modules/fflush (Depends-on): Add ftello.
50319
50320 2007-04-25  Bruno Haible  <bruno@clisp.org>
50321
50322         * modules/ftello-tests: New file.
50323         * tests/test-ftello.c: New file.
50324
50325         * modules/ftello: New file.
50326         * m4/ftello.m4: New file.
50327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
50328         HAVE_FTELLO.
50329         * lib/stdio_.h (ftello): New declaration.
50330         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
50331         HAVE_FTELLO.
50332
50333 2007-04-25  Bruno Haible  <bruno@clisp.org>
50334
50335         * modules/fseeko-tests: New file.
50336         * tests/test-fseeko.c: New file.
50337
50338         * modules/fseeko: New file.
50339         * m4/fseeko.m4: New file.
50340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
50341         HAVE_FSEEKO.
50342         * lib/stdio_.h (fseeko): New declaration.
50343         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
50344         HAVE_FSEEKO.
50345
50346 2007-04-25  Bruno Haible  <bruno@clisp.org>
50347
50348         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
50349
50350 2007-04-25  Bruno Haible  <bruno@clisp.org>
50351
50352         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
50353         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
50354         * tests/test-unistd.c: Likewise.
50355         * tests/test-fcntl.c: Likewise.
50356
50357 2007-04-23  Eric Blake  <ebb9@byu.net>
50358
50359         * lib/fflush.c: Fix missing include.
50360         Reported by Bruno Haible.
50361
50362 2007-04-23  Bruno Haible  <bruno@clisp.org>
50363
50364         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
50365         Reported by Eric Blake.
50366
50367 2007-04-23  Bruno Haible  <bruno@clisp.org>
50368
50369         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
50370
50371 2007-04-23  Bruno Haible  <bruno@clisp.org>
50372
50373         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
50374
50375 2007-04-23  Bruno Haible  <bruno@clisp.org>
50376
50377         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
50378         Needed on HP-UX 11.
50379
50380 2007-04-16  Eric Blake  <ebb9@byu.net>
50381
50382         Make fflush rely on fpurge.
50383         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
50384         open coding all variants.
50385         * modules/fflush (Depends-on): Add fpurge and unistd.
50386         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
50387         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
50388
50389         Fix --with-tests compilation on cygwin.
50390         * modules/argmatch-tests (Makefile.am): List gnulib library first
50391         in LDADD.
50392         * modules/argp-tests (Makefile.am): Likewise.
50393         * modules/array-list-tests (Makefile.am): Likewise.
50394         * modules/array-oset-tests (Makefile.am): Likewise.
50395         * modules/avltree-list-tests (Makefile.am): Likewise.
50396         * modules/avltree-oset-tests (Makefile.am): Likewise.
50397         * modules/avltreehash-list-tests (Makefile.am): Likewise.
50398         * modules/carray-list-tests (Makefile.am): Likewise.
50399         * modules/dirname-tests (Makefile.am): Likewise.
50400         * modules/frexp-tests (Makefile.am): Likewise.
50401         * modules/isnanl-tests (Makefile.am): Likewise.
50402         * modules/linked-list-tests (Makefile.am): Likewise.
50403         * modules/linkedhash-list-tests (Makefile.am): Likewise.
50404         * modules/lock-tests (Makefile.am): Likewise.
50405         * modules/rbtree-list-tests (Makefile.am): Likewise.
50406         * modules/rbtree-oset-tests (Makefile.am): Likewise.
50407         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
50408         * modules/tls-tests (Makefile.am): Likewise.
50409         * modules/tsearch-tests (Makefile.am): Likewise.
50410         * modules/xvasprintf-tests (Makefile.am): Likewise.
50411
50412         Fix fpurge for cygwin.
50413         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
50414         value.
50415         * modules/fpurge-tests (Depends-on): Clean up trash.
50416
50417 2007-04-16  Simon Josefsson  <simon@josefsson.org>
50418
50419         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
50420
50421         * m4/autobuild.m4: Re-indent.
50422
50423 2007-04-13  Bruno Haible  <bruno@clisp.org>
50424
50425         * modules/fpurge-tests: New file.
50426         * tests/test-fpurge.c: New file.
50427
50428         * modules/fpurge: New file.
50429         * lib/fpurge.h: New file.
50430         * lib/fpurge.c: New file.
50431         * m4/fpurge.m4: New file.
50432
50433 2007-04-13  Bruno Haible  <bruno@clisp.org>
50434
50435         * modules/fbufmode-tests: New file.
50436         * tests/test-fbufmode.c: New file.
50437
50438         * modules/fbufmode: New file.
50439         * lib/fbufmode.h: New file.
50440         * lib/fbufmode.c: New file.
50441         * m4/fbufmode.m4: New file.
50442
50443 2007-04-13  Bruno Haible  <bruno@clisp.org>
50444
50445         * modules/fwritable-tests: New file.
50446         * tests/test-fwritable.c: New file.
50447
50448         * modules/fwritable: New file.
50449         * lib/fwritable.h: New file.
50450         * lib/fwritable.c: New file.
50451         * m4/fwritable.m4: New file.
50452
50453 2007-04-13  Bruno Haible  <bruno@clisp.org>
50454
50455         * modules/freadable-tests: New file.
50456         * tests/test-freadable.c: New file.
50457
50458         * modules/freadable: New file.
50459         * lib/freadable.h: New file.
50460         * lib/freadable.c: New file.
50461         * m4/freadable.m4: New file.
50462
50463 2007-04-13  Bruno Haible  <bruno@clisp.org>
50464
50465         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
50466         MOSTLYCLEANFILES.
50467
50468 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50469
50470         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
50471         gzip bootstrap.conf to avoid dragging in i18n machinery.
50472         (gnulib_tool_option): Use it.
50473
50474 2007-04-13  Bruno Haible  <bruno@clisp.org>
50475
50476         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
50477         %F directives.
50478         * tests/test-vasprintf-posix.c (test_function): Likewise.
50479         * tests/test-snprintf-posix.h (test_function): Likewise.
50480         * tests/test-sprintf-posix.h (test_function): Likewise.
50481         * tests/test-fprintf-posix.h (test_function): Likewise.
50482         * tests/test-printf-posix.h (test_function): Likewise.
50483         * tests/test-fprintf-posix.out: Likewise.
50484
50485 2007-04-13  Bruno Haible  <bruno@clisp.org>
50486
50487         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
50488         * modules/tls-tests (configure.ac): Likewise.
50489         Reported by Arto C. Nirkko <anirkko@insel.ch>.
50490
50491 2007-04-13  Bruno Haible  <bruno@clisp.org>
50492
50493         * lib/tls.c (glthread_tls_get): Fix return type.
50494         Patch by Arto C. Nirkko <anirkko@insel.ch>.
50495
50496 2007-04-12  Eric Blake  <ebb9@byu.net>
50497
50498         * modules/gettime (Depends-on): Remove gettime.
50499         Reported by Dmitry V. Levin.
50500
50501 2007-04-12  Bruno Haible  <bruno@clisp.org>
50502
50503         * modules/fflush (Include): Mention <stdio.h>.
50504         * modules/strtoimax (Include): Mention <inttypes.h>.
50505         * modules/strtoumax (Include): Likewise.
50506
50507 2007-04-12  Eric Blake  <ebb9@byu.net>
50508
50509         * .cvsignore: New file.
50510         * .gitignore: Likewise.
50511
50512 2007-04-12  Bruno Haible  <bruno@clisp.org>
50513
50514         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
50515         not before, since $(LDADD) often contains libgnu.a.
50516         * modules/striconv-tests (test_striconv_LDADD): Likewise.
50517         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
50518         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
50519         Needed on Cygwin.
50520
50521 2007-04-12  Eric Blake  <ebb9@byu.net>
50522
50523         Work around glibc's failure to flush stdin on fclose.
50524         * lib/closein.c (close_stdin): Flush stdin before closing.
50525
50526         Work around glibc's failure to reset seekable stdin on exit.
50527         * modules/closein: New module.
50528         * lib/closein.c: New file.
50529         * lib/closein.h: Likewise.
50530         * m4/closein.m4: Likewise.
50531         * MODULES.html.sh (File stream based Input/Output): Document it.
50532
50533 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50534
50535         * gnulib-tool: Rename generated 'autobuild' script to
50536         'do-autobuild' in --create-megatestdir output.
50537
50538         * doc/gnulib.texi (Build robot for gnulib): Fix.
50539
50540 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50541
50542         * modules/sysexits (Depends-on): Add absolute-header.
50543
50544 2007-04-12  Eric Blake  <ebb9@byu.net>
50545
50546         No need to preserve errno on success.
50547         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
50548         Reported by Bruno Haible.
50549
50550 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50551
50552         * MODULES.html.sh (Support for maintaining and releasing
50553         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
50554
50555 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50556
50557         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
50558
50559 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50560
50561         * modules/autobuild: New module.
50562
50563         * m4/autobuild.m4: New file.
50564
50565 2007-04-11  Bruno Haible  <bruno@clisp.org>
50566
50567         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
50568         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
50569         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
50570         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
50571         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50572         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50573         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50574         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50575         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50576         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50577         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
50578         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50579         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50580         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
50581         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50582         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50583         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
50584         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50585         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50586         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
50587         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50588         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50589         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
50590         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50591         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50592         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
50593         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50594         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50595         Reported by Eric Blake.
50596
50597 2007-04-11  Bruno Haible  <bruno@clisp.org>
50598
50599         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
50600
50601 2007-04-10  Bruno Haible  <bruno@clisp.org>
50602
50603         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
50604         for NaN and Infinity. Needed on FreeBSD 6.1.
50605         * tests/test-vasnprintf-posix.c (test_function): Undo last change
50606         regarding results for "%010a" of Infinity and NaN.
50607         * tests/test-vasprintf-posix.c (test_function): Likewise.
50608         * tests/test-snprintf-posix.h (test_function): Likewise.
50609         * tests/test-sprintf-posix.h (test_function): Likewise.
50610         * tests/test-fprintf-posix.h (test_function): Likewise.
50611         * tests/test-printf-posix.h (test_function): Likewise.
50612         * tests/test-fprintf-posix.out: Likewise.
50613
50614 2007-04-10  Bruno Haible  <bruno@clisp.org>
50615
50616         * modules/locale-tests: New file.
50617         * tests/test-locale.c: New file.
50618
50619         * modules/locale: New file.
50620         * lib/locale_.h: New file.
50621         * m4/locale_h.m4: New file.
50622
50623 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
50624             Bruno Haible  <bruno@clisp.org>
50625
50626         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
50627         be determined, test for availability of the copysignf, copysign,
50628         copysignl functions.
50629         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
50630         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
50631         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
50632
50633 2007-04-09  Eric Blake  <ebb9@byu.net>
50634
50635         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
50636         * modules/stdio (Makefile.am): Support fflush.
50637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50638         * modules/fflush: New file.
50639         * lib/fflush.c: Likewise.
50640         * m4/fflush.m4: Likewise.
50641         * modules/fflush-tests: New test.
50642         * tests/test-fflush.c: Likewise.
50643         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
50644
50645 2007-04-06  Bruno Haible  <bruno@clisp.org>
50646
50647         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
50648         (VASNPRINTF): Use signbit for faster determination whether to print a
50649         minus sign.
50650         * modules/vasnprintf (Files): Remove lib/float+.h.
50651         * modules/fprintf-posix (Depends-on): Add signbit.
50652         * modules/snprintf-posix (Depends-on): Likewise.
50653         * modules/sprintf-posix (Depends-on): Likewise.
50654         * modules/vasnprintf-posix (Depends-on): Likewise.
50655         * modules/vasprintf-posix (Depends-on): Likewise.
50656         * modules/vfprintf-posix (Depends-on): Likewise.
50657         * modules/vsnprintf-posix (Depends-on): Likewise.
50658         * modules/vsprintf-posix (Depends-on): Likewise.
50659
50660 2007-04-06  Bruno Haible  <bruno@clisp.org>
50661
50662         * tests/test-frexp.c (main): Test also the sign bit of zero results.
50663         * tests/test-frexpl.c (main): Likewise.
50664         * tests/test-ldexpl.c (main): Likewise.
50665         * modules/frexp-tests (Depends-on): Add signbit.
50666         * modules/frexpl-tests (Depdends-on): Likewise.
50667         * modules/ldexpl-tests (Depdends-on): Likewise.
50668
50669 2007-04-06  Bruno Haible  <bruno@clisp.org>
50670
50671         * modules/signbit-tests: New file.
50672         * tests/test-signbit.c: New file.
50673
50674         * modules/signbit: New file.
50675         * lib/signbitf.c: New file.
50676         * lib/signbitd.c: New file.
50677         * lib/signbitl.c: New file.
50678         * m4/signbit.m4: New file.
50679         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
50680         (signbit): New macro.
50681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
50682         REPLACE_SIGNBIT.
50683         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
50684         REPLACE_FREXPL into math.h.
50685
50686 2007-04-06  Bruno Haible  <bruno@clisp.org>
50687
50688         * modules/isnanf-nolibm-tests: New file.
50689         * tests/test-isnanf.c: New file.
50690
50691         * modules/isnanf-nolibm: New file.
50692         * lib/isnanf.h: New file.
50693         * lib/isnanf.c: New file.
50694         * lib/isnan.c: Consider the USE_FLOAT macro.
50695         * m4/isnanf.m4: New file.
50696
50697 2007-04-06  Bruno Haible  <bruno@clisp.org>
50698
50699         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
50700         (Link): New section.
50701
50702         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
50703
50704 2007-04-06  Bruno Haible  <bruno@clisp.org>
50705
50706         Assume the 'long double' type.
50707         * m4/longdouble.m4: Remove file.
50708         * config/srclist.txt: Don't mention longdouble.m4.
50709         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
50710         * lib/float+.h: Likewise.
50711         * lib/frexp.c: Likewise.
50712         * lib/printf-args.h: Likewise.
50713         * lib/printf-args.c: Likewise.
50714         * lib/printf-frexp.c: Likewise.
50715         * lib/printf-parse.c: Likewise.
50716         * lib/vasnprintf.c: Likewise.
50717         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
50718         * m4/intl.m4: Likewise.
50719         * m4/isnanl.m4: Likewise.
50720         * m4/printf.m4: Likewise.
50721         * m4/printf-frexpl.m4: Likewise.
50722         * m4/vasnprintf.m4: Likewise.
50723         * modules/allocsa (Files): Remove m4/longdouble.m4.
50724         * modules/gettext (Files): Likewise.
50725         * modules/relocatable-prog-wrapper (Files): Likewise.
50726         * modules/vasnprintf (Files): Likewise.
50727         * modules/isnanl (Files): Likewise.
50728         (Include): Simplify.
50729         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
50730         (Include): Simplify.
50731         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
50732         (Include): Simplify.
50733         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
50734         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50735         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
50736         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50737         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50738         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50739         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
50740         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50741         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50742         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50743         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
50744         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50745         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
50746         * tests/test-isnanl.c: Likewise.
50747         * tests/test-snprintf-posix.h: Likewise.
50748         * tests/test-sprintf-posix.h: Likewise.
50749         * tests/test-vasnprintf-posix.c: Likewise.
50750         * tests/test-vasnprintf-posix2.c: Likewise.
50751         * tests/test-vasprintf-posix.c: Likewise.
50752
50753 2007-04-06  Bruno Haible  <bruno@clisp.org>
50754
50755         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
50756         * lib/math_.h [__DECC]: Include the overridden include file through
50757         #include_next, outside the double-inclusion guard.
50758         * lib/stdio_.h [__DECC]: Likewise.
50759         * lib/stdlib_.h [__DECC]: Likewise.
50760         * lib/string_.h [__DECC]: Likewise.
50761         * lib/time_.h [__DECC]: Likewise.
50762         * lib/wchar_.h [__DECC]: Likewise.
50763         * lib/wctype_.h [__DECC]: Likewise.
50764         * lib/inttypes_.h [__DECC]: Likewise.
50765         Reported by Albert Chin <china@thewrittenword.com> in
50766         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
50767
50768 2007-04-04  Eric Blake  <ebb9@byu.net>
50769
50770         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
50771         1.5.x.
50772
50773 2007-04-04  Bruno Haible  <bruno@clisp.org>
50774
50775         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
50776         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
50777
50778 2007-04-04  Bruno Haible  <bruno@clisp.org>
50779
50780         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
50781         results for "%010a" of Infinity and NaN.
50782         * tests/test-vasprintf-posix.c (test_function): Likewise.
50783         * tests/test-snprintf-posix.h (test_function): Likewise.
50784         * tests/test-sprintf-posix.h (test_function): Likewise.
50785         * tests/test-fprintf-posix.h (test_function): Remove these tests.
50786         * tests/test-printf-posix.h (test_function): Likewise.
50787         * tests/test-fprintf-posix.out: Update.
50788         Needed for FreeBSD 6.1.
50789
50790 2007-04-04  Bruno Haible  <bruno@clisp.org>
50791
50792         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
50793         directly used by the gnulib modules nor by gnulib-tool.
50794
50795 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50796
50797         * DEPENDENCIES: Give overall description of version dependency
50798         desirability.  Use more-typical names for apps.
50799         Add shell, coreutils, diffutils, grep, tar, gzip.
50800
50801 2007-04-04  Simon Josefsson  <simon@josefsson.org>
50802
50803         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
50804
50805 2007-04-04  Karl Berry  <karl@gnu.org>
50806
50807         * MODULES.html.sh (func_module): missing '.
50808
50809 2007-04-03  Bruno Haible  <bruno@clisp.org>
50810
50811         * modules/argmatch-tests (Makefile.am): New variable
50812         test_argmatch_LDADD.
50813         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
50814         * modules/array-list-tests (Makefile.am): New variable
50815         test_array_list_LDADD.
50816         * modules/array-oset-tests (Makefile.am): New variable
50817         test_array_oset_LDADD.
50818         * modules/avltree-list-tests (Makefile.am): New variable
50819         test_avltree_list_LDADD.
50820         * modules/avltree-oset-tests (Makefile.am): New variable
50821         test_avltree_oset_LDADD.
50822         * modules/avltreehash-list-tests (Makefile.am): New variable
50823         test_avltreehash_list_LDADD.
50824         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
50825         test_canonicalize_lgpl_LDADD.
50826         * modules/carray-list-tests (Makefile.am): New variable
50827         test_carray_list_LDADD.
50828         * modules/dirname-tests (Makefile.am): New variable
50829         test_dirname_LDADD.
50830         * modules/linked-list-tests (Makefile.am): New variable
50831         test_linked_list_LDADD.
50832         * modules/linkedhash-list-tests (Makefile.am): New variable
50833         test_linkedhash_list_LDADD.
50834         * modules/rbtree-list-tests (Makefile.am): New variable
50835         test_rbtree_list_LDADD.
50836         * modules/rbtree-oset-tests (Makefile.am): New variable
50837         test_rbtree_oset_LDADD.
50838         * modules/rbtreehash-list-tests (Makefile.am): New variable
50839         test_rbtreehash_list_LDADD.
50840         * modules/xvasprintf-tests (Makefile.am): New variable
50841         test_xvasprintf_LDADD.
50842         Reported by Eric Blake.
50843
50844 2007-04-03  Eric Blake  <ebb9@byu.net>
50845
50846         * DEPENDENCIES: Weaken m4 requirements.
50847
50848 2007-04-03  Bruno Haible  <bruno@clisp.org>
50849
50850         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
50851         * modules/isnanl-tests (configure.ac): Likewise.
50852
50853 2007-04-03  Ben Pfaff  <blp@gnu.org>
50854
50855         * modules/iconv_open: Add $(srcdir)/ to source directory
50856         references in Makefile fragments that call gperf, to fix VPATH
50857         builds.
50858
50859 2007-04-03  Bruno Haible  <bruno@clisp.org>
50860
50861         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
50862         * lib/ldexpl.c: Undo last change.
50863
50864 2007-04-03  Bruno Haible  <bruno@clisp.org>
50865
50866         * modules/printf-frexpl (Depends-on): Undo last change.
50867         (Files): Add m4/ldexpl.m4.
50868
50869 2007-04-03  Bruno Haible  <bruno@clisp.org>
50870
50871         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
50872         * modules/isnanl (Link): New section.
50873
50874         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
50875         * modules/frexp (Link): New section.
50876
50877         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
50878         * modules/frexpl (Link): New section.
50879
50880         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
50881         * modules/ldexpl (Link): New section.
50882
50883 2007-04-03  Bruno Haible  <bruno@clisp.org>
50884
50885         * modules/TEMPLATE-EXTENDED: New file.
50886         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
50887
50888 2007-04-03  Bruno Haible  <bruno@clisp.org>
50889
50890         * DEPENDENCIES: New file.
50891         Suggested by Simon Josefsson.
50892
50893 2007-04-03  Bruno Haible  <bruno@clisp.org>
50894
50895         * doc/gnulib.texi: Escape @.
50896
50897 2007-04-03  James Youngman  <jay@gnu.org>
50898         and Paul Eggert  <eggert@cs.ucla.edu>
50899
50900         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
50901         birthtime on all systems that have birthtime, not just those which
50902         use st_birthtimensec rather than st_birthtim.  Putting zero in
50903         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
50904         that the birth time is not available for files on an NFS mount.
50905
50906 2007-04-03  Simon Josefsson  <simon@josefsson.org>
50907
50908         * modules/memxor: Move back from crypto/, suggested by Bruno.
50909         * modules/crypto/hmac-sha1: Fix memxor dependency.
50910
50911         * modules/crypto/gc: Moved from ../.
50912
50913 2007-04-02  Eric Blake  <ebb9@byu.net>
50914
50915         * lib/ldexpl.c (includes): Avoid libm.
50916
50917         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
50918
50919 2007-04-02  Bruno Haible  <bruno@clisp.org>
50920
50921         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
50922         on IRIX.
50923
50924 2007-04-02  Bruno Haible  <bruno@clisp.org>
50925
50926         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
50927         x86 or x86_64 platforms running MacOS X.
50928         Reported by Ryan Schmidt <@ryandesign.com>.
50929
50930 2007-04-02  Bruno Haible  <bruno@clisp.org>
50931
50932         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
50933         i386.
50934
50935 2007-04-01  Simon Josefsson  <simon@josefsson.org>
50936
50937         * modules/crypto/arcfour: Moved from ../.
50938         * modules/crypto/arcfour-tests: Moved from ../.
50939         * modules/crypto/arctwo: Moved from ../.
50940         * modules/crypto/arctwo-tests: Moved from ../.
50941         * modules/crypto/des: Moved from ../.
50942         * modules/crypto/des-tests: Moved from ../.
50943         * modules/crypto/gc-arcfour: Moved from ../.
50944         * modules/crypto/gc-arcfour-tests: Moved from ../.
50945         * modules/crypto/gc-arctwo: Moved from ../.
50946         * modules/crypto/gc-arctwo-tests: Moved from ../.
50947         * modules/crypto/gc-des: Moved from ../.
50948         * modules/crypto/gc-des-tests: Moved from ../.
50949         * modules/crypto/gc-hmac-md5: Moved from ../.
50950         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
50951         * modules/crypto/gc-hmac-sha1: Moved from ../.
50952         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
50953         * modules/crypto/gc-md2: Moved from ../.
50954         * modules/crypto/gc-md2-tests: Moved from ../.
50955         * modules/crypto/gc-md4: Moved from ../.
50956         * modules/crypto/gc-md4-tests: Moved from ../.
50957         * modules/crypto/gc-md5: Moved from ../.
50958         * modules/crypto/gc-md5-tests: Moved from ../.
50959         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
50960         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
50961         * modules/crypto/gc-random: Moved from ../.
50962         * modules/crypto/gc-rijndael: Moved from ../.
50963         * modules/crypto/gc-rijndael-tests: Moved from ../.
50964         * modules/crypto/gc-sha1: Moved from ../.
50965         * modules/crypto/gc-sha1-tests: Moved from ../.
50966         * modules/crypto/gc-tests: Moved from ../.
50967         * modules/crypto/hmac-md5: Moved from ../.
50968         * modules/crypto/hmac-md5-tests: Moved from ../.
50969         * modules/crypto/hmac-sha1: Moved from ../.
50970         * modules/crypto/hmac-sha1-tests: Moved from ../.
50971         * modules/crypto/md2: Moved from ../.
50972         * modules/crypto/md2-tests: Moved from ../.
50973         * modules/crypto/md4: Moved from ../.
50974         * modules/crypto/md4-tests: Moved from ../.
50975         * modules/crypto/md5: Moved from ../.
50976         * modules/crypto/md5-tests: Moved from ../.
50977         * modules/crypto/memxor: Moved from ../.
50978         * modules/crypto/rijndael: Moved from ../.
50979         * modules/crypto/rijndael-tests: Moved from ../.
50980         * modules/crypto/sha1: Moved from ../.
50981
50982 2007-03-30  James Youngman  <jay@gnu.org>
50983
50984         * tests/test-stat-time.c (prepare_test): use chmod() rather than
50985         rename() to change the ctime of a file (because ctime is unaffected
50986         by rename on jfs2 on AIX 5.1).
50987         (main): Start by doing cleanup, in case a previous run failed leaving
50988         test files behind.
50989
50990 2007-03-31  Bruno Haible  <bruno@clisp.org>
50991
50992         Support old proprietary implementations of iconv.
50993         * modules/iconv_open: New file.
50994         * lib/iconv_.h: New file.
50995         * m4/iconv_h.m4: New file.
50996         * lib/iconv_open.c: New file.
50997         * lib/iconv_open-aix.gperf: New file.
50998         * lib/iconv_open-hpux.gperf: New file.
50999         * lib/iconv_open-irix.gperf: New file.
51000         * lib/iconv_open-osf.gperf: New file.
51001         * m4/iconv_open.m4: New file.
51002         * modules/linebreak (Depends-on): Add iconv_open.
51003         * modules/striconv (Depends-on): Likewise.
51004         * modules/striconveh (Depends-on): Likewise.
51005         * modules/unicodeio (Depends-on): Likewise.
51006         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
51007         (iconv_t)(-1).
51008         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
51009         conversion if cd is (iconv_t)(-1).
51010         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
51011         is not possible.
51012
51013 2007-03-31  Bruno Haible  <bruno@clisp.org>
51014
51015         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51016         work on Solaris either. Protect also second use of "autodetect_jp".
51017
51018 2007-03-31  Bruno Haible  <bruno@clisp.org>
51019
51020         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
51021         the function is not present.
51022
51023 2007-03-31  Bruno Haible  <bruno@clisp.org>
51024
51025         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
51026         the function is not present.
51027
51028 2007-03-31  Bruno Haible  <bruno@clisp.org>
51029
51030         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
51031         a bug in HP-UX iconv_open().
51032
51033 2007-03-31  Bruno Haible  <bruno@clisp.org>
51034
51035         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
51036         (Mathematics <math.h>): New section, add fpieee.
51037         (Input/output <stdio.h>): Add fseterr.
51038         (Mathematics <math.h>): New section, add printf-frexp.
51039         (Container data structures): Add sublist.
51040         (Core language properties): Add fpucw, inline.
51041         (Functions for greatest-width integer types <inttypes.h>): Add
51042         imaxabs, imaxdiv, inttypes.
51043         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
51044         isnanl-nolibm, ldexp.
51045         (Mathematics <math.h>): New section, add printf-frexpl.
51046         (Support for systems lacking POSIX:2001): Add fprintf-posix,
51047         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
51048         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
51049         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
51050         (Unicode string functions): Add unistr/u*-mbtoucr.
51051         (Java): Add javacomp-script, javaexec-script.
51052         (C#): Add csharpcomp-script, csharpexec-script.
51053         (Support for building libraries and executables): Add havelib,
51054         relocatable-*.
51055         (Support for maintaining and releasing projects): Renamed from
51056         'Support for maintaining and release projects'. Add announce-gen.
51057
51058 2007-03-31  Bruno Haible  <bruno@clisp.org>
51059
51060         * README: Talk primarily about git.
51061         (git and CVS): Renamed from CVS.
51062         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
51063         gnulib is available through git.
51064         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
51065
51066 2007-03-30  Bruno Haible  <bruno@clisp.org>
51067
51068         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
51069         * lib/poll_.h: Likewise.
51070         * lib/stat_.h: Likewise.
51071         * lib/sys_time_.h: Likewise.
51072         * lib/sysexit_.h: Likewise.
51073         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
51074         * lib/stdbool_.h: Likewise.
51075         * lib/byteswap_.h: Add double-inclusion guard.
51076
51077 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
51078
51079         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
51080
51081 2007-03-30  Karl Berry  <karl@gnu.org>
51082
51083         * config/srclist-update: double space after USA in the license
51084         substitution, since that's how it's usually (?) written.
51085
51086 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51087
51088         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
51089         reported by Bruno Haible.
51090
51091 2007-03-29  Bruno Haible  <bruno@clisp.org>
51092
51093         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
51094         a bug in AIX iconv().
51095
51096 2007-03-29  Bruno Haible  <bruno@clisp.org>
51097
51098         * modules/ldexpl-tests: New file.
51099         * tests/test-ldexpl.c: New file.
51100
51101 2007-03-29  Bruno Haible  <bruno@clisp.org>
51102
51103         * lib/ldexpl.c: Include fpucw.h.
51104         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
51105         multiplication.
51106         * modules/ldexpl (Depends-on): Add fpucw.
51107
51108 2007-03-29  Bruno Haible  <bruno@clisp.org>
51109
51110         * modules/ldexpl: New file.
51111         * m4/ldexpl.m4: New file.
51112         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
51113         set.
51114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
51115         REPLACE_LDEXPL.
51116         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
51117         REPLACE_LDEXPL.
51118         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51119         gl_FUNC_LDEXPL_WORKS.
51120         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
51121         * modules/mathl (Files): Remove lib/ldexpl.c.
51122         (Depends-on): Add ldexpl.
51123
51124 2007-03-29  Bruno Haible  <bruno@clisp.org>
51125
51126         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
51127
51128 2007-03-29  Bruno Haible  <bruno@clisp.org>
51129
51130         * tests/test-striconveh.c (main): Don't assume that a direct conversion
51131         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
51132         and possibly also HP-UX.
51133         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51134         work on AIX, IRIX, HP-UX, OSF/1.
51135         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
51136         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
51137         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
51138         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
51139         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
51140         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
51141
51142 2007-03-29  Bruno Haible  <bruno@clisp.org>
51143
51144         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
51145
51146 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51147
51148         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
51149         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
51150
51151 2007-03-29  Eric Blake  <ebb9@byu.net>
51152
51153         * lib/acl-internal.h: Remove redundant include.
51154         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
51155         Cygwin when a file is locked.
51156
51157 2007-03-29  Bruno Haible  <bruno@clisp.org>
51158
51159         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
51160         file.
51161         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
51162
51163 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51164
51165         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
51166         try to remove a parent directory if the child couldn't be removed
51167         (except for the first rmdir, which could fail because the child
51168         doesn't exist).  Problem reported by Jeff Blaine in
51169         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
51170
51171 2007-03-28  Bruno Haible  <bruno@clisp.org>
51172
51173         * lib/striconveh.c (utf8conv_carefully): New function.
51174         (mem_cd_iconveh_internal): Invoke it.
51175
51176 2007-03-28  Bruno Haible  <bruno@clisp.org>
51177
51178         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
51179         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
51180         input.
51181         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
51182         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
51183         unistr/u8-uctomb.
51184
51185 2007-03-28  Bruno Haible  <bruno@clisp.org>
51186
51187         * modules/unistr/u8-mbtoucr: New file.
51188         * lib/unistr/u8-mbtoucr.c: New file.
51189         * modules/unistr/u16-mbtoucr: New file.
51190         * lib/unistr/u16-mbtoucr.c: New file.
51191         * modules/unistr/u16-mbtoucr: New file.
51192         * lib/unistr/u16-mbtoucr.c: New file.
51193         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
51194
51195 2007-03-27  Simon Josefsson  <simon@josefsson.org>
51196             Bruno Haible  <bruno@clisp.org>
51197
51198         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
51199         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
51200         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
51201
51202         * m4/stdio_h.m4: Add stubs for vasprintf too.
51203
51204         * modules/stdio: Support vasprintf in sed command.
51205
51206         * modules/vasprintf: Depend on stdio for prototypes.  Remove
51207         vasprintf.h.  Add stdio module indicator.
51208
51209         * lib/stdio_.h: Declare asprintf and vasprintf, based on
51210         vasprintf.h.
51211
51212         * lib/vasprintf.h: File removed.
51213
51214         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
51215         * lib/vasprintf.c: Ditto.
51216         * lib/xvasprintf.c: Ditto.
51217         * tests/test-vasprintf-posix.c: Ditto.
51218         * tests/test-vasprintf.c: Ditto.
51219
51220 2007-03-27  Bruno Haible  <bruno@clisp.org>
51221
51222         Make vasnprintf multithread-safe.
51223         * lib/vasnprintf.c (decimal_point_char): New function.
51224         (VASNPRINTF): Use it.
51225         Suggested by Simon Josefsson.
51226
51227 2007-03-27  Eric Blake  <ebb9@byu.net>
51228
51229         Support sub-second birthtime on cygwin.
51230         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
51231         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
51232         (get_stat_birthtime): Also work with st_birthtim.
51233
51234 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
51235
51236         * lib/stat-time.h (USE_BIRTHTIME): Remove.
51237         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
51238         (get_stat_birthtime_ns): Do not try to use "spare" fields.
51239         (get_stat_birthtime_ns): Simplify compile-time tests.
51240         (get_stat_birthtime): Change the API to look like
51241         get_stat_mtime etc., except return a negative tv_nsec on error.
51242         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
51243         Don't check for "spare" fields.
51244         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
51245         or for struct stat.st_birthtime, as these tests aren't used.
51246         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
51247
51248 2007-03-27  Bruno Haible  <bruno@clisp.org>
51249
51250         * lib/stat-time.h: Include <sys/stat.h>.
51251
51252 2007-03-27  James Youngman  <jay@gnu.org>
51253
51254         * lib/stat-time.h (get_stat_birthtime): New function for
51255           retrieving st_birthtime as provided by UFS2 (hence *BSD).
51256         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
51257           and its variants.
51258         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
51259         * modules/stat-time-test: New file.
51260         * tests/test-stat-time.c: New test, devised by Bruno Haible.
51261
51262 2007-03-26  Bruno Haible  <bruno@clisp.org>
51263
51264         Better support of signalling NaNs.
51265         * lib/atanl.c: Include isnanl.h.
51266         (atanl): Perform test for NaN at the beginning of the function and
51267         through a call to isnanl.
51268         * lib/cosl.c: Include isnanl.h.
51269         (cosl): Perform test for NaN at the beginning of the function and
51270         through a call to isnanl.
51271         * lib/ldexpl.c: Include isnanl.h.
51272         (ldexpl): Perform test for NaN through a call to isnanl.
51273         * lib/logl.c: Include isnanl.h.
51274         (logl): Perform test for NaN at the beginning of the function and
51275         through a call to isnanl.
51276         * lib/sinl.c: Include isnanl.h.
51277         (sinl): Perform test for NaN at the beginning of the function and
51278         through a call to isnanl.
51279         * lib/sqrtl.c: Include isnanl.h.
51280         (sqrtl): Perform test for NaN at the beginning of the function and
51281         through a call to isnanl.
51282         * lib/tanl.c: Include isnanl.h.
51283         (tanl): Perform test for NaN at the beginning of the function and
51284         through a call to isnanl.
51285         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
51286         * modules/mathl (Depends-on): Add isnanl.
51287
51288 2007-03-26  Eric Blake  <ebb9@byu.net>
51289
51290         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
51291         regression in logic sense of previous patch.
51292
51293 2007-03-26  Bruno Haible  <bruno@clisp.org>
51294
51295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
51296         unportable shell command "if ! ...".
51297         Reported by Ralf Wildenhues.
51298
51299 2007-03-25  Bruno Haible  <bruno@clisp.org>
51300
51301         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
51302         <sysexits.h> file, and only add EX_CONFIG.
51303         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
51304         absolute file name and whether it is sufficient. Substitute also
51305         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
51306         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
51307         ABSOLUTE_SYSEXITS_H into sysexits.h.
51308
51309 2007-03-25  Bruno Haible  <bruno@clisp.org>
51310
51311         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
51312         hints is NULL.
51313
51314 2007-03-25  Bruno Haible  <bruno@clisp.org>
51315
51316         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
51317         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
51318
51319 2007-03-25  Bruno Haible  <bruno@clisp.org>
51320
51321         * lib/vasnprintf.c: Include langinfo.h.
51322         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
51323         multithread-safe.
51324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
51325         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
51326         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51327         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51328         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51329         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51330         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51331         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
51332         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51333         Reported by Simon Josefsson.
51334
51335 2007-03-25  Bruno Haible  <bruno@clisp.org>
51336
51337         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
51338         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
51339         * modules/vasnprintf (Depends-on): Add stdint.
51340
51341 2007-03-25  Bruno Haible  <bruno@clisp.org>
51342
51343         * modules/fpieee: New file.
51344         * m4/fpieee.m4: New file.
51345         * modules/isnan-nolibm (Depends-on): Add fpieee.
51346         * modules/isnanl-nolibm (Depends-on): Add fpieee.
51347         * modules/isnanl (Depends-on): Add fpieee.
51348
51349 2007-03-25  Bruno Haible  <bruno@clisp.org>
51350
51351         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
51352
51353 2007-03-25  Bruno Haible  <bruno@clisp.org>
51354
51355         Avoid test failures on IRIX 6.5.
51356         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
51357         (main): Use it.
51358         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
51359         macros.
51360         (main): Use them.
51361
51362 2007-03-25  Bruno Haible  <bruno@clisp.org>
51363
51364         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
51365         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
51366         exists but doesn't work.
51367         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
51368         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
51369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
51370         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
51371         math.h.
51372
51373 2007-03-25  Bruno Haible  <bruno@clisp.org>
51374
51375         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
51376         returns inf. Needed on IRIX 6.5.
51377
51378 2007-03-25  Bruno Haible  <bruno@clisp.org>
51379
51380         * tests/test-frexpl.c: Include isnanl-nolibm.h.
51381         (main): Use isnanl instead of x != x idiom.
51382         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
51383
51384         * tests/test-frexp.c: Include isnan.h.
51385         (main): Use isnan instead of x != x idiom.
51386         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
51387
51388 2007-03-25  Bruno Haible  <bruno@clisp.org>
51389
51390         * tests/test-frexp.c (NaN): New function/macro.
51391         (main): Use it instead of 0.0 / 0.0.
51392         * tests/test-isnan.c (NaN): New function/macro.
51393         (main): Use it instead of 0.0 / 0.0.
51394         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
51395         (test_function): Use it instead of 0.0 / 0.0.
51396         * tests/test-vasprintf-posix.c (NaN): New function/macro.
51397         (test_function): Use it instead of 0.0 / 0.0.
51398         * tests/test-snprintf-posix.h (NaN): New function/macro.
51399         (test_function): Use it instead of 0.0 / 0.0.
51400         * tests/test-sprintf-posix.h (NaN): New function/macro.
51401         (test_function): Use it instead of 0.0 / 0.0.
51402         * tests/test-fprintf-posix.h (NaN): New function/macro.
51403         (test_function): Use it instead of 0.0 / 0.0.
51404         * tests/test-printf-posix.h (NaN): New function/macro.
51405         (test_function): Use it instead of 0.0 / 0.0.
51406
51407         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
51408
51409 2007-03-25  Bruno Haible  <bruno@clisp.org>
51410
51411         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
51412
51413 2007-03-25  Bruno Haible  <bruno@clisp.org>
51414
51415         * lib/regexec.c (merge_state_with_log): Make static.
51416
51417 2007-03-25  Bruno Haible  <bruno@clisp.org>
51418
51419         * lib/trigl.c (kernel_rem_pio2): Make static.
51420
51421 2007-03-25  Bruno Haible  <bruno@clisp.org>
51422
51423         * lib/sincosl.c (sincosl_table): Make static.
51424
51425 2007-03-25  Bruno Haible  <bruno@clisp.org>
51426
51427         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
51428         if the compiler does not support C99.
51429
51430 2007-03-25  Bruno Haible  <bruno@clisp.org>
51431
51432         * modules/time (Makefile.am): Ensure all rule action lines start with a
51433         tab.
51434
51435 2007-03-24  Bruno Haible  <bruno@clisp.org>
51436
51437         * modules/tsearch-tests: New file.
51438         * tests/test-tsearch.sh: New file.
51439         * tests/test-tsearch.c: New file, mostly copied from glibc.
51440
51441         * modules/search-tests: New file.
51442         * tests/test-search.c: New file.
51443
51444         * modules/search: New file.
51445         * lib/search_.h: New file, incorporating lib/tsearch.h.
51446         * m4/search_h.m4: New file.
51447         * lib/tsearch.h: Remove file.
51448         * lib/tsearch.c: Include search.h instead of tsearch.h.
51449         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
51450         HAVE_TSEARCH.
51451         * modules/tsearch (Files): Remove lib/tsearch.h.
51452         (Depends-on): Add search.
51453         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
51454         (Include): Change tsearch.h into search.h.
51455
51456 2007-03-24  Bruno Haible  <bruno@clisp.org>
51457
51458         * modules/fpucw: New file.
51459         * lib/fpucw.h: New file.
51460         * lib/frexp.c: Include fpucw.h.
51461         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51462         (FUNC): Use them.
51463         * lib/printf-frexp.c: Include fpucw.h.
51464         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51465         (FUNC): Use them.
51466         * lib/vasnprintf.c: Include fpucw.h.
51467         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
51468         'long double' calculations.
51469         * tests/test-frexpl.c: Include fpucw.h.
51470         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51471         * tests/test-printf-frexpl.c: Include fpucw.h.
51472         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51473         * modules/frexpl (Depends-on): Add fpucw.
51474         * modules/printf-frexpl (Depends-on): Likewise.
51475         * modules/fprintf-posix (Depends-on): Likewise.
51476         * modules/snprintf-posix (Depends-on): Likewise.
51477         * modules/sprintf-posix (Depends-on): Likewise.
51478         * modules/vasnprintf-posix (Depends-on): Likewise.
51479         * modules/vasprintf-posix (Depends-on): Likewise.
51480         * modules/vfprintf-posix (Depends-on): Likewise.
51481         * modules/vsnprintf-posix (Depends-on): Likewise.
51482         * modules/vsprintf-posix (Depends-on): Likewise.
51483         * modules/frexpl-tests (Depends-on): Likewise.
51484         * modules/printf-frexpl-tests (Depends-on): Likewise.
51485
51486 2007-03-24  Bruno Haible  <bruno@clisp.org>
51487
51488         * lib/float+.h: New file.
51489         * lib/isnan.c: Include float+.h.
51490         (SIZE): New macro.
51491         (FUNC): Compare only SIZE bytes of the value.
51492         * lib/vasnprintf.c: Include float+.h.
51493         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
51494         SIZEOF_LDBL or SIZEOF_DBL bytes.
51495         * modules/isnan-nolibm (Files): Add lib/float+.h.
51496         * modules/isnanl-nolibm (Files): Add lib/float+.h.
51497         * modules/isnanl (Files): Add lib/float+.h.
51498         * modules/vasnprintf (Files): Add lib/float+.h.
51499
51500 2007-03-24  Bruno Haible  <bruno@clisp.org>
51501
51502         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
51503         include isnanl-nolibm.h.
51504
51505 2007-03-24  Bruno Haible  <bruno@clisp.org>
51506
51507         * tests/test-read-file.c (main): Don't produce spurious output for
51508         expected situations. Make the test fail if it encountered unexpected
51509         results.
51510
51511 2007-03-24  Bruno Haible  <bruno@clisp.org>
51512
51513         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
51514         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
51515
51516 2007-03-24  Bruno Haible  <bruno@clisp.org>
51517
51518         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
51519
51520 2007-03-24  Bruno Haible  <bruno@clisp.org>
51521
51522         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
51523         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
51524
51525         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
51526         * modules/utf8-ucs4: Turn into a symbolic link to module
51527         unistr/u8-mbtouc.
51528
51529         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
51530         utf8-ucs4-unsafe.
51531         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
51532         unistr/u8-mbtouc-unsafe.
51533
51534         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
51535         * modules/utf16-ucs4: Turn into a symbolic link to module
51536         unistr/u16-mbtouc.
51537
51538         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
51539         utf16-ucs4-unsafe.
51540         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
51541         unistr/u16-mbtouc-unsafe.
51542
51543         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
51544         * modules/ucs4-utf8: Turn into a symbolic link to module
51545         unistr/u8-ubtomb.
51546
51547         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
51548         * modules/ucs4-utf16: Turn into a symbolic link to module
51549         unistr/u16-ubtomb.
51550
51551 2007-03-24  Bruno Haible  <bruno@clisp.org>
51552
51553         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
51554         Enable the function only if HAVE_INLINE.
51555         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
51556         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51557         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
51558         Enable the function only if HAVE_INLINE.
51559         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
51560         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51561         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
51562         Enable the function only if HAVE_INLINE.
51563         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
51564         Enable the function only if HAVE_INLINE.
51565         * modules/utf8-ucs4: Update.
51566         * modules/utf8-ucs4-unsafe: Update.
51567         * modules/utf16-ucs4: Update.
51568         * modules/utf16-ucs4-unsafe: Update.
51569         * modules/ucs4-utf8: Update.
51570         * modules/ucs4-utf16: Update.
51571
51572 2007-03-24  Bruno Haible  <bruno@clisp.org>
51573
51574         * lib/utf8-ucs4.h: Remove file.
51575         * lib/utf8-ucs4-unsafe.h: Remove file.
51576         * lib/utf16-ucs4.h: Remove file.
51577         * lib/utf16-ucs4-unsafe.h: Remove file.
51578         * lib/ucs4-utf8.h: Remove file.
51579         * lib/ucs4-utf16.h: Remove file.
51580         * lib/unistr.h: Include their previous contents.
51581         * m4/utf-ucs4.m4: Remove file.
51582         * m4/ucs4-utf.m4: Remove file.
51583         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
51584         (Depends-on): Add unistr/base.
51585         (configure.ac): Remove gl_UTF_UCS4.
51586         (Makefile.am): Update.
51587         (Include): Change to unistr.h.
51588         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
51589         (Depends-on): Add unistr/base.
51590         (configure.ac): Remove gl_UTF_UCS4.
51591         (Makefile.am): Update.
51592         (Include): Change to unistr.h.
51593         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
51594         (Depends-on): Add unistr/base.
51595         (configure.ac): Remove gl_UTF_UCS4.
51596         (Makefile.am): Update.
51597         (Include): Change to unistr.h.
51598         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
51599         (Depends-on): Add unistr/base.
51600         (configure.ac): Remove gl_UTF_UCS4.
51601         (Makefile.am): Update.
51602         (Include): Change to unistr.h.
51603         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
51604         (Depends-on): Add unistr/base.
51605         (configure.ac): Remove gl_UCS4_UTF.
51606         (Makefile.am): Update.
51607         (Include): Change to unistr.h.
51608         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
51609         (Depends-on): Add unistr/base.
51610         (configure.ac): Remove gl_UCS4_UTF.
51611         (Makefile.am): Update.
51612         (Include): Change to unistr.h.
51613         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
51614         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
51615         utf8-ucs4-unsafe.h.
51616         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
51617         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
51618         utf16-ucs4-unsafe.h.
51619         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
51620         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
51621         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
51622         * lib/unistr/u8-strchr.c: Likewise.
51623         * lib/unistr/u8-strrchr.c: Likewise.
51624         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
51625         * lib/unistr/u16-strchr.c: Likewise.
51626         * lib/unistr/u16-strrchr.c: Likewise.
51627         * lib/striconveh.c: Update.
51628         * lib/linebreak.c: Update.
51629
51630 2007-03-24  Bruno Haible  <bruno@clisp.org>
51631
51632         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
51633         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
51634
51635 2007-03-22  Bruno Haible  <bruno@clisp.org>
51636
51637         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
51638
51639 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51640
51641         * MODULES.html.sh (File system functions): New module write-any-file.
51642         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
51643         * m4/write-any-file.m4: New files.
51644
51645 2007-03-23  Eric Blake  <ebb9@byu.net>
51646
51647         * gnulib-tool: Rearrange space-tab sequences, since some editors
51648         like to eat them.
51649
51650 2007-03-23  Eric Blake  <ebb9@byu.net>
51651
51652         * lib/version-etc.c (version_etc_va): Update license wording to
51653         be more concise.  Recommended by Richard Stallman.
51654
51655 2007-03-22  Bruno Haible  <bruno@clisp.org>
51656
51657         * lib/poll.c (MSG_PEEK): New fallback definition.
51658
51659 2007-03-22  Bruno Haible  <bruno@clisp.org>
51660
51661         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
51662         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
51663         (main): Update.
51664         Fixes a compilation error on BeOS.
51665
51666 2007-03-22  Bruno Haible  <bruno@clisp.org>
51667
51668         * modules/frexpl-tests: New file.
51669         * tests/test-frexpl.c: New file.
51670
51671         * modules/frexpl: New file.
51672         * m4/frexpl.m4: New file.
51673         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
51674         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
51675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
51676         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
51677         (Depends-on): Add frexpl. Remove isnanl-nolibm.
51678         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
51679
51680 2007-03-22  Bruno Haible  <bruno@clisp.org>
51681
51682         * lib/frexpl.c: Share code with lib/frexp.c.
51683         * modules/mathl (Files): Add lib/frexp.c.
51684         (Depends-on): Add isnanl-nolibm.
51685
51686 2007-03-22  Bruno Haible  <bruno@clisp.org>
51687
51688         * modules/printf-frexp (Files): Add m4/frexp.m4.
51689         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
51690         only if the found frexp function actually works.
51691
51692 2007-03-22  Bruno Haible  <bruno@clisp.org>
51693
51694         * lib/frexp.c: Remove older implementation that uses divisions.
51695
51696 2007-03-21  Bruno Haible  <bruno@clisp.org>
51697
51698         * modules/frexp-tests: New file.
51699         * tests/test-frexp.c: New file.
51700
51701         * modules/frexp: New file.
51702         * lib/frexp.c: New file.
51703         * m4/frexp.m4: New file.
51704         * lib/math_.h (frexp): New declaration.
51705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
51706         REPLACE_FREXP.
51707         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
51708
51709 2007-03-21  Bruno Haible  <bruno@clisp.org>
51710
51711         * modules/isnanl-tests: New file.
51712         * tests/test-isnanl.c: New file.
51713
51714         * modules/isnanl: New file.
51715         * lib/isnanl.h: New file.
51716         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
51717         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
51718         gl_FUNC_ISNANL_WORKS.
51719         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
51720         New macros.
51721
51722 2007-03-21  Bruno Haible  <bruno@clisp.org>
51723
51724         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
51725         lib/isnanl.h.
51726         (Include): Update.
51727         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
51728         * lib/vasnprintf.c: Update.
51729         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
51730         tests/test-isnanl.h, remove tests/test-isnanl.c.
51731         (Makefile.am): Update.
51732         * tests/test-isnanl-nolibm.c: New file.
51733         * tests/test-isnanl.h: New file.
51734         * tests/test-isnanl.c: Remove file.
51735
51736 2007-03-21  Jim Meyering  <jim@meyering.net>
51737
51738         When trying to open ".", treat ESTALE like EACCES.
51739         * lib/savewd.c (savewd_save): Resort to forking not just upon
51740         failure with EACCES, but also when errno is ESTALE.
51741
51742 2007-03-20  Bruno Haible  <bruno@clisp.org>
51743
51744         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
51745         Needed on AIX 5.1. Reported by Matthew Woehlke.
51746
51747 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51748
51749         Suggestions by Bruno Haible:
51750         * lib/acl-internal.h: Include "gettext.h" rather than rolling
51751         our own.
51752         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
51753         * modules/acl (Depends-on): Add gettext.
51754
51755 2007-03-19  Bruno Haible  <bruno@clisp.org>
51756
51757         * modules/iconvme: Remove file.
51758         * lib/iconvme.h: Remove file.
51759         * lib/iconvme.c: Remove file.
51760         * m4/iconvme.m4: Remove file.
51761
51762 2007-03-19  Bruno Haible  <bruno@clisp.org>
51763
51764         * doc/relocatable-maint.texi: Break long shell script line.
51765         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51766
51767 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51768
51769         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
51770         handle file_has_acl.
51771         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
51772         * lib/acl.c: Move header inclusions and related macro defns into
51773         lib/acl-internal.h.
51774         (S_ISLNK): Remove defn, since that's now done for us.
51775         (file_has_acl): Move to lib/file-has-acl.c.
51776         Call acl_trivial if available.  This is the crucial part of the fix.
51777         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
51778         shared within the library.  Rewrite a bit, partly to make it compatible
51779         with the GNU coding style.
51780         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
51781         Remove unnecessary double-quotes.
51782         Don't test for acl_to_text; the build will catch that.
51783         Replace acl_entries if it doesn't exist and it is needed.
51784         Check for -lsec and acl_trivial (as used on Solaris 10).
51785         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
51786         lib/file-has-acl.c.
51787         (Depends-on): Add sys_stat, for S_ISLNK.
51788
51789 2007-03-19  Ben Pfaff  <blp@gnu.org>
51790
51791         * doc/gnulib.texi: Fix typos.
51792         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51793
51794 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51795
51796         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
51797         If size is zero here, buf must be zero.
51798
51799 2007-03-19  Simon Josefsson  <simon@josefsson.org>
51800
51801         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
51802         <bruno@clisp.org>.
51803
51804 2007-03-18  Bruno Haible  <bruno@clisp.org>
51805
51806         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
51807         Suggested by Eric Blake.
51808
51809 2007-03-18  Ben Pfaff  <blp@gnu.org>
51810
51811         * doc/relocatable.texi: Recommend using as prefix a directory
51812         that does not exist and will never be created.  Based on
51813         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
51814         and others.
51815
51816 2007-03-17  Bruno Haible  <bruno@clisp.org>
51817
51818         * lib/fchownat.c: Include lchown.h.
51819
51820 2007-03-17  Bruno Haible  <bruno@clisp.org>
51821
51822         Fix endless loop when the given allocated size was > INT_MAX.
51823         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
51824         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
51825         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
51826         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
51827         * lib/sprintf.c (sprintf): Likewise.
51828
51829 2007-03-17  Bruno Haible  <bruno@clisp.org>
51830
51831         * tests/test-argp-2.sh (func_compare): Output a context diff.
51832
51833 2007-03-17  Bruno Haible  <bruno@clisp.org>
51834
51835         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
51836         locale's decimal-point character.
51837
51838 2007-03-17  Bruno Haible  <bruno@clisp.org>
51839
51840         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
51841         before comparing it. Needed because on some platforms (e.g. x86) a
51842         'long double' occupies less bytes than sizeof (long double).
51843
51844 2007-03-17  Bruno Haible  <bruno@clisp.org>
51845
51846         * tests/test-crc.c (main): Make printf statements 64-bit clean.
51847         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
51848         * tests/test-getaddrinfo.c (simple): Likewise.
51849         * tests/test-read-file.c (main): Likewise.
51850
51851 2007-03-17  Bruno Haible  <bruno@clisp.org>
51852
51853         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
51854
51855 2007-03-17  Bruno Haible  <bruno@clisp.org>
51856
51857         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
51858         unused variable.
51859
51860 2007-03-17  Bruno Haible  <bruno@clisp.org>
51861
51862         * tests/test-c-strcasecmp.c: Include c-strcase.h.
51863         * tests/test-c-strncasecmp.c: Likewise.
51864
51865 2007-03-17  Bruno Haible  <bruno@clisp.org>
51866
51867         * modules/stdlib (Depends-on): Add unistd.
51868         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
51869         Needed for MacOS X 10.3.
51870
51871 2007-03-17  Bruno Haible  <bruno@clisp.org>
51872
51873         * lib/unistr/u-strdup.h: Include <stdlib.h>.
51874
51875 2007-03-17  Bruno Haible  <bruno@clisp.org>
51876
51877         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
51878
51879 2007-03-17  Bruno Haible  <bruno@clisp.org>
51880
51881         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
51882         to reflect files copied from gnulib (with or without modifications).
51883         Suggested by Jim Meyering.
51884
51885 2007-03-17  Eric Blake  <ebb9@byu.net>
51886
51887         * NEWS: Document stdlib change from 2007-02-18.
51888
51889 2007-03-17  Jim Meyering  <jim@meyering.net>
51890
51891         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
51892         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
51893         someone uses a name containing shell meta-characters.
51894         Reported by Alfred M. Szmidt.
51895
51896         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
51897
51898 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51899
51900         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
51901         and copy gettext configuration files only if configure.ac contains
51902         a use of AM_GNU_GETTEXT_VERSION.
51903
51904 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51905
51906         * build-aux/bootstrap (gnulib_name): New variable.
51907         (gnulib_tool_options): Use it.
51908
51909 2007-03-13  Simon Josefsson  <simon@josefsson.org>
51910
51911         * tests/test-des.c: Use new namespace.
51912
51913 2007-03-15  Bruno Haible  <bruno@clisp.org>
51914
51915         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
51916         Reported by James Youngman <jay@gnu.org>.
51917
51918 2007-03-15  Bruno Haible  <bruno@clisp.org>
51919
51920         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
51921         declared prototype. Needed with cc on OSF/1 5.1.
51922
51923 2007-03-15  Bruno Haible  <bruno@clisp.org>
51924
51925         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
51926         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
51927         (struct gl_list_implementation): Add dispose_fn argument to the
51928         'create_empty', 'create' methods.
51929         (struct gl_list_impl_base): Add field 'dispose_fn'.
51930         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
51931         argument.
51932         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
51933         dispose_fn argument.
51934         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
51935         dispose_fn on the dropped values.
51936         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
51937         dispose_fn argument.
51938         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
51939         dropped values.
51940         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
51941         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51942         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
51943         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51944         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
51945         argument.
51946         (gl_tree_list_free): Call dispose_fn on the dropped values.
51947         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
51948         the dropped values.
51949         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51950         Add dispose_fn argument.
51951         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
51952         Call dispose_fn on the dropped values.
51953         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
51954         Add dispose_fn argument.
51955         (gl_sublist_create): Initialize the 'dispose_fn' field.
51956         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
51957         * tests/test-array_list.c (main): Update.
51958         * tests/test-carray_list.c (main): Update.
51959         * tests/test-avltree_list.c (main): Update.
51960         * tests/test-rbtree_list.c (main): Update.
51961         * tests/test-avltreehash_list.c (main): Update.
51962         * tests/test-rbtreehash_list.c (main): Update.
51963         * tests/test-linked_list.c (main): Update.
51964         * tests/test-linkedhash_list.c (main): Update.
51965         * tests/test-array_oset.c (main): Update.
51966
51967 2007-03-15  Bruno Haible  <bruno@clisp.org>
51968
51969         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
51970         (gl_oset_create_empty): Add dispose_fn argument.
51971         (struct gl_oset_implementation): Add dispose_fn argument to
51972         'create_empty' method.
51973         (struct gl_oset_impl_base): Add dispose_fn field.
51974         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
51975         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
51976         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
51977         values.
51978         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
51979         (gl_tree_oset_free): Call dispose_fn on the dropped values.
51980         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51981         dropped value.
51982         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51983         dropped value.
51984         * tests/test-array_oset.c (main): Update.
51985         * tests/test-avltree_oset.c (main): Update.
51986         * tests/test-rbtree_oset.c (main): Update.
51987         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
51988
51989 2007-03-13  Bruno Haible  <bruno@clisp.org>
51990
51991         * tests/test-stdbool.c (i): Update after last patch.
51992
51993 2007-03-12  Bruno Haible  <bruno@clisp.org>
51994
51995         * lib/quotearg.c: Include <wctype.h> early, before the definition of
51996         the iswprint macro. Needed on Solaris 2.5.1.
51997
51998 2007-03-12  Bruno Haible  <bruno@clisp.org>
51999
52000         * tests/test-printf-frexp.c (main): Declare x as volatile.
52001
52002 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52003
52004         * doc/gnulib.texi (Build robot for gnulib): New section.
52005
52006 2007-03-12  Jim Meyering  <jim@meyering.net>
52007
52008         * build-aux/bootstrap: New file.
52009         * build-aux/bootstrap.conf: New file, from coreutils.
52010
52011 2007-03-11  Bruno Haible  <bruno@clisp.org>
52012
52013         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
52014
52015 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52016
52017         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
52018         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
52019         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
52020
52021 2007-03-11  Bruno Haible  <bruno@clisp.org>
52022
52023         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
52024         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
52025
52026 2007-03-11  Bruno Haible  <bruno@clisp.org>
52027
52028         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
52029         formula. Needed for SunPRO C 5.0.
52030
52031 2007-03-11  Bruno Haible  <bruno@clisp.org>
52032
52033         * modules/long-options (Depends-on): Add getopt.
52034
52035 2007-03-11  Bruno Haible  <bruno@clisp.org>
52036
52037         * modules/modechange (Depends-on): Add stdbool.
52038
52039 2007-03-11  Bruno Haible  <bruno@clisp.org>
52040
52041         * modules/i-ring (Depends-on): Add stdbool.
52042
52043 2007-03-11  Bruno Haible  <bruno@clisp.org>
52044
52045         * modules/gc-des (Depends-on): Add stdbool.
52046
52047 2007-03-11  Bruno Haible  <bruno@clisp.org>
52048
52049         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
52050
52051 2007-03-11  Bruno Haible  <bruno@clisp.org>
52052
52053         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
52054
52055 2007-03-11  Bruno Haible  <bruno@clisp.org>
52056
52057         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
52058
52059 2007-03-11  Bruno Haible  <bruno@clisp.org>
52060
52061         * lib/vasnprintf.c (sprintf): Undefine.
52062
52063 2007-03-11  Bruno Haible  <bruno@clisp.org>
52064
52065         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
52066         initializers in SunPRO C and Compaq C compilers.
52067
52068 2007-03-11  Bruno Haible  <bruno@clisp.org>
52069
52070         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
52071         decrementing code ANSI C compliant.
52072
52073 2007-03-11  Bruno Haible  <bruno@clisp.org>
52074
52075         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
52076         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
52077
52078 2007-03-11  Bruno Haible  <bruno@clisp.org>
52079
52080         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
52081         <stdbool.h> substitute doesn't pass.
52082
52083 2007-03-11  Bruno Haible  <bruno@clisp.org>
52084
52085         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
52086
52087 2007-03-11  Bruno Haible  <bruno@clisp.org>
52088
52089         * gnulib-tool (func_create_megatestdir): Create also an autobuild
52090         script, for submission to autobuild.josefsson.org.
52091
52092 2007-03-10  Bruno Haible  <bruno@clisp.org>
52093
52094         * modules/canonicalize-lgpl-tests: New file.
52095         * tests/test-canonicalize-lgpl.sh: New file.
52096         * tests/test-canonicalize-lgpl.c: New file.
52097
52098         * modules/c-strcase-tests: New file.
52099         * tests/test-c-strcase.sh: New file.
52100         * tests/test-c-strcasecmp.c: New file.
52101         * tests/test-c-strncasecmp.c: New file.
52102
52103         * modules/atexit-tests: New file.
52104         * tests/test-atexit.sh: New file.
52105         * tests/test-atexit.c: New file.
52106
52107 2007-03-10  Bruno Haible  <bruno@clisp.org>
52108
52109         * tests/test-binary-io.sh: Use temporary filenames that are not so
52110         likely to clash with those of other tests (in a parallel make).
52111         * tests/test-binary-io.c: Likewise.
52112
52113 2007-03-10  Bruno Haible  <bruno@clisp.org>
52114
52115         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
52116         fallback; use #error instead.
52117         Suggested by Simon Josefsson.
52118
52119 2007-03-10  Bruno Haible  <bruno@clisp.org>
52120
52121         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
52122         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
52123         first and the last.
52124
52125 2007-03-10  Bruno Haible  <bruno@clisp.org>
52126
52127         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
52128
52129 2007-03-10  Bruno Haible  <bruno@clisp.org>
52130
52131         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
52132         "make distcheck".
52133         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
52134         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
52135         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
52136
52137 2007-03-10  Bruno Haible  <bruno@clisp.org>
52138
52139         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
52140         variable.
52141         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
52142         variable.
52143
52144 2007-03-09  Eric Blake  <ebb9@byu.net>
52145         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
52146
52147         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
52148         types are not being provided by gnulib.
52149         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
52150         types are supported.
52151
52152 2007-03-10  Bruno Haible  <bruno@clisp.org>
52153
52154         * lib/stdio_.h (__attribute__): New macro.
52155         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
52156         vsprintf): Specify __attribute__ __format__ for GCC.
52157         Suggested by Eric Blake.
52158
52159 2007-03-09  Bruno Haible  <bruno@clisp.org>
52160
52161         * modules/printf-posix-tests: New file.
52162         * tests/test-printf-posix.sh: New file.
52163         * tests/test-printf-posix.c: New file.
52164
52165         * modules/printf-posix: New file.
52166         * lib/printf.c: New file.
52167         * m4/printf-posix-rpl.m4: New file.
52168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
52169         REPLACE_PRINTF.
52170         * lib/stdio_.h (printf): New declaration.
52171         (format, __format__, ____printf____, ____scanf____, ____strftime____,
52172         ____strfmon____): New macros.
52173         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
52174         REPLACE_PRINTF.
52175
52176 2007-03-09  Bruno Haible  <bruno@clisp.org>
52177
52178         * tests/test-vasnprintf-posix2.sh: New file.
52179         * tests/test-vasnprintf-posix2.c: New file.
52180         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
52181         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52182         (Makefile.am): Activate test-vasnprintf-posix2.sh.
52183
52184         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
52185         a locale dependent decimal point, rather than always '.'.
52186
52187 2007-03-09  Eric Blake  <ebb9@byu.net>
52188
52189         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
52190         spite of platforms like Tandem/NSK that define it to -1.
52191
52192 2007-03-08  Bruno Haible  <bruno@clisp.org>
52193
52194         * modules/vprintf-posix-tests: New file.
52195         * tests/test-vprintf-posix.sh: New file.
52196         * tests/test-vprintf-posix.c: New file.
52197         * tests/test-printf-posix.h: New file.
52198
52199         * modules/vprintf-posix: New file.
52200         * lib/vprintf.c: New file.
52201         * m4/vprintf-posix.m4: New file.
52202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
52203         REPLACE_VPRINTF.
52204         * lib/stdio_.h (vprintf): New declaration.
52205         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
52206         REPLACE_VPRINTF.
52207
52208 2007-03-08  Bruno Haible  <bruno@clisp.org>
52209
52210         * modules/fprintf-posix-tests: New file.
52211         * tests/test-fprintf-posix.sh: New file.
52212         * tests/test-fprintf-posix.c: New file.
52213
52214         * modules/fprintf-posix: New file.
52215         * lib/fprintf.c: New file.
52216         * m4/fprintf-posix.m4: New file.
52217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
52218         REPLACE_FPRINTF.
52219         * lib/stdio_.h (fprintf): New declaration.
52220         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
52221         REPLACE_FPRINTF.
52222
52223 2007-03-08  Bruno Haible  <bruno@clisp.org>
52224
52225         * modules/vfprintf-posix-tests: New file.
52226         * tests/test-vfprintf-posix.sh: New file.
52227         * tests/test-vfprintf-posix.c: New file.
52228         * tests/test-fprintf-posix.h: New file.
52229         * tests/test-fprintf-posix.out: New file.
52230
52231         * modules/vfprintf-posix: New file.
52232         * lib/vfprintf.c: New file.
52233         * m4/vfprintf-posix.m4: New file.
52234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
52235         REPLACE_VFPRINTF.
52236         * lib/stdio_.h (vfprintf): New declaration.
52237         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
52238         REPLACE_VFPRINTF.
52239
52240 2007-03-08  Bruno Haible  <bruno@clisp.org>
52241
52242         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
52243
52244 2007-03-08  Bruno Haible  <bruno@clisp.org>
52245
52246         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
52247         instead of 'expr' invocations.
52248         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52249         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52250         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52251         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52252         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52253         Suggested by Paul Eggert.
52254
52255 2007-03-08  Bruno Haible  <bruno@clisp.org>
52256
52257         * modules/fseterr-tests: New file.
52258         * tests/test-fseterr.c: New file.
52259
52260         * modules/fseterr: New file.
52261         * lib/fseterr.h: New file.
52262         * lib/fseterr.c: New file.
52263
52264 2007-03-08  Bruno Haible  <bruno@clisp.org>
52265
52266         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
52267         * lib/getopt_.h: Likewise.
52268         * lib/mbswidth.h: Likewise.
52269         * lib/setenv.h: Likewise.
52270         * lib/vasnprintf.h: Likewise.
52271         * lib/vasprintf.h: Likewise.
52272         * lib/verror.h: Likewise.
52273         * lib/xsetenv.h: Likewise.
52274         * lib/xvasprintf.h: Likewise.
52275
52276 2007-03-08  Jim Meyering  <jim@meyering.net>
52277
52278         * users.txt: Add parted.
52279
52280         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
52281
52282 2007-03-07  Bruno Haible  <bruno@clisp.org>
52283
52284         * m4/printf.m4: Make the shell script snippets copy&pastable.
52285
52286 2007-03-02  Bruno Haible  <bruno@clisp.org>
52287
52288         * lib/netinet_in_.h: New file.
52289         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
52290         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
52291         * modules/netinet_in (Files): Add lib/netinet_in_.h.
52292         (Depends-on): Add absolute-header.
52293         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
52294         into netinet/in.h.
52295
52296 2007-03-03  Bruno Haible  <bruno@clisp.org>
52297
52298         * lib/sys_select_.h: New file.
52299         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
52300         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
52301         * modules/sys_select (Files): Add lib/sys_select_.h.
52302         (Depends-on): Add absolute-header.
52303         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
52304         into sys/select.h.
52305
52306 2007-03-02  Bruno Haible  <bruno@clisp.org>
52307
52308         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
52309         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
52310         values.
52311         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
52312         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
52313         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
52314         * modules/sys_socket (Depends-on): Add absolute-header.
52315         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
52316         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
52317         (Include): Remove requirement of inclusion of <sys/types.h>.
52318
52319 2007-03-02  Bruno Haible  <bruno@clisp.org>
52320
52321         * lib/byteswap_.h (bswap_32): Fix formula.
52322
52323 2007-03-06  Bruno Haible  <bruno@clisp.org>
52324
52325         * modules/sprintf-posix-tests: New file.
52326         * tests/test-sprintf-posix.c: New file.
52327
52328         * modules/sprintf-posix: New file.
52329         * lib/sprintf.c: New file.
52330         * m4/sprintf-posix.m4: New file.
52331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
52332         REPLACE_SPRINTF.
52333         * lib/stdio_.h (sprintf): New declaration.
52334         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
52335         REPLACE_SPRINTF.
52336
52337 2007-03-06  Bruno Haible  <bruno@clisp.org>
52338
52339         * modules/vsprintf-posix-tests: New file.
52340         * tests/test-vsprintf-posix.c: New file.
52341         * tests/test-sprintf-posix.h: New file.
52342
52343         * modules/vsprintf-posix: New file.
52344         * lib/vsprintf.c: New file.
52345         * m4/vsprintf-posix.m4: New file.
52346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
52347         REPLACE_VSPRINTF.
52348         * lib/stdio_.h (vsprintf): New declaration.
52349         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
52350         REPLACE_VSPRINTF.
52351
52352 2007-03-06  Bruno Haible  <bruno@clisp.org>
52353
52354         * modules/vsnprintf (Depend-on): Remove minmax.
52355
52356 2007-03-06  Bruno Haible  <bruno@clisp.org>
52357
52358         * modules/snprintf-posix-tests: New file.
52359         * tests/test-snprintf-posix.c: New file.
52360
52361         * modules/snprintf-posix: New file.
52362         * m4/snprintf-posix.m4: New file.
52363         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
52364         gl_FUNC_SNPRINTF.
52365         (gl_FUNC_SNPRINTF): Invoke it.
52366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
52367         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
52368         is set.
52369         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
52370
52371 2007-03-06  Bruno Haible  <bruno@clisp.org>
52372
52373         * modules/vsnprintf-posix-tests: New file.
52374         * tests/test-vsnprintf-posix.c: New file.
52375         * tests/test-snprintf-posix.h: New file.
52376
52377         * modules/vsnprintf-posix: New file.
52378         * m4/vsnprintf-posix.m4: New file.
52379         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
52380         gl_FUNC_VSNPRINTF.
52381         (gl_FUNC_VSNPRINTF): Invoke it.
52382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
52383         * lib/stdio_.h (vsnprintf): Define as a replacement if
52384         REPLACE_VSNPRINTF is set.
52385         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
52386
52387 2007-03-06  Bruno Haible  <bruno@clisp.org>
52388
52389         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
52390         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
52391
52392 2007-03-06  Bruno Haible  <bruno@clisp.org>
52393
52394         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
52395         (asinl): Declare also if HAVE_DECL_ASINL is set.
52396         (atanl): Declare also if HAVE_DECL_ATANL is set.
52397         (ceill): Declare also if HAVE_DECL_CEILL is set.
52398         (cosl): Declare also if HAVE_DECL_COSL is set.
52399         (expl): Declare also if HAVE_DECL_EXPL is set.
52400         (floorl): Declare also if HAVE_DECL_FLOORL is set.
52401         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
52402         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
52403         (logl): Declare also if HAVE_DECL_LOGL is set.
52404         (sinl): Declare also if HAVE_DECL_SINL is set.
52405         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
52406         (tanl): Declare also if HAVE_DECL_TANL is set.
52407         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
52408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
52409         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
52410         declaration of frexpl, ldexpl.
52411         * modules/printf-frexpl (Depends-on): Add math.
52412         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
52413
52414 2007-03-05  Bruno Haible  <bruno@clisp.org>
52415
52416         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
52417         frexpl and ldexpl are declared.
52418         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
52419
52420 2007-03-05  Bruno Haible  <bruno@clisp.org>
52421
52422         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
52423         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
52424
52425 2007-03-05  Bruno Haible  <bruno@clisp.org>
52426
52427         * lib/stdio_.h: Include <stddef.h>.
52428
52429 2007-03-05  Bruno Haible  <bruno@clisp.org>
52430
52431         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
52432
52433 2007-03-05  Bruno Haible  <bruno@clisp.org>
52434
52435         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
52436         NetBSD 4, from Ralf Wildenhues.
52437
52438 2007-03-04  Bruno Haible  <bruno@clisp.org>
52439
52440         * lib/vasprintf.h: Update #if logic for the case when the functions
52441         exist but are overridden.
52442
52443 2007-03-04  Bruno Haible  <bruno@clisp.org>
52444
52445         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
52446         implementations: glibc-2.4 and MacOS X 10.3.
52447         * tests/test-vasnprintf-posix.c (test_function): Test also the case
52448         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
52449         * tests/test-vasprintf-posix.c (test_function): Likewise.
52450
52451 2007-03-04  Bruno Haible  <bruno@clisp.org>
52452
52453         * modules/vasprintf-posix-tests: New file.
52454         * tests/test-vasprintf-posix.c: New file.
52455
52456         * modules/vasprintf-posix: New file.
52457         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
52458         defined.
52459         * m4/vasprintf-posix.m4: New file.
52460         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
52461         gl_FUNC_VASPRINTF.
52462         (gl_FUNC_VASPRINTF): Invoke it.
52463         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
52464         here.
52465         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
52466
52467 2007-03-04  Bruno Haible  <bruno@clisp.org>
52468
52469         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
52470         REPLACE_GETTIMEOFDAY.
52471         * modules/sys_time (Makefile.am): Likewise.
52472         * m4/sys_time_h.m4: Likewise.
52473         * m4/gettimeofday.m4: Likewise.
52474
52475 2007-03-04  Bruno Haible  <bruno@clisp.org>
52476
52477         * modules/vasnprintf-posix-tests: New file.
52478         * tests/test-vasnprintf-posix.c: New file.
52479
52480         * modules/vasnprintf-posix: New file.
52481         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
52482         printf-frexpl.h.
52483         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
52484         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
52485         REPLACE_VASNPRINTF is defined.
52486         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
52487         gl_FUNC_VASNPRINTF.
52488         (gl_FUNC_VASNPRINTF): Invoke it.
52489         * m4/vasnprintf-posix.m4: New file.
52490         * m4/printf.m4: New file.
52491
52492 2007-03-04  Bruno Haible  <bruno@clisp.org>
52493
52494         Compile progreloc.c only if --enable-relocatable is specified.
52495         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
52496         if --enable-relocatable was specified.
52497         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
52498         lib_SOURCES.
52499
52500 2007-03-04  Jim Meyering  <jim@meyering.net>
52501
52502         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
52503         Use it consistently, rather than enumerating errno constants.
52504
52505 2007-03-04  Bruno Haible  <bruno@clisp.org>
52506
52507         * modules/xvasprintf-tests: New file.
52508         * tests/test-xvasprintf.c: New file.
52509
52510         * modules/vasprintf-tests: New file.
52511         * tests/test-vasprintf.c: New file.
52512
52513         * modules/vasnprintf-tests: New file.
52514         * tests/test-vasnprintf.c: New file.
52515
52516         * modules/vsnprintf-tests: New file.
52517         * tests/test-vsnprintf.c: New file.
52518
52519         * modules/snprintf-tests: New file.
52520         * tests/test-snprintf.c: New file.
52521
52522 2007-03-04  Bruno Haible  <bruno@clisp.org>
52523
52524         Compile relocatable.c only if --enable-relocatable is specified.
52525         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
52526         gl_RELOCATABLE_LIBRARY.
52527         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
52528         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
52529         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
52530         gl_RELOCATABLE_LIBRARY.
52531         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
52532         (Makefile.am): Remove lib_SOURCES.
52533         * modules/relocatable-lib-lgpl (configure.ac): Invoke
52534         gl_RELOCATABLE_LIBRARY.
52535         (Makefile.am): Remove lib_SOURCES.
52536         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
52537         always.
52538         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52539         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
52540
52541 2007-03-04  Bruno Haible  <bruno@clisp.org>
52542
52543         * modules/argmatch-tests: New file.
52544         * tests/test-argmatch.c: New file.
52545
52546         * tests/test-allocsa.c (main): Halve the number of loop runs.
52547
52548         * modules/alloca-opt-tests: New file.
52549         * tests/test-alloca-opt.c: New file.
52550
52551 2007-03-04  Jim Meyering  <jim@meyering.net>
52552
52553         Work around difference between Linux ACLs and Solaris 10 ZFS.
52554         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
52555         for EINVAL.
52556
52557 2007-03-03  Bruno Haible  <bruno@clisp.org>
52558
52559         * modules/relocatable-prog (Depends-on): Add back progreloc's
52560         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
52561
52562 2007-03-03  Bruno Haible  <bruno@clisp.org>
52563
52564         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
52565         * modules/relocatable-lib: New file.
52566
52567 2007-03-03  Bruno Haible  <bruno@clisp.org>
52568
52569         * modules/relocatable-prog: Renamed from modules/relocatable.
52570         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
52571
52572 2007-03-03  Bruno Haible  <bruno@clisp.org>
52573
52574         * modules/relocatable-script (Files): Add doc/relocatable.texi,
52575         m4/relocatable-lib.m4.
52576         (Depends-on): Remove 'relocatable'.
52577         (configure.ac): Add gl_RELOCATABLE_NOP.
52578
52579 2007-03-03  Bruno Haible  <bruno@clisp.org>
52580
52581         * modules/relocatable-prog-wrapper: New file.
52582         * modules/relocatable (Depends-on): Add it. Remove all other
52583         dependencies except progname.
52584         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
52585
52586         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
52587         (gl_FUNC_STRERROR): Nop.
52588         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
52589
52590         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
52591         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
52592
52593         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
52594         (gl_FUNC_READLINK): Update.
52595
52596         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
52597
52598 2007-03-03  Bruno Haible  <bruno@clisp.org>
52599
52600         * lib/xreadlink.c: Include <unistd.h> unconditionally.
52601         * modules/xreadlink (Depends-on): Add unistd.
52602         * modules/xreadlink-with-size (Depends-on): Likewise.
52603
52604 2007-03-03  Bruno Haible  <bruno@clisp.org>
52605
52606         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
52607         extracted from gt_FUNC_SETENV.
52608         (gt_FUNC_SETENV): Remove macro.
52609         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
52610         remove gt_FUNC_SETENV.
52611
52612 2007-03-03  Bruno Haible  <bruno@clisp.org>
52613
52614         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
52615         ENABLE_RELOCATABLE here.
52616         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
52617
52618 2007-03-03  Bruno Haible  <bruno@clisp.org>
52619
52620         * modules/rbtreehash-list-tests (Depends-on): Add progname.
52621         * tests/test-rbtreehash_list.c: Include progname.h.
52622         (main): Call set_program_name.
52623
52624         * modules/rbtree-oset-tests (Depends-on): Add progname.
52625         * tests/test-rbtree_oset.c: Include progname.h.
52626         (main): Call set_program_name.
52627
52628         * modules/rbtree-list-tests (Depends-on): Add progname.
52629         * tests/test-rbtree_list.c: Include progname.h.
52630         (main): Call set_program_name.
52631
52632         * modules/linked-list-tests (Depends-on): Add progname.
52633         * tests/test-linked_list.c: Include progname.h.
52634         (main): Call set_program_name.
52635
52636 2007-03-03  Bruno Haible  <bruno@clisp.org>
52637
52638         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
52639         All uses of __restrict changed to _Restrict_.
52640         * lib/glob_.h (__restrict): Remove macro.
52641
52642 2007-03-02  Bruno Haible  <bruno@clisp.org>
52643
52644         * modules/gettext (configure.ac): Require gettext infrastructure
52645         from version 0.16.1.
52646
52647 2007-03-02  Bruno Haible  <bruno@clisp.org>
52648
52649         * modules/linkedhash-list-tests (Depends-on): Add progname.
52650         * tests/test-linkedhash_list.c: Include progname.h.
52651         (main): Call set_program_name.
52652
52653         * modules/carray-list-tests (Depends-on): Add progname.
52654         * tests/test-carray_list.c: Include progname.h.
52655         (main): Call set_program_name.
52656
52657         * modules/avltreehash-list-tests (Depends-on): Add progname.
52658         * tests/test-avltreehash_list.c: Include progname.h.
52659         (main): Call set_program_name.
52660
52661         * modules/avltree-oset-tests (Depends-on): Add progname.
52662         * tests/test-avltree_oset.c: Include progname.h.
52663         (main): Call set_program_name.
52664
52665         * modules/avltree-list-tests (Depends-on): Add progname.
52666         * tests/test-avltree_list.c: Include progname.h.
52667         (main): Call set_program_name.
52668
52669         * modules/array-oset-tests (Depends-on): Add progname.
52670         * tests/test-array_oset.c: Include progname.h.
52671         (main): Call set_program_name.
52672
52673         * modules/array-list-tests (Depends-on): Add progname.
52674         * tests/test-array_list.c: Include progname.h.
52675         (main): Call set_program_name.
52676
52677         * modules/argp-tests (Depends-on): Add progname.
52678         * tests/test-argp.c: Include argp.h first. Include progname.h.
52679         (main): Call set_program_name.
52680
52681 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
52682
52683         * doc/gnulib-tool.texi (Initial import): Reword description of
52684         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
52685         limited effect even if defined after the first system include.
52686
52687 2007-03-01  Bruno Haible  <bruno@clisp.org>
52688
52689         * build-aux/config.libpath: Update to libtool-1.5.22.
52690         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52691
52692 2007-03-01  Bruno Haible  <bruno@clisp.org>
52693
52694         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
52695         foo_CFLAGS.
52696         Reported by Ralf Wildenhues.
52697
52698 2007-03-01  Bruno Haible  <bruno@clisp.org>
52699
52700         * build-aux/install-reloc: Remove object files left over by some
52701         compilers.
52702         Reported by Ralf Wildenhues.
52703
52704 2007-03-01  Bruno Haible  <bruno@clisp.org>
52705
52706         * build-aux/install-reloc: Break long lines.
52707
52708 2007-03-01  Bruno Haible  <bruno@clisp.org>
52709
52710         * doc/relocatable.texi: Document that it may not work on OpenBSD.
52711         Reported by Ralf Wildenhues.
52712
52713 2007-03-01  Bruno Haible  <bruno@clisp.org>
52714
52715         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
52716         include ordering constraints.
52717
52718 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52719
52720         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
52721         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
52722         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
52723         as another example.
52724         * lib/time_.h: Fix misspelling.
52725         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52726         Require gl_HEADER_TIME_H_DEFAULTS.
52727         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
52728         * m4/time_r.m4 (gl_TIME_R): Likewise.
52729         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
52730
52731 2007-03-01  Bruno Haible  <bruno@clisp.org>
52732
52733         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
52734         * m4/utimens.m4 (gl_UTIMENS): Likewise.
52735
52736 2007-03-01  Jim Meyering  <jim@meyering.net>
52737
52738         * modules/xreadlink (Maintainer): Add my name.
52739         * modules/xreadlink-with-size (Depends-on): Alphabetize.
52740
52741 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
52742             Bruno Haible  <bruno@clisp.org>
52743
52744         * build-aux/install-reloc: Compile also c-ctype.c.
52745         * build-aux/relocatable.sh.in: New file.
52746         * doc/relocatable.texi: New file.
52747         * doc/relocatable-maint.texi: New file.
52748         * doc/gnulib.texi: Include relocatable-maint.texi.
52749         * lib/progreloc.c: Include unistd.h unconditionally.
52750         * lib/relocwrapper.c: Include unistd.h unconditionally.
52751         Include c-ctype.h.
52752         (add_dotbin): Use c_tolower.
52753         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
52754         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
52755         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
52756         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
52757         to m4/relocatable-lib.m4.
52758         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
52759         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
52760         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
52761         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
52762         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
52763         * modules/relocatable: New file.
52764         * modules/relocatable-lib: New file.
52765         * modules/relocatable-script: New file.
52766
52767 2007-02-28  Bruno Haible  <bruno@clisp.org>
52768
52769         Import --enable-relocatable infrastructure.
52770         * build-aux/config.libpath: New file, from GNU gettext.
52771         * build-aux/install-reloc: New file, from GNU gettext.
52772         * build-aux/reloc-ldflags: New file, from GNU gettext.
52773         * lib/relocatable.h: New file, from GNU gettext.
52774         * lib/relocatable.c: New file, from GNU gettext.
52775         * lib/relocwrapper.c: New file, from GNU gettext.
52776         * m4/relocatable.m4: New file, from GNU gettext.
52777
52778 2007-02-28  Bruno Haible  <bruno@clisp.org>
52779
52780         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
52781
52782         * modules/xreadlink: New file, from GNU gettext with modifications.
52783         * lib/xreadlink.c: New file, from GNU gettext.
52784         * lib/xreadlink.h: Add comments.
52785         (xreadlink): New declaration.
52786
52787         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
52788         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
52789         lib/xreadlink-with-size.c.
52790         (configure.ac): Remove gl_XREADLINK invocation.
52791         (Makefile.am): Augment lib_SOURCES.
52792         * m4/xreadlink.m4: Remove file.
52793         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
52794         (xreadlink_with_size): Renamed from xreadink.
52795         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
52796         * modules/canonicalize (Depends-on): Replace xreadlink with
52797         xreadlink-with-size.
52798         * lib/canonicalize.c (canonicalize_filename_mode): Update.
52799
52800 2007-02-25  Jim Meyering  <jim@meyering.net>
52801
52802         * build-aux/announce-gen: When complaining about excess arguments,
52803         list them.
52804
52805 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52806
52807         * README: Document signed integer overflow situation more
52808         accurately.
52809
52810 2007-02-25  Bruno Haible  <bruno@clisp.org>
52811
52812         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
52813         'a' or 'A' conversion.
52814
52815 2007-02-25  Bruno Haible  <bruno@clisp.org>
52816
52817         * modules/filename: Renamed from modules/pathname.
52818         (Files): Replace lib/pathname.h with lib/filename.h. Replace
52819         lib/concatpath.c with lib/concat-filename.c.
52820         (Makefile.am): Update.
52821         (Include): Replace pathname.h with filename.h.
52822         * lib/filename.h: Renamed from lib/pathname.h.
52823         (concatenated_filename): Renamed from concatenated_pathname.
52824         * lib/concat-filename.c: Renamed from lib/concatpath.c.
52825         (concatenated_filename): Renamed from concatenated_pathname.
52826         * lib/findprog.c: Include filename.h instead of pathname.h.
52827         (find_in_path): Update.
52828         * lib/javacomp.c: Include filename.h instead of pathname.h.
52829         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52830         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52831         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52832         is_oldgcj_14_13_usable, is_javac_usable): Update.
52833         * lib/javaexec.c: Include filename.h instead of pathname.h.
52834         (execute_java_class): Update.
52835         * modules/findprog: Update.
52836         * modules/javacomp: Update.
52837         * modules/javaexec: Update.
52838         * MODULES.html.sh (File system functions): Add 'filename', remove
52839         'pathname'.
52840
52841 2007-02-25  Bruno Haible  <bruno@clisp.org>
52842
52843         * modules/printf-frexpl-tests: New file.
52844         * tests/test-printf-frexpl.c: New file.
52845
52846         * modules/printf-frexpl: New file.
52847         * lib/printf-frexpl.h: New file.
52848         * lib/printf-frexpl.c: New file.
52849         * m4/printf-frexpl.m4: New file.
52850
52851 2007-02-25  Bruno Haible  <bruno@clisp.org>
52852
52853         * modules/printf-frexp-tests: New file.
52854         * tests/test-printf-frexp.c: New file.
52855
52856         * modules/printf-frexp: New file.
52857         * lib/printf-frexp.h: New file.
52858         * lib/printf-frexp.c: New file.
52859         * m4/printf-frexp.m4: New file.
52860
52861 2007-02-25  Bruno Haible  <bruno@clisp.org>
52862
52863         Assume automake >= 1.10 for the tests.
52864         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
52865         * modules/arctwo-tests: Likewise.
52866         * modules/argp-tests: Likewise.
52867         * modules/avltree-list-tests: Likewise.
52868         * modules/avltree-oset-tests: Likewise.
52869         * modules/avltreehash-list-tests: Likewise.
52870         * modules/carray-list-tests: Likewise.
52871         * modules/crc-tests: Likewise.
52872         * modules/des-tests: Likewise.
52873         * modules/gc-arcfour-tests: Likewise.
52874         * modules/gc-arctwo-tests: Likewise.
52875         * modules/gc-des-tests: Likewise.
52876         * modules/gc-hmac-md5-tests: Likewise.
52877         * modules/gc-hmac-sha1-tests: Likewise.
52878         * modules/gc-md2-tests: Likewise.
52879         * modules/gc-md4-tests: Likewise.
52880         * modules/gc-md5-tests: Likewise.
52881         * modules/gc-pbkdf2-sha1-tests: Likewise.
52882         * modules/gc-rijndael-tests: Likewise.
52883         * modules/gc-sha1-tests: Likewise.
52884         * modules/gc-tests: Likewise.
52885         * modules/getaddrinfo-tests: Likewise.
52886         * modules/hmac-md5-tests: Likewise.
52887         * modules/hmac-sha1-tests: Likewise.
52888         * modules/linked-list-tests: Likewise.
52889         * modules/linkedhash-list-tests: Likewise.
52890         * modules/lock-tests: Likewise.
52891         * modules/md2-tests: Likewise.
52892         * modules/md4-tests: Likewise.
52893         * modules/md5-tests: Likewise.
52894         * modules/rbtree-list-tests: Likewise.
52895         * modules/rbtree-oset-tests: Likewise.
52896         * modules/rbtreehash-list-tests: Likewise.
52897         * modules/read-file-tests: Likewise.
52898         * modules/rijndael-tests: Likewise.
52899         * modules/stdint-tests: Likewise.
52900         * modules/tls-tests: Likewise.
52901
52902 2007-02-24  Bruno Haible  <bruno@clisp.org>
52903
52904         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
52905         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
52906         function; instead check whether isnan with a double argument links.
52907         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
52908         function; instead check whether isnan with a 'long double' argument
52909         links.
52910         Reported by Eric Blake <ebb9@byu.net>.
52911
52912 2007-02-24  Bruno Haible  <bruno@clisp.org>
52913
52914         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
52915         defined.
52916         * lib/isnanl.c: Remove all code. Just include isnan.c.
52917         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
52918
52919 2007-02-25  Jim Meyering  <jim@meyering.net>
52920
52921         Avoid conflicting types for 'unsetenv' on FreeBSD.
52922         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
52923         conflicting with FreeBSD's (5.0 and 6.1) function declaration
52924         in stdlib.h.
52925
52926 2007-02-24  Bruno Haible  <bruno@clisp.org>
52927
52928         * modules/isnanl-nolibm-tests: New file.
52929         * tests/test-isnanl.c: New file.
52930
52931         * modules/isnanl-nolibm: New file.
52932         * lib/isnanl.h: New file.
52933         * lib/isnanl.c: New file.
52934         * m4/isnanl.m4: New file.
52935
52936 2007-02-24  Bruno Haible  <bruno@clisp.org>
52937
52938         * modules/isnan-nolibm-tests: New file.
52939         * tests/test-isnan.c: New file.
52940
52941         * modules/isnan-nolibm: New file.
52942         * lib/isnan.h: New file.
52943         * lib/isnan.c: New file.
52944         * m4/isnan.m4: New file.
52945
52946 2007-02-24  Bruno Haible  <bruno@clisp.org>
52947
52948         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
52949         assume that an exponent fits in 20 bits.
52950
52951 2007-02-24  Jim Meyering  <jim@meyering.net>
52952
52953         * m4/regex.m4: Update the description of the configure-time option,
52954         --without-included-regex, to state accurately what the defaults are,
52955         and perhaps to give people an idea why using this option is risky.
52956
52957 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52958
52959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
52960         loops on small arguments.  This attempts to avoid the problem
52961         Bruno Haible reported for AIX 4.3.2 in
52962         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
52963
52964 2007-02-23  Bruno Haible  <bruno@clisp.org>
52965
52966         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
52967         Needed for help2man.
52968
52969 2007-02-23  Karl Berry  <karl@gnu.org>
52970
52971         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
52972         exists, foo.h should be cvs-ignored, not committed.
52973
52974 2007-02-23  Eric Blake  <ebb9@byu.net>
52975
52976         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
52977         * lib/stat-time.h (includes): Likewise.
52978         * lib/utimecmp.c (includes): Likewise.
52979         * lib/utimens.h (includes): Likewise.
52980         * lib/getdate.y (includes): Also include "timespec.h" for use
52981         internal to the module.
52982         * modules/utimens (Depends-on): Revert yesterday's patch.
52983         * modules/nanosleep (Depends-on): Add missing dependency.
52984
52985 2007-02-22  Bruno Haible  <bruno@clisp.org>
52986
52987         * lib/glob.c: Don't include getlogin_r.h.
52988
52989 2007-02-22  Jim Meyering  <jim@meyering.net>
52990
52991         * modules/utimens (Depends-on): Add timespec, required for
52992         utimens.h's inclusion of timespec.h.
52993
52994 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
52995
52996         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
52997         long unreadable paths in GNU/Linux.  Problem reported by Andreas
52998         Schwab in
52999         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
53000         I'll try to think of a better way to fix the Solaris problem.
53001
53002         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
53003         like glibc; on Solaris 10, it fails with errno == EINVAL.
53004         POSIX says the behavior is unspecified if the first argument is NULL,
53005         so play it safe and never pass NULL to the system getcwd.
53006
53007 2007-02-21  Jim Meyering  <jim@meyering.net>
53008
53009         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
53010         of gettimeofday.  It would conflict with the one now always
53011         provided via sys_time_.h.  Reported by Matthew Woehlke, as
53012         an IRIX 6.5 build failure.
53013
53014 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53015
53016         Minor fixups to port to Solaris 10 with Sun C 5.8.
53017         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
53018         * modules/getcwd (Depends-on): Add dirfd.
53019         * lib/putenv.c (putenv): #undef it.
53020         (rpl_putenv): New decl.
53021         (malloc, free): Include <stdlib.h> rather than prototyping separately.
53022
53023 2007-02-20  Bruno Haible  <bruno@clisp.org>
53024
53025         * modules/stdio-tests: New file.
53026         * tests/test-stdio.c: New file.
53027
53028         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
53029         (Depends-on): Add stdio.
53030         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53031         (Include): Use <stdio.h> instead of vsnprintf.h.
53032         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53033         HAVE_DECL_VSNPRINTF.
53034         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
53035
53036         * modules/snprintf (Files): Remove lib/snprintf.h.
53037         (Depends-on): Add stdio.
53038         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53039         (Include): Use <stdio.h> instead of snprintf.h.
53040         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53041         HAVE_DECL_SNPRINTF.
53042         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
53043         * lib/getaddrinfo.c: Likewise.
53044
53045         * modules/stdio: New file.
53046         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
53047         * lib/snprintf.h: Remove file.
53048         * lib/vsnprintf.h: Remove file.
53049         * lib/.cppi-disable: Remove snprintf.h.
53050         * m4/stdio_h.m4: New file.
53051         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
53052
53053 2007-02-20  Jim Meyering  <jim@meyering.net>
53054
53055         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
53056         used by e.g., mingw.  From Bruno Haible.
53057
53058 2007-02-19  Bruno Haible  <bruno@clisp.org>
53059
53060         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
53061         warnings.
53062         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53063
53064 2007-02-19  Bruno Haible  <bruno@clisp.org>
53065
53066         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
53067         from mingw users.
53068
53069 2007-02-19  Bruno Haible  <bruno@clisp.org>
53070
53071         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
53072         warnings.
53073         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
53074
53075 2007-02-19  Jim Meyering  <jim@meyering.net>
53076
53077         Don't use FD after a successful "fdopendir (fd)".
53078         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
53079         Reset it by calling dirfd on the just-obtained DIR*.
53080
53081         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
53082         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
53083
53084 2007-02-18  Bruno Haible  <bruno@clisp.org>
53085
53086         * lib/readlink.c: Include <unistd.h>.
53087         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
53088         HAVE_READLINK.
53089         * modules/readlink (Depends-on): Add unistd.
53090         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53091         (Include): Add <unistd.h>.
53092
53093         * lib/getlogin_r.h: Remove file.
53094         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
53095         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
53096         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
53097         HAVE_DECL_GETLOGIN_R.
53098         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
53099         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53100         (Include): Use <unistd.h> instead of getlogin_r.h.
53101
53102         * lib/getcwd.h: Remove file.
53103         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
53104         * lib/xgetcwd.c: Likewise.
53105         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
53106         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
53107         * modules/getcwd (Files): Remove lib/getcwd.h.
53108         (Depends-on): Add unistd.
53109         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53110         (Include): Use <unistd.h> instad of getcwd.h.
53111
53112         * lib/ftruncate.c: Include <unistd.h> first.
53113         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
53114         Set HAVE_FTRUNCATE.
53115         * modules/ftruncate (Depends-on): Add unistd.
53116         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53117
53118         * lib/fchdir.c: Include <unistd.h> first.
53119         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
53120         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
53121         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
53122         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53123         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
53124
53125         * lib/dup2.c: Include <unistd.h> first.
53126         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
53127         HAVE_DUP2.
53128         * modules/dup2 (Depends-on): Add unistd.
53129         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53130
53131         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
53132         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
53133         REPLACE_CHOWN. Don't define chown as a macro here.
53134         * modules/chown (Depends-on): Add unistd.
53135         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53136
53137         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
53138         Add definition for GL_LINK_WARNING.
53139         (chown, dup2): New declarations.
53140         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
53141         link warning.
53142         (ftruncate): New declaration.
53143         (getcwd): New declaration, taken from old getcwd.h.
53144         (getlogin_r): New declaration, taken from old getlogin_r.h.
53145         (readlink): New declaration.
53146         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
53147         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
53148         (gl_PREREQ_UNISTD): Remove macro.
53149         (gl_UNISTD_MODULE_INDICATOR): New macro.
53150         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
53151         many new variables. Don't set UNISTD_H.
53152         * modules/unistd (Description): Change.
53153         (Depends-on): Add link-warning.
53154         (configure.ac): Update.
53155         (Makefile.am): Create unistd.h always. Substitute many new variables
53156         into it.
53157
53158 2007-02-18  Bruno Haible  <bruno@clisp.org>
53159
53160         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
53161         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
53162         HAVE_GETSUBOPT.
53163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
53164         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
53165         * lib/getsubopt.h: Remove file.
53166         * modules/getsubopt (Files): Remove lib/getsubopt.h.
53167         (Depends-on): Add stdlib.
53168         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53169         (Includes): Use <stdlib.h> instead of getsubopt.h.
53170         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
53171         Set HAVE_GETSUBOPT.
53172         * lib/getsubopt.c: Don't include getsubopt.h.
53173
53174 2007-02-18  Bruno Haible  <bruno@clisp.org>
53175
53176         * modules/fchdir (Depends-on): Add dup2.
53177
53178 2007-02-18  Bruno Haible  <bruno@clisp.org>
53179
53180         * lib/stdlib_.h: Handle glibc's special invocation convention
53181         specially.
53182
53183 2007-02-18  Bruno Haible  <bruno@clisp.org>
53184
53185         * modules/stdlib-tests: New file.
53186         * tests/test-stdlib.c: New file.
53187
53188         * modules/mkstemp (Files): Remove lib/mkstemp.h.
53189         (Depends-on): Add stdlib.
53190         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53191         (Includes): Use <stdlib.h> instead of mkstemp.h.
53192         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53193         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
53194         * lib/mkstemp.c: Don't include mkstemp.h.
53195         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
53196         * lib/stdlib--.h: Don't include mkstemp.h.
53197
53198         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
53199         (Depends-on): Add stdlib.
53200         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53201         (Includes): Use <stdlib.h> instead of mkdtemp.h.
53202         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53203         HAVE_MKDTEMP.
53204         * lib/mkdtemp.c: Don't include mkdtemp.h.
53205         * lib/clean-temp.c: Don't include mkdtemp.h.
53206
53207         * modules/exit (Files): Remove lib/exit.h.
53208         (Depends-on): Add stdlib.
53209         (Makefile.am): Remove lib_SOURCES.
53210         (Include): Use <stdlib.h> instead of exit.h.
53211         * lib/argmatch.c: Don't include exit.h.
53212         * lib/execute.c: Likewise.
53213         * lib/pagealign_alloc.c: Likewise.
53214         * lib/pipe.c: Likewise.
53215         * lib/wait-process.c: Likewise.
53216         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
53217         * lib/exitfail.c: Likewise.
53218         * lib/savewd.c: Likewise.
53219         * lib/xsetenv.c: Likewise.
53220
53221         * modules/stdlib: New file.
53222         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
53223         and extra comments about mkstemp().
53224         * lib/exit.h: Remove file.
53225         * lib/mkdtemp.h: Remove file.
53226         * lib/mkstemp.h: Remove file.
53227         * m4/stdlib_h.m4: New file.
53228         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
53229
53230 2007-02-18  Bruno Haible  <bruno@clisp.org>
53231
53232         * modules/math-tests: New file.
53233         * tests/test-math.c: New file.
53234
53235         * modules/math: New file.
53236         * modules/mathl (Files): Remove lib/mathl.h.
53237         (Depends-on): Add math.
53238         (Makefile.am): Don't mention mathl.h.
53239         (Include): Use <math.h> instead of mathl.h.
53240         * lib/math_.h: New file.
53241         * lib/mathl.h: Remove file.
53242         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
53243         mathl.h.
53244         * lib/asinl.c: Likewise.
53245         * lib/atanl.c: Likewise.
53246         * lib/ceill.c: Likewise.
53247         * lib/cosl.c: Likewise.
53248         * lib/expl.c: Likewise.
53249         * lib/floorl.c: Likewise.
53250         * lib/frexpl.c: Likewise.
53251         * lib/ldexpl.c: Likewise.
53252         * lib/logl.c: Likewise.
53253         * lib/sincosl.c: Likewise.
53254         * lib/sinl.c: Likewise.
53255         * lib/sqrtl.c: Likewise.
53256         * lib/tanl.c: Likewise.
53257         * lib/trigl.c: Likewise.
53258         * m4/math_h.m4: New file.
53259         * MODULES.html.sh (Mathematics): Add math.
53260
53261 2007-02-17  Bruno Haible  <bruno@clisp.org>
53262
53263         * modules/wctype-tests: New file.
53264         * tests/test-wctype.c: New file.
53265
53266         * modules/wchar-tests: New file.
53267         * tests/test-wchar.c: New file.
53268
53269         * modules/unistd-tests: New file.
53270         * tests/test-unistd.c: New file.
53271
53272         * modules/time-tests: New file.
53273         * tests/test-time.c: New file.
53274
53275         * modules/sysexits-tests: New file.
53276         * tests/test-sysexits.c: New file.
53277
53278         * modules/sys_time-tests: New file.
53279         * tests/test-sys_time.c: New file.
53280
53281         * modules/sys_stat-tests: New file.
53282         * tests/test-sys_stat.c: New file.
53283
53284         * modules/sys_socket-tests: New file.
53285         * tests/test-sys_socket.c: New file.
53286
53287         * modules/sys_select-tests: New file.
53288         * tests/test-sys_select.c: New file.
53289
53290         * modules/string-tests: New file.
53291         * tests/test-string.c: New file.
53292
53293         * modules/stdbool-tests: New file.
53294         * tests/test-stdbool.c: New file.
53295
53296         * modules/netinet_in-tests: New file.
53297         * tests/test-netinet_in.c: New file.
53298
53299         * modules/inttypes-tests: New file.
53300         * tests/test-inttypes.c: New file.
53301
53302         * modules/fcntl-tests: New file.
53303         * tests/test-fcntl.c: New file.
53304
53305         * modules/byteswap-tests: New file.
53306         * tests/test-byteswap.c: New file.
53307
53308         * modules/arpa_inet-tests: New file.
53309         * tests/test-arpa_inet.c: New file.
53310
53311 2007-02-17  Bruno Haible  <bruno@clisp.org>
53312
53313         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
53314         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
53315         if the corresponding module is not enabled. Emit link warnings if
53316         the function is used nevertheless.
53317         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
53318         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
53319         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
53320         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
53321         * modules/inttypes (Depends-on): Add link-warning.
53322         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53323         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
53324         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
53325         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
53326         * modules/imaxdiv (configure.ac): Likewise.
53327         * modules/strtoimax (configure.ac): Likewise.
53328         * modules/strtoumax (configure.ac): Likewise.
53329
53330 2007-02-17  Bruno Haible  <bruno@clisp.org>
53331
53332         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
53333         gl_STRING_MODULE_INDICATOR_DEFAULTS.
53334         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
53335         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
53336
53337 2007-02-17  Bruno Haible  <bruno@clisp.org>
53338
53339         * modules/link-warning: New file.
53340         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
53341         * lib/string_.h (GL_LINK_WARNING): Remove definition.
53342         * modules/string (Depends-on): Add link-warning.
53343         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53344         string.h.
53345         * MODULES.html.sh (Support for building libraries and executables): Add
53346         link-warning.
53347
53348 2007-02-17  Bruno Haible  <bruno@clisp.org>
53349
53350         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
53351         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
53352         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
53353         long lines.
53354
53355 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
53356             Bruno Haible  <bruno@clisp.org>
53357
53358         * modules/tmpfile: New file.
53359         * lib/tmpfile.c: New file.
53360         * m4/tmpfile.m4: New file.
53361         * MODULES.html.sh (func_all_modules): New section "Input/output".
53362
53363 2007-02-15  Bruno Haible  <bruno@clisp.org>
53364
53365         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
53366         (supports_delete_on_close): New function.
53367         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
53368
53369 2007-02-14  Bruno Haible  <bruno@clisp.org>
53370
53371         * modules/mbspcasecmp-tests: New file.
53372         * tests/test-mbspcasecmp.sh: New file.
53373         * tests/test-mbspcasecmp.c: New file.
53374
53375         New module mbspcasecmp.
53376         * modules/mbspcasecmp: New file.
53377         * lib/mbspcasecmp.c: New file.
53378         * lib/string_.h (strncasecmp): Change warning message.
53379         (mbspcasecmp): New declaration.
53380         * m4/mbspcasecmp.m4: New file.
53381         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53382         GNULIB_MBSPCASECMP.
53383         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
53384         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
53385
53386 2007-02-14  Bruno Haible  <bruno@clisp.org>
53387
53388         * modules/mbsncasecmp-tests: New file.
53389         * tests/test-mbsncasecmp.sh: New file.
53390         * tests/test-mbsncasecmp.c: New file.
53391
53392         New module mbsncasecmp.
53393         * modules/mbsncasecmp: New file.
53394         * lib/mbsncasecmp.c: New file.
53395         * lib/string_.h (mbsncasecmp): New declaration.
53396         * m4/mbsncasecmp.m4: New file.
53397         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53398         GNULIB_MBSNCASECMP.
53399         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
53400         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
53401
53402 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
53403
53404         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
53405         Verify that it doesn't overlap with our flags.
53406         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
53407         do not have the desired effect in multibyte locales; instead, use
53408         mbscasecmp.
53409         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
53410         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
53411         we don't require GNU fnmatch ourselves (if our users require it, they
53412         should do so explicitly).
53413
53414         Fix regex code so it doesn't rely on strcasecmp.
53415         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
53416         Otherwise, include gnulib's langinfo.h.
53417         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
53418         undesirable behavior in non-C locales.  Instead, rely on localecharset.
53419         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
53420         * modules/regex (FILES): Remove m4/codeset.m4.
53421         (Depends-on): Add localcharset.  Remove strcase.
53422
53423 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53424
53425         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
53426         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
53427
53428 2007-02-13  Bruno Haible  <bruno@clisp.org>
53429
53430         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
53431         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53432
53433 2007-02-12  Bruno Haible  <bruno@clisp.org>
53434
53435         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53436         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
53437         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
53438         time warning rather than a link error.
53439
53440 2007-02-12  Bruno Haible  <bruno@clisp.org>
53441
53442         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
53443         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53444         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53445
53446 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53447
53448         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
53449         args, not 2.
53450
53451 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53452
53453         New module 'time', so that apps can include <time.h> as per
53454         POSIX and GNU instead of separate include files like time_r.h
53455         and timegm.h.  This implementation tries out a simpler approach
53456         for replacing decls in standard include files (as compared to
53457         the string module), somewhat as an experiment.
53458
53459         * config/srclist.txt: Comment out mktime.c for now.
53460         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
53461         since it doesn't apply any more.  Use generic wording instead.
53462         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
53463         'time'.
53464         * lib/time_.h, m4/time_h.m4, modules/time: New files.
53465         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
53466         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
53467         Don't include <sys/types.h>; no longer needed since we assume C89.
53468         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
53469         * lib/strftime.c: Likewise.
53470         * lib/time_r.c: Likewise.
53471         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
53472         * lib/nanosleep.c: Include <time.h> first, to check interface.
53473         * lib/strptime.c: Likewise.
53474         * lib/time_r.c: Likewise.
53475         * lib/timegm.c: Likewise.
53476         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
53477         needed.
53478         * lib/timegm.c: Don't include timegm.h; no longer needed.
53479         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
53480         time.h now handles any problems in that area.
53481         (struct timespec, nanosleep): Remove; time.h now arranges for these.
53482         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
53483         that time.h defines struct timespec.
53484         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
53485         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
53486         handles that.
53487         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
53488         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
53489         needed.  Set REPLACE_LOCALTIME.
53490         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
53491         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
53492         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
53493         nanosleep; time_h.m4 now does that.  Don't require
53494         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
53495         module handles this now.
53496         * modules/getdate (Depends-on): Remove timespec.  Add time.
53497         * modules/nanosleep (Depends-on): Likewise.
53498         * modules/stat-time (Depends-on): Likewise.
53499         * modules/nanosleep (Include): Include time.h, not timespec.h.
53500         * modules/strptime (Files): Remove lib/strptime.h.
53501         (Depends-on): Add extensions, time.
53502         (Include): Include time.h, not strptime.h.
53503         * modules/time_r (Files): Remove lib/time_r.h.
53504         (Depends-on): Add time.
53505         (Include): Include time.h, not time_r.h.
53506         * modules/timegm: Likewise.
53507         * modules/timespec (Description): Now does timespec-related decls
53508         of our own, instead of struct timespec itself.
53509         (Depends-on): Add time; remove extensions.
53510         (Maintainer): Add self.
53511         * modules/utimecmp (Depends-on): Add time; remove timespec.
53512         * modules/utimens (Depends-on): Likewise.
53513         * modules/xnanosleep (Depends-on): Likewise.
53514
53515 2007-02-11  Bruno Haible  <bruno@clisp.org>
53516
53517         * lib/c-strstr.c: Include allocsa.h.
53518         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53519         * lib/c-strcasestr.c: Include allocsa.h.
53520         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53521         * lib/strcasestr.c: Include allocsa.h.
53522         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53523         * lib/mbsstr.c: Include allocsa.h.
53524         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53525         allocsa/freesa instead of malloc/free.
53526         * lib/mbscasestr.c: Include allocsa.h.
53527         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53528         allocsa/freesa instead of malloc/free.
53529         * modules/c-strstr (Depends-on): Add allocsa.
53530         * modules/c-strcasestr (Depends-on): Likewise.
53531         * modules/strcasestr (Depends-on): Likewise.
53532         * modules/mbsstr (Depends-on): Likewise.
53533         * modules/mbscasestr (Depends-on): Likewise.
53534
53535 2007-02-11  Bruno Haible  <bruno@clisp.org>
53536
53537         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
53538
53539         * modules/mbsspn-tests: New file.
53540         * tests/test-mbsspn.sh: New file.
53541         * tests/test-mbsspn.c: New file.
53542
53543 2007-02-11  Bruno Haible  <bruno@clisp.org>
53544
53545         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
53546
53547         * modules/mbspbrk-tests: New file.
53548         * tests/test-mbspbrk.sh: New file.
53549         * tests/test-mbspbrk.c: New file.
53550
53551 2007-02-11  Bruno Haible  <bruno@clisp.org>
53552
53553         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
53554         unneeded cast.
53555
53556         * modules/mbscspn-tests: New file.
53557         * tests/test-mbscspn.sh: New file.
53558         * tests/test-mbscspn.c: New file.
53559
53560 2007-02-11  Bruno Haible  <bruno@clisp.org>
53561
53562         * modules/mbscasecmp-tests: New file.
53563         * tests/test-mbscasecmp.sh: New file.
53564         * tests/test-mbscasecmp.c: New file.
53565
53566 2007-02-11  Bruno Haible  <bruno@clisp.org>
53567
53568         Ensure O(n) worst-case complexity of mbscasestr.
53569         * lib/mbscasestr.c: Include stdbool.h.
53570         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53571         functions.
53572         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
53573         the bookkeeping indicates that it's worth it.
53574         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
53575
53576         * modules/mbscasestr-tests: New file.
53577         * tests/test-mbscasestr1.c: New file.
53578         * tests/test-mbscasestr2.sh: New file.
53579         * tests/test-mbscasestr2.c: New file.
53580         * tests/test-mbscasestr3.sh: New file.
53581         * tests/test-mbscasestr3.c: New file.
53582         * tests/test-mbscasestr4.sh: New file.
53583         * tests/test-mbscasestr4.c: New file.
53584         * m4/locale-tr.m4: New file.
53585
53586 2007-02-11  Bruno Haible  <bruno@clisp.org>
53587
53588         Ensure O(n) worst-case complexity of mbsstr.
53589         * lib/mbsstr.c: Include stdbool.h.
53590         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53591         functions.
53592         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
53593         bookkeeping indicates that it's worth it.
53594         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
53595
53596         * modules/mbsstr-tests: New file.
53597         * tests/test-mbsstr1.c: New file.
53598         * tests/test-mbsstr2.sh: New file.
53599         * tests/test-mbsstr2.c: New file.
53600         * tests/test-mbsstr3.sh: New file.
53601         * tests/test-mbsstr3.c: New file.
53602         * m4/locale-fr.m4: New file.
53603
53604 2007-02-11  Bruno Haible  <bruno@clisp.org>
53605
53606         * lib/mbsrchr.c (mbsrchr): Fix bug.
53607
53608         * modules/mbsrchr-tests: New file.
53609         * tests/test-mbsrchr.sh: New file.
53610         * tests/test-mbsrchr.c: New file.
53611
53612 2007-02-11  Bruno Haible  <bruno@clisp.org>
53613
53614         * lib/mbschr.c (mbschr): Fix bug.
53615
53616         * modules/mbschr-tests: New file.
53617         * tests/test-mbschr.sh: New file.
53618         * tests/test-mbschr.c: New file.
53619         * m4/locale-zh.m4: New file.
53620
53621 2007-02-11  Bruno Haible  <bruno@clisp.org>
53622
53623         Support for copying multibyte string iterators.
53624         * lib/mbiter.h: Include <string.h>.
53625         (mbiter_multi_copy): New function.
53626         (mbi_copy): New macro.
53627         * lib/mbuiter.h: Include <string.h>.
53628         (mbuiter_multi_copy): New function.
53629         (mbui_copy): New macro.
53630
53631 2007-02-11  Bruno Haible  <bruno@clisp.org>
53632
53633         New module mbslen.
53634         * modules/mbslen: New file.
53635         * lib/mbslen.c: New file.
53636         * lib/string_.h (mbslen): New declaration.
53637         * m4/mbslen.m4: New file.
53638         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53639         GNULIB_MBSLEN.
53640         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
53641         * MODULES.html.sh (Internationalization functions): Add mbslen.
53642
53643 2007-02-11  Bruno Haible  <bruno@clisp.org>
53644
53645         Ensure O(n) worst-case complexity of strcasestr substitute.
53646         * lib/strcasestr.c: Include stdbool.h.
53647         (knuth_morris_pratt): New function.
53648         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53649         bookkeeping indicates that it's worth it.
53650         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
53651
53652         * modules/strcasestr-tests: New file.
53653         * tests/test-strcasestr.c: New file.
53654
53655 2007-02-11  Bruno Haible  <bruno@clisp.org>
53656
53657         Ensure O(n) worst-case complexity of c_strcasestr.
53658         * lib/c-strcasestr.c: Include stdbool.h, string.h.
53659         (knuth_morris_pratt): New function.
53660         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
53661         the bookkeeping indicates that it's worth it.
53662         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
53663
53664         * modules/c-strcasestr-tests: New file.
53665         * tests/test-c-strcasestr.c: New file.
53666
53667 2007-02-11  Bruno Haible  <bruno@clisp.org>
53668
53669         Ensure O(n) worst-case complexity of c_strstr.
53670         * lib/c-strstr.c: Include stdbool.h, string.h.
53671         (knuth_morris_pratt): New function.
53672         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53673         bookkeeping indicates that it's worth it.
53674         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
53675
53676         * lib/c-strstr.c: Complete rewrite for maintainability.
53677
53678         * modules/c-strstr-tests: New file.
53679         * tests/test-c-strstr.c: New file.
53680
53681 2007-02-11  Bruno Haible  <bruno@clisp.org>
53682
53683         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
53684         5.2.1 and earlier, whereby \055 was treated just like the range
53685         delimiter '-'.
53686         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53687
53688 2007-02-08  Bruno Haible  <bruno@clisp.org>
53689
53690         * modules/regex (Depends-on): Add stdbool.
53691         Reported by Dalibor Topic <robilad@kaffe.org>.
53692
53693 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53694
53695         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
53696         Prefer returning from main to exiting from it.
53697         Remove unnecessary parens after sizeof.
53698
53699 2007-02-05  Bruno Haible  <bruno@clisp.org>
53700
53701         New module mbssep.
53702         * modules/mbssep: New file.
53703         * lib/mbssep.c: New file.
53704         * lib/string_.h (strsep): Add a conditional link warning.
53705         (mbssep): New declaration.
53706         * m4/mbssep.m4: New file.
53707         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53708         GNULIB_MBSSEP.
53709         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
53710         * MODULES.html.sh (Internationalization functions): Add mbssep.
53711
53712 2007-02-05  Bruno Haible  <bruno@clisp.org>
53713
53714         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
53715         Optimize search in case of 1 delimiter.
53716
53717 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53718
53719         * lib/acl.h: Include sys/types.h before sys/acl.h.
53720
53721 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53722
53723         Merge upstream fix for glibc bugzilla #3957:
53724
53725         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
53726
53727         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
53728         bit for RE_HAT_LISTS_NOT_NEWLINE.
53729         (build_charclass_op): Remove bogus comment.
53730
53731 2007-02-05  Simon Josefsson  <simon@josefsson.org>
53732
53733         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
53734
53735 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53736
53737         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
53738         * lib/memmem.c [!defined _LIBC]: Include config.h.
53739
53740 2007-02-04  Bruno Haible  <bruno@clisp.org>
53741
53742         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
53743         warning message.
53744
53745 2007-02-04  Bruno Haible  <bruno@clisp.org>
53746
53747         New module mbstok_r.
53748         * modules/mbstok_r: New file.
53749         * lib/mbstok_r.c: New file.
53750         * lib/string_.h (strtok_r): Change argument names to match the
53751         comments. Add a conditional link warning.
53752         (mbstok_r): New declaration.
53753         * m4/mbstok_r.m4: New file.
53754         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53755         GNULIB_MBSTOK_R.
53756         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
53757         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
53758
53759 2007-02-04  Bruno Haible  <bruno@clisp.org>
53760
53761         New module mbsspn.
53762         * modules/mbsspn: New file.
53763         * lib/mbsspn.c: New file.
53764         * lib/string_.h (strspn): Add a conditional link warning.
53765         (mbsspn): New declaration.
53766         * m4/mbsspn.m4: New file.
53767         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53768         GNULIB_MBSSPN.
53769         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
53770         * MODULES.html.sh (Internationalization functions): Add mbsspn.
53771
53772 2007-02-04  Bruno Haible  <bruno@clisp.org>
53773
53774         New module mbspbrk.
53775         * modules/mbspbrk: New file.
53776         * lib/mbspbrk.c: New file.
53777         * lib/string_.h (strpbrk): Add a conditional link warning.
53778         (mbspbrk): New declaration.
53779         * m4/mbspbrk.m4: New file.
53780         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53781         GNULIB_MBSPBRK.
53782         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
53783         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
53784
53785 2007-02-04  Bruno Haible  <bruno@clisp.org>
53786
53787         New module mbscspn.
53788         * modules/mbscspn: New file.
53789         * lib/mbscspn.c: New file.
53790         * lib/string_.h (strcspn): Add a conditional link warning.
53791         (mbscspn): New declaration.
53792         * m4/mbscspn.m4: New file.
53793         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53794         GNULIB_MBSCSPN.
53795         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
53796         * MODULES.html.sh (Internationalization functions): Add mbscspn.
53797
53798 2007-02-04  Bruno Haible  <bruno@clisp.org>
53799
53800         New module mbscasestr, reduced goal of strcasestr.
53801         * modules/mbscasestr: New file.
53802         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
53803         (mbscasestr): Renamed from strcasestr.
53804         * lib/strcasestr.c: Don't include mbuiter.h.
53805         (strcasestr): Remove support for multibyte locales.
53806         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
53807         Change the conditional link warning.
53808         (mbscasestr): New declaration.
53809         * m4/mbscasestr.m4: New file.
53810         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
53811         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
53812         REPLACE_STRCASESTR.
53813         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
53814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53815         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53816         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
53817         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
53818         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53819         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
53820         (Depends-on): Remove mbuiter.
53821         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
53822
53823 2007-02-04  Bruno Haible  <bruno@clisp.org>
53824
53825         Simplify handling of strncasecmp.
53826         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
53827         the conditional link warning.
53828         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53829         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
53830         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
53831         * modules/strcase (configure.ac): Don't invoke
53832         gl_STRING_MODULE_INDICATOR.
53833         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
53834
53835 2007-02-04  Bruno Haible  <bruno@clisp.org>
53836
53837         New module mbscasecmp, reduced goal of strcasecmp.
53838         * modules/mbscasecmp: New file.
53839         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
53840         (mbscasecmp): Renamed from strcasecmp.
53841         * lib/strcasecmp.c: Don't include mbuiter.h.
53842         (strcasecmp): Remove support for multibyte locales.
53843         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
53844         Change the conditional link warning.
53845         (mbscasecmp): New declaration.
53846         * m4/mbscasecmp.m4: New file.
53847         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
53848         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
53849         REPLACE_STRCASECMP.
53850         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
53851         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53852         GNULIB_MBSCASECMP.
53853         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
53854         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
53855         * modules/strcase (Files): Remove m4/mbrtowc.m4.
53856         (Depends-on): Remove mbuiter.
53857         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
53858
53859 2007-02-04  Bruno Haible  <bruno@clisp.org>
53860
53861         New module mbsstr. Remove module strstr.
53862         * modules/mbsstr: New file.
53863         * modules/strstr: Remove file.
53864         * lib/mbsstr.c: Renamed from lib/strstr.c.
53865         (mbsstr): Renamed from strstr.
53866         * lib/string_.h (strstr): Remove declaration. Change the conditional
53867         link warning.
53868         (mbsstr): New declaration.
53869         * m4/mbsstr.m4: New file.
53870         * m4/strstr.m4: Remove file.
53871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53872         REPLACE_STRSTR.
53873         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
53874         Don't initialize GNULIB_STRSTR.
53875         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
53876         substitute GNULIB_STRSTR and REPLACE_STRSTR.
53877         * MODULES.html.sh (Internationalization functions): Add mbsstr.
53878         (Support for systems lacking ANSI C 89): Remove strstr.
53879
53880 2007-02-04  Bruno Haible  <bruno@clisp.org>
53881
53882         New module mbsrchr.
53883         * modules/mbsrchr: New file.
53884         * lib/mbsrchr.c: New file.
53885         * lib/string_.h (strrchr): Add a conditional link warning.
53886         (mbsrchr): New declaration.
53887         * m4/mbsrchr.m4: New file.
53888         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53889         GNULIB_MBSRCHR.
53890         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
53891         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
53892
53893 2007-02-04  Bruno Haible  <bruno@clisp.org>
53894
53895         New module mbschr.
53896         * modules/mbschr: New file.
53897         * lib/mbschr.c: New file.
53898         * lib/string_.h (strchr): Add a conditional link warning.
53899         (mbschr): New declaration.
53900         * m4/mbschr.m4: New file.
53901         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53902         GNULIB_MBSCHR.
53903         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
53904         * MODULES.html.sh (Internationalization functions): Add mbschr.
53905
53906 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53907
53908         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
53909
53910         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
53911
53912 2007-02-04  Bruno Haible  <bruno@clisp.org>
53913
53914         New module description section 'configure.ac-early'.
53915         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
53916         (func_get_autoconf_early_snippet): New function.
53917         (func_import, func_create_testdir): Use it. Remove special cases for
53918         modules 'extensions' and 'lock'.
53919         * modules/extensions (configure.ac-early): Require
53920         gl_USE_SYSTEM_EXTENSIONS.
53921         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
53922
53923 2007-02-04  Bruno Haible  <bruno@clisp.org>
53924
53925         Make use of gcj-4.3's -fsource and -ftarget option.
53926         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
53927         and if so try the options -fsource and -ftarget.
53928         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
53929         source_version, ftarget_option, target_version arguments.
53930         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
53931         (is_envjavac_oldgcj_14_14_usable): Renamed from
53932         is_envjavac_gcj_14_14_usable.
53933         (is_envjavac_oldgcj_14_13_usable): Renamed from
53934         is_envjavac_gcj_14_13_usable.
53935         (is_gcj_present): Update.
53936         (is_gcj_43, is_gcj43_usable): New functions.
53937         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
53938         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
53939         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
53940         try the options -fsource and -ftarget.
53941
53942 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53943
53944         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
53945         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
53946         larger value.
53947
53948 2007-02-03  Jim Meyering  <jim@meyering.net>
53949
53950         Give tools a better chance to allocate space for very large buffers.
53951         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
53952
53953         Make pwd and readlink work also when run with an unreadable parent dir
53954         on systems with openat support.
53955         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
53956         provided getcwd function, even when we have openat support.
53957         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
53958
53959 2007-02-02  Bruno Haible  <bruno@clisp.org>
53960
53961         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53962         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
53963         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
53964         portability problems if one of these functions is only used on specific
53965         platforms.
53966         Reported by Paul Eggert.
53967
53968 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
53969
53970         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
53971         is causing more trouble than it's curing.
53972         * lib/regex_internal.h (__mempcpy): Remove.
53973         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
53974         (and make the code a tad smaller to boot).
53975         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
53976
53977 2007-02-02  Jim Meyering  <jim@meyering.net>
53978
53979         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
53980         section, not in the Makefile.am: one.
53981
53982 2007-02-02  Eric Blake  <ebb9@byu.net>
53983
53984         * lib/strchrnul.c: Always include config.h first.
53985
53986         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
53987         gnulib strstr is not necessary here.
53988
53989 2007-02-02  Simon Josefsson  <simon@josefsson.org>
53990
53991         * m4/socklen.m4: Fix typo.
53992
53993 2007-02-02  Eric Blake  <ebb9@byu.net>
53994
53995         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
53996         * modules/netinet_in (Makefile.am): Likewise.
53997
53998 2007-02-01  Bruno Haible  <bruno@clisp.org>
53999
54000         * lib/string_.h (GL_LINK_WARNING): New macro.
54001         (strcasecmp, strstr, strcasestr): If provided by the system,
54002         conditionally define as a macro that leads to a warning instead of to
54003         an error.
54004         (strncasecmp): Conditionally define as a macro that leads to a warning.
54005
54006 2007-02-01  Karl Berry  <karl@gnu.org>
54007
54008         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
54009
54010 2007-02-01  Bruno Haible  <bruno@clisp.org>
54011
54012         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
54013         renamings.
54014
54015 2007-02-01  Eric Blake  <ebb9@byu.net>
54016
54017         * modules/regex (Depends-on): Revert dependence on mempcpy.
54018         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
54019         module's definition of mempcpy.
54020         Reported by Paul Eggert.
54021
54022 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54023
54024         * lib/string_.h: If the gnulib module XYZ is not present, undefine
54025         the symbol XYZ before redefining it.  This fixes a problem with
54026         programs that don't use XYZ, when compiled on systems that define
54027         XYZ to something else.
54028
54029 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
54030
54031         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
54032         occurs when "mkdir -m foo" creates a setgid directory that is (1)
54033         writeable to group or other and (2) is intended to have a special
54034         mode bit that is set or cleared.  In such a case, the directory
54035         should be neither group- nor other-writeable until the special
54036         mode bits are right.
54037
54038 2007-01-31  Eric Blake  <ebb9@byu.net>
54039
54040         * modules/mountlist (Depends-on): Add strstr.
54041
54042         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
54043         bug.
54044         * modules/string (Makefile.am): Remove redundant replacement.
54045         * modules/regex (Depends-on): Add mempcpy.
54046
54047 2007-01-31  Bruno Haible  <bruno@clisp.org>
54048
54049         New module description field 'Link'.
54050         * gnulib-tool (func_usage): Document --extract-link-directive.
54051         (sed_extract_prog): Recognize 'Link' directive.
54052         (func_get_link_directive): New function.
54053         (func_import): Show summary of link directives.
54054         Handle --extract-link-directive option.
54055         * modules/acl (Link): New section.
54056         * modules/clock-time (Link): New section.
54057         * modules/euidaccess (Link): New section.
54058         * modules/gettext (Link): New section.
54059         * modules/iconv (Link): New section.
54060         * modules/lock (Link): New section.
54061         * modules/nanosleep (Link): New section.
54062         * modules/readline (Link): New section.
54063
54064 2007-01-27  Bruno Haible  <bruno@clisp.org>
54065
54066         Enforce the use of gnulib modules for unportable <string.h> functions.
54067         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
54068         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
54069         (gl_HEADER_STRING_H_BODY): Require it.
54070         * lib/string_.h: If the gnulib module XYZ is not present, redefine
54071         the symbol XYZ to one that gives a link error.
54072         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
54073         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
54074         * modules/mempcpy (configure.ac): Likewise.
54075         * modules/memrchr (configure.ac): Likewise.
54076         * modules/stpcpy (configure.ac): Likewise.
54077         * modules/stpncpy (configure.ac): Likewise.
54078         * modules/strcase (configure.ac): Likewise.
54079         * modules/strcasestr (configure.ac): Likewise.
54080         * modules/strchrnul (configure.ac): Likewise.
54081         * modules/strdup (configure.ac): Likewise.
54082         * modules/strndup (configure.ac): Likewise.
54083         * modules/strnlen (configure.ac): Likewise.
54084         * modules/strpbrk (configure.ac): Likewise.
54085         * modules/strsep (configure.ac): Likewise.
54086         * modules/strstr (configure.ac): Likewise.
54087         * modules/strtok_r (configure.ac): Likewise.
54088
54089 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
54090
54091         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
54092
54093 2007-01-30  Jim Meyering  <jim@meyering.net>
54094
54095         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
54096
54097 2007-01-29  Bruno Haible  <bruno@clisp.org>
54098
54099         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
54100         * lib/execute.c: Likewise.
54101         * lib/pipe.c: Likewise.
54102         * lib/printf-args.h: Likewise.
54103         * lib/printf-args.c: Likewise.
54104         * lib/printf-parse.c: Likewise.
54105         * lib/vasnprintf.c: Likewise.
54106
54107 2007-01-29  Eric Blake  <ebb9@byu.net>
54108
54109         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
54110         declaration.
54111
54112 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
54113
54114         * lib/strptime.h (strptime): Use 'restrict' for args where
54115         POSIX requires this.
54116         * lib/strptime.c (strptime): Likewise.
54117         Change license notice from LGPL to GPL, since gnulib-tool will
54118         change this as needed.
54119         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
54120         defined.
54121         Include "strptime.h" first, to check interface.
54122         Do not #undef _LIBC and _NL_CURRENT.
54123         Do not include <stdlib.h>; no longer needed.
54124         Include "time_r.h" and declare ptime_locale_status
54125         only if _LIBC is not defined.
54126         (__P): Remove unused macro.
54127         (match_string): Bring back glibc version, but use it only if _LIBC
54128         is defined.
54129         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
54130         Remove unnecessary assertion and abort() call.
54131         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
54132         * m4/strptime.m4: Fix serial number comment.
54133         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
54134         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
54135         (Depends-on): Add time_r.
54136
54137 2007-01-29  Bruno Haible  <bruno@clisp.org>
54138
54139         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54140         strptime.
54141         * modules/strptime (Depends-on): Add stdbool.
54142         * lib/strptime.h: Include <time.h> always. Add comments.
54143
54144 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54145
54146         * modules/strptime: New file.
54147         * lib/strptime.h: New file.
54148         * lib/strptime.c: New file.
54149         * m4/strptime.m4: New file.
54150
54151 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54152
54153         * MODULES.html.sh: New module mpsort.
54154         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
54155
54156         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
54157         a circularity problem with HP-UX ia64 reported by Bob Proulx in
54158         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
54159         All uses changed.
54160         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
54161         All uses changed.
54162         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
54163         to _Restrict_.
54164         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
54165         the parameter matches the prototype.
54166
54167 2007-01-28  Jim Meyering  <jim@meyering.net>
54168
54169         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
54170         sys/time.h here, reverting that part of the previous patch:
54171         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
54172
54173 2007-01-28  Bruno Haible  <bruno@clisp.org>
54174
54175         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
54176         value of $(SYS_TIME_H).
54177         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
54178         remove it conditionally, too. [added by Jim Meyering]
54179         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
54180         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54181         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
54182         GETTIMEOFDAY_REPLACEMENT to 1.
54183
54184 2007-01-28  Bruno Haible  <bruno@clisp.org>
54185
54186         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
54187         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
54188         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
54189         Set UNISTD_H instead of UNISTD_H2.
54190         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
54191
54192 2007-01-28  Bruno Haible  <bruno@clisp.org>
54193
54194         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
54195         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
54196
54197 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54198
54199         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
54200         (func_create_testdir): Ensure C locale for `grep' and `tr'
54201         character ranges.
54202         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
54203         ACLOCAL_AMFLAGS parsing state machine.
54204
54205 2007-01-27  Bruno Haible  <bruno@clisp.org>
54206
54207         * modules/unistr/base: Update.
54208
54209 2007-01-27  Bruno Haible  <bruno@clisp.org>
54210
54211         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
54212         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
54213         * modules/unistr/u32-mbtouc-unsafe: Renamed from
54214         modules/unistr/u32-mbtouc.
54215         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
54216         * lib/unistr.h: Update.
54217         * lib/linebreak.c: Update.
54218         * modules/unistr/u32-mbtouc: Renamed from
54219         modules/unistr/u32-mbtouc-safe.
54220         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
54221         * lib/unistr.h: Update.
54222         * lib/unistr/u32-to-u8.c: Update.
54223         * lib/unistr/u32-to-u16.c: Update.
54224
54225 2007-01-27  Bruno Haible  <bruno@clisp.org>
54226
54227         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
54228         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
54229         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
54230         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
54231         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
54232         * modules/unistr/u16-mbtouc-unsafe: Renamed from
54233         modules/unistr/u16-mbtouc.
54234         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
54235         * lib/unistr.h: Update.
54236         * lib/linebreak.c: Update.
54237         * modules/linebreak: Update.
54238         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
54239         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
54240         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
54241         * modules/unistr/u16-mbtouc: Renamed from
54242         modules/unistr/u16-mbtouc-safe.
54243         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
54244         * lib/unistr.h: Update.
54245         * lib/unistr/u16-to-u8.c: Update.
54246         * modules/unistr/u16-to-u8: Update.
54247         * lib/unistr/u16-to-u32.c: Update.
54248         * modules/unistr/u16-to-u32: Update.
54249
54250 2007-01-27  Bruno Haible  <bruno@clisp.org>
54251
54252         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
54253         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
54254         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
54255         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
54256         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
54257         * modules/unistr/u8-mbtouc-unsafe: Renamed from
54258         modules/unistr/u8-mbtouc.
54259         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
54260         * lib/unistr.h: Update.
54261         * lib/striconveh.c: Update.
54262         * modules/striconveh: Update.
54263         * lib/linebreak.c: Update.
54264         * modules/linebreak: Update.
54265         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
54266         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
54267         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
54268         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
54269         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
54270         * lib/unistr.h: Update.
54271         * lib/striconveh.c: Update.
54272         * modules/striconveh: Update.
54273         * lib/unistr/u8-to-u16.c: Update.
54274         * modules/unistr/u8-to-u16: Update.
54275         * lib/unistr/u8-to-u32.c: Update.
54276         * modules/unistr/u8-to-u32: Update.
54277
54278 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54279
54280         Sync from Libtool.
54281         * lib/argz.c: Do not include strings.h nor memory.h, include
54282         string.h unconditionally.  Patch by Simon Josefsson.
54283
54284 2007-01-27  Bruno Haible  <bruno@clisp.org>
54285
54286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
54287         from gl_HEADER_STRING_H_BODY.
54288         (gl_HEADER_STRING_H_BODY): Require it.
54289         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
54290         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54291         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54292         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54293         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54294         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
54295         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54296         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54297         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
54298         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54299         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54300         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
54301         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54302         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54303         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54304
54305 2007-01-27  Bruno Haible  <bruno@clisp.org>
54306
54307         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
54308         check_PROGRAMS into noinst_PROGRAMS.
54309         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
54310         check_PROGRAMS in this case.
54311         (func_import): Set for_test to false.
54312         (func_create_testdir): Set for_test to true.
54313
54314 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54315             Bruno Haible  <bruno@clisp.org>
54316
54317         * modules/strcasestr (Files): Remove lib/strcasestr.h.
54318         (Depends-on): Add string.
54319         (Includes): Use <string.h> instead of strcasestr.h.
54320         * modules/string (Makefile.am): Also substitute the value of
54321         REPLACE_STRCASESTR.
54322         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
54323         assume strcasestr is declared in <string.h> not <strings.h>. Also
54324         set REPLACE_STRCASESTR.
54325         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
54326         REPLACE_STRCASESTR.
54327         * lib/strcasestr.h: Remove file.
54328         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
54329         * lib/string_.h (strcasestr): New declaration.
54330
54331 2007-01-27  Bruno Haible  <bruno@clisp.org>
54332
54333         * lib/string_.h: Use 'extern'.
54334
54335 2007-01-27  Jim Meyering  <jim@meyering.net>
54336
54337         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
54338         of set-but-not-used local, "q".
54339
54340         * lib/mempcpy.c: Include <config.h> before <string.h>.
54341         This fixes a compilation error on HP-UX, due to the system's
54342         "restrict"-using mempcpy prototype.
54343
54344 2007-01-26  Bruno Haible  <bruno@clisp.org>
54345
54346         Small optimization.
54347         * lib/javacomp.c: Include c-strstr.h.
54348          (is_envjavac_gcj): Use c_strstr instead of strstr.
54349         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
54350
54351 2007-01-26  Bruno Haible  <bruno@clisp.org>
54352
54353         * MODULES.html.sh (Unicode string functions): Add the new modules.
54354
54355         * modules/uniconv/u32-strconv-to-locale: New file.
54356         * lib/uniconv/u32-strconv-to-locale.c: New file.
54357
54358         * modules/uniconv/u16-strconv-to-locale: New file.
54359         * lib/uniconv/u16-strconv-to-locale.c: New file.
54360
54361         * modules/uniconv/u8-strconv-to-locale: New file.
54362         * lib/uniconv/u8-strconv-to-locale.c: New file.
54363
54364         * modules/uniconv/u32-strconv-from-locale: New file.
54365         * lib/uniconv/u32-strconv-from-locale.c: New file.
54366
54367         * modules/uniconv/u16-strconv-from-locale: New file.
54368         * lib/uniconv/u16-strconv-from-locale.c: New file.
54369
54370         * modules/uniconv/u8-strconv-from-locale: New file.
54371         * lib/uniconv/u8-strconv-from-locale.c: New file.
54372
54373         * modules/uniconv/u32-strconv-to-enc: New file.
54374         * lib/uniconv/u32-strconv-to-enc.c: New file.
54375         * modules/uniconv/u32-strconv-to-enc-tests: New file.
54376         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
54377
54378         * modules/uniconv/u16-strconv-to-enc: New file.
54379         * lib/uniconv/u16-strconv-to-enc.c: New file.
54380         * lib/uniconv/u-strconv-to-enc.h: New file.
54381         * modules/uniconv/u16-strconv-to-enc-tests: New file.
54382         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
54383
54384         * modules/uniconv/u8-strconv-to-enc: New file.
54385         * lib/uniconv/u8-strconv-to-enc.c: New file.
54386         * modules/uniconv/u8-strconv-to-enc-tests: New file.
54387         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
54388
54389         * modules/uniconv/u32-strconv-from-enc: New file.
54390         * lib/uniconv/u32-strconv-from-enc.c: New file.
54391         * modules/uniconv/u32-strconv-from-enc-tests: New file.
54392         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
54393
54394         * modules/uniconv/u16-strconv-from-enc: New file.
54395         * lib/uniconv/u16-strconv-from-enc.c: New file.
54396         * modules/uniconv/u16-strconv-from-enc-tests: New file.
54397         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
54398
54399         * modules/uniconv/u8-strconv-from-enc: New file.
54400         * lib/uniconv/u8-strconv-from-enc.c: New file.
54401         * lib/uniconv/u-strconv-from-enc.h: New file.
54402         * modules/uniconv/u8-strconv-from-enc-tests: New file.
54403         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
54404
54405         * modules/uniconv/u32-conv-from-enc: New file.
54406         * lib/uniconv/u32-conv-from-enc.c: New file.
54407         * modules/uniconv/u32-conv-from-enc-tests: New file.
54408         * tests/uniconv/test-u32-conv-from-enc.c: New file.
54409
54410         * modules/uniconv/u16-conv-from-enc: New file.
54411         * lib/uniconv/u16-conv-from-enc.c: New file.
54412         * lib/uniconv/u-conv-from-enc.h: New file.
54413         * modules/uniconv/u16-conv-from-enc-tests: New file.
54414         * tests/uniconv/test-u16-conv-from-enc.c: New file.
54415
54416         * modules/uniconv/u8-conv-from-enc: New file.
54417         * lib/uniconv/u8-conv-from-enc.c: New file.
54418         * modules/uniconv/u8-conv-from-enc-tests: New file.
54419         * tests/uniconv/test-u8-conv-from-enc.c: New file.
54420
54421         * modules/uniconv/base: New file.
54422         * lib/uniconv.h: New file.
54423
54424 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54425
54426         * doc/gnulib-tool.texi (Initial import): Update to match current
54427         behavior with strdup module.
54428         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
54429         * lib/memmem.h: Remove; all uses removed.  This is now done
54430         by <string.h>.
54431         * lib/mempcpy.h: Likewise.
54432         * lib/memrchr.h: Likewise.
54433         * lib/stpcpy.h: Likewise.
54434         * lib/stpncpy.h: Likewise.
54435         * lib/strcase.h: Likewise.
54436         * lib/strchrnul.h: Likewise.
54437         * lib/strdup.h: Likewise.
54438         * lib/strndup.h: Likewise.
54439         * lib/strnlen.h: Likewise.
54440         * lib/strpbrk.h: Likewise.
54441         * lib/strsep.h: Likewise.
54442         * lib/strstr.h: Likewise.
54443         * lib/strtok_r.h: Likewise.
54444         * lib/string_.h: New file.
54445         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
54446         Rely on <string.h> instead.
54447         * lib/canon-host.c: Likewise.
54448         * lib/chdir-long.c: Likewise.
54449         * lib/concatpath.c: Likewise.
54450         * lib/exclude.c: Likewise.
54451         * lib/fchdir.c: Likewise.
54452         * lib/getaddrinfo.c: Likewise.
54453         * lib/getcwd.c: Likewise.
54454         * lib/getsubopt.c: Likewise.
54455         * lib/glob.c: Likewise.
54456         * lib/hard-locale.c: Likewise.
54457         * lib/iconvme.c: Likewise.
54458         * lib/javacomp.c: Likewise.
54459         * lib/mempcpy.c: Likewise.
54460         * lib/memrchr.c: Likewise.
54461         * lib/regex_internal.h: Likewise.
54462         * lib/stpncpy.c: Likewise.
54463         * lib/strcasecmp.c: Likewise.
54464         * lib/strchrnul.c: Likewise.
54465         * lib/strdup.c: Likewise.
54466         * lib/striconv.c: Likewise.
54467         * lib/striconveh.c: Likewise.
54468         * lib/striconveha.c: Likewise.
54469         * lib/strncasecmp.c: Likewise.
54470         * lib/strndup.c: Likewise.
54471         * lib/strnlen.c: Likewise.
54472         * lib/strsep.c: Likewise.
54473         * lib/strstr.c: Likewise.
54474         * lib/strtok_r.c: Likewise.
54475         * lib/userspec.c: Likewise.
54476         * lib/w32spawn.h: Likewise.
54477         * lib/xstrndup.c: Likewise.
54478         * lib/mountlist.c (strstr): Remove decl.
54479         * m4/string_h.m4: New file.
54480         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
54481         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
54482         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
54483         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
54484         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
54485         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
54486         Set REPLACE_STRCASECMP if necessary.
54487         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
54488         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
54489         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
54490         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
54491         HAVE_DECL_STRDUP if necessary.
54492         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
54493         since gl_FUNC_STRNDUP does that now.
54494         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
54495         Check for decl here...
54496         (gl_PREREQ_STRNLEN): ... not here.
54497         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
54498         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
54499         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
54500         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
54501         necessary.
54502         * modules/string: New file.
54503         * modules/memmem (Files): Remove special-purpose include file.
54504         (Depends-on): Add string.
54505         (Include): Include <string.h>, not the removed file.
54506         * modules/mempcpy: Likewise.
54507         * modules/memrchr: Likewise.
54508         * modules/stpcpy: Likewise.
54509         * modules/stpncpy: Likewise.
54510         * modules/strcase: Likewise.
54511         * modules/strchrnul: Likewise.
54512         * modules/strdup: Likewise.
54513         * modules/strndup: Likewise.
54514         * modules/strnlen: Likewise.
54515         * modules/strpbrk: Likewise.
54516         * modules/strsep: Likewise.
54517         * modules/strstr: Likewise.
54518         * modules/strtok_r: Likewise.
54519         * tests/test-dirname.c: Don't include "strdup.h", since
54520         <string.h> now suffices.
54521         * tests/test-memmem.c: Don't include "memmem.h", since
54522         <string.h> now suffices.
54523
54524 2007-01-25  Bruno Haible  <bruno@clisp.org>
54525
54526         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
54527         *resultp is 0.
54528
54529         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
54530         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
54531         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
54532         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
54533
54534         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
54535         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
54536         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
54537         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
54538         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
54539         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
54540
54541 2007-01-24  Bruno Haible  <bruno@clisp.org>
54542
54543         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
54544         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
54545         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
54546         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
54547         gl_FUNC_FTS_CORE.
54548         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
54549         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
54550         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54551         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
54552         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
54553         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
54554         gl_FUNC_FCHOWNAT.
54555         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
54556         gl_FUNC_STRFTIME.
54557         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
54558         Reported by Ralf Wildenhues.
54559
54560 2007-01-24  Bruno Haible  <bruno@clisp.org>
54561
54562         Drop AC_REQUIRE calls that are redundant with the module dependencies.
54563         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
54564         gl_GETADDRINFO.
54565         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
54566         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
54567         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
54568
54569 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
54570
54571         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
54572         Don't use 'exit'; just return from 'main'.
54573         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
54574
54575         * lib/fnmatch_.h: Readjust white space and comments to match
54576         glibc, to avoid spurious diffs.
54577
54578 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54579
54580         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
54581         2004-12-01 change by Jakub Jelinek, since this code won't compile
54582         if !LIBC.  Problem reported by Bob Proulx.
54583
54584 2007-01-23  Bruno Haible  <bruno@clisp.org>
54585
54586         * lib/striconveh.c: Include c-strcaseeq.h.
54587         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
54588         * modules/striconveh (Depends-on): Add c-strcaseeq.
54589
54590 2007-01-23  Bruno Haible  <bruno@clisp.org>
54591
54592         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
54593
54594         * modules/c-strcaseeq: New file.
54595         * lib/c-strcaseeq.h: New file.
54596
54597         * modules/streq: New file.
54598         * lib/streq.h: New file.
54599
54600 2007-01-23  Bruno Haible  <bruno@clisp.org>
54601
54602         * modules/striconveha-tests: New file.
54603         * tests/test-striconveha.c: New file.
54604
54605         * lib/striconveha.h: Include <stdbool.h>.
54606         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
54607         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
54608         (mem_iconveha_notranslit): Renamed from mem_iconveha.
54609         (mem_iconveha): New function.
54610         (str_iconveha_notranslit): Renamed from str_iconveha.
54611         (str_iconveha): New function.
54612         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
54613         c-strcase.
54614
54615 2007-01-23  Bruno Haible  <bruno@clisp.org>
54616
54617         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
54618         encodings without forgiving before trying any encoding with handler.
54619         (str_iconveha): Try all encodings without forgiving before trying any
54620         encoding with handler.
54621
54622 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54623
54624         Import the following changes from libc.
54625
54626         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54627
54628         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
54629
54630         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54631
54632         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
54633         normal_bracket label.
54634
54635         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
54636
54637         [BZ #361]
54638         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
54639         to normal_bracket after fetching the next character.
54640
54641 2007-01-22  Bruno Haible  <bruno@clisp.org>
54642
54643         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
54644         argument.
54645         * lib/striconveh.c (iconv_carefully_1): New function.
54646         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
54647         argument.
54648         (str_cd_iconveh): Update.
54649         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
54650         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
54651         * tests/test-striconveh.c (MAGIC): New macro.
54652         (new_offsets): New function.
54653         (main): Test call with and without offsets.
54654
54655 2007-01-22  Bruno Haible  <bruno@clisp.org>
54656
54657         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
54658         * modules/sys_select (Makefile.am): Likewise.
54659         * modules/sys_socket (Makefile.am): Likewise.
54660         * modules/sys_time (Makefile.am): Likewise.
54661
54662 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54663
54664         * modules/gettimeofday (License): Change from GPL to LGPL, since
54665         gettimeofday is a library function.
54666
54667 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54668
54669         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
54670
54671 2007-01-21  Bruno Haible  <bruno@clisp.org>
54672
54673         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
54674
54675 2007-01-21  Bruno Haible  <bruno@clisp.org>
54676
54677         * modules/striconveha: New file.
54678         * lib/striconveha.h: New file.
54679         * lib/striconveha.c: New file.
54680         * MODULES.html.sh (Internationalization functions): Add striconveha.
54681         * lib/striconv.c (str_iconv): Optimize the case of an empty input
54682         string.
54683         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
54684
54685 2007-01-21  Bruno Haible  <bruno@clisp.org>
54686
54687         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
54688         * lib/striconveh.c (str_iconveh): Likewise.
54689
54690 2007-01-21  Bruno Haible  <bruno@clisp.org>
54691
54692         * lib/striconveh.h (mem_iconveh): New declaration.
54693         * lib/striconveh.c (mem_iconveh): New function.
54694         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
54695
54696 2007-01-21  Bruno Haible  <bruno@clisp.org>
54697
54698         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
54699
54700         * lib/striconveh.h (mem_cd_iconveh): Change specification.
54701         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
54702         original result buffer.
54703         (str_cd_iconveh): Update.
54704         * tests/test-striconveh.c (main): Update.
54705
54706         * lib/striconv.h (mem_cd_iconv): Change specification.
54707         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
54708         result buffer.
54709         (str_cd_iconv): Update.
54710         * tests/test-striconv.c (main): Update.
54711
54712 2007-01-21  Bruno Haible  <bruno@clisp.org>
54713
54714         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
54715
54716 2007-01-20  Jim Meyering  <jim@meyering.net>
54717
54718         * lib/userspec.c (parse_with_separator): If a user or group string
54719         starts with "+", skip the corresponding name-to-ID look-up, since
54720         such a look-up must fail: user and group names may not include "+".
54721
54722 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54723
54724         * lib/poll.c: Include sys/time.h and time.h unconditionally,
54725         since we now assume the sys_time module.
54726         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
54727         check for sys/time.h; no longer needed.
54728         * modules/poll (Depends-on): Depend on sys_time.
54729
54730 2007-01-18  Bruno Haible  <bruno@clisp.org>
54731
54732         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
54733         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54734
54735         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
54736         gettimeofday.
54737
54738         * tests/test-gettimeofday.c: Include <time.h>.
54739         (dummy): Remove variable.
54740
54741         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
54742         gl_HEADER_SYS_TIME_H.
54743         (gl_HEADER_SYS_TIME_H): New macro.
54744
54745         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
54746         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54747         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54748         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
54749         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54750         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
54751         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
54752         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54753         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
54754         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
54755         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54756
54757         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
54758         last change; it caused a compilation error when cross-compiling to
54759         Cygwin.
54760
54761 2007-01-18  Jim Meyering  <jim@meyering.net>
54762
54763         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
54764         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
54765         than the race-prone "test -d sys || mkdir sys".
54766         (configure.ac): Use AC_PROG_MKDIR_P.
54767         * modules/sys_select: Likewise.
54768         * modules/sys_socket: Likewise.
54769         * modules/sys_time: Likewise.
54770
54771 2007-01-18  Eric Blake  <ebb9@byu.net>
54772
54773         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
54774         replace gettimeofday.
54775         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
54776         name, to avoid infinite recursion.
54777
54778 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
54779
54780         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
54781         module sys_time.
54782         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
54783         assume timespec.h defines struct timeval.
54784         * lib/settime.c: Likewise.
54785         * lib/utimens.c: Likewise.
54786         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
54787         since we now assume the gettimeofday module.
54788         * lib/tempname.c (__gen_tempname): Likewise.
54789         * lib/gettimeofday.h: Remove.
54790         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
54791         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
54792         Include <time.h>, for 'time()'.
54793         (localtime_buffer_addr): Also use this workaround if
54794         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
54795         to simplify the uses.  All uses changed.
54796         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
54797         that #undef is inside {}, and 'const' follows type name consistently.
54798         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
54799         (gettimeofday): Do not use the maximum possible value for
54800         tv->tv_usec, since that might break usages other than ls.c.
54801         Instead, we'll leave ls.c alone.  This undoes today's patch
54802         by Bruno.  Add a compile-time warning for 1s-clock resolution;
54803         we've never observed the problem but might as well keep the
54804         canary.
54805         * lib/nanosleep.c: Include timespec.h first, for interface check.
54806         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
54807         now assume the sys_time module.
54808         * lib/tempname.c: Likewise.
54809         * lib/timespec.h: Likewise.
54810         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
54811         needed.
54812         * lib/strftime.c: Likewise.
54813         * lib/timespec.h: Likewise.
54814         * lib/posixtm.c: Include posixtm.h first, for interface check.
54815         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
54816         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
54817         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
54818         * lib/sys_time_.h: New file.
54819         * lib/timespec.h (struct timespec): Use long int, not long.
54820         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54821         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
54822         Remove obsolescent call to AC_HEADER_TIME.
54823         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54825         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54826         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
54827         Likewise.
54828         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
54829         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
54830         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
54831         into the sys_time module.  Check for gettimeofday just once.
54832         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
54833         for gettimeofday signature to just check the signature.  Merely
54834         compile it, since linking doesn't test signature.  Improve test for
54835         whether gettimeofday.o is actually needed.
54836         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
54837         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
54838         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
54839         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54840         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
54841         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
54842         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
54843         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
54844         than worrying about sys/time.h.
54845         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54846         Don't bother worrying about TIME_WITH_SYS_TIME.
54847         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
54848         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
54849         * m4/sys_time_h.m4: New file.
54850         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
54851         Don't include sys/time.h.  Return from main rather than exiting.
54852         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
54853         all uses changed.
54854         * modules/gethrxtime (Depends-on): Add sys_time.
54855         * modules/gettime (Depends-on): Likewise.
54856         * modules/gettimeofday (Depends-on): Likewise.
54857         * modules/nanosleep (Depends-on): Likewise.
54858         * modules/settime (Depends-on): Likewise.
54859         * modules/tempname (Depends-on): Likewise.
54860         * modules/utimens (Depends-on): Likewise.
54861         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
54862         (Include): Change back to <sys/time.h>.
54863         (Maintainer): Add self.
54864         * modules/sys_time: New file.
54865         * modules/tempname (Depends-on): Add gettimeofday.
54866         * tests/test-gettimeofday.c: Include <sys/time.h>
54867         rather than gettimeofday.h.
54868
54869 2007-01-17  Bruno Haible  <bruno@clisp.org>
54870
54871         * gnulib-tool (func_get_license): Revert last patch. Instead, let
54872         the license default to GPL.
54873         (func_create_testdir): Don't complain if a module is LGPL and its
54874         tests module depends on GPLed modules.
54875
54876 2007-01-17  Bruno Haible  <bruno@clisp.org>
54877
54878         * lib/gettimeofday.c (gettimeofday): Add code for the case
54879         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
54880         maximum possible value for tv->tv_usec, rather than the minimum one.
54881
54882 2005-10-08  Martin Lambers  <marlam@marlam.de>
54883 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54884 2007-01-16  Bruno Haible  <bruno@clisp.org>
54885
54886         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
54887         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
54888         gl_FUNC_GETTIMEOFDAY.
54889         (Include): Add gettimeofday.h.
54890         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
54891         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
54892         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
54893         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
54894         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
54895         * lib/gettimeofday.h: New file.
54896         * lib/gettimeofday.c: Include <sys/timeb.h>.
54897         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
54898         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54899         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
54900         fall back on time().
54901
54902         * tests/test-gettimeofday.c: New file.
54903         * modules/gettimeofday-tests: New file.
54904
54905 2007-01-16  Eric Blake  <ebb9@byu.net>
54906
54907         * modules/fnmatch (Depends-on): Depend on wchar.
54908         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
54909         * m4/fnmatch.m4: Likewise.
54910         * modules/mbchar (Makefile.am): Assume <wchar.h>.
54911         * m4/mbchar.m4: Likewise.
54912         * modules/mbswidth (Depends-on): Depend on wchar.
54913         * lib/mbswidth.c: Assume <wchar.h>.
54914         * m4/mbswidth.m4: Likewise.
54915         * modules/quotearg (Depends-on): Depend on wchar.
54916         * lib/quotearg.c: Assume <wchar.h>.
54917         * m4/quotearg.m4: Likewise.
54918         * modules/regex (Depends-on): Depend on wchar.
54919         * lib/regex_internal.h: Assume <wchar.h>.
54920         * m4/regex.m4: Likewise.
54921         * modules/stdint (Depends-on): Depend on wchar.
54922         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
54923         * m4/stdint.m4: Likewise.
54924         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
54925         * modules/strftime (Depends-on): Depend on wchar.
54926         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
54927         * modules/strtol (Depends-on): Depend on wchar.
54928         * lib/strtol.c: Assume <wchar.h>.
54929         * modules/wcwidth (Depends-on): Depend on wchar.
54930         * lib/wcwidth.h: Assume <wchar.h>.
54931         * m4/wcwidth.m4: Likewise.
54932
54933 2007-01-16  Bruno Haible  <bruno@clisp.org>
54934
54935         * modules/csharpexec-script: New, created from...
54936         * modules/csharpexec: ... this.
54937
54938 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54939
54940         * modules/javaexec-script: New, created from...
54941         * modules/javaexec: ... this.
54942
54943 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54944
54945         * modules/poll (Dependencies): Add sys_select.
54946
54947 2007-01-15  Jim Meyering  <jim@meyering.net>
54948
54949         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
54950         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
54951         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
54952         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
54953
54954 2007-01-15  Bruno Haible  <bruno@clisp.org>
54955
54956         * modules/striconveh: New file.
54957         * lib/striconveh.h: New file.
54958         * lib/striconveh.c: New file.
54959         * MODULES.html.sh (Internationalization functions): Add striconveh.
54960
54961         * modules/striconveh-tests: New file.
54962         * tests/test-striconveh.c: New file.
54963
54964 2007-01-15  Bruno Haible  <bruno@clisp.org>
54965
54966         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
54967         not from GNU libiconv or GNU libc.
54968
54969 2007-01-15  Bruno Haible  <bruno@clisp.org>
54970
54971         * doc/gnulib-intro.texi (Copyright): Explain the different license
54972         terms for module descriptions, autoconf macros, tests, documentation.
54973
54974 2007-01-14  Bruno Haible  <bruno@clisp.org>
54975
54976         * modules/striconv-tests: New file.
54977         * tests/test-striconv.c: New file.
54978
54979 2007-01-14  Bruno Haible  <bruno@clisp.org>
54980
54981         * modules/iconv-tests: New file.
54982         * tests/test-iconv.c: New file.
54983
54984 2007-01-14  Bruno Haible  <bruno@clisp.org>
54985
54986         * gnulib-tool (func_get_license): For test modules, use the license of
54987         the main module.
54988
54989 2007-01-14  Bruno Haible  <bruno@clisp.org>
54990
54991         * modules/iconv (Include): Clarify that <iconv.h> can only be included
54992         if iconv is found to exist.
54993
54994 2007-01-14  Bruno Haible  <bruno@clisp.org>
54995
54996         * modules/c-ctype-tests: New file.
54997         * tests/test-c-ctype.c: New file.
54998
54999 2007-01-14  Bruno Haible  <bruno@clisp.org>
55000
55001         * modules/binary-io-tests: New file.
55002         * tests/test-binary-io.sh: New file.
55003         * tests/test-binary-io.c: New file.
55004
55005 2007-01-14  Bruno Haible  <bruno@clisp.org>
55006
55007         * modules/array-oset-tests: New file.
55008         * tests/test-array_oset.c: New file.
55009
55010 2007-01-14  Bruno Haible  <bruno@clisp.org>
55011
55012         * modules/array-list-tests: New file.
55013         * tests/test-array_list.c: New file.
55014
55015 2007-01-14  Bruno Haible  <bruno@clisp.org>
55016
55017         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
55018         and make.
55019         Reported by Simon Josefsson in
55020         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
55021
55022 2007-01-14  Bruno Haible  <bruno@clisp.org>
55023
55024         * modules/allocsa-tests: New file.
55025         * tests/test-allocsa.c: New file.
55026
55027 2007-01-14  Bruno Haible  <bruno@clisp.org>
55028
55029         * modules/fchdir (Depends-on): Add absolute-header.
55030         * modules/unistd (Depends-on): Likewise.
55031
55032 2006-12-30  Bruno Haible  <bruno@clisp.org>
55033
55034         * modules/fchdir: New file.
55035         * modules/unistd (Files): Add lib/unistd_.h.
55036         (Makefile.am): Generate unistd.h from unistd_.h.
55037         * lib/fchdir.c: New file.
55038         * lib/dirent_.h: New file.
55039         * lib/unistd_.h: New file.
55040         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
55041         * m4/fchdir.m4: New file.
55042         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
55043         (gl_HEADER_UNISTD): Invoke it.
55044         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
55045         function.
55046         * lib/backupfile.c (opendir, closedir): Undefine.
55047         * lib/chown.c (open, close): Undefine.
55048         * lib/clean-temp.c (open, close): Undefine.
55049         * lib/copy-file.c (open, close): Undefine.
55050         * lib/execute.c (open, close): Undefine.
55051         * lib/fsusage.c (open, close): Undefine.
55052         * lib/gc-gnulib.c (open, close): Undefine.
55053         * lib/getcwd.c (opendir, closedir): Undefine.
55054         * lib/glob.c (opendir, closedir): Undefine.
55055         * lib/javacomp.c (open, close): Undefine.
55056         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
55057         * lib/openat-proc.c (open, close): Undefine.
55058         * lib/pagealign_alloc.c (open, close): Undefine.
55059         * lib/pipe.c (open, close): Undefine.
55060         * lib/progreloc.c (open, close): Undefine.
55061         * lib/savedir.c (opendir, closedir): Undefine.
55062         * lib/utime.c (open, close): Undefine.
55063         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
55064
55065 2007-01-10  Bruno Haible  <bruno@clisp.org>
55066
55067         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
55068
55069 2007-01-12  Eric Blake  <ebb9@byu.net>
55070
55071         Provide a robust <wchar.h>.  Further simplifications are now
55072         possible in other modules, but not included here.
55073         * modules/wchar: New module.
55074         * m4/wchar.m4: New file.
55075         * lib/wchar_.h: Likewise.
55076         * modules/mbchar (Depends-on): Depend on wchar, as the first use
55077         of the new module.
55078         * MODULES.html.sh (Extended multibyte and wide character utilities):
55079         New section.
55080
55081 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
55082
55083         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
55084         to a reasonable default for memory allocation.
55085         (xreadlink): Don't allocate a huge buffer, to work around a buggy
55086         file system that reports garbage st_size values for symlinks.
55087         Problem reported by Liyang Hu.
55088
55089 2007-01-11  Simon Josefsson  <simon@josefsson.org>
55090
55091         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
55092         Emacs .#* auto-save files).
55093
55094 2007-01-11  Bruno Haible  <bruno@clisp.org>
55095
55096         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
55097         directory.
55098
55099 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55100
55101         Use @...@ consistently in lib/wctype_.h.
55102         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
55103         on it being set to 1 or 0.
55104         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
55105         go back to AC_SUBSTing it.
55106         * modules/wctype (Makefile.am): Undo previous change.
55107
55108 2007-01-10  Eric Blake  <ebb9@byu.net>
55109
55110         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
55111         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
55112         * modules/wctype (Makefile.am): Likewise.
55113         Reported by Chris McGuire.
55114
55115 2007-01-10  Jim Meyering  <jim@meyering.net>
55116
55117         fts.c: a small readability/maintainability improvement
55118         * lib/fts.c (fts_read): Make this code slightly more readable and
55119         maintainable by hoisting the "sp->fts_cur = p" assignments to
55120         immediately follow the statements that set P.  Derived from
55121         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
55122
55123 2007-01-10  Eric Blake  <ebb9@byu.net>
55124
55125         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
55126         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
55127         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55128         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
55129         Reported by Chris McGuire.
55130
55131 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55132
55133         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
55134         in sed script.
55135
55136 2007-01-09  Bruno Haible  <bruno@clisp.org>
55137
55138         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
55139         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
55140         variables.
55141         (func_module): Use them.
55142
55143 2007-01-09  Bruno Haible  <bruno@clisp.org>
55144
55145         * modules/unistr/base: New file.
55146         * lib/unistr.h: New file.
55147
55148         * modules/unistr/u8-to-u16: New file.
55149         * lib/unistr/u8-to-u16.c: New file.
55150
55151         * modules/unistr/u8-to-u32: New file.
55152         * lib/unistr/u8-to-u32.c: New file.
55153
55154         * modules/unistr/u16-to-u8: New file.
55155         * lib/unistr/u16-to-u8.c: New file.
55156
55157         * modules/unistr/u16-to-u32: New file.
55158         * lib/unistr/u16-to-u32.c: New file.
55159
55160         * modules/unistr/u32-to-u8: New file.
55161         * lib/unistr/u32-to-u8.c: New file.
55162
55163         * modules/unistr/u32-to-u16: New file.
55164         * lib/unistr/u32-to-u16.c: New file.
55165
55166         * modules/unistr/u8-check: New file.
55167         * modules/unistr/u16-check: New file.
55168         * modules/unistr/u32-check: New file.
55169         * lib/unistr/u8-check.c: New file.
55170         * lib/unistr/u16-check.c: New file.
55171         * lib/unistr/u32-check.c: New file.
55172
55173         * modules/unistr/u8-chr: New file.
55174         * modules/unistr/u16-chr: New file.
55175         * modules/unistr/u32-chr: New file.
55176         * lib/unistr/u8-chr.c: New file.
55177         * lib/unistr/u16-chr.c: New file.
55178         * lib/unistr/u32-chr.c: New file.
55179
55180         * modules/unistr/u8-cmp: New file.
55181         * modules/unistr/u16-cmp: New file.
55182         * modules/unistr/u32-cmp: New file.
55183         * lib/unistr/u8-cmp.c: New file.
55184         * lib/unistr/u16-cmp.c: New file.
55185         * lib/unistr/u32-cmp.c: New file.
55186
55187         * modules/unistr/u8-cpy: New file.
55188         * modules/unistr/u16-cpy: New file.
55189         * modules/unistr/u32-cpy: New file.
55190         * lib/unistr/u8-cpy.c: New file.
55191         * lib/unistr/u16-cpy.c: New file.
55192         * lib/unistr/u32-cpy.c: New file.
55193         * lib/unistr/u-cpy.h: New file.
55194
55195         * modules/unistr/u8-cpy-alloc: New file.
55196         * modules/unistr/u16-cpy-alloc: New file.
55197         * modules/unistr/u32-cpy-alloc: New file.
55198         * lib/unistr/u8-cpy-alloc.c: New file.
55199         * lib/unistr/u16-cpy-alloc.c: New file.
55200         * lib/unistr/u32-cpy-alloc.c: New file.
55201         * lib/unistr/u-cpy-alloc.h: New file.
55202
55203         * modules/unistr/u8-endswith: New file.
55204         * modules/unistr/u16-endswith: New file.
55205         * modules/unistr/u32-endswith: New file.
55206         * lib/unistr/u8-endswith.c: New file.
55207         * lib/unistr/u16-endswith.c: New file.
55208         * lib/unistr/u32-endswith.c: New file.
55209         * lib/unistr/u-endswith.h: New file.
55210
55211         * modules/unistr/u8-mblen: New file.
55212         * modules/unistr/u16-mblen: New file.
55213         * modules/unistr/u32-mblen: New file.
55214         * lib/unistr/u8-mblen.c: New file.
55215         * lib/unistr/u16-mblen.c: New file.
55216         * lib/unistr/u32-mblen.c: New file.
55217
55218         * modules/unistr/u8-mbtouc: New file.
55219         * modules/unistr/u16-mbtouc: New file.
55220         * modules/unistr/u32-mbtouc: New file.
55221         * lib/unistr/u8-mbtouc.c: New file.
55222         * lib/unistr/u16-mbtouc.c: New file.
55223         * lib/unistr/u32-mbtouc.c: New file.
55224
55225         * modules/unistr/u8-mbtouc-safe: New file.
55226         * modules/unistr/u16-mbtouc-safe: New file.
55227         * modules/unistr/u32-mbtouc-safe: New file.
55228         * lib/unistr/u8-mbtouc-safe.c: New file.
55229         * lib/unistr/u16-mbtouc-safe.c: New file.
55230         * lib/unistr/u32-mbtouc-safe.c: New file.
55231
55232         * modules/unistr/u8-move: New file.
55233         * modules/unistr/u16-move: New file.
55234         * modules/unistr/u32-move: New file.
55235         * lib/unistr/u8-move.c: New file.
55236         * lib/unistr/u16-move.c: New file.
55237         * lib/unistr/u32-move.c: New file.
55238         * lib/unistr/u-move.h: New file.
55239
55240         * modules/unistr/u8-next: New file.
55241         * modules/unistr/u16-next: New file.
55242         * modules/unistr/u32-next: New file.
55243         * lib/unistr/u8-next.c: New file.
55244         * lib/unistr/u16-next.c: New file.
55245         * lib/unistr/u32-next.c: New file.
55246
55247         * modules/unistr/u8-prev: New file.
55248         * modules/unistr/u16-prev: New file.
55249         * modules/unistr/u32-prev: New file.
55250         * lib/unistr/u8-prev.c: New file.
55251         * lib/unistr/u16-prev.c: New file.
55252         * lib/unistr/u32-prev.c: New file.
55253
55254         * modules/unistr/u8-set: New file.
55255         * modules/unistr/u16-set: New file.
55256         * modules/unistr/u32-set: New file.
55257         * lib/unistr/u8-set.c: New file.
55258         * lib/unistr/u16-set.c: New file.
55259         * lib/unistr/u32-set.c: New file.
55260         * lib/unistr/u-set.h: New file.
55261
55262         * modules/unistr/u8-startswith: New file.
55263         * modules/unistr/u16-startswith: New file.
55264         * modules/unistr/u32-startswith: New file.
55265         * lib/unistr/u8-startswith.c: New file.
55266         * lib/unistr/u16-startswith.c: New file.
55267         * lib/unistr/u32-startswith.c: New file.
55268         * lib/unistr/u-startswith.h: New file.
55269
55270         * modules/unistr/u8-stpcpy: New file.
55271         * modules/unistr/u16-stpcpy: New file.
55272         * modules/unistr/u32-stpcpy: New file.
55273         * lib/unistr/u8-stpcpy.c: New file.
55274         * lib/unistr/u16-stpcpy.c: New file.
55275         * lib/unistr/u32-stpcpy.c: New file.
55276         * lib/unistr/u-stpcpy.h: New file.
55277
55278         * modules/unistr/u8-stpncpy: New file.
55279         * modules/unistr/u16-stpncpy: New file.
55280         * modules/unistr/u32-stpncpy: New file.
55281         * lib/unistr/u8-stpncpy.c: New file.
55282         * lib/unistr/u16-stpncpy.c: New file.
55283         * lib/unistr/u32-stpncpy.c: New file.
55284         * lib/unistr/u-stpncpy.h: New file.
55285
55286         * modules/unistr/u8-strcat: New file.
55287         * modules/unistr/u16-strcat: New file.
55288         * modules/unistr/u32-strcat: New file.
55289         * lib/unistr/u8-strcat.c: New file.
55290         * lib/unistr/u16-strcat.c: New file.
55291         * lib/unistr/u32-strcat.c: New file.
55292         * lib/unistr/u-strcat.h: New file.
55293
55294         * modules/unistr/u8-strchr: New file.
55295         * modules/unistr/u16-strchr: New file.
55296         * modules/unistr/u32-strchr: New file.
55297         * lib/unistr/u8-strchr.c: New file.
55298         * lib/unistr/u16-strchr.c: New file.
55299         * lib/unistr/u32-strchr.c: New file.
55300
55301         * modules/unistr/u8-strcmp: New file.
55302         * modules/unistr/u16-strcmp: New file.
55303         * modules/unistr/u32-strcmp: New file.
55304         * lib/unistr/u8-strcmp.c: New file.
55305         * lib/unistr/u16-strcmp.c: New file.
55306         * lib/unistr/u32-strcmp.c: New file.
55307
55308         * modules/unistr/u8-strcpy: New file.
55309         * modules/unistr/u16-strcpy: New file.
55310         * modules/unistr/u32-strcpy: New file.
55311         * lib/unistr/u8-strcpy.c: New file.
55312         * lib/unistr/u16-strcpy.c: New file.
55313         * lib/unistr/u32-strcpy.c: New file.
55314         * lib/unistr/u-strcpy.h: New file.
55315
55316         * modules/unistr/u8-strcspn: New file.
55317         * modules/unistr/u16-strcspn: New file.
55318         * modules/unistr/u32-strcspn: New file.
55319         * lib/unistr/u8-strcspn.c: New file.
55320         * lib/unistr/u16-strcspn.c: New file.
55321         * lib/unistr/u32-strcspn.c: New file.
55322         * lib/unistr/u-strcspn.h: New file.
55323
55324         * modules/unistr/u8-strdup: New file.
55325         * modules/unistr/u16-strdup: New file.
55326         * modules/unistr/u32-strdup: New file.
55327         * lib/unistr/u8-strdup.c: New file.
55328         * lib/unistr/u16-strdup.c: New file.
55329         * lib/unistr/u32-strdup.c: New file.
55330         * lib/unistr/u-strdup.h: New file.
55331
55332         * modules/unistr/u8-strlen: New file.
55333         * modules/unistr/u16-strlen: New file.
55334         * modules/unistr/u32-strlen: New file.
55335         * lib/unistr/u8-strlen.c: New file.
55336         * lib/unistr/u16-strlen.c: New file.
55337         * lib/unistr/u32-strlen.c: New file.
55338         * lib/unistr/u-strlen.h: New file.
55339
55340         * modules/unistr/u8-strmblen: New file.
55341         * modules/unistr/u16-strmblen: New file.
55342         * modules/unistr/u32-strmblen: New file.
55343         * lib/unistr/u8-strmblen.c: New file.
55344         * lib/unistr/u16-strmblen.c: New file.
55345         * lib/unistr/u32-strmblen.c: New file.
55346
55347         * modules/unistr/u8-strmbtouc: New file.
55348         * modules/unistr/u16-strmbtouc: New file.
55349         * modules/unistr/u32-strmbtouc: New file.
55350         * lib/unistr/u8-strmbtouc.c: New file.
55351         * lib/unistr/u16-strmbtouc.c: New file.
55352         * lib/unistr/u32-strmbtouc.c: New file.
55353
55354         * modules/unistr/u8-strncat: New file.
55355         * modules/unistr/u16-strncat: New file.
55356         * modules/unistr/u32-strncat: New file.
55357         * lib/unistr/u8-strncat.c: New file.
55358         * lib/unistr/u16-strncat.c: New file.
55359         * lib/unistr/u32-strncat.c: New file.
55360         * lib/unistr/u-strncat.h: New file.
55361
55362         * modules/unistr/u8-strncmp: New file.
55363         * modules/unistr/u16-strncmp: New file.
55364         * modules/unistr/u32-strncmp: New file.
55365         * lib/unistr/u8-strncmp.c: New file.
55366         * lib/unistr/u16-strncmp.c: New file.
55367         * lib/unistr/u32-strncmp.c: New file.
55368
55369         * modules/unistr/u8-strncpy: New file.
55370         * modules/unistr/u16-strncpy: New file.
55371         * modules/unistr/u32-strncpy: New file.
55372         * lib/unistr/u8-strncpy.c: New file.
55373         * lib/unistr/u16-strncpy.c: New file.
55374         * lib/unistr/u32-strncpy.c: New file.
55375         * lib/unistr/u-strncpy.h: New file.
55376
55377         * modules/unistr/u8-strnlen: New file.
55378         * modules/unistr/u16-strnlen: New file.
55379         * modules/unistr/u32-strnlen: New file.
55380         * lib/unistr/u8-strnlen.c: New file.
55381         * lib/unistr/u16-strnlen.c: New file.
55382         * lib/unistr/u32-strnlen.c: New file.
55383         * lib/unistr/u-strnlen.h: New file.
55384
55385         * modules/unistr/u8-strpbrk: New file.
55386         * modules/unistr/u16-strpbrk: New file.
55387         * modules/unistr/u32-strpbrk: New file.
55388         * lib/unistr/u8-strpbrk.c: New file.
55389         * lib/unistr/u16-strpbrk.c: New file.
55390         * lib/unistr/u32-strpbrk.c: New file.
55391         * lib/unistr/u-strpbrk.h: New file.
55392
55393         * modules/unistr/u8-strrchr: New file.
55394         * modules/unistr/u16-strrchr: New file.
55395         * modules/unistr/u32-strrchr: New file.
55396         * lib/unistr/u8-strrchr.c: New file.
55397         * lib/unistr/u16-strrchr.c: New file.
55398         * lib/unistr/u32-strrchr.c: New file.
55399
55400         * modules/unistr/u8-strspn: New file.
55401         * modules/unistr/u16-strspn: New file.
55402         * modules/unistr/u32-strspn: New file.
55403         * lib/unistr/u8-strspn.c: New file.
55404         * lib/unistr/u16-strspn.c: New file.
55405         * lib/unistr/u32-strspn.c: New file.
55406         * lib/unistr/u-strspn.h: New file.
55407
55408         * modules/unistr/u8-strstr: New file.
55409         * modules/unistr/u16-strstr: New file.
55410         * modules/unistr/u32-strstr: New file.
55411         * lib/unistr/u8-strstr.c: New file.
55412         * lib/unistr/u16-strstr.c: New file.
55413         * lib/unistr/u32-strstr.c: New file.
55414         * lib/unistr/u-strstr.h: New file.
55415
55416         * modules/unistr/u8-strtok: New file.
55417         * modules/unistr/u16-strtok: New file.
55418         * modules/unistr/u32-strtok: New file.
55419         * lib/unistr/u8-strtok.c: New file.
55420         * lib/unistr/u16-strtok.c: New file.
55421         * lib/unistr/u32-strtok.c: New file.
55422         * lib/unistr/u-strtok.h: New file.
55423
55424         * modules/unistr/u8-uctomb: New file.
55425         * modules/unistr/u16-uctomb: New file.
55426         * modules/unistr/u32-uctomb: New file.
55427         * lib/unistr/u8-uctomb.c: New file.
55428         * lib/unistr/u16-uctomb.c: New file.
55429         * lib/unistr/u32-uctomb.c: New file.
55430
55431         * MODULES.html.sh (Unicode string functions): Add the new modules.
55432
55433 2007-01-08  Bruno Haible  <bruno@clisp.org>
55434
55435         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
55436         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
55437         subdirectories.
55438
55439 2007-01-08  Karl Berry  <karl@gnu.org>
55440
55441         * doc/error.texi: mention that main() fns must set program_name
55442         when progname is used.
55443
55444 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
55445
55446         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
55447         WCTYPE_H is empty, for the benefit of builds from non-distclean
55448         directories.  Problem reported by Eric Blake in
55449         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
55450
55451 2007-01-08  Bruno Haible  <bruno@clisp.org>
55452
55453         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
55454         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
55455         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
55456         PROVIDE_CANONICALIZE_FILENAME_MODE.
55457         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
55458
55459 2007-01-08  Bruno Haible  <bruno@clisp.org>
55460
55461         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
55462         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
55463         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
55464         * lib/fts.c: Likewise.
55465         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
55466
55467 2006-12-25  Bruno Haible  <bruno@clisp.org>
55468
55469         * modules/utf8-ucs4-safe: New file.
55470         * lib/utf8-ucs4-safe.h: New file.
55471         * lib/unistr/utf8-ucs4-safe.c: New file.
55472
55473         * modules/utf16-ucs4-safe: New file.
55474         * lib/utf16-ucs4-safe.h: New file.
55475         * lib/unistr/utf16-ucs4-safe.c: New file.
55476
55477         * MODULES.html.sh (Unicode string functions): Add the new modules.
55478
55479 2007-01-08  Bruno Haible  <bruno@clisp.org>
55480
55481         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
55482         (Depends-on): Add unitypes.
55483         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55484         (u8_mbtouc_aux): Move out to separate file.
55485         (u8_mbtouc): Use ucs4_t, uint8_t types.
55486         * lib/unistr/utf8-ucs4.c: New file.
55487
55488         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
55489         (Depends-on): Add unitypes.
55490         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55491         (u16_mbtouc_aux): Move out to separate file.
55492         (u16_mbtouc): Use ucs4_t, uint16_t types.
55493         * lib/unistr/utf16-ucs4.c: New file.
55494
55495         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
55496         (Depends-on): Add unitypes.
55497         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
55498         (u8_uctomb_aux): Move out to separate file.
55499         (u8_uctomb): Use ucs4_t, uint8_t types.
55500         * lib/unistr/ucs4-utf8.c: New file.
55501
55502         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
55503         (Depends-on): Add unitypes.
55504         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
55505         (u16_uctomb_aux): Move out to separate file.
55506         (u16_uctomb): Use ucs4_t, uint16_t types.
55507         * lib/unistr/ucs4-utf16.c: New file.
55508
55509 2006-12-25  Bruno Haible  <bruno@clisp.org>
55510
55511         * modules/unitypes: New file.
55512         * lib/unitypes.h: New file.
55513         * MODULES.html.sh (func_all_modules): New section "Unicode string
55514         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
55515         this section. Add unitypes.
55516
55517 2007-01-08  Bruno Haible  <bruno@clisp.org>
55518
55519         Avoid variable names that conflict with those from libtool.
55520         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
55521         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
55522         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
55523         library_names_spec to acl_library_names_spec, hardcode_* to
55524         acl_hardcode_*.
55525         Reported by Ralf Wildenhues.
55526
55527 2007-01-08  Bruno Haible  <bruno@clisp.org>
55528
55529         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
55530         definition.
55531         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
55532         definition.
55533         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
55534         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
55535         definition.
55536         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
55537         definition.
55538         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
55539         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
55540         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
55541         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
55542         definition.
55543         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
55544         definition.
55545         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
55546         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
55547         GC_USE_<algorithm>.
55548         * lib/gc-libgcrypt.c: Likewise.
55549         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
55550         * modules/gc-arctwo (configure.ac): Likewise.
55551         * modules/gc-des (configure.ac): Likewise.
55552         * modules/gc-hmac-md5 (configure.ac): Likewise.
55553         * modules/gc-hmac-sha1 (configure.ac): Likewise.
55554         * modules/gc-md2 (configure.ac): Likewise.
55555         * modules/gc-md4 (configure.ac): Likewise.
55556         * modules/gc-md5 (configure.ac): Likewise.
55557         * modules/gc-random (configure.ac): Likewise.
55558         * modules/gc-rijndael (configure.ac): Likewise.
55559         * modules/gc-sha1 (configure.ac): Likewise.
55560
55561 2007-01-08  Bruno Haible  <bruno@clisp.org>
55562
55563         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
55564         macro definition.
55565         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
55566         definition.
55567         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
55568         definition.
55569         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
55570         * modules/fcntl-safer (configure.ac): Likewise.
55571         * modules/fopen-safer (configure.ac): Likewise.
55572         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
55573         GNULIB_FWRITEERROR macro definition.
55574
55575 2007-01-08  Bruno Haible  <bruno@clisp.org>
55576
55577         * m4/gnulib-common.m4: New file.
55578         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
55579         (func_get_filelist): Add m4/gnulib-common.m4.
55580
55581 2007-01-08  Bruno Haible  <bruno@clisp.org>
55582
55583         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
55584         command.
55585
55586 2007-01-08  Jim Meyering  <jim@meyering.net>
55587
55588         Use a more robust test for a "can't happen" condition.
55589         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
55590         narrowed the st_size value.  Presuming the "can't happen" condition
55591         is true, that narrowing could conceivably convert an invalid st_size
55592         value into a valid one.  Instead, use a change based on Matthew
55593         Woehlke's original patch.
55594
55595         Slight readability improvement: use an assert-like macro
55596         in place of literal "abort ()" uses.
55597         * lib/fts.c (fts_assert): Define.
55598         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
55599         Use this macro instead of a bare 'abort'.
55600
55601 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
55602
55603         Don't worry about using IRIX 5.3's wctype.h broken definitions;
55604         simply work around them.
55605         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
55606         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
55607         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
55608         declaring.
55609         Don't bother to define as macros, since the standard doesn't require it.
55610         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
55611         longer worry about IRIX 5.3.
55612         (HAVE_WCTYPE_CTMP_BUG): Remove.
55613
55614 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55615
55616         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
55617         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
55618         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55619         Problems reported by Georg Schwarz for IRIX 5.3.
55620
55621         * gnulib-tool (autoconf_minversion): Take the maximum version number
55622         found, not the minimum.  Problem reported by James Youngman.
55623
55624 2007-01-03  Karl Berry  <karl@gnu.org>
55625
55626         * doc/error.texi: new file, explaining interaction with progname.
55627         * doc/gnulib.texi: include it.  Update copyright.
55628
55629 2007-01-03  Simon Josefsson  <simon@josefsson.org>
55630
55631         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
55632         AC_CANONICAL_HOST, to improve autobuild outputs.
55633
55634 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
55635             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55636
55637         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
55638         sockets, server sockets, and other file descriptors.  Count errors
55639         to compute the return value.  Reorder the code a bit to be easier
55640         to follow.  Don't set event bits that were not requested (except
55641         POLLERR and POLLHUP).
55642
55643 2007-01-01  Bruno Haible  <bruno@clisp.org>
55644
55645         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
55646
55647 2007-01-03  Jim Meyering  <jim@meyering.net>
55648
55649         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
55650
55651 2007-01-02  Bruno Haible  <bruno@clisp.org>
55652
55653         * modules/settime (Include): Require timespec.h.
55654         * modules/nanosleep (Include): Likewise.
55655
55656 2007-01-01  Bruno Haible  <bruno@clisp.org>
55657
55658         * gnulib-tool (func_emit_copyright_notice): Bump year.
55659         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
55660
55661 2007-01-01  Bruno Haible  <bruno@clisp.org>
55662
55663         Improve support for OpenBSD.
55664         * build-aux/config.rpath (libname_spec): Export.
55665         (library_names_spec): New variable. Export.
55666         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
55667         library_names_spec from the config.rpath output. Locate shared library
55668         through the name pattern in library_names_spec.
55669
55670 2007-01-01  Eric Blake  <ebb9@byu.net>
55671
55672         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
55673
55674 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
55675
55676         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
55677         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
55678         assume the C locale, and avoid an "eval" that could cause trouble.
55679         Problem with SORT reported by Bob Proulx.
55680
55681         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
55682         Define.  Trivial patch from Henning Nielsen Lund, originally
55683         sent to bug-grep@gnu.org today.
55684
55685 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55686
55687         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
55688         struct stat.  Problem reported by Henning Nielsen Lund.
55689         * lib/acl.c: Include acl.h first, to check interface.  Don't
55690         bother to include sys/types.h and sys/stat.h again.
55691
55692 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
55693
55694         Import the following change from libc; problem reported by
55695         Sven Verdoolaege.
55696
55697         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
55698
55699         [BZ #1373]
55700         * lib/argp.h: Remove __NTH for __argp_usage inline function.
55701
55702 2006-12-28  Jim Meyering  <jim@meyering.net>
55703
55704         * build-aux/announce-gen: Do not assume that the package
55705         builds any of tar.gz, tar.bz2, and .xdelta files.
55706         Suggestion from Simon Josefsson.
55707
55708 2006-12-28  Simon Josefsson  <simon@josefsson.org>
55709
55710         * modules/announce-gen: New file.
55711
55712 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
55713
55714         * lib/mbchar.h: Just include <wctype.h>; the wctype module
55715         handles its gotchas now.
55716         * lib/mbswidth.c: Likewise.
55717         * lib/wcwidth.h: Likewise.
55718         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
55719         and iswcntrl; the wctype module does this stuff now.
55720         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55721         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55722         * modules/mbchar (Depends-on): Add wctype.
55723         * modules/mbswidth (Depends-on): Likewise.
55724         * modules/wcwidth (Depends-on): Likewise.
55725
55726 2006-12-27  Eric Blake  <ebb9@byu.net>
55727
55728         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
55729         module uses more than what <wctype.h> is required to provide.
55730
55731 2006-12-26  Eric Blake  <ebb9@byu.net>
55732
55733         * gnulib-tool (sed_extract_prog): Avoid space-tab.
55734
55735 2006-12-26  Eric Blake  <ebb9@byu.net>
55736
55737         * modules/absolute-header: New module.
55738         * modules/fcntl (Depends-on): Depend on it.
55739         * modules/inttypes (Depends-on): Likewise.
55740         * modules/stdint (Depends-on): Likewise.
55741         * modules/sys_stat (Depends-on): Likewise.
55742         * modules/wctype (Depends-on): Likewise.
55743         * MODULES.html.sh (Support for building libraries and
55744         executables): Document it.
55745
55746 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55747
55748         * gnulib-tool (SED): Remove, undoing previous change.
55749         The problem was that it broke coreutils on Solaris, because
55750         "sed --posix" leaked into a makefile.
55751         (sed): New alias, if 'alias' and GNU sed.
55752
55753 2006-12-24  Jim Meyering  <jim@meyering.net>
55754
55755         Work around an fchownat bug in glibc-2.4:
55756         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
55757         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
55758         in spite of the -P option.
55759         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
55760         New macros.
55761         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
55762         * modules/openat (Files): Add lib/fchownat.c.
55763         * lib/openat.c (fchownat): Don't define here.  Move to...
55764         * lib/fchownat.c: ...this new file.
55765
55766 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
55767
55768         Fix bug reported by Bruno Haible in
55769         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
55770         where quotearg.c didn't compile on Mac OS X 10.2 because it
55771         lacks <wchar.h> and wint_t.
55772         * lib/wctype_.h (__wctype_wint_t): New type.
55773         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
55774         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
55775         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
55776         Arg is now of type __wctype_wint_t, not wint_t.
55777         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
55778         substitute HAVE_WINT_T.
55779         * modules/wctype (Files): Add m4/wint_t.m4.
55780         (wctype.h): Substitute HAVE_WINT_T.
55781
55782 2006-12-23  Bruno Haible  <bruno@clisp.org>
55783
55784         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
55785
55786 2006-12-23  Bruno Haible  <bruno@clisp.org>
55787
55788         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
55789         S_ISLNK.
55790         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
55791         mingw.
55792
55793 2006-12-22  Bruno Haible  <bruno@clisp.org>
55794
55795         * lib/copy-file.c: Include acl.h.
55796         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
55797         Close the file descriptors only after being done with copy_acl.
55798         * modules/copy-file (Depends-on): Add acl.
55799
55800 2006-12-22  Bruno Haible  <bruno@clisp.org>
55801
55802         * gnulib-tool (SED): New variable.
55803         Use $SED instead of sed everywhere.
55804
55805 2006-12-22  Bruno Haible  <bruno@clisp.org>
55806
55807         * modules/no-c++: New file.
55808         * m4/no-c++.m4: New file.
55809         * MODULES.html.sh (Support for building libraries and executables):
55810         Add no-c++.
55811
55812 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
55813
55814         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55815         Include <limits.h>, and use its INT_MAX to rewrite the
55816         j loop so that it does not overflow 'int'.  Problem reported by
55817         Ralf Wildenhues in
55818         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
55819         Play it safe by shifting left by 1 rather than multiplying by 2,
55820         as GCC is less likely to optimize this away when the value
55821         is signed (when it assumes overflow leads to undefined behavior).
55822         Also, don't assume time_t uses two's complement.
55823
55824 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
55825
55826         * MODULES.html.sh: New module wctype.
55827         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
55828         * lib/fnmatch.c: Don't bother to include <wchar.h> before
55829         <wctype.h>, since the new wctype module should fix this.
55830         * lib/quotearg.c: Include <wctype.h> unconditionally, since
55831         the wctype module should arrange for it.
55832         * lib/regex_internal.h: Likewise.
55833         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
55834         since the wctype module should handle this now.
55835         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
55836         * modules/fnmatch (Depends-on): Add wctype.
55837         * modules/quotearg (Depends-on): Likewise.
55838         * modules/regex (Depends-on): Likewise.
55839
55840 2006-12-19  Bruno Haible  <bruno@clisp.org>
55841
55842         * lib/strdup.h [C++]: Wrap definitions in extern "C".
55843         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
55844
55845 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55846
55847         * modules/savewd (Depends-on): Fix dependency on fcntl.
55848
55849 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55850
55851         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
55852         conforms to C99, rather than relying on the user's environment
55853         setting of STDINT_H.
55854
55855 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55856         and Eric Blake  <ebb9@byu.net>
55857
55858         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
55859         This is more consistent with the other defines here.
55860         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
55861         Port to z/OS.  Problem reported by Paul Gilmartin.
55862         Change local vars to use gl_ prefix rather than ac_.
55863         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
55864         with other defines.
55865         * modules/double-slash-root: New module.
55866         * modules/dirname (Files): Remove m4/double-slash-root.m4.
55867         (Depends-on): Add double-slash-root.
55868         * MODULES.html.sh (File system functions): Mention new module.
55869
55870 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
55871
55872         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
55873         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
55874         This is for the benefit of gzip, which doesn't do i18n.
55875
55876 2006-12-12  Jim Meyering  <jim@meyering.net>
55877
55878         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
55879         Reported by Andreas Schwab <schwab@suse.de>.
55880
55881 2006-12-12  Bruno Haible  <bruno@clisp.org>
55882
55883         Merge these changes.
55884         2006-09-05  Bruno Haible  <bruno@clisp.org>
55885         * lib/iconvme.c (iconv_string): No need to save and restore errno when
55886         iconv_alloc succeeded.
55887         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
55888         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
55889         test for " && dest " at the end - dest is always != NULL there. Call
55890         iconv with 4xNULL arguments initially, to reset the state. Call iconv
55891         with 2xNULL arguments, also to flush the state storage. Handle the
55892         IRIX iconv behaviour. Realloc the final result, to throw away unused
55893         memory.
55894
55895 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
55896
55897         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
55898         and fchmodat unconditionally, since glibc 2.4 has them.
55899         Problem reported by Arkadiusz Miskiewicz.
55900
55901 2006-12-10  Bruno Haible  <bruno@clisp.org>
55902
55903         * gnulib-tool (func_import): Show the include files only for those
55904         modules that are copied and specified.
55905         Reported by Karl Berry.
55906
55907 2006-12-08  Jim Meyering  <jim@meyering.net>
55908
55909         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
55910         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
55911
55912         * build-aux/announce-gen: Add two new options, both optional:
55913         --bootstrap-tools=TOOL_LIST
55914               a comma-separated list of tools, e.g.,
55915               autoconf,automake,bison,gnulib
55916         --gnulib-snapshot-date=DATE
55917               if gnulib is in the bootstrap tool list,
55918               then report this as the snapshot date.
55919               If not specified, use the current date/time.
55920               If you specify a date here, be sure it's UTC.
55921
55922 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55923
55924         * tests/test-argp-2.sh: Fix test to match actual output.
55925         (func_compare): Fix sed script to be portable.
55926
55927 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
55928
55929         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
55930         workaround for this case.  It is not autoconfigured now; offhand
55931         it's hard to see how to autoconfigure it.
55932
55933 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55934
55935         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
55936         a directory that is about to be chowned.  Such a directory's
55937         initial file permissions should permit the owner only and this
55938         should not be changed until after the chown, since the group and
55939         other bits would be incorrect if they granted permission before
55940         the chown.
55941
55942         Fix porting problem for iswctype reported by Georg Schwarz in:
55943         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
55944         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
55945         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
55946         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
55947         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55948
55949 2006-12-03  Jim Meyering  <jim@meyering.net>
55950
55951         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
55952         p->fts_statp may not yet be defined.
55953         (fts_read): Instead, set it in the caller, once p->fts_statp is
55954         sure to be defined, and corresponds to a top-level directory.
55955         This bug made du -x fail.  Here's the coreutils test case:
55956         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
55957         Reported by Mike Frysinger.
55958
55959 2006-12-01  Jim Meyering  <jim@meyering.net>
55960
55961         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
55962         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
55963         Reported by Simon Josefsson.
55964
55965 2006-11-30  Jim Meyering  <jim@meyering.net>
55966
55967         * m4/warning.m4: Use the all-permissive copyright notice
55968         recommended by RMS (rather than LGPL).
55969         * m4/vararrays.m4: Likewise.
55970         * m4/flexmember.m4: Likewise.
55971
55972 2006-11-29  Bruno Haible  <bruno@clisp.org>
55973
55974         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55975         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
55976         using +=.
55977         Reported by Simon Josefsson <simon@josefsson.org>.
55978
55979 2006-11-28  James Youngman <jay@gnu.org>
55980
55981         * README: Advise users that they might find the bug-gnulib@gnu.org
55982         and autotools-announce@gnu.org mailing lists useful.
55983
55984 2006-11-28  Bruno Haible  <bruno@clisp.org>
55985
55986         * m4/ptrdiff_max.m4: Remove file.
55987
55988 2006-11-21  Bruno Haible  <bruno@clisp.org>
55989
55990         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
55991         _AC_COMPUTE_INT.
55992         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55993         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
55994         _AC_COMPUTE_INT.
55995         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55996         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
55997         _AC_COMPUTE_INT.
55998         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55999
56000 2006-11-28  Jim Meyering  <jim@meyering.net>
56001
56002         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
56003         warning from "gcc -Wshadow" about shadowing the builtin.
56004
56005 2006-11-27  Bruno Haible  <bruno@clisp.org>
56006
56007         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
56008         _AC_COMPUTE_INT.
56009         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56010
56011 2006-11-27  Bruno Haible  <bruno@clisp.org>
56012             Paul Eggert  <eggert@cs.ucla.edu>
56013
56014         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
56015
56016 2006-11-26  Bruno Haible  <bruno@clisp.org>
56017
56018         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56019         noinst_LTLIBRARIES.
56020
56021 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
56022             Bruno Haible  <bruno@clisp.org>
56023
56024         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
56025         if compiling with "gcc -ansi".
56026
56027 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
56028
56029         Fix some incompatibilities with gcc -ansi -pedantic.
56030         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
56031         if compiling pedantically with GCC, unless it's C99 or later.
56032         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
56033         it mishandles gcc -ansi -pedantic as well.
56034         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
56035         if gcc -pedantic.
56036         * lib/regexec.c (check_node_accept_bytes): Don't use auto
56037         initializers for struct if -pedantic, unless it's C99 or later.
56038
56039 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
56040
56041         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
56042         Don't close an fd more than once. Identical atimes indicate
56043         success, not failure.
56044
56045 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
56046
56047         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
56048
56049 2006-11-23  Jim Meyering  <jim@meyering.net>
56050
56051         * build-aux/announce-gen: New file.  From coreutils.
56052
56053 2006-11-22  Jim Meyering  <jim@meyering.net>
56054
56055         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
56056         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
56057         (fts_read): Use a temporary to narrow the overused st_size member
56058         before using it in a switch statement.  Reported by Matthew Woehlke.
56059
56060         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
56061         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56062
56063 2006-11-20  Bruno Haible  <bruno@clisp.org>
56064
56065         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
56066         changequote instead of pairs of brackets.
56067         Reported by Andreas Schwab <schwab@suse.de>.
56068
56069 2006-11-21  Jim Meyering  <jim@meyering.net>
56070
56071         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
56072         so as to remain compatible with older compilers.
56073         Patch from Michael Deutschmann.
56074
56075 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56076
56077         * MODULES.html.sh (File system functions): Add openat.
56078
56079         * lib/openat.h (rpl_fstatat): New macro, if
56080         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
56081         (fstatat): Define to rpl_fstatat under the same conditions,
56082         unless COMPILING_FSTATAT.
56083         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
56084         seems to have the bug.
56085         * lib/fstatat.c: New file.
56086         * modules/openat (Files): Add it.
56087
56088 2006-11-20  Bruno Haible  <bruno@clisp.org>
56089
56090         * Makefile: New file.
56091
56092 2006-11-20  Jim Meyering  <jim@meyering.net>
56093
56094         The beginnings of syntax-related checks for gnulib.
56095         * lib/Makefile: New file.
56096         * lib/t-idcache: New script.  Ensure that the two halves of
56097         idcache.c stay in sync.
56098
56099         * lib/idcache.c: Adjust comments in user- and group- portions to
56100         be more accurate, and to be consistent with one another.
56101
56102 2006-11-20  Jim Meyering  <jim@meyering.net>
56103
56104         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
56105         continue using the flexible array member (thus, this module performs
56106         half as many malloc calls), with the addition that...
56107         (getgroup, getuser): Consistently record a non-match via an empty
56108         "name" string, and map an empty string match to a NULL return value.
56109         * modules/idcache (Depends-on): Re-add flexmember.
56110
56111         * lib/idcache.c (getuser): Remove all uses of the register keyword.
56112         (getuidbyname, getgroup, getgidbyname): Likewise.
56113
56114         Use cleaner syntax: NULL rather than 0.
56115         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
56116
56117 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56118
56119         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
56120         It mishandled the case where the group was missing.
56121         Problem reported by Greg Schafer.
56122         * modules/idcache: Likewise.
56123
56124 2006-11-18  Jim Meyering  <jim@meyering.net>
56125
56126         * check-module (%exempt_header): Add exception for some
56127         conditionally-included headers.
56128
56129         * modules/i-ring (Depends-on): Add verify.
56130         (License): Change to LGPL.
56131
56132 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56133
56134         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
56135         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
56136         and inttostr.h.  Use snprintf rather than uinttostr, so that
56137         LGPLed code doesn't depend on GPLed.
56138
56139 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56140
56141         * modules/inline (License): Change from GPL to LGPL.
56142
56143 2006-11-17  Jim Meyering  <jim@meyering.net>
56144
56145         * modules/d-type (License): Switch to LGPL.
56146
56147 2006-11-15  Bruno Haible  <bruno@clisp.org>
56148
56149         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
56150
56151 2006-11-15  Eric Blake  <ebb9@byu.net>
56152
56153         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
56154         the module dependency.
56155
56156 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56157             Bruno Haible  <bruno@clisp.org>
56158
56159         * gnulib-tool (func_create_testdir): Add license consistency check.
56160
56161 2006-11-15  Eric Blake  <ebb9@byu.net>
56162
56163         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
56164         random "(cached)" in configure output.
56165
56166 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56167
56168         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
56169         test for conforming inttypes.h is both announced and cached.
56170
56171         * MODULES.html.sh (seen_modules, seen_files): New variables.
56172         (func_module): Rewrite to use a few less gnulib-tool and sed
56173         invocations.  Avoid a couple of quadratic algorithms for ...
56174         (missed_modules, missed_files): ... these, with ...
56175         (func_append, func_tmpdir): ... these new functions, from
56176         gnulib-tool.  Analogously, install traps for cleanup.
56177
56178         * tests/test-gc.c (main): Remove unused variables.
56179         * tests/test-read-file.c: Include stdlib.h, for 'free'.
56180
56181 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
56182
56183         * modules/inttostr (License): Change to LGPL.
56184
56185 2006-11-14  Eric Blake  <ebb9@byu.net>
56186
56187         * modules/tempname (License): Change to LGPL.
56188
56189 2006-11-14  Eric Blake  <ebb9@byu.net>
56190
56191         * doc/functions.texi (Function Portability): *printf functions on
56192         Cygwin now understand all POSIX size specifiers.
56193
56194 2006-11-14  Bruno Haible  <bruno@clisp.org>
56195
56196         * modules/c-ctype (License): Change to LGPL.
56197
56198 2006-11-12  Bruno Haible  <bruno@clisp.org>
56199
56200         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56201         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
56202         for GNOME libraries, for which the include files are installed in
56203         subdirectories of $prefix/include.
56204
56205 2006-11-12  Bruno Haible  <bruno@clisp.org>
56206
56207         * m4/lib-link.m4: Require at least autoconf-2.54.
56208         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
56209         name to underscores for the --with option.
56210
56211 2006-11-13  Bruno Haible  <bruno@clisp.org>
56212
56213         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
56214         the tests directory.
56215         Reported by Ralf Wildenhues.
56216
56217 2006-11-13  Bruno Haible  <bruno@clisp.org>
56218
56219         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
56220         (func_emit_initmacro_end): Undo the override here.
56221         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
56222         Works around the famous automake error in coreutils.
56223
56224 2006-11-13  Eric Blake  <ebb9@byu.net>
56225
56226         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
56227         element, not its node.
56228
56229 2006-11-12  Bruno Haible  <bruno@clisp.org>
56230
56231         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
56232         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
56233
56234 2006-11-12  Bruno Haible  <bruno@clisp.org>
56235
56236         * gnulib-tool: New option --local-symlink.
56237         (func_usage): Document it.
56238         (lsymbolic): New variable.
56239         (func_import, func_create_testdir): If --symlink was not specified,
56240         test whether --local-symlink was specified and the file comes from
56241         the local_gnulib_dir.
56242
56243 2006-11-12  Bruno Haible  <bruno@clisp.org>
56244
56245         * gnulib-tool (func_ln): New function.
56246         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
56247
56248 2006-11-12  Bruno Haible  <bruno@clisp.org>
56249
56250         Finish support for source files in subdirectories.
56251         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
56252         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
56253         AUTOMAKE_OPTIONS.
56254         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
56255
56256 2006-11-12  Bruno Haible  <bruno@clisp.org>
56257
56258         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56259         EXTRA_lib_SOURCES augmentation.
56260         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
56261
56262 2006-11-12  Jim Meyering  <jim@meyering.net>
56263
56264         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
56265         file descriptors.  This also averts a failure on systems with
56266         native openat support when a traversed directory lacks "x" access.
56267         * lib/fts_.h: Include "i-ring.h"
56268         (struct FTS) [fts_fd_ring]: New member.
56269         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
56270         (FCHDIR): Add parentheses.
56271         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
56272         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
56273         When descending, rather than simply closing the previous
56274         fts_cwd_fd value, push that file descriptor onto the ring.
56275         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
56276         (fts_open): Initialize the new fd_ring member.
56277         (fts_close): Clear the ring.
56278         (fts_safe_changedir): When possible, use our new fd_ring to skip
56279         the diropen and fstat and dev/ino comparison that would normally
56280         accompany a virtual `chdir ("..")'.
56281
56282         * modules/fts (Depends-on): Add i-ring.
56283         * modules/i-ring: New module.
56284         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
56285         * m4/i-ring.m4: New file.
56286
56287 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56288
56289         * gnulib-tool (func_create_testdir): Fix replacement of
56290         `build-aux' in configure.ac.  Run autotools in gltests
56291         subdirectory.
56292         (func_create_testdir, func_create_megatestdir, test): There is
56293         no need for '--force' in most autotool invocations in a new
56294         tree.  Actually fail the whole test if any of the tools, or the
56295         configure or make stages fail.
56296
56297         Sync from Automake.
56298         * build-aux/gnupload: Revert last change.  Add pointer to upload
56299         instructions of the GNU Maintenance Instructions.
56300         Suggestion by Karl Berry.
56301
56302 2006-11-10  Jim Meyering  <jim@meyering.net>
56303
56304         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
56305
56306 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56307
56308         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
56309         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
56310         (bind_textdomain_codeset) [! ENABLE_NLS]:
56311         Evaluate all the arguments.  That way, callers get compatible behavior
56312         if the arguments have side effects.  Also, it avoids some GCC
56313         diagnostics in some cases; Joel E. Denny reported problems when Bison
56314         was configured with --enable-gcc-warnigs.
56315
56316 2006-11-10  Jim Meyering  <jim@meyering.net>
56317
56318         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
56319         relevant options in CFLAGS (like -O, -fno-inline) are taken into
56320         account.
56321
56322 2006-11-10  Jim Meyering  <jim@meyering.net>
56323
56324         * modules/inline: New file/module.
56325         * modules/xalloc (Files): Remove m4/inline.m4.
56326         (Depends-on): Add inline, instead.
56327         * modules/oset: Likewise.
56328         * modules/list: Likewise.
56329
56330 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56331
56332         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
56333         Problem reported by Matthew Woehlke.
56334
56335 2006-11-09  Bruno Haible  <bruno@clisp.org>
56336
56337         * lib/tempname.c (gen_tempname): Remove variant that invokes
56338         __gen_tempname.
56339         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
56340         __gen_tempname.
56341
56342 2006-11-08  Bruno Haible  <bruno@clisp.org>
56343
56344         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
56345         to 'yes' instead of 'cross-compiling'.
56346
56347 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
56348
56349         * lib/quotearg.h (quotearg_free): New decl.
56350         * lib/quotearg.c (quotearg_free): New function.
56351         (slot0, nslots, slotvec0, slotvec):
56352         Now file-scope so that quotearg_free can get at them.
56353
56354 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56355
56356         Sync from Automake.
56357         * build-aux/gnupload: Add missing 'gnu' to example URL.
56358         Report by Karl Berry.
56359
56360 2006-11-08  Bruno Haible  <bruno@clisp.org>
56361
56362         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
56363         Suggested by Paul Eggert.
56364
56365 2006-11-08  Jim Meyering  <jim@meyering.net>
56366
56367         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
56368         It's already included if !_LIBC.
56369         (fts_safe_changedir): Add a comment.
56370
56371 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56372
56373         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
56374         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
56375         Matthew Woehlke.
56376
56377         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
56378         definitions up, to avoid colliding with change below.
56379         (static_inline) [HAVE_INLINE]: New macro.
56380         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
56381         Provide extern decls when !HAVE_INLINE.  Do not define unless
56382         static_inline is defined, either by us or by xmalloc.c.  Use
56383         static_inline rather than static inline.
56384         (XCALLOC): Optimize sizeof(T) = 1 case.
56385         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
56386
56387 2006-11-07  Bruno Haible  <bruno@clisp.org>
56388
56389         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
56390         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
56391         AC_C_INLINE.
56392         * modules/xalloc (Files): Add m4/inline.m4.
56393
56394 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56395
56396         * README: Fix typo.
56397         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
56398         (Miscellanous Notes): ...from this.
56399
56400 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56401
56402         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
56403         Mention that offsetof should be used instead of sizeof.
56404         From Bruno Haible.
56405
56406 2006-11-07  Bruno Haible  <bruno@clisp.org>
56407
56408         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
56409
56410 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56411
56412         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56413         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
56414         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56415         (gl_tree_add_before, gl_tree_add_after):
56416         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
56417         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
56418         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56419         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
56420         (gl_linked_add_after, gl_linked_add_at): Likewise.
56421         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
56422         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56423         (gl_tree_add_before, gl_tree_add_after): Likewise.
56424         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
56425         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
56426         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
56427
56428 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56429
56430         * lib/gl_oset.h: Use C comment style, not C++ comment style.
56431
56432 2006-11-06  Bruno Haible  <bruno@clisp.org>
56433
56434         * m4/inline.m4: New file.
56435         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
56436         * modules/list (Files): Add m4/inline.m4.
56437         * modules/oset (Files): Likewise.
56438
56439 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56440
56441         * lib/idcache.c: Include <stddef.h>, for offsetof.
56442         (struct userid.name): Change from char * to a flexible array member.
56443         All uses changed.
56444         * modules/idcache (Depends-on): Add flexmember.
56445
56446         * MODULES.html.sh (Core language properties): New module flexmember.
56447         * modules/flexmember, m4/flexmember.m4: New files.
56448
56449         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
56450         inline functions that are identical with the old xnmalloc_inline,
56451         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
56452         that we can avoid some unnecessary integer multiplications and
56453         divisions in the common case where the element size is known at
56454         compile time.
56455         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
56456         needed.
56457         (xnboundedmalloc): Remove.
56458         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
56459         arguments, for consistency with rest of this header.
56460         (xcharalloc): Rewrite using XNMALLOC.
56461         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
56462         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
56463         versions have been moved to lib/xalloc.h and renamed to be the
56464         non-*_inline versions.
56465         (xmalloc, xrealloc): Implement without reference to the xnmalloc
56466         and xnrealloc functions, since those functions are now inline and
56467         now call us.
56468         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
56469         renaming described above.
56470         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
56471         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
56472         captures the dependency in AC_C_INLINE.
56473
56474         New module canonicalize-lgpl, proposed by Charles Wilson in
56475         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
56476         with a few small changes afterwards.
56477         * MODULES.html.sh (File system functions): New module
56478         canonicalize-lgpl.
56479         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
56480         and canonicalize_file_name.
56481         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
56482         * modules/canonicalize-lgpl: New files.
56483
56484 2006-11-05  Bruno Haible  <bruno@clisp.org>
56485
56486         * gnulib-tool (func_import, func_create_testdir): Create directories
56487         also for files in subdirectories of lib/.
56488
56489 2006-11-05  Bruno Haible  <bruno@clisp.org>
56490
56491         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
56492         ANSI C compliant.
56493
56494 2006-11-03  Bruno Haible  <bruno@clisp.org>
56495
56496         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56497         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
56498         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
56499         (xnboundedmalloc): New inline function.
56500         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
56501         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
56502         xmalloc.
56503         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
56504         xmalloc.
56505         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
56506         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
56507         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
56508         xmalloc.
56509         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56510         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
56511         xmalloc.
56512         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
56513         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56514         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
56515         xmalloc.
56516         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56517         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
56518         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56519         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
56520         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
56521         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
56522         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
56523
56524 2006-11-03  Bruno Haible  <bruno@clisp.org>
56525
56526         * lib/c-ctype.h [C++]: Define functions without name mangling.
56527         * lib/fwriteerror.h [C++]: Likewise.
56528         * lib/gcd.h [C++]: Likewise.
56529         * lib/linebreak.h [C++]: Likewise.
56530
56531 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
56532
56533         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
56534         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
56535         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
56536         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56537         Check for functions and headers just once.
56538         Check for declaration of canonicalize_file_name.
56539         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
56540
56541 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56542
56543         * gnulib-tool (func_import): Fix typo in actioncmd.
56544
56545 2006-11-02  Bruno Haible  <bruno@clisp.org>
56546
56547         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
56548         newline sequence in the Makefile.am snippet as a space, like "make"
56549         does.
56550         Reported by Roger Persson <perrog@gmail.com>.
56551
56552 2006-11-01  Bruno Haible  <bruno@clisp.org>
56553
56554         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
56555         already declared in <string.h>.
56556         * lib/strcase.h (strncasecmp): Don't declare it if yes.
56557
56558 2006-11-01  Bruno Haible  <bruno@clisp.org>
56559
56560         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
56561         * lib/strcase.h: Include <string.h>.
56562         (strcasecmp): Define to rpl_strcasecmp here.
56563
56564 2006-11-01  Bruno Haible  <bruno@clisp.org>
56565
56566         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
56567
56568 2006-11-01  Eric Blake  <ebb9@byu.net>
56569
56570         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
56571
56572         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
56573
56574 2006-10-29  Bruno Haible  <bruno@clisp.org>
56575
56576         Make it compile in C++ mode.
56577         * lib/full-write.c (full_rw): Add a cast.
56578
56579 2006-11-01  Bruno Haible  <bruno@clisp.org>
56580
56581         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
56582         be POSIX compliant.
56583         Reported by Roger Persson <perrog@gmail.com>.
56584
56585 2006-11-01  Eric Blake  <ebb9@byu.net>
56586
56587         * lib/getopt_.h: Fix comments.
56588
56589 2006-10-31  Eric Blake  <ebb9@byu.net>
56590
56591         * modules/tmpdir (Depends-on): Add sys_stat.
56592         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
56593         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
56594         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
56595         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
56596         tempname.
56597
56598 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
56599
56600         Avoid some C++ diagnostics reported by Bruno Haible.
56601         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
56602         xmalloc.
56603         (quotearg_alloc): Use xcharalloc rather than xmalloc.
56604         (struct slotvec): Move to top level.
56605         (quotearg_n_options): Rewrite to avoid xmalloc.
56606         * lib/xalloc.h (xcharalloc): New function.
56607         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
56608         [defined __cplusplus]: Add function template that provides result
56609         type propagation.  This part of the change is from Bruno Haible.
56610
56611 2006-10-29  Bruno Haible  <bruno@clisp.org>
56612
56613         Make it compile in C++ mode.
56614         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
56615         * lib/strnlen1.c (strnlen1): Cast memchr result.
56616         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
56617         * lib/clean-temp.c (string_equals, string_hash): Add casts.
56618         (create_temp_dir): Rename local variable 'template'.
56619         (compile_csharp_using_sscli): Add cast.
56620         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
56621         * lib/findprog.c (find_in_path): Likewise.
56622         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
56623         * lib/wait-process.c (register_slave_subprocess): Likewise.
56624
56625 2006-10-22  Bruno Haible  <bruno@clisp.org>
56626
56627         * modules/tsearch: New file.
56628         * lib/tsearch.h: New file.
56629         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
56630         * m4/tsearch.m4: New file.
56631         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
56632
56633 2006-10-29  Eric Blake  <ebb9@byu.net>
56634
56635         * lib/arcfour.c: Assume config.h.
56636         * lib/arctwo.c: Likewise.
56637         * lib/base64.c: Likewise.
56638         * lib/check-version.c: Likewise.
56639         * lib/crc.c: Likewise.
56640         * lib/des.c: Likewise.
56641         * lib/gc-gnulib.c: Likewise.
56642         * lib/gc-libgcrypt.c: Likewise.
56643         * lib/gc-pbkdf2-sha1.c: Likewise.
56644         * lib/getaddrinfo.c: Likewise.
56645         * lib/getdelim.c: Likewise.
56646         * lib/getline.c: Likewise.
56647         * lib/hmac-md5.c: Likewise.
56648         * lib/hmac-sha1.c: Likewise.
56649         * lib/iconvme.c: Likewise.
56650         * lib/md2.c: Likewise.
56651         * lib/md4.c: Likewise.
56652         * lib/memxor.c: Likewise.
56653         * lib/read-file.c: Likewise.
56654         * lib/readline.c: Likewise.
56655         * lib/rijndael-alg-fst.c: Likewise.
56656         * lib/rijndael-api-fst.c: Likewise.
56657         * lib/xgetdomainname.c: Likewise.
56658
56659 2006-10-28  Eric Blake  <ebb9@byu.net>
56660
56661         * lib/xstrndup.c: Assume config.h.
56662
56663 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56664
56665         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
56666         stat-macros.h is now for our own macros, whereas stat_h is for
56667         macros in the <sys/stat.h> name space.
56668         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
56669         (STAT_MACROS_H): Remove.
56670         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
56671         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
56672         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
56673         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
56674         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
56675         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
56676         Move these macros to ...
56677         * lib/stat_.h: here.  Don't include stat-macros.h.
56678         * lib/canonicalize.c: Don't include stat-macros.h.
56679         * lib/chown.c: Likewise.
56680         * lib/euidaccess.c: Likewise.
56681         * lib/file-type.c: Likewise.
56682         * lib/filemode.c: Likewise.
56683         * lib/glob.c: Likewise.
56684         * lib/isapipe.c: Likewise.
56685         * lib/lchown.c: Likewise.
56686         * lib/lstat.c: Likewise.
56687         * lib/mkdir-p.c: Likewise.
56688         * lib/rmdir.c: Likewise.
56689         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
56690         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
56691         unless mkdir isn't declared, to speed up 'configure'.
56692         Always create sys/stat.h, since it's unlikely any real sys/stat.h
56693         would define all the S_* symbols.
56694         * modules/canonicalize (Depends-on):
56695         Depend on sys_stat, not stat-macros.
56696         * modules/chown: Likewise.
56697         * modules/euidaccess: Likewise.
56698         * modules/filemode: Likewise.
56699         * modules/file-type: Likewise.
56700         * modules/glob: Likewise.
56701         * modules/isapipe: Likewise.
56702         * modules/lchown: Likewise.
56703         * modules/lstat: Likewise.
56704         * modules/mkancesdirs: Likewise.
56705         * modules/rmdir: Likewise.
56706         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
56707         * modules/modechange: Likewise.
56708         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
56709         (configure.ac): Remove gl_STAT_MACROS.
56710         * modules/sys_stat (Depends-on): Remove stat-macros.
56711
56712 2006-10-27  Bruno Haible  <bruno@clisp.org>
56713
56714         * m4/signed.m4: Remove file.
56715         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
56716         invocation.
56717         * modules/vasnprintf (Files): Remove m4/signed.m4.
56718
56719 2006-10-27  Bruno Haible  <bruno@clisp.org>
56720
56721         Update to GNU gettext 0.16.
56722         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
56723         m4/inttypes-h.m4, m4/signed.m4.
56724         * m4/gettext.m4: Update to GNU gettext 0.16.
56725         * m4/intl.m4: New file, from GNU gettext.
56726         * m4/intldir.m4: New file, from GNU gettext.
56727         * config/srclist.txt: Update
56728
56729 2006-10-27  Eric Blake  <ebb9@byu.net>
56730
56731         * MODULES.html.sh: Document tempname.
56732         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
56733         dependencies.
56734         (Files): Move lib/tempname.c...
56735         * modules/tempname: ...to this new module.
56736         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
56737         (gl_PREREQ_TEMPNAME): Move...
56738         * m4/tempname.m4: ...to this new file.
56739         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
56740         * modules/sys_stat (Depends-on): Add stat-macros.
56741         * lib/stat_.h (includes): Pick up stat macros.
56742         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
56743         if stat macros are broken.
56744         * lib/tempname.c (includes): No need to include "stat-macros.h".
56745         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
56746         (direxists, __path_search) [!_LIBC]: Don't compile these in
56747         gnulib; the tmpdir module covers that.
56748         * lib/tempname.h: New file.
56749
56750 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
56751
56752         * COPYING: Explain how gnulib-tool converts licence headers.
56753         Almost all wording by Eric Blake.
56754
56755 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
56756
56757         * lib/mbchar.h (is_basic_table): Make read-only.
56758         * lib/mbchar.c (is_basic_table): Likewise.
56759         Reported by John Darrington.
56760
56761 2006-10-25  Bruno Haible  <bruno@clisp.org>
56762
56763         * lib/progname.h (set_program_name): Undefine before defining.
56764
56765 2006-10-25  Bruno Haible  <bruno@clisp.org>
56766
56767         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
56768         false for non-gcc C++ compilers.
56769         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56770
56771 2006-10-24  Bruno Haible  <bruno@clisp.org>
56772
56773         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
56774         iconv implementations like Irix iconv.
56775
56776 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56777
56778         * modules/vararrays: New file.
56779         * m4/vararrays.m4: New file, taken from diffutils.
56780         * MODULES.html.sh: New module vararrays.
56781
56782 2006-10-24  Karl Berry  <karl@gnu.org>
56783
56784         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
56785         Don't call GNU Unix.
56786
56787 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56788
56789         * users.txt: Add Libtool.
56790
56791         Sync from Libtool:
56792
56793         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56794
56795         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
56796         to gnulib's policy of including config.h unconditionally.
56797
56798 2006-10-24  Bruno Haible  <bruno@clisp.org>
56799
56800         * modules/wcwidth (Files): Add m4/wint_t.m4.
56801         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
56802         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
56803
56804 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56805
56806         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
56807         to pacify GCC with some -W flags enabled.  Problem reported by
56808         Bruno Haible.
56809
56810 2006-10-24  Jim Meyering  <jim@meyering.net>
56811
56812         * MODULES.html.sh: Remove uinttostr.  It's not a module.
56813         Reported by Karl Berry.
56814
56815 2006-10-23  Bruno Haible  <bruno@clisp.org>
56816
56817         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
56818
56819 2006-10-24  Bruno Haible  <bruno@clisp.org>
56820
56821         * lib/gl_list.h: Use C comment style, not C++ comment style.
56822
56823 2006-10-23  Eric Blake  <ebb9@byu.net>
56824
56825         * lib/getaddrinfo.c (includes): Add missing include.
56826
56827 2006-10-23  Bruno Haible  <bruno@clisp.org>
56828             Paul Eggert  <eggert@cs.ucla.edu>
56829
56830         Ability to rename obstack_free.
56831         * lib/obstack.h (__obstack_free): New macro. Declare instead of
56832         obstack_free.
56833         (obstack_free): Invoke the __obstack_free macro.
56834         * lib/obstack.c (obstack_free): Use __obstack_free macro.
56835
56836 2006-10-23  Bruno Haible  <bruno@clisp.org>
56837             Paul Eggert  <eggert@cs.ucla.edu>
56838
56839         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
56840         __argc, __argv from the declaration. (They are defined as macros on
56841         mingw.)
56842
56843 2006-10-22  Bruno Haible  <bruno@clisp.org>
56844
56845         * doc/gnulib-intro.texi: New file.
56846         * doc/gnulib.texi: Include it.
56847
56848 2006-10-21  Bruno Haible  <bruno@clisp.org>
56849
56850         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
56851         "Introduction", "Miscellanous Notes", "Particular Modules".
56852
56853 2006-10-21  Bruno Haible  <bruno@clisp.org>
56854
56855         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56856         Change mostlyclean-local rule to avoid sh syntax error from bash
56857         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
56858
56859 2006-10-23  Jim Meyering  <jim@meyering.net>
56860
56861         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
56862         in place of snprintf.
56863
56864         * modules/inttostr (Files): Add lib/uinttostr.c.
56865         * lib/uinttostr.c (inttostr): New file/function.
56866         * lib/inttostr.h (uinttostr): Declare.
56867         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
56868         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
56869         Add uinttostr.
56870         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
56871
56872 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56873
56874         * lib/canonicalize.c (ELOOP): Define if not already defined.
56875         Problem reported by Bruno Haible in
56876         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
56877
56878 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56879
56880         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
56881         Problem reported by Perry Smith and Ville Laurikari.
56882
56883         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
56884         uses.
56885
56886 2006-10-19  Bruno Haible  <bruno@clisp.org>
56887
56888         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
56889         for mingw.
56890
56891 2006-10-19  Bruno Haible  <bruno@clisp.org>
56892
56893         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
56894         Needed for mingw.
56895
56896 2006-10-19  Bruno Haible  <bruno@clisp.org>
56897
56898         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
56899
56900 2006-10-19  Bruno Haible  <bruno@clisp.org>
56901
56902         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
56903         it.
56904
56905 2006-10-19  Bruno Haible  <bruno@clisp.org>
56906
56907         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
56908         invocation.
56909
56910 2006-10-19  Bruno Haible  <bruno@clisp.org>
56911
56912         * gnulib-tool (func_create_testdir): Don't include ftruncate and
56913         mountlist by default.
56914
56915 2006-10-16  Bruno Haible  <bruno@clisp.org>
56916
56917         * lib/c-strstr.c: Include c-strstr.h.
56918
56919 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56920
56921         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
56922         in a slash.
56923
56924 2006-10-18  Bruno Haible  <bruno@clisp.org>
56925
56926         * lib/lock.h [C++]: Wrap definitions in extern "C".
56927
56928 2006-10-18  Bruno Haible  <bruno@clisp.org>
56929
56930         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
56931         gl_LIBOBJS list.
56932
56933 2006-10-18  Bruno Haible  <bruno@clisp.org>
56934
56935         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
56936
56937 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
56938
56939         * lib/xstrtol.h: Include gettext.h.
56940         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
56941         Problem reported by Eric Blake.
56942         * modules/xstrtol (Depends-on): Add gettext-h.
56943
56944 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
56945
56946         * lib/strftime.c (advance): New macro.
56947         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
56948         incomplete type, so you can't add 0 to it.  Problem and patch
56949         reported by Eelco Dolstra for dietlibc.
56950
56951 2006-10-18  Jim Meyering  <jim@meyering.net>
56952
56953         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
56954         type for a local, and rename it: s/up/user_proc/.
56955
56956 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56957
56958         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
56959         READ_UTMP_USER_PROCESS.
56960         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
56961
56962 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56963
56964         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
56965         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
56966
56967 2006-10-17  Eric Blake  <ebb9@byu.net>
56968
56969         * lib/sigprocmask.c (sigprocmask): Fix typo.
56970
56971         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
56972
56973         * modules/clean-temp (Makefile.am): Don't add to make output...
56974         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
56975         config.h.
56976
56977 2006-10-17  Bruno Haible  <bruno@clisp.org>
56978
56979         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
56980         differently if DEFAULT_TEXT_DOMAIN is set.
56981
56982 2006-10-16  Bruno Haible  <bruno@clisp.org>
56983
56984         * lib/clean-temp.c: Include fwriteerror.h.
56985
56986 2006-10-16  Bruno Haible  <bruno@clisp.org>
56987
56988         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
56989
56990 2006-10-16  Bruno Haible  <bruno@clisp.org>
56991
56992         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
56993         * lib/sigprocmask.h: Include <sys/types.h>.
56994         (sigset_t): Use the system's definition if present.
56995
56996 2006-10-17  Eric Blake  <ebb9@byu.net>
56997
56998         * lib/xvasprintf.c (includes): Assume config.h.
56999         * lib/xasprintf.c (includes): Likewise.
57000
57001 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57002
57003         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
57004         at least as wide as intmax_t.
57005
57006 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
57007
57008         (Imported from Automake.)
57009         * build-aux/gnupload: Update to version 1.1 of directive file.
57010
57011 2006-10-16  Eric Blake  <ebb9@byu.net>
57012
57013         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
57014         match Automake 1.10a.
57015
57016 2006-10-14  Bruno Haible  <bruno@clisp.org>
57017
57018         * modules/sigprocmask: New file.
57019         * lib/sigprocmask.h: New file.
57020         * lib/sigprocmask.c: New file.
57021         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
57022         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
57023         request sigprocmask.o.
57024         (gl_PREREQ_SIGPROCMASK): New macro.
57025         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
57026         (Depends-on): Add sigprocmask.
57027         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
57028         gt_SIGNALBLOCKING. Test for 'raise' only once.
57029         * lib/fatal-signal.c: Include sigprocmask.h.
57030         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
57031         unblock_fatal_signals): Define always.
57032         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57033         sigprocmask.
57034
57035 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57036
57037         Sync from Automake.
57038         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
57039         which incorrectly sets the mode of an existing destination
57040         directory.  In some cases the unpatched install-sh could do the
57041         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
57042         system.  We hope this is rare in practice, but it's clearly worth
57043         fixing.  Problem reported by Alex Unleashed in
57044         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
57045         Also, don't bother to check for -m bugs unless we're using -m;
57046         suggested by Stepan Kasal.
57047
57048 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57049
57050         Sync from Automake.
57051         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
57052         `-c' flag, so they appear at the same position as in %FASTDEP%
57053         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
57054         which ignores unknown options only after the first non-option.
57055         Bug report against M4 by Nelson H. F. Beebe.
57056
57057 2006-10-13  Jim Meyering  <jim@meyering.net>
57058
57059         Fix a bug in yesterday's change.
57060         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
57061         p->fts_statp->st_dev would be used uninitialized.
57062         Ensures that we always call fts_stat on the very first entry.
57063         Miklos Szeredi reported that find -xdev stopped working.
57064
57065 2006-10-12  Bruno Haible  <bruno@clisp.org>
57066
57067         * gnulib-tool (func_get_automake_snippet): Append an automatically
57068         computed EXTRA_DIST augmentation.
57069         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
57070         * modules/alloca-opt (Makefile.am): Likewise.
57071         * modules/allocsa (Makefile.am): Likewise.
57072         * modules/arcfour (Makefile.am): Likewise.
57073         * modules/arctwo (Makefile.am): Likewise.
57074         * modules/argmatch (Makefile.am): Likewise.
57075         * modules/argz (Makefile.am): Likewise.
57076         * modules/atexit (Makefile.am): Likewise.
57077         * modules/backupfile (Makefile.am): Likewise.
57078         * modules/byteswap (Makefile.am): Likewise.
57079         * modules/c-strtod (Makefile.am): Likewise.
57080         * modules/c-strtold (Makefile.am): Likewise.
57081         * modules/calloc (Makefile.am): Likewise.
57082         * modules/canon-host (Makefile.am): Likewise.
57083         * modules/canonicalize (Makefile.am): Likewise.
57084         * modules/chdir-long (Makefile.am): Likewise.
57085         * modules/chdir-safer (Makefile.am): Likewise.
57086         * modules/check-version (Makefile.am): Likewise.
57087         * modules/chown (Makefile.am): Likewise.
57088         * modules/cloexec (Makefile.am): Likewise.
57089         * modules/close-stream (Makefile.am): Likewise.
57090         * modules/closeout (Makefile.am): Likewise.
57091         * modules/crc (Makefile.am): Likewise.
57092         * modules/csharpexec (Makefile.am): Likewise.
57093         * modules/cycle-check (Makefile.am): Likewise.
57094         * modules/des (Makefile.am): Likewise.
57095         * modules/dev-ino (Makefile.am): Likewise.
57096         * modules/dirfd (Makefile.am): Likewise.
57097         * modules/dirname (Makefile.am): Likewise.
57098         * modules/dup2 (Makefile.am): Likewise.
57099         * modules/eealloc (Makefile.am): Likewise.
57100         * modules/error (Makefile.am): Likewise.
57101         * modules/euidaccess (Makefile.am): Likewise.
57102         * modules/exclude (Makefile.am): Likewise.
57103         * modules/exitfail (Makefile.am): Likewise.
57104         * modules/fcntl-safer (Makefile.am): Likewise.
57105         * modules/fcntl (Makefile.am): Likewise.
57106         * modules/file-type (Makefile.am): Likewise.
57107         * modules/fileblocks (Makefile.am): Likewise.
57108         * modules/filemode (Makefile.am): Likewise.
57109         * modules/filenamecat (Makefile.am): Likewise.
57110         * modules/fnmatch (Makefile.am): Likewise.
57111         * modules/fopen-safer (Makefile.am): Likewise.
57112         * modules/fpending (Makefile.am): Likewise.
57113         * modules/fprintftime (Makefile.am): Likewise.
57114         * modules/free (Makefile.am): Likewise.
57115         * modules/fsusage (Makefile.am): Likewise.
57116         * modules/ftruncate (Makefile.am): Likewise.
57117         * modules/fts (Makefile.am): Likewise.
57118         * modules/gc-arcfour (Makefile.am): Likewise.
57119         * modules/gc-des (Makefile.am): Likewise.
57120         * modules/gc-hmac-md5 (Makefile.am): Likewise.
57121         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
57122         * modules/gc-md4 (Makefile.am): Likewise.
57123         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57124         * modules/gc-sha1 (Makefile.am): Likewise.
57125         * modules/gc (Makefile.am): Likewise.
57126         * modules/getaddrinfo (Makefile.am): Likewise.
57127         * modules/getcwd (Makefile.am): Likewise.
57128         * modules/getdelim (Makefile.am): Likewise.
57129         * modules/getdomainname (Makefile.am): Likewise.
57130         * modules/getgroups (Makefile.am): Likewise.
57131         * modules/gethostname (Makefile.am): Likewise.
57132         * modules/gethrxtime (Makefile.am): Likewise.
57133         * modules/getline (Makefile.am): Likewise.
57134         * modules/getloadavg (Makefile.am): Likewise.
57135         * modules/getlogin_r (Makefile.am): Likewise.
57136         * modules/getndelim2 (Makefile.am): Likewise.
57137         * modules/getopt (Makefile.am): Likewise.
57138         * modules/getpagesize (Makefile.am): Likewise.
57139         * modules/getpass-gnu (Makefile.am): Likewise.
57140         * modules/getpass (Makefile.am): Likewise.
57141         * modules/getsubopt (Makefile.am): Likewise.
57142         * modules/gettime (Makefile.am): Likewise.
57143         * modules/gettimeofday (Makefile.am): Likewise.
57144         * modules/getugroups (Makefile.am): Likewise.
57145         * modules/getusershell (Makefile.am): Likewise.
57146         * modules/glob (Makefile.am): Likewise.
57147         * modules/group-member (Makefile.am): Likewise.
57148         * modules/hard-locale (Makefile.am): Likewise.
57149         * modules/hash (Makefile.am): Likewise.
57150         * modules/hmac-md5 (Makefile.am): Likewise.
57151         * modules/hmac-sha1 (Makefile.am): Likewise.
57152         * modules/human (Makefile.am): Likewise.
57153         * modules/idcache (Makefile.am): Likewise.
57154         * modules/imaxabs (Makefile.am): Likewise.
57155         * modules/imaxdiv (Makefile.am): Likewise.
57156         * modules/inet_ntop (Makefile.am): Likewise.
57157         * modules/inet_pton (Makefile.am): Likewise.
57158         * modules/intprops (Makefile.am): Likewise.
57159         * modules/inttostr (Makefile.am): Likewise.
57160         * modules/inttypes (Makefile.am): Likewise.
57161         * modules/isapipe (Makefile.am): Likewise.
57162         * modules/javaversion (Makefile.am): Likewise.
57163         * modules/lchmod (Makefile.am): Likewise.
57164         * modules/lchown (Makefile.am): Likewise.
57165         * modules/localcharset (Makefile.am): Likewise.
57166         * modules/long-options (Makefile.am): Likewise.
57167         * modules/lstat (Makefile.am): Likewise.
57168         * modules/malloc (Makefile.am): Likewise.
57169         * modules/mathl (Makefile.am): Likewise.
57170         * modules/mbchar (Makefile.am): Likewise.
57171         * modules/md2 (Makefile.am): Likewise.
57172         * modules/md4 (Makefile.am): Likewise.
57173         * modules/md5 (Makefile.am): Likewise.
57174         * modules/memcasecmp (Makefile.am): Likewise.
57175         * modules/memchr (Makefile.am): Likewise.
57176         * modules/memcmp (Makefile.am): Likewise.
57177         * modules/memcoll (Makefile.am): Likewise.
57178         * modules/memcpy (Makefile.am): Likewise.
57179         * modules/memmem (Makefile.am): Likewise.
57180         * modules/memmove (Makefile.am): Likewise.
57181         * modules/mempcpy (Makefile.am): Likewise.
57182         * modules/memrchr (Makefile.am): Likewise.
57183         * modules/memset (Makefile.am): Likewise.
57184         * modules/memxor (Makefile.am): Likewise.
57185         * modules/mkancesdirs (Makefile.am): Likewise.
57186         * modules/mkdir-p (Makefile.am): Likewise.
57187         * modules/mkdir (Makefile.am): Likewise.
57188         * modules/mkdtemp (Makefile.am): Likewise.
57189         * modules/mkstemp (Makefile.am): Likewise.
57190         * modules/mktime (Makefile.am): Likewise.
57191         * modules/modechange (Makefile.am): Likewise.
57192         * modules/mountlist (Makefile.am): Likewise.
57193         * modules/nanosleep (Makefile.am): Likewise.
57194         * modules/obstack (Makefile.am): Likewise.
57195         * modules/openat (Makefile.am): Likewise.
57196         * modules/pagealign_alloc (Makefile.am): Likewise.
57197         * modules/pathmax (Makefile.am): Likewise.
57198         * modules/physmem (Makefile.am): Likewise.
57199         * modules/poll (Makefile.am): Likewise.
57200         * modules/posixtm (Makefile.am): Likewise.
57201         * modules/posixver (Makefile.am): Likewise.
57202         * modules/putenv (Makefile.am): Likewise.
57203         * modules/quote (Makefile.am): Likewise.
57204         * modules/quotearg (Makefile.am): Likewise.
57205         * modules/raise (Makefile.am): Likewise.
57206         * modules/read-file (Makefile.am): Likewise.
57207         * modules/readline (Makefile.am): Likewise.
57208         * modules/readlink (Makefile.am): Likewise.
57209         * modules/readtokens (Makefile.am): Likewise.
57210         * modules/readutmp (Makefile.am): Likewise.
57211         * modules/realloc (Makefile.am): Likewise.
57212         * modules/regex (Makefile.am): Likewise.
57213         * modules/rename-dest-slash (Makefile.am): Likewise.
57214         * modules/rename (Makefile.am): Likewise.
57215         * modules/rijndael (Makefile.am): Likewise.
57216         * modules/rmdir (Makefile.am): Likewise.
57217         * modules/rpmatch (Makefile.am): Likewise.
57218         * modules/safe-read (Makefile.am): Likewise.
57219         * modules/safe-write (Makefile.am): Likewise.
57220         * modules/same-inode (Makefile.am): Likewise.
57221         * modules/same (Makefile.am): Likewise.
57222         * modules/save-cwd (Makefile.am): Likewise.
57223         * modules/savedir (Makefile.am): Likewise.
57224         * modules/setenv (Makefile.am): Likewise.
57225         * modules/settime (Makefile.am): Likewise.
57226         * modules/sha1 (Makefile.am): Likewise.
57227         * modules/sig2str (Makefile.am): Likewise.
57228         * modules/snprintf (Makefile.am): Likewise.
57229         * modules/stat-macros (Makefile.am): Likewise.
57230         * modules/stat-time (Makefile.am): Likewise.
57231         * modules/stdbool (Makefile.am): Likewise.
57232         * modules/stdint (Makefile.am): Likewise.
57233         * modules/stdlib-safer (Makefile.am): Likewise.
57234         * modules/stpcpy (Makefile.am): Likewise.
57235         * modules/stpncpy (Makefile.am): Likewise.
57236         * modules/strcase (Makefile.am): Likewise.
57237         * modules/strcasestr (Makefile.am): Likewise.
57238         * modules/strchrnul (Makefile.am): Likewise.
57239         * modules/strcspn (Makefile.am): Likewise.
57240         * modules/strdup (Makefile.am): Likewise.
57241         * modules/strerror (Makefile.am): Likewise.
57242         * modules/strftime (Makefile.am): Likewise.
57243         * modules/strndup (Makefile.am): Likewise.
57244         * modules/strnlen (Makefile.am): Likewise.
57245         * modules/strpbrk (Makefile.am): Likewise.
57246         * modules/strsep (Makefile.am): Likewise.
57247         * modules/strstr (Makefile.am): Likewise.
57248         * modules/strtod (Makefile.am): Likewise.
57249         * modules/strtoimax (Makefile.am): Likewise.
57250         * modules/strtok_r (Makefile.am): Likewise.
57251         * modules/strtol (Makefile.am): Likewise.
57252         * modules/strtoll (Makefile.am): Likewise.
57253         * modules/strtoul (Makefile.am): Likewise.
57254         * modules/strtoull (Makefile.am): Likewise.
57255         * modules/strtoumax (Makefile.am): Likewise.
57256         * modules/strverscmp (Makefile.am): Likewise.
57257         * modules/sys_socket (Makefile.am): Likewise.
57258         * modules/sys_stat (Makefile.am): Likewise.
57259         * modules/sysexits (Makefile.am): Likewise.
57260         * modules/time_r (Makefile.am): Likewise.
57261         * modules/timegm (Makefile.am): Likewise.
57262         * modules/timespec (Makefile.am): Likewise.
57263         * modules/tmpfile-safer (Makefile.am): Likewise.
57264         * modules/trim (Makefile.am): Likewise.
57265         * modules/unistd-safer (Makefile.am): Likewise.
57266         * modules/unlinkdir (Makefile.am): Likewise.
57267         * modules/unlocked-io (Makefile.am): Likewise.
57268         * modules/userspec (Makefile.am): Likewise.
57269         * modules/utime (Makefile.am): Likewise.
57270         * modules/utimecmp (Makefile.am): Likewise.
57271         * modules/utimens (Makefile.am): Likewise.
57272         * modules/vasnprintf (Makefile.am): Likewise.
57273         * modules/vasprintf (Makefile.am): Likewise.
57274         * modules/vsnprintf (Makefile.am): Likewise.
57275         * modules/xalloc (Makefile.am): Likewise.
57276         * modules/xgetcwd (Makefile.am): Likewise.
57277         * modules/xnanosleep (Makefile.am): Likewise.
57278         * modules/xreadlink (Makefile.am): Likewise.
57279         * modules/xstrtod (Makefile.am): Likewise.
57280         * modules/xstrtol (Makefile.am): Likewise.
57281         * modules/xstrtold (Makefile.am): Likewise.
57282         * modules/yesno (Makefile.am): Likewise.
57283         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
57284
57285 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57286
57287         * modules/error (Makefile.am): Distribute files through
57288         EXTRA_DIST, not lib_SOURCES.
57289
57290 2006-10-12  Eric Blake  <ebb9@byu.net>
57291
57292         * modules/error (Makefile.am): Distribute files in /lib.
57293         * modules/obstack (Makefile.am): Likewise.
57294
57295 2006-10-12  Bruno Haible  <bruno@clisp.org>
57296
57297         * modules/acl (Makefile.am): Distribute all files in lib/ through
57298         EXTRA_DIST.
57299         * modules/arcfour (Makefile.am): Likewise.
57300         * modules/arctwo (Makefile.am): Likewise.
57301         * modules/argmatch (Makefile.am): Likewise.
57302         * modules/argz (Makefile.am): Likewise.
57303         * modules/atexit (Makefile.am): Likewise.
57304         * modules/backupfile (Makefile.am): Likewise.
57305         * modules/c-strtod (Makefile.am): Likewise.
57306         * modules/c-strtold (Makefile.am): Likewise.
57307         * modules/calloc (Makefile.am): Likewise.
57308         * modules/canon-host (Makefile.am): Likewise.
57309         * modules/canonicalize (Makefile.am): Likewise.
57310         * modules/chdir-long (Makefile.am): Likewise.
57311         * modules/chdir-safer (Makefile.am): Likewise.
57312         * modules/check-version (Makefile.am): Likewise.
57313         * modules/chown (Makefile.am): Likewise.
57314         * modules/cloexec (Makefile.am): Likewise.
57315         * modules/close-stream (Makefile.am): Likewise.
57316         * modules/closeout (Makefile.am): Likewise.
57317         * modules/crc (Makefile.am): Likewise.
57318         * modules/cycle-check (Makefile.am): Likewise.
57319         * modules/des (Makefile.am): Likewise.
57320         * modules/dirfd (Makefile.am): Likewise.
57321         * modules/dirname (Makefile.am): Likewise.
57322         * modules/dup2 (Makefile.am): Likewise.
57323         * modules/euidaccess (Makefile.am): Likewise.
57324         * modules/exclude (Makefile.am): Likewise.
57325         * modules/exitfail (Makefile.am): Likewise.
57326         * modules/fcntl-safer (Makefile.am): Likewise.
57327         * modules/file-type (Makefile.am): Likewise.
57328         * modules/fileblocks (Makefile.am): Likewise.
57329         * modules/filemode (Makefile.am): Likewise.
57330         * modules/filenamecat (Makefile.am): Likewise.
57331         * modules/fnmatch (Makefile.am): Likewise.
57332         * modules/fopen-safer (Makefile.am): Likewise.
57333         * modules/fpending (Makefile.am): Likewise.
57334         * modules/fprintftime (Makefile.am): Likewise.
57335         * modules/free (Makefile.am): Likewise.
57336         * modules/fsusage (Makefile.am): Likewise.
57337         * modules/ftruncate (Makefile.am): Likewise.
57338         * modules/fts (Makefile.am): Likewise.
57339         * modules/gc (Makefile.am): Likewise.
57340         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57341         * modules/getaddrinfo (Makefile.am): Likewise.
57342         * modules/getcwd (Makefile.am): Likewise.
57343         * modules/getdelim (Makefile.am): Likewise.
57344         * modules/getdomainname (Makefile.am): Likewise.
57345         * modules/getgroups (Makefile.am): Likewise.
57346         * modules/gethostname (Makefile.am): Likewise.
57347         * modules/gethrxtime (Makefile.am): Likewise.
57348         * modules/getline (Makefile.am): Likewise.
57349         * modules/getloadavg (Makefile.am): Likewise.
57350         * modules/getlogin_r (Makefile.am): Likewise.
57351         * modules/getopt (Makefile.am): Likewise.
57352         * modules/getpass (Makefile.am): Likewise.
57353         * modules/getpass-gnu (Makefile.am): Likewise.
57354         * modules/getsubopt (Makefile.am): Likewise.
57355         * modules/gettime (Makefile.am): Likewise.
57356         * modules/gettimeofday (Makefile.am): Likewise.
57357         * modules/getugroups (Makefile.am): Likewise.
57358         * modules/getusershell (Makefile.am): Likewise.
57359         * modules/glob (Makefile.am): Likewise.
57360         * modules/group-member (Makefile.am): Likewise.
57361         * modules/hard-locale (Makefile.am): Likewise.
57362         * modules/hash (Makefile.am): Likewise.
57363         * modules/hmac-md5 (Makefile.am): Likewise.
57364         * modules/hmac-sha1 (Makefile.am): Likewise.
57365         * modules/human (Makefile.am): Likewise.
57366         * modules/idcache (Makefile.am): Likewise.
57367         * modules/imaxabs (Makefile.am): Likewise.
57368         * modules/imaxdiv (Makefile.am): Likewise.
57369         * modules/inet_ntop (Makefile.am): Likewise.
57370         * modules/inet_pton (Makefile.am): Likewise.
57371         * modules/inttostr (Makefile.am): Likewise.
57372         * modules/isapipe (Makefile.am): Likewise.
57373         * modules/lchown (Makefile.am): Likewise.
57374         * modules/long-options (Makefile.am): Likewise.
57375         * modules/lstat (Makefile.am): Likewise.
57376         * modules/malloc (Makefile.am): Likewise.
57377         * modules/mathl (Makefile.am): Likewise.
57378         * modules/mbchar (Makefile.am): Likewise.
57379         * modules/md2 (Makefile.am): Likewise.
57380         * modules/md4 (Makefile.am): Likewise.
57381         * modules/md5 (Makefile.am): Likewise.
57382         * modules/memcasecmp (Makefile.am): Likewise.
57383         * modules/memchr (Makefile.am): Likewise.
57384         * modules/memcmp (Makefile.am): Likewise.
57385         * modules/memcoll (Makefile.am): Likewise.
57386         * modules/memcpy (Makefile.am): Likewise.
57387         * modules/memmem (Makefile.am): Likewise.
57388         * modules/memmove (Makefile.am): Likewise.
57389         * modules/mempcpy (Makefile.am): Likewise.
57390         * modules/memrchr (Makefile.am): Likewise.
57391         * modules/memset (Makefile.am): Likewise.
57392         * modules/memxor (Makefile.am): Likewise.
57393         * modules/mkancesdirs (Makefile.am): Likewise.
57394         * modules/mkdir (Makefile.am): Likewise.
57395         * modules/mkdir-p (Makefile.am): Likewise.
57396         * modules/mkdtemp (Makefile.am): Likewise.
57397         * modules/mkstemp (Makefile.am): Likewise.
57398         * modules/mktime (Makefile.am): Likewise.
57399         * modules/modechange (Makefile.am): Likewise.
57400         * modules/mountlist (Makefile.am): Likewise.
57401         * modules/nanosleep (Makefile.am): Likewise.
57402         * modules/openat (Makefile.am): Likewise.
57403         * modules/pagealign_alloc (Makefile.am): Likewise.
57404         * modules/physmem (Makefile.am): Likewise.
57405         * modules/poll (Makefile.am): Likewise.
57406         * modules/posixtm (Makefile.am): Likewise.
57407         * modules/posixver (Makefile.am): Likewise.
57408         * modules/putenv (Makefile.am): Likewise.
57409         * modules/quote (Makefile.am): Likewise.
57410         * modules/quotearg (Makefile.am): Likewise.
57411         * modules/raise (Makefile.am): Likewise.
57412         * modules/read-file (Makefile.am): Likewise.
57413         * modules/readline (Makefile.am): Likewise.
57414         * modules/readlink (Makefile.am): Likewise.
57415         * modules/readtokens (Makefile.am): Likewise.
57416         * modules/readutmp (Makefile.am): Likewise.
57417         * modules/realloc (Makefile.am): Likewise.
57418         * modules/regex (Makefile.am): Likewise.
57419         * modules/rename (Makefile.am): Likewise.
57420         * modules/rename-dest-slash (Makefile.am): Likewise.
57421         * modules/rijndael (Makefile.am): Likewise.
57422         * modules/rmdir (Makefile.am): Likewise.
57423         * modules/rpmatch (Makefile.am): Likewise.
57424         * modules/safe-read (Makefile.am): Likewise.
57425         * modules/safe-write (Makefile.am): Likewise.
57426         * modules/same (Makefile.am): Likewise.
57427         * modules/save-cwd (Makefile.am): Likewise.
57428         * modules/savedir (Makefile.am): Likewise.
57429         * modules/setenv (Makefile.am): Likewise.
57430         * modules/settime (Makefile.am): Likewise.
57431         * modules/sha1 (Makefile.am): Likewise.
57432         * modules/sig2str (Makefile.am): Likewise.
57433         * modules/snprintf (Makefile.am): Likewise.
57434         * modules/stdlib-safer (Makefile.am): Likewise.
57435         * modules/stpcpy (Makefile.am): Likewise.
57436         * modules/stpncpy (Makefile.am): Likewise.
57437         * modules/strcase (Makefile.am): Likewise.
57438         * modules/strcasestr (Makefile.am): Likewise.
57439         * modules/strchrnul (Makefile.am): Likewise.
57440         * modules/strcspn (Makefile.am): Likewise.
57441         * modules/strdup (Makefile.am): Likewise.
57442         * modules/strerror (Makefile.am): Likewise.
57443         * modules/strftime (Makefile.am): Likewise.
57444         * modules/strndup (Makefile.am): Likewise.
57445         * modules/strnlen (Makefile.am): Likewise.
57446         * modules/strpbrk (Makefile.am): Likewise.
57447         * modules/strsep (Makefile.am): Likewise.
57448         * modules/strstr (Makefile.am): Likewise.
57449         * modules/strtod (Makefile.am): Likewise.
57450         * modules/strtoimax (Makefile.am): Likewise.
57451         * modules/strtok_r (Makefile.am): Likewise.
57452         * modules/strtol (Makefile.am): Likewise.
57453         * modules/strtoll (Makefile.am): Likewise.
57454         * modules/strtoul (Makefile.am): Likewise.
57455         * modules/strtoull (Makefile.am): Likewise.
57456         * modules/strtoumax (Makefile.am): Likewise.
57457         * modules/strverscmp (Makefile.am): Likewise.
57458         * modules/time_r (Makefile.am): Likewise.
57459         * modules/timegm (Makefile.am): Likewise.
57460         * modules/tmpfile-safer (Makefile.am): Likewise.
57461         * modules/unistd-safer (Makefile.am): Likewise.
57462         * modules/unlinkdir (Makefile.am): Likewise.
57463         * modules/userspec (Makefile.am): Likewise.
57464         * modules/utime (Makefile.am): Likewise.
57465         * modules/utimecmp (Makefile.am): Likewise.
57466         * modules/utimens (Makefile.am): Likewise.
57467         * modules/vasnprintf (Makefile.am): Likewise.
57468         * modules/vasprintf (Makefile.am): Likewise.
57469         * modules/vsnprintf (Makefile.am): Likewise.
57470         * modules/xalloc (Makefile.am): Likewise.
57471         * modules/xgetcwd (Makefile.am): Likewise.
57472         * modules/xnanosleep (Makefile.am): Likewise.
57473         * modules/xreadlink (Makefile.am): Likewise.
57474         * modules/xstrtod (Makefile.am): Likewise.
57475         * modules/xstrtol (Makefile.am): Likewise.
57476         * modules/xstrtold (Makefile.am): Likewise.
57477         * modules/yesno (Makefile.am): Likewise.
57478
57479 2006-10-12  Jim Meyering  <jim@meyering.net>
57480
57481         * m4/getloadavg.m4: Revert the change below.
57482
57483         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
57484         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
57485         fail with a symlink, which is what coreutils' ./bootstrap now
57486         creates by default.
57487
57488 2006-10-12  Bruno Haible  <bruno@clisp.org>
57489
57490         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
57491         mingw.
57492         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
57493         MSVC and mingw explicitly.
57494
57495 2006-10-11  Simon Josefsson  <jas@extundo.com>
57496             Bruno Haible  <bruno@clisp.org>
57497
57498         Add support for multiple gnulib-tool invocations in the scope of a
57499         single configure.ac file.
57500         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
57501         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
57502         with the same contents as the _LIBADD variable.
57503         (func_emit_initmacro_start, func_emit_initmacro_end,
57504         func_emit_initmacro_done): New functions.
57505         (func_import, func_create_testdir): Invoke them. Allow the identifiers
57506         gl_LIBOBJS and gl_LTLIBOBJS.
57507
57508 2006-10-11  Bruno Haible  <bruno@clisp.org>
57509
57510         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
57511         (func_create_testdir): Don't create po/Makefile.am, don't invoke
57512         autoreconf. Instead, invoke autopoint explicitly but move back the
57513         *.m4 files from gnulib.
57514
57515 2006-10-11  Bruno Haible  <bruno@clisp.org>
57516
57517         * gnulib-tool (func_usage): Make module names after --create-testdir
57518         optional.
57519         (func_create_testdir): If no module was specified, use nearly all
57520         modules.
57521
57522 2006-10-12  Jim Meyering  <jim@meyering.net>
57523
57524         Big performance improvement for fts-based tools that use FTS_NOSTAT.
57525         Avoid spurious inode-mismatch problems on non-POSIX file systems.
57526         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
57527         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
57528         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
57529         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
57530         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
57531         (fts_set_stat_required): New function.
57532         (fts_open): Defer the calls to fts_stat, if possible or requested.
57533         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
57534         into fts_stat itself.
57535         (fts_read): Perform any required (deferred) fts_stat call.
57536         (fts_build): Likewise, for the directory we're about to open and read.
57537         In the readdir loop, carefully decide whether each entry will require
57538         an eventual call to fts_stat, using dirent.d_type info if available.
57539         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
57540         a command line argument into this function.  Update all callers.
57541         Map a return value of FTS_DOT to FTS_D for a command line argument.
57542         * modules/fts (Depends-on): Add d-type.  Alphabetize.
57543         Thanks to Miklos Szeredi for his tenacity and for the initial
57544         bug report about "find" failing on a FUSE-based file system.
57545
57546         * lib/fts.c (fts_open): Use consistent indentation.
57547
57548 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57549
57550         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
57551         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
57552         reported by Jim Meyering.  All uses of cache variables renamed
57553         to match Autoconf's.
57554         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
57555         the other one.
57556
57557         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
57558         Fix misspelling in diagnostic.
57559
57560 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57561
57562         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
57563         defined.  Problem reported by Matthew Woehlke.
57564
57565         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
57566         Add support for Tandem NonStop R series.
57567         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
57568         Use new macro.
57569
57570         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
57571         (has_trailing_slash): Omit size arg; all callers changed.
57572         Omit 'inline', since it doesn't help performance and we'd
57573         need to configure it.
57574         Don't count //, ///, etc. as having a trailing slash.
57575         As a side effect, this removes a C99ism reported by Matthew Woehlke.
57576         (rpl_rename_dest_slash): On failure, use rename's errno rather
57577         than (in some cases) an incorrect or junk errno.
57578         Simplify code by removing need to compute length; this does
57579         cause it to make two passes instead of one over the file name,
57580         but it's worth it.
57581
57582         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
57583         change, since Autoconf's version may no longer be appropriate now
57584         that we are using CVS Autoconf's version.  Add support for Tandem.
57585
57586 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57587             Bruno Haible  <bruno@clisp.org>
57588
57589         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
57590         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
57591         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
57592         gl_AC_TYPE_LONG_LONG.
57593
57594         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
57595         instead of HAVE_LONG_LONG.
57596         * lib/printf-args.c (printf_fetchargs): Likewise.
57597         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57598         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57599         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
57600         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
57601         gl_AC_TYPE_LONG_LONG.
57602
57603 2006-10-11  Bruno Haible  <bruno@clisp.org>
57604
57605         * m4/longlong.m4: Add comments.
57606         * m4/ulonglong.m4: Likewise.
57607
57608 2006-10-10  Bruno Haible  <bruno@clisp.org>
57609
57610         Make it possible to #define stpcpy, strdup to aliases.
57611         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
57612         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
57613
57614 2006-10-10  Bruno Haible  <bruno@clisp.org>
57615
57616         Make it possible to #define gcd to an alias.
57617         * lib/gcd.c: Include config.h.
57618
57619 2006-10-10  Bruno Haible  <bruno@clisp.org>
57620
57621         Make it possible to #define c_isascii to an alias.
57622         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
57623         defined. Undefine the macros before defining them, to avoid gcc
57624         warnings.
57625         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
57626         define NO_C_CTYPE_MACROS early.
57627
57628 2006-10-10  Bruno Haible  <bruno@clisp.org>
57629
57630         Make it possible to #define set_program_name to an alias.
57631         * lib/progname.c: Don't undefine set_program_name; instead, undefine
57632         ENABLE_RELOCATABLE early.
57633
57634 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57635
57636         Port to Tandem NSK OSS, which has 64-bit signed int but at most
57637         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
57638         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
57639         More generally, don't assume that 64-bit signed int is available
57640         if unsigned int is, and vice versa.
57641         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
57642         unsigned symbols, not on their signed counterparts.
57643         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
57644         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
57645         (UINT64_C, UINTMAX_C):
57646         Likewise.
57647         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
57648         unsigned counterparts.
57649         (Have_long_long, Unsigned): New macros.
57650         (Int): Renamed from INT.
57651         (strtoimax): Use the new macros.
57652         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
57653         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
57654         * modules/inttypes (inttypes.h): Substitute
57655         HAVE_UNSIGNED_LONG_LONG_INT.
57656         * modules/stdint (stdint.h): Likewise.
57657         (Files): Add m4/ulonglong.m4.
57658
57659 2006-10-10  Bruno Haible  <bruno@clisp.org>
57660
57661         Fix a gcc -Wshadow warning.
57662         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
57663         to 'bucket'.
57664         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
57665         gl_linked_indexof_from_to): Likewise.
57666         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
57667         Likewise.
57668         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
57669         Likewise.
57670         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
57671         Reported by Eric Blake.
57672
57673 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
57674
57675         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
57676         for NetBSD.  Problem reported by Bruno Haible.
57677
57678 2006-10-09  Jim Meyering  <jim@meyering.net>
57679
57680         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
57681         Patch from Bruno Haible.
57682
57683 2006-10-09  Jim Meyering  <jim@meyering.net>
57684
57685         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
57686         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
57687         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
57688
57689 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57690
57691         Don't include <config.h> twice; this doesn't work in some cases,
57692         e.g., when config.h has "#define intmax_t long long int" and
57693         we include <config.h>, <inttypes.h>, <config.h> in that order.
57694         Problem reported by Matthew Woehlke in:
57695         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
57696         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
57697         * lib/fts-cycle.c: Don't include config.h.
57698         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
57699         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
57700         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
57701         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
57702         inttypes.h.
57703         * lib/xstrtoumax.c: Likewise.
57704         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
57705         __strtol and the like, so that this module is more like its siblings.
57706         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
57707         Remove; no longer needed now that we assume gnulib inttypes.h.
57708
57709 2006-10-08  Bruno Haible  <bruno@clisp.org>
57710
57711         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
57712         option.
57713
57714 2006-10-07  Jim Meyering  <jim@meyering.net>
57715
57716         * modules/inttypes (inttypes.h): Revert what seems to have been
57717         an inadvertent part of today's change: use "|", not "/" in the
57718         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
57719
57720 2006-10-07  Bruno Haible  <bruno@clisp.org>
57721
57722         * modules/sublist: New file.
57723
57724 2006-10-07  Bruno Haible  <bruno@clisp.org>
57725
57726         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
57727         * modules/argz (argz.h): Likewise.
57728         * modules/arpa_inet (arpa/inet.h): Likewise.
57729         * modules/byteswap (byteswap.h): Likewise.
57730         * modules/configmake (configmake.h): Likewise.
57731         * modules/fcntl (fcntl.h): Likewise.
57732         * modules/fnmatch (fnmatch.h): Likewise.
57733         * modules/getopt (getopt.h): Likewise.
57734         * modules/glob (glob.h): Likewise.
57735         * modules/inttypes (inttypes.h): Likewise.
57736         * modules/netinet_in (netinet/in.h): Likewise.
57737         * modules/poll (poll.h): Likewise.
57738         * modules/stdbool (stdbool.h): Likewise.
57739         * modules/stdint (stdint.h): Likewise.
57740         * modules/sys_select (sys/select.h): Likewise.
57741         * modules/sys_socket (sys/socket.h): Likewise.
57742         * modules/sys_stat (sys/stat.h): Likewise.
57743         * modules/sysexits (sysexits.h): Likewise.
57744         * modules/unistd (unistd.h): Likewise.
57745         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57746         Add a "DO NOT EDIT" comment to the generated file.
57747         (func_import): Likewise for gnulib-comp.m4.
57748
57749 2006-10-07  Bruno Haible  <bruno@clisp.org>
57750
57751         * lib/gl_sublist.h: New file.
57752         * lib/gl_sublist.c: New file.
57753
57754 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57755
57756         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
57757         name (relative to the original working directory) and the file
57758         name component (relative to the temporary working directory).  All
57759         callers changed.
57760         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
57761         * lib/mkdir-p.c (make_dir_parents): Likewise.
57762         * lib/mkdir-p.h (make_dir_parents): Likewise.
57763
57764 2006-10-06  Eric Blake  <ebb9@byu.net>
57765
57766         Define several macros for use by the clean-temp module.
57767         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
57768         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
57769         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
57770
57771         * lib/clean-temp.h (close_stream_temp): New declaration.
57772         * lib/clean-temp.c (includes): Pull in headers according to what
57773         other modules are in use.
57774         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
57775
57776 2006-10-06  Bruno Haible  <bruno@clisp.org>
57777
57778         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
57779         instead of fopen, fwriteerror.
57780
57781 2006-10-06  Bruno Haible  <bruno@clisp.org>
57782
57783         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
57784         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
57785         int.
57786         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
57787         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
57788         Return an error indicator.
57789         Suggested by Eric Blake.
57790
57791 2006-10-06  Bruno Haible  <bruno@clisp.org>
57792
57793         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
57794         Reported by Eric Blake.
57795
57796 2006-10-06  Bruno Haible  <bruno@clisp.org>
57797
57798         * modules/closeout (Description): Mention stderr too.
57799
57800 2006-10-06  Bruno Haible  <bruno@clisp.org>
57801         and Paul Eggert  <eggert@cs.ucla.edu>
57802
57803         * lib/closeout.c (close_stdout): Also close stderr.
57804         * lib/closeout.h: Update comment.
57805
57806 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57807
57808         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
57809         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
57810         * lib/dirchownmod.c: Include lchown.h.
57811         * lib/lchown.c: Don't include files that lchown.h now includes.
57812         Don't declare chown, since lchown.h now does that.
57813         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
57814         (lchown): Define to rpl_chown if lchown is declared but
57815         does not exist.  Declare using a prototype if lchown is not
57816         declared.  Add a copyright notice.
57817         * lib/mkstemp.h: Include <unistd.h>.
57818         * lib/openat.c: Include lchown.h.
57819
57820         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
57821         we now test for that separately.
57822         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
57823         rather than O_NOFOLLOW, when testing whether it's possible to
57824         avoid a race condition reliably.
57825         * lib/savewd.c (savewd_chdir): Likewise.
57826
57827         Remove macros that are no longer needed now that stdint.h is
57828         reliable.
57829         * lib/fsusage.c (UINTMAX_MAX): Remove.
57830         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
57831         * lib/utimecmp.c (SIZE_MAX): Remove.
57832
57833         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
57834
57835         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
57836         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
57837         O_NOATIME works.
57838
57839 2006-10-05  Bruno Haible  <bruno@clisp.org>
57840
57841         * lib/gl_list.h (gl_sortedlist_search_from_to,
57842         gl_sortedlist_indexof_from_to): New declarations.
57843         (gl_list_implementation): New fields sortedlist_search_from_to,
57844         sortedlist_indexof_from_to.
57845         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
57846         inline functions.
57847         * lib/gl_list.c (gl_sortedlist_search_from_to,
57848         gl_sortedlist_indexof_from_to): New functions.
57849         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
57850         function.
57851         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
57852         (gl_array_sortedlist_search_from_to): New function.
57853         (gl_array_list_implementation): Update.
57854         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
57855         function.
57856         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
57857         (gl_carray_sortedlist_search_from_to): New function.
57858         (gl_carray_list_implementation): Update.
57859         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
57860         gl_linked_sortedlist_indexof_from_to): New functions.
57861         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57862         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57863         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
57864         gl_tree_sortedlist_indexof_from_to): New functions.
57865         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57866         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57867         Update.
57868         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57869         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
57870         Update.
57871
57872 2006-10-05  Bruno Haible  <bruno@clisp.org>
57873
57874         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
57875         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
57876         (struct gl_list_implementation): Add fields search_from_to,
57877         indexof_from_to. Remove fields search, indexof.
57878         (gl_list_search): Use the search_from_to method.
57879         (gl_list_search_from, gl_list_search_from_to): New functions.
57880         (gl_list_indexof): Use the indexof_from_to method.
57881         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57882         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
57883         (gl_list_search_from, gl_list_search_from_to): New functions.
57884         (gl_list_indexof): Use the indexof_from_to method.
57885         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57886         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
57887         gl_array_indexof. Add start_index, end_index arguments.
57888         (gl_array_search_from_to): Renamed from gl_array_search. Add
57889         start_index, end_index arguments.
57890         (gl_array_remove, gl_array_list_implementation): Update.
57891         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
57892         gl_carray_indexof. Add start_index, end_index arguments.
57893         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
57894         start_index, end_index arguments.
57895         (gl_carray_remove, gl_carray_list_implementation): Update.
57896         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
57897         gl_linked_search. Add start_index, end_index arguments.
57898         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
57899         start_index, end_index arguments.
57900         (gl_linked_remove): Update.
57901         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57902         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57903         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
57904         field to 'size_t'.
57905         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
57906         gl_tree_search. Add start_index, end_index arguments.
57907         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57908         start_index, end_index arguments.
57909         (gl_tree_remove): Update.
57910         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57911         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57912         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
57913         function.
57914         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
57915         gl_tree_search. Add start_index, end_index arguments.
57916         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57917         start_index, end_index arguments.
57918         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57919         Update.
57920         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57921
57922 2006-10-05  Bruno Haible  <bruno@clisp.org>
57923
57924         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
57925
57926         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
57927         fwriteerror_temp): New declarations.
57928         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
57929         (descriptors): New variable.
57930         (cleanup): First, close the descriptors.
57931         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
57932         fclose_temp, fwriteerror_temp): New functions.
57933
57934 2006-10-04  Jim Meyering  <jim@meyering.net>
57935
57936         * lib/fts.c (fts_open): Tiny comment change.
57937
57938 2006-10-04  Bruno Haible  <bruno@clisp.org>
57939
57940         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
57941         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
57942         gl_LOCK_BODY.
57943         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
57944         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
57945         gl_LOCK_EARLY_BODY.
57946         (gl_LOCK): Require gl_LOCK_BODY.
57947
57948 2006-10-04  Bruno Haible  <bruno@clisp.org>
57949
57950         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
57951         (gl_oset_search_atleast): New declaration.
57952         (struct gl_oset_implementation): Add field 'search_atleast'.
57953         (gl_oset_search_atleast): New inline function.
57954         * lib/gl_oset.c (gl_oset_search_atleast): New function.
57955         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
57956         (gl_array_oset_implementation): Update.
57957         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
57958         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
57959         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
57960
57961 2006-10-04  Bruno Haible  <bruno@clisp.org>
57962
57963         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
57964
57965 2006-10-03  Bruno Haible  <bruno@clisp.org>
57966
57967         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
57968         from gl_avltreehash_list_implementation.
57969
57970 2006-10-03  Bruno Haible  <bruno@clisp.org>
57971
57972         * lib/gl_oset.c (gl_oset_add): Fix return type.
57973
57974 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
57975
57976         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
57977
57978 2006-10-02  Eric Blake  <ebb9@byu.net>
57979
57980         * modules/strnlen (Depends-on): Add extensions.
57981
57982 2006-10-02  Eric Blake  <ebb9@byu.net>
57983
57984         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
57985         definition in 2.60+.
57986
57987 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57988
57989         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
57990         checks.
57991
57992 2006-10-02  Bruno Haible  <bruno@clisp.org>
57993
57994         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
57995         to the AUTOMAKE_OPTIONS.
57996         Reported by Jim Meyering.
57997
57998 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57999
58000         Work around bug in Solaris 10 /proc file system:
58001         /proc/self/fd/NNN/.. isn't the parent directory of
58002         the directory whose file descriptor is NNN.  This needs to
58003         be worked around at run time, not compile time, since a
58004         program might be built on Solaris 8, where things work, and
58005         run on Solaris 10.
58006         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
58007         to use the following interface instead:
58008         (OPENAT_BUFFER_SIZE): New macro.
58009         (openat_proc_name): New function.
58010         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
58011         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
58012         Likewise.
58013         * lib/openat-proc.c: New file.
58014         * modules/openat (Files): Add lib/openat-proc.c.
58015         (Depends-on): Add same-inode, stdbool.
58016         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
58017
58018 2006-09-29  Bruno Haible  <bruno@clisp.org>
58019
58020         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
58021         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
58022         argument. Set stdout_closed before testing for ferror, not after.
58023         (fwriteerror, fwriteerror_no_ebadf): New functions.
58024
58025 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58026
58027         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
58028
58029 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
58030
58031         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
58032         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
58033
58034 2006-09-28  Jim Meyering  <jim@meyering.net>
58035
58036         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
58037         Include <unistd.h>.
58038
58039 2006-09-28  Bruno Haible  <bruno@clisp.org>
58040
58041         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
58042         * modules/linkedhash-list (Depends-on): Likewise.
58043         * modules/rbtreehash-list (Depends-on): Likewise.
58044
58045 2006-09-28  Bruno Haible  <bruno@clisp.org>
58046
58047         * lib/strndup.h: Simplify the redefinition of strndup.
58048         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
58049         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
58050
58051 2006-09-28  Bruno Haible  <bruno@clisp.org>
58052
58053         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
58054         * lib/gl_linkedhash_list.c: Likewise.
58055         * lib/gl_rbtreehash_list.c: Likewise.
58056
58057 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58058
58059         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
58060         getaddrinfo.
58061
58062         * lib/__fpending.h: Don't include <stdio_ext.h> unless
58063         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
58064         it causes <stdio_ext.h> to cause a compile-time error.
58065         Problem reported by Nelson H. F. Beebe.
58066         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
58067         of HAVE_DECL___PENDING.
58068
58069         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
58070         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
58071         declaration.
58072
58073 2006-09-27  Jim Meyering  <jim@meyering.net>
58074
58075         This file could end up with a definition for a function
58076         named __strndup, rather than rpl_strndup on a system with
58077         incomplete weak_alias support.
58078         * lib/strndup.c (strndup): Rename from __strndup.
58079         Remove #defines that used to map __strndup to strndup.
58080         Don't use K&R prototypes.
58081         Remove LIBC-related code, since this file is not sync'd with glibc.
58082         * lib/strndup.h: Revamp, accordingly.
58083         * m4/strndup.m4: Modernize.
58084
58085 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58086
58087         * modules/savewd (Depends-on): Add 'raise'.
58088         * lib/savewd.c: Include <signal.h>, for 'raise'.
58089
58090 2006-09-26  Jim Meyering  <jim@meyering.net>
58091
58092         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
58093         when we detect Darwin 8.7.0's acl_get_file bug.
58094         Rearrange to perform the new (below) run-test while $LIBS
58095         contains any acl-related library.  Set USE_ACL at the end.
58096         (gl_ACL_GET_FILE): New function.
58097
58098 2006-09-26  Eric Blake  <ebb9@byu.net>
58099
58100         * lib/verror.c: Include <config.h> unconditionally.
58101
58102 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
58103
58104         * modules/clock-time (Maintainer): Add self.
58105         * modules/getlogin_r (Depends-on): Add extensions.
58106
58107 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58108
58109         * modules/clock-time: New module.
58110         * modules/nanosleep (Depends-on): Add clock-time.
58111         * modules/gethrxtime (Depends-on): Likewise.
58112         * modules/gettime (Depends-on): Likewise.
58113         * modules/settime (Depends-on): Likewise.
58114
58115         * modules/fts-lgpl: Depend on openat.
58116         * modules/mkancesdirs: Depend on savewd.
58117         * modules/mkdir-p: Likewise.
58118
58119 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58120
58121         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
58122
58123         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
58124         `gl_have_arbitrary_file_name_length_limit' to
58125         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
58126         actually works between configure runs.
58127
58128 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58129             Bruno Haible  <bruno@clisp.org>
58130
58131         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
58132
58133 2006-09-25  Jim Meyering  <jim@meyering.net>
58134
58135         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
58136         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
58137
58138 2006-09-25  Eric Blake  <ebb9@byu.net>
58139
58140         * gnulib-tool (func_import, func_create_testdir): Fix typos in
58141         exec's in 2006-09-18 patch when shuffling fds.
58142
58143 2006-09-25  Bruno Haible  <bruno@clisp.org>
58144
58145         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
58146         Reported by Jim Meyering.
58147
58148 2006-09-24  Jim Meyering  <jim@meyering.net>
58149
58150         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
58151         compare a pointer against a literal "0".  That caused failures with
58152         at least HP-UX's hpcc.
58153
58154 2006-09-22  Simon Josefsson  <jas@extundo.com>
58155
58156         * modules/gc-sha1:
58157         * modules/gc-md4:
58158         * modules/gc-hmac-sha1:
58159         * modules/gc-hmac-md5:
58160         * modules/gc-des:
58161         * modules/gc-arcfour: Distribute more files.
58162
58163 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58164
58165         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
58166         (gl_linked_iterator_from_to): Initialize struct completely.
58167         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
58168         (gl_tree_iterator_from_to): Likewise
58169         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
58170         * lib/gl_array_list.c [lint] (gl_array_iterator)
58171         (gl_array_iterator_from_to): Likewise.
58172         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
58173         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
58174         (gl_carray_iterator_from_to): Likewise.
58175
58176         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
58177         * lib/md4.c (md4_process_block): Remove unused variable.
58178         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
58179         parentheses for clarity.
58180
58181 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58182
58183         * modules/bison-i18n (Depends-on): Add gettext.
58184
58185 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58186
58187         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
58188         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58189         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
58190         also add missing comma that caused broken test.
58191         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
58192         stdlib.h, for `abort'.
58193         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
58194         variables.
58195         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
58196         include unistd.h if present, for `rmdir'.
58197         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
58198         variables.
58199         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
58200         in the process include standard headers for prototypes.
58201         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
58202         gets declared on GNU/Linux.
58203         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
58204         unistd.h, for `rmdir'.
58205         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
58206
58207         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
58208         always true.
58209         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
58210
58211         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
58212
58213 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58214
58215         * gnulib-tool (func_version): Create output all at once.  This
58216         may help avoid triggering unnecessary SIGPIPEs, and at any
58217         rate it doesn't hurt.
58218
58219 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58220             Bruno Haible  <bruno@clisp.org>
58221
58222         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
58223         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58224         * m4/signed.m4 (bh_C_SIGNED): Likewise.
58225
58226         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
58227         (gl_FUNC_VASPRINTF): Invoke it.
58228
58229 2006-09-22  Bruno Haible  <bruno@clisp.org>
58230
58231         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
58232         getloadavg.c as first argument.
58233
58234 2006-09-22  Bruno Haible  <bruno@clisp.org>
58235
58236         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
58237         at the beginning of the gl_INIT macro.
58238         * modules/getloadavg (configure.ac): Pass $gl_source_base to
58239         gl_GETLOADAVG.
58240
58241 2006-09-22  Bruno Haible  <bruno@clisp.org>
58242
58243         * gnulib-tool (func_create_megatestdir): Don't include the config-h
58244         module.
58245         Suggested by Ralf Wildenhues.
58246
58247 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58248
58249         Import this patch from libc:
58250
58251         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
58252
58253         * lib/regex_internal.c (re_string_reconstruct): Handle
58254         offset < pstr->valid_raw_len && pstr->offsets_needed case.
58255         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
58256         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
58257         re_string_context_at.
58258
58259         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
58260         now requires it.
58261         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
58262         gl_REGEX now does it for us.
58263         (gl_REGEX): Add test taken from
58264         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
58265
58266         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
58267         Check that large offsets work.  Modernize Autoconf usages.
58268         Prefer "yes" to mean a good thing rather than a bad.
58269         Don't put "#define mkstemp" in config.h, as this might interfere
58270         with standard system headers that "#define mkstemp mkstemp64".
58271
58272         * modules/mkstemp (Depends-on): Add extensions, so that
58273         mkstemp is visible on some platforms.
58274         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
58275         (Include): Change to "mkstemp.h" from <stdlib.h>.
58276         (Files): Add mkstemp.h.
58277
58278         * lib/mkstemp.h: New file, since some standard headers
58279         #define mkstemp.
58280         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
58281         Include "mkstemp.h".
58282         Make the _LIBC code resemble glibc original more,
58283         e.g., use K&R style.
58284         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
58285         (mkstemp): Remove, since mkstemp.h does this for us.
58286         * lib/stdlib--.h: Include mkstemp.h.
58287
58288         Import this patch from libc:
58289
58290         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58291
58292         * lib/tempname.c (__gen_tempname): Change attempts_min
58293         into a macro.  Use preprocessor to decide how to initialize
58294         attempts [Coverity CID 67].
58295
58296 2006-09-20  Bruno Haible  <bruno@clisp.org>
58297
58298         * lib/mkdtemp.c: Import from libc.
58299         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58300                 * sysdeps/posix/tempname.c (__gen_tempname): Change
58301                 attempts_min into a macro.  Use preprocessor to decide how to
58302                 initialize attempts [Coverity CID 67].
58303         2001-11-27  Paul Eggert  <eggert@twinsun.com>
58304                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
58305                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
58306
58307 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58308
58309         * gnulib-tool (func_exit): New function, to allow to pass the
58310         exit status portably through the trap.  Use everywhere.
58311         (--help, --version): Signal a write error.
58312         (trap): catch SIGPIPE, for write errors.
58313         Exit at the end of the trap, with the correct exit status.
58314
58315 2006-09-19  Karl Berry  <karl@gnu.org>
58316
58317         * doc/gnulib.texi: note about the license texinfo files.
58318
58319 2006-09-19  Eric Blake  <ebb9@byu.net>
58320
58321         * gnulib-tool: Avoid space-tab.
58322
58323 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58324
58325         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
58326         that prevented coreutils 6.1 from building.  Problem reported
58327         by Petter Reinholdtsen.
58328
58329 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58330
58331         * gnulib-tool (avoidlist): Fix typo that broke options like
58332         --avoid=lock that are used by coreutils bootstrap.
58333
58334 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
58335
58336         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
58337         more systematically.
58338
58339 2006-09-18  Jim Meyering  <jim@meyering.net>
58340
58341         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
58342
58343 2006-09-18  Bruno Haible  <bruno@clisp.org>
58344
58345         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
58346
58347 2006-09-18  Bruno Haible  <bruno@clisp.org>
58348
58349         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
58350         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
58351         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
58352         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
58353         * m4/gettext.m4: Require autoconf >= 2.52.
58354         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
58355         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
58356         of gl_cv_header_inttypes_h.
58357
58358 2006-09-18  Bruno Haible  <bruno@clisp.org>
58359
58360         * lib/javaversion.c: Include configmake.h.
58361
58362 2006-09-18  Bruno Haible  <bruno@clisp.org>
58363
58364         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
58365         avoid that the while loops be executed in a subshell.
58366
58367 2006-09-18  Bruno Haible  <bruno@clisp.org>
58368
58369         * MODULES.html.sh (func_module): Break long lines.
58370         Suggested by Bruce Korb <bkorb@gnu.org>.
58371
58372 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58373
58374         Speed up by a factor of 1.12.
58375         * gnulib-tool (nl): New variable.
58376         (func_import): Rewrite include directive extraction to only read each
58377         directive once.
58378
58379 2006-09-17  Bruno Haible  <bruno@clisp.org>
58380
58381         * modules/javaversion (Makefile.am): Remove DEFS setting.
58382         (Depends-on): Add configmake, for PKGDATADIR definition.
58383
58384 2006-09-17  Bruno Haible  <bruno@clisp.org>
58385
58386         * gnulib-tool (func_create_testdir): Rewrite all files at once.
58387
58388 2006-09-17  Bruno Haible  <bruno@clisp.org>
58389
58390         * gnulib-tool (func_append): New function, stolen from libtool.m4.
58391         (func_modules_transitive_closure, func_modules_add_dummy,
58392         func_modules_to_filelist, func_import, func_create_testdir,
58393         func_create_megatestdir, ...): Use it wherever possible.
58394         Suggested by Ralf Wildenhues.
58395
58396 2006-09-16  Karl Berry  <karl@gnu.org>
58397
58398         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
58399         to avoid sectioning errors.
58400         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
58401         [ifinfo]: blank line after @center-ed titles.
58402         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
58403         Spell FSF address consistently with others.
58404         (These changes approved by rms.)
58405
58406 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58407
58408         Speed up by a factor of 1.61.
58409         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
58410         already checked module names again.
58411
58412 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58413
58414         Speed up by a factor of 1.13.
58415         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
58416         for new_files, and the input to func_add_or_update.
58417
58418 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58419
58420         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
58421         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
58422
58423 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58424
58425         * modules/mkancesdirs (Depends-on): Add fcntl.
58426         * modules/savewd: New file.
58427         * MODULES.html.sh (File system functions): Add savewd.
58428
58429         * modules/configmake (Makefile.am): Add support for the
58430         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
58431
58432 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58433
58434         * m4/savewd.m4: New file.
58435
58436 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58437
58438         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
58439         (dirchownmod): New arg FD.  All callers changed.
58440         Use FD rather than opening the directory ourself, as opening is
58441         now the caller's responsibility.
58442         * lib/dirchownmod.h: Likewise.
58443         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
58444         hosts that require <sys/types.h> before <sys/stat.h>.  Include
58445         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
58446         (test_dir): Remove.
58447         (mkancesdirs): Return length of prefix of FILE that has already
58448         been made, or -2 if there is a child doing the work.  Redo
58449         algorithm so that it is O(N) rather than O(N**2).  Optimize away
58450         ".", and treat ".." specially since it might stray back into
58451         already-created areas.  Use a subprocess if necessary.  New arg
58452         WD; all users changed.  MAKE_DIR function should now return 1
58453         if it creates a directory that is not readable.  Return -2 if
58454         a child process is spun off.
58455         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
58456         Adjust signature to match code.
58457         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
58458         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
58459         all users changed.
58460         * lib/savewd.c, lib/savewd.h: New files.
58461
58462 2006-09-15  Jim Meyering  <jim@meyering.net>
58463
58464         * modules/rename-dest-slash: New module.
58465         * MODULES.html.sh (posix_compat): Add it here.
58466
58467         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
58468
58469 2006-09-15  Jim Meyering  <jim@meyering.net>
58470
58471         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
58472         file.
58473
58474         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
58475
58476 2006-09-15  Jim Meyering  <jim@meyering.net>
58477
58478         * lib/rename-dest-slash.c (has_trailing_slash): Use
58479         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
58480         (rpl_rename_dest_slash): Perform the cheaper trailing slash
58481         test before testing whether SRC is a directory.
58482         Suggestions from Bruno Haible.
58483
58484         Avoid a warning about an unused variable.
58485         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
58486         into the #ifdef block where it's used.
58487
58488         * lib/rename-dest-slash.c: New file.
58489
58490 2006-09-14  Bruno Haible  <bruno@clisp.org>
58491
58492         * lib/allocsa.c: Include <config.h> unconditionally.
58493         * lib/asnprintf.c: Likewise.
58494         * lib/asprintf.c: Likewise.
58495         * lib/c-strcasecmp.c: Likewise.
58496         * lib/c-strcasestr.c: Likewise.
58497         * lib/c-strncasecmp.c: Likewise.
58498         * lib/c-strstr.c: Likewise.
58499         * lib/classpath.c: Likewise.
58500         * lib/clean-temp.c: Likewise.
58501         * lib/concatpath.c: Likewise.
58502         * lib/copy-file.c: Likewise.
58503         * lib/csharpcomp.c: Likewise.
58504         * lib/csharpexec.c: Likewise.
58505         * lib/execute.c: Likewise.
58506         * lib/fatal-signal.c: Likewise.
58507         * lib/findprog.c: Likewise.
58508         * lib/fwriteerror.c: Likewise.
58509         * lib/gl_array_list.c: Likewise.
58510         * lib/gl_array_oset.c: Likewise.
58511         * lib/gl_avltree_list.c: Likewise.
58512         * lib/gl_avltree_oset.c: Likewise.
58513         * lib/gl_avltreehash_list.c: Likewise.
58514         * lib/gl_carray_list.c: Likewise.
58515         * lib/gl_linked_list.c: Likewise.
58516         * lib/gl_linkedhash_list.c: Likewise.
58517         * lib/gl_list.c: Likewise.
58518         * lib/gl_oset.c: Likewise.
58519         * lib/gl_rbtree_list.c: Likewise.
58520         * lib/gl_rbtree_oset.c: Likewise.
58521         * lib/gl_rbtreehash_list.c: Likewise.
58522         * lib/imaxabs.c: Likewise.
58523         * lib/imaxdiv.c: Likewise.
58524         * lib/javacomp.c: Likewise.
58525         * lib/javaexec.c: Likewise.
58526         * lib/javaversion.c: Likewise.
58527         * lib/linebreak.c: Likewise.
58528         * lib/localcharset.c: Likewise.
58529         * lib/lock.c: Likewise.
58530         * lib/mbchar.c: Likewise.
58531         * lib/mbswidth.c: Likewise.
58532         * lib/mkdtemp.c: Likewise.
58533         * lib/pipe.c: Likewise.
58534         * lib/printf-args.c: Likewise.
58535         * lib/printf-parse.c: Likewise.
58536         * lib/progname.c: Likewise.
58537         * lib/progreloc.c: Likewise.
58538         * lib/readlink.c: Likewise.
58539         * lib/sh-quote.c: Likewise.
58540         * lib/stpcpy.c: Likewise.
58541         * lib/stpncpy.c: Likewise.
58542         * lib/strcasecmp.c: Likewise.
58543         * lib/strcasestr.c: Likewise.
58544         * lib/strcspn.c: Likewise.
58545         * lib/striconv.c: Likewise.
58546         * lib/strncasecmp.c: Likewise.
58547         * lib/strnlen1.c: Likewise.
58548         * lib/strstr.c: Likewise.
58549         * lib/strtok_r.c: Likewise.
58550         * lib/tls.c: Likewise.
58551         * lib/tmpdir.c: Likewise.
58552         * lib/unicodeio.c: Likewise.
58553         * lib/unsetenv.c: Likewise.
58554         * lib/vasnprintf.c: Likewise.
58555         * lib/vasprintf.c: Likewise.
58556         * lib/wait-process.c: Likewise.
58557         * lib/xallocsa.c: Likewise.
58558         * lib/xsetenv.c: Likewise.
58559         * lib/xstriconv.c: Likewise.
58560
58561 2006-09-13  Simon Josefsson  <jas@extundo.com>
58562
58563         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
58564         that internally, suggested by Ralf Wildenhues
58565         <Ralf.Wildenhues@gmx.de>.
58566
58567 2006-09-13  Simon Josefsson  <jas@extundo.com>
58568
58569         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
58570         @LIBOBJS@.
58571         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58572
58573 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58574
58575         * lib/_fpending.c: Include <config.h> unconditionally, since we no
58576         longer worry about uses that don't define HAVE_CONFIG_H.
58577         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
58578         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
58579         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
58580         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
58581         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
58582         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
58583         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
58584         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
58585         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
58586         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
58587         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
58588         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
58589         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
58590         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
58591         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
58592         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
58593         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
58594         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
58595         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
58596         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
58597         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
58598         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
58599         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
58600         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
58601         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
58602         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
58603         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
58604         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
58605         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
58606         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
58607         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
58608         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
58609         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
58610         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
58611         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
58612         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
58613         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
58614         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
58615         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
58616         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
58617         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
58618         Likewise.
58619
58620 2006-09-13  Eric Blake  <ebb9@byu.net>
58621
58622         * lib/getopt.c: Fix typo in last commit.
58623
58624 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58625
58626         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
58627         dgettext.
58628
58629 2006-09-12  Jim Meyering  <jim@meyering.net>
58630
58631         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
58632         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
58633         Reported by Nelson H. F. Beebe.
58634
58635 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58636
58637         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
58638         program_invocation_name and program_invocation_short_name are
58639         initialized.
58640         * lib/argp-namefrob.h: Move declarations of program_invocation_name
58641         and program_invocation_short_name to argp.h, so they are visible
58642         to user programs.
58643         * lib/argp.h: Likewise
58644
58645 2006-09-10  Bruno Haible  <bruno@clisp.org>
58646
58647         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58648         m4/inttypes_h.m4, m4/uintmax_t.m4.
58649
58650 2006-09-10  Bruno Haible  <bruno@clisp.org>
58651
58652         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
58653         gl_AC_TYPE_UINTMAX_T.
58654
58655 2006-09-10  Bruno Haible  <bruno@clisp.org>
58656
58657         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
58658
58659 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58660
58661         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
58662         convention.  Text proposed by Bruno Haible.
58663         (struct argp_option): Document the use of N_() wrappers.
58664
58665         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
58666         '\v', and translate the two parts separately, instead of feeding
58667         the whole string to gettext.  This allows to exclude
58668         '\v' from the strings visible to the translator by writing doc
58669         strings as N_("..") "\v" N_("..").
58670
58671 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
58672
58673         * config/srclist.txt: Undo latest change; the bug was fixed.
58674
58675 2006-09-09  Bruno Haible  <bruno@clisp.org>
58676
58677         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
58678         assignments if building a library without libtool.
58679         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
58680         in func_emit_lib_Makefile_am.
58681         (func_import): When building a static library libfoo.a, arrange to
58682         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
58683         (func_create_testdir): Likewise.
58684         * modules/gc (configure.ac, Makefile.am): If building statically,
58685         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
58686         * modules/iconvme (configure.ac, Makefile.am): Likewise.
58687         * modules/striconv (configure.ac, Makefile.am): Likewise.
58688         Based on a suggestion by Ralf Wildenhues.
58689
58690 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58691
58692         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58693         Check for unistd.h too, since Autoconf doesn't assume POSIX.
58694         Also:
58695
58696         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58697         Add year_2050_test to catch glibc bug 2821
58698         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58699
58700         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58701         Prefer #ifdef to #if.
58702
58703         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
58704         Return from 'main' instead of calling 'exit'.
58705
58706 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58707
58708         * lib/mktime.c (guess_time_tm): Fix bug where mktime
58709         returned the maximum time_t value rather than (time_t) -1.
58710         Problem originally reported by William Bardwell
58711         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58712
58713         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58714         Moved to here ...
58715         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58716         ... from here.
58717
58718 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58719
58720         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
58721         2821 is fixed.
58722
58723 2006-09-08  Jim Meyering  <jim@meyering.net>
58724
58725         Don't make generated files read-only.  That would bother too many
58726         people.  However, do retain the ability to work when targets are
58727         read-only: remove the destination and temporary files before writing
58728         them (when generated via sed or echo), or by using the -f option for
58729         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
58730         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58731         * modules/byteswap, modules/configmake, modules/fcntl:
58732         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58733         * modules/localcharset, modules/netinet_in, modules/poll:
58734         * modules/stdbool, modules/stdint, modules/sys_select:
58735         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58736
58737 2006-09-08  Jim Meyering  <jim@meyering.net>
58738
58739         Avoid new build failure on FreeBSD 6.0.
58740         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
58741         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
58742         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
58743
58744 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58745
58746         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
58747
58748 2006-09-07  Jim Meyering  <jim@meyering.net>
58749
58750         Fix global typo in last change: use chmod u-w, not chmod u-x.
58751         Spotted by Paul Eggert and Bruce Korb.
58752         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58753         * modules/byteswap, modules/configmake, modules/fcntl:
58754         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58755         * modules/localcharset, modules/netinet_in, modules/poll:
58756         * modules/stdbool, modules/stdint, modules/sys_select:
58757         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58758
58759 2006-09-06  Jim Meyering  <jim@meyering.net>
58760
58761         Make generated files be read-only.
58762         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
58763         Ensure that each generated file is now read-only.
58764         * modules/argz: Likewise.
58765         * modules/arpa_inet: Likewise.
58766         * modules/byteswap: Likewise.
58767         * modules/configmake: Likewise.
58768         * modules/fcntl: Likewise.
58769         * modules/fnmatch: Likewise.
58770         * modules/getopt: Likewise.
58771         * modules/glob: Likewise.
58772         * modules/inttypes: Likewise.
58773         * modules/netinet_in: Likewise.
58774         * modules/poll: Likewise.
58775         * modules/stdbool: Likewise.
58776         * modules/stdint: Likewise.
58777         * modules/sys_select: Likewise.
58778         * modules/sys_socket: Likewise.
58779         * modules/sys_stat: Likewise.
58780         * modules/sysexits: Likewise.
58781         * modules/localcharset: Same as above, but continue using temporary
58782         file named "t-$@" (why different?) rather than the "$@-t" used
58783         everywhere else.
58784
58785         * modules/sysexits (Makefile.am): Replace literal occurrences
58786         of "sysexit.h" more readable, and more consistent, "$@".
58787
58788 2006-09-06  Bruno Haible  <bruno@clisp.org>
58789
58790         * modules/striconv: New file.
58791         * modules/xstriconv: New file.
58792         * MODULES.html.sh (Internationalization functions): Add striconv,
58793         xstriconv.
58794
58795 2006-09-06  Bruno Haible  <bruno@clisp.org>
58796
58797         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
58798         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
58799         not using libtool correctly.
58800
58801 2006-09-06  Bruno Haible  <bruno@clisp.org>
58802
58803         * lib/striconv.h: New file.
58804         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
58805         iconvstring.c.
58806         * lib/xstriconv.h: New file.
58807         * lib/xstriconv.c: New file.
58808
58809 2006-09-06  Bruno Haible  <bruno@clisp.org>
58810
58811         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58812         lib_..._LDFLAGS.
58813
58814 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58815
58816         * lib/argz_.h: Sync from Libtool.
58817
58818         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
58819                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58820
58821         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
58822
58823 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58824
58825         * modules/trim: New file.
58826
58827 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58828
58829         * lib/trim.h: New file.
58830         * lib/trim.c: New file.
58831
58832 2006-09-05  Bruno Haible  <bruno@clisp.org>
58833
58834         * MODULES.html.sh (String handling): Add trim.
58835
58836 2006-09-04  Karl Berry  <karl@gnu.org>
58837
58838         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
58839         until next release.
58840
58841 2006-09-03  Bruno Haible  <bruno@clisp.org>
58842
58843         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
58844         correctly.
58845
58846 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58847
58848         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
58849         not gl_GETLOADAVG.  Omit unneeded semicolons.
58850         Problems reported by Ralf Wildenhues in
58851         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58852         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
58853         at the end, which is the usual gnulib style.
58854
58855         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
58856         of doing all the work ourselves.
58857         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
58858         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
58859
58860 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58861
58862         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
58863         Problem reported by Ralf Wildenhues in
58864         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58865
58866         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
58867         HAVE_STRUCT_STATFS_F_FSTYPENAME.
58868
58869 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58870
58871         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
58872         yesterday's patch by changing test -n to test -z.
58873
58874 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58875
58876         * modules/getloadavg (Files): Add m4/getloadavg.m4.
58877         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
58878         the former is now obsolescent.
58879
58880         * modules/chdir-long (Depends-on): Add fcntl.
58881
58882 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58883
58884         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
58885         obsolescent, and programs should use gnulib instead.
58886         * m4/getloadavg.m4: New file, with contents taken from Autoconf
58887         but with prefixes changed.
58888
58889 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58890
58891         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
58892         or stdbool.h, because they might not exist while configuring.
58893
58894         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
58895         Don't include unistd.h or limits.h; not needed, since chdir-long.h
58896         does that for us.
58897         (O_DIRECTORY): Remove.
58898
58899 2006-08-31  Eric Blake  <ebb9@byu.net>
58900
58901         * gnulib-tool: Don't let emacs change spaces to TAB.
58902
58903 2006-08-31  Bruno Haible  <bruno@clisp.org>
58904
58905         * gnulib-tool: When calling func_import more than once, do it in a
58906         subshell.
58907         Reported by Eric Blake <ebb9@byu.net>.
58908
58909 2006-08-31  Bruno Haible  <bruno@clisp.org>
58910
58911         * gnulib-tool (nl): Remove variable.
58912         (sed_transform_lib_file): Use more robust test for config-h module.
58913         (func_import): Fix typo in 2006-08-25 patch.
58914
58915 2006-08-31  Bruno Haible  <bruno@clisp.org>
58916
58917         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
58918         specified, augment Makefile.am variables instead of assigning them.
58919
58920 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58921
58922         Work around a bug in both the Linux and SunOS 64-bit kernels:
58923         nanosleep mishandles sleeps for longer than 2**31 seconds.
58924         Problem reported by Frank v Waveren in
58925         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58926         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
58927         Check for nanosleep bug.
58928         (LIB_NANOSLEEP): Append clock_gettime library if needed.
58929
58930 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58931
58932         Work around a bug in both the Linux and SunOS 64-bit kernels:
58933         nanosleep mishandles sleeps for longer than 2**31 seconds.
58934         Problem reported by Frank v Waveren in
58935         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58936         * lib/nanosleep.c (BILLION): New constant.
58937         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
58938         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
58939         implementation.
58940
58941 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58942
58943         * modules/nanosleep (Depends-on): Add gettime.
58944
58945 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58946         and Simon Josefsson  <jas@extundo.com>
58947         and Oskar Liljeblad  <oskar@osk.mine.nu>
58948
58949         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
58950         * gnulib-tool (func_import): New license type 'unmodifiable license
58951         text'.
58952         * modules/fdl: Use it.  Longer description.
58953         * module/gpl, module/lgpl: New files.
58954
58955 2006-08-30  Jim Meyering  <jim@meyering.net>
58956
58957         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
58958         shadowing the parameter.
58959
58960 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58961
58962         Sync from Libtool:
58963
58964         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58965
58966         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
58967         sharing with gnulib.  Report by Eric Blake.
58968
58969 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58970
58971         * modules/isapipe: New file.
58972         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
58973
58974 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58975
58976         * modules/configmake (Makefile.am): Add a comment, and omit
58977         the CONFIGMAKE_ prefix from generated macro names.  Suggested
58978         by Bruno Haible.
58979
58980 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58981
58982         * m4/isapipe.m4: New file.
58983
58984 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58985
58986         * lib/isapipe.c, lib/isapipe.h: New files.
58987
58988 2006-08-29  Jim Meyering  <jim@meyering.net>
58989
58990         * modules/configmake (Makefile.am): Make configmake.h depend on
58991         Makefile.  Otherwise, a stale configmake.h could hang around.
58992
58993 2006-08-29  Eric Blake  <ebb9@byu.net>
58994
58995         * lib/error.c (error_at_line, print_errno_message): Match libc, after
58996         resolution of upstream bug 3044.
58997
58998 2006-08-29  Bruno Haible  <bruno@clisp.org>
58999
59000         * modules/localcharset (Depends-on): Add configmake.
59001         (Makefile.am): Remove setting of LIBDIR through DEFS.
59002
59003 2006-08-29  Bruno Haible  <bruno@clisp.org>
59004
59005         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
59006         defined.
59007
59008 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59009
59010         * modules/fcntl: New file.
59011         * modules/chdir-safer (Depends-on): Add fcntl.
59012         * modules/fts: Likewise.
59013         * modules/mkdir-p: Likewise.
59014
59015         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
59016         This undoes the most recent change, since we're now addressing the
59017         problem in a different way.
59018
59019         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
59020         into output, since the output might be called Makefile.am even
59021         if $makefile_name is something different.
59022         (func_import): Use $makefile_am rather than
59023         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
59024         empty.
59025
59026         * modules/inttypes (Files): Add m4/inttypes-h.m4.
59027
59028 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59029
59030         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
59031         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
59032         recent change to stdint.m4, since we're now addressing the problem in a
59033         different way.
59034
59035 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59036
59037         * m4/fcntl_h.m4: New file.
59038
59039 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59040
59041         * lib/fcntl_.h: New file.
59042         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
59043         the fcntl module.
59044         * lib/dirchownmod.c: Likewise.
59045         * lib/fts.c: Likewise.
59046
59047         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
59048         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
59049         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
59050         just before including <inttypes.h>, to avoid circular inclusion.
59051
59052 2006-08-28  Jim Meyering  <jim@meyering.net>
59053
59054         * doc/visibility.texi: Actually read and correct the grammar of the
59055         sentence affected by yesterday's change.
59056
59057 2006-08-28  Eric Blake  <ebb9@byu.net>
59058
59059         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
59060         needs wrapper.
59061
59062 2006-08-28  Eric Blake  <ebb9@byu.net>
59063
59064         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
59065
59066 2006-08-28  Eric Blake  <ebb9@byu.net>
59067
59068         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
59069
59070 2006-08-28  Bruno Haible  <bruno@clisp.org>
59071
59072         * modules/c-strstr: New file, from GNU gettext.
59073         * MODULES.html.sh (String handling): Add c-strstr.
59074
59075 2006-08-28  Bruno Haible  <bruno@clisp.org>
59076
59077         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
59078         macros.
59079         Reported by Eric Blake.
59080
59081 2006-08-28  Bruno Haible  <bruno@clisp.org>
59082
59083         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
59084         (VASNPRINTF): Return a string of length > INT_MAX without failing.
59085         * lib/vasprintf.c: Include errno.h, limits.h.
59086         (EOVERFLOW): New fallback definition.
59087         (vasprintf): Test here whether the string length is > INT_MAX.
59088         * lib/vsnprintf.c: Include errno.h, limits.h.
59089         (EOVERFLOW): New fallback definition.
59090         (vsnprintf): Fix bug when generated string was too long for the buffer.
59091         Test here whether the string length is > INT_MAX.
59092
59093 2006-08-28  Bruno Haible  <bruno@clisp.org>
59094
59095         * lib/inttypes_.h (SCNX*): Remove definitions.
59096         Reported by Eric Blake.
59097
59098 2006-08-28  Bruno Haible  <bruno@clisp.org>
59099
59100         * lib/c-strstr.h: New file, from GNU gettext.
59101         * lib/c-strstr.c: New file, from GNU gettext.
59102
59103 2006-08-28  Bruno Haible  <bruno@clisp.org>
59104
59105         * gnulib-tool: Reorder some statements.
59106
59107 2006-08-28  Bruno Haible  <bruno@clisp.org>
59108
59109         * gnulib-tool: New option --makefile-name.
59110         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
59111         $makefile_name.
59112         (func_import): Write $makefile_name to the cache file, and read it from
59113         there unless explicitly specified. Use $makefile_name as file name
59114         instead of Makefile.am. Adjust the recommendations accordingly.
59115
59116 2006-08-28  Bruno Haible  <bruno@clisp.org>
59117
59118         * gnulib-tool (func_verify_module): Check against misapplying patch.
59119
59120 2006-08-28  Bruno Haible  <bruno@clisp.org>
59121
59122         * gnulib-tool (func_relativize, func_relconcat): New functions.
59123         Give an error if --local-dir is given with --update.
59124         Remove trailing slashes from $local_gnulib_dir.
59125         (func_import): Store the relativized $local_gnulib_dir in
59126         gnulib-cache.m4, and read it from there if not specified explicitly.
59127
59128 2006-08-28  Bruno Haible  <bruno@clisp.org>
59129
59130         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
59131         is the current directory. Respect also $local_gnulib_dir.
59132
59133 2006-08-28  Bruno Haible  <bruno@clisp.org>
59134             Simon Josefsson  <jas@extundo.com>
59135
59136         BeOS portability.
59137         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
59138
59139 2006-08-27  Jim Meyering  <jim@meyering.net>
59140
59141         * doc/visibility.texi: Remove duplicate word: "pointer".
59142
59143 2006-08-26  Bruno Haible  <bruno@clisp.org>
59144
59145         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
59146         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
59147         (Makefile.am): Create inttypes.h from inttypes_.h.
59148         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
59149
59150         * modules/imaxabs: New file.
59151
59152         * modules/imaxdiv: New file.
59153
59154 2006-08-26  Bruno Haible  <bruno@clisp.org>
59155
59156         * m4/inttypes.m4: New file.
59157         * m4/_inttypes_h.m4: Remove file.
59158         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
59159         PRI_MACROS_BROKEN.
59160         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
59161
59162         * m4/imaxabs.m4: New file.
59163
59164         * m4/imaxdiv.m4: New file.
59165
59166 2006-08-26  Bruno Haible  <bruno@clisp.org>
59167
59168         * lib/inttypes_.h: New file.
59169         * lib/inttypes.h: Remove file.
59170         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
59171
59172         * lib/imaxabs.c: New file.
59173
59174         * lib/imaxdiv.c: New file.
59175
59176 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59177
59178         New config-h module, so that "make" output needn't be cluttered
59179         by -DHAVE_CONFIG_H.
59180         * MODULES.html.sh (Support for building libraries and executables):
59181         Add config-h.
59182         * modules/config-h: New file.
59183         * gnulib-tool (nl, sed_transform_lib_file): New vars.
59184         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
59185         the config-h module is used.
59186
59187         New configmake module, so that "make" output needn't be cluttered
59188         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
59189         * MODULES.html.sh (Support for building libraries and executables):
59190         Add configmake.
59191         * modules/configmake: New file.
59192
59193 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59194
59195         * m4/config-h.m4: New file.
59196
59197 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59198
59199         * config/srclist.txt: Add elisp-comp.
59200
59201 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59202
59203         * MODULES.html.sh (Support for building libraries and executables):
59204         Add elisp-comp.
59205         * build-aux/elisp-comp: New file.
59206         * modules/elisp-comp: New file.
59207
59208 2006-08-24  Bruno Haible  <bruno@clisp.org>
59209
59210         * gnulib-tool (func_create_testdir): Use non-default values of
59211         sourcebase and m4base.
59212
59213 2006-08-24  Bruno Haible  <bruno@clisp.org>
59214
59215         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
59216         HTML structure.
59217
59218 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59219
59220         * modules/openat (Depends-on): Add lchown.
59221
59222 2006-08-23  Bruno Haible  <bruno@clisp.org>
59223
59224         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
59225         of gl_LOCK_EARLY instead of gl_LOCK.
59226
59227 2006-08-23  Bruno Haible  <bruno@clisp.org>
59228
59229         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
59230         on OSF/1 to no.
59231         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
59232
59233 2006-08-23  Bruno Haible  <bruno@clisp.org>
59234
59235         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
59236         as unusable.
59237
59238         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
59239         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
59240         (gl_LOCK): New macro.
59241
59242 2006-08-22  Simon Josefsson  <jas@extundo.com>
59243
59244         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
59245         to md5 module.
59246
59247 2006-08-22  Simon Josefsson  <jas@extundo.com>
59248
59249         * MODULES.html.sh: Add "Support for maintaining and release
59250         projects".
59251
59252         * build-aux/gnupload: New file, from coreutils.
59253
59254 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59255
59256         Avoid the need for AC_LIBSOURCES in m4 macros.
59257         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
59258         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
59259         * modules/check-version (EXTRA_DIST): Add check-version.h.
59260         * modules/crc (EXTRA_DIST): Add crc.h.
59261         * modules/des (EXTRA_DIST): Add des.h.
59262         * modules/gc (EXTRA_DIST): Add gc.h.
59263         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
59264         * modules/getline (EXTRA_DIST): Add getline.h.
59265         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
59266         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
59267         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
59268         * modules/md2 (EXTRA_DIST): Add md2.h.
59269         * modules/md4 (EXTRA_DIST): Add md4.h.
59270         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
59271         * modules/read-file (EXTRA_DIST): Add read-file.h.
59272         * modules/readline (EXTRA_DIST): Add readline.h.
59273         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
59274         rijndael-api-fst.h.
59275
59276 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59277
59278         * m4/rijndael.m4 (gl_ARCFOUR):
59279         * m4/arctwo.m4 (gl_ARCTWO):
59280         * m4/check-version.m4 (gl_CHECK_VERSION):
59281         * m4/crc.m4 (gl_CRC):
59282         * m4/des.m4 (gl_DES):
59283         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
59284         * m4/gc.m4 (gl_GC):
59285         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
59286         * m4/getline.m4 (gl_FUNC_GETLINE):
59287         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
59288         * m4/hmac-md5.m4 (gl_HMAC_MD5):
59289         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
59290         * m4/md2.m4 (gl_MD2):
59291         * m4/md4.m4 (gl_MD4):
59292         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
59293         * m4/read-file.m4 (gl_FUNC_READ_FILE):
59294         * m4/readline.m4 (gl_FUNC_READLINE):
59295         * m4/rijndael.m4 (gl_RIJNDAEL):
59296         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59297         to get the necessary .h files and whatnot.
59298
59299 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59300
59301         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
59302         gnulib rather than the other way around.
59303         * config/srclistvars.sh (COREUTILS): Remove.
59304
59305 2006-08-22  Jim Meyering  <jim@meyering.net>
59306
59307         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
59308
59309         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
59310
59311 2006-08-22  Eric Blake  <ebb9@byu.net>
59312
59313         * modules/regexprops-generic: New file.
59314         * MODULES.html.sh (Support for building documentation): List it.
59315
59316 2006-08-22  Eric Blake  <ebb9@byu.net>
59317
59318         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
59319         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
59320         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
59321         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
59322
59323 2006-08-22  Bruno Haible  <bruno@clisp.org>
59324
59325         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
59326         and lib_LTLIBRARIES like the other lib_* variables.
59327
59328 2006-08-22  Bruno Haible  <bruno@clisp.org>
59329
59330         * build-aux/x-to-1.in: New file, from GNU gettext.
59331
59332 2006-08-22  Bruno Haible  <bruno@clisp.org>
59333
59334         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
59335         <utmpx.h> exists.
59336
59337 2006-08-22  Bruno Haible  <bruno@clisp.org>
59338
59339         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
59340         <utmpx.h> exists.
59341
59342 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59343
59344         BeOS portability.
59345         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
59346         exist.
59347         Problem reported by Bruno Haible.
59348
59349 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59350
59351         Avoid the need for AC_LIBSOURCES in m4 macros.
59352         * modules/acl (EXTRA_DIST): Add acl.h.
59353         * modules/argmatch (Files): Add m4/argmatch.m4.
59354         (configure.ac): Add gl_ARGMATCH.
59355         (EXTRA_DIST): Renamed from lib_SOURCES, for
59356         consistency with the other modules.  Remove argmatch.c.
59357         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
59358         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
59359         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
59360         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
59361         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
59362         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
59363         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
59364         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
59365         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
59366         * modules/closeout (EXTRA_DIST): Add closeout.h.
59367         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
59368         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
59369         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
59370         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
59371         dirname.h; remove basename.c and stripslash.c.
59372         * modules/exclude (EXTRA_DIST): Add exclude.h.
59373         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
59374         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
59375         * modules/file-type (EXTRA_DIST): Add file-type.h.
59376         * modules/filemode (EXTRA_DIST): Add filemode.h.
59377         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
59378         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59379         * modules/fpending (EXTRA_DIST): Add __fpending.h.
59380         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
59381         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
59382         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
59383         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
59384         * modules/getdate (EXTRA_DIST): Add getdate.c.
59385         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
59386         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
59387         * modules/getpass (EXTRA_DIST): Add getpass.h.
59388         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
59389         * modules/group-member (EXTRA_DIST): Add group-member.h.
59390         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
59391         * modules/hash (EXTRA_DIST): Add hash.h.
59392         * modules/human (EXTRA_DIST): Add human.h.
59393         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
59394         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
59395         * modules/lchown (EXTRA_DIST): Add lchown.h.
59396         * modules/long-options (EXTRA_DIST): Add long-options.h.
59397         * modules/lstat (EXTRA_DIST): Add lstat.h.
59398         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
59399         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
59400         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
59401         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
59402         * modules/memxor (EXTRA_DIST): Add memxor.h.
59403         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
59404         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
59405         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
59406         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
59407         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
59408         * modules/physmem (EXTRA_DIST): Add physmem.h.
59409         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
59410         * modules/posixver (EXTRA_DIST): Add posixver.h.
59411         * modules/quote (EXTRA_DIST): Add quote.h.
59412         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
59413         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
59414         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
59415         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
59416         regex_internal.h regexec.c.
59417         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
59418         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
59419         * modules/same (EXTRA_DIST): Add same.h.
59420         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
59421         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
59422         * modules/savedir (EXTRA_DIST): Add savedir.h.
59423         * modules/sha1 (EXTRA_DIST): Add sha1.h.
59424         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
59425         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
59426         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
59427         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
59428         * modules/strdup (EXTRA_DIST): Add strdup.h.
59429         * modules/strftime (EXTRA_DIST): Add strftime.h.
59430         * modules/strndup (EXTRA_DIST): Add strndup.h.
59431         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
59432         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
59433         * modules/time_r (EXTRA_DIST): Add time_r.h.
59434         * modules/timespec (EXTRA_DIST): Add timespec.h.
59435         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59436         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
59437         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
59438         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
59439         * modules/userspec (EXTRA_DIST): Add userspec.h.
59440         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
59441         * modules/utimens (EXTRA_DIST): Add utimens.h.
59442         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
59443         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
59444         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
59445         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
59446         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
59447         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
59448         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
59449         * modules/yesno (EXTRA_DIST): Add yesno.h.
59450
59451 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59452
59453         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
59454
59455         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
59456         * m4/dev-ino.m4, same-inode.m4: Remove.
59457
59458         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
59459         * m4/acl.m4 (AC_FUNC_ACL):
59460         * m4/backupfile.m4 (gl_BACKUPFILE):
59461         * m4/c-strtod.m4 (gl_C99_STRTOLD):
59462         * m4/canon-host.m4 (gl_CANON_HOST):
59463         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59464         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
59465         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
59466         * m4/cloexec.m4 (gl_CLOEXEC):
59467         * m4/close-stream.m4 (gl_CLOSE_STREAM):
59468         * m4/closeout.m4 (gl_CLOSEOUT):
59469         * m4/dirfd.m4 (gl_FUNC_DIRFD):
59470         * m4/dirname.m4 (gl_DIRNAME):
59471         * m4/exclude.m4 (gl_EXCLUDE):
59472         * m4/exitfail.m4 (gl_EXITFAIL):
59473         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
59474         * m4/file-type.m4 (gl_FILE_TYPE):
59475         * m4/filemode.m4 (gl_FILEMODE):
59476         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
59477         * m4/fpending.m4 (gl_FUNC_FPENDING):
59478         * m4/fprintftime.m4 (gl_FPRINTFTIME):
59479         * m4/fts.m4 (gl_FUNC_FTS):
59480         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
59481         * m4/getdate.m4 (gl_GETDATE):
59482         * m4/gethrxtime.m4 (gl_GETHRXTIME):
59483         * m4/getpagesize.m4 (gl_GETPAGESIZE):
59484         * m4/getpass.m4 (gl_FUNC_GETPASS):
59485         * m4/gettime.m4 (gl_GETTIME):
59486         * m4/getugroups.m4 (gl_GETUGROUPS):
59487         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
59488         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
59489         * m4/hard-locale.m4 (gl_HARD_LOCALE):
59490         * m4/hash.m4 (gl_HASH):
59491         * m4/idcache.m4 (gl_IDCACHE):
59492         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
59493         * m4/lchown.m4 (gl_FUNC_LCHOWN):
59494         * m4/long-options.m4 (gl_LONG_OPTIONS):
59495         * m4/lstat.m4 (gl_FUNC_LSTAT):
59496         * m4/md5.m4 (gl_MD5):
59497         * m4/memcasecmp.m4 (gl_MEMCASECMP):
59498         * m4/memcoll.m4 (gl_MEMCOLL):
59499         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
59500         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
59501         * m4/memxor.m4 (gl_MEMXOR):
59502         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
59503         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
59504         * m4/modechange.m4 (gl_MODECHANGE):
59505         * m4/mountlist.m4 (gl_MOUNTLIST):
59506         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59507         * m4/openat.m4 (gl_FUNC_OPENAT):
59508         * m4/pathmax.m4 (gl_PATHMAX):
59509         * m4/physmem.m4 (gl_PHYSMEM):
59510         * m4/posixtm.m4 (gl_POSIXTM):
59511         * m4/posixver.m4 (gl_POSIXVER):
59512         * m4/quote.m4 (gl_QUOTE):
59513         * m4/quotearg.m4 (gl_QUOTEARG):
59514         * m4/readtokens.m4 (gl_READTOKENS):
59515         * m4/readutmp.m4 (gl_READUTMP):
59516         * m4/regex.m4 (gl_REGEX):
59517         * m4/safe-read.m4 (gl_SAFE_READ):
59518         * m4/safe-write.m4 (gl_SAFE_WRITE):
59519         * m4/same.m4 (gl_SAME):
59520         * m4/save-cwd.m4 (gl_SAVE_CWD):
59521         * m4/savedir.m4 (gl_SAVEDIR):
59522         * m4/settime.m4 (gl_SETTIME):
59523         * m4/sha1.m4 (gl_SHA1):
59524         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
59525         * m4/stat-macros.m4 (gl_STAT_MACROS):
59526         * m4/stat-time.m4 (gl_STAT_TIME):
59527         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
59528         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
59529         * m4/strdup.m4 (gl_FUNC_STRDUP):
59530         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
59531         * m4/strndup.m4 (gl_FUNC_STRNDUP):
59532         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
59533         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
59534         * m4/time_r.m4 (gl_TIME_R):
59535         * m4/timespec.m4 (gl_TIMESPEC):
59536         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
59537         * m4/unlinkdir.m4 (gl_UNLINKDIR):
59538         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
59539         * m4/userspec.m4 (gl_USERSPEC):
59540         * m4/utimecmp.m4 (gl_UTIMECMP):
59541         * m4/utimens.m4 (gl_UTIMENS):
59542         * m4/xalloc.m4 (gl_XALLOC):
59543         * m4/xgetcwd.m4 (gl_XGETCWD):
59544         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
59545         * m4/xreadlink.m4 (gl_XREADLINK):
59546         * m4/xstrtod.m4 (gl_XSTRTOD):
59547         * m4/yesno.m4 (gl_YESNO):
59548         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59549         to get the necessary .h files and whatnot.
59550
59551 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
59552             Bruno Haible  <bruno@clisp.org>
59553
59554         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
59555         /bin/sh understanding of '!' conditional negation.
59556
59557 2006-08-21  Jim Meyering  <jim@meyering.net>
59558
59559         * modules/openat (Depends-on): Really alphabetize.
59560
59561         * modules/acl (Depends-on): Add error and quote.
59562
59563         * check-module (find_included_lib_files): Add at-func.c to the
59564         ok-to-include-more-than-once white list.
59565
59566         * modules/openat (Depends-on): Add lstat.  Alphabetize.
59567
59568 2006-08-21  Bruno Haible  <bruno@clisp.org>
59569
59570         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59571         Emit a pkgdata_DATA variable only if some snippets add contents to it.
59572         Reported by Martin Lambers <marlam@marlam.de>.
59573
59574 2006-08-21  Bruno Haible  <bruno@clisp.org>
59575
59576         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
59577         specify an installation location, don't emit a noinst_LIBRARIES or
59578         noinst_LTLIBRARIES assignment.
59579
59580 2006-08-21  Bruno Haible  <bruno@clisp.org>
59581
59582         BeOS portability.
59583         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
59584         BeOS has mbrtowc() but no <wctype.h>.
59585
59586 2006-08-21  Bruno Haible  <bruno@clisp.org>
59587
59588         BeOS portability.
59589         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
59590         exist.
59591
59592 2006-08-21  Bruno Haible  <bruno@clisp.org>
59593
59594         BeOS portability.
59595         * lib/mbchar.h: Include <wctype.h> only if it exists.
59596
59597 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59598
59599         Remove files that are no longer needed by their respective modules.
59600         * m4/obstack.m4: Remove.
59601         * m4/strerror_r.m4: Remove.
59602         * m4/uint32_t.m4: Remove.
59603         * m4/uintptr_t.m4: Remove.
59604         * m4/ullong_max.m4: Remove.
59605         * m4/xstrtoimax.m4: Remove.
59606         * m4/xstrtoumax.m4: Remove.
59607
59608         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
59609         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
59610         dependencies now capture this.
59611
59612         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
59613         Do not use AC_LIBSOURCES, since gnulib modules now do this.
59614         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
59615         * m4/human.m4 (gl_HUMAN): Likewise.
59616         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
59617         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
59618
59619         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
59620
59621         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
59622         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
59623         stdint.
59624         * m4/human.m4 (gl_HUMAN): Likewise.
59625         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
59626         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
59627         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59628         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59629         * m4/xstrtol (gl_XSTRTOL): Likewise.
59630
59631         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
59632         AC_TYPE_LONG_LONG_INT.
59633         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59634         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
59635         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
59636         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59637
59638         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
59639         on stdbool.
59640
59641         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
59642         (gl_PREREQ_XSTRTOUL): Remove.
59643
59644         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
59645
59646         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
59647         mode.
59648
59649 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59650
59651         Add and change modules to make it easier for coreutils to use
59652         gnulib-tool.
59653         * modules/backupfile (Files): Remove m4/d-ino.m4.
59654         (Depends-on): Add d-ino.
59655         * modules/cycle-check (Depends-on): Add stdint.
59656         (lib_SOURCES): Add cycle-check.h.
59657         * modules/d-ino: New module.
59658         * modules/d-type: New module.
59659         * modules/error (Files): Remove m4/strerror_r.m4.
59660         * modules/filemode (Files): Add m4/st_dm_mode.m4.
59661         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59662         m4/inttypes_h.m4, m4/uintmax_t.m4.
59663         (Depends-on): Add stdint.
59664         (lib_SOURCES): Add fsusage.h.
59665         * modules/getcwd (Files): Remove d-ino.m4.
59666         (Depends-on): Add d-ino.
59667         * modules/getndelim2 (Depends-on): Add stdint.
59668         * modules/glob (Files): Remove m4/d-type.m4.
59669         (Depends-on): Add d-type.
59670         * modules/host-os: New module.
59671         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
59672         m4/inttypes_h.m4, m4/uintmax_t.m4.
59673         * Depends-on: Add stdint.
59674         (lib_SOURCES): Add human.h.
59675         * modules/inttostr (Files): Remove m4/intmax_t.m4,
59676         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
59677         m4/uintmax_t.m4, m4/ulonglong.m4.
59678         (Depends-on): Add stdint.
59679         (EXTRA_DIST): Add inttostr.h.
59680         * modules/lchmod: New module.
59681         * modules/link-follow: New module.
59682         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
59683         (Depends-on): Add lchmod.
59684         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
59685         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
59686         (Depends-on): Add stdint.
59687         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
59688         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
59689         (Depends-on): Add stdint.
59690         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
59691         * modules/perl: New module.
59692         * modules/regex (Depends-on): Add stdint.
59693         * modules/rmdir-errno: New module.
59694         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59695         m4/intmax_t.m4.
59696         (Depends-on): Add stdint.
59697         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59698         m4/uintmax_t.m4.
59699         (Depends-on): Add stdint.
59700         * modules/unlink-busy: New module.
59701         * modules/utimecmp (Depends-on): Add stdint.
59702         * modules/uptime: New module.
59703         * modules/winsz-ioctl: New module.
59704         * modules/winsz-termios: New module.
59705         * modules/xnanosleep (Depends-on): Add nanosleep.
59706         * modules/ullong_max: Remove.
59707         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
59708         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
59709         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
59710         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
59711         (Depends-on): Add inttypes.
59712         (lib_SOURCES): Add xstrtol.h.
59713         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
59714         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
59715         * MODULES.html.sh: Move 'assert' into the assert section.
59716         Move 'dummy' into the linking section.
59717         Remove ullong_max.
59718         Add section for compatibility checks for POSIX:2001 functions,
59719         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
59720         winsz-ioctl, and winsz-termios into it.
59721         Add lchmod.
59722         Add top-level Misc section and put host-os, perl, and uptime
59723         into it.
59724
59725 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59726
59727         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
59728         now assume the stdint module.  Do not include inttypes.h.
59729         * lib/fsusage.h: Likewise.
59730         * lib/getndelim2.c: Likewise.
59731         * lib/human.h: Likewise.
59732         * lib/inttostr.h: Likewise.
59733         * lib/obstack.c: Likewise.
59734         * lib/regex_internal.h: Likewise.
59735         * lib/tempname.c: Likewise.
59736         * lib/utimecmp.c: Likewise.
59737         * lib/xstrtol.h: Likewise.
59738
59739         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
59740
59741         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
59742         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
59743         * lib/xtime.h: Likewise.
59744
59745 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59746
59747         * modules/openat (Files): Add lib/fchmodat.c.
59748         Fixes problem reported by Jay Youngman.
59749
59750 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59751
59752         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
59753         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
59754
59755 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
59756             Bruno Haible  <bruno@clisp.org>
59757
59758         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
59759         and is a script that invokes bison. Tighten the code. Add comments.
59760
59761 2006-08-18  Jim Meyering  <jim@meyering.net>
59762
59763         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
59764         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
59765         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
59766         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
59767
59768 2006-08-18  Bruno Haible  <bruno@clisp.org>
59769
59770         * modules/bison-i18n: New file.
59771         * MODULES.html.sh (Internationalization functions): Add it.
59772
59773 2006-08-18  Bruno Haible  <bruno@clisp.org>
59774
59775         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
59776         sys/statvfs.h. When getmntinfo was found, check its declaration and
59777         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
59778
59779 2006-08-18  Bruno Haible  <bruno@clisp.org>
59780
59781         * m4/bison-i18n.m4: New file, from bison.
59782
59783 2006-08-18  Bruno Haible  <bruno@clisp.org>
59784
59785         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
59786         (ME_DUMMY): Treat "kernfs" as a dummy.
59787         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
59788
59789 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59790
59791         Update from coreutils.
59792
59793         2006-08-15  Jim Meyering  <jim@meyering.net>
59794
59795         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
59796
59797         2006-01-17  Jim Meyering  <jim@meyering.net>
59798
59799         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
59800
59801         2006-01-11  Jim Meyering  <jim@meyering.net>
59802
59803         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
59804         Check for the lchmod function.
59805
59806 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59807
59808         Update from coreutils.
59809
59810         * lib/__fpending.h: Add copyright notice.
59811         * lib/fprintftime.h: Likewise.
59812         * lib/savedir.c: Use (C) in copyright notice.
59813         * lib/savedir.h: Likewise.
59814
59815         2006-08-15  Jim Meyering  <jim@meyering.net>
59816
59817         * lib/at-func.c: New file, with the logic of all emulated at-functions.
59818         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
59819         in support of the EXPECTED_ERRNO macro.
59820         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
59821         definitions.  Instead, define the appropriate symbols and include
59822         "at-func.c".
59823         * lib/mkdirat.c (mkdirat): Likewise.
59824         * lib/fchmodat.c (fchmodat): Likewise.
59825         (ENOSYS): Remove definition.
59826         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
59827         it.  Don't include "unistd--.h" -- it wasn't ever used.
59828
59829         2006-01-17  Jim Meyering  <jim@meyering.net>
59830
59831         Rewrite fts.c not to change the current working directory,
59832         by using openat, fstatat, fdopendir, etc..
59833
59834         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
59835         (HAVE_OPENAT_SUPPORT): Define.
59836         [_LIBC] (fchdir): Don't undef or define; no longer used.
59837         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
59838         Now, this `function' always succeeds, and consumes its file descriptor
59839         parameter -- so callers must not close such FDs.  Update callers.
59840         (diropen_fd, opendirat, cwd_advance_fd): New functions.
59841         (diropen): Add parameter, SP.  Adjust all callers.
59842         Implement using diropen_fd, rather than open.
59843         (fts_open): Initialize new member, fts_cwd_fd.
59844         Remove fts_rft-setting code.
59845         (fts_close): Close fts_cwd_fd, if necessary.
59846         (__opendir2): Define in terms of opendir or opendirat,
59847         depending on whether the FST_NOCHDIR flag is set.
59848         (fts_build): Since fts_safe_changedir consumes its FD, and since
59849         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
59850         and close the dup'd file descriptor upon failure.
59851         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
59852         (fts_safe_changedir): Tweak semantics to reflect that this function
59853         now calls cwd_advance_fd and hence consumes its FD argument.
59854         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
59855         [struct FTS] (fts_rft): Remove now-unused member.
59856         [struct FTS] (fts_cycle.state): Improve comment.
59857
59858         * lib/openat.c (openat_needs_fchdir): New function.
59859         * lib/openat.h (openat_needs_fchdir): Declare it.
59860
59861 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59862
59863         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
59864         Problem and fix reported by Pádraig Brady in
59865         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
59866
59867 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59868
59869         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
59870
59871 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59872
59873         * lib/memcoll.c (memcoll): Optimize for the common case where the
59874         arguments are bytewise equal.
59875
59876 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59877
59878         * doc/regexprops-generic.texi: Add a copyright notice.
59879
59880 2006-08-15  Bruno Haible  <bruno@clisp.org>
59881
59882         * modules/tmpdir (License): Change to LGPL.
59883
59884 2006-08-15  Bruno Haible  <bruno@clisp.org>
59885
59886         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
59887         module.
59888
59889 2006-08-14  Simon Josefsson  <jas@extundo.com>
59890
59891         * config/srclist.txt: Add gnupload.
59892
59893 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59894
59895         Change copyright notice from LGPL 2 to GPL 2, since that's the
59896         standard form used in the gnulib repository.
59897         * tests/test-lock.c: Likewise.
59898         * tests/test-stdint.c: Likewise.
59899         * tests/test-tls.c: Likewise.
59900
59901         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
59902         prelude-manager.  User shorter URLs for GNU projects, without '?'.
59903         Add copyright notice.
59904
59905         * check-module: Add copyright notice.  Output a copyright
59906         notice if "--version" is specified.
59907         * modules/COPYING: New file.
59908         * tests/test-getaddrinfo.c: Add copyright notice.
59909         * tests/test-verify.c: Likewise.
59910
59911 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59912
59913         Change copyright notice from LGPL 2 to GPL 2, since that's the
59914         standard form used in the gnulib repository.
59915         * lib/lock.c: LGPL -> GPL.
59916         * lib/lock.h: Likewise.
59917         * lib/strnlen1.c: Likewise.
59918         * lib/strnlen1.h: Likewise.
59919         * lib/tls.c: Likewise.
59920         * lib/tls.h: Likewise.
59921         * lib/tmpdir.c: Likewise.
59922
59923         * lib/TODO: Remove; this belongs only in coreutils.
59924
59925 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59926
59927         Add copyright notices to long-enough files that lack them, since
59928         otherwise the files aren't clearly free.  Use the same notice that
59929         getdate.texi already uses.
59930         * doc/alloca-opt.texi: Add copyright notice.
59931         * doc/alloca.texi: Likewise.
59932         * doc/ctime.texi: Likewise.
59933         * doc/functions.texi: Likewise.
59934         * doc/gcd.texi: Likewise.
59935         * doc/gnulib-tool.texi: Likewise.
59936         * doc/inet_ntoa.texi: Likewise.
59937         * doc/visibility.texi: Likewise.
59938
59939         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
59940         * doc/quote.texi: Add copyright notice.
59941
59942         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
59943         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
59944         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
59945         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
59946         is now obsolete, and give a pointer to the Sun list.
59947         Add copyright notice.
59948
59949 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59950
59951         * config/srclistvars.sh: Add copyright notice.
59952
59953 2006-08-14  Eric Blake  <ebb9@byu.net>
59954
59955         Import the following change from libc:
59956
59957         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
59958
59959         Upstream bug 2997.
59960         * lib/misc/error.c: Add space between program name and message if file
59961         name is missing.
59962
59963 2006-08-12  Karl Berry  <karl@gnu.org>
59964
59965         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
59966         remove, these originate in gnulib now.
59967
59968 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59969
59970         * doc/Makefile (standards.info standards.html standards.dvi):
59971         Also depend on make-stds.texi.
59972
59973 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59974
59975         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
59976         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
59977
59978         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
59979         in wchar_t.  Problem reported by Eric Blake.
59980
59981         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
59982         LEN is smaller than SIZE.  Suggested by Bruno Haible.
59983         Also, help the compiler to keep LEN in a register.
59984
59985 2006-08-11  Eric Blake  <ebb9@byu.net>
59986
59987         * users.txt: Sort.  Add tar.
59988
59989 2006-08-11  Bruno Haible  <bruno@clisp.org>
59990
59991         * users.txt: New file.
59992
59993 2006-08-11  Bruno Haible  <bruno@clisp.org>
59994
59995         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
59996         before <wchar.h>. Needed for OSF/1 and BSD/OS.
59997
59998 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59999
60000         * modules/snprintf (Depends-on): Remove minmax.
60001         (Maintainer): Add self and Bruno.
60002
60003 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60004
60005         * lib/.cppi-disable: Add snprintf.h, socket_.h.
60006         * lib/snprintf.c: Include <errno.h> and <limits.h>.
60007         (EOVERFLOW): Define if the system does not.
60008         Do not include "minmax.h"; it wasn't used.
60009         (snprintf): Don't assume size_t promotes to an unsigned type.
60010         Fix bug when generated string was too long for the buffer: the
60011         buffer's contents are supposed to be the initial prefix of the
60012         output.  Don't assume vasnprintf returns EOVERFLOW if the size
60013         exceeds INT_MAX; do the check ourselves.
60014
60015         Import the following changes from libc:
60016
60017         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
60018
60019         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
60020         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
60021         set wc to the byte which couldn't be converted.
60022         (re_string_reconstruct): Don't clear valid_raw_len before calling
60023         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
60024         tip_context using re_string_context_at.
60025
60026         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
60027
60028         * lib/posix/regex.h: g++ still cannot handled [restrict].
60029
60030         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
60031
60032         * lib/posix/regex.h: Remove special handling for VMS.
60033
60034 2006-08-10  Jim Meyering  <jim@meyering.net>
60035
60036         * modules/same-inode: New module.
60037         * modules/dev-ino: New module.
60038         * modules/cycle-check: Depend on these modules, rather than simply
60039         including their .h files.
60040         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
60041         required via m4/cycle-check.m4.
60042         * modules/same: Depend on new same-inode module, rather than
60043         including same-inode.h.
60044         * modules/chdir-safer: New file.
60045
60046         * modules/chown (Depends-on): Add stat-macros.
60047
60048 2006-08-10  Jim Meyering  <jim@meyering.net>
60049
60050         * m4/cycle-check.m4: New file.
60051         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
60052         * m4/dev-ino.m4, m4/same-inode.m4: New files.
60053
60054 2006-08-10  Eric Blake  <ebb9@byu.net>
60055
60056         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
60057         in from original proposal.
60058
60059 2006-08-10  Eric Blake  <ebb9@byu.net>
60060         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60061
60062         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
60063         namespace.
60064
60065 2006-08-10  Bruno Haible  <bruno@clisp.org>
60066
60067         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
60068         as well.
60069
60070 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60071
60072         Sync from coreutils.
60073
60074         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
60075
60076         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
60077         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
60078
60079 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60080
60081         * modules/restrict: Remove; no longer needed now that we assume
60082         Autoconf 2.59 or later.
60083         * MODULES.html.sh: Remove 'restrict'.
60084         * modules/argp (Depends-on): Remove 'restrict'.
60085         * modules/base64 (Depends-on): Likewise.
60086         * modules/gc (Depends-on): Likewise.
60087         * modules/getaddrinfo (Depends-on): Likewise.
60088         * modules/glob (Depends-on): Likewise.
60089         * modules/inet_ntop (Depends-on): Likewise.
60090         * modules/inet_pton (Depends-on): Likewise.
60091         * modules/memxor (Depends-on): Likewise.
60092         * modules/regex (Depends-on): Likewise.
60093         * modules/strtok_r (Depends-on): Likewise.
60094         * modules/time_r (Depends-on): Likewise.
60095
60096 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60097
60098         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
60099         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
60100         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60101         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
60102         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60103         * m4/memxor.m4 (gl_MEMXOR): Likewise.
60104         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
60105         gl_C_RESTRICT replaced by AC_C_RESTRICT.
60106
60107         Merge from coreutils.
60108         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
60109         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
60110         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60111         * m4/time_r.m4 (gl_TIME_R): Likewise.
60112
60113 2006-08-09  Karl Berry  <karl@gnu.org>
60114
60115         * config/srclist.txt: no more gettext-tools, per Bruno.
60116
60117 2006-08-08  Eric Blake  <ebb9@byu.net>
60118
60119         * modules/verror: New module.
60120         * MODULES.html.sh: Document it.
60121
60122 2006-08-08  Eric Blake  <ebb9@byu.net>
60123
60124         * lib/verror.h, lib/verror.c: New files.
60125
60126 2006-08-08  Eric Blake  <ebb9@byu.net>
60127
60128         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
60129         verror_at_line output complies with GNU Coding Standards even when
60130         file is NULL.
60131
60132 2006-08-07  Bruno Haible  <bruno@clisp.org>
60133
60134         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
60135         versions of AIX.
60136         Reported by Ralf Wildenhues.
60137
60138 2006-08-07  Bruno Haible  <bruno@clisp.org>
60139
60140         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
60141         in an AC_DEFUN. Needed so that the autoconf snippets can use
60142         AC_REQUIRE.
60143
60144 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60145
60146         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60147         Initialize pkgdata_DATA.
60148         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
60149         overriding it.
60150
60151 2006-08-06  Eric Blake  <ebb9@byu.net>
60152
60153         * lib/error.h: Fold in some upstream changes from glibc.
60154         * lib/error.c: Likewise.
60155
60156 2006-08-04  Bruno Haible  <bruno@clisp.org>
60157
60158         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60159         Make the mostlyclean-local rule depend on mostlyclean-generic.
60160         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
60161
60162 2006-07-31  Bruno Haible  <bruno@clisp.org>
60163
60164         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
60165         <stdlib.h>, <string.h>.
60166
60167 2006-07-30  Bruno Haible  <bruno@clisp.org>
60168
60169         * modules/readlink (License): Change to LGPL.
60170
60171 2006-07-30  Bruno Haible  <bruno@clisp.org>
60172
60173         * modules/javaversion (Makefile.am): Distribute javaversion.java and
60174         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
60175         set PKGDATADIR to point to it.
60176
60177 2006-07-30  Bruno Haible  <bruno@clisp.org>
60178
60179         * modules/csharpexec (configure.ac): Comment out macro invocation.
60180         * modules/javaexec (configure.ac): Likewise.
60181         * modules/javacomp-script (configure.ac): Likewise.
60182
60183         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
60184
60185 2006-07-30  Bruno Haible  <bruno@clisp.org>
60186
60187         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
60188         linked-list.
60189
60190 2006-07-30  Bruno Haible  <bruno@clisp.org>
60191
60192         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
60193
60194 2006-07-30  Bruno Haible  <bruno@clisp.org>
60195
60196         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60197         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
60198         get removed.
60199
60200 2006-07-29  Bruno Haible  <bruno@clisp.org>
60201
60202         Make it possible for gnulib-tool to work with locally modified or
60203         augmented gnulib repositories.
60204         * gnulib-tool (func_usage): Document --local-dir option.
60205         (local_gnulib_dir): New variable.
60206         Handle --local-dir option.
60207         (func_lookup_file): New function.
60208         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
60209         (func_get_description, func_get_filelist, func_get_description,
60210         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
60211         func_get_automake_snippet, func_get_include_directive,
60212         func_get_license, func_get_maintainer): Use func_lookup_file.
60213         (func_import, func_create_testdir): Use func_lookup_file.
60214
60215 2006-07-29  Bruno Haible  <bruno@clisp.org>
60216
60217         * modules/setenv (Depends-on): Add unistd.
60218
60219 2006-07-29  Bruno Haible  <bruno@clisp.org>
60220
60221         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
60222
60223 2006-07-29  Bruno Haible  <bruno@clisp.org>
60224
60225         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
60226
60227 2006-07-29  Bruno Haible  <bruno@clisp.org>
60228
60229         * gnulib-tool (import, update): If there is no Makefile.am, look at
60230         aclocal.m4, instead of bailing out.
60231
60232 2006-07-29  Bruno Haible  <bruno@clisp.org>
60233
60234         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
60235         Categorize the options by when they are useful.
60236
60237 2006-07-29  Bruno Haible  <bruno@clisp.org>
60238
60239         * gnulib-tool (func_usage): Document option --no-libtool.
60240         Handle option --no-libtool.
60241         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
60242         for changed semantics of $libtool variable.
60243         (func_import): Likewise. If libtool is not used, show this through
60244         an option --no-libtool.
60245         (func_create_testdir): Update.
60246
60247 2006-07-29  Bruno Haible  <bruno@clisp.org>
60248
60249         * gnulib-tool (func_import): Extend error message about missing
60250         --doc-base.
60251
60252 2006-07-29  Bruno Haible  <bruno@clisp.org>
60253
60254         * gnulib-tool (func_import): Don't create the $docbase directory if
60255         there is no file to store there.
60256
60257 2006-07-29  Bruno Haible  <bruno@clisp.org>
60258
60259         * gnulib-tool (autoconf_minversion): If a --dir option is given and
60260         relevant, look for configure.ac there, not in the current directory.
60261         Also use a simple search for AC_PREREQ, not "autoconf --trace".
60262
60263 2006-07-29  Bruno Haible  <bruno@clisp.org>
60264
60265         * gnulib-tool (SORT): New variable.
60266         (func_usage): Undocument --assume-autoconf option.
60267         Remove --assume-autoconf option handling.
60268         (autoconf_minversion): Determine from the contents of configure.ac.
60269         (func_import): Remove autoconf_minversion handling.
60270         Suggested by Eric Blake.
60271
60272 2006-07-29  Bruno Haible  <bruno@clisp.org>
60273
60274         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
60275
60276 2006-07-29  Bruno Haible  <bruno@clisp.org>
60277
60278         * config/srclist.txt (*setenv.[ch]): Remove rules.
60279
60280 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60281
60282         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
60283
60284 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60285
60286         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
60287         arpa/inet.h.
60288
60289 2006-07-28  Simon Josefsson  <jas@extundo.com>
60290
60291         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
60292         * modules/inet_pton (Depends-on): Likewise.
60293
60294 2006-07-28  Simon Josefsson  <jas@extundo.com>
60295
60296         * m4/netinet_in_h.m4: New file.
60297
60298 2006-07-28  Simon Josefsson  <jas@extundo.com>
60299
60300         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
60301         #include's.
60302
60303 2006-07-28  Simon Josefsson  <jas@extundo.com>
60304
60305         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
60306         #include's.
60307
60308 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
60309
60310         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
60311         setgid on directories only if they set these bits.
60312         * lib/modechange.h: Remove obsolete comment about masks.
60313
60314 2006-07-28  Eric Blake  <ebb9@byu.net>
60315
60316         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
60317         macro expansion.
60318
60319 2006-07-28  Bruno Haible  <bruno@clisp.org>
60320
60321         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
60322
60323 2006-07-28  Bruno Haible  <bruno@clisp.org>
60324
60325         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
60326
60327 2006-07-28  Bruno Haible  <bruno@clisp.org>
60328
60329         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60330         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60331         Define fallbacks.
60332         Avoids link error on FreeBSD 4.x.
60333         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60334
60335         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
60336         encoding.
60337         * lib/mbswidth.c (iswcntrl): Likewise.
60338
60339 2006-07-27  Bruno Haible  <bruno@clisp.org>
60340
60341         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
60342         test.
60343
60344 2006-07-27  Bruno Haible  <bruno@clisp.org>
60345
60346         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
60347         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
60348         defined.
60349
60350 2006-07-26  Eric Blake  <ebb9@byu.net>
60351
60352         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
60353
60354 2006-07-26  Eric Blake  <ebb9@byu.net>
60355
60356         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
60357         like mingw that lack mkstemp.
60358         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
60359         avoid compilation warning on mingw.
60360
60361 2006-07-26  Bruno Haible  <bruno@clisp.org>
60362
60363         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
60364         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
60365         INT_FAST*_MIN, INTPTR_MIN.
60366
60367 2006-07-25  Bruno Haible  <bruno@clisp.org>
60368
60369         * modules/version-etc (Depends-on): Add stdarg.
60370
60371 2006-07-25  Bruno Haible  <bruno@clisp.org>
60372
60373         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
60374         complex commands.
60375
60376 2006-07-25  Bruno Haible  <bruno@clisp.org>
60377
60378         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
60379         defined in <stdarg.h> or config.h.
60380
60381 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60382
60383         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
60384         (gl_STDIO_SAFER): Remove.
60385
60386 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60387
60388         * MODULES.html.sh (File stream based Input/Output):
60389         Add fopen-safer, tmpfile-safer; remove stdio-safer.
60390         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
60391         * modules/fopen-safer, modules/tmpfile-safer: New files.
60392         * modules/stdio-safer: Remove.
60393
60394 2006-07-24  Bruno Haible  <bruno@clisp.org>
60395
60396         * modules/tmpdir: New file.
60397         * MODULES.html.sh (File system functions): Add it.
60398
60399 2006-07-24  Bruno Haible  <bruno@clisp.org>
60400
60401         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
60402         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
60403
60404 2006-07-24  Bruno Haible  <bruno@clisp.org>
60405
60406         * modules/clean-temp: New file.
60407
60408 2006-07-24  Bruno Haible  <bruno@clisp.org>
60409
60410         * m4/tmpdir.m4: New file, from GNU gettext.
60411
60412 2006-07-24  Bruno Haible  <bruno@clisp.org>
60413
60414         * lib/tmpdir.h: New file, from GNU gettext.
60415         * lib/tmpdir.c: New file, from GNU gettext.
60416
60417 2006-07-24  Bruno Haible  <bruno@clisp.org>
60418
60419         * lib/clean-temp.h: New file, from GNU gettext.
60420         * lib/clean-temp.c: New file, from GNU gettext.
60421
60422 2006-07-23  Eric Blake  <ebb9@byu.net>
60423
60424         * modules/stdio-safer (Files): Add tmpfile-safer.c.
60425         (Depends-on): Add binary-io.
60426
60427 2006-07-23  Eric Blake  <ebb9@byu.net>
60428
60429         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
60430
60431 2006-07-23  Eric Blake  <ebb9@byu.net>
60432
60433         * lib/tmpfile-safer.c: New file.
60434         * lib/stdio-safer.h (fopen_safer): Add prototype.
60435         * lib/stdio--.h (tmpfile): Make safer.
60436
60437 2006-07-23  Bruno Haible  <bruno@clisp.org>
60438
60439         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
60440         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
60441         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
60442         gl_linked_remove_at): Use it.
60443
60444 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60445         and Simon Josefsson <jas@extundo.com>
60446
60447         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
60448
60449         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
60450
60451 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60452
60453         * modules/close-stream: New file.
60454         * modules/closeout (Description): Make it clear that it exits
60455         with a diagnostic on error.
60456         (Depends-on): Add close-stream.  Remove fpending, stdbool.
60457         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
60458
60459 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60460
60461         * m4/close-stream.m4: New file.
60462
60463 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60464
60465         * lib/close-stream.c, lib/close-stream.h: New files.
60466
60467 2006-07-22  Bruno Haible  <bruno@clisp.org>
60468
60469         Merge from GNU gettext 0.15.
60470
60471         2006-05-01  Bruno Haible  <bruno@clisp.org>
60472
60473                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
60474
60475         2006-07-22  Bruno Haible  <bruno@clisp.org>
60476
60477                 * modules/javaversion: New file.
60478                 * MODULES.html.sh (Java): Add javaversion.
60479
60480         2006-03-12  Bruno Haible  <bruno@clisp.org>
60481
60482                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
60483
60484         2005-12-04  Bruno Haible  <bruno@clisp.org>
60485
60486                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
60487                 (untested).
60488
60489         2006-06-21  Bruno Haible  <bruno@clisp.org>
60490
60491                 Avoid warnings from recent versions of mcs.
60492                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
60493                 -o, -L, -r any more. Use options documented since mcs-1.0
60494                 instead. Similarly for -g.
60495
60496         2005-12-04  Bruno Haible  <bruno@clisp.org>
60497
60498                 * build-aux/csharpcomp.sh.in: Suffix for resources is
60499                 .resources, not .resource.
60500
60501         2005-07-09  Bruno Haible  <bruno@clisp.org>
60502
60503                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
60504                 add a .dll suffix.
60505                 Reported by Mark Junker <mjscod@gmx.de>.
60506
60507         2006-07-22  Bruno Haible  <bruno@clisp.org>
60508
60509                 * modules/gettext: Upgrade to gettext-0.15.
60510                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
60511                 m4/visibility.m4.
60512                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
60513
60514 2006-07-22  Bruno Haible  <bruno@clisp.org>
60515
60516         Merge from GNU gettext 0.15.
60517
60518         2006-03-25  Bruno Haible  <bruno@clisp.org>
60519
60520                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
60521
60522         2006-07-21  Bruno Haible  <bruno@clisp.org>
60523
60524                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
60525                 "1.1".
60526
60527         2006-05-09  Bruno Haible  <bruno@clisp.org>
60528
60529                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
60530                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
60531                 for the conftestver execution.
60532
60533         2006-05-01  Bruno Haible  <bruno@clisp.org>
60534
60535                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
60536                 optional target-version argument. Verify that the compiler
60537                 groks source of the specified source-version, or add -source
60538                 option as necessary. Verify that the compiler produces
60539                 bytecode in the specified target-version, or add -target and
60540                 -source options as necessary. Make the result of the test
60541                 available as variable CONF_JAVAC. Also log error output in
60542                 config.log.
60543
60544         2006-03-11  Bruno Haible  <bruno@clisp.org>
60545
60546                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
60547
60548         2006-05-09  Bruno Haible  <bruno@clisp.org>
60549
60550                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
60551                 CLASSPATH_SEPARATOR to a semicolon.
60552
60553         2006-03-12  Bruno Haible  <bruno@clisp.org>
60554
60555                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
60556                 available as variable CONF_JAVA, for subsequent autoconf
60557                 tests. Also log error output in config.log.
60558
60559         2006-07-19  Bruno Haible  <bruno@clisp.org>
60560
60561                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
60562                 that getline works on glibc2 systems. Needed to avoid trouble
60563                 in relocatable.c.
60564                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
60565
60566         2005-12-04  Bruno Haible  <bruno@clisp.org>
60567
60568                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
60569                 launcher (untested).
60570
60571         2005-12-04  Bruno Haible  <bruno@clisp.org>
60572
60573                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
60574
60575         2006-07-22  Bruno Haible  <bruno@clisp.org>
60576
60577                 * gettext.m4: Update from GNU gettext-0.15.
60578                 * nls.m4: Likewise.
60579                 * po.m4: Likewise.
60580                 * inttypes-pri.m4: Likewise.
60581                 * inttypes-h.m4: Renamed from inttypes.m4.
60582                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
60583
60584 2006-07-22  Bruno Haible  <bruno@clisp.org>
60585
60586         Merge from GNU gettext 0.15.
60587
60588         2005-07-05  Bruno Haible  <bruno@clisp.org>
60589
60590                 * printf-args.c (printf_fetchargs): Work around broken
60591                 definition of wint_t on mingw.
60592
60593         2005-02-12  Bruno Haible  <bruno@clisp.org>
60594
60595                 * xallocsa.h: Add extern "C" for C++.
60596
60597         2006-05-17  Bruno Haible  <bruno@clisp.org>
60598
60599                 Cygwin portability.
60600                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
60601
60602         2006-04-30  Bruno Haible  <bruno@clisp.org>
60603
60604                 * progreloc.c: Include <mach-o/dyld.h> if available.
60605                 (find_executable): Use _NSGetExecutablePath when possible.
60606
60607         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60608
60609                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
60610                 function.
60611
60612         2005-12-29  Bruno Haible  <bruno@clisp.org>
60613
60614                 * progreloc.c (set_program_name_and_installdir): Fix
60615                 compilation error.
60616
60617         2005-12-04  Bruno Haible  <bruno@clisp.org>
60618
60619                 Cygwin portability.
60620                 * progreloc.c: Include <windows.h> also on Cygwin.
60621                 (find_executable): Add support for Cygwin.
60622                 (set_program_name_and_installdir): Handle also platforms with
60623                 nonempty EXEEXT.
60624
60625         2006-07-11  Bruno Haible  <bruno@clisp.org>
60626
60627                 * javacomp.c: Fix a comment.
60628                 Reported by Jim Meyering.
60629
60630         2006-04-30  Bruno Haible  <bruno@clisp.org>
60631
60632                 * javacomp.h (compile_java_class): Add source_version,
60633                 target_version arguments.
60634                 * javacomp.c: Rewritten to choose only a compiler that
60635                 respects the specified source_version and target_version.
60636
60637         2006-06-27  Bruno Haible  <bruno@clisp.org>
60638
60639                 Assume correct S_ISDIR macro.
60640                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
60641
60642         2006-07-22  Bruno Haible  <bruno@clisp.org>
60643
60644                 * javaversion.h: New file, from GNU gettext.
60645                 * javaversion.c: New file, from GNU gettext.
60646                 * javaversion.java: New file, from GNU gettext.
60647                 * javaversion.class: New file, from GNU gettext.
60648
60649         2006-05-17  Bruno Haible  <bruno@clisp.org>
60650
60651                 Cygwin portability.
60652                 * javaexec.c (execute_java_class): Test for jview program
60653                 also on Cygwin.
60654
60655         2006-04-09  Bruno Haible  <bruno@clisp.org>
60656
60657                 * fatal-signal.c: Don't include string.h.
60658                 (at_fatal_signal): Use a copying loop instead of memcpy.
60659
60660         2005-12-04  Bruno Haible  <bruno@clisp.org>
60661
60662                 * csharpexec.c: Add support for 'clix' launcher (untested).
60663                 (execute_csharp_using_sscli): New function.
60664                 (execute_csharp_program): Call it.
60665
60666         2006-06-21  Bruno Haible  <bruno@clisp.org>
60667
60668                 Avoid warnings from recent versions of mcs.
60669                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
60670                 -o, -L, -r any more. Use options documented since mcs-1.0
60671                 instead. Similarly for -g.
60672
60673         2005-07-09  Bruno Haible  <bruno@clisp.org>
60674
60675                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
60676                 add a .dll suffix.
60677                 Reported by Mark Junker <mjscod@gmx.de>.
60678
60679         2006-06-17  Bruno Haible  <bruno@clisp.org>
60680
60681                 * config.charset: Update for NetBSD 3.0.
60682
60683         2006-05-17  Bruno Haible  <bruno@clisp.org>
60684
60685                 Cygwin portability.
60686                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
60687
60688         2006-05-16  Bruno Haible  <bruno@clisp.org>
60689
60690                 * localcharset.c [CYGWIN]: Include <windows.h>.
60691                 (get_charset_aliases): For Cygwin, return the same CPxxx
60692                 aliases list as under WIN32.
60693                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
60694                 the environment variables. Fall back to GetACP().
60695
60696         2006-04-05  Bruno Haible  <bruno@clisp.org>
60697
60698                 * config.charset: Update Juan Manuel Guerrero's address.
60699
60700         2005-02-12  Bruno Haible  <bruno@clisp.org>
60701
60702                 * allocsa.h: Add extern "C" for C++.
60703
60704         2005-02-10  Bruno Haible  <bruno@clisp.org>
60705
60706                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
60707                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
60708
60709         2006-07-22  Bruno Haible  <bruno@clisp.org>
60710
60711                 * gettext.h: Update to GNU gettext-0.15.
60712
60713 2006-07-22  Bruno Haible  <bruno@clisp.org>
60714
60715         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
60716         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
60717         lib-prefix.m4, longdouble.m4, ssize_t.m4.
60718
60719 2006-07-21  Eric Blake  <ebb9@byu.net>
60720
60721         * modules/stdlib-safer: New file.
60722         * MODULES.html.sh (File stream based Input/Output): Add
60723         stdlib-safer.
60724
60725 2006-07-21  Eric Blake  <ebb9@byu.net>
60726
60727         * lib/stdlib-safer.h: New file from coreutils, required by
60728         stdlib--.h.
60729
60730 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
60731
60732         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
60733
60734 2006-07-20  Bruno Haible  <bruno@clisp.org>
60735
60736         * gnulib-tool: Recognize new option --assume-autoconf.
60737         (autoconf_minversion): New variable.
60738         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
60739
60740 2006-07-20  Bruno Haible  <bruno@clisp.org>
60741
60742         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
60743
60744 2006-07-19  Derek R. Price  <derek@ximbiot.com>
60745
60746         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
60747         Reindent and repaginate.
60748
60749 2006-07-19  Derek Price  <derek@ximbiot.com>
60750
60751         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
60752         Correct grammar.
60753
60754 2006-07-17  Bruno Haible  <bruno@clisp.org>
60755
60756         * modules/list: New file.
60757         * modules/array-list: New file.
60758         * modules/carray-list, modules/carray-list-tests: New files.
60759         * modules/linked-list, modules/linked-list-tests: New files.
60760         * modules/avltree-list, modules/avltree-list-tests: New files.
60761         * modules/rbtree-list, modules/rbtree-list-tests: New files.
60762         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
60763         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
60764         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
60765         * modules/oset: New file.
60766         * modules/array-oset: New file.
60767         * modules/avltree-oset, modules/avltree-oset-tests: New files.
60768         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
60769         * tests/test-carray_list.c: New file.
60770         * tests/test-linked_list.c: New file.
60771         * tests/test-avltree_list.c: New file.
60772         * tests/test-rbtree_list.c: New file.
60773         * tests/test-linkedhash_list.c: New file.
60774         * tests/test-avltreehash_list.c: New file.
60775         * tests/test-rbtreehash_list.c: New file.
60776         * tests/test-avltree_oset.c: New file.
60777         * tests/test-rbtree_oset.c: New file.
60778         * MODULES.html.sh (Container data structures): New section.
60779
60780 2006-07-17  Bruno Haible  <bruno@clisp.org>
60781
60782         * m4/gl_list.m4: New file.
60783
60784 2006-07-17  Bruno Haible  <bruno@clisp.org>
60785
60786         * lib/gl_list.h: New file.
60787         * lib/gl_list.c: New file.
60788         * lib/gl_array_list.h: New file.
60789         * lib/gl_array_list.c: New file.
60790         * lib/gl_carray_list.h: New file.
60791         * lib/gl_carray_list.c: New file.
60792         * lib/gl_linked_list.h: New file.
60793         * lib/gl_linked_list.c: New file.
60794         * lib/gl_anylinked_list1.h: New file.
60795         * lib/gl_anylinked_list2.h: New file.
60796         * lib/gl_avltree_list.h: New file.
60797         * lib/gl_avltree_list.c: New file.
60798         * lib/gl_anyavltree_list1.h: New file.
60799         * lib/gl_anyavltree_list2.h: New file.
60800         * lib/gl_rbtree_list.h: New file.
60801         * lib/gl_rbtree_list.c: New file.
60802         * lib/gl_anyrbtree_list1.h: New file.
60803         * lib/gl_anyrbtree_list2.h: New file.
60804         * lib/gl_anytree_list1.h: New file.
60805         * lib/gl_anytree_list2.h: New file.
60806         * lib/gl_linkedhash_list.h: New file.
60807         * lib/gl_linkedhash_list.c: New file.
60808         * lib/gl_anyhash_list1.h: New file.
60809         * lib/gl_anyhash_list2.h: New file.
60810         * lib/gl_avltreehash_list.h: New file.
60811         * lib/gl_avltreehash_list.c: New file.
60812         * lib/gl_rbtreehash_list.h: New file.
60813         * lib/gl_rbtreehash_list.c: New file.
60814         * lib/gl_anytreehash_list1.h: New file.
60815         * lib/gl_anytreehash_list2.h: New file.
60816
60817         * lib/gl_oset.h: New file.
60818         * lib/gl_oset.c: New file.
60819         * lib/gl_array_oset.h: New file.
60820         * lib/gl_array_oset.c: New file.
60821         * lib/gl_avltree_oset.h: New file.
60822         * lib/gl_avltree_oset.c: New file.
60823         * lib/gl_rbtree_oset.h: New file.
60824         * lib/gl_rbtree_oset.c: New file.
60825         * lib/gl_anytree_oset.h: New file.
60826
60827 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60828
60829         * m4/mkancesdirs.m4: New file.
60830         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
60831         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
60832         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
60833         it.
60834
60835 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60836
60837         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
60838         * lib/mkancesdirs.h: New files.
60839         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
60840         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
60841         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
60842         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
60843         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
60844         callers changed.  Revamp internals significantly, by not
60845         attempting to create directories that are temporarily more
60846         permissive than the final results.  Do not attempt to use
60847         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
60848         This removes some race conditions, fixes some bugs, and simplifies
60849         things.  Use new dirchownmod function to do owner and mode changes.
60850         * lib/mkdir-p.h: Likewise.
60851         * lib/modechange.c (octal_to_mode): New function.
60852         (struct mode_change): New member mentioned.
60853         (make_node_op_equals): New arg mentioned.  All callers changed.
60854         (mode_compile): Keep track of which mode bits the user has explicitly
60855         mentioned.
60856         (mode_adjust): New arg DIR, so that we implement the X op correctly.
60857         New arg PMODE_BITS, to keep track of which mode bits the user
60858         mentioned; it treats S_ISUID and S_ISGID speciall.
60859         All callers changed.
60860         * lib/modechange.h: Likewise.
60861
60862 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60863
60864         * MODULES.html.sh: Add mkancestors.
60865         * modules/mkancesdirs: New module.
60866         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
60867         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
60868         The chdir-safer and afs files are now orphans; I'll remove them
60869         unless someone speaks up.
60870         Add lib/dirchownmod.c, lib/dirchownmod.h.
60871         (Depends-on): Remove alloca, chown, save-cwd, dirname.
60872         Add lchown, mkancesdirs.
60873         (Maintainer): Add self.
60874
60875 2006-07-15  Karl Berry  <karl@gnu.org>
60876
60877         * gnulib-tool: help message wording/arrangement.
60878
60879 2006-07-14  Simon Josefsson  <jas@extundo.com>
60880
60881         * doc/gnulib.texi (Libtool and Windows): New section.
60882
60883 2006-07-12  Simon Josefsson  <jas@extundo.com>
60884
60885         * modules/gendocs (License): Fix license, approved by Karl.
60886
60887 2006-07-12  Eric Blake  <ebb9@byu.net>
60888
60889         * MODULES.html.sh: Add gendocs.
60890
60891 2006-07-11  Eric Blake  <ebb9@byu.net>
60892
60893         * modules/fdl: New module, to install doc/fdl.texi.
60894         * MODULES.html.sh: Add new section for documentation modules.
60895         * gnulib-tool: Avoid space-tab.
60896         (--doc-base): New option, to manage files from doc.
60897
60898 2006-07-11  Eric Blake  <ebb9@byu.net>
60899
60900         * m4/absolute-header.m4: Fix comments to match recent change.
60901
60902 2006-07-11  Eric Blake  <ebb9@byu.net>
60903
60904         * gnulib-tool: List --doc-base before --tests-base.
60905
60906 2006-07-11  Derek R. Price  <derek@ximbiot.com>
60907
60908         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
60909
60910 2006-07-11  Bruno Haible  <bruno@clisp.org>
60911
60912         * README: Mention where to put documentation.
60913
60914 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60915
60916         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
60917
60918 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60919
60920         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
60921         to stdint.m4.
60922
60923 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60924
60925         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
60926         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
60927         "no/such/file/stdint.h" when there is no such file, so that
60928         the resulting C code can be parsed by dodgy compilers.
60929         Problems reported by Bob Proulx.
60930
60931 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60932
60933         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
60934         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60935         macros into the GNU _D_EXACT_NAMLEN.
60936         * lib/savedir.c:  Likewise.
60937         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
60938
60939 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60940         and Paul Eggert  <eggert@cs.ucla.edu>
60941
60942         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
60943         * m4/savedir.m4:
60944         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60945         macros into the GNU _D_EXACT_NAMLEN.
60946
60947 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60948
60949         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
60950         around the absolute name, to work around a problem with the HP-UX
60951         11.23 native C compiler, reported by Bob Proulx.
60952
60953 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60954
60955         * doc/maintain.texi, make-stds.texi: Sync from
60956         <http://savannah.gnu.org/projects/gnustandards>.
60957
60958 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60959
60960         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
60961
60962 2006-07-09  Jim Meyering  <jim@meyering.net>
60963
60964         * m4/glob.m4: Remove a doubled word in a comment.
60965
60966 2006-07-09  Jim Meyering  <jim@meyering.net>
60967
60968         * lib/argp-pv.c: Remove a doubled word in a comment.
60969         * lib/check-version.c (check_version): Likewise.
60970         * lib/javacomp.c (compile_java_class): Likewise.
60971
60972 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60973
60974         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
60975         for the benefit of people using Autoconf 2.60.  If you want to
60976         support older Autoconf versions you can copy m4/onceonly_2_57.m4
60977         (or m4/onceonly.m4, if pre-2.57) manually.
60978
60979 2006-07-08  Jim Meyering  <jim@meyering.net>
60980
60981         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
60982         comment.
60983         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
60984         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
60985         comment.
60986
60987 2006-07-08  Jim Meyering  <jim@meyering.net>
60988
60989         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
60990
60991 2006-07-07  Simon Josefsson  <jas@extundo.com>
60992
60993         * tests/test-crc.c: Change expected crc value, the test vector
60994         were probably computed using the old broken crc.c?
60995
60996 2006-07-06  Simon Josefsson  <jas@extundo.com>
60997
60998         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
60999         now the canonical place for the M4 file).
61000
61001         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
61002         from the sys_socket dependency now.
61003
61004         * modules/inet_pton (Files): Ditto.
61005
61006         * modules/inet_ntop (Files): Ditto.
61007
61008 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61009
61010         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
61011         not gl_PREREQ_GETUSERSHELL.
61012
61013 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61014
61015         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
61016         with only one argument, for Autoconf 2.60.
61017         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
61018         expand to nothing, so add a shell command to avoid syntax error.
61019         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61020
61021 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61022
61023         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
61024
61025 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61026
61027         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
61028         no longer needed.  Check for isblank decl.
61029         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
61030         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
61031         of existence.
61032
61033 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61034
61035         * lib/getloadavg.c: Use __VMS, not VMS.
61036         * lib/getopt.c: Likewise.
61037         * lib/getpagesize.h: Likewise.
61038         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
61039         and probably does not work.
61040
61041 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61042
61043         * lib/.cppi-disable: Add wcwidth.
61044         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
61045         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
61046         (ISGRAPH): Remove.  All uses changed to isgraph.
61047         (FOLD) [!defined _LIBC]: Remove special case.
61048         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
61049         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
61050         HAVE_ISBLANK.
61051         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
61052         case.
61053
61054 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61055
61056         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
61057         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
61058         brackets.  Other minor changes to suppress some compiler
61059         warnings.
61060
61061 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61062         and Paul Eggert  <eggert@cs.ucla.edu>
61063
61064         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
61065         of invoking obsolescent AC_HEADER_DIRENT macro.
61066         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61067         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
61068         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61069         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
61070         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
61071         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61072         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
61073         * m4/readdir.m4: Remove; no longer needed.
61074
61075 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61076         and Paul Eggert  <eggert@cs.ucla.edu>
61077
61078         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
61079         Don't worry about this obsolete case any more.
61080         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
61081         directories.
61082         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
61083         worry about this obsolete case any more.
61084         * lib/fts.c: Likewise.
61085         * lib/getcwd.c: Likewise.
61086         * lib/glob.h: Likewise.
61087         * lib/savedir.c: Likewise.
61088
61089 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61090
61091         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
61092         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
61093         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
61094         needed.
61095         All uses removed.
61096         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61097         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61098         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
61099         needed.
61100         * m4/getdate.m4 (gl_GETDATE): Likewise.
61101         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61102         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61103         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61104         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61105         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61106         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61107         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
61108         needed.
61109
61110 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61111
61112         * lib/memcasecmp.c: Include <limits.h>.
61113         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
61114         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
61115         Don't assume isdigit succeeds only on '0' through '9'.
61116
61117 2006-07-05  Eric Blake  <ebb9@byu.net>
61118
61119         * modules/getaddrinfo (Depends-on): Add snprintf.
61120
61121 2006-07-05  Eric Blake  <ebb9@byu.net>
61122
61123         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
61124         to avoid 'header present but could not be compiled' on cygwin.
61125
61126 2006-07-05  Eric Blake  <ebb9@byu.net>
61127
61128         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
61129         missing from netdb.h.
61130         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
61131
61132 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61133
61134         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
61135         no longer needed.
61136         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
61137         * m4/getdate.m4 (gl_GETDATE): Likewise.
61138         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61139         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61140         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61141         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61142         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61143
61144 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61145
61146         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
61147         All uses of is_space replaced by isspace.
61148         * lib/exit.h: Don't talk about STDC_HEADERS.
61149         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
61150         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
61151         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
61152         replaced by isprint etc.
61153         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
61154         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61155         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
61156         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
61157         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
61158         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61159
61160 2006-07-05  Bruno Haible  <bruno@clisp.org>
61161
61162         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
61163         the function exists, before testing against AIX.
61164         Reported by Martin Lambers <marlam@marlam.de>.
61165
61166 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61167
61168         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
61169         From Mark D. Baushke.
61170
61171 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61172
61173         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
61174         to the absolute name, not just one, to bypass Sun C 5.8's
61175         "warning: #include of /usr/include/... may be non-portable".
61176
61177 2006-07-04  Eric Blake  <ebb9@byu.net>
61178
61179         * modules/dirname-tests: New test module.
61180         * tests/test-dirname.c: New file, replacing dirname.c
61181         TEST_DIRNAME section that was recently deleted.
61182
61183 2006-07-04  Bruno Haible  <bruno@clisp.org>
61184
61185         Assume ANSI C header files and <ctype.h> functions.
61186         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
61187         (mbsnwidth): Use isprint, iscntrl instead.
61188
61189 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61190
61191         Merge from coreutils.
61192         * MODULES.html.sh: Add xstrtold.
61193         * modules/xstrtold: New file.
61194         * modules/cycle-check (Files): Add lib/same-inode.h.
61195         * modules/dirname (Files): Add m4/double-slash-root.m4.
61196         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
61197         * modules/mkdir-p (Files): Add lib/same-inode.h.
61198         * modules/same (Files): Add lib/same-inode.h.
61199
61200 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61201
61202         * m4/absolute-header.m4: Renamed from full-header-path.m4.
61203         This is to keep the terminology clean; POSIX talks about
61204         "absolute pathnames", not "full pathnames", but the GNU
61205         Coding Standards say to use "path" for something else;
61206         so use "absolute" to keep both sides happy.
61207         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
61208         Set gl_absolute_header, not gl_full_header_path.
61209         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
61210         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
61211         All uses changed.
61212
61213         Merge from coreutils.
61214
61215         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61216
61217         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
61218         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
61219         want to require the building of c-strtod.o.
61220         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
61221         needs -lm directly.
61222         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
61223
61224         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61225
61226         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
61227         --as-needed option if available.  Problem reported by Albert Chin in
61228         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
61229         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
61230         cc merely issues a bunch of annoying warnings for --as-needed
61231         (this problem was reported by Bob Proulx).  Also, try linking with
61232         -lm to detect a bug in binutils 2.16 (this problem was reported
61233         by Ralf Wildenhues).
61234
61235         2006-06-18  Jim Meyering  <jim@meyering.net>
61236
61237         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
61238         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
61239         macro.
61240         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
61241         also check for glibc-2.4's abort-inducing bug.
61242
61243         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
61244         Low-probability clean-up should be to use rmdir to get rid of
61245         the just-created directory, not unlink.
61246
61247         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
61248         configure fail, and request a bug report to inform us about it.
61249         Add a comment that, barring reports to the contrary, in 2007 we'll
61250         assume ftruncate is universally available.
61251
61252         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61253
61254         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
61255
61256         2006-03-12  Jim Meyering  <jim@meyering.net>
61257
61258         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
61259         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
61260         * m4/same.m4 (gl_SAME): Likewise.
61261         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
61262
61263         2006-03-11  Eric Blake  <ebb9@byu.net>
61264
61265         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
61266         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
61267         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
61268         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
61269
61270 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61271
61272         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
61273         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
61274         reported by Mark D. Baushke, one in
61275         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
61276
61277         Merge from coreutils.
61278
61279         * lib/.cppi-disable: Add stdint_.h.
61280         * lib/.cvsignore: Add stdint.h.
61281
61282         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61283
61284         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
61285         both double and long double versions.
61286         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
61287         * lib/xstrtold.c: New file.
61288         * lib/xstrtod.h (xstrtold): New decl.
61289
61290         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61291
61292         * lib/filemode.c (setst): Remove.
61293         (strmode): Rewrite to avoid setst.  This makes the code shorter,
61294         (arguably) clearer, and the generated code is a bit smaller on my
61295         Debian GNU/Linux stable x86 host.
61296
61297         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61298
61299         * lib/filemode.c: Include "filemode.h" first, to test the interface.
61300         Assume that filemode.h includes sys/types.h and sys/stat.h.
61301         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
61302         (ftypelet): Reorder to put common cases first, for efficiency.
61303         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
61304         to do 'M'.
61305         (strmode): Renamed from mode_string, and now stores 12 bytes instead
61306         of 10, for compatibility with FreeBSD.  All callers changed.
61307         (filemodestring): Now stores 12 bytes instead of 10, and sets file
61308         types that can't be deduced solely from st_mode.  First arg is now a
61309         const pointer.
61310         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
61311         (strmode): Renamed from mode_string.
61312         (filemodestring): New decl.
61313         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
61314         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
61315         needed.
61316         (S_ISPORT, S_ISWHT): New macros, if not already defined.
61317
61318         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
61319
61320         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
61321         fsusage.h now does that.  Include fsusage.h first, to test interface.
61322         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
61323         at most one method (the old code could have generated decls that
61324         didn't conform to C89, not that this was ever exercised).
61325         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
61326
61327         2006-03-19  Jim Meyering  <jim@meyering.net>
61328
61329         Work even in a chroot where d_ino values for entries in "/"
61330         don't match the stat.st_ino values for the same names.
61331         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
61332         number, iterate through all entries again, using lstat instead.
61333         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
61334         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
61335
61336         * lib/getcwd.c (__getcwd): Clarify a comment.
61337         Use memcpy in place of a call to strcpy.
61338
61339         2006-03-12  Jim Meyering  <jim@meyering.net>
61340
61341         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
61342         matches that of the current directory (which we're about to chdir ".."
61343         out of), then save the dev-ino of the parent, instead.
61344
61345         * lib/same-inode.h (SAME_INODE): New file/macro.
61346         * lib/chdir-safer.c (SAME_INODE): Remove definition.
61347         Include "same-inode.h", instead.
61348         * lib/same.c: Likewise.
61349         * lib/cycle-check.h: Include "same-inode.h".
61350         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
61351         * lib/cycle-check.c (SAME_INODE): Remove definition.
61352         * lib/root-dev-ino.h: Include "same-inode.h".
61353
61354         2006-03-11  Eric Blake  <ebb9@byu.net>
61355
61356         * lib/same.c (same_name): s/base_name/last_component/
61357         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
61358         * lib/filenamecat.c (file_name_concat): Likewise.
61359
61360         2006-03-11  Eric Blake  <ebb9@byu.net>,
61361                     Paul Eggert  <eggert@cs.ucla.edu>
61362
61363         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
61364         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
61365         drive prefix.
61366         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
61367         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
61368         (last_component): New method.
61369         * lib/dirname.c (dir_len): Determine when drive letters need a
61370         subsequent slash.  Preserve // when it is special.
61371         (dir_name): Don't append dot when drive letter is absolute.
61372         [TEST_DIRNAME]: Move into a full-blown gnulib test.
61373         * lib/basename.c (base_name): New semantics - malloc the result.
61374         Preserve // when it is special.  Preserve relative files that look
61375         like drive letters.
61376         (base_len): Preserve // when it is special.
61377         (last_component): New method, similar to old base_name semantics.
61378         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
61379         base_name.  Strip redundant slashes from ///.
61380
61381 2006-07-03  Jim Meyering  <jim@meyering.net>
61382
61383         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
61384         macro is used before the first cycle_check call.
61385
61386 2006-07-03  Eric Blake  <ebb9@byu.net>
61387
61388         * modules/dirname (Depends-on): Add xstrndup.
61389
61390 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61391
61392         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
61393         test cases, so that config.log is a bit easier to follow.
61394
61395 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61396
61397         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
61398         both are 64 bits, since this seems to be the tradition, and this
61399         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
61400         we ever run into a host that prefers long long to long in this
61401         case, we'll need another configure-time test.  Problem reported by
61402         Jim Meyering.
61403
61404 2006-07-02  Eric Blake  <ebb9@byu.net>
61405
61406         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
61407
61408 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61409
61410         * modules/inttypes (Depends-on): No longer depends on stdint.
61411         * modules/stdint (Description): Say more about assumptions.
61412         Say that the fast types might differ.  Say macros are used.
61413         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
61414         (Makefile.am): Revise list of substituted symbols to match
61415         new stdint.m4.
61416         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
61417         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
61418         * tests/test-stdint.c (verify_same_types)
61419         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
61420         the code conforms to C99/C89.
61421         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
61422         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
61423
61424 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61425
61426         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
61427         but fix a bug, by requiring at least 64 bits.
61428         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61429         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
61430         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
61431         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61432
61433         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
61434         changes.  Make 2.59 a prerequisite.  Check and substitute for
61435         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
61436         inttypes.h.  Do not use special include files; just use the
61437         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
61438         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
61439         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
61440         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
61441         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
61442         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
61443         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
61444         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
61445         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
61446         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
61447         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
61448         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
61449         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
61450         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
61451         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
61452         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
61453         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
61454         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
61455         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
61456         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
61457         WINT_MAX.  Check for C99 conformance more strictly, by detecting
61458         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
61459         not check for things that C99 does not require, e.g., int8_t.  If
61460         a test isn't needed unless <stdint.h> isn't working, and is
61461         unlikely to be needed for any other reason, then don't do it
61462         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
61463         size_t, since we assume C89 freestanding at least.  Do not check
61464         for sig_atomic_t, wchar_t, or wint_t, since the code now does
61465         the right thing even if the types are not defined.  Instead use:
61466         (gl_STDINT_TYPE_PROPERTIES): New macro.
61467         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
61468         testing whether <sys/types.h> clashes, as Autoconf does this for
61469         us now.  All uses removed.
61470         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
61471         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
61472         (gl_CHECK_TYPE_SAME):
61473         Remove; no longer needed.
61474         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
61475         exists, since we'll return 0 anyway in that case.
61476         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
61477
61478 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61479
61480         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
61481         possible collision with system files.
61482         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
61483         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
61484         WCHAR_MIN and WCHAR_MAX in this case.
61485         (<stddef.h>): Do not include; no longer needed.
61486         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
61487         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
61488         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
61489         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
61490         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
61491         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
61492         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
61493         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
61494         !defined(__c99))]: Include in this case too, since it's harmless
61495         now.
61496         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
61497         dangerous to do so.
61498         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
61499         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
61500         (_STDINT_MIN, _STDINT_MAX): New macros.
61501         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
61502         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
61503         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
61504         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
61505         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
61506         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
61507         macros, not typedefs; this simplifies things quite a bit.
61508         Use long int for all types narrower than int64_t.
61509         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
61510         Define in terms of long long int or int64_t or long int,
61511         not int64_t or int32_t.  This saves some compile-time testing.
61512         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
61513         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
61514         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
61515         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
61516         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
61517         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
61518         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
61519         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
61520         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
61521         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
61522         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61523         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61524         undef any previous version and define our own version, for
61525         simplicity and consistency with the new macros for types.
61526         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61527         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61528         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
61529         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
61530         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
61531         @WINT_T_SUFFIX@ to keep things simple here.
61532         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
61533         Simplify by assuming typical 8/16/32/64 host, since we're
61534         already doing that elsewhere anyway.
61535         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
61536         and assume long long int is 64 bits if available.  This
61537         speeds up 'configure'.
61538
61539 2006-07-01  Eric Blake  <ebb9@byu.net>
61540
61541         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
61542         Reported by Andreas Buening.
61543
61544 2006-07-01  Eric Blake  <ebb9@byu.net>
61545
61546         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
61547
61548 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61549
61550         * lib/getaddrinfo.c: fixed typo
61551
61552 2006-06-29  Jim Meyering  <jim@meyering.net>
61553
61554         * modules/strftime (Maintainer): Add my name, since with the
61555         FPRINTFTIME changes strftime.c has forked from glibc.
61556
61557 2006-06-29  Eric Blake  <ebb9@byu.net>
61558
61559         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
61560
61561 2006-06-29  Eric Blake  <ebb9@byu.net>
61562
61563         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
61564
61565 2006-06-29  Eric Blake  <ebb9@byu.net>
61566
61567         * lib/stat_.h: New file.
61568
61569 2006-06-29  Eric Blake  <ebb9@byu.net>
61570
61571         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
61572         unused static function.
61573
61574 2006-06-29  Eric Blake  <ebb9@byu.net>
61575
61576         * doc/functions.texi (Function Portability): Document missing lstat
61577         on mingw.
61578
61579 2006-06-29  Eric Blake  <ebb9@byu.net>
61580
61581         * MODULES.html.sh: Add sys_stat.
61582         * modules/sys_stat: New module.
61583         * modules/mkstemp (Depends-on): Add sys_stat.
61584
61585 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61586
61587         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
61588
61589 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61590
61591         * m4/c-bs-a.m4: Removed.
61592
61593 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61594
61595         * lib/strftime.c: Assume strftime() exists.
61596
61597 2006-06-29  Derek Price  <derek@ximbiot.com>
61598
61599         * modules/c-bs-a: Removed - \a is C89.
61600         * MODULES.html.sh: Remove c-bs-a.
61601
61602 2006-06-29  Bruno Haible  <bruno@clisp.org>
61603
61604         * modules/wcwidth (License): Change to LGPL.
61605
61606 2006-06-28  Simon Josefsson  <jas@extundo.com>
61607
61608         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
61609         on _WIN32.
61610
61611         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
61612         getnameinfo.
61613
61614 2006-06-28  Simon Josefsson  <jas@extundo.com>
61615
61616         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
61617
61618 2006-06-28  Simon Josefsson  <jas@extundo.com>
61619
61620         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
61621         functions there.  It will succeed on Windows XP, but on Windows
61622         2000 and (presumably) earlier, it will fail, and use the internal
61623         re-implementation.
61624         (use_win32_p): New function.
61625         (getaddrinfo): Use strtoul on servname, to support numeric ports.
61626         Support AI_NUMERICSERV to disable getservbyname.
61627         (getnameinfo): New function, only supports
61628         NI_NUMERICHOST|NI_NUMERICSERV for now.
61629
61630         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
61631         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
61632         getnameinfo.
61633
61634 2006-06-28  Eric Blake  <ebb9@byu.net>
61635
61636         * modules/wcwidth: New file.
61637         * modules/mbchar (Depends-on): Add wcwidth.
61638         * modules/mbswidth (Depends-on): Add wcwidth.
61639         * MODULES.html.sh: Add wcwidth.
61640
61641 2006-06-28  Eric Blake  <ebb9@byu.net>
61642
61643         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
61644         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
61645
61646 2006-06-28  Eric Blake  <ebb9@byu.net>
61647
61648         * lib/xvasprintf.h: Fix comments.
61649
61650 2006-06-28  Eric Blake  <ebb9@byu.net>
61651
61652         * lib/mbchar.h (wcwidth): Include wcwidth.h.
61653         * lib/mbswidth.c (wcwidth): Move from here...
61654         * lib/wcwidth.h: ...to this new file.
61655
61656 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61657
61658         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
61659
61660         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
61661         it's obsolete.
61662         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
61663
61664 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61665
61666         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
61667         Autoconf 2.60 says this stuff was obsolete.
61668
61669 2006-06-28  Bruno Haible  <bruno@clisp.org>
61670
61671         * modules/wcwidth (Files): Add m4/wchar_t.m4.
61672
61673 2006-06-28  Bruno Haible  <bruno@clisp.org>
61674
61675         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
61676         gt_TYPE_WCHAR_T.
61677
61678 2006-06-28  Bruno Haible  <bruno@clisp.org>
61679
61680         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
61681         declaration for wcwidth.
61682         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
61683
61684 2006-06-28  Bruno Haible  <bruno@clisp.org>
61685
61686         * lib/mkdtemp.c [MINGW]: Include <io.h>.
61687         (mkdir): Define using _mkdir.
61688
61689 2006-06-28  Bruno Haible  <bruno@clisp.org>
61690
61691         * lib/getaddrinfo.h: Fix POSIX URL.
61692         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
61693         _WIN32.
61694         (use_win32_p): Make static.
61695         (getaddrinfo): Reject service name if it is empty or does not consist
61696         solely of decimal digits, or if its value is > 65535.
61697         (getnameinfo): Remove useless casts.
61698
61699 2006-06-27  Simon Josefsson  <jas@extundo.com>
61700
61701         * modules/sys_select: New file, suggested by Bruno Haible, Paul
61702         Eggert and Martin Lambers.
61703
61704 2006-06-27  Simon Josefsson  <jas@extundo.com>
61705
61706         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
61707         Eggert and Martin Lambers.
61708
61709 2006-06-27  Bruno Haible  <bruno@clisp.org>
61710
61711         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
61712         result to 0, not to empty.
61713         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
61714
61715 2006-06-27  Bruno Haible  <bruno@clisp.org>
61716
61717         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
61718
61719 2006-06-26  Simon Josefsson  <jas@extundo.com>
61720
61721         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
61722         present.
61723
61724 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
61725
61726         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
61727         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
61728         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
61729
61730 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
61731
61732         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
61733
61734 2006-06-26  Bruno Haible  <bruno@clisp.org>
61735
61736         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
61737
61738 2006-06-26  Bruno Haible  <bruno@clisp.org>
61739
61740         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
61741
61742 2006-06-26  Bruno Haible  <bruno@clisp.org>
61743
61744         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
61745         SGI C compiler in pre-C99 mode.
61746         Suggested by Mark D. Baushke and Larry Jones.
61747
61748 2006-06-26  Bruno Haible  <bruno@clisp.org>
61749
61750         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
61751         WCHAR_MAX.
61752         Reported by Mark D. Baushke and Larry Jones.
61753
61754 2006-06-26  Bruno Haible  <bruno@clisp.org>
61755
61756         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
61757         in pre-C99 mode.
61758         Suggested by Mark D. Baushke and Larry Jones.
61759
61760 2006-06-23  Simon Josefsson  <jas@extundo.com>
61761             Bruno Haible  <bruno@clisp.org>
61762
61763         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
61764         Emit mostlyclean-local rule.
61765         (func_emit_tests_Makefile_am): Likewise.
61766         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
61767
61768 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
61769
61770         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
61771
61772 2006-06-23  Bruno Haible  <bruno@clisp.org>
61773
61774         * tests/test-stdint.c: Update to match ISO C 99 Technical
61775         Corrigendum 1.
61776
61777 2006-06-23  Bruno Haible  <bruno@clisp.org>
61778
61779         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
61780
61781 2006-06-23  Bruno Haible  <bruno@clisp.org>
61782
61783         * lib/stdint_.h: Treat IRIX like OpenBSD.
61784
61785 2006-06-23  Bruno Haible  <bruno@clisp.org>
61786
61787         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
61788         ISO C 99 Technical Corrigendum 1.
61789
61790 2006-06-22  Simon Josefsson  <jas@extundo.com>
61791
61792         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
61793         MinGW.
61794
61795 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61796
61797         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
61798         needed.  Some compiler complained about some of them.  Problem reported
61799         by Larry Jones in
61800         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
61801
61802 2006-06-21  Simon Josefsson  <jas@extundo.com>
61803
61804         * tests/test-getaddrinfo.c: New file.
61805
61806         * modules/getaddrinfo-tests: New file.
61807
61808         * MODULES.html.sh: Add inet_pton.
61809
61810         * modules/inet_pton: New file.
61811
61812 2006-06-21  Simon Josefsson  <jas@extundo.com>
61813
61814         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
61815         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
61816         of using the (limited) gnulib implementation on Windows XP.
61817
61818         * m4/inet_pton.m4: New file.
61819
61820 2006-06-21  Simon Josefsson  <jas@extundo.com>
61821
61822         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
61823         variable.
61824
61825         * lib/socket_.h: Don't define WINVER.
61826
61827         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
61828         slightly modified to work in gnulib.
61829
61830 2006-06-21  Simon Josefsson  <jas@extundo.com>
61831
61832         * doc/gnulib.texi (Windows sockets): Add.
61833
61834 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61835
61836         * lib/read-file.c (fread_file): Start with buffer allocation of
61837         0 bytes rather than 1 byte; this simplifies the code.
61838         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
61839         code to free buffer and save/restore errno.
61840         (internal_read_file): Remove unused local.
61841
61842 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61843
61844         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
61845         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
61846         Problem reported by Denis Excoffier in
61847         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
61848
61849 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61850
61851         * modules/sys_socket, modules/socklen: Include sys/types since
61852         FreeBSD 4.x's sys/socket.h needs it.
61853
61854 2006-06-19  Simon Josefsson  <jas@extundo.com>
61855
61856         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
61857
61858 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61859
61860         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
61861
61862 2006-06-19  Bruno Haible  <bruno@clisp.org>
61863
61864         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
61865         and FULL_PATH_INTTYPES_H in angle brackets.
61866         Reported by Mark D. Baushke <mdb@gnu.org>.
61867
61868 2006-06-17  Eric Blake  <ebb9@byu.net>
61869
61870         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
61871         errno.
61872
61873 2006-06-17  Bruno Haible  <bruno@clisp.org>
61874
61875         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
61876         <sys/inttypes.h>.
61877
61878 2006-06-17  Bruno Haible  <bruno@clisp.org>
61879
61880         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
61881         whether errno is declared. Assume <errno.h> declares errno.
61882
61883 2006-06-17  Bruno Haible  <bruno@clisp.org>
61884
61885         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
61886
61887 2006-06-17  Bruno Haible  <bruno@clisp.org>
61888
61889         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
61890         problem on Solaris 2.5.1.
61891
61892 2006-06-16  Eric Blake  <ebb9@byu.net>
61893
61894         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
61895         * lib/unicodeio.c [!defined errno]: Likewise.
61896         * lib/strtol.c [!defined errno]: Likewise.
61897         * lib/strtod.c [!defined errno]: Likewise.
61898
61899 2006-06-15  Eric Blake  <ebb9@byu.net>
61900
61901         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
61902
61903 2006-06-15  Eric Blake  <ebb9@byu.net>
61904
61905         * config/srclist.txt (ssize_t.m4): Lose sync.
61906
61907 2006-06-15  Bruno Haible  <bruno@clisp.org>
61908
61909         * modules/stdint (Files): Include m4/full-header-path.m4,
61910         m4/size_max.m4, m4/wchar_t.m4.
61911         (Makefile.am): Many more substitutions.
61912         * modules/stdint-tests: New file.
61913         * tests/test-stdint.c: New file.
61914
61915 2006-06-15  Bruno Haible  <bruno@clisp.org>
61916
61917         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
61918         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
61919         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
61920         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
61921         gl_CHECK_TYPE_SAME): New macros.
61922
61923 2006-06-15  Bruno Haible  <bruno@clisp.org>
61924
61925         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
61926
61927 2006-06-15  Bruno Haible  <bruno@clisp.org>
61928
61929         * lib/stdint_.h: Rewritten to be fully auto-configured.
61930         Fixes bug on HP-UX/IA64.
61931
61932 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
61933
61934         * lib/getdate.y (__attribute__): Don't define if already defined.
61935         Problem reported by Larry Jones.
61936         * lib/utimens.c (__attribute__): Likewise.
61937
61938 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
61939
61940         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
61941         reported by Andreas Schwab.
61942
61943 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61944             Bruno Haible  <bruno@clisp.org>
61945
61946         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
61947         check for the declaration of strnlen and a run test that exposes the
61948         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
61949         rpl_strndup.
61950
61951 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61952             Bruno Haible  <bruno@clisp.org>
61953
61954         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
61955
61956 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61957
61958         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
61959         compile test, for Tru64 4.0D.
61960
61961 2006-05-28  Karl Berry  <karl@gnu.org>
61962
61963         * config/srclist.txt (printf-args.c): lose sync.
61964
61965 2006-05-26  Martin Lambers  <marlam@marlam.de>
61966
61967         * lib/getpass.c: Updates the test for the native W32 API, and adds
61968         missing includes, thus fixing compilation warnings.
61969
61970 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61971
61972         * lib/exclude.c (exclude_fnmatch): New function.
61973         (excluded_file_name): Call exclude_fnmatch.
61974         * lib/exclude.h (excluded_file_name): New prototype
61975
61976 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
61977
61978         * lib/tempname.c (small_open, large_open): New macros.
61979         (__open, __open64) [!_LIBC]: Remove.
61980         (__gen_tempname): Use small_open and large_open instead of __open
61981         and __open64.  This fixes a portability bug on HP-UX 11.11i
61982         reported by Simon Wing-Tang in
61983         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
61984
61985 2006-05-24  Bruno Haible  <bruno@clisp.org>
61986
61987         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
61988         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
61989         Reported by Thorsten Maerz <torte@netztorte.de> via
61990         Aaron Stone <aaron@serendipity.cx>.
61991
61992 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61993
61994         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
61995         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
61996         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
61997         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
61998         not really conditional on the cache.
61999         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
62000
62001 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62002
62003         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
62004         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
62005         (my_usleep): Don't mishandle maximum value.
62006
62007 2006-05-19  Jim Meyering  <jim@meyering.net>
62008
62009         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
62010
62011 2006-05-17  Bruno Haible  <bruno@clisp.org>
62012
62013         Cygwin portability.
62014         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
62015
62016 2006-05-17  Bruno Haible  <bruno@clisp.org>
62017
62018         * lib/stdint_.h: Fix recognition of Cygwin.
62019
62020 2006-05-15  Bruno Haible  <bruno@clisp.org>
62021
62022         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
62023         on libtool patch by Ralf Wildenhues.
62024
62025 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62026
62027         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
62028         test for C99 conformance; (bool) 0.5 is an integer constant
62029         expression, but (bool) -0.5 is not.  Problem reported by Fedor
62030         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
62031
62032 2006-05-11  Simon Josefsson  <jas@extundo.com>
62033
62034         * m4/xvasprintf.m4: Fix obvious typo.
62035
62036 2006-05-11  Jim Meyering  <jim@meyering.net>
62037
62038         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
62039         James Lemley.
62040
62041 2006-05-10  Simon Josefsson  <jas@extundo.com>
62042
62043         * lib/md4.c: Typo fix, update copyright years.
62044         (K1, K2): Don't use L because it turn computations into 64-bit on
62045         64-bit platforms.
62046
62047 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
62048
62049         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
62050         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
62051         unwanted sign propagation, e.g., on hosts with 64-bit int.
62052         There still are some problems with reeelly weird theoretical hosts
62053         (e.g., 33-bit int) but it's not worth worrying about now.
62054         * lib/sha1.c (rol): Likewise.
62055         (K1, K2, K3, K4): Remove unnecessary L suffix.
62056
62057 2006-05-10  Bruno Haible  <bruno@clisp.org>
62058
62059         * lib/des.c: Cast to avoid warnings.
62060
62061 2006-05-09  Bruno Haible  <bruno@clisp.org>
62062
62063         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
62064         (Depends-on): Depend also on xsize, stdarg.
62065         (configure.ac): Add gl_XVASPRINTF.
62066
62067 2006-05-09  Bruno Haible  <bruno@clisp.org>
62068
62069         * m4/xvasprintf.m4: New file.
62070
62071 2006-05-09  Bruno Haible  <bruno@clisp.org>
62072
62073         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
62074         (EOVERFLOW): Define fallback value.
62075         (xstrcat): New function.
62076         (xvasprintf): Recognize the special case of a string concatenation.
62077
62078 2006-05-08  Eric Blake  <ebb9@byu.net>
62079
62080         * gnulib-tool (func_version): Base copyright year on CVS date.
62081         (func_emit_copyright_notice): New function.
62082         (func_emit_lib_Makefile_am): Use it.
62083         (func_emit_tests_Makefile_am): Likewise.
62084         (func_import): Likewise.
62085
62086 2006-05-08  Bruno Haible  <bruno@clisp.org>
62087
62088         * modules/stdarg: New file.
62089         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
62090
62091 2006-05-08  Bruno Haible  <bruno@clisp.org>
62092
62093         * m4/stdarg.m4: New file, from GNU gettext.
62094
62095 2006-05-08  Bruno Haible  <bruno@clisp.org>
62096
62097         * config/srclist.txt (build-aux/config.rpath): different from latest
62098         release.
62099
62100 2006-05-08  Bruno Haible  <bruno@clisp.org>
62101
62102         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
62103
62104 2006-05-05  Jim Meyering  <jim@meyering.net>
62105
62106         * m4/warning.m4: New file, derived from bison's file by the same name.
62107
62108 2006-05-03  Bruno Haible  <bruno@clisp.org>
62109
62110         * lib/stdint_.h: Shorter URL.
62111         * lib/inttypes.h: Likewise.
62112
62113 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62114
62115         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
62116
62117 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62118
62119         * lib/verify.h: Document the internals better.  Most of this change
62120         was written by Bruno Haible.
62121
62122 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62123
62124         * doc/verify.texi: New file, partly based on a proposal by
62125         Bruno Haible.
62126
62127 2006-05-02  Bruno Haible  <bruno@clisp.org>
62128
62129         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
62130         test from here...
62131         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
62132
62133 2006-04-29  Bruno Haible  <bruno@clisp.org>
62134
62135         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
62136         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
62137
62138 2006-04-29  Bruno Haible  <bruno@clisp.org>
62139
62140         * gnulib-tool: Make --update option actually work.
62141
62142 2006-04-29  Bruno Haible  <bruno@clisp.org>
62143
62144         * doc/gcd.texi: New file.
62145         * doc/gnulib.texi: Include it.
62146
62147 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
62148
62149         * lib/getdate.y (get_date): When adding relative date, start with the
62150         initial time, not with the result of the first mktime call.
62151
62152 2006-04-25  Bruno Haible  <bruno@clisp.org>
62153
62154         * gnulib-tool (func_import): Output the include directives in three
62155         blocks, sorted separately.
62156         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62157
62158 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62159
62160         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
62161         to define main with arguments, for C++.  Reported by Eric Blake.
62162         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
62163         Prefer 'int main ()' to 'int main (void)', for C++.
62164         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62165         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
62166         for 'main', for C99 and C++.
62167
62168 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62169
62170         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
62171         Don't assume that exit status -1 is valid.
62172         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62173         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62174         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62175         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
62176         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
62177         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
62178         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
62179         functions can be used without declaring them, or that you can
62180         exit with status -1.
62181         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62182
62183 2006-04-24  Karl Berry  <karl@gnu.org>
62184
62185         * config/srclist.txt (longdouble.m4): sync lost.
62186
62187 2006-04-24  Eric Blake  <ebb9@byu.net>
62188
62189         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
62190
62191 2006-04-24  Bruno Haible  <bruno@clisp.org>
62192
62193         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
62194         poll() implementation in AIX.
62195         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62196
62197 2006-04-24  Bruno Haible  <bruno@clisp.org>
62198
62199         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
62200         assigned exactly once.
62201
62202 2006-04-23  Claudio Fontana  <claudio@gnu.org>
62203             Bruno Haible  <bruno@clisp.org>
62204
62205         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
62206         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
62207         for AM_CPPFLAGS.
62208
62209 2006-04-23  Bruno Haible  <bruno@clisp.org>
62210
62211         * modules/copy-file: Depend on unistd.
62212         * modules/execute: Likewise.
62213         * modules/fatal-signal: Likewise.
62214         * modules/findprog: Likewise.
62215         * modules/mkdtemp : Likewise.
62216         * modules/pipe: Likewise.
62217         * modules/wait-process: Likewise.
62218
62219 2006-04-23  Bruno Haible  <bruno@clisp.org>
62220
62221         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
62222         condition was already detected.
62223         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62224
62225 2006-04-23  Bruno Haible  <bruno@clisp.org>
62226
62227         * lib/copy-file.c: Include <unistd.h> unconditionally.
62228         * lib/execute.c: Likewise.
62229         * lib/fatal-signal.c: Likewise.
62230         * lib/findprog.c: Likewise.
62231         * lib/mkdtemp.c: Likewise.
62232         * lib/pipe.h: Likewise.
62233         * lib/pipe.c: Likewise.
62234         * lib/wait-process.h: Likewise.
62235
62236 2006-04-23  Bruno Haible  <bruno@clisp.org>
62237
62238         * gnulib-tool (func_usage): Fix --import description. Document
62239         --update.
62240         (func_import): Create temporary file in a temporary directory, if
62241         --dry-run is specified. Silence errors from 'grep' when there are no
62242         m4 files in $m4dir.
62243         (func_create_testdir): Silence errors from 'grep' when there are no
62244         m4 files in $m4dir.
62245         Reported by Karl Berry <karl@freefriends.org>.
62246
62247 2006-04-20  Bruno Haible  <bruno@clisp.org>
62248
62249         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
62250         one argument, so that the code will be portable to Autoconf 2.60.
62251         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
62252         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62253         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
62254
62255 2006-04-19  Derek Price  <derek@ximbiot.com>
62256             Eric Blake  <ebb9@byu.net>
62257
62258         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
62259         rather than "/full/path.h".  Update comment to match.  Shorten &
62260         generalize m4_translit call via AS_TR_CPP.
62261
62262 2006-04-19  Derek Price  <derek@ximbiot.com>
62263             Eric Blake  <ebb9@byu.net>
62264
62265         * lib/inttypes.h: Correct grammar in comment.
62266
62267 2006-04-18  Derek Price  <derek@ximbiot.com>
62268             Paul Eggert  <eggert@cs.ucla.edu>
62269
62270         * modules/inttypes: New file.
62271         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
62272
62273 2006-04-18  Derek Price  <derek@ximbiot.com>
62274             Paul Eggert  <eggert@cs.ucla.edu>
62275
62276         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
62277         New files.
62278
62279 2006-04-18  Derek Price  <derek@ximbiot.com>
62280             Paul Eggert  <eggert@cs.ucla.edu>
62281
62282         * lib/inttypes.h: New file.
62283         * lib/strtoimax.c: Assume <inttypes.h>.
62284
62285 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
62286
62287         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
62288         isn't mounted.  Problem reported by Kir Kolyshkin.
62289
62290 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62291
62292         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
62293         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
62294         Derek R. Price.
62295         * lib/regex.h (RE_DUP_MAX): Update comment to match current
62296         implementation.
62297
62298 2006-04-12  Eric Blake  <ebb9@byu.net>
62299
62300         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
62301         is now done automatically by the corresponding Autoconf macro.
62302
62303 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
62304
62305         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
62306         time_r.h.
62307
62308 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62309
62310         Merge regex changes from libc, removing some of our
62311         POSIX-conformance changes that were rejected and redoing them in a
62312         less-intrusive way.
62313
62314         * lib/regcomp.c (re_compile_internal, init_dfa):
62315         Length arg is now size_t, not Idx.  All uses changed.
62316         (peek_token): Forward decl now says internal_function.
62317         (__re_error_msgid, __re_error_msgid_idx):
62318         Now static rather than extern with attribute_hidden.
62319         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
62320         For some reason libc prefers K&R style defns for external functions.
62321         (regerror) [!defined _LIBC]: Likewise.
62322         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
62323         (seek_collating_symbol_entry, lookup_collation_sequence_value):
62324         (build_range_exp, build_collating_symbol):
62325         Use K&R-style defn.
62326         (re_compile_fastmap): Use '\0' to memset, not 0.
62327         (utf8_sb_map): Make the calculations more obvious.
62328         (init_dfa, parse_bracket_exp, build_charclass_op):
62329         Call calloc and cast result, as glibc does.
62330         (init_word_char, fetch_token, peek_token, peek_token_bracket):
62331         (build_range_exp, build_collating_symbol):
62332         Now internal functions.
62333
62334         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
62335
62336         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
62337         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
62338         Don't depend on VMS; depend on __VMS instead, for POSIX
62339         namespace cleanness.
62340         (regoff_t): Define to ssize_t, not long int.
62341
62342         Remove the REG_ macros named below.  Instead, make the old names
62343         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
62344         __USE_GNU_REGEX.
62345         (REG_BACKSLASH_ESCAPE_IN_LISTS):
62346         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
62347         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
62348         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
62349         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
62350         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
62351         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
62352         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
62353         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
62354         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
62355         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
62356         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
62357         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
62358         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
62359         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
62360         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
62361         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
62362         (REG_NREGS):
62363         Remove.  All uses replaced by the old RE_* names.
62364         (RE_BACKSLASH_ESCAPE_IN_LISTS):
62365         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
62366         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
62367         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
62368         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
62369         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
62370         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
62371         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
62372         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
62373         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
62374         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
62375         Don't bother having these macros be independent of each others'
62376         values, since they no longer exist in the POSIX name space.
62377
62378         Rename the following member names back to their old names,
62379         unless !__USE_GNU_REGEX.  All uses changed back.
62380         (buffer): Renamed from re_buffer.
62381         (allocated): Renamed from re_allocated.
62382         (used): Renamed from re_used.
62383         (syntax): Renamed from re_syntax.
62384         (fastmap): Renamed from re_fastmap.
62385         (translate): Renamed from re_translate.
62386         (can_be_null): Renamed from re_can_be_null.
62387         (regs_allocated): Renamed from re_regs_allocated.
62388         (fastmap_accurate): Renamed from re_fastmap_accurate.
62389         (no_sub): Renamed from re_no_sub.
62390         (not_bol): Renamed from re_not_bol.
62391         (not_eol): Renamed from re_not_eol.
62392         (newline_anchor): Renamed from re_newline_anchor.
62393         (num_regs): Renamed from rm_num_regs.
62394         (start): Renamed from rm_start.
62395         (end): Renamed from rm_end.
62396
62397         (free_state): Move up a bit.
62398
62399         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
62400         #define to be empty.
62401         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
62402         when that is what is intended.
62403         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
62404         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
62405         (MAX): New macro.
62406         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
62407         All uses changed back to re_malloc, etc.  It's now the caller's
62408         responsibility to check for overflow; all callers changed.
62409         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
62410         (re_x2nrealloc): Remove.
62411         (free_state): Remove decl.
62412
62413         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
62414         (re_set_registers, re_exec):
62415         Use K&R-style defn.
62416
62417         2006-01-31  Roland McGrath  <roland@redhat.com>
62418
62419         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
62420         Reported by Mike Frysinger <vapier@gentoo.org>.
62421
62422         2006-01-15  Andreas Jaeger  <aj@suse.de>
62423
62424         [BZ #1950]
62425         * lib/regex_internal.c (re_string_reconstruct): Adjust for
62426         build_wcs_upper_buffer change.
62427         (build_wcs_upper_buffer): Change return type.
62428
62429         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
62430
62431         * lib/regex_internal.h: Include <stdint.h> if available.
62432
62433         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
62434
62435         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
62436
62437         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62438
62439         * lib/regcomp.c: Adjust for changed secondary hash function.
62440
62441         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
62442
62443         * lib/regex.h: Pretty printing.
62444         Clean up namespace a bit.
62445
62446         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
62447
62448         * lib/regexec.c (update_cur_sifted_state, check_arrival,
62449         check_arrival_add_next_nodes): Avoid using uninitialized variable.
62450
62451         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62452                     Ulrich Drepper  <drepper@redhat.com>
62453
62454         [BZ #1302]
62455         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
62456         changed.
62457         (bitset_word_t): Renamed from bitset_word.  All uses changed.
62458
62459         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
62460
62461         [BZ #281]
62462         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
62463         * lib/regcomp.c: Remove unnecessary uses of
62464         unsigned RE_TRANSLATE_TYPE.
62465         * lib/regex_internal.h: Likewise.
62466         * lib/regex_internal.c: Likewise.
62467         * lib/regexec.c: Likewise.
62468         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
62469
62470         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
62471
62472         * lib/regexec.c (find_recover_state): Remove unnecessary
62473         initialization.
62474         (transit_state_bkref): Make DFA a const pointer.
62475         (get_subexp): Likewise.
62476         (check_arrival): Likewise.
62477         (update_cur_sifted_state): Likewise.
62478         (re_search_internal): Likewise.
62479         (prune_impossible_nodes): Likewise.
62480         (acquire_init_state_context): Likewise.
62481         (proceed_next_node): Likewise.
62482         (set_regs): Likewise.
62483         (free_fail_stack_return): Likewise.
62484         (check_arrival_expand_ecl): Mark DFA parameter as const.
62485         (check_arrival_expand_ecl_sub): Likewise.
62486         (check_subexp_limits): Likewise.
62487         (sub_epsilon_src_nodes):  Likewise.
62488         (add_epsilon_src_nodes):  Likewise.
62489         (merge_state_array): Likewise.
62490         (update_regs): Likewise.
62491         (build_trtable): Likewise.
62492         (sift_states_backward): Mark MCTX parameter as const.
62493         (build_sifted_states): Likewise.
62494         (update_cur_sifted_state): Likewise.
62495         (sift_states_mkref): Likewise.
62496         (check_arrival_expand_ecl): Mark eclosure as const.
62497         (check_dst_limits_calc_pos_1): Likewise.
62498         * lib/regex_internal.h (re_match_context_t): Make dfa a const
62499         pointer.
62500
62501         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
62502
62503         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
62504         (transit_state_sb): Likewise.
62505         (transit_state_mb): Likewise.
62506         (sift_states_iter_mb): Likewise.
62507         (check_arrival_add_next_nodes): Likewise.
62508         (check_node_accept_bytes): Change first parameter to pointer-to-const.
62509         [_LIBC] (re_search_2_stub): Use mempcpy.
62510
62511         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
62512         mbrtowc for very simple UTF-8 case.
62513
62514         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
62515         a pointer-to-const.
62516         (re_acquire_state_context): Likewise.
62517         * lib/regex_internal.h: Adjust prototypes.
62518
62519         * lib/regex.c: Prevent using C++ compilers.
62520
62521         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
62522         (re_acquire_state_context): Likewise.
62523
62524 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62525
62526         * modules/regex (Depends-on): Add ssize_t.
62527
62528 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62529
62530         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
62531         translation table.
62532
62533 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62534
62535         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
62536
62537 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
62538             Bruno Haible  <bruno@clisp.org>
62539
62540         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
62541         <sys/types.h> and <inttypes.h>.
62542
62543 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62544
62545         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
62546         `__error_t_defined', so argp.h will not typedef the former.
62547
62548 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62549
62550         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
62551         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
62552         glibc names.  Even if glibc is changed to conform to POSIX, the
62553         traditional names will be available anyway, since regex depends on
62554         the extensions module.  Also, fix a longstanding typo in the
62555         implementation of Spencer ERE test #75 from grep 2.3.  Problems
62556         reported by Emanuele Giaquinta.  Also, change sense of cached
62557         variable, so that the message makes sense.
62558
62559 2006-03-24  Simon Josefsson  <jas@extundo.com>
62560
62561         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
62562         including some doc fixes.
62563         (base64_encode_alloc): Fix +1 bug on allocation failures.
62564
62565 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62566
62567         * lib/base64.c (base64_encode): Do not read past end of array with
62568         unsanitized input on systems with CHAR_BIT > 8.
62569
62570 2006-03-24  Eric Blake  <ebb9@byu.net>
62571
62572         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
62573
62574 2006-03-22  Karl Berry  <karl@gnu.org>
62575
62576         * config/srclist.txt (*setenv.[ch]): get from coreutils.
62577         * config/srclistvars.sh (COREUTILS): new var.
62578
62579 2006-03-17  Jim Meyering  <jim@meyering.net>
62580
62581         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
62582         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
62583
62584 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62585
62586         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
62587         no longer needs it.  Instead, check that regoff_t is as least
62588         as wide as ptrdiff_t.
62589
62590         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
62591         so that our regex.h stays compatible with the installed regex.
62592         This is helpful for installers who configure --without-included-regex.
62593         Problem reported by Emanuele Giaquinta.
62594
62595 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62596
62597         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
62598         Typedef to long int, not to off_, as POSIX will likely change
62599         in that direction.
62600
62601 2006-03-15  Eric Blake  <ebb9@byu.net>
62602
62603         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
62604
62605 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62606
62607         * lib/argp-help.c (validate_uparams): Fix typo
62608         * lib/argp-parse.c (argp_default_options): Consistently begin help
62609         messages with a lowercase letter.
62610
62611 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
62612
62613         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
62614         overrun buffers and shouldn't be used (much as gets shouldn't be
62615         used).
62616         * lib/time_r.c (asctime_r, ctime_r): Likewise.
62617
62618 2006-03-08  Simon Josefsson  <jas@extundo.com>
62619
62620         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
62621         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62622
62623 2006-03-08  Simon Josefsson  <jas@extundo.com>
62624
62625         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
62626         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62627
62628 2006-03-08  Simon Josefsson  <jas@extundo.com>
62629
62630         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
62631         signal that configure disabled the device.
62632
62633 2006-03-08  Simon Josefsson  <jas@extundo.com>
62634
62635         * build-aux/maint.mk: Fix refresh-po, to handle no translated
62636         languages.
62637
62638 2006-03-07  Simon Josefsson  <jas@extundo.com>
62639
62640         * modules/getopt (Depends-on): Add unistd.
62641
62642         * modules/unistd: New file.
62643
62644 2006-03-07  Simon Josefsson  <jas@extundo.com>
62645
62646         * modules/gc-random: New file.
62647
62648 2006-03-07  Simon Josefsson  <jas@extundo.com>
62649
62650         * m4/unistd_h.m4: New file.
62651
62652 2006-03-07  Simon Josefsson  <jas@extundo.com>
62653
62654         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
62655         test to be side-effect free by storing the result in the cache
62656         variable gl_cv_lib_readline, and moving the assignment of
62657         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
62658         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62659
62660 2006-03-07  Simon Josefsson  <jas@extundo.com>
62661
62662         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
62663         error on missing devices (the functions will return an error).
62664
62665         * m4/gc.m4: Move random stuff to gc-random.m4
62666
62667 2006-03-07  Simon Josefsson  <jas@extundo.com>
62668
62669         * lib/unistd_.h: New file.
62670
62671 2006-03-07  Simon Josefsson  <jas@extundo.com>
62672
62673         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
62674
62675 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62676
62677         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
62678         Problem reported by Juan Manuel Guerrero.
62679
62680 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62681
62682         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
62683         the unistd module.
62684         * lib/getlogin_r.c: Likewise.
62685         * lib/getlogin_r.h: Likewise.
62686         * lib/glob.c: Likewise.
62687         * lib/pagealign_alloc.c: Likewise.
62688         * lib/unistd_.h: Remove; no longer needed.
62689
62690 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62691
62692         * MODULES.html.sh (Support for systems lacking POSIX:2001):
62693         Add unistd.
62694         * modules/c-stack (Depends-on): Add unistd.
62695         * modules/getlogin_r: Likewise.
62696         * modules/glob: Likewise.
62697         * modules/pagealign_alloc: Likewise.
62698         * modules/unistd (Files): Remove lib/unistd_.h.
62699         (EXTRA_DIST): Remove.
62700         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
62701         need unistd_.h.
62702         (MOSTLYCLEANFILES): Remove unistd.h-t.
62703
62704 2006-03-03  Simon Josefsson  <jas@extundo.com>
62705
62706         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
62707
62708 2006-03-03  Simon Josefsson  <jas@extundo.com>
62709
62710         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
62711         libidn and bison.
62712
62713 2006-03-03  Simon Josefsson  <jas@extundo.com>
62714
62715         * build-aux/maint.mk: Add indent target.
62716
62717 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
62718
62719         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
62720         our replacement poll.h in any case, to avoid a differing
62721         declaration from a system header.  Seen on AIX.
62722
62723 2006-03-01  Simon Josefsson  <jas@extundo.com>
62724
62725         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
62726         <kasal@ucw.cz>.
62727
62728 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62729
62730         * modules/gettime (Depends-on): Add extensions module.
62731         * modules/nanosleep (Depends-on): Likewise.
62732         * modules/settime (Depends-on): Likewise.
62733
62734 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62735
62736         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
62737         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
62738         pedantically.
62739         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62740         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
62741
62742         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
62743         not "==".  Reported by Ralf Wildenhues.
62744
62745 2006-03-01  Karl Berry  <karl@gnu.org>
62746
62747         * doc/Copyright/request-*: new files, synced from gnuorg.
62748
62749 2006-03-01  Karl Berry  <karl@gnu.org>
62750
62751         * config/srclist.txt (Copyright/*): new entries.
62752
62753 2006-02-28  Simon Josefsson  <jas@extundo.com>
62754
62755         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
62756
62757 2006-02-27  Simon Josefsson  <jas@extundo.com>
62758
62759         * lib/base64.h: Indent #define's.  From Jim Meyering
62760         <jim@meyering.net>.
62761
62762 2006-02-27  Jim Meyering  <jim@meyering.net>
62763
62764         Revert the change of 2006-02-24, so these files can continue
62765         to be sync'd from gettext.
62766         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
62767         of `config.h'.
62768
62769 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62770
62771         * modules/intprops: New file.
62772         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62773         Add intprops.
62774         * modules/getloadavg (Files): Remove lib/intprops.h.
62775         (Depends-on): Add intprops.
62776         * modules/human: Likewise.
62777         * modules/inttostr: Likewise.
62778         * modules/openat: Likewise.
62779         * modules/sig2str: Likewise.
62780         * modules/userspec: Likewise.
62781         * modules/utimecmp: Likewise.
62782         * modules/xnanosleep: Likewise.
62783         * modules/xstrtol: Likewise.
62784
62785 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
62786
62787         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
62788         * modules/lock-tests (TESTS): Use $(EXEEXT).
62789         * modules/tls-tests: Likewise.
62790         * modules/argp-tests: Likewise.
62791         (check_PROGRAMS): New var, replacing...
62792         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
62793
62794 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62795
62796         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
62797         `config.h'.
62798
62799 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62800
62801         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
62802
62803 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62804
62805         Sync from coreutils.
62806         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
62807         gl_CHDIR_SAFER.
62808
62809 2006-02-22  Jim Meyering  <jim@meyering.net>
62810
62811         Sync from coreutils.
62812         * m4/chdir-safer.m4: New file.
62813
62814 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62815
62816         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
62817         AT_FDCWD exceeds INT_MAX.
62818         * lib/openat.h (AT_FDCWD): Likewise.
62819
62820 2006-02-17  Eric Blake  <address@hidden>
62821
62822         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
62823
62824 2006-02-16  Simon Josefsson  <jas@extundo.com>
62825
62826         * modules/getaddrinfo (Depends-on): Add sys_socket.
62827
62828 2006-02-15  Simon Josefsson  <jas@extundo.com>
62829
62830         * build-aux/maint.mk: Add dsyntax-check rule.
62831
62832 2006-02-15  Eric Blake  <ebb9@byu.net>
62833
62834         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
62835         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
62836         'present but cannot compile' warnings on cygwin.
62837         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
62838         use ws2tcpip.h if sys/socket.h works.
62839         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
62840         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
62841
62842 2006-02-14  Simon Josefsson  <jas@extundo.com>
62843
62844         * modules/maintainer-makefile (Files): Rename.
62845
62846         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
62847         and (the local) Makefile.cfg to maint-cfg.mk.
62848
62849         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
62850         to the latter.
62851
62852         * modules/maintainer-makefile: New module.
62853
62854         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
62855         severaly stripped to make it possible to build it up from scratch
62856         with reliable tests.
62857
62858         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
62859         fixes to permit overriding the default actions when configure and
62860         makefile are not available.
62861
62862 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62863
62864         Sync from coreutils.
62865         * modules/lstat (Depends-on): Don't depend on xalloc.
62866         (License): Change from GPL to LGPL, since this is now simply a
62867         replacement for a libc function.
62868
62869 2006-02-14  Jim Meyering  <jim@meyering.net>
62870
62871         Sync from coreutils.
62872
62873         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
62874         failure on deficient systems, and simplify gnulib lgpl dependencies.
62875         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
62876         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
62877
62878         * lib/xalloc-die.c: Remove unused definition of N_.
62879
62880 2006-02-14  Jim Meyering  <jim@meyering.net>
62881
62882         Sync from coreutils.
62883         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
62884         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
62885         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
62886         double-quote uses of that variable, to accommodate the rare case in
62887         which getmntent is available in none of the libraries checked.  This
62888         happens at least on FreeBSD 5.0.
62889
62890 2006-02-13  Simon Josefsson  <jas@extundo.com>
62891
62892         * gnulib-tool (Usage): Fix --import, from
62893         karl@freefriends.org (Karl Berry).
62894
62895 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62896
62897         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
62898
62899 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
62900
62901         * lib/argp-namefrob.h: Restore changes accidentally lost during the
62902         "autoupdate" on 2005-12-12.
62903
62904 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62905
62906         * modules/closeout (Depends-on): Remove atexit.
62907
62908 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62909
62910         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
62911         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
62912
62913 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62914
62915         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
62916         __EXTENSIONS__ if this causes compilation to fail.  Problem
62917         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
62918         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
62919
62920 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
62921
62922         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
62923         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
62924         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
62925         All uses changed.
62926
62927 2006-01-26  Simon Josefsson  <jas@extundo.com>
62928
62929         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
62930         prototype is visible on mingw32.
62931
62932         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
62933         for mingw32.
62934
62935         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
62936         mingw32).
62937
62938 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62939
62940         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
62941         attempt to open for write; this always fails, at least on POSIX
62942         hosts.  This reinstates the 2006-01-09 change, which was
62943         inadvertently removed.
62944
62945 2006-01-26  Bruno Haible  <bruno@clisp.org>
62946
62947         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
62948         Reported by Paul Eggert.
62949
62950 2006-01-26  Bruno Haible  <bruno@clisp.org>
62951             Paul Eggert  <eggert@cs.ucla.edu>
62952
62953         * lib/stdbool_.h (_Bool)
62954         [(! (defined __cplusplus || defined __BEOS__)
62955           && !defined __GNUC__
62956           && !(defined __HP_cc || defined __xlc__
62957                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
62958                || defined __sgi))]:
62959         #define to signed char in these cases too; this simplifies
62960         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
62961         etc., separately) and makes it more conservative.
62962
62963 2006-01-25  Simon Josefsson  <jas@extundo.com>
62964
62965         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
62966         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
62967         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
62968
62969 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62970
62971         * lib/argp-namefrob.h: Bugfix. Remove stray #
62972
62973 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62974
62975         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
62976         so that we test the test.
62977         Check for yet another HP-UX cc bug involving *bool |= bool.
62978
62979 2006-01-25  Karl Berry  <karl@gnu.org>
62980
62981         * config/srclist.txt (vasnprintf.c): sync lost.
62982
62983 2006-01-25  Jim Meyering  <jim@meyering.net>
62984
62985         Sync from the stable (b5) branch of coreutils:
62986
62987         * lib/fts.c (fts_children): Don't let close() clobber errno from
62988         failed fchdir().
62989
62990         * lib/fts.c (fts_stat): When following a symlink-to-directory,
62991         don't necessarily interpret stat-fails+lstat-succeeds as indicating
62992         a dangling symlink.  That can also happen at least for ELOOP.
62993         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
62994         FYI, this bug predates the inclusion of fts.c in coreutils.
62995
62996         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
62997         in their own block, so pre-c99 compilers don't object.
62998
62999         Avoid the double-free (first in fts_read, second in fts_close) that
63000         would occur when an `active' directory is made inaccessible (e.g.,
63001         via chmod a-x) during a traversal.
63002         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63003         before returning.  Reproduce this failure by
63004         mkdir -p a/b; cd a; chmod a-x . b
63005         Reported by Stavros Passas.
63006
63007 2006-01-25  Jim Meyering  <jim@meyering.net>
63008
63009         * lib/fileblocks.c: Remove more useless parentheses.
63010         * lib/readutmp.h: Likewise.
63011
63012 2006-01-25  Bruno Haible  <bruno@clisp.org>
63013
63014         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
63015         warnings.
63016         Reported by Paul Eggert.
63017
63018 2006-01-25  Bruno Haible  <bruno@clisp.org>
63019
63020         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
63021         rid of a trap command. For Solaris sh.
63022         Reported by Mark D. Baushke <mdb@gnu.org>.
63023
63024 2006-01-24  Simon Josefsson  <jas@extundo.com>
63025
63026         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
63027         Bruno.
63028
63029 2006-01-24  Karl Berry  <karl@gnu.org>
63030
63031         * config/srclist.txt (argp-namefrob.h): sync lost.
63032
63033 2006-01-24  Jim Meyering  <jim@meyering.net>
63034
63035         * modules/openat (Files): Add lib/intprops.h.
63036         From Mark D. Baushke.
63037
63038 2006-01-24  Jim Meyering  <jim@meyering.net>
63039
63040         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
63041         Reported by Mark D. Baushke.
63042
63043 2006-01-24  Jim Meyering  <jim@meyering.net>
63044
63045         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
63046
63047 2006-01-24  Bruno Haible  <bruno@clisp.org>
63048
63049         * modules/strnlen (Maintainer): Change from glibc to all.
63050
63051 2006-01-24  Bruno Haible  <bruno@clisp.org>
63052
63053         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
63054         Patch by Paul Eggert.
63055
63056 2006-01-24  Bruno Haible  <bruno@clisp.org>
63057
63058         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
63059         already has it.
63060         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
63061         2005-11-26.
63062
63063         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
63064         'signed char' to avoid problems with the built-in _Bool type.
63065         Reported by Paul Eggert on 2005-11-26.
63066
63067 2006-01-24  Bruno Haible  <bruno@clisp.org>
63068
63069         * gnulib-tool (func_import): Avoid constructing complicated sed
63070         expressions inside backquote.
63071         Report and solution by Mark D. Baushke <mdb@gnu.org>.
63072
63073 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
63074
63075         These changes imported from libc.
63076         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
63077         test and two separate function calls.
63078         * lib/strndup.c (__strndup): Add libc_hidden_def.
63079
63080 2006-01-23  Simon Josefsson  <jas@extundo.com>
63081
63082         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
63083         Remove the test_*_SOURCES variable: automake infers it by default.
63084         * modules/tls-tests: Likewise.
63085
63086 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63087
63088         Work around porting bugs reported by Dieter in
63089         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
63090         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
63091         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
63092         Include "getopt.h" first, to check interface.
63093         (getenv): Declare only if defined HAVE_DECL_GETENV &&
63094         !HAVE_DECL_GETENV.
63095         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
63096         (__strndup): Revert to K&R-style function dfns, the glibc style.
63097         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
63098         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
63099         Include strnlen.h first, to get prototype properly.
63100         (strnlen): Renamed from __strnlen.
63101         Remove weak alias.
63102
63103 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63104
63105         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
63106
63107 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63108
63109         * config/srclist.txt: Adjust to reflect glibc reorganization.
63110         This affects only comments.
63111
63112 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63113
63114          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
63115          Reported by Bruce Korb <bkorb@gnu.org>.
63116
63117 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63118
63119         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
63120         to pacify gcc -Wswitch-default.
63121
63122 2006-01-22  Bruno Haible  <bruno@clisp.org>
63123
63124         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
63125         temporary buffer for sprintf, take into account the precision also
63126         for 'd', 'i', 'u', 'o', 'x', 'X'.
63127
63128 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63129
63130         * modules/argp-tests: New module
63131         * tests/test-argp.c: New file
63132         * tests/test-argp-2.sh: New file
63133
63134 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63135
63136         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
63137         (__argp_base_name): Removed
63138         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
63139         typo.
63140         (__argp_base_name): Provide macro definition or extern declaration
63141         depending on the configuration
63142
63143 2006-01-20  Simon Josefsson  <jas@extundo.com>
63144
63145         * modules/inet_ntop (Depends-on): Depend on sys_socket.
63146
63147 2006-01-20  Simon Josefsson  <jas@extundo.com>
63148
63149         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
63150
63151 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63152
63153         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
63154         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
63155         Suggested by Bruno Haible.
63156
63157 2006-01-20  Karl Berry  <karl@gnu.org>
63158
63159         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
63160         until changes propagate, I guess.
63161
63162 2006-01-19  Simon Josefsson  <jas@extundo.com>
63163
63164         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
63165
63166 2006-01-19  Simon Josefsson  <jas@extundo.com>
63167
63168         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
63169
63170 2006-01-19  Simon Josefsson  <jas@extundo.com>
63171
63172         * gnulib-tool: Set check_PROGRAMS.
63173
63174         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63175         modules/des-tests, modules/gc-arcfour-tests,
63176         modules/gc-arctwo-tests, modules/gc-des-tests,
63177         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63178         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63179         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63180         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63181         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63182         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
63183         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
63184         test_*_SOURCES.
63185
63186 2006-01-18  Simon Josefsson  <jas@extundo.com>
63187
63188         * modules/socklen (Depends-on): Depend on sys_socket.
63189
63190 2006-01-18  Simon Josefsson  <jas@extundo.com>
63191
63192         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63193         modules/des-tests, modules/gc-arcfour-tests,
63194         modules/gc-arctwo-tests, modules/gc-des-tests,
63195         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63196         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63197         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63198         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63199         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63200         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
63201         $(EXEEXT) to automake TESTS variable, for mingw32.
63202
63203 2006-01-17  Simon Josefsson  <jas@extundo.com>
63204
63205         * modules/socklen (Include): Need sys/socket.h.
63206
63207 2006-01-17  Bruno Haible  <bruno@clisp.org>
63208
63209         * modules/ssize_t (Include): Add <sys/types.h>.
63210
63211 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
63212
63213         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
63214         it's not portable and it doesn't work with cross-compiles.
63215         Problem reported by Bruno Haible.  Fix missing-$ typo in
63216         'test "gl_cv_ignore_unused_libraries" ...' that prevented
63217         -zignore from being used with Sun's C compiler.
63218
63219 2006-01-12  Simon Josefsson  <jas@extundo.com>
63220
63221         * lib/base64.c: Fix warning, reported by Bruno Haible
63222         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
63223
63224 2006-01-12  Bruno Haible  <bruno@clisp.org>
63225
63226         * modules/ldd: New file.
63227         * build-aux/ldd.sh.in: New file.
63228         * MODULES.html.sh (Support for building libraries and executables): Add
63229         ldd.
63230
63231 2006-01-12  Bruno Haible  <bruno@clisp.org>
63232
63233         * m4/ldd.m4: New file.
63234
63235 2006-01-12  Bruno Haible  <bruno@clisp.org>
63236
63237         * gnulib-tool (func_import, func_create_testdir): Don't go into an
63238         endless loop while replacing $auxdir with build-aux.
63239
63240 2006-01-11  Simon Josefsson  <jas@extundo.com>
63241
63242         * lib/stdint_.h (SIZE_MAX): Add missing (.
63243
63244 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
63245
63246         Sync from coreutils.
63247         * lib/md5.c: Fix commentary typos.
63248         (alignof, UNALIGNED_P): No need for a GCC-specific version.
63249         * lib/md5.h (__attribute__): Remove; unused.
63250         * lib/sha1.c: Fix commentary to match md5 better.
63251         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
63252         so that we don't need to worry about alignment.  All uses changed.
63253         This merges the 2005-10-28 md5 change into sha1.
63254
63255 2006-01-11  Jim Meyering  <jim@meyering.net>
63256
63257         Sync from coreutils.
63258         * lib/md5.c (OP): Fix spacing.
63259
63260 2006-01-11  Bruno Haible  <bruno@clisp.org>
63261
63262         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63263         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
63264         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
63265
63266 2006-01-11  Bruno Haible  <bruno@clisp.org>
63267
63268         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63269         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
63270         the "early" section as well.
63271
63272 2006-01-11  Bruno Haible  <bruno@clisp.org>
63273
63274         Avoid "ar: no archive members specified" error on MacOS X.
63275         * gnulib-tool (func_modules_add_dummy): New function.
63276         (func_import, func_create_testdir): Invoke it.
63277
63278 2006-01-11  Bruno Haible  <bruno@clisp.org>
63279
63280         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
63281         with $auxdir in AC_CONFIG_FILES statements.
63282
63283 2006-01-11  Bruno Haible  <bruno@clisp.org>
63284
63285         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63286         Initialize also noinst_HEADERS to empty.
63287
63288 2006-01-11  Bruno Haible  <bruno@clisp.org>
63289
63290         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
63291         variables.
63292         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
63293         autoreconf.
63294
63295 2006-01-11  Bruno Haible  <bruno@clisp.org>
63296
63297         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
63298         overridable by the user.
63299         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63300
63301 2006-01-10  Simon Josefsson  <jas@extundo.com>
63302
63303         * modules/sys_socket: New file.
63304
63305 2006-01-10  Simon Josefsson  <jas@extundo.com>
63306
63307         * m4/sys_socket_h.m4: New file.
63308
63309 2006-01-10  Simon Josefsson  <jas@extundo.com>
63310
63311         * lib/socket_.h: New file.
63312
63313 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63314
63315         * modules/readutmp (Maintainer): Add myself.
63316
63317 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63318
63319         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
63320         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
63321         People who are still concerned with buggy memcmp implementations
63322         can invoke gl_FUNC_MEMCMP themselves.
63323
63324 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63325
63326         * lib/regex_internal.h (BITSET_WORD_BITS):
63327         Work around a bug in 64-bit PGC (before version 6.1-2), where the
63328         preprocessor mishandles large unsigned values as if they were signed.
63329         Problem reported by Claudio Fontana in
63330         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
63331
63332 2006-01-10  Jim Meyering  <jim@meyering.net>
63333
63334         Avoid the double-free (first in fts_read, second in fts_close) that
63335         would occur when an `active' directory is made inaccessible (e.g.,
63336         via chmod a-x) during a traversal.
63337         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63338         before returning.  Reproduce this failure by
63339         mkdir -p a/b; cd a; chmod a-x . b
63340         Reported by Stavros Passas.
63341
63342         Sync from coreutils.
63343         * lib/sha1.c: Tweak grammar in a comment.
63344
63345 2006-01-10  Jim Meyering  <jim@meyering.net>
63346
63347         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
63348         Patch by Joerg Sonnenberger.
63349
63350 2006-01-10  Bruno Haible  <bruno@clisp.org>
63351
63352         * modules/readutmp: Depend on module free.
63353         * modules/strtok_r: Depend on module restrict.
63354
63355 2006-01-10  Bruno Haible  <bruno@clisp.org>
63356
63357         * modules/gettext (configure.ac): Add an invocation of
63358         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
63359
63360 2006-01-10  Bruno Haible  <bruno@clisp.org>
63361
63362         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
63363         Reported by Werner Lemberg <wl@gnu.org>.
63364
63365 2006-01-10  Bruno Haible  <bruno@clisp.org>
63366
63367         * lib/localcharset.c: Update from GNU gettext.
63368
63369 2006-01-10  Bruno Haible  <bruno@clisp.org>
63370
63371         * lib/argp.h (__const): Remove macro. Use const instead.
63372         * lib/argp-fmtstream.h (__const): Likewise.
63373         * lib/glob_.h (__const): Remove macro.
63374         * lib/glob-libc.h: Use const instead of __const.
63375
63376 2006-01-10  Bruno Haible  <bruno@clisp.org>
63377
63378         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
63379         variable.
63380         Needed to avoid an automake error regarding the 'gettext' module.
63381
63382 2006-01-09  Simon Josefsson  <jas@extundo.com>
63383
63384         * modules/inet_ntop (Depends-on): Add restrict.
63385
63386 2006-01-09  Simon Josefsson  <jas@extundo.com>
63387
63388         * modules/gc-rijndael-tests (License): Put under LGPL.
63389
63390         * modules/gc-des-tests (License): Likewise.
63391
63392         * modules/gc-arcfour-tests (License): Likewise.
63393
63394         * modules/gc-arctwo-tests (License): Likewise.
63395
63396         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
63397
63398         * modules/gc-hmac-sha1-tests (Files): Likewise.
63399
63400         * modules/gc-hmac-md5-tests (License): Likewise.
63401
63402         * modules/gc-sha1-tests (License): Likewise.
63403
63404         * modules/gc-md5-tests (License): Likewise.
63405
63406         * modules/gc-md4-tests (License): Likewise.
63407
63408         * modules/gc-md2-tests (License): Likewise.
63409
63410         * modules/gc-tests (License): Likewise.
63411
63412         * modules/des-tests (License): Likewise.
63413
63414         * modules/md4-tests (License): Likewise.
63415
63416         * modules/md2-tests (License): Likewise.
63417
63418 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63419
63420         Sync from coreutils:
63421
63422         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
63423         * modules/lib-ignore: New file.
63424         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
63425         chdir-safer.m4, lchmod.m4.
63426         * modules/openat: Add mkdirat.c, openat-priv.h.
63427
63428 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63429
63430         Sync from coreutils.
63431         * m4/lib-ignore.m4: New file.
63432         * m4/lchmod.m4: New file.
63433
63434 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63435
63436         Sync from coreutils.
63437         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
63438         for write access: POSIX says that must fail.
63439         * lib/fts.c (diropen): Likewise.
63440         * lib/save-cwd.c (save_cwd): Likewise.
63441         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
63442         well, for minor improvements on hosts that lack O_DIRECTORY.
63443         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
63444         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
63445         Fall back on chown if open failed with EACCES.
63446
63447         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
63448         Report an error at compile-time if only a 1-second nominal clock
63449         resolution is found.
63450
63451         * lib/lchmod.h: New file.
63452         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
63453         (make_dir_parents): Use lchown rather than chown, and
63454         lchmod rather than chmod.
63455
63456         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
63457         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
63458         "proc" reported by n0dalus.
63459
63460         * lib/mountlist.c: Include <limits.h>.
63461         (dev_from_mount_options)
63462         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
63463         New function.  It no longer assumes "dev=" has the System V meaning
63464         on Linux (since it doesn't).  It also parses "dev=" more carefully.
63465         (read_file_system_list)
63466         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
63467         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
63468         dev= in that case.
63469
63470         * lib/posixtm.h (PDS_PRE_2000): New macro.
63471         * lib/posixtm.c (year): Arg is now syntax_bits rather than
63472         allow_century.  All usages changed.  Reject dates outside the range
63473         1969-1999 if PDS_PRE_2000 is used.
63474
63475 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63476
63477         Sync from coreutils.
63478         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
63479         (Time of day items): Mention the possibility of leap seconds.
63480         Problem reported by Dr. David Alan Gilbert.
63481
63482 2006-01-09  Jim Meyering  <jim@meyering.net>
63483
63484         Sync from coreutils.
63485
63486         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
63487
63488         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
63489
63490         * lib/modechange.c (mode_compile): Reject an invalid mode string
63491         that starts with an octal digit.  From Andreas Gruenbacher.
63492
63493         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
63494         and dup to open_safer and dup_safer, respectively.
63495         (openat_permissive): Fix typo in comment.
63496
63497         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
63498         "gettext.h"; either no longer needed or are guaranteed by openat.h.
63499         (_): Remove; no longer needed.
63500         (openat): Renamed from rpl_openat; no need for rpl_openat
63501         since openat.h renames openat for us.
63502         Replace most of the body with a call to openat_permissive,
63503         to avoid duplicate code.
63504         Port to (probably hypothetical) environments were mode_t is
63505         wider than int.
63506         (openat_permissive): Require mode arg, so that we can check
63507         types better.  Put it just after flags.  Change cwd failure
63508         indicator from pointer-to-bool to pointer-to-errno-value.
63509         All callers changed.
63510         Invoke openat_save_fail and/or openat_restore_fail if
63511         cwd_errno is null, so that openat can call us.
63512         (openat_permissive, fdopendir, fstatat, unlinkat):
63513         Simplify errno handling to avoid some duplicate code,
63514         as it's OK to set errno on success.
63515         * lib/openat.h: Revamp code so that function macros depend on
63516         __OPENAT_PREFIX only, not also on AT_FDCWD.
63517         (openat_ro): Remove.  Caller changed to use openat_permissive.
63518         (openat_permissive): Now a macro, if not a function.
63519         (openat_restore_fail, openat_save_fail): Now always functions,
63520         since mkdirat needs them even if __OPENAT_PREFIX is defined.
63521
63522         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
63523         and openat.c.
63524         * lib/mkdirat.c: Include openat-priv.h.
63525         Remove definitions of macros defined therein.
63526         * lib/openat.c: Likewise.
63527
63528         * lib/mkdirat.c (mkdirat): New file and function.
63529         * lib/openat.h (mkdirat): Declare.
63530
63531         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
63532
63533         * lib/openat.h (openat_permissive): Declare.
63534         (openat_ro): Define.
63535
63536         * lib/openat.c (EXPECTED_ERRNO): New macro.
63537         (openat_permissive): New function -- used in remove.c rewrite.
63538         (all functions): Set errno just before returning, only if there
63539         was an actual failure.
63540         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
63541
63542         Emulate openat-family functions using Linux's procfs, if possible.
63543         Idea and some code based on Ulrich Drepper's glibc changes.
63544
63545         * lib/openat.c: (BUILD_PROC_NAME): New macro.
63546         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
63547         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
63548         before falling back on save_cwd and restore_cwd.
63549         (fdopendir, fstatat, unlinkat): Likewise.
63550
63551         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
63552         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
63553
63554         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
63555         as second argument to va_arg.  Otherwise, some versions of gcc
63556         warn that `if this code is reached, the program will abort'.
63557
63558 2006-01-09  Jim Meyering  <jim@meyering.net>
63559
63560         Sync from coreutils.
63561         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
63562         Require openat-priv.h.
63563
63564 2006-01-09  Bruno Haible  <bruno@clisp.org>
63565
63566         * modules/strnlen (Include): Use strnlen.h.
63567
63568 2006-01-09  Bruno Haible  <bruno@clisp.org>
63569
63570         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
63571
63572 2006-01-09  Bruno Haible  <bruno@clisp.org>
63573
63574         * lib/sysexit_.h (EX_OK): New macro.
63575         Suggested by Martin Lambers <marlam@marlam.de>.
63576
63577 2006-01-09  Bruno Haible  <bruno@clisp.org>
63578
63579         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
63580         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
63581
63582 2006-01-09  Bruno Haible  <bruno@clisp.org>
63583
63584         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
63585         numbers.
63586
63587 2006-01-09  Bruno Haible  <bruno@clisp.org>
63588
63589         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
63590         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
63591         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
63592         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
63593
63594 2006-01-09  Bruno Haible  <bruno@clisp.org>
63595
63596         * build-aux/javacomp.sh.in: New file, moved from lib/.
63597         * modules/javacomp-script (Files): Update.
63598         (configure.ac): Add AC_CONFIG_FILES invocation.
63599         (EXTRA_DIST): Remove variable.
63600
63601         * build-aux/javaexec.sh.in: New file, moved from lib/.
63602         * modules/javaexec (Files): Update.
63603         (configure.ac): Add AC_CONFIG_FILES invocation.
63604         (EXTRA_DIST): Remove javaexec.sh.in.
63605
63606         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
63607         * modules/csharpcomp-script (Files): Update.
63608         (configure.ac): Add AC_CONFIG_FILES invocation.
63609         (EXTRA_DIST): Remove variable.
63610
63611         * build-aux/csharpexec.sh.in: New file, moved from lib/.
63612         * modules/csharpexec (Files): Update.
63613         (configure.ac): Add AC_CONFIG_FILES invocation.
63614         (EXTRA_DIST): Remove csharpexec.sh.in.
63615
63616 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63617
63618         Sync from coreutils.
63619
63620         Add POSIX ACL support
63621         * lib/acl.h (copy_acl, set_acl): Add declarations.
63622         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
63623         systems other than Linux.
63624         (chmod_or_fchmod): New function: use fchmod when possible,
63625         and chmod otherwise.
63626         (file_has_acl): Add a POSIX ACL implementation, with a
63627         Linux-specific subcase.
63628         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
63629         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
63630         acls are unsupported.
63631         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
63632         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
63633         are unsupported.
63634
63635 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63636
63637         Sync from coreutils.
63638         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
63639
63640 2006-01-07  Bruno Haible  <bruno@clisp.org>
63641
63642         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
63643         gl_EARLY.
63644
63645 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63646
63647         * lib/strftime.c (tzname): Don't declare if it is already #defined.
63648         Problem reported for Mingw by Mark Junker.
63649
63650 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63651
63652         * README: Gnulib normally doesn't generate a tarball.
63653
63654 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
63655
63656         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
63657         long int, not int, for nanosecond counts, so that people who are
63658         used to POSIX struct timespec won't be surprised.  Reported by Jim
63659         Meyering.
63660
63661 2005-12-28  Bruno Haible  <bruno@clisp.org>
63662
63663         * build-aux/config.rpath: Update from GNU gettext.
63664
63665 2005-12-16  Jim Meyering  <jim@meyering.net>
63666
63667         * modules/fprintftime: New module.
63668         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
63669
63670 2005-12-16  Jim Meyering  <jim@meyering.net>
63671
63672         * m4/fprintftime.m4: New file.
63673
63674 2005-12-16  Jim Meyering  <jim@meyering.net>
63675
63676         * lib/fprintftime.c, lib/fprintftime.h: New files.
63677
63678 2005-12-15  Simon Josefsson  <jas@extundo.com>
63679
63680         * modules/socklen (configure.ac): Fix M4 macro name, to align with
63681         new m4/socklen.m4.
63682
63683 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63684
63685         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
63686         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
63687
63688 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63689
63690         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
63691         * lib/argp-help.c (fill_in_uparams): Check if the constructed
63692         struct uparams is valid. Fall back to the default values if it is
63693         not.
63694
63695 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63696
63697         * modules/argp (Files): Add argp-pin.c
63698         (Depends-on): dirname
63699         (lib_SOURCES): Add argp-pin.c
63700
63701 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63702
63703         * m4/argp.m4:  Check if program_invocation_name and
63704         program_invocation_short_name are declared and define appropriate
63705         macros if they are not.
63706
63707 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63708
63709         * lib/argp-help.c (__argp_base_name): New function
63710         (__argp_short_program_name): Rewrite using __argp_base_name
63711         * lib/argp-namefrob.h: Define program_invocation_name and
63712         program_invocation_short_name if requested
63713         (__argp_base_name): Add prototype
63714         * lib/argp-parse.c (argp_def): Use gettext wrappers
63715         (argp_default_parser): Use __argp_base_name
63716         * lib/argp-pin.c: New file. Defines program_invocation_name and
63717         program_invocation_short_name on systems that lack them.
63718
63719 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63720
63721         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
63722         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63723         porting problem reported by Georg Schwarz in
63724         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63725
63726 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63727
63728         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
63729         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63730         porting problem reported by Georg Schwarz in
63731         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63732
63733 2005-12-05  Bruno Haible  <bruno@clisp.org>
63734
63735         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
63736         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
63737         Reported by Mark Junker <mjscod@gmx.de>.
63738
63739 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
63740
63741         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
63742         Use implementation from Albert Chin, with some
63743         comments/corrections by Stepan Kasal and myself.
63744
63745 2005-12-02  Bruno Haible  <bruno@clisp.org>
63746
63747         * gnulib-tool (func_import): Accept GPLed build tool modules when
63748         --lgpl is given.
63749         * modules/csharpcomp-script: New file.
63750         * modules/csharpcomp: Depend on it.
63751         * modules/javacomp-script: New file.
63752         * modules/javacomp: Depend on it.
63753         Suggested by Simon Josefsson.
63754
63755 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63756
63757         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
63758         statement, to work around an HP-UX 10.20 compiler bug reported by
63759         Peter O'Gorman.
63760
63761 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63762
63763         * modules/savedir (Depends-on): Add openat.
63764
63765 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63766
63767         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
63768         (uintmax_t) [defined uintmax_t]: Do not declare.
63769         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
63770         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
63771         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
63772         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
63773         sake of portability to weird hosts that C allows (though we don't
63774         know of any practical examples).
63775
63776         * lib/savedir.h (fdsavedir): New decl.
63777         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
63778         contains most of the former guts of savedir.
63779         (savedir): Use savedirstream.
63780         Include "openat.h".
63781
63782 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63783
63784         * modules/obstack (Files): Add m4/ulonglong.m4.
63785         Problem reported by Davide Angelocola.
63786
63787 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63788
63789         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
63790         coreutils no longer futzes with rounding modes.
63791
63792 2005-11-14  Jim Meyering  <jim@meyering.net>
63793
63794         * lib/mkstemp-safer.c: Include <config.h>, required for possible
63795         replacement of mkstemp.
63796
63797 2005-11-10  Simon Josefsson  <jas@extundo.com>
63798
63799         * lib/readline.c: Remove EOL.
63800
63801 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63802
63803         * modules/gethrxtime (Depends-on): Add gettime.
63804
63805 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63806
63807         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
63808         or gettimeofday; no longer needed.
63809
63810 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63811
63812         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
63813         time business.
63814         (gethrxtime) [! (HAVE_NANOUPTIME
63815         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
63816         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
63817         our own approximation.
63818
63819 2005-11-08  Eric Blake  <ebb9@byu.net>
63820
63821         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63822
63823 2005-11-08  Eric Blake  <ebb9@byu.net>
63824
63825         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63826
63827 2005-11-04  Bruno Haible  <bruno@clisp.org>
63828
63829         * gnulib-tool: Implement --update mode.
63830
63831 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63832
63833         Fix porting problem reported by Theodoros V. Kalamatianos.
63834         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
63835         Don't assume that futimes failing means we must fail.
63836
63837 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63838
63839         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
63840         variables to suggest the intended function of the PATH_MAX check.
63841
63842 2005-10-30  Kean Johnston  <jkj@sco.com>
63843
63844         Trivial changes to support SCO systems.
63845         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
63846         as PATH_MAX.
63847         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
63848         where __ptr is null when no I/O is pending.
63849
63850 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63851
63852         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
63853         leave errno alone.  Problem reported by Dmitry V. Levin.
63854
63855 2005-10-28  Simon Josefsson  <jas@extundo.com>
63856
63857         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
63858         Test more.
63859
63860         * tests/test-gc-md2.c, tests/test-md2.c: New files.
63861
63862         * modules/md2, modules/md2-tests: New files.
63863
63864 2005-10-28  Simon Josefsson  <jas@extundo.com>
63865
63866         * m4/inet_ntop.m4: More tests.
63867
63868         * m4/gc-md2.m4, md2.m4: New file.
63869
63870 2005-10-28  Simon Josefsson  <jas@extundo.com>
63871
63872         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
63873         "restrict" keywords, as per POSIX.  Protect the function
63874         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
63875         Don't use K&R prototypes.  Check the sprintf return values.
63876         Re-define EAFNOSUPPORT if not present.  Indent.
63877
63878         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
63879         suggested by Bruno Haible <bruno@clisp.org>.
63880
63881         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
63882
63883         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
63884
63885         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
63886         libgcrypt).
63887
63888         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
63889
63890         * lib/md2.h, lib/md2.c: New files.
63891
63892 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
63893
63894         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
63895         errno alone.  Problem reported by Frederic Jolliton.
63896
63897 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63898
63899         * modules/verify (License): Change from GPL to LGPL.  This is a
63900         tiny module and there are apparently near-equivalents that are
63901         under the BSD license.
63902
63903 2005-10-24  Simon Josefsson  <jas@extundo.com>
63904
63905         * modules/sha1: Relicense to LGPL.
63906
63907 2005-10-24  Simon Josefsson  <jas@extundo.com>
63908
63909         * lib/md4.h: Shrink buffer size, now that we changed the type.
63910
63911 2005-10-23  Simon Josefsson  <jas@extundo.com>
63912
63913         * gnulib-tool (func_import): Fix --tests-base.
63914
63915 2005-10-22  Simon Josefsson  <jas@extundo.com>
63916
63917         * modules/arcfour (Depends-on): Need stdint.
63918
63919 2005-10-22  Simon Josefsson  <jas@extundo.com>
63920
63921         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
63922         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
63923
63924 2005-10-22  Simon Josefsson  <jas@extundo.com>
63925
63926         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
63927         suggested by Bruno Haible <bruno@clisp.org>.
63928
63929 2005-10-22  Simon Josefsson  <jas@extundo.com>
63930
63931         * lib/crc.h: Include stddef.h, for size_t.
63932
63933 2005-10-22  Simon Josefsson  <jas@extundo.com>
63934
63935         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
63936         arcfour_context struct (simplify test vector testing in GNU
63937         Shishi).
63938
63939 2005-10-21  Simon Josefsson  <jas@extundo.com>
63940
63941         * modules/des, modules/des-tests: New files.
63942
63943         * modules/gc-des, modules/gc-des-tests: New files.
63944
63945         * tests/test-des.c, tests/test-gc-des.c: New file.
63946
63947 2005-10-21  Simon Josefsson  <jas@extundo.com>
63948
63949         * modules/arctwo, modules/arctwo-tests: New files.
63950
63951         * tests/test-arctwo.c: New file.
63952
63953         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
63954
63955         * tests/test-gc-arctwo.c: New file.
63956
63957 2005-10-21  Simon Josefsson  <jas@extundo.com>
63958
63959         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
63960         Bruno Haible <bruno@clisp.org>.
63961
63962         * m4/gc-des.m4: New file.
63963
63964 2005-10-21  Simon Josefsson  <jas@extundo.com>
63965
63966         * m4/arctwo.m4: New file.
63967
63968         * m4/gc-arctwo.m4: New file.
63969
63970 2005-10-21  Simon Josefsson  <jas@extundo.com>
63971
63972         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
63973         block.
63974
63975 2005-10-21  Simon Josefsson  <jas@extundo.com>
63976
63977         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
63978         <bruno@clisp.org>.
63979
63980         * lib/hmac-sha1.c (hmac_sha1): Likewise.
63981
63982         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
63983         Bruno Haible <bruno@clisp.org>.
63984
63985         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
63986         <bruno@clisp.org>.
63987
63988 2005-10-21  Simon Josefsson  <jas@extundo.com>
63989
63990         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
63991
63992 2005-10-21  Simon Josefsson  <jas@extundo.com>
63993
63994         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
63995
63996 2005-10-21  Simon Josefsson  <jas@extundo.com>
63997
63998         * lib/des.h, lib/des.c: New files.
63999
64000         * lib/gc-gnulib.c: Support DES.c
64001
64002 2005-10-21  Simon Josefsson  <jas@extundo.com>
64003
64004         * lib/arctwo.h, lib/arctwo.c: New files.
64005
64006         * lib/gc-gnulib.c: Support ARCTWO.
64007
64008 2005-10-21  Simon Josefsson  <jas@extundo.com>
64009
64010         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
64011         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64012
64013 2005-10-21  Simon Josefsson  <jas@extundo.com>
64014
64015         * gnulib-tool (func_import, func_create_testdir): Define automake
64016         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
64017         Makefile.am snippet),
64018         suggested by Bruno Haible <bruno@clisp.org>.
64019
64020         * modules/gc (Makefile.am): Use it.
64021
64022 2005-10-21  Bruno Haible  <bruno@clisp.org>
64023
64024         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
64025         patch.
64026
64027 2005-10-19  Simon Josefsson  <jas@extundo.com>
64028
64029         * tests/test-gc-rijndael.c: New file.
64030
64031         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
64032
64033 2005-10-19  Simon Josefsson  <jas@extundo.com>
64034
64035         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
64036         interface too.
64037
64038 2005-10-19  Simon Josefsson  <jas@extundo.com>
64039
64040         * tests/test-gc-arcfour.c: New file.
64041
64042         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
64043
64044 2005-10-19  Simon Josefsson  <jas@extundo.com>
64045
64046         * modules/gc-md4, modules/gc-md4-tests: New file.
64047
64048         * tests/test-gc-md4.c: New file.
64049
64050 2005-10-19  Simon Josefsson  <jas@extundo.com>
64051
64052         * m4/gc-md4.m4: New file.
64053
64054 2005-10-19  Simon Josefsson  <jas@extundo.com>
64055
64056         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
64057         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
64058         <kasal@ucw.cz>.
64059
64060 2005-10-19  Simon Josefsson  <jas@extundo.com>
64061
64062         * m4/gc-arcfour.m4: New file.
64063
64064         * m4/gc-rijndael.m4: New file.
64065
64066 2005-10-19  Simon Josefsson  <jas@extundo.com>
64067
64068         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
64069
64070 2005-10-19  Simon Josefsson  <jas@extundo.com>
64071
64072         * lib/gc-gnulib.c: Support ARCFOUR.
64073
64074 2005-10-19  Simon Josefsson  <jas@extundo.com>
64075
64076         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
64077         support.
64078
64079         * lib/gc.h: Add ECB enum type.
64080
64081         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
64082
64083 2005-10-18  Simon Josefsson  <jas@extundo.com>
64084
64085         * tests/test-md5.c: New file.
64086
64087         * modules/md5-tests: New file.
64088
64089 2005-10-18  Simon Josefsson  <jas@extundo.com>
64090
64091         * tests/test-md4.c: New file.
64092
64093         * modules/md4, modules/md4-tests: New files.
64094
64095 2005-10-18  Simon Josefsson  <jas@extundo.com>
64096
64097         * m4/md4.m4: New file.
64098
64099 2005-10-18  Simon Josefsson  <jas@extundo.com>
64100
64101         * lib/md4.h, lib/md4.c: New files, based on md5.?.
64102
64103 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
64104
64105         * gnulib-tool (func_create_testdir): Omit the second check whether
64106         BUILT_SOURCES in nonempty.
64107
64108 2005-10-17  Simon Josefsson  <jas@extundo.com>
64109
64110         * tests/test-rijndael.c: New file.
64111
64112 2005-10-17  Simon Josefsson  <jas@extundo.com>
64113
64114         * modules/sha1: Depend on stdint instead of md5.
64115
64116         * modules/md5: Depend on stdint, remove uint32_t.
64117
64118 2005-10-17  Simon Josefsson  <jas@extundo.com>
64119
64120         * modules/gc-sha1-tests: New file.
64121
64122         * tests/test-gc-sha1.c: New file.
64123
64124 2005-10-17  Simon Josefsson  <jas@extundo.com>
64125
64126         * m4/md5.m4: Remove call to uint32_t.m4.
64127
64128 2005-10-17  Simon Josefsson  <jas@extundo.com>
64129
64130         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
64131
64132         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
64133         md5.h.
64134
64135         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
64136
64137         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
64138
64139 2005-10-17  Simon Josefsson  <jas@extundo.com>
64140
64141         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
64142
64143 2005-10-17  Simon Josefsson  <jas@extundo.com>
64144
64145         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
64146
64147 2005-10-17  Simon Josefsson  <jas@extundo.com>
64148
64149         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
64150
64151         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
64152
64153 2005-10-17  Bruno Haible  <bruno@clisp.org>
64154
64155         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
64156         that it can also be used in a test.
64157
64158 2005-10-16  Bruno Haible  <bruno@clisp.org>
64159
64160         * gnulib-tool (func_emit_tests_Makefile_am): Also define
64161         TESTS_ENVIRONMENT, so that individual tests can augment it.
64162
64163         * gnulib-tool (func_create_testdir): Use an intermediate target for
64164         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
64165         macros, like $(ALLOCA_H), which cannot be passed through the command
64166         line.
64167
64168 2005-10-15  Simon Josefsson  <jas@extundo.com>
64169
64170         * modules/rijndael-tests: New file.
64171
64172         * modules/rijndael: New file.
64173
64174 2005-10-15  Simon Josefsson  <jas@extundo.com>
64175
64176         * m4/rijndael.m4: New file.
64177
64178 2005-10-15  Simon Josefsson  <jas@extundo.com>
64179
64180         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
64181
64182         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
64183
64184 2005-10-14  Simon Josefsson  <jas@extundo.com>
64185
64186         * tests/test-arcfour.c: New file.
64187
64188         * modules/arcfour, modules/arcfour-tests: New files.
64189
64190 2005-10-14  Simon Josefsson  <jas@extundo.com>
64191
64192         * m4/arcfour.m4: New file.
64193
64194 2005-10-14  Simon Josefsson  <jas@extundo.com>
64195
64196         * lib/arcfour.h, lib/arcfour.c: New files.
64197
64198 2005-10-14  Roland McGrath  <roland@redhat.com>
64199
64200         Import from libc.  [BZ #1331]
64201         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
64202         macro argument.
64203         Reported by Matej Vela <vela@debian.org>.
64204
64205 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64206
64207         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
64208         include <wchar.h>; no longer needed.
64209
64210 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64211
64212         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
64213
64214 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
64215         and  Ulrich Drepper  <drepper@redhat.com>
64216
64217         Import from libc.
64218         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
64219         instead of inline stream orientation test and two separate
64220         function calls.  Pay no attention to USE_IN_LIBIO.
64221
64222 2005-10-13  Simon Josefsson  <jas@extundo.com>
64223
64224         * modules/gc-hmac-md5-tests: New file.
64225
64226         * tests/test-gc-hmac-sha1.c: New file.
64227
64228         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
64229
64230         * modules/gc-hmac-md5-tests: New file.
64231
64232         * tests/test-gc-md5.c: New file.
64233
64234         * modules/gc-md5-tests: New file.
64235
64236 2005-10-13  Simon Josefsson  <jas@extundo.com>
64237
64238         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
64239         Move memory allocation outside of loop.
64240
64241 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64242
64243         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
64244         intermediate directory is in a read-only file system.  Problem
64245         reported by Eric Blake.
64246
64247 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
64248
64249         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
64250
64251 2005-10-12  Simon Josefsson  <jas@extundo.com>
64252
64253         * tests/test-hmac-sha1.c: New file.
64254
64255         * modules/hmac-sha1-tests: New file.
64256
64257         * modules/hmac-sha1: New file.
64258
64259 2005-10-12  Simon Josefsson  <jas@extundo.com>
64260
64261         * modules/gc-sha1: New file.
64262
64263 2005-10-12  Simon Josefsson  <jas@extundo.com>
64264
64265         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
64266
64267         * tests/test-gc-pbkdf2-sha1.c: New file.
64268
64269 2005-10-12  Simon Josefsson  <jas@extundo.com>
64270
64271         * modules/gc-md5, modules/gc-hmac-md5: New files.
64272
64273         * modules/gc (Files): Remove md5, memxor and hmac files.
64274
64275 2005-10-12  Simon Josefsson  <jas@extundo.com>
64276
64277         * m4/gc-pbkdf2-sha1.m4: New file.
64278
64279         * m4/gc-hmac-sha1.m4: New file.
64280
64281         * m4/gc-sha1: New file.
64282
64283         * m4/hmac-sha1.m4: New file.
64284
64285 2005-10-12  Simon Josefsson  <jas@extundo.com>
64286
64287         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
64288
64289         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
64290
64291 2005-10-12  Simon Josefsson  <jas@extundo.com>
64292
64293         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
64294         suggested by Bruno Haible <bruno@clisp.org>.
64295
64296 2005-10-12  Simon Josefsson  <jas@extundo.com>
64297
64298         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
64299
64300 2005-10-12  Simon Josefsson  <jas@extundo.com>
64301
64302         * lib/gc-pbkdf2-sha1.c: New file.
64303
64304         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
64305
64306 2005-10-12  Simon Josefsson  <jas@extundo.com>
64307
64308         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
64309
64310         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
64311
64312 2005-10-12  Simon Josefsson  <jas@extundo.com>
64313
64314         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
64315         GC_USE_HMAC_MD5, respectively.
64316
64317         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
64318         (gc_md5): Fix typo.
64319
64320         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
64321
64322         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
64323
64324         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
64325
64326 2005-10-12  Bruno Haible  <bruno@clisp.org>
64327
64328         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
64329         Reported by Stepan Kasal <kasal@ucw.cz>.
64330
64331 2005-10-11  Simon Josefsson  <jas@extundo.com>
64332
64333         * tests/test-crc.c: New file.
64334
64335         * modules/crc, modules/crc-tests: New files.
64336
64337 2005-10-11  Simon Josefsson  <jas@extundo.com>
64338
64339         * m4/crc.m4: New file.
64340
64341 2005-10-11  Simon Josefsson  <jas@extundo.com>
64342
64343         * lib/gc.h: Add gc_hash and gc_hash_buffer.
64344
64345         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
64346
64347         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
64348
64349 2005-10-11  Simon Josefsson  <jas@extundo.com>
64350
64351         * lib/crc.h, lib/crc.c: New files.
64352
64353         * lib/gc.h (gc_hash_buffer): Add doc.
64354
64355 2005-10-11  Bruno Haible  <bruno@clisp.org>
64356
64357         * modules/c-strcasestr: New file.
64358         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
64359
64360 2005-10-11  Bruno Haible  <bruno@clisp.org>
64361
64362         * modules/c-strcase: New file.
64363         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
64364
64365 2005-10-11  Bruno Haible  <bruno@clisp.org>
64366
64367         * lib/strcasecmp.c: Include limits.h.
64368         (strcasecmp): Avoid integer overflow on exotic platforms.
64369         * lib/strncasecmp.c: Include limits.h.
64370         (strncasecmp): Avoid integer overflow on exotic platforms.
64371         Reported by Paul Eggert.
64372
64373 2005-10-11  Bruno Haible  <bruno@clisp.org>
64374
64375         * lib/c-strcasestr.h: New file, from GNU gettext.
64376         * lib/c-strcasestr.c: New file, from GNU gettext.
64377
64378 2005-10-11  Bruno Haible  <bruno@clisp.org>
64379
64380         * lib/c-strcase.h: New file, from GNU gettext.
64381         * lib/c-strcasecmp.c: New file, from GNU gettext.
64382         * lib/c-strncasecmp.c: New file, from GNU gettext.
64383
64384 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64385
64386         * modules/mempcpy (License): GPL -> LGPL.
64387         * modules/strchrnul (License): Likewise.
64388         * modules/sysexits (License): Likewise.
64389
64390 2005-10-08  Simon Josefsson  <jas@extundo.com>
64391
64392         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
64393
64394 2005-10-07  Simon Josefsson  <jas@extundo.com>
64395
64396         * m4/memxor.m4: Remove gl_C_RESTRICT call.
64397
64398 2005-10-06  Simon Josefsson  <jas@extundo.com>
64399
64400         * tests/test-hmac-md5.c: New file.
64401
64402         * modules/hmac-md5-tests: New file.
64403
64404         * modules/hmac-md5: New file.
64405
64406 2005-10-06  Simon Josefsson  <jas@extundo.com>
64407
64408         * m4/hmac-md5.m4: New file.
64409
64410         * m4/memxor.m4: Require gl_C_RESTRICT.
64411
64412 2005-10-06  Simon Josefsson  <jas@extundo.com>
64413
64414         * lib/memxor.c (memxor): Avoid casts and warnings.
64415
64416 2005-10-06  Simon Josefsson  <jas@extundo.com>
64417
64418         * lib/hmac-md5.c: New file.
64419
64420         * lib/hmac.h: New file.
64421
64422 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64423
64424         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
64425         promotes to int, not unsigned int, to catch the AIX 5.3
64426         compiler bug.
64427
64428 2005-10-05  Simon Josefsson  <jas@extundo.com>
64429
64430         * modules/memxor: New file.
64431
64432         * modules/iconv (Files): Move config.rpath to havelib, it is used
64433         there.
64434
64435         * modules/havelib (Files): Add config.rpath.
64436
64437 2005-10-05  Simon Josefsson  <jas@extundo.com>
64438
64439         * m4/memxor.m4: New file.
64440
64441 2005-10-05  Simon Josefsson  <jas@extundo.com>
64442
64443         * lib/memxor.c (memxor): Fix compiler error.
64444
64445         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
64446         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
64447
64448         * lib/memxor.h, lib/memxor.c: New files.
64449
64450         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
64451         we assume all systems have it, suggested by Jim Meyering
64452         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
64453         any systems lack sys/socket.h; mingw32 is known to lack it, but we
64454         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
64455         same reasons.
64456
64457 2005-10-05  Simon Josefsson  <jas@extundo.com>
64458
64459         * config/srclist.txt: Add glibc bug 1423 for md5.h.
64460
64461 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64462
64463         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
64464         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
64465         needed, since the source code now assumes these .h files.
64466
64467 2005-10-05  Derek Price  <derek@ximbiot.com>
64468
64469         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
64470
64471 2005-10-05  Bruno Haible  <bruno@clisp.org>
64472
64473         * modules/stdint (License): Change to LGPL.
64474
64475 2005-10-04  Simon Josefsson  <jas@extundo.com>
64476
64477         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
64478         D. Baushke" <mdb@gnu.org>.
64479
64480 2005-10-04  Bruno Haible  <bruno@clisp.org>
64481
64482         * lib/verify.h (verify_true): Provide alternative definition for C++.
64483
64484 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64485
64486         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
64487         (SSIZE_MAX): New macro, if not already defined.
64488         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
64489         than 2 GiB.
64490
64491 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64492
64493         Sync from coreutils.
64494         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
64495         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
64496         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
64497         ULLONG_MAX doesn't work with 2.7.2.1.
64498
64499 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64500
64501         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
64502         From Ben Pfaff.
64503
64504         * modules/exclude (Depends-on): Depend on verify.
64505         * modules/strtoimax (Depends-on): Likewise.
64506         * modules/utimecmp (Depends-on): Likewise.
64507
64508 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64509
64510         * lib/exclude.c: Include verify.h.
64511         (verify): Remove.  All callers changed to use verify.h's version.
64512         * lib/strtoimax.c: Likewise.
64513         * lib/utimecmp.c: Likewis.e
64514
64515         Sync from coreutils.
64516         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
64517         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
64518         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
64519         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
64520         bother returning ENOSYS if settimeofday or stime fails; just let
64521         them return whatever errno they want to return.
64522         * lib/utimens.c: Include unistd.h, for dup2.
64523         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
64524         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
64525
64526 2005-10-02  Jim Meyering  <jim@meyering.net>
64527
64528         Sync from coreutils.
64529         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
64530         from glibc-2.2.5 that fails for read-only files.
64531
64532 2005-10-02  Jim Meyering  <jim@meyering.net>
64533
64534         Sync from coreutils.
64535         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
64536         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
64537         `#if HAVE_CONFIG_H'.
64538         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
64539         Remove AT_FDCWD test.
64540         Do not consume the fd unless successful.
64541         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
64542         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
64543         block, so that we don't even try to compile it if settimeofday is
64544         available.  This works around a compilation failure on OSF1 V5.1,
64545         due to stime requiring a `long int*' while tv_sec is `int'.
64546
64547 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
64548
64549         Sync from coreutils.
64550         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
64551         against `yes', rather than just testing for nonempty.
64552
64553 2005-10-01  Simon Josefsson  <jas@extundo.com>
64554
64555         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
64556         and Darwin.
64557
64558         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
64559         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
64560         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
64561         freeaddrinfo and gai_strerror are declared by the POSIX headers.
64562         Check if struct addrinfo is declared.
64563
64564 2005-10-01  Simon Josefsson  <jas@extundo.com>
64565
64566         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
64567         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
64568         AI_* and EAI_* definitions.  Protect function declarations.
64569
64570 2005-10-01  Jim Meyering  <jim@meyering.net>
64571
64572         Sync from coreutils.
64573
64574         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
64575         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
64576         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
64577         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64578         in the inet and nsl libraries.  Required on Solaris 5.7.
64579
64580 2005-10-01  Jim Meyering  <jim@meyering.net>
64581
64582         Sync from coreutils.
64583         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64584         in the inet and nsl libraries.  Required on Solaris 5.7.
64585
64586 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
64587
64588         * lib/getdelim.c (getdelim): Remove unused variables.
64589
64590 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64591
64592         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
64593         so that the code works even with ancient cpp.  Portability problem
64594         with GCC 2.7.2.1 reported by Thomas M.Ott.
64595
64596 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64597
64598         * modules/regex (Depends-on): Add strcase.
64599
64600         * modules/gethostname (Licence): Change from GPL to LGPL, since
64601         gethostname.c is a trivial implementation of a standard library
64602         function.
64603         * modules/poll (License): Change from GPL to LGPL, since it's
64604         derived from LGPL code.
64605
64606 2005-09-27  Jim Meyering  <jim@meyering.net>
64607
64608         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
64609         HAVE_CONFIG_H.
64610
64611         * lib/intprops.h (signed_type_or_expr__): Define.
64612         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
64613         for unsigned types.
64614
64615 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64616
64617         * lib/verify.h (verify_expr): Remove, replacing with:
64618         (verify_true): New macro that returns true instead of void.
64619         (verify_type__): Remove.
64620         (verify): Use verify_true rather than verify_type__.
64621
64622 2005-09-26  Bruno Haible  <bruno@clisp.org>
64623
64624         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
64625         is necessary.
64626         (lib_SOURCES): Remove mbchar.c.
64627         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
64628         (Files): Add m4/mbrtowc.m4.
64629         * modules/mbiter: Likewise.
64630         * modules/mbuiter: Likewise.
64631
64632 2005-09-26  Bruno Haible  <bruno@clisp.org>
64633
64634         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
64635         compile mbchar.c if they are not both present.
64636         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
64637         * m4/mbiter.m4 (gl_MBITER): Likewise.
64638         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
64639         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
64640         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
64641
64642 2005-09-25  Jim Meyering  <jim@meyering.net>
64643
64644         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
64645         also uses socklen_t.
64646
64647 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
64648
64649         * lib/utimens.c (ENOSYS): Define if not already defined.
64650         (futimens): Support having a null PATH if the file descriptor
64651         is nonnegative.
64652
64653         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
64654         Remove.
64655         (__attribute): Define to empty unless GCC 3.1 or later.
64656         This works around a core dump on OpenBSD 3.4, which has GCC
64657         2.95.3, which dumps core when given __attribute__(()).  It also
64658         simplifies other tests, since we really don't want to bother with
64659         worrying about which ancient version of GCC supported what.
64660         Original problem reported by Yoann Vandoorselaere, with part of
64661         the fix suggested by Derek Price.
64662
64663 2005-09-24  Jim Meyering  <jim@meyering.net>
64664
64665         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
64666         so we can once again use a positive bitfield width of 1 -- now we
64667         don't have to explain why we were using a bitfield width of 2.
64668
64669 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64670
64671         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
64672         and similarly for the other external symbols.  Problem reported
64673         by James Gallager.
64674
64675         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
64676         bug reported by Jim Meyering.
64677
64678         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
64679         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
64680         not needed, since socklen is a prerequisite module.
64681
64682 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64683
64684         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
64685         Problem reported by Eric Blake.
64686         (getaddrinfo): Initialize se so that it's not garbage.
64687         Redo internal storage allocation so that it doesn't make unportable
64688         assumptions about alignment.
64689         Fix a memory leak.
64690
64691         * lib/utimens.c (futimens): Use futimesat if available.
64692         Prefer it to futimes since it doesn't have the futimes bug.
64693
64694         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
64695         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
64696         Instead, declare a function that returns a pointer to an array,
64697         and use verify_type__ to declare the size of the array.
64698         Problem and germ of a solution reported by Bruno Haible.
64699         (verify_type__): Use 2, not 1, for bitfield size, to avoid
64700         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
64701
64702 2005-09-23  Jim Meyering  <jim@meyering.net>
64703
64704         Sync from coreutils.
64705         Correct build failure (socklen_t not defined) on at least
64706         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
64707         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
64708
64709 2005-09-23  Jim Meyering  <jim@meyering.net>
64710
64711         * modules/getaddrinfo (Depends-on): Add socklen.
64712
64713 2005-09-23  Bruno Haible  <bruno@clisp.org>
64714
64715         * tests/test-verify.c: New file.
64716
64717 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64718
64719         Sync from coreutils.
64720
64721         * modules/argmatch (Depends-on): Add verify.
64722         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
64723         unistd-safer.
64724         * modules/save-cwd (Depends-on): Likewise.
64725
64726         * modules/openat (Files): Add lib/openat-die.c.
64727         (Depends-on): Remove error, exitfail.
64728         Add dirname.
64729
64730         * modules/verify: New file.
64731         * MODULES.html.sh (Diagnostics <assert.h>): New section,
64732         with "verify" module.
64733
64734 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64735
64736         Sync from coreutils.
64737
64738         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
64739         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
64740         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
64741         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
64742         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
64743         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
64744         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
64745         Don't bother checking for string.h, stdlib.h, unistd.h.
64746         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
64747         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
64748         module's job.
64749         * m4/jm-macros.m4 (gl_MACROS): Likewise.
64750         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
64751
64752         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
64753         (gl_GETDATE): Use it.
64754
64755         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
64756
64757 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64758
64759         Sync from coreutils.
64760
64761         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
64762         stat-time.h.
64763         * lib/argmatch.h: Include verify.h
64764         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
64765         (ARGMATCH_ASSERT): Remove; unused.
64766         * lib/canonicalize.c: Assume STDC_HEADERS.
64767         * lib/exclude.c: Include "strcase.h".
64768         * lib/regex_internal.h [!defined _LIBC]: Likewise.
64769         * lib/getusershell.c: Include stdio--.h rather than stdio.h
64770         and stdio-safer.h.
64771         (getusershell): Call fopen, not fopen_safer.
64772         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
64773         Do not include unistd-safer.h.
64774         (save_cwd): Don't call fd_safer; no longer needed
64775         now that we include fcntl--.h.
64776
64777         * lib/getdate.y (relative_time): New type.
64778         (RELATIVE_TIME_0): New constant.
64779         (parser_control): Use relative_time instead of doing it ourselves.
64780         (%union): Add new relative_time rel member.
64781         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
64782         Now typeless.
64783         (relunit, relunit_snumber): Now of type rel.
64784         (zone, rel, relunit, get_date): Adjust to above changes.
64785
64786         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
64787         Do not include unistd-safer.h.
64788         (getloadavg): Don't call fd_safer; no longer needed
64789         now that we include fcntl--.h.
64790
64791         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
64792         (make_dir_parents): Treat ENOSYS like EEXIST.
64793
64794         Improve quality of diagnostics on restore_cwd failure.
64795         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
64796         (make_dir_parents): Last arg is now int * (for errno), not bool *.
64797         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
64798         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
64799         each time through the loop.  Do not diagnose restore_cwd failure;
64800         that is the caller's job (and perhaps the caller does not care).
64801
64802         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
64803         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
64804         If the file already exists but is not a directory, don't bother
64805         to try to make its parents.
64806         Close potential file descriptor leak if we can't chdir("/") (!).
64807         Don't always return true if chdir($PWD) fails; return true only
64808         if the requested action was done successfully (except for the
64809         chdir($PWD)).
64810         Don't log final directory unless we actually made it.
64811         Refactor to avoid duplicate code to fix up permissions.
64812         Don't attempt to fix up parent permissions if chdir($PWD) fails.
64813
64814         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
64815         to make it a bit faster and (I hope) clearer.
64816         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
64817         Fix bug in formats like %2N.
64818
64819         * lib/verify.h: New file.
64820
64821 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64822
64823         Sync from coreutils.
64824         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
64825
64826 2005-09-22  Jim Meyering  <jim@meyering.net>
64827
64828         Sync from coreutils.
64829
64830         * m4/lstat.m4 (gl_FUNC_LSTAT):
64831         Use AC_LIBSOURCES to require lstat.c and lstat.h.
64832         Remove obsolete comment.
64833         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
64834         * m4/xstrtod.m4: Likewise.
64835
64836         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
64837
64838 2005-09-22  Jim Meyering  <jim@meyering.net>
64839
64840         Sync from coreutils.
64841
64842         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
64843
64844         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
64845         the .tm_year member, since otherwise gcc-4.0 would now warn about
64846         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
64847
64848         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
64849         order to avoid an unsuppressible warning from gcc on 64-bit systems.
64850
64851         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
64852         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
64853         when run in a time zone for which daylight savings time is in effect
64854         for the starting date.
64855
64856         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
64857         stop us from restricting permissions of just-created absolute-named
64858         directories.
64859         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
64860         to restore initial working directory.
64861         * lib/mkdir-p.c (make_dir_parents): New parameter:
64862         different_working_dir, to tell caller if/when we change the working
64863         directory and are unable to return to the initial one.
64864         * lib/mkdir-p.h (make_dir_parents): Update prototype.
64865         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
64866         `return false'.  This fixes a bug introduced on 2004-07-30.
64867
64868         * lib/openat.c (fdopendir): Be sure to close the supplied
64869         file descriptor before returning.  This makes our replacement
64870         implementation a little closer to Solaris's, where fdopendir
64871         ties the file descriptor to the returned DIR* pointer.
64872         * lib/openat.c (unlinkat): New function.
64873         * lib/openat.h (unlinkat): Add prototype.
64874         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
64875         (openat_restore_fail): Rename from openat_restore_die.
64876         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
64877
64878         Provide an alternative to exiting immediately upon save_cwd or
64879         restore_cwd failure.  Now, an application can arrange e.g.,
64880         to perform a longjump in that case.
64881         * lib/openat.c: Include dirname.h.
64882         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
64883         (rpl_openat, fdopendir, fstatat): Call openat_save_die
64884         and openat_restore_die rather than calling error directly.
64885         Don't include "error.h" or "exitfail.h"; they're no longer needed.
64886
64887         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
64888         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
64889         define.
64890
64891         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
64892         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
64893                             int utc, int nanoseconds);
64894         Background:
64895         date should not have to allocate a megabyte of virtual memory to
64896         handle a format argument like +%1048575T.  When implemented with
64897         strftime, it must allocate such a buffer, use strftime to fill it
64898         in, print it, then free it.
64899         With fprintftime, it simply prints everything and exits.
64900         With no need for memory allocation, that's one fewer way to fail.
64901         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
64902         optional field width, not before, so we accept %9:z, not %:9z.
64903         (my_strftime): Be sure to use L_('x') for literals.
64904
64905         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
64906         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
64907         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
64908         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
64909         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
64910         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
64911         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
64912         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
64913         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
64914         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
64915         * lib/xgethostname.c, lib/xreadlink.c:
64916         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
64917
64918         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
64919         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
64920         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
64921         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64922         and don't include <sys/file.h>).
64923
64924 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
64925
64926         Sync from coreutils.
64927
64928         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
64929         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
64930         [!LDAV_DONE]: Avoid unused variable warning.
64931
64932 2005-09-21  Bruno Haible  <bruno@clisp.org>
64933
64934         * lib/unicodeio.h (unicode_to_mb): New declaration.
64935
64936 2005-09-20  Derek Price  <derek@ximbiot.com>
64937
64938         * lib/getaddrinfo.c: Don't include <netdb.h> included from
64939         getaddrinfo.h.
64940
64941 2005-09-20  Bruno Haible  <bruno@clisp.org>
64942
64943         * gnulib-tool: Remove trailing slashes from the values specified for
64944         --source-base, --m4-base, --tests-base, --aux-dir.
64945         Suggested by Simon Josefsson <jas@extundo.com>.
64946
64947 2005-09-20  Bruno Haible  <bruno@clisp.org>
64948
64949         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
64950         func_modules_to_filelist, func_import, func_create_testdir): Make all
64951         sorting results locale-independent, so that gnulib-cache.m4 doesn't
64952         change when gnulib-tool is invoked in a different locale.
64953
64954 2005-09-19  Simon Josefsson  <jas@extundo.com>
64955
64956         * m4/socklen.m4: Fix typo.
64957
64958 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64959
64960         Use a consistent style for including <config.h>.
64961         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
64962         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
64963         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
64964         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
64965         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
64966         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
64967         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
64968         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
64969         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
64970         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
64971         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
64972         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
64973         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
64974         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
64975         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
64976         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
64977         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
64978         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
64979         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
64980         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
64981         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
64982         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
64983         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
64984         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
64985         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
64986         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
64987         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
64988         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
64989         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
64990         lib/xstrtoumax.c, lib/yesno.c:
64991         Standardize inclusion of config.h.
64992         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
64993         lib/inttostr.h:  Removed inclusion of config.h from header files.
64994         * lib/inttostr.c:  Adjusted in-tree users.
64995         * lib/timespec.h: Remove superfluous warning to include config.h.
64996         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
64997         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
64998         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
64999         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
65000         config.h with HAVE_CONFIG_H.
65001
65002 2005-09-19  Jim Meyering  <jim@meyering.net>
65003
65004         * modules/pathmax (License): Change to LGPL.
65005
65006 2005-09-19  Derek Price  <derek@ximbiot.com>
65007
65008         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
65009
65010 2005-09-19  Bruno Haible  <bruno@clisp.org>
65011
65012         * gnulib-tool (import): Provide default for --tests-base.
65013
65014 2005-09-19  Bruno Haible  <bruno@clisp.org>
65015
65016         * doc/quote.texi: New file, extracted from gnulib.texi.
65017         * doc/ctime.texi: New file, extracted from gnulib.texi.
65018         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
65019         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
65020         * doc/gnulib.texi: Include them.
65021
65022 2005-09-18  Bruno Haible  <bruno@clisp.org>
65023
65024         Portability fix.
65025         * gnulib-tool (func_readlink): New function.
65026         (func_ln_if_changed): Use it.
65027
65028 2005-09-18  Bruno Haible  <bruno@clisp.org>
65029
65030         * gnulib-tool: Support --with-tests also with --import.
65031         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
65032         (func_import): Use variables $testsbase and $inctests. Emit a
65033         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
65034         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
65035         SUBDIRS += $testsdir.
65036         (func_create_testdir): Update.
65037
65038 2005-09-18  Bruno Haible  <bruno@clisp.org>
65039
65040         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
65041         instead of $dry_run.
65042         (func_cp_if_changed, func_mv_if_changed): Remove functions.
65043         (func_ln_if_changed): Don't handle dry-run here.
65044         (func_import): In dry-run mode, detect more precisely which actions
65045         would be performed, and don't use "...ing" verbs.
65046
65047 2005-09-18  Bruno Haible  <bruno@clisp.org>
65048
65049         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
65050         (func_import): Use join on two temporary files instead of three nested
65051         loops, in order to determine which files are new or old.
65052
65053 2005-09-18  Bruno Haible  <bruno@clisp.org>
65054
65055         * gnulib-tool (func_import): Comment out code that spits out the
65056         new files with --dry-run.
65057
65058 2005-09-18  Bruno Haible  <bruno@clisp.org>
65059
65060         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
65061
65062 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65063
65064         * lib/stat-time.h: New file.
65065         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
65066         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
65067         in a different way.
65068         (timespec_cmp): New function.
65069         * lib/utimecmp.c: Include stat-time.h.
65070         (SYSCALL_RESOLUTION): Depend on whether various struct stat
65071         members exist, not on the obsolescent ST_MTIM_NSEC.
65072         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
65073
65074 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65075
65076         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
65077
65078 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65079
65080         * MODULES.html.sh (File system functions): Add stat-time.
65081         * modules/stat-time: New file.
65082         * modules/timespec (Files): Remove m4/st_mtim.m4; this
65083         is now done in a different way, by the stat-time module.
65084         * modules/utimecmp (Depends-on): Add stat-time.
65085
65086 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65087
65088         * m4/st_mtim.m4: Remove.  Superseded by...
65089         * m4/stat-time.m4: New file.
65090         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
65091         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
65092
65093 2005-09-15  Derek Price  <derek@ximbiot.com>
65094
65095         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
65096
65097 2005-09-15  Derek Price  <derek@ximbiot.com>
65098
65099         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
65100         * lib/regex_internal.c: Ditto, using this...
65101         (__GNUC_PREREQ): ...new macro.
65102         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
65103         using...
65104         (__GNUC_PREREQ): ...this new macro.
65105
65106         * lib/strstr.h: Include string.h. Define strstr as a macro here.
65107
65108 2005-09-15  Derek Price  <derek@ximbiot.com>
65109             Paul Eggert  <eggert@cs.ucla.edu>
65110
65111         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
65112         changes, consolidating in...
65113         * lib/regex_internal.h: ...this file.
65114
65115 2005-09-13  Jim Meyering  <jim@meyering.net>
65116
65117         * lib/canon-host.c: Filter through gnu indent and reword comments
65118         slightly.
65119         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
65120
65121 2005-09-13  Derek Price  <derek@ximbiot.com>
65122
65123         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
65124         failure.
65125         Reported by Jim Meyering  <jim@meyering.net>.
65126
65127 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65128
65129         * lib/base64.c: Typo.
65130         (base64_encode): Put b64str in initialized data section.
65131
65132 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65133
65134         Merge glibc and coreutils changes into gnulib, plus a few
65135         extra fixes.
65136         * lib/md5.c: Use #error rather than a string.
65137         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
65138         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
65139         (__attribute__): Define to empty for non recent-GCC.
65140         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
65141         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
65142         Renamed from their non-__ counterparts, with new macros replacing
65143         them if not _LIBC.  Add __THROW attribute.
65144         (rol): Remove.
65145         (struct md5_ctx): Align buffer if using GCC.
65146         * lib/sha1.h (struct sha1_ctx): Likewise.
65147         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
65148         The old name was backwards.
65149         (NOTSWAP): Remove; not used.
65150         (rol): New macro, moved here from md5.h.
65151         (sha1_process_block): Remove a FIXME that doesn't make sense.
65152
65153 2005-09-12  Derek Price  <derek@ximbiot.com>
65154
65155         Return usable errors from canon-host.
65156         * lib/canon-host.h: New file.
65157         * lib/canon-host.c (canon_host): Wrap...
65158         (canon_host_r): ...this new function, which now relies exclusively on
65159         getaddrinfo.
65160         (ch_strerror): New function.
65161         (last_cherror): New global.
65162         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
65163         interface.
65164         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
65165         void *.
65166         (freeaddrinfo): Free ai->ai_canonname when set.
65167
65168 2005-09-12  Derek Price  <derek@ximbiot.com>
65169
65170         Make canon-host require getaddrinfo.
65171         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
65172         AC_LIBSOURCE canon-host.h.  Call...
65173         (gl_PREREQ_CANON_HOST): ...this new function, which requires
65174         gl_GETADDRINFO.
65175         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
65176
65177 2005-09-12  Derek Price  <derek@ximbiot.com>
65178
65179         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
65180         LGPL.
65181         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
65182
65183 2005-09-12  Derek Price  <derek@ximbiot.com>
65184
65185         * lib/gai_strerror.c: Include config.h when available.  Include
65186         getaddrinfo.h before other headers to test interface.
65187         Reported by Larry Jones <lawrence.jones@ugs.com>.
65188
65189 2005-09-12  Derek Price  <derek@ximbiot.com>
65190             Paul Eggert  <eggert@cs.ucla.edu>
65191
65192         * modules/glob (Files): Add glob-libc.h.
65193
65194 2005-09-12  Derek Price  <derek@ximbiot.com>
65195             Paul Eggert  <eggert@cs.ucla.edu>
65196
65197         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
65198         glob_.h, glob-libc.h.
65199         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
65200
65201 2005-09-12  Derek Price  <derek@ximbiot.com>
65202             Paul Eggert  <eggert@cs.ucla.edu>
65203
65204         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
65205         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
65206         protecting things that should be done only in gnulib contexts.
65207         * lib/glob_.h: New file, containing only the glob things needed for
65208         gnulib.
65209         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
65210         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
65211         (glob, globfree, glob_pattern_p): Now defined simply in terms of
65212         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
65213         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
65214         and to respect the namespace rules better.
65215
65216 2005-09-08  Simon Josefsson  <jas@extundo.com>
65217
65218         * modules/socklen: New file.
65219
65220 2005-09-08  Simon Josefsson  <jas@extundo.com>
65221
65222         * m4/socklen.m4: New file.
65223
65224 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65225
65226         * modules/utimens (Files): Add m4/utimbuf.m4, since
65227         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
65228         Reported by Sergey Poznyakoff.
65229
65230 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65231
65232         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
65233         definitions, since that's the preferred style in glibc.
65234         Fix a minor spacing issue, and update copyright notice to match
65235         glibc's.
65236
65237 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65238
65239         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
65240
65241 2005-09-06  Simon Josefsson  <jas@extundo.com>
65242
65243         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
65244         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
65245
65246 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65247
65248         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
65249         warning.
65250
65251 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65252
65253         * config/srclist.txt: Add glibc bug 1302.
65254
65255 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
65256
65257         Change bitset word type from unsigned int to unsigned long int,
65258         as this has better performance on typical 64-bit hosts.
65259         Port bitset code to hosts with unusual word sizes.
65260         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
65261         (build_collating_symbol):
65262         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
65263         argument is a bitset.  This is merely a style issue, but it makes
65264         it clearer that an entire array is expected.
65265         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
65266         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
65267         Port to the case where bitset_word is not the same as unsigned int.
65268         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65269         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
65270         Likewise.
65271         * lib/regexec.c (check_dst_limits_calc_pos_1,
65272         check_subexp_matching_top):
65273         (build_trtable, group_nodes_into_DFAstates):
65274         Likewise.
65275         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
65276         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
65277         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
65278         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
65279         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
65280         * lib/regcomp.c (optimize_subexps, lower_subexp):
65281         Work even if bitset_word has holes in its bitwise representation.
65282         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
65283         * lib/regexec.c (check_dst_limits_calc_pos_1,
65284         check_subexp_matching_top):
65285         Likewise.
65286         * lib/regex_internal.c (re_string_reconstruct):
65287         Don't assume UCHAR_MAX == 255.
65288         * lib/regex_internal.h (bitset_set_all): Likewise.
65289         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
65290         All uses changed.
65291         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
65292         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
65293         All uses changed.
65294         (BITSET_WORD_MAX): New macro.
65295         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
65296         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
65297         (bitset_empty, bitset_copy):
65298         Prefer sizeof (bitset) to multiplying it out ourselves.
65299         (bitset_not_merge): Remove; unused.
65300         (bitset_contain): Return bool, not unsigned int with one bit on.
65301         All callers changed.
65302         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
65303         alignment than re_node_set; do this by defining a new internal
65304         type struct dests_alloc and using it to allocate memory.
65305
65306 2005-09-05  Bruno Haible  <bruno@clisp.org>
65307
65308         * gnulib-tool (func_import): Fix comparison in handling of symbolic
65309         links.
65310
65311 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
65312
65313         * modules/size_max (Makefile.am): Add size_max.h
65314
65315 2005-09-04  Derek Price  <derek@ximbiot.com>
65316
65317         * gnulib-tool (func_import): Fix reversed $symbolic logic.
65318
65319 2005-09-03  Simon Josefsson  <jas@extundo.com>
65320
65321         * gnulib-tool: Fix typo.
65322
65323 2005-09-03  Simon Josefsson  <jas@extundo.com>
65324
65325         * config/srclist.txt: Add glibc bug 1293.
65326
65327 2005-09-03  Derek Price  <derek@ximbiot.com>
65328
65329         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
65330         From Larry Jones <lawrence.jones@ugs.com>.
65331
65332 2005-09-02  Simon Josefsson  <jas@extundo.com>
65333
65334         * modules/socklen: New file.
65335
65336 2005-09-02  Simon Josefsson  <jas@extundo.com>
65337
65338         * modules/havelib: New module.
65339
65340         * modules/gettext, modules/iconv, modules/lock, modules/readline:
65341         Use havelib.
65342
65343 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65344
65345         Check for arithmetic overflow when calculating sizes, to prevent
65346         some buffer-overflow issues.  These patches are conservative, in the
65347         sense that when I couldn't determine whether an overflow was possible,
65348         I inserted a run-time check.
65349         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
65350         macros.
65351         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
65352         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
65353         (re_xnrealloc, re_x2nrealloc): New inline functions.
65354         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
65355         parse_bracket_exp):
65356         (build_equiv_class, build_charclass): Check for arithmetic overflow
65357         in size expression calculations.
65358         * lib/regex_internal.c (re_string_realloc_buffers):
65359         (build_wcs_upper_buffer, re_node_set_add_intersect):
65360         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
65361         (re_dfa_add_node, register_state): Likewise.
65362         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
65363         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
65364         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
65365         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
65366
65367 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65368
65369         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65370         m4/ulonglong.m4.  Problem reported by Martin Lambers.
65371
65372 2005-09-02  Bruno Haible  <bruno@clisp.org>
65373
65374         Support for lib vs. lib64 distinction on biarch platforms.
65375         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
65376         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
65377         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
65378
65379 2005-09-02  Bruno Haible  <bruno@clisp.org>
65380
65381         * gnulib-tool (import): In the other first-use case, provide defaults
65382         as well.
65383
65384 2005-09-02  Bruno Haible  <bruno@clisp.org>
65385
65386         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
65387         patches not yet found in the latest gettext release.
65388
65389 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65390
65391         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
65392         to avoid a collision with bits/local_lim.h in glibc.
65393         All uses changed.  Problem reported by Dmitry V. Levin in
65394         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
65395
65396         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
65397         bugs in int versus size_t comparisons.
65398         (re_string_context_at): Fix bug where the code assumed that
65399         Idx is signed.
65400
65401         Use bool where appropriate.
65402         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
65403         All callers changed.
65404         (calc_eclosure_iter): Likewise, for ROOT arg.
65405         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
65406         (build_charclass_op): Likewise, for NON_MATCH arg.
65407         * lib/regex_internal.c (re_string_allocate, re_string_construct):
65408         (re_string_construct_common): Likewise, for ICASE arg.
65409         * lib/regexec.c (re_search_2_stub, re_search_stub):
65410         Likewise, for RET_LEN arg.
65411         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
65412         (set_regs): Likewise, for FL_BACKTRACK arg.
65413         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
65414         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
65415         (calc_eclosure_iter, parse_bracket_exp):
65416         Use bool for internal variables that are booleans.
65417         * lib/regexec.c (re_search_internal, check_matching,
65418         proceed_next_node):
65419         (set_regs, build_sifted_states, sift_states_bkref):
65420         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
65421         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65422         (find_collation_sequence_value):
65423         Likewise.
65424         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
65425         (re_node_set_compare):
65426         Return bool, not int. All callers changed.
65427         * lib/regexec.c (check_halt_node_context, check_dst_limits):
65428         (build_trtable, check_node_accept): Likewise.
65429         * lib/regex_internal.h: Include stdbool.h.
65430
65431         Fix bugs uncovered when converting to bool.
65432         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
65433         failure instead of charging ahead blindly.
65434         * lib/regex_internal.c (register_state): Likewise.
65435         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
65436         for freeing internal storage.
65437         (group_nodes_into_DFA_states): Use unsigned int, not int, for
65438         bitset pieces used as boolean, to avoid undefined behavior
65439         on hosts that do int overflow checking.
65440
65441 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65442
65443         * config/srclist.txt: Add glibc bugs 1285-1287.
65444
65445 2005-09-01  Jim Meyering  <jim@meyering.net>
65446
65447         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
65448         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
65449         Require gl_STAT_MACROS, too.
65450
65451 2005-09-01  Bruno Haible  <bruno@clisp.org>
65452
65453         * gnulib-tool (import): In the first-use case, provide defaults.
65454
65455 2005-09-01  Bruno Haible  <bruno@clisp.org>
65456
65457         * gnulib-tool (func_import): Remove the .tmp files.
65458
65459 2005-09-01  Bruno Haible  <bruno@clisp.org>
65460
65461         * gnulib-tool (func_import): Fix handling of symbolic links.
65462
65463 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65464
65465         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
65466         old glibc regex code mishandles strings longer than 2**31 bytes.
65467         This patch fixes this when the regex code is used in gnulib
65468         (i.e., outside glibc).
65469
65470         This patch should not affect the use of the regex code inside
65471         glibc.  No doubt this problem also needs to be handled for glibc
65472         as well, but the result will be an incompatible change to the
65473         glibc ABI, and the old ABI will have to be supported too.  That
65474         can be the the subject for another patch.
65475
65476         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
65477         governing whether the rest of this patch is active.  By default,
65478         the macro is disabled and the patch has no effect.
65479         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
65480         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
65481         (struct re_pattern_buffer, re_search, re_search_2, re_match):
65482         (re_match_2, re_set_registers): Use the new types.
65483         * lib/regex_internal.h (Idx, re_hashval_t): New types.
65484         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
65485         New macros.
65486         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
65487         (re_string_context_at, bin_tree_t, re_dfastate_t):
65488         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
65489         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
65490         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
65491         (re_string_char_size_at, re_string_wchar_at):
65492         (re_string_elem_size_at):
65493         Use the new types and macros to port to 64-bit hosts.
65494         Use unsigned types for internal values, so that the code
65495         mostly works even for arrays larger than SSIZE_MAX.
65496         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
65497         (search_duplicated_node, calc_eclosure_iter, fetch_number):
65498         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
65499         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
65500         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
65501         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
65502         (calc_inveclosure, parse_dup_op, build_range_exp):
65503         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
65504         (fetch_number, create_token_tree, mark_opt_subexp):
65505         Likewise.
65506         * lib/regex_internal.c (re_string_construct_common,
65507         create_ci_newstate):
65508         (create_cd_newstate, re_string_allocate, re_string_construct):
65509         (re_string_realloc_buffers, build_wcs_upper_buffer):
65510         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65511         (re_string_reconstruct, re_string_peek_byte_case):
65512         (re_string_fetch_byte_case, re_string_context_at):
65513         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65514         (re_node_set_init_copy, re_node_set_add_intersect):
65515         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65516         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65517         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65518         (re_acquire_state, re_acquire_state_context, register_state):
65519         Likewise.
65520         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
65521         search_cur_bkref_entry):
65522         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
65523         (re_search_internal, re_search_2_stub, re_search_stub)
65524         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
65525         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
65526         (update_cur_sifted_state, check_dst_limits):
65527         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65528         (check_subexp_limits, sift_states_bkref, merge_state_array):
65529         (check_subexp_matching_top, get_subexp, get_subexp_sub):
65530         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
65531         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65532         (expand_bkref_cache, check_node_accept_bytes):
65533         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
65534         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
65535         (acquire_init_state_context, check_halt_node_context):
65536         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
65537         (sift_states_backward, clean_state_log_if_needed):
65538         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
65539         (find_recover_state, transit_state_sb, transit_state_mb):
65540         (transit_state_bkref, build_trtable, match_ctx_clean):
65541         Likewise.
65542         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
65543         to work around an assumption that REG_MISSING is negative.
65544
65545         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
65546         (seek_collating_symbol_entry) [defined _LIBC]:
65547         (lookup_collation_sequence_value) [defined _LIBC]:
65548         (build_range_exp, build_collating_symbol) [defined _LIBC]:
65549         Use prototypes rather than old-style function definitions.
65550         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
65551         (transit_state_sb) [0]:
65552         (find_collation_sequence_value) [defined _LIBC]: Likewise.
65553
65554         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
65555         rm_eo.
65556
65557         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
65558         (optimize_subexps, lower_subexp):
65559         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
65560         since the signed shift might overflow.  Use 1u<<31 instead.
65561         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65562         Likewise.
65563         * lib/regexec.c (check_dst_limits_calc_pos_1,
65564         check_subexp_matching_top): Likewise.
65565
65566         * lib/regcomp.c (optimize_subexps, lower_subexp):
65567         Use CHAR_BIT rather than 8, for clarity.
65568         * lib/regexec.c (check_dst_limits_calc_pos_1):
65569         (check_subexp_matching_top): Likewise.
65570         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
65571         have to worry about portability issues when shifting it left.
65572         Remove no-longer-needed test for table_size > 0.
65573         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
65574         in a word, as the resulting behavior is undefined.
65575         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
65576         in one case, a <= should have been an <, and in another case the
65577         whole test was missing.
65578         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
65579         the standard name CHAR_BIT.
65580         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
65581         this is not true on one's complement and signed-magnitude hosts.
65582
65583         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
65584         next_last_offset.
65585         (struct re_dfa_t): Remove unused member states_alloc.
65586         * lib/regcomp.c (init_dfa): Don't initialize unused members.
65587
65588 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65589
65590         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
65591         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
65592         and large-file glibc and in 32-bit large-file Solaris.
65593
65594 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65595
65596         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
65597         lengths fit in regoff_t; this isn't true if regoff_t is the same
65598         width as size_t.
65599         * lib/regex.c (re_search_internal): 5th arg is LAST_START
65600         (= START + RANGE) instead of RANGE.  This avoids overflow
65601         problems when regoff_t is the same width as size_t.
65602         All callers changed.
65603         (re_search_2_stub): Check for overflow when adding the
65604         sizes of the two strings.
65605         (re_search_stub): Check for overflow when adding START
65606         to RANGE; if it occurs, substitute the extreme value.
65607
65608 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65609
65610         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
65611
65612 2005-08-31  Jim Meyering  <jim@meyering.net>
65613
65614         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
65615         a pointer-to-const.
65616         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
65617         (register_state): Likewise.
65618         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
65619         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65620         (group_nodes_into_DFAstates): Likewise.
65621
65622 2005-08-31  Jim Meyering  <jim@meyering.net>
65623
65624         * check-module: Add a FIXME comment.
65625
65626 2005-08-31  Eric Blake  <ebb9@byu.net>
65627
65628         * modules/unistd-safer (Files): Add unistd--.h.
65629         * modules/stdio-safer (Files): Add stdio--.h.
65630
65631 2005-08-31  Derek Price  <derek@ximbiot.com>
65632
65633         * lib/getdelim.c (getdelim): Return EOF on EOF.
65634         Reported by Larry Jones <lawrence.jones@ugs.com>.
65635
65636 2005-08-31  Bruno Haible  <bruno@clisp.org>
65637
65638         Avoid unnecessary diffs in the generated lib/Makefile.am.
65639         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
65640         the generated files.
65641         (func_import): Don't set cmd.
65642
65643 2005-08-31  Bruno Haible  <bruno@clisp.org>
65644
65645         * lib/strstr.c: Include <stddef.h>, for NULL.
65646         * lib/strcasestr.c: Likewise.
65647         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65648
65649 2005-08-31  Bruno Haible  <bruno@clisp.org>
65650
65651         * gnulib-tool: New option --macro-prefix.
65652         (func_import): Use macro_prefix.
65653         (import): Handle option --macro-prefix.
65654
65655 2005-08-31  Bruno Haible  <bruno@clisp.org>
65656
65657         * gnulib-tool (import): Rename most ac_* variables to cached_*.
65658         Also use new variables cached_lgpl, cached_libtool.
65659
65660 2005-08-31  Bruno Haible  <bruno@clisp.org>
65661
65662         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
65663         always instantiating them.
65664
65665 2005-08-31  Bruno Haible  <bruno@clisp.org>
65666
65667         * gnulib-tool (func_import): Read the previous cached settings
65668         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
65669         earlier added by gnulib but are now dropped. Warn when a gnulib file
65670         overwrites a non-gnulib file.
65671
65672 2005-08-31  Bruno Haible  <bruno@clisp.org>
65673
65674         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
65675         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
65676         projects that don't keep autogenerated files in CVS. Put into
65677         actioncmd only the specified modules, not the transitive closure.
65678
65679 2005-08-31  Bruno Haible  <bruno@clisp.org>
65680
65681         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
65682         Create directories that shall be filled.
65683         (import): Don't look for gl_* macros in configure.ac. Recurse across
65684         all directories containing a gnulib-cache.m4 files, if meaningful.
65685
65686 2005-08-31  Bruno Haible  <bruno@clisp.org>
65687
65688         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
65689         (import): Set seen_libtool when we see gl_LIBTOOL.
65690
65691 2005-08-31  Bruno Haible  <bruno@clisp.org>
65692
65693         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
65694         declaration macro definitions from generated gnulib.m4.
65695
65696 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
65697
65698         * lib/iconvme.h: Add prototype for iconv_alloc.
65699
65700 2005-08-29  Simon Josefsson  <jas@extundo.com>
65701
65702         * lib/iconvme.c: Fix errno.
65703
65704 2005-08-29  Bruno Haible  <bruno@clisp.org>
65705
65706         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
65707         that it works when the directory contains spaces.
65708
65709 2005-08-29  Bruno Haible  <bruno@clisp.org>
65710
65711         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
65712
65713 2005-08-29  Bruno Haible  <bruno@clisp.org>
65714
65715         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
65716         Emit more advice.
65717
65718 2005-08-29  Bruno Haible  <bruno@clisp.org>
65719         and Stepan Kasal  <kasal@ucw.cz>
65720
65721         * check-module: If more parameters are given, check each of them
65722         separately; add more exceptions, as noted by Jim Meyering.
65723         (check_module): New procedure.
65724         (%exempt_header): Now contains all exceptions.
65725
65726 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
65727
65728         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
65729
65730 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65731
65732         * lib/iconvme.c: Split iconv_string into iconv_alloc.
65733
65734 2005-08-28  Bruno Haible  <bruno@clisp.org>
65735
65736         * m4/gnulib-tool.m4: New file.
65737
65738 2005-08-27  Jim Meyering  <jim@meyering.net>
65739
65740         * modules/unistd-safer (Files): Add pipe-safer.c.
65741         * modules/fcntl-safer (Files): Add creat-safer.c.
65742
65743 2005-08-27  Jim Meyering  <jim@meyering.net>
65744
65745         * m4/stdlib-safer.m4: New file.  From coreutils.
65746         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
65747         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
65748         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
65749         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
65750         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
65751
65752 2005-08-27  Jim Meyering  <jim@meyering.net>
65753
65754         * lib/fopen-safer.c: Merge minor changes from coreutils.
65755         * lib/dup-safer.c: Likewise.
65756         * lib/fd-safer.c: Likewise.
65757
65758         Merge from coreutils.
65759         * lib/stdio--.h: New file.
65760         * lib/stdlib--.h: New file.
65761         * lib/mkstemp-safer.c: New file.
65762
65763         GNU tar needs these.
65764         * lib/pipe-safer.c: New file.
65765         * lib/creat-safer.c: New file.
65766         * lib/fcntl--.h (creat): Define to creat_safer.
65767         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
65768         * lib/unistd--.h (pipe): Define to pipe_safer.
65769         * lib/unistd-safer.h: Declare pipe_safer.
65770
65771 2005-08-26  Simon Josefsson  <jas@extundo.com>
65772
65773         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
65774         Haible <bruno@clisp.org>.
65775
65776 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
65777
65778         * lib/regex_internal.h: Remove all references to
65779         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
65780         or better.
65781         (bitset_not, bitset_merge, bitset_not_merge):
65782         (bitset_mask, re_string_allocate, re_string_construct):
65783         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
65784         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
65785         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
65786         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
65787         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65788         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65789         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
65790         (re_acquire_state_context):
65791         Remove unnecessary forward decls.
65792         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
65793         Put __attribute at function definition,
65794         now that the function decl has been removed.
65795         * lib/regex_internal.c (re_string_peek_byte_case):
65796         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
65797         Likewise.
65798
65799 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
65800
65801         * m4/regex.m4: Add AC_PREREQ(2.50).
65802         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
65803
65804 2005-08-25  Simon Josefsson  <jas@extundo.com>
65805
65806         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
65807         __fsetlocking.
65808
65809 2005-08-25  Simon Josefsson  <jas@extundo.com>
65810
65811         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
65812         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
65813         GLIBC specific code.
65814
65815 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65816
65817         Make regex safe for g++.  This fixes one real bug (an "err"
65818         that should have been "*err").  g++ problem reported by
65819         Sam Steingold.
65820         * lib/regex_internal.h (re_calloc): New macro, consistent with
65821         re_malloc etc.  All callers of calloc changed to use re_calloc.
65822         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
65823         not int.  All callers changed.
65824         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
65825         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
65826         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
65827         (find_recover_state): Change "err" to "*err"; this fixes what
65828         appears to be a real bug.
65829         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
65830         versus int.
65831
65832 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65833
65834         * modules/regex (Depends-on): Add malloc, since the code
65835         assumes that !malloc(0) means failure.
65836
65837 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65838
65839         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
65840
65841         alloca modernization/simplification for regex.
65842         * lib/regex.c: Remove portability cruft for alloca.  This no longer
65843         needs to be at the start of the file, and can be moved into
65844         regex_internal.h and simplified.
65845         * lib/regex_internal.h: Include <alloca.h>.
65846         (__libc_use_alloca) [!defined _LIBC]: New macro.
65847         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
65848         now works outside glibc.
65849
65850 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65851
65852         * config/srclist.txt: Add glibc bugs 1241, 1245.
65853
65854 2005-08-25  Jim Meyering  <jim@meyering.net>
65855
65856         * lib/open-safer.c: Include <config.h>.
65857         Otherwise, we'd lose LARGEFILE support in any file using
65858         e.g. "fcntl--.h"
65859
65860 2005-08-25  Bruno Haible  <bruno@clisp.org>
65861
65862         * m4/minmax.m4: Require autoconf 2.52.
65863         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
65864         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
65865         alternatives of translit over the alphabet.
65866         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
65867
65868 2005-08-24  Simon Josefsson  <jas@extundo.com>
65869
65870         * tests/test-getpass.c: New file.
65871
65872 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65873
65874         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
65875         for GNU regex features.
65876
65877 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65878
65879         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
65880         * lib/regex.h (regerror): Likewise.
65881
65882         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
65883         requires this.  (The code never needed it.)
65884
65885         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
65886         All uses of recently-renamed identifiers changed to use the new,
65887         POSIX-compliant names.  The code will build and run just fine
65888         without these changes, but it's better to eat our own dog food
65889         and use the standard-conforming names.
65890
65891         * lib/regex.h: Fix a multitude of POSIX name space violations.
65892         These changes have an effect only for programs that define
65893         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
65894         do not change anything for programs compiled in the normal way.
65895         Also, there is no effect on the ABI.
65896
65897         (_REGEX_SOURCE): New macro.
65898         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
65899         defined and _GNU_SOURCE is not; this fixes a name space violation.
65900
65901         Rename the following macros to obey POSIX requirements.
65902         The old names are still visible as macros if _REGEX_SOURCE is defined.
65903         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
65904         RE_BACKSLASH_ESCAPE_IN_LISTS.
65905         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
65906         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
65907         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
65908         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
65909         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
65910         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
65911         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
65912         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
65913         (REG_INTERVALS): renamed from RE_INTERVALS.
65914         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
65915         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
65916         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
65917         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
65918         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
65919         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
65920         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
65921         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
65922         RE_UNMATCHED_RIGHT_PAREN_ORD.
65923         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
65924         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
65925         (REG_DEBUG): renamed from RE_DEBUG.
65926         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
65927         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
65928         unusual, since we can't clash with the POSIX REG_ICASE.
65929         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
65930         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
65931         (REG_NO_SUB): renamed from RE_NO_SUB.
65932         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
65933         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
65934         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
65935         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
65936         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
65937         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
65938         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
65939         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
65940         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
65941         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
65942         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
65943         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
65944         RE_SYNTAX_POSIX_MINIMAL_BASIC.
65945         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
65946         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
65947         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
65948         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
65949         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
65950         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
65951         (REG_FIXED): Renamed from REGS_FIXED.
65952         (REG_NREGS): Renamed from RE_NREGS.
65953
65954         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
65955         of other REG_* macros, since POSIX says the user is allowed to
65956         #undef these macros selectively.
65957
65958         (reg_errcode_t): Update comment stating what other tables need
65959         to be consistent.
65960
65961         Rename the following enum values to obey POSIX requirements.
65962         The old names are still visible as macros.
65963         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
65964         is not defined, since GNU is supposed to be a superset of POSIX as
65965         much as possible, and since we want reg_errcode_t to be a signed
65966         type for implementation consistency.
65967         (_REG_NOERROR): Renamed from REG_NOERROR.
65968         (_REG_NOMATCH): Renamed from REG_NOMATCH.
65969         (_REG_BADPAT): Renamed from REG_BADPAT.
65970         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
65971         (_REG_ECTYPE): Renamed from REG_ECTYPE.
65972         (_REG_EESCAPE): Renamed from REG_EESCAPE.
65973         (_REG_ESUBREG): Renamed from REG_ESUBREG.
65974         (_REG_EBRACK): Renamed from REG_EBRACK.
65975         (_REG_EPAREN): Renamed from REG_EPAREN.
65976         (_REG_EBRACE): Renamed from REG_EBRACE.
65977         (_REG_BADBR): Renamed from REG_BADBR.
65978         (_REG_ERANGE): Renamed from REG_ERANGE.
65979         (_REG_ESPACE): Renamed from REG_ESPACE.
65980         (_REG_BADRPT): Renamed from REG_BADRPT.
65981         (_REG_EEND): Renamed from REG_EEND.
65982         (_REG_ESIZE): Renamed from REG_ESIZE.
65983         (_REG_ERPAREN): Renamed from REG_ERPAREN.
65984         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
65985         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
65986         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
65987         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
65988
65989         (_REG_RE_NAME, _REG_RM_NAME): New macros.
65990         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
65991         changed.  But support the old name if the new one is not defined
65992         and if _REGEX_SOURCE.
65993
65994         Change the following member names in struct re_pattern_buffer.
65995         The old names are still supported if !_REGEX_SOURCE.
65996         The new names are always supported, regardless of _REGEX_SOURCE.
65997         (re_buffer): Renamed from buffer.
65998         (re_allocated): Renamed from allocated.
65999         (re_used): Renamed from used.
66000         (re_syntax): Renamed from syntax.
66001         (re_fastmap): Renamed from fastmap.
66002         (re_translate): Renamed from translate.
66003         (re_can_be_null): Renamed from can_be_null.
66004         (re_regs_allocated): Renamed from regs_allocated.
66005         (re_fastmap_accurate): Renamed from fastmap_accurate.
66006         (re_no_sub): Renamed from no_sub.
66007         (re_not_bol): Renamed from not_bol.
66008         (re_not_eol): Renamed from not_eol.
66009         (re_newline_anchor): Renamed from newline_anchor.
66010
66011         Change the following member names in struct re_registers.
66012         The old names are still supported if !_REGEX_SOURCE.
66013         The new names are always supported, regardless of _REGEX_SOURCE.
66014         (rm_num_regs): Renamed from num_regs.
66015         (rm_start): Renamed from start.
66016         (rm_end): Renamed from end.
66017
66018         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
66019         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
66020         Prepend __ to parameter names.
66021
66022         Undo yesterday's changes.
66023
66024 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66025
66026         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
66027         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
66028         lib/regex.c.
66029
66030 2005-08-24  Jim Meyering  <jim@meyering.net>
66031
66032         Sync from coreutils.
66033         * m4/fcntl-safer.m4: New file.
66034
66035         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
66036         and object files for this module.
66037
66038 2005-08-24  Jim Meyering  <jim@meyering.net>
66039
66040         Sync from coreutils.
66041         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
66042
66043 2005-08-24  Jim Meyering  <jim@meyering.net>
66044
66045         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
66046         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
66047
66048 2005-08-24  Jim Meyering  <jim@meyering.net>
66049
66050         * modules/fcntl-safer: New module.
66051         * modules/fts (Depends-on): Add fcntl-safer.
66052         * MODULES.html.sh (File descriptor based Input/Output):
66053         Add fcntl-safer.
66054
66055 2005-08-24  Bruno Haible  <bruno@clisp.org>
66056
66057         Support for unit test modules.
66058         * modules/README: Mention tests modules.
66059         * modules/TEMPLATE-TESTS: New file.
66060         * gnulib-tool: New options --extract-tests-module, --with-tests and
66061         --tests-base (unused for the moment).
66062         (testsbase, inctests): New variables.
66063         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
66064         (func_verify_module): Exclude TEMPLATE-TESTS.
66065         (func_verify_nontests_module, func_verify_tests_module): New functions.
66066         (func_get_dependencies): Add implicit dependency for tests modules.
66067         (func_get_tests_module): New function.
66068         (func_modules_transitive_closure): When --with-tests was specified,
66069         include the unit tests as well, unless explicitly avoided.
66070         (func_emit_lib_Makefile_am): Ignore the tests modules here.
66071         (func_emit_tests_Makefile_am): New function.
66072         (func_create_testdir): When --with-tests was specified, emit a
66073         tests/ directory.
66074         * MODULES.html.sh (Future developments): Update.
66075
66076 2005-08-24  Bruno Haible  <bruno@clisp.org>
66077
66078         * modules/tls-tests: New file.
66079         * tests/test-tls.c: New file, from GNU gettext.
66080
66081 2005-08-24  Bruno Haible  <bruno@clisp.org>
66082
66083         * modules/lock-tests: New file.
66084         * tests/test-lock.c: New file, from GNU gettext.
66085
66086 2005-08-24  Bruno Haible  <bruno@clisp.org>
66087
66088         * lib/lock.h: Add multiple inclusion guard.
66089         * lib/tls.h: Add multiple inclusion guard.
66090
66091 2005-08-24  Bruno Haible  <bruno@clisp.org>
66092
66093         * gnulib-tool: Add support for the --aux-dir option to
66094         --create-testdir, --create-megatestdir, --test, --megatest.
66095         (func_create_testdir, func_create_megatestdir): Optionally emit a
66096         AC_CONFIG_AUX_DIR directive.
66097         (create-testdir, create-megatestdir, test, megatest): Provide a
66098         default value for $auxdir.
66099
66100 2005-08-24  Bruno Haible  <bruno@clisp.org>
66101
66102         * gnulib-tool (import): Use compound statement instead of subshell
66103         where possible.
66104
66105 2005-08-24  Bruno Haible  <bruno@clisp.org>
66106
66107         * gnulib-tool (import): Change --aux-dir default to "build-aux".
66108
66109 2005-08-24  Bruno Haible  <bruno@clisp.org>
66110
66111         * gnulib-tool (func_version): Update.
66112
66113 2005-08-24  Bruno Haible  <bruno@clisp.org>
66114
66115         * gnulib-tool (func_import, func_create_testdir,
66116         func_create_megatestdir): Quote all autoconf macro arguments.
66117
66118 2005-08-24  Bruno Haible  <bruno@clisp.org>
66119
66120         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
66121         option --force, because --force causes the aclocal.m4 of each
66122         subdirectory to be newer than the corresponding config.h.in.
66123
66124 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66125
66126         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
66127         All contents moved to gl_REGEX.
66128         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
66129         assume that it does.
66130
66131 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66132
66133         * lib/regex.h (REG_NOSYS)
66134         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
66135         Define, since POSIX requires it as of 2001.
66136         (_REG_ENOSYS)
66137         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
66138         New private symbol, used to keep the enum signed in all cases.
66139         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
66140         Youngman in
66141         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
66142
66143         * lib/regex_internal.c (re_string_skip_chars, register_state):
66144         (calc_state_hash):
66145         Remove forward decls; no longer needed now that we use prototypes.
66146         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
66147         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
66148         (clean_state_log_if_needed): Likewise.
66149
66150 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66151
66152         * config/srclist.txt: Add glibc bugs 1231-1233.
66153
66154 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66155
66156         Fix problems reported by Sam Steingold in
66157         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
66158         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
66159         assumed that reg_errcode_t is a signed type, which is not
66160         necessarily true if _XOPEN_SOURCE is not defined.
66161         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
66162         since some compilers warn about it otherwise.
66163
66164 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66165
66166         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
66167         (init_word_char, create_initial_state, duplicate_node_closure):
66168         (fetch_token, peek_token_bracket, build_range_exp):
66169         (build_collating_symbol): Remove forward decls; no longer needed
66170         now that we use prototypes.
66171
66172         * lib/regcomp.c:
66173         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
66174         (re_compile_fastmap_iter, regcomp, regerror, regfree):
66175         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
66176         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
66177         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
66178         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
66179         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
66180         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
66181         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
66182         (build_range_exp, build_collating_symbol, parse_bracket_exp):
66183         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
66184         (build_charclass, build_charclass_op, fetch_number, create_tree):
66185         (create_token_tree, mark_opt_subexp, duplicate_tree):
66186         Use prototypes rather than old-style definitions.
66187
66188         * lib/regex_internal.c:
66189         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
66190         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
66191         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66192         (re_string_reconstruct, re_string_peek_byte_case):
66193         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
66194         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66195         (re_node_set_init_copy, re_node_set_add_intersect):
66196         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66197         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66198         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66199         (re_acquire_state, re_acquire_state_context, register_state):
66200         (create_ci_newstate, create_cd_newstate, free_state):
66201         Likewise.
66202         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
66203         re_search_2):
66204         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
66205         (re_search_internal, prune_impossible_nodes):
66206         (acquire_init_state_context, check_matching, static):
66207         (check_halt_node_context, check_halt_state_context, proceed_next_node):
66208         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
66209         (update_regs, sift_states_backward, build_sifted_states):
66210         (clean_state_log_if_needed, merge_state_array):
66211         (update_cur_sifted_state, add_epsilon_src_nodes):
66212         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
66213         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
66214         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
66215         (find_recover_state, check_subexp_matching_top, transit_state_mb):
66216         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
66217         (check_arrival, check_arrival_add_next_nodes):
66218         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66219         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66220         (check_node_accept_bytes, check_node_accept, extend_buffers):
66221         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
66222         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
66223         (sift_ctx_init):
66224         Likewise.
66225
66226         * lib/regex_internal.h:
66227         (re_string_allocate, re_string_construct, re_string_reconstruct):
66228         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
66229         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
66230         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
66231         (re_string_context_at, re_string_peek_byte_case):
66232         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
66233         is defined, since we now use prototypes always.
66234
66235         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
66236         C89 or better.  All uses removed.
66237
66238 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66239
66240         * config/srclist.txt: Add glibc bugs 1220-1227.
66241
66242 2005-08-20  Jim Meyering  <jim@meyering.net>
66243
66244         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
66245         of unused local, dfa.
66246
66247 2005-08-20  Bruno Haible  <bruno@clisp.org>
66248
66249         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
66250
66251 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66252
66253         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
66254         (re_node_set_insert_last, re_dfa_add_node):
66255         Rename local variables to avoid GCC shadowing warnings.
66256
66257 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66258
66259         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
66260         [defined lint]: Suppress bogus uninitialized-variable warnings.
66261
66262         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
66263         and let the caller return REG_ESPACE if out of space.  This
66264         removes an uninitialied-variable warning with GCC 4.0.1, and also
66265         avoids taking the address of a local variable.  All callers
66266         changed.
66267
66268 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66269
66270         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
66271         $LIBCSRC/posix/regexec.c.
66272         Add glibc bug 1217 for regcomp.c.
66273
66274 2005-08-19  Jim Meyering  <jim@meyering.net>
66275
66276         * lib/regexec.c (proceed_next_node): Redo local variables to
66277         avoid GCC shadowing warnings.
66278
66279 2005-08-18  Bruno Haible  <bruno@clisp.org>
66280
66281         * lib/strstr.c (strstr): Fix return value in multibyte case.
66282         * lib/strcasestr.c (strcasestr): Likewise.
66283
66284 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66285
66286         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
66287
66288 2005-08-17  Jim Meyering  <jim@meyering.net>
66289
66290         Make the %s format (seconds since the epoch) work for a negative
66291         number and when used with a zero-padded field width, e.g. %015s.
66292
66293         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
66294         label so that it precedes the code to set `digits'.  Otherwise,
66295         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
66296         print `00-22'.  Now, it prints `-0022', as it should.
66297
66298 2005-08-17  Bruno Haible  <bruno@clisp.org>
66299
66300         * modules/strstr (Files): Add m4/mbrtowc.m4.
66301         (Depends-on): Add mbuiter.
66302
66303 2005-08-17  Bruno Haible  <bruno@clisp.org>
66304
66305         * modules/strcasestr: New file.
66306         * MODULES.html.sh (String handling, based on ANSI C 89): Add
66307         strcasestr.
66308
66309 2005-08-17  Bruno Haible  <bruno@clisp.org>
66310
66311         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
66312
66313 2005-08-17  Bruno Haible  <bruno@clisp.org>
66314
66315         * modules/mbuiter: New file.
66316         * MODULES.html.sh (Extended multibyte and wide character utilities):
66317         Add mbuiter.
66318
66319 2005-08-17  Bruno Haible  <bruno@clisp.org>
66320
66321         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
66322         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
66323
66324 2005-08-17  Bruno Haible  <bruno@clisp.org>
66325
66326         * m4/strcasestr.m4: New file.
66327
66328 2005-08-17  Bruno Haible  <bruno@clisp.org>
66329
66330         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
66331         * lib/strstr.c: Completely rewritten, with multibyte locale support.
66332
66333 2005-08-17  Bruno Haible  <bruno@clisp.org>
66334
66335         * lib/strcasestr.h: New file.
66336         * lib/strcasestr.c: New file.
66337
66338 2005-08-17  Bruno Haible  <bruno@clisp.org>
66339
66340         * lib/strcasecmp.c: Use mbuiter.h.
66341
66342 2005-08-17  Bruno Haible  <bruno@clisp.org>
66343
66344         * lib/mbuiter.h: New file.
66345
66346 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66347
66348         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
66349         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
66350         and gl_GETOPT are both invoked via different paths (as happens
66351         with GNU tar CVS because it uses both argp and getopt), the former
66352         wins.
66353
66354 2005-08-16  Bruno Haible  <bruno@clisp.org>
66355
66356         * modules/tls: New file.
66357         * MODULES.html.sh (Multithreading): Add tls.
66358
66359 2005-08-16  Bruno Haible  <bruno@clisp.org>
66360
66361         * modules/strnlen1: New file.
66362         * MODULES.html.sh (String handling): Add strnlen1.
66363
66364 2005-08-16  Bruno Haible  <bruno@clisp.org>
66365
66366         * modules/strcase (Files): Add m4/mbrtowc.m4.
66367         (Depends-on): Add strnlen1, mbchar.
66368
66369 2005-08-16  Bruno Haible  <bruno@clisp.org>
66370
66371         * modules/mbiter: New file.
66372         * MODULES.html.sh (Extended multibyte and wide character utilities):
66373         Add mbiter.
66374
66375 2005-08-16  Bruno Haible  <bruno@clisp.org>
66376
66377         * modules/mbfile: New file.
66378         * MODULES.html.sh (Extended multibyte and wide character utilities):
66379         Add mbfile.
66380
66381 2005-08-16  Bruno Haible  <bruno@clisp.org>
66382
66383         * modules/mbchar: New file.
66384         * MODULES.html.sh (Extended multibyte and wide character utilities):
66385         New section.
66386
66387 2005-08-16  Bruno Haible  <bruno@clisp.org>
66388
66389         * m4/tls.m4: New file, from GNU gettext.
66390
66391 2005-08-16  Bruno Haible  <bruno@clisp.org>
66392
66393         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
66394         always.
66395         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
66396
66397 2005-08-16  Bruno Haible  <bruno@clisp.org>
66398
66399         * m4/mbiter.m4: New file.
66400
66401 2005-08-16  Bruno Haible  <bruno@clisp.org>
66402
66403         * m4/mbfile.m4: New file.
66404
66405 2005-08-16  Bruno Haible  <bruno@clisp.org>
66406
66407         * m4/mbchar.m4: New file.
66408
66409 2005-08-16  Bruno Haible  <bruno@clisp.org>
66410
66411         * lib/tls.h: New file, from GNU gettext.
66412         * lib/tls.c: New file, from GNU gettext.
66413
66414 2005-08-16  Bruno Haible  <bruno@clisp.org>
66415
66416         * lib/strnlen1.h: New file.
66417         * lib/strnlen1.c: New file.
66418
66419 2005-08-16  Bruno Haible  <bruno@clisp.org>
66420
66421         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
66422         (mbi_init): Update.
66423         (mbi_avail, mbi_advance): Let the iteration end before the terminating
66424         NUL byte, not after it.
66425
66426 2005-08-16  Bruno Haible  <bruno@clisp.org>
66427
66428         * lib/strcase.h (strcasecmp): Add note in comments.
66429         * lib/strncasecmp.c: Use code from strcasecmp.c.
66430         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
66431         (strcasecmp): Work correctly in multibyte locales.
66432
66433 2005-08-16  Bruno Haible  <bruno@clisp.org>
66434
66435         * lib/mbiter.h: New file.
66436
66437 2005-08-16  Bruno Haible  <bruno@clisp.org>
66438
66439         * lib/mbfile.h: New file.
66440
66441 2005-08-16  Bruno Haible  <bruno@clisp.org>
66442
66443         * lib/mbchar.h: New file.
66444         * lib/mbchar.c: New file.
66445
66446 2005-08-16  Bruno Haible  <bruno@clisp.org>
66447
66448         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
66449         the valid ones. Makes the comparison operations transitive:
66450         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
66451         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
66452
66453 2005-08-15  Simon Josefsson  <jas@extundo.com>
66454
66455         * modules/ssize_t (License): Change to 'unlimited'.
66456
66457         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
66458
66459 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66460
66461         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
66462         Add comments for each pending glibc patch.
66463
66464 2005-08-15  Bruno Haible  <bruno@clisp.org>
66465
66466         * lib/regex.h (__restrict_arr): Don't define to __restrict if
66467         __cplusplus is defined.
66468
66469 2005-08-14  Jim Meyering  <jim@meyering.net>
66470
66471         Sync from coreutils.
66472
66473         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
66474         Use the hash-table-based cycle-detection code not just when
66475         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
66476         Reported by James Youngman in
66477         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
66478         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
66479         FTS_TIGHT_CYCLE_CHECK.
66480         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
66481         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
66482         once again.
66483         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
66484         * lib/fts.c (fd_safer): Remove decl.
66485         Include fcntl--.h rather than unistd-safer.h
66486         (fts_safe_changedir): Don't call fd_safer; no longer needed
66487         now that we include fcntl--.h.
66488
66489 2005-08-12  Simon Josefsson  <jas@extundo.com>
66490
66491         * modules/getndelim2: Use ssize_t module.
66492         * modules/getnline: Likewise.
66493         * modules/safe-read: Likewise.
66494         * modules/xreadlink: Likewise.
66495
66496         * modules/ssize_t: New file.
66497
66498 2005-08-12  Simon Josefsson  <jas@extundo.com>
66499
66500         * m4/readline.m4: Look for termcap, curses or ncurses if required.
66501
66502 2005-08-12  Simon Josefsson  <jas@extundo.com>
66503
66504         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66505         ssize_t.
66506
66507 2005-08-12  Simon Josefsson  <jas@extundo.com>
66508
66509         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
66510         readline, getdelim and check_version.
66511         (Support for systems lacking ISO C 99: Sizes of integer types):
66512         Add size_max.
66513
66514 2005-08-12  Bruno Haible  <bruno@clisp.org>
66515
66516         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
66517
66518 2005-08-11  Simon Josefsson  <jas@extundo.com>
66519
66520         * modules/readline: New file.
66521
66522         * modules/strnlen (Files): Add strnlen.h.
66523
66524 2005-08-11  Simon Josefsson  <jas@extundo.com>
66525
66526         * m4/readline.m4: New file.
66527
66528 2005-08-11  Simon Josefsson  <jas@extundo.com>
66529
66530         * lib/readline.h, readline.c: New file.
66531
66532 2005-08-11  Simon Josefsson  <jas@extundo.com>
66533
66534         * doc/gnulib.texi (Initial import, Finishing touches): Mention
66535         gl_AVOID.
66536
66537 2005-08-11  Bruno Haible  <bruno@clisp.org>
66538
66539         * lib/strnlen.h (strnlen): Change parameter name to match comment.
66540
66541 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
66542
66543         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
66544
66545 2005-08-10  Simon Josefsson  <jas@extundo.com>
66546
66547         * tests/test-iconvme.c: New file.
66548
66549 2005-08-10  Simon Josefsson  <jas@extundo.com>
66550
66551         * m4/strnlen.m4: New file.
66552
66553         * m4/strndup.m4: Don't check for strnlen declaration, done in
66554         strnlen.m4.
66555
66556 2005-08-10  Simon Josefsson  <jas@extundo.com>
66557
66558         * lib/strndup.c: Use strnlen.h.
66559
66560         * lib/strnlen.h: New file.
66561
66562 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66563
66564         * README: Typos.
66565
66566 2005-08-02  Simon Josefsson  <jas@extundo.com>
66567
66568         * modules/readline: New file.
66569
66570 2005-08-02  Simon Josefsson  <jas@extundo.com>
66571
66572         * modules/getdelim: New file.
66573
66574         * modules/getline: Rewrite, don't use getndelim2.
66575
66576 2005-08-02  Simon Josefsson  <jas@extundo.com>
66577
66578         * m4/getline.m4: Separate out getdelim stuff into separate module.
66579
66580         * m4/getdelim.m4: New file.
66581
66582 2005-08-02  Simon Josefsson  <jas@extundo.com>
66583
66584         * lib/getline.h, getline.c: Rewrite.
66585
66586         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
66587
66588 2005-07-31  Bruno Haible  <bruno@clisp.org>
66589
66590         * lib/lock.h (gl_lock_initializer): New macro.
66591         (gl_lock_define_initialized): Use it.
66592         (gl_rwlock_initializer): New macro.
66593         (gl_rwlock_define_initialized): Use it.
66594         (gl_recursive_lock_initializer): New macro.
66595         (gl_recursive_lock_define_initialized): Use it.
66596
66597 2005-07-30  Karl Berry  <karl@gnu.org>
66598
66599         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
66600         Report from Ben Pfaff, regarding getopt.
66601
66602 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
66603
66604         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
66605         normal way.
66606         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
66607         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
66608         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
66609         (gl_GETOPT): Use the new macros.  Most of the implementation
66610         is moved to the new macros.  This is for programs like Emacs
66611         that don't want all the functionality of gl_GETOPT.
66612
66613 2005-07-26  Bruno Haible  <bruno@clisp.org>
66614
66615         * m4/lock.m4: Update from GNU gettext.
66616
66617 2005-07-26  Bruno Haible  <bruno@clisp.org>
66618
66619         * lib/lock.h: Update from GNU gettext.
66620         * lib/lock.c: Update from GNU gettext.
66621
66622 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
66623
66624         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
66625         obsolescent AC_TRY_RUN.  Include the default includes files, for
66626         'exit'.
66627
66628 2005-07-24  Bruno Haible  <bruno@clisp.org>
66629
66630         * modules/visibility: New file.
66631         * MODULES.html.sh (Misc): Add visibility.
66632
66633 2005-07-24  Bruno Haible  <bruno@clisp.org>
66634
66635         * m4/visibility.m4: New file.
66636
66637 2005-07-24  Bruno Haible  <bruno@clisp.org>
66638
66639         * doc/visibility.texi: New file.
66640
66641 2005-07-22  Bruno Haible  <bruno@clisp.org>
66642
66643         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
66644         $(ALLOCA_H), redundant through BUILT_SOURCES.
66645         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
66646         redundant through BUILT_SOURCES.
66647         * modules/byteswap (Makefile.am): Remove explicit dependency on
66648         $(BYTESWAP_H), redundant through BUILT_SOURCES.
66649         * modules/fnmatch (Makefile.am): Remove explicit dependency on
66650         $(FNMATCH_H), redundant through BUILT_SOURCES.
66651         * modules/getopt (Makefile.am): Remove explicit dependency on
66652         $(GETOPT_H), redundant through BUILT_SOURCES.
66653         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
66654         redundant through BUILT_SOURCES.
66655         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
66656         redundant through BUILT_SOURCES.
66657         * modules/stdbool (Makefile.am): Remove explicit dependency on
66658         $(STDBOOL_H), redundant through BUILT_SOURCES.
66659         * modules/stdint (Makefile.am): Remove explicit dependency on
66660         $(STDINT_H), redundant through BUILT_SOURCES.
66661         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
66662         Remove explicit dependency on $(SYSEXITS_H).
66663         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
66664
66665 2005-07-18  Simon Josefsson  <jas@extundo.com>
66666
66667         * lib/check-version.c (check_version): Accept identical versions too.
66668
66669 2005-07-18  Bruno Haible  <bruno@clisp.org>
66670
66671         * modules/lock: New file.
66672         * MODULES.html.sh (Multithreading): New section.
66673
66674 2005-07-18  Bruno Haible  <bruno@clisp.org>
66675
66676         * m4/lock.m4: New file, from GNU gettext.
66677
66678 2005-07-18  Bruno Haible  <bruno@clisp.org>
66679
66680         * lib/lock.h: New file, from GNU gettext.
66681         * lib/lock.c: New file, from GNU gettext.
66682
66683 2005-07-18  Bruno Haible  <bruno@clisp.org>
66684
66685         * lib/lock.h (gl_once_t): New type.
66686         (gl_once_define, gl_once): New macros.
66687         * lib/lock.c (fresh_once): New variable.
66688         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
66689         functions.
66690
66691 2005-07-16  Simon Josefsson  <jas@extundo.com>
66692
66693         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
66694         workaround, suggested by Bruno.
66695
66696 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66697
66698         * modules/xalloc (Depends-on): Add xalloc-die.
66699         * modules/xvasprintf (Depends-on): Add xalloc-die.
66700
66701 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66702
66703         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
66704         with a minor change.
66705
66706 2005-07-15  Bruno Haible  <bruno@clisp.org>
66707
66708         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
66709         When using lib/poll.c, define poll as rpl_poll.
66710
66711 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
66712
66713         * modules/argp (Depends-on): Remove unlocked-io.
66714
66715 2005-07-14  Derek Price  <derek@ximbiot.com>
66716
66717         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
66718         for glob symlink bug.
66719
66720 2005-07-14  Bruno Haible  <bruno@clisp.org>
66721
66722         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
66723         Instead, test for *_unlocked function declarations directly.
66724
66725 2005-07-11  Simon Josefsson  <jas@extundo.com>
66726
66727         * modules/size_max: New file.
66728
66729         * modules/xsize: Depend on size_max module for size_max.m4.
66730
66731 2005-07-11  Simon Josefsson  <jas@extundo.com>
66732
66733         * lib/size_max.h: New file.
66734
66735 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
66736
66737         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
66738         copyright symbol and the year.
66739         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
66740         (version_etc_va): Use parameterized copyright notice.
66741         Reword to conform to the current GNU coding standards.
66742
66743 2005-07-11  Karl Berry  <karl@gnu.org>
66744
66745         * doc/gnulib.texi (Quoting): new node.
66746         (Initial import): more info, from Patrice.
66747
66748 2005-07-11  Bruno Haible  <bruno@clisp.org>
66749
66750         * gnulib-tool (func_usage): Document option --avoid.
66751         (Command line options): Handle --avoid.
66752         (func_acceptable): New function.
66753         (func_modules_transitive_closure): Use it.
66754
66755 2005-07-11  Bruno Haible  <bruno@clisp.org>
66756
66757         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
66758         Reported by Jim Meyering.
66759
66760 2005-07-10  Bruno Haible  <bruno@clisp.org>
66761
66762         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
66763         Needed when size_t is smaller than 'unsigned int'.
66764         Reported by Paul Eggert.
66765
66766 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66767
66768         * modules/argp (Depends-on): Add unlocked-io
66769
66770 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66771
66772         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
66773         block of defines.
66774
66775 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66776
66777         * config/srclist.txt: Comment out regcomp.c, since we have a porting
66778         fix now.
66779
66780 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
66781         and Paul Eggert  <eggert@cs.ucla.edu>
66782
66783         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
66784         in wint_t, not wchar_t.  Remove now-unnecessary cast.
66785
66786 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66787
66788         * modules/regex (Files): Add lib/regex_internal.c,
66789         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
66790         (Depends-on): Add extensions.
66791         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
66792
66793 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66794
66795         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
66796         pathconf.
66797         * m4/same.m4 (gl_SAME): Likewise.
66798         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
66799
66800         * m4/regex.m4: Adjust to new libc regex implementation.
66801         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
66802         all the .c and .h parts of (the new) regex.
66803         Quote the m4 stuff better.
66804         Check for RE_ICASE bug of old gnulib.
66805         Check for REG_STARTEND of recent libc.
66806         Rename local variables from jm_* to gl_*.
66807         Quote operand of "test -f".
66808         Say "recent enough" version of libc, not "version 2".
66809         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
66810         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
66811         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
66812         Remove check for btowc, isascii.
66813         Require AM_LANGINFO_CODESET.
66814
66815 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66816
66817         * lib/regex.c, regex.h: Sync from libc.
66818         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
66819         * lib/regexec.c:
66820         New files, synced from libc, except that regex_internal.h
66821         currently has a small porting fix.
66822
66823 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66824
66825         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
66826         regex_internal.c, regexec.c.
66827         Add regex_internal.h too, but as a comment, since the libc version
66828         is currently broken in gnulib mode.
66829
66830 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66831
66832         Support programs like Emacs that use gnulib but not gettext.
66833         * MODULES.html.sh (Internationalization functions): Add gettext-h.
66834         * modules/gettext-h: New file.
66835         * modules/gettext (Files): Remove lib/gettext.h.
66836         (Depends-on): Add gettext-h.
66837         (Makefile.am): Remove lib_SOURCES.
66838         * modules/argmatch, modules/c-stack, modules/closeout:
66839         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
66840         * modules/execute, modules/file-type, modules/getaddrinfo:
66841         * modules/getopt, modules/human, modules/javacomp:
66842         * modules/javaexec, modules/mkdir-p, modules/obstack:
66843         * modules/openat, modules/pagealign_alloc, modules/pipe:
66844         * modules/quotearg, modules/regex, modules/rpmatch:
66845         * modules/unicodeio, modules/userspec, modules/version-etc:
66846         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
66847         * modules/xsetenv:
66848         Depend on gettext-h, not gettext.
66849
66850 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66851
66852         * gnulib-tool (func_import): Add support for 'public domain' license.
66853         * modules/alloca, modules/atexit, modules/memmove:
66854         Now public domain, not GPL.
66855         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
66856         * modules/realloc, modules/strerror, modules/strtod:
66857         Now LGPL, not GPL.
66858
66859 2005-07-05  Bruno Haible  <bruno@clisp.org>
66860
66861         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
66862         autoconf CVS. Needed for mingw.
66863
66864 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66865
66866         Remove the dependency of the strftime module on the tzset module.
66867         * modules/strftime (Depends-on): Remove dependency on tzset.
66868
66869 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66870
66871         Remove the dependency of the strftime module on the tzset module.
66872         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
66873         gl_FUNC_TZSET_CLOBBER.
66874
66875 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66876
66877         Remove the dependency of the strftime module on the tzset module.
66878         * lib/strftime.c (my_strftime)
66879         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
66880         Copy the input structure, to work around some of the bug with
66881         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
66882         Solaris releases, you should also use the tzset module, but we won't
66883         require it as a dependency any more since we don't want LGPLed code
66884         to depend on GPLed code.
66885
66886 2005-07-02  Jim Meyering  <jim@meyering.net>
66887
66888         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
66889         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
66890         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
66891         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
66892
66893 2005-07-02  Jim Meyering  <jim@meyering.net>
66894
66895         * lib/backupfile.c (backup_args): Change a `0' to NULL.
66896
66897 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66898
66899         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
66900         declares only 'struct timespec;' (!).
66901
66902 2005-07-01  Jim Meyering  <jim@meyering.net>
66903
66904         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
66905         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
66906         * lib/save-cwd.c, tempname.c:
66907         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66908         and don't include <sys/file.h>).
66909
66910 2005-06-29  Jim Meyering  <jim@meyering.net>
66911
66912         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
66913         type name.  Use the variable name instead.
66914         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
66915         Likewise.
66916
66917 2005-06-28  Simon Josefsson  <jas@extundo.com>
66918
66919         * modules/check-version (Files): Add check-version.m4.
66920
66921 2005-06-28  Simon Josefsson  <jas@extundo.com>
66922
66923         * m4/check-version.m4: New file, suggested by Jim Meyering
66924         <jim@meyering.net>.
66925
66926 2005-06-28  Simon Josefsson  <jas@extundo.com>
66927
66928         * lib/check-version.h, lib/check-version.c: New files.
66929
66930 2005-06-28  Simon Josefsson  <jas@extundo.com>
66931
66932         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
66933         collision with global variable.  Better indentation.  Don't
66934         increment buffer pointer beyond buffer end.  Based on comments
66935         from Paul Eggert <eggert@cs.ucla.edu>.
66936
66937         * lib/base64.h: Indent.
66938
66939 2005-06-28  Simon Josefsson  <jas@extundo.com>
66940
66941         * doc/gnulib.texi (Library version handling): New section.
66942
66943 2005-06-28  Jim Meyering  <jim@meyering.net>
66944
66945         * check-module (find_included_lib_files): Hard-code another
66946         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
66947         but modules/fts-lgpl (correctly) does not list those files.
66948
66949         * modules/canonicalize (Files): Add lib/pathmax.h.
66950
66951 2005-06-25  Simon Josefsson  <jas@extundo.com>
66952
66953         * modules/check-version: New file.
66954
66955 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
66956
66957         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
66958         initializer of struct addrinfo, as an indication that we don't
66959         care how many members the structure has.
66960
66961 2005-06-24  Derek Price  <derek@ximbiot.com>
66962         and Bruno Haible  <bruno@clisp.org>
66963
66964         Remove stat module & update lstat.
66965         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
66966         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66967         * m4/stat.m4: Remove this file.
66968
66969 2005-06-24  Derek Price  <derek@ximbiot.com>
66970         and Bruno Haible  <bruno@clisp.org>
66971
66972         Remove stat module & update lstat.
66973         * lib/stat.c: Remove this file...
66974         (slash_aware_lstat): ...moving this content and its support...
66975         * lib/lstat.c (rpl_lstat): ...into here.
66976         * lib/lstat.h: New file.
66977
66978 2005-06-24  Derek Price  <derek@ximbiot.com>
66979         and Bruno Haible  <bruno@clisp.org>
66980
66981         Remove stat module & update lstat.
66982         * config/srclist.txt (libc sources): Remove stat.
66983
66984 2005-06-24  Derek Price  <derek@ximbiot.com>
66985         and Bruno Haible  <bruno@clisp.org>
66986
66987         Remove stat module & update lstat.
66988         * MODULES.html.sh (stat): Remove.
66989         * MODULES.html: Regenerated.
66990         * modules/lstat (Description): Correct function name.
66991         (Files): Add "lstat.h".
66992         (Depends-on): Remove stat, add xalloc, stat-macros.
66993         * modules/stat: Remove this file.
66994         (Include): Add "lstat.h", remove <sys/stat.h>.
66995
66996 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66997
66998         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
66999         (ranged_convert): Don't save conversion in a temporary struct.
67000         This causes a warning with GCC 4.0.0, and anyway in the typical
67001         case it's not worth the extra 100 bytes or so of code.
67002         (ranged_convert, __mktime_internal): When calling a function via a
67003         pointer P, use P () rather than (*P) (), as we now assume C89 or
67004         better.
67005
67006 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67007
67008         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
67009         "who -r" failed to give output.  Problem reported by Tim Waugh.
67010
67011         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
67012         (xcalloc): Use it to avoid needless tests.
67013         Problem reported by Jim Meyering.
67014
67015 2005-06-20  Derek Price  <derek@ximbiot.com>
67016
67017         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
67018         unnecessary for Autoconfs > 2.59c.
67019
67020 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67021
67022         * lib/argp.h (__option_is_short): Check upper limit of
67023         __key. Isprint() requires its argument to have the value
67024         of an unsigned char or EOF.
67025
67026 2005-06-16  Jim Meyering  <jim@meyering.net>
67027
67028         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
67029         when either N or S is zero.
67030
67031 2005-06-16  Derek Price  <derek@ximbiot.com>
67032
67033         * m4/bison.m4: Declare YACC & YFLAGS precious.
67034
67035 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
67036
67037         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
67038         multibyte string or pattern, fall back on unibyte matching.
67039         Problem reported by James Youngman.
67040
67041 2005-06-08  Bruno Haible  <bruno@clisp.org>
67042
67043         * modules/csharpcomp: New file.
67044         * MODULES.html.sh (C#): Add csharpcomp.
67045
67046 2005-06-08  Bruno Haible  <bruno@clisp.org>
67047
67048         * m4/csharpcomp.m4: New file, from GNU gettext.
67049
67050 2005-06-08  Bruno Haible  <bruno@clisp.org>
67051
67052         * lib/csharpcomp.h: New file, from GNU gettext.
67053         * lib/csharpcomp.c: New file, from GNU gettext.
67054         * lib/csharpcomp.sh.in: New file, from GNU gettext.
67055
67056 2005-06-08  Bruno Haible  <bruno@clisp.org>
67057
67058         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
67059         warning on mingw.
67060
67061 2005-06-07  Derek Price  <derek@ximbiot.com>
67062
67063         Sync from CVS.
67064         * lib/glob_.h: Indent nested #ifdef.
67065
67066 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67067
67068         Sync from coreutils.
67069         Use "file name" when talking about file names, instead of "filename"
67070         or "path", as per the GNU coding standards.
67071         * lib/mkdir-p.c: Renamed from makepath.c.
67072         (make_dir_parents): Renamed from make_path.  All callers changed.
67073         * lib/mkdir-p.h: Likewise.  All includers changed.
67074         * lib/filenamecat.c: Renamed from path-concat.c.
67075         (file_name_concat): Renamed from path_concat.  All callers changed.
67076         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
67077         * lib/filenamecat.h: Likewise.  All includers changed.
67078         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
67079         in comments or local variable names.
67080         * lib/basename.c: Likewise.
67081         * lib/canonicalize.c, canonicalize.h: Likewise.
67082         * lib/dirname.c, dirname.h: Likewise.
67083         * lib/euidaccess.c: Likewise.
67084         * lib/exclude.c: Likewise
67085         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
67086         * lib/fsusage.c, fsuage.h: Likewise.
67087         * lib/fts.c, fts_.h: Likewise.
67088         * lib/getcwd.c: Likewise.
67089         * lib/getloadavg.c: Likewise.
67090         * lib/mkstemp.c: Likewise.
67091         * lib/mountlist.c, mountlist.h: Likewise.
67092         * lib/openat.c, openat.h: Likewise.
67093         * lib/readlink-stub.c: Likewise.
67094         * lib/readutmp.c, readutmp.h: Likewise.
67095         * lib/rename.c: Likewise.
67096         * lib/rmdir.c: Likewise.
67097         * lib/same.c: Likewise.
67098         * lib/savedir.c: Likewise.
67099         * lib/stripslash.c: Likewise.
67100         * lib/tempname.c: Likewise.
67101         * lib/xreadlink.c: Likewise.
67102         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
67103         All uses changed.
67104         * lib/exclude.h: Likewise.
67105
67106         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
67107         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67108         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
67109         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67110         * lib/pathmax.h: Include <limits.h> unconditionally, since other
67111         files have been getting away with it for years (MORE/BSD 4.3
67112         is extinct now).
67113         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
67114         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67115
67116         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
67117         Define to 256, not 255, as per modern POSIX.
67118
67119 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67120
67121         Sync from coreutils.
67122         Use "file name" when talking about file names, instead of "filename"
67123         or "path", as per the GNU coding standards.
67124         * MODULES.html.sh: mkdir-p renamed from makepath.
67125         filenamecat renamed from path-concat.
67126         * modules/filenamecat: Renamed from modules/path-concat.
67127         (Files): filenamecat.h and filenamecat.c renamed from
67128         path-concat.h and path-concat.c.
67129         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
67130         (Include): filenamecat.h, not path-concat.h.
67131         * modules/mkdir-p: Renamed from modules/makepath.
67132         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
67133         makepath.c.
67134         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
67135         (Include): mkdir-p.h, not makepath.h.
67136
67137 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67138
67139         Sync from coreutils.
67140         * m4/mkdir-p.m4: Renamed from makepath.m4.
67141         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
67142         Rename files from makepath.c to mkdir-p.c, and from
67143         makepath.h to mkdir-p.h.
67144         * m4/filenamecat.m4: Renamed from path-concat.m4.
67145         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
67146         Rename files from path-concat.c to filenamecat.c,
67147         and from path-concat.h to filenamecat.h.
67148         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
67149         "file name" in local variables or comments.
67150         * m4/rename.m4: Likewise.
67151
67152 2005-06-01  Bruno Haible  <bruno@clisp.org>
67153
67154         * modules/csharpexec: New file.
67155         * MODULES.html.sh (C#): New section.
67156
67157 2005-06-01  Bruno Haible  <bruno@clisp.org>
67158
67159         * m4/csharp.m4: New file, from GNU gettext.
67160         * m4/csharpexec.m4: New file, from GNU gettext.
67161
67162 2005-06-01  Bruno Haible  <bruno@clisp.org>
67163
67164         * lib/csharpexec.h: New file, from GNU gettext.
67165         * lib/csharpexec.c: New file, from GNU gettext.
67166         * lib/csharpexec.sh.in: New file, from GNU gettext.
67167
67168 2005-05-31  Derek Price  <derek@ximbiot.com>
67169             Paul Eggert  <eggert@cs.ucla.edu>
67170
67171         Sync from cvs.
67172         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67173
67174 2005-05-31  Derek Price  <derek@ximbiot.com>
67175             Paul Eggert  <eggert@cs.ucla.edu>
67176
67177         Sync from cvs.
67178         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67179
67180 2005-05-29  Derek Price  <derek@ximbiot.com>
67181
67182         * config/srclist.txt (glob_.h, glob.c): Add these files.
67183
67184 2005-05-29  Derek Price  <derek@ximbiot.com>
67185
67186         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
67187         * modules/glob: New file.
67188         * modules/getlogin_r: Add link to POSIX spec in description.
67189
67190 2005-05-29  Derek Price  <derek@ximbiot.com>
67191             Paul Eggert  <eggert@cs.ucla.edu>
67192
67193         * m4/glob.m4: New file.
67194
67195 2005-05-29  Derek Price  <derek@ximbiot.com>
67196             Paul Eggert  <eggert@cs.ucla.edu>
67197
67198         * lib/glob_.h, lib/glob.c: New files.
67199
67200 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67201
67202         * modules/fts (Files): Remove m4/inttypes-pri.m4.
67203         * modules/fts-lgpl (Depends-on): Remove gettext.
67204
67205 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67206
67207         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
67208         and don't require gt_INTTYPES_PRI.
67209
67210 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67211
67212         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
67213
67214         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
67215         the configuration hassle isn't worth it.
67216         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
67217         (LONGEST_MODIFIER, PRIuMAX): Remove.
67218
67219 2005-05-27  Bruno Haible  <bruno@clisp.org>
67220
67221         * lib/getlogin_r.h: Remove second include of <stddef.h>.
67222
67223 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
67224
67225         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
67226         _POSIX_PTHREAD_SEMANTICS for Solaris.
67227
67228 2005-05-25  Derek Price  <derek@ximbiot.com>
67229
67230         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
67231
67232 2005-05-25  Derek Price  <derek@ximbiot.com>
67233             Paul Eggert  <eggert@cs.ucla.edu>
67234
67235         * modules/getlogin_r, m4/getlogin_r.m4: New files.
67236         * lib/getlogin_r.c, getlogin_r.h: New files.
67237
67238 2005-05-25  Bruno Haible  <bruno@clisp.org>
67239             Derek Price  <derek@ximbiot.com>
67240
67241         * lib/getlogin_r.h: Simplify API documentation.
67242
67243 2005-05-23  Derek Price  <derek@ximbiot.com>
67244
67245         * modules/minmax (Files): Add m4/minmax.m4.
67246         (configure.ac): Add gl_MINMAX.
67247
67248 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67249
67250         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
67251         so that unistd-safer.h (GPL'ed code) need not be included.
67252
67253 2005-05-22  Bruno Haible  <bruno@clisp.org>
67254
67255         * m4/minmax.m4: New file.
67256         Based on a patch by Derek Price <derek@ximbiot.com>.
67257
67258 2005-05-22  Bruno Haible  <bruno@clisp.org>
67259
67260         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
67261         (INT64_MIN): Fix definition.
67262         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
67263
67264         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
67265         NEED_SIGNED_INT_TYPES.
67266
67267         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
67268         HAVE_SYSTEM_INTTYPES.
67269
67270 2005-05-22  Bruno Haible  <bruno@clisp.org>
67271
67272         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
67273         Also include <sys/param.h> if it defines MIN, MAX.
67274         Based on a patch by Derek Price <derek@ximbiot.com>.
67275
67276 2005-05-21  Jim Meyering  <jim@meyering.net>
67277
67278         * modules/fts (Files): Add m4/inttypes-pri.m4.
67279         (Depends-on): Add lstat and remove gettext.  Alphabetize.
67280
67281 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67282
67283         New fts module.
67284         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
67285         (setup_dir, free_dir): New functions.
67286         (enter_dir, leave_dir): Define trivial
67287         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
67288         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
67289         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
67290         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
67291         Move to fts-cycle.c.
67292         (fts_open): Use setup_dir.
67293         (fts_close): Use free_dir.
67294         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
67295         This adds a label and some gotos, but the alternatives were messier.
67296         Check for memory allocation failure when entering a dir.
67297         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
67298         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
67299         (FTS): New member fts_cycle, that is a union that contains the
67300         old active_dir_ht and cycle_state.  All uses changed to mention
67301         fts_cycle.ht and fts_cycle.state.
67302         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
67303         fts.c, with the following changes:
67304         (setup_dir, free_dir): New functions.
67305         (enter_dir): Now returns bool.  Return true if successful, false
67306         if memory exhausted.  All callers changed.
67307         Do not bother partly cleaning up on
67308         memory allocation failure; that is free_dir's job.
67309         However, free ad if hash_insert fails, to avoid memory leak.
67310         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
67311         fts->fts_options to see which union member to use.
67312
67313 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67314
67315         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
67316         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
67317
67318 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67319
67320         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
67321
67322 2005-05-20  Jim Meyering  <jim@meyering.net>
67323
67324         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
67325         Now a macro, to pacify GCC.
67326
67327 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67328
67329         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
67330         of -1.
67331
67332 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67333
67334         * lib/chown.c (rpl_chown): Return -1 on failure.
67335
67336 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67337
67338         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
67339         Don't check for stddef.h.
67340         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
67341         don't use its results.
67342         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
67343         since we include them unconditionally.  Don't require
67344         AM_STDBOOL_H, since stdbool is a prerequisite.
67345         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
67346         since we assume C89 or better.
67347         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
67348         as we don't use their results.
67349         Don't check for fchdir, memmove, memset, strrchr, as we use
67350         them unconditionally.
67351         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
67352         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
67353
67354 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67355
67356         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
67357         Include <stddef.h> unconditionally, since we assume C89 now.
67358         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
67359         * lib/fts.c: Include fts_.h first, to check interface.
67360         Do not include intprops.h; no longer needed.
67361         Include cycle-check.h and hash.h, since fts_.h no longer does.
67362         Remove unnecessary casts of closedir to void.
67363         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
67364         decide whether to decrement nlinks.
67365         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
67366         (FTS): Use struct hash_table * instead of Hash_table, so that
67367         we no longer need to include hash.h here.
67368
67369 2005-05-18  Jim Meyering  <jim@meyering.net>
67370
67371         * modules/dirfd (License): Change to LGPL.  Most of the code
67372         is already in the public domain.
67373
67374 2005-05-18  Jim Meyering  <jim@meyering.net>
67375
67376         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
67377         Reported by Yoann Vandoorselaere.
67378
67379 2005-05-17  Jim Meyering  <jim@meyering.net>
67380
67381         * m4/fts.m4: New file, from coreutils.
67382
67383 2005-05-17  Jim Meyering  <jim@meyering.net>
67384
67385         * lib/fts.c, lib/fts_.h: New files, from coreutils.
67386
67387 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67388
67389         Sync from coreutils.
67390         * m4/unlinkdir.m4: New file.
67391
67392 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67393
67394         Sync from coreutils.
67395         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
67396         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
67397         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
67398         White space changes only.
67399         * lib/makepath.c (make_path): Port to hosts where leading "//" is
67400         special.
67401         * lib/yesno.c: Include getline.h, not ctype.h.
67402         (yesno): Don't remove leading white space; POSIX doesn't allow it.
67403         Use getline to remove arbitrary restriction on response length.
67404
67405 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67406
67407         * config/srclist-update: Spell out "Street" in FSF postal
67408         mail address; this is the style the FSF seems to prefer.
67409
67410         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
67411         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
67412         this updates FSF postal mail address.
67413
67414         Sync from coreutils.
67415         * modules/unlinkdir: New file.
67416         * modules/yesno (Depends-on): Add getline.
67417         * MODULES.html.sh (File system functions): Add unlinkdir.
67418
67419 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67420
67421         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
67422         lib/strsep.h:
67423         Change the initial comment to refer to GPL, not LGPL.
67424         gnulib-tool will change it to LGPL as needed.
67425
67426         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
67427         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
67428         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
67429         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
67430         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
67431         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
67432         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
67433         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
67434         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
67435         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
67436         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
67437         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
67438         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
67439         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
67440         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
67441         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
67442         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
67443         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
67444         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
67445         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
67446         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
67447         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
67448         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
67449         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
67450         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
67451         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
67452         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
67453         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
67454         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
67455         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
67456         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
67457         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
67458         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
67459         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
67460         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
67461         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
67462         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
67463         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
67464         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
67465         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
67466         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
67467         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
67468         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
67469         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
67470         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
67471         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
67472         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
67473         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
67474         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
67475         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
67476         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67477         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
67478         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
67479         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
67480         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
67481         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
67482         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
67483         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
67484         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
67485         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
67486         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
67487         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
67488         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
67489         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
67490         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
67491         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
67492         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
67493         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
67494         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
67495         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
67496         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
67497         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
67498         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
67499         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
67500         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
67501         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
67502         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
67503         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
67504         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
67505         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
67506         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
67507         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
67508         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
67509         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
67510         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
67511         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
67512         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
67513         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
67514         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
67515         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
67516         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
67517         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
67518         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
67519         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
67520         lib/yesno.c, lib/yesno.h:
67521         Update FSF postal mail address.
67522
67523 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67524
67525         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
67526         tests/test-memmem.c, tests/test-stpncpy.c:
67527         Update FSF postal mail address.
67528
67529 2005-05-13  Bruno Haible  <bruno@clisp.org>
67530
67531         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
67532         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
67533         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
67534         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
67535         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
67536         Add support for 64-bit integers in the MSVC compiler.
67537
67538 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67539
67540         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
67541
67542 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
67543
67544         * gnulib-tool (func_import): Sort and uniquify recommended includes.
67545
67546 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
67547
67548         * doc/getdate.texi (General date syntax): Don't say that date
67549         date --iso-8601=ns generates acceptable dates; it doesn't yet.
67550         Problem reported by Nic Ferrier.
67551
67552 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67553
67554         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
67555         specified in ai_socktype. Fix invalid ai_protocol
67556         check. ai_protocol is usually set to 0 or depending on
67557         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
67558         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
67559         ai_socktype / ai_protocol in the returned addrinfo structure.
67560
67561 2005-05-10  Simon Josefsson  <jas@extundo.com>
67562
67563         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
67564         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67565
67566 2005-05-10  Karl Berry  <karl@gnu.org>
67567
67568         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
67569         (from http://www.gnu.org/licenses).
67570         * doc/COPYING.LIB: also rename to COPYING.LESSER.
67571         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
67572         fdl.texi suffices.
67573
67574 2005-05-10  Karl Berry  <karl@gnu.org>
67575
67576         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
67577         (COPYING.DOC): remove.
67578
67579         * config/srclist-update: new FSF address.
67580
67581 2005-05-10  Derek Price  <derek@ximbiot.com>
67582
67583         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
67584         possible.
67585
67586 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67587             Bruno Haible  <bruno@clisp.org>
67588
67589         * modules/inet_ntop: New file.
67590         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67591         inet_ntop.
67592
67593 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67594             Bruno Haible  <bruno@clisp.org>
67595
67596         * m4/inet_ntop.m4: New file.
67597
67598 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67599             Bruno Haible  <bruno@clisp.org>
67600
67601         * lib/inet_ntop.h: New file.
67602         * lib/inet_ntop.c: New file, from glibc with modifications.
67603
67604 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
67605
67606         * modules/time_r (License): Change to LGPL.
67607         * modules/extensions (License): Change to LGPL.  Actually,
67608         the license is more permissive than that, but currently gnulib-tool
67609         doesn't know how to handle more-permissive licenses.
67610
67611         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
67612         Problem reported by Dave Love.
67613
67614 2005-05-08  Jim Meyering  <jim@meyering.net>
67615
67616         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
67617         blank.
67618
67619 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67620
67621         * modules/argmatch (Depends-on): Add stdbool.
67622         * modules/backupfile (Depends-on): Likewise.
67623         * modules/chdir-long (Depends-on): Likewise.
67624         * modules/closeout (Depends-on): Likewise.
67625         * modules/cycle-check (Depends-on): Likewise.
67626         * modules/dirname (Depends-on): Likewise.
67627         * modules/fnmatch (Depends-on): Likewise.
67628         * modules/fsusage (Depends-on): Likewise.
67629         * modules/fwriteerror (Depends-on): Likewise.
67630         * modules/getcwd (Depends-on): Likewise.
67631         * modules/getloadavg (Depends-on): Likewise.
67632         * modules/hard-locale (Depends-on): Likewise.
67633         * modules/makepath (Depends-on): Likewise.
67634         * modules/mountlist (Depends-on): Likewise.
67635         * modules/nanosleep (Depends-on): Likewise.
67636         * modules/posixtm (Depends-on): Likewise.
67637         * modules/quotearg (Depends-on): Likewise.
67638         * modules/readtokens (Depends-on): Likewise.
67639         * modules/readtokens0 (Depends-on): Likewise.
67640         * modules/readutmp (Depends-on): Likewise.
67641         * modules/save-cwd (Depends-on): Likewise.
67642         * modules/strftime (Depends-on): Likewise.
67643         * modules/userspec (Depends-on): Likewise.
67644         * modules/utimecmp (Depends-on): Likewise.
67645         * modules/xgetcwd (Depends-on): Likewise.
67646         * modules/xnanosleep (Depends-on): Likewise.
67647         * modules/xstrtod (Depends-on): Likewise.
67648         * modules/yesno (Depends-on): Likewise.
67649
67650 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67651
67652         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
67653         needless checks.
67654
67655 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67656
67657         Merge from coreutils.  Among other things,
67658         add bulletproofing for cases where stdin, stdout, or stderr are closed.
67659         * lib/fd-safer.c: New file.
67660         * lib/fcntl-safer.h, open-safer.c: Remove.
67661         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
67662         * lib/dup-safer.c: Include unistd-safer.h first.
67663         Don't include errno.h.
67664         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
67665         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
67666         * lib/file-type.c: Rely on file-type.h change.
67667         * lib/getloadavg.c: Include unistd-safer.h.
67668         (getloadavg): Use safer open.
67669         * lib/getusershell.c: Include "stdio-safer.h".
67670         (getusershell): Use safer fopen.
67671         * lib/long-options.c (long_options): Use NULL rather than 0.
67672         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
67673         'free'.
67674         * lib/modechange.c: Likewise.
67675         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
67676         (MODE_DONE): New constant.
67677         (struct mode_change): Remove 'next' member.
67678         (make_node_op_equals): New function; like the old one of the
67679         same name, except it allocates an array.
67680         (mode_compile, mode_create_from_ref): Use it.
67681         (mode_compile): Allocate result as an array, not a linked list.
67682         Parse octal string ourself, so that we catch mistakes like "+0".
67683         (mode_adjust): Arg is an array, not a linked list.
67684         * lib/modechange.c: Include stat-macros.h, xalloc.h.
67685         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
67686         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
67687         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
67688         Remove.  This is now stat-macros.h's job.
67689         (talloc): Remove.  All callers replaced by xalloc, so that
67690         our invokers don't have to worry about reporting memory failures.
67691         (make_node_op_equals): Remove.
67692         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67693         New constants.
67694         (struct mode_change): Moved here from modechange.h.
67695         (mode_append_entry): Remove.
67696         (mode_compile): Remove MASKED_OPS arg, since it encouraged
67697         apps to have incorrect behavior.  Use simpler algorithm for head
67698         and tail.  Don't futz with umask; that's now the job of mode_adjust.
67699         Detect more invalid usages rather than having somewhat-random behavior.
67700         Don't insert an "a=" action, as that leads to incorrect behavior.
67701         (mode_compile, mode_create_from_ref): Return NULL on error instead
67702         of an enum, since now there's only one way to have an error.  All
67703         callers changed.
67704         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
67705         at the correct time.  Simplify calculation of "+u" and its ilk.
67706         Don't mishandle "+X".
67707         (mode_free): Remove "register" and localize decls.
67708         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67709         (struct mode_change): Move to modechange.c; callers don't
67710         need to see this stuff.
67711         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
67712         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
67713         (mode_change, mode_adjust): Reflect the new signatures noted above.
67714         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
67715         that might redefine system include files.
67716         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
67717         (my_usleep): Use NULL rather than (void *) 0.
67718         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
67719         Use siginterrupt to specify that system calls should be interrupted.
67720         (rpl_nanosleep): Move initialization of suspended closer to call of
67721         my_usleep.
67722         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
67723         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
67724         (desirable_utmp_entry): New function.
67725         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
67726         using x2nrealloc, to simplify logic.
67727         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
67728         size calculation.  Do not assume utmp file is a regular file.
67729         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
67730         (READ_UTMP_CHECK_PIDS): New constant.
67731         * lib/save-cwd.c: Include unistd-safer.h.
67732         (save_cwd): Use fd_safer.
67733         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
67734         [!_LIBC] Include "stat-macros.h" instead.
67735         * lib/unistd-safer.h (fd_safer): New decl.
67736
67737 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67738
67739         * modules/getloadavg (Depends-on): Add unistd-safer.
67740         * modules/getusershell (Depends-on): Add stdio-safer.
67741         * modules/lstat (Depends-on): Remove xalloc.
67742         * modules/mkstemp (Depends-on): Add stat-macros.
67743         * modules/modechange (Depends-on): Remove xstrtol.
67744         Add stat-macros, xalloc.
67745         * modules/save-cwd (Depends-on): Add unistd-safer.
67746         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
67747         * modules/unistd-safer (Files): Add lib/fd-safer.c
67748         (Makefile.am): Remove lib_SOURCES.
67749
67750         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
67751         Remove fcntl-safer; unistd-safer supersedes it.
67752
67753 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67754
67755         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
67756         AC_HEADER_STAT.
67757         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
67758         (gl_PREREQ_CHOWN): Remove.
67759         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
67760         it.  Don't require AC_HEADER_STAT.
67761         (gl_PREREQ_LSTAT): Remove.
67762         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
67763         Don't require AC_HEADER_STAT.
67764         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
67765         (gl_PREREQ_RMDIR): Remove.
67766         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
67767         mention stat-macros.h or AC_HEADER_STAT, since we'll make
67768         the stat-macros module a prerequisite.
67769         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
67770         * m4/filemode.m4 (gl_FILEMODE): Likewise.
67771         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
67772         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
67773         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
67774         variable names.
67775         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
67776         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
67777         variable prefixes.
67778         * m4/fcntl-safer.m4: Remove.
67779         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
67780         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
67781         Invoke gl_PREREQ_FD_SAFER.
67782         (gl_PREREQ_FD_SAFER): New macro.
67783         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
67784         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
67785         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
67786         Remove duplicate call to AC_LIBOBJ(readutmp).
67787         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
67788
67789         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
67790         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
67791
67792 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67793
67794         * MODULES.html.sh (Misc): Add byteswap.
67795
67796 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67797
67798         * modules/getcwd (Depends-on): Add extensions.
67799         * modules/openat (Depends-on): Likewise.
67800
67801 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67802
67803         * modules/byteswap: New file.
67804
67805 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67806
67807         * m4/byteswap.m4: New file.
67808
67809 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67810
67811         * lib/byteswap_.h: New file.
67812
67813 2005-04-25  Karl Berry  <karl@gnu.org>
67814
67815         * m4/gettext.m4: Update from GNU gettext 0.14.4.
67816
67817 2005-04-25  Albert Chin  <china@thewrittenword.com>
67818
67819         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
67820         Toolkit C bug.
67821
67822 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
67823
67824         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
67825         (func_ln_if_changed): Remove forcibly for no error message
67826         in case file does not exist.
67827
67828 2005-04-19  Simon Josefsson  <jas@extundo.com>
67829
67830         * gnulib-tool (Options): Make --symlink mean --symbolic.
67831
67832 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
67833
67834         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
67835
67836 2005-04-16  Simon Josefsson  <jas@extundo.com>
67837
67838         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
67839
67840 2005-04-15  Simon Josefsson  <jas@extundo.com>
67841
67842         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
67843
67844 2005-04-15  Simon Josefsson  <jas@extundo.com>
67845
67846         * gnulib-tool: Rename --symlink to --symbolic.
67847
67848 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
67849
67850         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
67851         symbolic links to files instead of copying/moving.  Add --aux-dir,
67852         specifying directory relative --dir where auxiliary build tools
67853         are placed.
67854
67855 2005-04-14  Bruno Haible  <bruno@clisp.org>
67856
67857         * modules/allocsa (License): Change to LGPL.
67858         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67859
67860 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67861
67862         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
67863         that "UTC +1 second" continues to work.  Problem reported
67864         by Dmitry V. Levin.
67865         (relunit_snumber): New rule.
67866         (relunit): Use it.
67867
67868 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67869
67870         * lib/getdate.y (universal_time_zone_table): New constant.
67871         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
67872         universal_time_zone_table.
67873         (lookup_zone): Prefer universal_time_zone_table to
67874         local_time_zone_table, so that "GMT" time stamps are allowed in
67875         London during the summer.  Problem reported by Ian Abbott.
67876
67877 2005-04-12  Jim Meyering  <jim@meyering.net>
67878
67879         * lib/human.c (humblock): Set *options even when returning due to
67880         xstrtoumax conversion failure.  Thanks to a used-uninitialized
67881         warning from gcc-4.
67882
67883 2005-04-09  Jim Meyering  <jim@meyering.net>
67884
67885         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
67886         -Wuninitialized: initialize tm0.tm_year.
67887
67888 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67889
67890         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
67891         count, since there's no maximum.  All uses changed.
67892         Add member dsts_seen.
67893         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
67894         not being INT_MAX.
67895         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
67896         Use pc_rels_seen to decide whther a date is absolute.
67897
67898         * lib/getdate.y (number): Don't overwrite year.
67899         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
67900         check.
67901
67902 2005-04-02  Simon Josefsson  <jas@extundo.com>
67903
67904         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
67905         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
67906
67907 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
67908
67909         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
67910         where no absolute path name can be longer than PATH_MAX.
67911
67912 2005-03-27  Jim Meyering  <jim@meyering.net>
67913
67914         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
67915
67916 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
67917
67918         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
67919         "one's complement" -> "ones' complement" in comment, as per Knuth.
67920         "value of type" -> "type or expression" in comment.
67921         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
67922
67923 2005-03-26  Jim Meyering  <jim@meyering.net>
67924
67925         Comment nits.
67926         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
67927         Correct typos: s/or/of/.
67928
67929 2005-03-26  Jim Meyering  <jim@meyering.net>
67930
67931         * modules/check-include-files: Move to ../ and rename to...
67932         * check-module: ...this.
67933
67934 2005-03-25  Jim Meyering  <jim@meyering.net>
67935
67936         * modules/xvasprintf (Files): Add xalloc.h.
67937
67938 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67939
67940         * modules/gettext (Files): config/config.rpath ->
67941         build-aux/config.rpath
67942         * modules/iconv (Files): Likewise.
67943         Problem reported by Oskar Liljeblad.
67944
67945 2005-03-23  Jim Meyering  <jim@meyering.net>
67946
67947         * modules/check-include-files: New script to check for
67948         missing dependencies, multiple includes, etc.
67949
67950         * modules/c-strtold (Depends-on): Add xalloc.
67951         * modules/c-strtod (Depends-on): Add xalloc.
67952         * modules/hash (Depends-on): Add xalloc.
67953         (Files): Remove lib/xalloc.h.
67954
67955         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
67956         * modules/userspec (Files): Add lib/inttostr.h.
67957
67958 2005-03-23  Jim Meyering  <jim@meyering.net>
67959
67960         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
67961
67962 2005-03-22  Jim Meyering  <jim@meyering.net>
67963
67964         * modules/stat-macros: New module.
67965         * modules/canonicalize, modules/euidaccess, modules/file-type,
67966         * modules/filemode, modules/lchown, modules/makepath,
67967         * modules/rmdir, modules/stat: Depend on new stat-macros module
67968         rather than listing lib/stat-macros.h manually.
67969         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
67970
67971 2005-03-22  Jim Meyering  <jim@meyering.net>
67972
67973         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
67974
67975 2005-03-22  Bruno Haible  <bruno@clisp.org>
67976
67977         * config/srclist.txt: Replace target directory 'config' with
67978         'build-aux'.
67979         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
67980         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
67981         ../build-aux/.
67982
67983 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
67984
67985         * modules/chdir-long (Depends-on): Add mempcpy.
67986
67987         * modules/acl, modules/backupfile, modules/c-strtod,
67988         modules/c-strtold, modules/canon-host, modules/canonicalize,
67989         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
67990         modules/exclude, modules/exitfail, modules/file-type,
67991         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
67992         modules/getdate, modules/getline, modules/getpagesize,
67993         modules/getpass, modules/getugroups, modules/group-member,
67994         modules/hard-locale, modules/hash, modules/human, modules/idcache,
67995         modules/inttostr, modules/long-options, modules/makepath,
67996         modules/md5, modules/memcasecmp, modules/memcoll,
67997         modules/modechange, modules/mountlist, modules/path-concat,
67998         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
67999         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
68000         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
68001         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
68002         modules/strftime, modules/strndup, modules/strverscmp,
68003         modules/timespec, modules/unlocked-io, modules/userspec,
68004         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
68005         modules/yesno:
68006         Remove lib_SOURCES line from Makefile.am section, as this is now
68007         done automatically by the corresponding Autoconf macro.
68008
68009 2005-03-21  Jim Meyering  <jim@meyering.net>
68010
68011         Changes imported from coreutils.
68012
68013         * lib/cycle-check.c: Don't include xalloc.h.
68014
68015         * lib/path-concat.c: Don't include assert.h.
68016         (path_concat): Remove assertion that would have triggered
68017         for ABASE starting with more than one slash.
68018         Reported by Andreas Schwab.
68019
68020         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
68021         properly when ABASE is an absolute file name.
68022         Correct the description of this function.
68023         Include <assert.h>.
68024         Add an assertion and a test driver.
68025         This fixes a bug introduced on 2004-07-02.
68026         Andreas Schwab reported the resulting failure of cp --parents:
68027         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
68028
68029 2005-03-21  Jim Meyering  <jim@meyering.net>
68030
68031         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
68032         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
68033
68034 2005-03-21  Jim Meyering  <jim@meyering.net>
68035         and  Paul Eggert  <eggert@cs.ucla.edu>
68036
68037         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
68038         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
68039         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
68040         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
68041         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
68042         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
68043         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
68044         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
68045         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
68046         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
68047         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
68048         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
68049         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
68050         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
68051         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
68052         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
68053         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
68054         for these modules.
68055
68056 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
68057
68058         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
68059         (which shouldn't happen), generate nothing instead of returning 0
68060         immediately, so that nstrftime (NULL, ...) doesn't return 0.
68061
68062 2005-03-16  Bruno Haible  <bruno@clisp.org>
68063
68064         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
68065         HAVE_LONGLONG_64BIT.
68066
68067 2005-03-16  Bruno Haible  <bruno@clisp.org>
68068
68069         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
68070         HAVE_LONGLONG_64BIT.
68071
68072 2005-03-16  Bruno Haible  <bruno@clisp.org>
68073
68074         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
68075         HAVE_LONGLONG_64BIT.
68076
68077 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68078
68079         * lib/strftime.c (my_strftime): Prepend space to format so that we can
68080         reliably distinguish strftime failure from empty output on POSIX
68081         hosts.
68082
68083 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68084
68085         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
68086         (iconv_string): Don't guess a size-zero buffer, as that might cause
68087         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
68088         result would be 'too large', where 'too large' is (heuristically)
68089         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
68090         overflow concerns.  This will prevent some unwanted malloc failures
68091         when the inputs are very large.
68092
68093 2005-03-15  Karl Berry  <karl@gnu.org>
68094
68095         * config/srclist.txt (config.rpath): from gettext.
68096         * config/config.rpath: update.
68097
68098 2005-03-15  Bruno Haible  <bruno@clisp.org>
68099
68100         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
68101         to 'negate'.
68102
68103         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
68104         variable.
68105
68106         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
68107         results.
68108
68109 2005-03-14  Simon Josefsson  <jas@extundo.com>
68110
68111         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
68112         <fx@gnu.org>.
68113
68114 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
68115
68116         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
68117         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
68118         intprops.h.
68119         * lib/strtol.c: Likewise.
68120
68121 2005-03-14  Jim Meyering  <jim@meyering.net>
68122
68123         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
68124         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
68125         to be nonzero so that we (and caller) can detect the difference
68126         between a valid zero-length expansion and an error return, even
68127         when the underlying strftime fails before writing anything into
68128         that location.
68129
68130 2005-03-14  Bruno Haible  <bruno@clisp.org>
68131
68132         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
68133         Update from GNU gettext 0.14.3.
68134
68135 2005-03-10  Jim Meyering  <jim@meyering.net>
68136
68137         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
68138
68139 2005-03-10  Jim Meyering  <jim@meyering.net>
68140
68141         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
68142         so that this module works on systems without fchdir.
68143
68144 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
68145
68146         Factor int-properties macros into a single file, except for
68147         glibc-related files.
68148         * lib/intprops.h: New file.
68149         * lib/getloadavg.c: Include it instead of limits.h.
68150         (INT_STRLEN_BOUND): Remove.
68151         * lib/human.c: Include intprops.h.
68152         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
68153         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
68154         302/1000.
68155         * lib/inttostr.h: Include intprops.h instead of limits.h.
68156         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
68157         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
68158         for consistency with intprops.h.
68159         (time_t_is_integer, twos_complement_arithmetic): Use them.
68160         * lib/sig2str.h: Include <signal.h>, intprops.h.
68161         (INT_STRLEN_BOUND): Remove.
68162         * lib/strftime.c (TYPE_SIGNED): Remove.
68163         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
68164         * lib/strtol.c: Adjust comments to match intprops.h.
68165         * lib/userspec.c: Include intprops.h.
68166         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
68167         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
68168         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
68169         instead of rolling our own expressions.
68170         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
68171
68172         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
68173         instead of int.
68174         (my_strftime): Do not mishandle years close to INT_MAX, by doing
68175         the right thing even if adding 1900 would overflow.  Similarly
68176         for tm_mon + 1 and tm_yday + 1.
68177         Make %Y always equivalent to %C%y, and similarly for %G and %g.
68178         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
68179         (DO_SIGNED_NUMBER): New macro.
68180         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
68181
68182 2005-03-07  Bruno Haible  <bruno@clisp.org>
68183
68184         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
68185
68186 2005-03-07  Bruno Haible  <bruno@clisp.org>
68187
68188         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
68189
68190 2005-03-04  Derek R. Price  <derek@ximbiot.com>
68191
68192         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
68193         (func_import): Only replace files via --import when they have actually
68194         changed.
68195
68196 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68197
68198         * m4/mmap-anon.m4: New file.
68199         * m4/pagealign_alloc.m4: New file.
68200
68201 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68202             Bruno Haible  <bruno@clisp.org>
68203
68204         * modules/pagealign_alloc: New file.
68205         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
68206
68207 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68208             Bruno Haible  <bruno@clisp.org>
68209
68210         * lib/pagealign_alloc.h: New file.
68211         * lib/pagealign_alloc.c: New file.
68212
68213 2005-03-03  Bruno Haible  <bruno@clisp.org>
68214
68215         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
68216         Use an all-permissive copyright notice, recommended by RMS.
68217
68218 2005-03-02  Bruno Haible  <bruno@clisp.org>
68219
68220         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
68221         of AIX, the replacement has to be done only after <string.h> is
68222         included, therefore not in config.h. stpncpy.h does the replacement,
68223         and stpncpy.c uses it.
68224
68225 2005-03-02  Bruno Haible  <bruno@clisp.org>
68226
68227         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
68228         stpncpy.c uses it.
68229
68230 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68231
68232         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
68233         The workaround isn't strictly needed for POSIX conformance, and
68234         it's too much of a pain to configure and maintain.  We'll ask
68235         people to fix their kernels instead.
68236         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
68237         (NANOSLEEP_BUG_WORKAROUND): Remove.
68238         (xnanosleep): Remove the workaround.
68239
68240 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68241
68242         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
68243         Reported by Derek Price.
68244         (Include): Add "timespec.h".
68245
68246         * modules/xnanosleep (Depends-on): Remove gethrxtime.
68247
68248 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68249
68250         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
68251         to detect nanosleep bug.
68252
68253 2005-03-01  Bruno Haible  <bruno@clisp.org>
68254
68255         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
68256
68257 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68258
68259         * modules/gethrxtime: New file.
68260         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
68261         (Depends-on): Add gethrxtime.
68262         (configure.ac): Add gl_XNANOSLEEP.
68263         (Makefile.am): Remove lib_SOURCES line.
68264
68265 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68266
68267         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
68268         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
68269
68270 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68271
68272         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
68273         * lib/timespec.h (gettime): Return void, since it always
68274         succeeds now.  All uses changed.
68275         * lib/gettime.c (gettime): Likewise.
68276         [HAVE_NANOTIME]: Prefer nanotime.
68277         Assume gettimeofday succeeds, as POSIX requires.
68278         Assime time () succeeds, since other code already does.
68279         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
68280         (timespec_subtract): Remove.
68281         (NANOSLEEP_BUG_WORKAROUND): New constant.
68282         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
68283         things considerably.  Use it only on GNU/Linux hosts, since the
68284         workaround shouldn't be needed elsewhere.
68285
68286 2005-02-24  Bruno Haible  <bruno@clisp.org>
68287
68288         * modules/gettext (Files): Add m4/glibc2.m4.
68289
68290 2005-02-24  Bruno Haible  <bruno@clisp.org>
68291
68292         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
68293         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
68294         * m4/progtest.m4:
68295         Update from GNU gettext 0.14.2.
68296         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
68297
68298 2005-02-24  Bruno Haible  <bruno@clisp.org>
68299
68300         * lib/localcharset.c: Update from GNU gettext 0.14.2.
68301         * lib/config.charset: Update from GNU gettext 0.14.2.
68302
68303 2005-02-24  Bruno Haible  <bruno@clisp.org>
68304
68305         * lib/gettext.h: Update from GNU gettext 0.14.2.
68306
68307 2005-02-23  Simon Josefsson  <jas@extundo.com>
68308
68309         * m4/iconvme.m4: New file.
68310
68311 2005-02-23  Jim Meyering  <jim@meyering.net>
68312
68313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
68314         change.
68315         Thanks to Bruno Haible for catching it.
68316
68317 2005-02-22  Simon Josefsson  <jas@extundo.com>
68318
68319         * modules/iconvme: New file.
68320
68321         * MODULES.html.sh: Add iconvme.
68322
68323 2005-02-22  Simon Josefsson  <jas@extundo.com>
68324
68325         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
68326
68327 2005-02-22  Simon Josefsson  <jas@extundo.com>
68328
68329         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
68330
68331 2005-02-22  Jim Meyering  <jim@meyering.net>
68332
68333         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
68334         s/ifndef/ifdef/.
68335
68336 2005-02-20  Neil Conway  <neilc@samurai.com>
68337
68338         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
68339         returned by OSX/Darwin if the specified buffer is not large
68340         enough for the hostname.
68341
68342 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68343
68344         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
68345         pass it to _help, otherwise the latter coredumps trying to
68346         dereference state.root_argp.
68347
68348 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68349
68350         * modules/chdir-long (Depends-on): Add memrchr.
68351         * modules/memrchr (Files): Add lib/memrchr.h.
68352         (Include): "memrchr.h".
68353
68354 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68355
68356         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
68357
68358 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68359
68360         * lib/memrchr.h: New file.
68361         * lib/chdir-long.c: Include it.
68362         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
68363         Don't bother including stddef.h.
68364
68365 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68366
68367         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
68368         inclusion.
68369         Include <sys/types.h>, for dev_t.
68370         (ME_DUMMY, ME_REMOTE): Move from here....
68371         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
68372         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
68373         Dmitry V. Levin.
68374         Include mountlist.h first, to test the interface.
68375
68376 2005-01-29  Bruno Haible  <bruno@clisp.org>
68377
68378         * lib/progname.c (program_name): Initialize.
68379         Needed when linking statically on MacOS X.
68380
68381 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68382
68383         Sync from coreutils.
68384         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
68385         (Depends-on): Add c-strtod.
68386         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
68387
68388 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68389
68390         Sync from coreutils.
68391         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
68392
68393         Remove files that are specific to coreutils.
68394         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
68395
68396 2005-01-28  Bruno Haible  <bruno@clisp.org>
68397
68398         * modules/javacomp: New file.
68399         * MODULES.html.sh (Java): Add javacomp.
68400
68401 2005-01-28  Bruno Haible  <bruno@clisp.org>
68402
68403         * m4/javacomp.m4: New file, from GNU gettext.
68404
68405 2005-01-28  Bruno Haible  <bruno@clisp.org>
68406
68407         * lib/javacomp.sh.in: New file, from GNU gettext.
68408         * lib/javacomp.h: New file, from GNU gettext.
68409         * lib/javacomp.c: New file, from GNU gettext.
68410
68411 2005-01-26  Simon Josefsson  <jas@extundo.com>
68412
68413         * lib/gai_strerror.c: Use GPL in header.
68414
68415 2005-01-26  Bruno Haible  <bruno@clisp.org>
68416
68417         * modules/javaexec: New file.
68418         * MODULES.html.sh (Java): Add javaexec.
68419
68420 2005-01-26  Bruno Haible  <bruno@clisp.org>
68421
68422         * m4/javaexec.m4: New file, from GNU gettext.
68423
68424 2005-01-26  Bruno Haible  <bruno@clisp.org>
68425
68426         * lib/javaexec.sh.in: New file, from GNU gettext.
68427         * lib/javaexec.h: New file, from GNU gettext.
68428         * lib/javaexec.c: New file, from GNU gettext.
68429
68430 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68431
68432         * modules/lchown (Depends-on): Remove lchown.h
68433
68434 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68435
68436         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
68437         must be defined if the header file was not found, in order
68438         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
68439
68440 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68441
68442         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
68443         initializers for struct pentry_state.
68444         (__argp_error): Check return value of __asprintf
68445         (__argp_failure): Translate error message
68446
68447         * lib/argp-parse.c: Removed braces around the expansion of N_()
68448
68449 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68450
68451         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
68452         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
68453         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
68454         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
68455         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
68456         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
68457         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
68458         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
68459         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
68460         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
68461         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
68462         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
68463         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
68464         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
68465         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
68466         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
68467         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
68468         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
68469         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
68470         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
68471         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
68472         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
68473         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
68474         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
68475         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
68476         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
68477         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
68478         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
68479         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
68480         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
68481         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
68482         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
68483         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
68484         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
68485         xstrtol.m4, xstrtoumax.m4, yesno.m4:
68486         Use an all-permissive copyright notice, recommended by RMS.
68487
68488 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
68489
68490         * modules/chdir-long (Depends-on): Remove mempcpy.
68491
68492 2005-01-21  Jim Meyering  <jim@meyering.net>
68493
68494         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
68495         same value as for Solaris 9.
68496
68497         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
68498         component length.  This included changing the parameter to be
68499         of type `char *' rather than `char const *'.
68500         * lib/chdir-long.h (chdir_long): Update prototype.
68501
68502         * lib/openat.c (fdopendir, fstatat): New functions.
68503         * lib/openat.h: Include headers required for use of DIR and struct
68504         stat.
68505         [AT_SYMLINK_NOFOLLOW]: Define.
68506         (fdopendir, fstatat): Add prototypes.
68507
68508 2005-01-21  Bruno Haible  <bruno@clisp.org>
68509
68510         * modules/classpath: New file.
68511         * MODULES.html.sh (Java): Add classpath.
68512
68513 2005-01-21  Bruno Haible  <bruno@clisp.org>
68514
68515         * lib/classpath.h: New file, from GNU gettext.
68516         * lib/classpath.c: New file, from GNU gettext.
68517
68518 2005-01-20  Simon Josefsson  <jas@extundo.com>
68519
68520         * modules/version-etc-fsf: New file.
68521
68522 2005-01-20  Simon Josefsson  <jas@extundo.com>
68523
68524         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
68525         * lib/version-etc.c: Remove version_etc_copyright.
68526         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
68527         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
68528
68529 2005-01-20  Simon Josefsson  <jas@extundo.com>
68530
68531         * lib/base64.h (isbase64): Add.
68532
68533         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
68534         using a unsigned prototype, don't inline.
68535         (base64_decode): Use it.
68536
68537 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68538
68539         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
68540         it.
68541
68542 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68543
68544         * lib/save-cwd.c (save_cwd): Remove code to support the case
68545         where fchdir is missing or flaky.
68546
68547 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68548
68549         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
68550
68551 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68552
68553         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
68554         AC_LIBSOURCES now does this.
68555         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
68556         with new ullong_max module.
68557
68558 2005-01-19  Bruno Haible  <bruno@clisp.org>
68559
68560         * modules/sh-quote: New file.
68561         * MODULES.html.sh (Executing programs): Add sh-quote.
68562
68563 2005-01-19  Bruno Haible  <bruno@clisp.org>
68564
68565         * lib/sh-quote.h: New file, from GNU gettext.
68566         * lib/sh-quote.c: New file, from GNU gettext.
68567
68568 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68569
68570         Merge from coreutils.
68571         * m4/ullong_max.m4: New file.
68572         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
68573         (gl_MACROS): Assume localeconv exists.
68574
68575 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68576
68577         Merge changes from coreutils, as described below in several
68578         changelogs dated today.
68579
68580         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
68581         (O_DIRECTORY): Remove; not needed here, since "." must be
68582         a directory.  All uses removed.
68583         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
68584         universal on Suns, and we also need to test for IRIX.
68585         Revamp code to use 'if' rather than '#if'.
68586         Avoid unnecessary comparison of cwd->desc to 0.
68587
68588         * lib/utimens.c (futimens): Robustify the previous patch, by checking
68589         for known valid error numbers rather than observed invalid ones.
68590
68591 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68592
68593         * modules/ullong_max: New file.
68594
68595         * modules/chdir-long, modules/openat: New files.
68596         * modules/save-cwd (Depends-on): Depend on chdir-long.
68597         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
68598
68599 2005-01-18  Jim Meyering  <jim@meyering.net>
68600
68601         Merge from coreutils.
68602         * m4/chdir-long.m4, m4/openat.m4: New files.
68603         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
68604         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
68605         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
68606         is sane and DOES follow symlinks.  Besides, testing 20 different
68607         systems found no broken chown implementations.
68608         Prompted by a change in rsync's copy of this macro.
68609         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
68610
68611         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
68612
68613         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
68614         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
68615         NULL-means-set-to-current-time semantics.
68616         Remove temporary file immediately, rather than waiting
68617         for configure's at-exit trap code to do it.
68618
68619 2005-01-18  Jim Meyering  <jim@meyering.net>
68620
68621         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68622
68623         * lib/utimens.c (futimens): Account for the fact that futimes
68624         can also fail with errno == ENOSYS or errno == ENOENT.
68625         Patch from Dmitry V. Levin.
68626
68627         Change the name of the robust chdir function from chdir to chdir_long.
68628         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
68629         (restore_cwd): Use chdir_long, not chdir.
68630         * lib/chdir-long.c: Renamed from chdir.c.
68631         * lib/chdir-long.h: Renamed from chdir.h.
68632         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
68633         Hurd.
68634
68635 2005-01-18  Bruno Haible  <bruno@clisp.org>
68636
68637         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
68638         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
68639         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
68640         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
68641         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
68642         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
68643         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
68644         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
68645         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
68646         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
68647         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
68648         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
68649         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
68650         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
68651         Use an all-permissive copyright notice, recommended by RMS.
68652
68653 2005-01-18  Bob Proulx  <bob@proulx.com>
68654
68655         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
68656         simplify offsetof() macro construct to avoid compile failure with
68657         native HP-UX 11.0 ANSI C compiler.
68658
68659 2005-01-17  Bruno Haible  <bruno@clisp.org>
68660
68661         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
68662         redundant because stpncpy.m4 takes care of it.
68663
68664 2005-01-17  Bruno Haible  <bruno@clisp.org>
68665
68666         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
68667
68668 2005-01-17  Bruno Haible  <bruno@clisp.org>
68669
68670         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
68671         used.
68672
68673 2005-01-17  Bruno Haible  <bruno@clisp.org>
68674
68675         * lib/fwriteerror.h (fwriteerror): Change specification to include
68676         fclose.
68677         * lib/fwriteerror.c: Include <stdbool.h>.
68678         (fwriteerror): At the end, close the file stream. Record whether
68679         stdout was already closed.
68680
68681 2005-01-17  Bruno Haible  <bruno@clisp.org>
68682
68683         * lib/execute.c (environ): Declare if needed.
68684         * lib/pipe.c (environ): Likewise.
68685         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
68686
68687 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68688
68689         * modules/argp: Depend on vsnprintf
68690
68691 2005-01-10  Jim Meyering  <jim@meyering.net>
68692
68693         * modules/closeout (Depends-on): Add atexit.
68694
68695 2005-01-06  Bruno Haible  <bruno@clisp.org>
68696
68697         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
68698
68699 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68700
68701         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
68702         definitions to be after all include files, to avoid collisions.
68703         Problem reported by Bob Proulx.
68704
68705 2005-01-04  Jim Meyering  <jim@meyering.net>
68706
68707         Changes imported from coreutils.
68708         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
68709         as the mkstemp template, use a temporary directory and an
68710         8.3-friendly template to avoid trouble on systems like DJGPP.
68711         Reported by Juan M. Guerrero via Stepan Kasal.
68712         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
68713         close. Remove the temporary directory right away, rather than waiting
68714         for configure's at-exit trap code to do it.
68715         Suggestion from Stepan Kasal.
68716
68717 2005-01-01  Simon Josefsson  <jas@extundo.com>
68718
68719         * gnulib-tool: Print #include directives when --import'ing.
68720
68721 2004-12-28  Simon Josefsson  <jas@extundo.com>
68722
68723         * tests/test-base64.c: Include required header files.  Remove
68724         unused variables.
68725
68726 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68727
68728         * modules/error (Depends-on): Remove gettext.
68729
68730 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68731
68732         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
68733         not needed.  This removes a dependency on the gettext module.
68734         [defined _LIBC]: Do not include <libintl.h>; not needed.
68735
68736 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68737
68738         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
68739         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
68740
68741 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68742
68743         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
68744         HAVE_DECL_STRTOLD.
68745
68746 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68747
68748         * modules/getdate (Depends-on): Remove alloca-opt.
68749
68750 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68751
68752         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
68753
68754 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68755
68756         * lib/argp-parse.c: Include <stddef.h>.
68757         (alignof, alignto): New macros.
68758         (parser_init): Don't assume that void * is aligned sufficiently
68759         for struct option.
68760
68761         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
68762         need to extend the stack.
68763         (YYINITDEPTH): New macro, so that the initial stack isn't overly
68764         large.
68765
68766 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68767
68768         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
68769
68770 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68771
68772         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
68773         (2004-10-24) change.  Apparently this was a false alarm.
68774
68775         * modules/getdate: Depend on alloca-opt, not alloca.
68776
68777 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68778
68779         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
68780         Remove now-obsolete comment about AIX.
68781         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
68782         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
68783         (YYMAXDEPTH): New macro.
68784
68785 2004-12-18  Simon Josefsson  <jas@extundo.com>
68786
68787         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
68788
68789 2004-12-18  Bruno Haible  <bruno@clisp.org>
68790
68791         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
68792
68793 2004-12-18  Bruno Haible  <bruno@clisp.org>
68794
68795         * lib/fatal-signal.c (fatal_signals): Make non-const.
68796         (init_fatal_signals): New function.
68797         (uninstall_handlers, install_handlers): Ignore signals that were set to
68798         SIG_IGN.
68799         (at_fatal_signal): Call init_fatal_signals.
68800         (init_fatal_signal_set): Likewise. Ignore signals that were set to
68801         SIG_IGN.
68802         Reported by Paul Eggert.
68803
68804 2004-12-18  Bruno Haible  <bruno@clisp.org>
68805
68806         * doc/alloca.texi: New file.
68807         * doc/alloca-opt.texi: New file.
68808
68809 2004-12-17  Jim Meyering  <jim@meyering.net>
68810
68811         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
68812         Otherwise, install-sh could exit with improper exit status when
68813         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
68814
68815 2004-12-16  Simon Josefsson  <jas@extundo.com>
68816
68817         * tests/test-base64.c: Add license.
68818
68819 2004-12-15  Stepan Kasal  <address@hidden>
68820
68821         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
68822
68823 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
68824
68825         * modules/getcwd (Files): Add m4/d-ino.m4.
68826         Suggested by Mark D. Baushke.
68827
68828 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68829
68830         * lib/getdate.y (textint): New member "negative".
68831         (time_zone_hhmm): New function.
68832         Expect 14 shift-reduce conflicts, not 13.
68833         (o_colon_minutes): New rule.
68834         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
68835         (yylex): Set the "negative" member of signed numbers.
68836
68837 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68838
68839         * doc/getdate.texi (Time of day items, Time zone items):
68840         Describe new formats +00:00, UTC+00:00.
68841
68842 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68843
68844         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
68845         spurious "-l"s.  Problem reported by Stepan Kasal.
68846
68847 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
68848
68849         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
68850         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
68851
68852 2004-12-04  Simon Josefsson  <jas@extundo.com>
68853
68854         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
68855         Vandoorselaere <yoann@prelude-ids.org>.
68856
68857 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68858
68859         Changes imported from coreutils.
68860         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
68861         exist.
68862         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
68863
68864 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68865
68866         Changes imported from coreutils.
68867         * lib/hard-locale.c: Assume <locale.h> exists.
68868         Include "strdup.h".
68869         (GLIBC_VERSION): New macro.
68870         (hard_locale): Assume setlocale exists.
68871         Rewrite to avoid #ifdef.
68872         Use strdup rather than malloc + strcpy.
68873         * lib/human.c: Assume <locale.h> exists.
68874         (human_readable): Assume localeconv exists.
68875
68876 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68877
68878         * modules/hard-locale (Depends-on): Add strdup.
68879
68880 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68881
68882         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
68883         convert T2, not T.  (Imported from libc.)
68884
68885 2004-11-30  Simon Josefsson  <jas@extundo.com>
68886
68887         * modules/restrict (License): Change to LGPL.
68888
68889 2004-11-30  Simon Josefsson  <jas@extundo.com>
68890
68891         * m4/restrict.m4: Add copyright and copying conditions.
68892
68893 2004-11-30  Simon Josefsson  <jas@extundo.com>
68894
68895         * m4/base64.m4: New file.
68896
68897 2004-11-30  Simon Josefsson  <jas@extundo.com>
68898
68899         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
68900         base64.
68901
68902         * tests/test-base64.c: New file.
68903
68904         * modules/base64: New file.
68905
68906 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68907
68908         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
68909         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
68910
68911         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
68912
68913 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68914
68915         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
68916         (__getcwd.c): Don't restore errno; glibc doesn't.
68917         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
68918         first, falling back to our code only if its results look suspicious.
68919         Ensure that the resulting buffer is only as large as necessary.
68920
68921         * lib/readutmp.c: Include readutmp.h first.
68922         Include <errno.h>, since readutmp.h no longer does that.
68923         * lib/readutmp.h: Don't include <errno.h>,
68924         <sys/param.h>, <time.h>; not needed to establish interface.
68925         (errno): Remove decl.
68926         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
68927         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
68928         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
68929
68930 2004-11-28  Simon Josefsson  <jas@extundo.com>
68931
68932         * lib/base64.h, base64.c: New file.
68933
68934 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68935
68936         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
68937
68938 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68939
68940         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
68941         (Depends-on): Remove pathmax, same.  Add mempcpy.
68942         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
68943         (Makefile.am): Append getcwd.h to lib_SOURCES.
68944         (Include): Add getcwd.h.
68945         (Maintainer): Change from Jim Meyering to "all, glibc",
68946         since getdate now uses intended-for-glibc code.
68947         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
68948         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
68949
68950 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68951
68952         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
68953         HP's ANSI C compiler.
68954         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
68955         Declaring int functions causes warnings on some modern systems and
68956         shouldn't be needed to compile on ancient ones.
68957         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
68958         defined.
68959
68960         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
68961         with the following changes.
68962         (__set_errno): Parenthesize properly.
68963         Include <stdbool.h>.
68964         (MIN, MAX, MATCHING_INO): New macros.
68965         (__getcwd): Define with prototype, not K&R form.
68966         Use heuristics to allocate default buffer on stack if possible.
68967         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
68968         behavior, and to avoid the PATH_MAX limit when computing
68969         ../../../../...
68970         Use MATCHING_INO to compare inode number to file.
68971         Check for arithmetic overflow in size calculations.
68972         Fix bug in reallocation of dot array that caused getcwd to fail
68973         on directories nested deeper than 75.
68974         Be more careful about saving errno on error.
68975         Do not use realloc; use only free+malloc, as this is a bit
68976         more flexible and avoids a needless copy operation.
68977         Do not inspect st_dev and st_ino for symbolic links; POSIX
68978         doesn't specify the latter.
68979         Check for closedir errors.
68980         Avoid needless casts.
68981         Use "#ifdef weak_alias" around weak_alias, to be like other
68982         glibc code.
68983         The following changes to getcwd.c have effect only when used in
68984         gnulib; they have no effect inside glibc proper.
68985         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
68986         as alloca isn't used.
68987         (alloca, __alloca): Likewise.
68988         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
68989         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
68990         unconditionally, as gnulib assumes C89 or better.
68991         Do not include <sys/param.h>.
68992         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
68993         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
68994         better.
68995         (NULL) [!defined NULL]: Remove; we assume C89 or better.
68996         Include <dirent.h> in a way that is compatible with modern Autoconf.
68997         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
68998         New macros, if not already defined.
68999         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
69000         Use "_LIBC", not "defined _LIBC", for consistency.
69001         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
69002         a mempcpy module.
69003         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
69004         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
69005         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
69006         credit only to Jim Meyering and adjust the copyright dates.
69007         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
69008         <stdlib.h>, <unistd.h>, "pathmax.h".
69009         Instead, include "xgetcwd.h" (first) and "getcwd.h".
69010         (INITIAL_BUFFER_SIZE): Remove.
69011         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
69012
69013 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69014
69015         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
69016         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
69017         Use the _ONCE methods, for efficiency.
69018         Check for fcntl.h.  In test program, include <errno.h>
69019         and <fcntl.h> if available.  Remove old K&R cruft from
69020         test program.  Check for common errors in GNU/Linux,
69021         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
69022         don't do AC_LIBOBJ, as that's getcwd.m4's job.
69023         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
69024         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
69025         name accordingly.
69026         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
69027         accommodate new getcwd.c.
69028         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
69029         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
69030         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
69031         that's all we need now.
69032
69033 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69034
69035         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
69036         argp-parse.c depends on getopt internals, that means we should
69037         always use our getopt, to be on the safe side.
69038         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
69039         order not to spoil the result of an eventual previous invocation
69040         of gl_GETOPT_SUBSTITUTE.
69041
69042 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69043
69044         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
69045         redefinition warnings. To avoid them, include the defines
69046         in `#if !defined __need_getopt ... #endif'. The only place
69047         where __getopt_argv_const is used is in definitions
69048         of getopt_long and getopt_long_only below, which are as well
69049         protected by `#ifndef __need_getopt'.
69050         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
69051         __need_getopt after including <stdio.h> and <unistd.h> These
69052         headers might have defined it.
69053
69054 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69055
69056         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
69057
69058 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69059
69060         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
69061         (futimens): New function, which uses futimes if available.
69062         (futimens, utimens): Support timespec==NULL, with same semantics
69063         as utime and utimens.
69064         * lib/utimens.h (futimens): New decl.
69065
69066 2004-11-23  Jim Meyering  <jim@meyering.net>
69067
69068         * lib/getopt_.h: Remove trailing blanks.
69069
69070 2004-11-23  Jim Meyering  <jim@meyering.net>
69071
69072         * lib/__fpending.c: Add comment.
69073
69074 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
69075
69076         * modules/canonicalize (Depends-on): Add xreadlink.
69077         Problem reported by James Youngman.
69078
69079 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69080
69081         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
69082         New macros.
69083         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
69084         optopt): Use them instead of invoking ## directly; otherwise, the
69085         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
69086
69087 2004-11-19  Bruno Haible  <bruno@clisp.org>
69088
69089         * lib/strtok_r.c: Move comments from here...
69090         * lib/strtok_r.h: ... to here.
69091
69092 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69093
69094         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
69095         implementations that mishandle size_t overflow.
69096
69097 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69098
69099         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
69100         might fail.  Problem reported by Yoann Vandoorselaere.
69101         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
69102         implementations that mishandle size_t overflow.
69103
69104 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69105
69106         * modules/canon-host (Depends-on): Add strdup.
69107
69108 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69109
69110         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
69111
69112 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69113
69114         * lib/canon-host.c: Include "strdup.h".
69115         (canon_host): Use getaddrinfo if available, so that IPv6 works.
69116         Use strdup instead of malloc/strcpy to duplicate strings.
69117
69118         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
69119         (human_space_before_unit): New constant.
69120         * lib/human.c (human_readable): Support it.
69121
69122         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
69123         (xgetcwd): Set errno correctly when failing.
69124         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
69125         the failure is actually due to a PATH_MAX problem.
69126
69127         Further getopt changes to make it more likely that glibc will
69128         buy the changes back.
69129         * lib/getopt.c (POSIXLY_CORRECT): New constant.
69130         (getopt): Use it, so to preserve glibc semantic
69131         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
69132         when compiling for libc.
69133         * lib/getopt_.h (__getopt_argv_const): Bring it back.
69134         (getopt_long, getopt_long_only): Use it.
69135
69136         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69137         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
69138         (getopt): Argv is now char * const *, as per standard.
69139         (_getopt_internal_r, _getopt_internal): Argv is now char **,
69140         not char *__getopt_argv_const *.
69141         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69142         _getopt_long_only_r): Likewise.
69143         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
69144         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69145         _getopt_long_r, _getopt_long_only_r): Likewise.
69146         * lib/getopt_.h (__getopt_argv_const): Remove.
69147         (getopt): Argv is now char * const *, as per standard.
69148
69149         * lib/getdate.y (tORDINAL): New token.
69150         (day, relunit): Allow it for relative times.
69151         (relative_time_table): Use tORDINAL for ordinals.
69152
69153 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69154
69155         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
69156         Document that "second" isn't allowed as an ordinal number.
69157
69158 2004-11-16  Jim Meyering  <jim@meyering.net>
69159
69160         * modules/closeout (Depends-on): Add fpending.
69161
69162 2004-11-15  Jim Meyering  <jim@meyering.net>
69163
69164         * lib/closeout.c: Include "__fpending.h" once again.
69165         Include <stdbool.h>.
69166         (close_stdout): Don't fail just because stdout was closed initially,
69167         since some programs don't write to stdout in the normal course of
69168         operation (other than --version and --help), and we don't want this
69169         function to make e.g. `touch file >&-' fail.
69170         But do fail if it was closed and someone has tried to write to it.
69171         E.g., `printf foo >&-' must fail.
69172
69173 2004-11-13  Jim Meyering  <jim@meyering.net>
69174
69175         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
69176
69177 2004-11-12  Simon Josefsson  <jas@extundo.com>
69178
69179         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
69180         small doc fix is still pending.
69181
69182 2004-11-11  Simon Josefsson  <jas@extundo.com>
69183
69184         * modules/strtok_r: New file.
69185
69186         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69187         strtok_r.
69188
69189 2004-11-11  Simon Josefsson  <jas@extundo.com>
69190
69191         * m4/strtok_r.m4: New file.
69192
69193         * m4/getopt.m4: Replace opterr.
69194
69195 2004-11-11  Simon Josefsson  <jas@extundo.com>
69196
69197         * lib/strtok_r.h, strtok_r.c: New file.
69198
69199 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69200
69201         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
69202         of replacing opterr, getopt, etc.  This should handle the
69203         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
69204
69205 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69206
69207         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
69208         we can stop lying to compilers about the constness of argv when we
69209         are compiled outside glibc.
69210         (getopt, getopt_long, getopt_long_only): Use it.
69211         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69212         _getopt_internal, getopt): Likewise.
69213         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69214         _getopt_long_only_r): Likewise.
69215         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69216         _getopt_long_r, _getopt_long_only_r): Likewise.
69217
69218         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
69219         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
69220         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
69221         the other external symbols.
69222         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
69223         declaration, since the above renaming now works around collisions.
69224
69225 2004-11-11  Jim Meyering  <jim@meyering.net>
69226
69227         * lib/linebreak.c: Remove trailing blanks.
69228         * lib/alloca_.h: Likewise.
69229         * lib/acosl.c: Likewise.
69230         * lib/euidaccess.c: Likewise.
69231         * lib/allocsa.h: Likewise.
69232
69233 2004-11-10  Simon Josefsson  <jas@extundo.com>
69234
69235         * m4/getaddrinfo.m4: New file.
69236
69237 2004-11-10  Simon Josefsson  <jas@extundo.com>
69238
69239         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
69240
69241 2004-11-10  Simon Josefsson  <jas@extundo.com>
69242
69243         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69244         getaddrinfo.
69245
69246         * modules/getaddrinfo: New file.
69247
69248 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69249
69250         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
69251
69252 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69253
69254         * lib/mktime.c (SHR): New macro, which is a portable
69255         substitute for >> that should work even on Crays.
69256         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
69257         Problem reported by Mark D. Baushke in
69258         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
69259         * lib/getdate.y (SHR): Likewise.
69260         (tm_diff): Use it.
69261         * lib/strftime.c (SHR): Likewise.
69262         (tm_diff): Use it.
69263         * lib/quotearg.c (struct quoting_options): Use unsigned int for
69264         quote_these_too, so that right shifts are well defined.  All uses
69265         changed.
69266
69267 2004-11-10  Jim Meyering  <jim@meyering.net>
69268
69269         Ensure that no close failure goes unreported.
69270         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
69271         return early when it seems there's nothing to flush.
69272         Don't include __fpending.h.
69273
69274 2004-11-10  Jim Meyering  <jim@meyering.net>
69275
69276         * modules/closeout (Depends-on): Remove fpending.
69277
69278 2004-11-10  Jim Meyering  <jim@meyering.net>
69279
69280         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
69281
69282 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69283
69284         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
69285         gl_FUNC_STRFTIME.
69286         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
69287         and AC_REQUIRE when possible, to avoid duplicate checks.
69288         Check for <wchar.h>.
69289
69290 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69291
69292         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
69293
69294 2004-11-09  Bruno Haible  <bruno@clisp.org>
69295
69296         * m4/sockpfaf.m4: New file.
69297
69298 2004-11-05  Bruno Haible  <bruno@clisp.org>
69299
69300         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
69301         Reported by Mark D. Baushke <mdb@cvshome.org>.
69302
69303 2004-11-04  Bruno Haible  <bruno@clisp.org>
69304
69305         2004-09-11  Bruno Haible  <bruno@clisp.org>
69306                 * allocsa.valgrind: New file.
69307         2004-02-06  Bruno Haible  <bruno@clisp.org>
69308                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
69309                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
69310                 Reported by Christopher Seip <chris.seip@hp.com>.
69311
69312 2004-11-04  Bruno Haible  <bruno@clisp.org>
69313
69314         * modules/allocsa (Files): Add lib/allocsa.valgrind.
69315         (Makefile.am): Distribute it.
69316
69317 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69318
69319         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
69320         with errno == ERANGE if the buffer is too small.
69321         Problem reported by Mark D. Baushke.
69322
69323 2004-11-03  Albert Chin  <china@thewrittenword.com>
69324             Paul Eggert  <eggert@cs.ucla.edu>
69325
69326         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
69327         equivalent, substitute $ac_type for equivalent type rather than
69328         blindly using uint32_t *always* which won't work if uint32_t is not
69329         available.  Define _UINT32_T to work around typedef of uint32_t if
69330         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
69331         2.5.1.
69332
69333 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69334
69335         * m4/jm-macros.m4: Sync from coreutils.
69336         (gl_MACROS): Check for mbrlen, for pathchk.
69337         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
69338
69339 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69340
69341         * lib/xreadlink.c (MAXSIZE): New macro.
69342         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
69343         size does not exceed MAXSIZE.  Avoid cast.
69344         As suggested by Mark D. Baushke in
69345         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
69346         if readlink fails with buffer size just under MAXSIZE, try again
69347         with MAXSIZE.
69348
69349 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69350
69351         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
69352
69353 2004-11-02  Derek R. Price  <derek@ximbiot.com>
69354         and  Paul Eggert  <eggert@cs.ucla.edu>
69355
69356         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
69357         (get_date): Overparenthesize to avoid GCC warning.
69358
69359 2004-11-02  Bruno Haible  <bruno@clisp.org>
69360
69361         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
69362         returns void.
69363
69364 2004-11-02  Bruno Haible  <bruno@clisp.org>
69365
69366         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
69367         function returns void.
69368
69369 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69370
69371         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
69372         fflush_unlocked, flockfile, funlockfile, funlockfile,
69373         fputs_unlocked, putc_unlocked.
69374
69375 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69376
69377         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69378         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
69379         already declared.
69380
69381 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69382
69383         * modules/getdate (Files): Add doc/getdate.texi.
69384         (Depends-on): Add setenv, xalloc.
69385
69386 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69387
69388         * lib/getdate.y: Add support for TZ="foo" within a date string.
69389         Fix some bugs near time_t boundaries.  Reject dates with
69390         out-of-range components, e.g., "Sept 31".
69391         Include <stdlib.h>, "setenv.h", "xalloc.h".
69392         (ISDIGIT_LOCALE): Remove; unused.
69393         Note that the TZ and time functions used here are not reentrant.
69394         (mktime_ok, get_tz): New functions.
69395         (TZBUFSIZE): New constant.
69396         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
69397         This requires that we sometimes generate our own TZ="XXX..." setting.
69398
69399 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69400
69401         * doc/getdate.texi: New file, from coreutils with modifications for
69402         the new TZ parsing.
69403
69404 2004-10-27  Derek R. Price  <derek@ximbiot.com>
69405
69406         * lib/mktime.c (not_equal_tm): Remove redundant check.
69407
69408 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69409
69410         * modules/regex (lib_SOURCES): Add regex.c.
69411         Reported by James Youngman in
69412         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
69413
69414 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69415
69416         * lib/getdate.y: Use Bison 1.875 features, and some minor
69417         code cleanups.  This change does not affect semantics.
69418         Don't include <stdlib.h>; no longer needed.
69419         Don't include unlocked-io.h; only the "#if TEST" code uses
69420         stdio, and performance isn't crucial there.
69421         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
69422         Bison 1.875 features as described below.
69423         All uses of "PC." replaced by "pc->".
69424         (YYSTYPE): Add a forward declaration.
69425         (yylex, yyerror): Use full prototypes in forward decls.
69426         Use "%pure-parser" rather than obsolescent "%pure_parser".
69427         Use %parse-param and %lex-param instead of obsolescent
69428         YYPARSE_PARAM and YYLEX_PARAM.
69429         (meridian_table, month_and_day_table, time_units_table,
69430         relative_time_table, time_zone_table, military_table,
69431         lookup_zone, lookup_word, get_date):
69432         Use NULL instead of 0 where appropriate.
69433         (to_hour): Avoid abort (), to avoid a dependency on
69434         stdlib.h.
69435         (yyerror, yylex): Now accepts parser_control * arg.
69436         (main) [TEST]: Use '\0' rather than 0 for char.
69437
69438 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69439
69440         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
69441
69442 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69443
69444         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
69445         It's now the caller's responsibility to handle the case where
69446         !HAVE_GETPAGESIZE && !defined getpagesize.
69447
69448         * lib/mktime.c (leapyear): Arg is long int, not int.
69449
69450 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
69451
69452         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
69453
69454 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69455
69456         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
69457         missing.  Problem reported by James Youngman.
69458
69459 2004-10-16  Simon Josefsson  <jas@extundo.com>
69460
69461         * gnulib-tool: Fix comments.  Fix parse problem.
69462         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
69463
69464 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
69465
69466         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
69467         implementation of getopt_long.  Problem reported by Alexander Taler in:
69468         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
69469
69470 2004-10-15  Bruno Haible  <bruno@clisp.org>
69471
69472         * gnulib-tool: Untabify. Initialize supplied_libname.
69473         (func_usage): More homogenous output.
69474         (func_modules_transitive_closure, func_modules_to_filelist,
69475         func_emit_lib_Makefile_am): New functions.
69476         (func_import): New function, extracted from big case statement. Use
69477         func_get_license, func_modules_transitive_closure,
69478         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
69479         opt_lgpl. Don't use test -a, as it's not portable.
69480         (func_create_testdir): Use func_modules_transitive_closure,
69481         func_modules_to_filelist, func_emit_lib_Makefile_am.
69482
69483 2004-10-15  Bruno Haible  <bruno@clisp.org>
69484
69485         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
69486
69487 2004-10-15  Bruno Haible  <bruno@clisp.org>
69488
69489         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
69490         the portions belonging to each module.
69491         Suggested by Derek Robert Price <derek@ximbiot.com>.
69492
69493 2004-10-12  Simon Josefsson  <jas@extundo.com>
69494
69495         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69496         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
69497         to real functions.
69498
69499 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69500
69501         * modules/vsnprintf: New file.
69502
69503 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69504
69505         * m4/vsnprintf.m4: New file.
69506
69507 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69508
69509         * lib/vsnprintf.h: New file.
69510         * lib/vsnprintf.c: New file.
69511
69512 2004-10-11  Bruno Haible  <bruno@clisp.org>
69513
69514         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
69515         vsnprintf.
69516
69517 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69518
69519         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
69520
69521 2004-10-07  Bruno Haible  <bruno@clisp.org>
69522
69523         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
69524         fits into the provided buffer.
69525
69526 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69527
69528         * lib/diacrit.c, diacrit.h: Add GPL notice.
69529
69530         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
69531         notice.
69532         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
69533         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
69534         This avoids a potential constant-folding bug.
69535
69536 2004-10-05  Bruno Haible  <bruno@clisp.org>
69537
69538         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
69539         for the declaration of strsep.
69540
69541 2004-10-05  Bruno Haible  <bruno@clisp.org>
69542
69543         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
69544
69545 2004-10-04  Simon Josefsson  <jas@extundo.com>
69546
69547         * modules/memmem: New file.
69548         * tests/test-memmem.c: New file.
69549         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
69550
69551 2004-10-04  Simon Josefsson  <jas@extundo.com>
69552
69553         * m4/memmem.m4: New file.
69554
69555 2004-10-04  Simon Josefsson  <jas@extundo.com>
69556
69557         * lib/memmem.h: New file.
69558         * lib/memmem.c: New file, taken from glibc.
69559
69560 2004-10-04  Simon Josefsson  <jas@extundo.com>
69561
69562         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
69563         '#ifdef USE_UNLOCKED_IO'.
69564
69565 2004-10-04  Simon Josefsson  <jas@extundo.com>
69566
69567         * config/srclist.txt: Add memmem from glibc.
69568
69569 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
69572
69573         * modules/argmatch, modules/argp, modules/closeout, modules/error,
69574         modules/exclude, modules/getdate, modules/getline,
69575         modules/getndelim2, modules/getpass, modules/getpass-gnu,
69576         modules/getusershell, modules/linebuffer, modules/md5,
69577         modules/mountlist, modules/posixtm, modules/readtokens,
69578         modules/readutmp, modules/regex, modules/sha1,
69579         modules/version-etc, modules/yesno:
69580         Remove dependency on unlocked-io.
69581
69582 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69583
69584         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
69585
69586         * m4/unlocked-io.m4: Add copyright notice.
69587         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
69588
69589 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69590
69591         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
69592         * lib/xmalloc.c (xmemdup): Likewise.
69593         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
69594         XFREE): Remove these long-obsolescent macros.
69595         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
69596         * lib/xstrdup.c: Remove.
69597
69598         * lib/regex.c (re_comp): Cast gettext return value to char *,
69599         Problem reported by Martin Neitzel via Mark D. Baushke.
69600
69601 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69602
69603         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
69604         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
69605         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
69606         regex.c, sha1.c, version-etc.c, yesno.c:
69607         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
69608         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
69609         the includer's responsibility.
69610
69611         Sync from coreutils.
69612
69613         * lib/modechange.c (mode_compile): Don't decrement a pointer that
69614         points to the start of a string, as the C Standard says the
69615         resulting behavior is undefined.
69616
69617         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
69618         simple -> simple_backups, numbered_existing ->
69619         numbered_existing_backups, numbered -> numbered_backups
69620         to avoid shadowing problems.  All uses changed.
69621         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
69622         * lib/backupfile.c (check_extension, numbered_backup):
69623         Rename locals to avoid shadowing 'basename'.
69624         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
69625         once.
69626
69627         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
69628         * lib/.cvsignore: Add getopt.h.
69629
69630 2004-10-04  Bruno Haible  <bruno@clisp.org>
69631
69632         * modules/README: New file.
69633         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
69634         not a module.
69635
69636 2004-10-02  Jim Meyering  <jim@meyering.net>
69637
69638         * lib/dirfd.h, getpagesize.h: Add copyright notice.
69639
69640 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69641
69642         * modules/strsep: New file.
69643
69644 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69645
69646         * m4/strsep.m4: New file.
69647
69648 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69649
69650         * lib/strsep.h: New file.
69651         * lib/strsep.c: New file.
69652
69653 2004-10-01  Simon Josefsson  <jas@extundo.com>
69654
69655         * lib/snprintf.c (snprintf): Handle size==0.
69656
69657 2004-10-01  Simon Josefsson  <jas@extundo.com>
69658             Bruno Haible  <bruno@clisp.org>
69659
69660         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
69661         (snprintf): Declare 'args'.
69662
69663 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
69664
69665         * lib/snprintf.c: Remove comments as to why each header is needed.
69666
69667 2004-10-01  Bruno Haible  <bruno@clisp.org>
69668
69669         * MODULES.html.sh: Add strsep.
69670
69671 2004-09-30  Simon Josefsson  <jas@extundo.com>
69672
69673         * modules/snprintf: New file.
69674
69675 2004-09-30  Simon Josefsson  <jas@extundo.com>
69676
69677         * m4/snprintf.m4: New file.
69678
69679 2004-09-30  Simon Josefsson  <jas@extundo.com>
69680
69681         * lib/snprintf.h, lib/snprintf.c: New files.
69682
69683 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69684
69685         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
69686         (hol_entry_help): Never translate an empty string.
69687         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
69688         * lib/argp.h (OPTION_NO_TRANS): New option.
69689
69690 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69691
69692         * modules/argp (Maintainer): Replace Simon Josefsson
69693         by Sergey Poznyakoff.
69694
69695 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69696
69697         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
69698         changes merged back into glibc.
69699
69700 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69701
69702         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
69703
69704 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69705
69706         * lib/xvasprintf.c: Include xalloc.h.
69707         (xvasprintf): Use xalloc_die, not xmalloc_die.
69708
69709 2004-09-29  Bruno Haible  <bruno@clisp.org>
69710
69711         * modules/alloca-opt: New file, derived from modules/alloca.
69712         * modules/allocsa: Depend on alloca-opt instead of alloca.
69713         * modules/setenv: Likewise.
69714         * modules/vasnprintf: Likewise.
69715         * MODULES.html.sh: Add alloca-opt.
69716
69717 2004-09-28  Simon Josefsson  <jas@extundo.com>
69718
69719         * gnulib-tool: New parameter --lgpl, to asseert that modules are
69720         LGPL, and to replace license template from GPL to LGPL.
69721
69722 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69723
69724         * modules/dummy: Change license to LGPL.
69725
69726 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69727
69728         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
69729
69730 2004-09-24  Simon Josefsson  <jas@extundo.com>
69731
69732         * modules/minmax (License): Change from GPL to LGPL.
69733
69734 2004-09-23  Simon Josefsson  <jas@extundo.com>
69735
69736         * gnulib-tool (--import): Typo.
69737
69738 2004-09-23  Simon Josefsson  <jas@extundo.com>
69739
69740         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
69741
69742 2004-09-22  Bruno Haible  <bruno@clisp.org>
69743
69744         * modules/*: Add 'License' field.
69745         * gnulib-tool: Accept --extract-license option.
69746         (func_get_license): New function.
69747
69748 2004-09-21  Bruno Haible  <bruno@clisp.org>
69749
69750         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
69751         Reported by Simon Josefsson.
69752
69753 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69754
69755         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
69756         gl_AC_TYPE_LONG_LONG.
69757
69758 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69759
69760         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
69761
69762 2004-09-18  Simon Josefsson  <jas@extundo.com>
69763         and  Paul Eggert  <eggert@cs.ucla.edu>
69764
69765         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
69766         calls with autoreconf.  Define GL_LIB.
69767
69768 2004-09-14  Karl Berry  <karl@gnu.org>
69769
69770         * config/srclist.txt: unsync setenv.c, sigh.
69771
69772 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69773
69774         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
69775         Problem reported by Bruno Haible in:
69776         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
69777
69778 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69779
69780         * config/srclist.txt: Comment out argp-pvh.c.
69781
69782 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
69783
69784         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
69785         in case some system header has #define'd it.  Problem reported by
69786         Soeren D. Schulze in
69787         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
69788
69789 2004-09-09  Karl Berry  <karl@gnu.org>
69790
69791         * regex.[ch]: delete from the root.  These were supposed to be
69792                 synced with emacs cvs, but this has not happened for about
69793                 a year, and anyway nothing else uses emacs regex.[ch].
69794                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
69795                 lib/regex[.ch] is untouched.
69796
69797 2004-09-09  Bruno Haible  <bruno@clisp.org>
69798
69799         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
69800
69801 2004-09-09  Bruno Haible  <bruno@clisp.org>
69802
69803         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
69804         modifications.
69805         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
69806
69807 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69808
69809         * modules/xvasprintf: New file.
69810         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
69811
69812 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69813
69814         * lib/xvasprintf.h: New file.
69815         * lib/xvasprintf.c: New file.
69816         * lib/xasprintf.c: New file.
69817
69818 2004-09-08  Bruno Haible  <bruno@clisp.org>
69819
69820         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
69821
69822 2004-09-08  Bruno Haible  <bruno@clisp.org>
69823
69824         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
69825         length is > INT_MAX.
69826         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
69827         more.
69828
69829 2004-09-08  Bruno Haible  <bruno@clisp.org>
69830
69831         * lib/stdint_.h: New file, taken from GNU clisp.
69832
69833 2004-09-08  Bruno Haible  <bruno@clisp.org>
69834             Oskar Liljeblad  <oskar@osk.mine.nu>
69835
69836         * modules/stdint: New file.
69837         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
69838
69839 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69840
69841         Import from coreutils.
69842         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
69843         strings on unbounded length.  alloca's performance benefits aren't
69844         that important here.
69845         (V_STRDUP): Remove.
69846         (parse_with_separator): New function, with most of the internals
69847         of the old parse_user_spec.  Allow user to omit both user and group,
69848         for compatibility with FreeBSD.
69849         Clone only the user name, not the entire spec.
69850         Do not set *uid, *gid unless entirely successful.
69851         Avoid memory leak in some failing cases.
69852         Fix regression for USER.GROUP reported by Dmitry V. Levin in
69853         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
69854         (parse_user_spec): Rewrite to use parse_with_separator.
69855
69856 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69857
69858         * modules/userspec: Don't depend on alloca.
69859
69860 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69861
69862         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
69863
69864 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69865
69866         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
69867         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
69868         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
69869
69870 2004-08-16  Simon Josefsson  <jas@extundo.com>
69871
69872         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
69873         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
69874         Add --dry-run for --import.
69875         Let user provided command line parameters override configure.ac
69876         settings.
69877
69878 2004-08-12  Simon Josefsson  <jas@extundo.com>
69879
69880         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
69881         as discussed with Paul Eggert in threads rooted at
69882         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
69883         and
69884         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
69885         Before, the test was empty, and relied on ELIDE_CODE in source
69886         code.)
69887         (gl_PREREQ_GETOPT): New macro.
69888         (gl_GETOPT): Use them.
69889
69890 2004-08-12  Simon Josefsson  <jas@extundo.com>
69891
69892         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
69893         * lib/getopt_.h: Renamed from getopt.h.
69894
69895 2004-08-12  Simon Josefsson  <jas@extundo.com>
69896
69897         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
69898         Change default library name from libfoo to libgnu.
69899         Now, if you have a configure.ac that says:
69900                 gl_SOURCE_BASE(gl)
69901                 gl_M4_BASE(gl/m4)
69902                 gl_MODULES(error getopt etcetera)
69903                 gl_INIT
69904         you can import all you need by running:
69905                 ../gnulib/gnulib-tool --import
69906
69907         * modules/getopt (Files): Rename getopt.h to getopt_.h.
69908         (Makefile.am): Rewrite, use logic from argz.
69909         (Include): Use <getopt.h> instead of "getopt.h".
69910
69911 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69912
69913         * modules/argp (Files): Add m4/unlocked-io.m4.
69914         (Depends-on): Add extensions.
69915
69916 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69917
69918         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
69919         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
69920         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
69921         Check for program_invocation_name, program_invocation_short_name,
69922         flockfile, funlockfile, features.h, _getopt_long_only_r.
69923
69924 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69925
69926         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
69927         its complicated substitute.
69928         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
69929         and program_invocation_name.
69930         (__argp_basename) [!_LIBC]: Remove; the only use was
69931         replaced by its body.
69932         (__argp_short_program_name): Change condition from
69933         !defined __argp_short_program_name to
69934         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
69935         to match argp-namefrob.h.
69936         (__argp_failure): Don't assume strerror_r returns char *.
69937         * lib/argp-parse.c (N_): Define unconditionally.
69938         (argp_default_options): Fill out initializers with 0 to avoid
69939         gcc warnings.
69940
69941 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69942
69943         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
69944         getopt1.c.
69945
69946 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69947
69948         Merge from coreutils.
69949
69950         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
69951
69952         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
69953         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
69954
69955 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69956
69957         Merge from coreutils.
69958
69959         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
69960         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
69961         for Reliant Unix 5.43.
69962
69963         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
69964         (union fooround): Use uintmax_t, not long int.
69965         The rest is a merge from libc:
69966         [defined _LIBC]: Include <shlib-compat.h>.
69967         (_obstack) [defined _LIBC]: Remove after 2.3.4.
69968
69969         * lib/settime.c (settime): Recode to avoid warning with
69970         Sun Forte C 6U2.
69971
69972         * lib/strverscmp.c: Convert to UTF-8.
69973
69974 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69975
69976         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69977         m4/uintmax_t.m4.
69978
69979 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69980
69981         * modules/xalloc-die: New file.
69982         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
69983
69984         * modules/md5 (Files): Add m4/uint32_t.m4.
69985         * modules/sha1: Renamed from modules/sha.
69986         (Files):
69987         Rename lib/sha.h to lib/sha1.h.
69988         Rename lib/sha.c to lib/sha1.c.
69989         Rename m4/sha.m4 to m4/sha1.m4.
69990         (lib_SOURCES): Likewise.
69991         (configure.ac): Rename gl_SHA to gl_SHA1.
69992         (Include): sha.h -> sha1.h.
69993
69994 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69995
69996         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
69997         * m4/sha1.m4: Renamed from sha.m4.
69998         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
69999
70000 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70001
70002         * lib/obstack.h (obstack_empty_p):
70003         Don't assume that chunk->contents is suitably aligned.
70004         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
70005         Likewise. Problem reported by Benno in
70006         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
70007
70008         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
70009         readable.  This could be improved further but it'd take some work.
70010
70011 2004-08-08  Simon Josefsson  <jas@extundo.com>
70012
70013         * modules/xgethostname (Depends-on): Remove exit and error (not
70014         used).
70015
70016         * modules/getpass-gnu: Add getpass.h.
70017         (Depends-on): Add stdbool.
70018         * modules/getpass: Add getpass.h.
70019
70020 2004-08-08  Simon Josefsson  <jas@extundo.com>
70021
70022         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
70023         Check getpass declaration.
70024
70025 2004-08-08  Simon Josefsson  <jas@extundo.com>
70026
70027         * lib/xgethostname.c: Don't include error.h (not used).
70028
70029         * lib/getpass.h: Add.
70030         * lib/getpass.c: Include getpass.h first.
70031
70032 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
70033
70034         * lib/xalloc-die.c: New file.
70035         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
70036         All uses removed.
70037         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
70038         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
70039         xalloc-die.c.
70040         (_, N_, xalloc_die): Move to xalloc-die.c.
70041         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
70042         so that we needn't mess with xalloc_msg_memory_exhausted.
70043
70044         * lib/sha1.h: Renamed from sha.h.
70045         (SHA1_H): Renamed from _SHA_H.
70046         (sha1_ctx): Renamed from sha_ctx.
70047         (sha1_init_ctx): Renamed from sha_init_ctx.
70048         (sha1_process_block): Renamed from sha_process_block.
70049         (sha1_process_bytes): Renamed from sha_process_bytes.
70050         (sha1_finish_ctx): Renamed from sha_finish_ctx.
70051         (sha1_read_ctx): Renamed from sha_read_ctx.
70052         (sha1_stream): Renamed from sha_stream.
70053         (sha1_buffer): Renamed from sha_buffer.
70054         * lib/sha1.c: Likewise; renamed from sha.c.
70055         Do not include <sys/types.h>.
70056         Include <stddef.h> rather than <stdlib.h>.
70057
70058 2004-08-08  Bruno Haible  <bruno@clisp.org>
70059
70060         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
70061         FILESYSTEM_PREFIX_LEN.
70062         * lib/progreloc.c: Likewise.
70063         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
70064
70065 2004-08-06  Simon Josefsson  <jas@extundo.com>
70066
70067         * modules/progname (Depends-on): Don't depend on stdbool.
70068
70069 2004-08-06  Simon Josefsson  <jas@extundo.com>
70070
70071         * modules/getsubopt: New file.
70072         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70073         getsubopt.
70074
70075 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70076
70077         More merge from coreutils.
70078
70079         * m4/utimens.m4, m4/utimecmp.m4: New files.
70080         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
70081         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
70082         prereq.m4, sha.m4: Import changes from coreutils.
70083
70084 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70085
70086         More merge from coreutils.
70087         * modules/raise, modules/readtokens0, modules/utimens:
70088         * modules/utimecmp, module/xnanosleep: New files.
70089         * modules/strftime: Add lib/strftime.h.
70090         Change include from <time.h> to "strftime.h".
70091         * modules/yesno: Add lib/yesno.h.
70092         * modules/backupfile: Remove lib/addext.c.
70093         * modules/euidaccess: Add stat-macros.h.
70094         * modules/canonicalize, modules/euidaccess,
70095         modules/filemode, modules/lchown, modules/makepath,
70096         modules/rmdir, modules/stat: Likewise.
70097
70098 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70099
70100         Merge from tar.
70101         * lib/argp-help.c (make_hol, hol_append): Don't assume that
70102         SIZE_MAX is a valid preprocessor constant.
70103         (__argp_basename): Change from "#ifndef _LIBC"
70104         to "#ifndef __argp_short_program_name", so that
70105         we don't compile these functions for tar.
70106
70107         More merges from coreutils.
70108         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
70109         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
70110         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
70111         * lib/addext.c: Remove; no longer needed.
70112         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
70113         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
70114         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
70115         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
70116         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
70117         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
70118         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
70119         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
70120         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
70121         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70122         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
70123         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
70124         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
70125         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
70126         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
70127         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
70128         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
70129         Import changes from coreutils.
70130
70131 2004-08-05  Simon Josefsson  <jas@extundo.com>
70132
70133         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
70134
70135 2004-08-05  Simon Josefsson  <jas@extundo.com>
70136
70137         * m4/getsubopt.m4: New file.
70138
70139 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70140
70141         Merge from coreutils.
70142
70143         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
70144         * m4/getcwd-path-max.m4: New files.
70145
70146         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
70147         FILESYSTEM_PREFIX_LEN ->
70148         FILE_SYSTEM_PREFIX_LEN.
70149         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
70150         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
70151         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
70152         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
70153
70154         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
70155         prerequisite modules now handle the DOS stuff.
70156         Don't check for unistd.h.
70157
70158 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70159
70160         Merge from coreutils.
70161
70162         * lib/.gdb-history: Remove; this doesn't belong here.
70163
70164         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
70165         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
70166         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
70167         * lib/getcwd.c: New files.
70168
70169         * lib/dirname.h: Include <stdbool.h>.
70170         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
70171         for consistency with POSIX terminology.  All uses changed.
70172         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
70173         (strip_trailing_slashes): Use bool for booleans.
70174         * lib/stripslash.c (strip_trailing_slashes): Likewise.
70175
70176         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
70177         sometimes returns a positive errno value even when it succeeds.
70178         (print_errno_message) [!LIBC]: Fall back on strerror if
70179         __strerror_r fails.
70180
70181         * lib/path-concat.c (mempcpy): Don't define if a system header defines
70182         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
70183         (longest_relative_suffix): New function.
70184         (path_concat): Use it.  Assume first argument is not NULL.
70185         Port to DOS.  Omit redundant separators.
70186         Report an error instead of returning NULL.
70187         Use mempcpy instead of memcpy.
70188         (xpath_concat): Remove: not declared or used.
70189
70190         * lib/same.h: Include <stdbool.h>
70191         (same_name): Return bool, not int.
70192         * lib/same.c (same_name): Likewise.
70193         (errno): Don't declare; we assume C89 or better now.
70194
70195         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
70196         if not already defined.
70197
70198         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
70199         * lib/dup-safer.c (errno): Likewise.
70200
70201 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70202
70203         Merge from coreutils.
70204         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
70205         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
70206         * modules/path-concat: Don't depend on strdup.
70207
70208 2004-08-03  Simon Josefsson  <jas@extundo.com>
70209
70210         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
70211         * lib/progname.h: Don't include stdbool.h.
70212
70213 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70214
70215         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
70216         * MODULES.html.sh (func_all_modules): Remove fatal.
70217
70218 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70219
70220         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
70221
70222 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70223
70224         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
70225         working.
70226
70227 2004-08-02  Simon Josefsson  <jas@extundo.com>
70228
70229         * lib/getsubopt.h: New file, with comments from Bruno Haible.
70230         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
70231         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
70232
70233 2004-08-01  Simon Josefsson  <jas@extundo.com>
70234
70235         * lib/xgetdomainname.c: Include stdlib.h, for free().
70236
70237 2004-07-19  Bruno Haible  <bruno@clisp.org>
70238
70239         * MODULES.html.sh (func_all_modules): Add dummy.
70240
70241 2004-07-16  Simon Josefsson  <jas@extundo.com>
70242
70243         * modules/dummy: New file.
70244
70245 2004-07-16  Simon Josefsson  <jas@extundo.com>
70246
70247         * lib/dummy.c: New file.
70248
70249 2004-07-16  Bruno Haible  <bruno@clisp.org>
70250
70251         * lib/backupfile.h: Add extern "C" for C++.
70252         * lib/closeout.h: Likewise.
70253         * lib/copy-file.h: Likewise.
70254         * lib/findprog.h: Likewise.
70255         * lib/full-write.h: Likewise.
70256         * lib/pathname.h: Likewise.
70257         * lib/progname.h: Likewise.
70258         * lib/stpcpy.h: Likewise.
70259         * lib/stpncpy.h: Likewise.
70260         * lib/strcase.h: Likewise.
70261         * lib/strstr.h: Likewise.
70262         * lib/xalloc.h: Likewise.
70263
70264         * lib/mbswidth.h: Add extern "C" for C++.
70265         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
70266
70267 2004-07-13  Robert Millan  <robertmh@gnu.org>
70268
70269         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
70270
70271 2004-07-09  Simon Josefsson  <jas@extundo.com>
70272
70273         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
70274         failed without this.)
70275
70276 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70277
70278         * modules/chown (Files): Add lib/fchown-stub.c, since
70279         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
70280
70281 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70282
70283         * lib/fchown-stub.c: New file.
70284
70285 2004-06-24  Jim Meyering  <jim@meyering.net>
70286
70287         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
70288
70289 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70290
70291         * modules/argz: Omit "#include".
70292
70293         * MODULES.html.sh (func_all_modules): Add calloc, to match
70294         2004-06-01 addition of calloc module.
70295
70296 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70297
70298         * m4/argz.m4: New file, which is autoupdated from libtool.
70299
70300 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70301
70302         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
70303         libtool.
70304
70305 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70306
70307         * config/srclist-update: Don't insist on "USA." before the
70308         close-comment, as libtool omits the period and puts the */ on a
70309         separate line.
70310         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
70311         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
70312
70313 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
70314
70315         * modules/argz: New file.
70316         * MODULES.html.sh (func_all_modules): Add argz.
70317
70318 2004-06-12  Jim Meyering  <jim@meyering.net>
70319         and  Paul Eggert  <eggert@cs.ucla.edu>
70320
70321         * modules/hash (Files): Add lib/xalloc.h.
70322         * modules/pipe (Depends-on): Add wait-process.
70323         * modules/stat (Depends-on): Add xalloc.
70324         * modules/userspec (Files): Add lib/userspec.h.
70325         * modules/xstrto
70326
70327         Upgrade from gettext-0.13.
70328         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
70329         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
70330         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
70331
70332 2004-06-10  Jim Meyering  <jim@meyering.net>
70333
70334         * lib/calloc.c: New file.
70335
70336 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
70337
70338         * lib/getdate.y (yylex): Allow space between sign and number.
70339         Problem reported by Dan Jacobson.
70340
70341 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70342
70343         Merge from coreutils CVS.
70344
70345         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
70346         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
70347         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
70348         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
70349         xstrtol.m4: Fix copyright date and/or serial number.
70350
70351         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
70352         See if we need an fchown replacement.
70353         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
70354         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
70355         and use the replacement function if we detect either defect.
70356
70357         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
70358         gl_UTIMECMP.
70359
70360 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70361         and  Jim Meyering  <jim@meyering.net>
70362
70363         Merge from coreutils CVS.
70364
70365         * lib/stat-macros.h: New file, with contents from file-type.h
70366         and coreutils' system.h.
70367         * lib/file-type.c: Include "stat-macros.h".
70368         * lib/file-type.h (file_type): Move all macro definitions to new file,
70369         stat-macros.h.
70370
70371         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
70372         Wrap old code with this conditional.
70373         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
70374         function that does not dereference symlinks.
70375         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
70376
70377         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
70378         dependency problems.
70379         (xreadlink): Accept new arg SIZE, for efficiency.
70380         All decls and uses changed.
70381         * lib/xreadlink.h: Include <stddef.h>, for size_t.
70382
70383         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
70384         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
70385
70386         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
70387         sysexits.h.
70388
70389 2004-06-01  Jim Meyering  <jim@meyering.net>
70390
70391         * m4/calloc.m4: New file.
70392
70393 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
70394
70395         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
70396         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
70397         Also, fix a typo in a diagnostic.
70398
70399 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70400
70401         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
70402         or AC_FUNC_REALLOC.
70403
70404 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70405
70406         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
70407         macros to be defined.
70408         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
70409         the allocator returns NULL because the requested size is zero.
70410
70411 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70412
70413         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
70414         var.  Add comment explaining why libc still defines it.  This
70415         merges the following patch from glibc:
70416         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
70417
70418 2004-05-20  Andreas Schwab  <schwab@suse.de>
70419
70420         * m4/free.m4: Replace free if it not known to work, not the other
70421         way round.
70422
70423 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70424
70425         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
70426         present in glibc since revision 1.1 of this file.
70427         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
70428         obstack_alignment_mask, obstack_alloc, obstack_base,
70429         obstack_blank, obstack_blank_fast, obstack_chunk_size,
70430         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
70431         obstack_grow0, obstack_init, obstack_int_grow,
70432         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
70433         obstack_next_free, obstack_object_size, obstack_ptr_grow,
70434         obstack_ptr_grow_fast, obstack_room): Remove declarations of
70435         nonexistent functions.
70436
70437 2004-05-18  Karl Berry  <karl@gnu.org>
70438
70439         * config/srclist.txt: break link for vasnprintf.c.
70440
70441 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70442
70443         Port obstack to the AS/400, where pointers are 16 bytes wide and
70444         you cannot cast an integer to a valid pointer.  This patch is
70445         currently waiting to be integrated into glibc; see
70446         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
70447
70448         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
70449         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
70450         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
70451         (struct obstack): temp member is now a union of a pointer and
70452         an integer, instead of an integer.  All integer uses changed.
70453         This does not affect the physical layout of struct obstack,
70454         except on hosts (like the AS/400) where the size or alignment of
70455         void * is greater than that of ptrdiff_t.
70456         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
70457         __STDC__)]: Store temporary in pointer member of union, not
70458         integer member.
70459         * lib/obstack.c: Include <stddef.h>, for offsetof.
70460         (struct fooalign): Remove; it doesn't need a name.
70461         (union fooround): Change double to long double, and add void *.
70462         (DEFAULT_ALIGNMENT): Use offsetof to compute.
70463         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
70464         not a macro.  Hence the values are always int; so remove all
70465         casts-to-int in uses.
70466
70467 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70468
70469         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
70470         we can get this patch merged into glibc.
70471
70472 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70473             Paul Eggert  <eggert@cs.ucla.edu>
70474
70475         * m4/argp: Depend on alloca.
70476
70477 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70478             Paul Eggert  <eggert@cs.ucla.edu>
70479
70480         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
70481         freecoding.
70482
70483 2004-05-17  Bruno Haible  <bruno@clisp.org>
70484
70485         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
70486         precision that consists of a '.' followed by an empty digit string.
70487         Patch by Tor Lillqvist <tml@iki.fi>.
70488
70489 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70490
70491         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
70492         for backward compatibility with older code.  We need our own
70493         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
70494         it under some other name, and our alloca.h will define it.
70495
70496 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70497             Derek Price  <derek@ximbiot.com>
70498
70499         * lib/alloca.c: Include <alloca.h>, to get our interface.
70500         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
70501         include <alloca.h> first.  Use C89 prototype for alloca; this
70502         requires including <stddef.h> for size_t.  Use extern "C" if C++.
70503         Use #elif for simplicity, since we can assume C89 now.
70504         Don't try to source the system alloca.h since it will not be found
70505         and to prevent recursively including its replacement.
70506         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
70507         * lib/regex.c: Likewise.
70508
70509 2004-05-16  Derek Price  <derek@ximbiot.com>
70510             Paul Eggert  <eggert@cs.ucla.edu>
70511
70512         getline cleanup.  This changes the getndelim2 API: both order of
70513         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
70514         no delimiter).
70515
70516         * lib/getline.c: Don't include stddef.h or stdio.h, since our
70517         interface does that.
70518         (getline): Always use getdelim, so that we don't have two
70519         copies of this code.
70520         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
70521         if available.
70522         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
70523         (GETNDELIM2_MAXIMUM): New macro.
70524         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
70525         instead of the old practice of delim2==0.  All callers changed.
70526         Return -1 on overflow, instead of returning junk.
70527         Do not set *linesize unless allocation succeeds.
70528         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
70529         that we include sys/types.h.
70530         * lib/getnline.h: Likewise.
70531         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
70532         (getndelim2): Reorder arguments.
70533         * lib/getnline.c (getnline, getndelim):
70534         Don't discard the NMAX argument.
70535         (getnline): Invoke getndelim, to avoid code duplication.
70536         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
70537         of (size_t) -1 by callers of the getnline family.
70538
70539 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70540
70541         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
70542         Check for gettimeofday.
70543         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
70544         Check for settimeofday, stime.
70545
70546 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70547
70548         * lib/nanosleep.c (suspended): Change its type from int to
70549         sig_atomic_t volatile.
70550         (first_call): Make it private to rpl_nanosleep, and have it
70551         be zero initially as that's a bit faster.
70552         (my_usleep): Round up fractional times instead of truncating them,
70553         as this is the usual meaning for 'sleep'.
70554
70555         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
70556         doesn't work.
70557         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
70558         (ENOSYS): Define if not defined.
70559         (settime): Fall back on stime if it exists and settimeofday fails.
70560         But don't bother with fallbacks if a method fails with errno == EPERM.
70561
70562 2004-05-11  Jim Meyering  <jim@meyering.net>
70563
70564         Prior to this change, the save_cwd caller required read access to the
70565         current directory on most systems (ones with the fchdir function).
70566
70567         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
70568         fails, try write-only, and finally, resort to using xgetcwd.
70569
70570 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70571
70572         * lib/obstack.c, obstack.h: Import changes from libc.
70573
70574 2004-04-28  Bruno Haible  <bruno@clisp.org>
70575
70576         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
70577         also implicitly appends .exe to executables.
70578         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
70579         accepts Windows pathnames.
70580         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70581         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70582         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70583         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70584         Reported by Derek Robert Price <derek@ximbiot.com>.
70585
70586 2004-04-21  Karl Berry  <karl@gnu.org>
70587
70588         * config/srclist.txt (localcharset.c): break sync.
70589
70590 2004-04-20  Paul Eggert  <eggert@twinsun.com>
70591
70592         * m4/host-os.m4: Add a copyright notice.
70593
70594 2004-04-20  Jim Meyering  <jim@meyering.net>
70595
70596         Change UTILS_ to gl_ in AC_DEFINE'd names.
70597         Change utils_- and jm_-prefixed variables, too.
70598         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
70599         UTILS_FUNC_MKDIR_TRAILING_SLASH.
70600         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
70601
70602         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
70603         Don't emit trailing blanks.
70604         Also rename jm_-prefixed variables to have gl_ prefix.
70605
70606         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
70607         Also rename jm_-prefixed variables to have gl_ prefix.
70608
70609         * m4/jm-macros.m4: Reflect the renamings.
70610         * m4/prereq.m4: Likewise.
70611
70612 2004-04-20  Jim Meyering  <jim@meyering.net>
70613
70614         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
70615         memory.
70616
70617 2004-04-20  Jim Meyering  <jim@meyering.net>
70618             Bruno Haible  <bruno@clisp.org>
70619
70620         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
70621         memory when realloc fails.
70622
70623 2004-04-19  Jim Meyering  <jim@meyering.net>
70624
70625         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
70626         now that readutmp.c may call `free (0)'.
70627
70628 2004-04-19  Bruno Haible  <bruno@clisp.org>
70629
70630         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
70631         * m4/inttypes_h.m4: Likewise.
70632         * m4/stdint_h.m4: Likewise.
70633         * m4/intmax_t.m4: Likewise.
70634         * m4/uintmax_t.m4: Likewise.
70635
70636 2004-04-18  Jim Meyering  <jim@meyering.net>
70637
70638         * m4/prereq.m4: Don't forbid jm_ prefix.
70639
70640         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
70641         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
70642         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
70643         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
70644         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
70645         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
70646         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
70647         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
70648         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
70649         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
70650         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
70651         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
70652         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
70653         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
70654         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
70655         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
70656         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
70657         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
70658         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
70659
70660 2004-04-18  Jim Meyering  <jim@meyering.net>
70661
70662         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
70663         failure, don't leak memory and do call END_UTMP_ENT.
70664
70665 2004-04-16  Jim Meyering  <jim@meyering.net>
70666
70667         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
70668         coreutils' stat program.
70669         (gl_PREREQ): Don't require jm_PREREQ_STAT.
70670
70671 2004-04-11  Paul Eggert  <eggert@twinsun.com>
70672
70673         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
70674         C89.
70675         (CHAR_BIT): Remove, since we assume C89.
70676         Include <stdint.h> if available, as per current Autoconf CVS advice.
70677
70678 2004-03-31  Jim Meyering  <jim@meyering.net>
70679
70680         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
70681         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
70682         * m4/xalloc.m4: Likewise.
70683
70684 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70685
70686         Merge from coreutils.
70687
70688         * m4/inttostr.m4: New file.
70689         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
70690         Require AM_STDBOOL_H and gl_TIMESPEC instead.
70691         Require gl_CLOCK_TIME.
70692         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
70693
70694 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70695
70696         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
70697         not bool, to be more consistent with Unix conventions.
70698         Suggested by Bruno Haible.
70699
70700         Merge from coreutils.
70701
70702         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
70703         * lib/umaxtostr.c: New files.
70704
70705         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
70706         the usual <time.h> dance.
70707         (get_date): Change signature to support fractional time stamps.
70708         All callers changed.
70709         * lib/getdate.y: Include "getdate.h" first, as we can now
70710         assume C89 and don't need to worry about 'const'.
70711         Similarly, include "unlocked-io.h" near start, not in middle.
70712         Include <limits.h>.
70713         (textint.value): Use long int rather than int.
70714         (textint.digits): Use size_t rather than int.
70715         (BILLION, LOG10_BILLION): New constants.
70716         (parser_control): New member rel_ns.  Members day_ordinal,
70717         time_zone, month, day, hour, minutes, rel_year, rel_month,
70718         rel_day, rel_hour, rel_minutes, rel_seconds
70719         are now long int, not int.  Member seconds is now struct timespec,
70720         not int.  New member timespec_seen.  Members dates_seen, days_seen,
70721         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
70722         not int.
70723         (%union.intval): Now long int, not int.
70724         New member timespec.
70725         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
70726         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
70727         (spec): Now is a timespec or an item list.
70728         (timespec, items): New nonterminals.
70729         (time, rel, relunit, number, get_date):
70730         Add support for fractional seconds.
70731         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
70732         (gmtime, localtime, mktime): Remove decls; not needed with C89.
70733         (to_hour): First arg is now long int, not int.
70734         (to_year): Returns long int, not int.
70735         Don't treat year -70 like 70.
70736         (tm_diff): Returns long int, not int.
70737         (lookup_word): Use bool instead of int when appropriate.
70738         (yylex): Use size_t for count, not int.
70739         Detect overflow when parsing large integer constants.
70740         Add support for fractions.
70741         (get_date): Make pointers 'const' if possible.
70742         Use more-portable code to detect integer overflow.
70743         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
70744         Don't use ctime; it's not reliable if the year has >4 digits.
70745
70746         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
70747         This is for compatibility with BSD.
70748
70749         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
70750         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
70751         From coreutils' system.h.
70752
70753         * lib/userspec.c: Don't include "posixver.h".
70754         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
70755         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
70756         compatible extension.  Simplify code by removing a boolean int
70757         that was always nonzero if a string was nonnull.
70758
70759 2004-03-30  Jim Meyering  <jim@meyering.net>
70760
70761         Merge from coreutils.
70762
70763         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
70764         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
70765         on some systems one must include <grp.h> before it.
70766         Reported by Christian Krackowizer.
70767
70768 2004-03-30  Jim Meyering  <jim@meyering.net>
70769
70770         Merge from coreutils.
70771
70772         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
70773
70774         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
70775         an empty input stream.
70776
70777         * lib/readtokens.c: Include <stdbool.h>.
70778         (readtoken): Use `size_t' rather than int/long.
70779         All callers adjusted.
70780         Use `bool' rather than `int' where appropriate.
70781         Use memset rather than an explicit loop.
70782         Use x2nrealloc rather than xrealloc.
70783         Allow the use of `\0' as a delimiter.
70784         (readtokens): Likewise.
70785         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
70786
70787 2004-03-30  Jim Meyering  <jim@meyering.net>
70788
70789         * m4/realloc.m4: Remove file, since now it does no more than
70790         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
70791         the `configure.ac' section of module/realloc.
70792         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
70793
70794 2004-03-30  Bruno Haible  <bruno@clisp.org>
70795
70796         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
70797         nonnull.
70798
70799 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70800
70801         Merge changes to getloadavg.c from coreutils and Emacs.
70802
70803         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
70804         Define to an expression, not to the empty string.
70805         Include cloexec.h and xalloc.h.
70806         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
70807         Use set_cloexec_flag rather than rolling our own.
70808         * lib/cloexec.c, lib/cloexec.h: New files.
70809
70810 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70811
70812         * m4/cloexec.m4: New file.
70813
70814 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70815
70816         * lib/getopt.h: Sync with libc CVS.
70817
70818 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70819             Bruno Haible  <bruno@clisp.org>
70820
70821         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
70822         mbswidth.
70823
70824 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70825             Bruno Haible  <bruno@clisp.org>
70826
70827         * lib/mbswidth.h: Include <wchar.h> only if
70828         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
70829         <wchar.h>.
70830         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
70831
70832 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70833
70834         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
70835         Sync with libc CVS.
70836         * lib/getopt_int.h: New file, also synced from libc.
70837
70838 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70839
70840         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
70841         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
70842         Bring back getopt.c, getopt.h, getopt1.c.
70843
70844 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70845
70846         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
70847         All uses changed.  Check for sa_sigaction member; this fixes
70848         a bug first reported by Jason Andrade in
70849         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70850
70851 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70852
70853         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
70854         '#if' expressions.  Unlike the code it replaces, it does not
70855         depend on (defined _SC_PAGESIZE).  However, it does depend on
70856         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
70857         first reported by Jason Andrade in
70858         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70859
70860 2004-02-25  Simon Josefsson  <jas@extundo.com>
70861
70862         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
70863
70864 2004-02-25  Simon Josefsson  <jas@extundo.com>
70865
70866         * lib/strdup.h: New file.
70867         * lib/strdup.c: Include it.
70868         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
70869         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
70870
70871 2004-02-23  Karl Berry  <karl@gnu.org>
70872
70873         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
70874         (from fencepost.gnu.org:/gd/gnuorg).
70875
70876 2004-02-23  Karl Berry  <karl@gnu.org>
70877
70878         * config/srclistvars.sh (GNUORG) [karl]: redefine.
70879         * config/srclist.txt: add maintain/standards documents.
70880
70881 2004-02-18  Bruno Haible  <bruno@clisp.org>
70882
70883         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
70884         Reported by Derek Robert Price <derek@ximbiot.com>.
70885
70886 2004-02-16  Karl Berry  <karl@gnu.org>
70887
70888         * config/mkinstalldirs, install-sh: update from automake.
70889
70890 2004-02-06  Karl Berry  <karl@gnu.org>
70891
70892         * m4/po.m4: update from gettext 0.14.1.
70893
70894 2004-02-06  Karl Berry  <karl@gnu.org>
70895
70896         * lib/config.charset: update from gettext 0.14.1.
70897
70898 2004-02-05  Paul Eggert  <eggert@twinsun.com>
70899
70900         Add comments and code, prompted by suggestions from Bruno Haible
70901         for sh-quote.
70902         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
70903         describing the enum quoting_style values.
70904         * lib/quotearg.c (quotearg_alloc): New function.
70905         (quotearg_buffer_restyled): Treat lone { and } as special.
70906         Treat = as special.  Work around bug with older shells
70907         that "see" a '\' that is really the 2nd byte of a multibyte char.
70908         Quote empty string with shell_quoting_style.
70909
70910 2004-02-03  Bruno Haible  <bruno@clisp.org>
70911
70912         * m4/pipe.m4: New file, from GNU gettext.
70913
70914 2004-02-03  Bruno Haible  <bruno@clisp.org>
70915
70916         * lib/pipe.h: New file, from GNU gettext.
70917         * lib/pipe.c: New file, from GNU gettext.
70918
70919 2004-01-27  Bruno Haible  <bruno@clisp.org>
70920
70921         * m4/execute.m4: New file, from GNU gettext.
70922
70923 2004-01-27  Bruno Haible  <bruno@clisp.org>
70924
70925         * lib/execute.h: New file, from GNU gettext.
70926         * lib/execute.c: New file, from GNU gettext.
70927         * lib/w32spawn.h: New file, from GNU gettext.
70928
70929 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70930
70931         Merge from diffutils.
70932
70933         * lib/file-type.c (file_type): Add typed memory objects.
70934         * lib/file-type.h (S_TYPEISTMO): New macro.
70935
70936         * lib/c-stack.h (c_stack_action): Remove argv argument.
70937         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
70938         (die): Don't calculate message unless segv_action returns.
70939         (get_stack_location, min_address_from_argv, max_address_from_argv,
70940         volatile stack_base, volatile_stack_size): Remove.
70941         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
70942         that every segmentation violation is a stack overflow.  (Ouch!)
70943         See Debian bug 136249 (still outstanding) for more info about why
70944         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
70945
70946 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70947
70948         Exit-status fix from coreutils.
70949
70950         Use exit_failure consistently in place of EXIT_FAILURE,
70951         so that program exit statuses are consistent on failure.
70952
70953         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
70954         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
70955         * lib/argmatch.h: Comment fix to match the above.
70956         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
70957         Now a macro referring to exit_failure, instead of a separate
70958         variable.  Include "exitfail.h" to get it.
70959         * lib/xstrtol.h: Include "exitfail.h".
70960         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
70961
70962         * lib/long-options.c (parse_long_options): Use prototype
70963         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
70964         for clarity.
70965
70966 2004-01-21  Jim Meyering  <jim@meyering.net>
70967
70968         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
70969         so as not to conflict with a different-sized __mktime_internal
70970         function in GNU libc.
70971         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
70972         Problem building statically-linked `ls' reported by Michael Brunnbauer.
70973
70974 2004-01-20  Karl Berry  <karl@gnu.org>
70975
70976         * config/config.guess: update from config.
70977
70978         * config/srclistvars.sh: GNUWWWLICENSES for karl.
70979
70980 2004-01-20  Bruno Haible  <bruno@clisp.org>
70981
70982         Safer stack allocation.
70983         * lib/setenv.c: Include allocsa.h.
70984         (alloca): Remove fallback definition.
70985         (freea): Remove macro.
70986         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
70987         instead of freea.
70988
70989 2004-01-20  Bruno Haible  <bruno@clisp.org>
70990
70991         * m4/eealloc.m4: New file, from GNU gettext.
70992
70993 2004-01-20  Bruno Haible  <bruno@clisp.org>
70994
70995         * m4/allocsa.m4: New file, from GNU gettext.
70996
70997 2004-01-20  Bruno Haible  <bruno@clisp.org>
70998
70999         * lib/xallocsa.h: New file, from GNU gettext.
71000         * lib/xallocsa.c: New file, from GNU gettext.
71001
71002 2004-01-20  Bruno Haible  <bruno@clisp.org>
71003
71004         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
71005
71006 2004-01-20  Bruno Haible  <bruno@clisp.org>
71007
71008         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
71009         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
71010         specially.
71011
71012 2004-01-20  Bruno Haible  <bruno@clisp.org>
71013
71014         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
71015         patch.
71016
71017 2004-01-20  Bruno Haible  <bruno@clisp.org>
71018
71019         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
71020
71021 2004-01-20  Bruno Haible  <bruno@clisp.org>
71022
71023         * lib/eealloc.h: New file.
71024
71025 2004-01-20  Bruno Haible  <bruno@clisp.org>
71026
71027         * lib/binary-io.h: Avoid warnings on Cygwin.
71028
71029 2004-01-20  Bruno Haible  <bruno@clisp.org>
71030
71031         * lib/allocsa.h: New file, from GNU gettext.
71032         * lib/allocsa.c: New file, from GNU gettext.
71033
71034 2004-01-18  Karl Berry  <karl@gnu.org>
71035
71036         * doc/gpl.texi, doc/lgpl.texi: new files.
71037
71038 2004-01-18  Karl Berry  <karl@gnu.org>
71039
71040         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
71041         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
71042
71043 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71044
71045         Merge from coreutils.
71046
71047         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
71048         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
71049         (gl_DEFAULT_POSIX2_VERSION): Move
71050         the documentation from 'configure' into 'config.hin',
71051         so that 'configure --help' isn't burdened by it and
71052         we don't have to worry about its formatting there.
71053         Reword the documentation so that it's more succinct
71054         and can be run together into a single paragraph.
71055         * m4/same.m4 (gl_SAME): Check for pathconf.
71056
71057 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71058
71059         Merge from coreutils.
71060
71061         * lib/posixver.c: Include posixver.h.
71062
71063         * lib/same.c: Include <stdbool.h>, <limits.h>.
71064         (_POSIX_NAME_MAX): Define if not defined.
71065         (MIN): New macro.
71066         (same_name): If file names are silently truncated, report
71067         that the file names are the same if they are the same after
71068         the silent truncation.
71069
71070         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
71071         conversion function.
71072         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
71073         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
71074         longer needed.
71075
71076 2004-01-15  Jim Meyering  <jim@meyering.net>
71077
71078         Merge from coreutils.
71079
71080         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
71081         if no library is required.
71082         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
71083         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
71084         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
71085         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
71086         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
71087         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
71088         value, $ac_cv_search_crypt, if it's "none required".
71089         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
71090         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
71091         not gl_FUNC_GETLOADAVG.
71092         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
71093         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
71094
71095 2004-01-15  Jim Meyering  <jim@meyering.net>
71096
71097         Merge from coreutils.
71098
71099         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
71100         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
71101         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
71102
71103         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
71104         optional configure-time default.
71105
71106         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71107
71108         * lib/xreadlink.c (xreadlink): Correct outdated comment.
71109
71110 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
71111
71112         Merge from coreutils.
71113
71114         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
71115         value, $ac_cv_search_nanosleep, if it's "none required".
71116
71117 2004-01-14  Paul Eggert  <eggert@twinsun.com>
71118
71119         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
71120         with like-named macro in fnmatch.c.
71121         (EXT): Use an internal constant instead.
71122
71123         Merge fnmatch patches from glibc.
71124         * lib/fnmatch.c (mbsinit): Remove define.
71125         Add libc_hidden_ver (__fnmatch, fnmatch).
71126         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
71127         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
71128
71129 2004-01-14  Karl Berry  <karl@gnu.org>
71130
71131         * config/install-sh: update from automake.
71132
71133 2004-01-13  Karl Berry  <karl@gnu.org>
71134
71135         * config/install-sh: update from automake.
71136
71137 2004-01-09  Karl Berry  <karl@gnu.org>
71138
71139         * config/install-sh: update from automake.
71140
71141 2004-01-05  Karl Berry  <karl@gnu.org>
71142
71143         * config/config.{sub,guess}: update from config.
71144
71145 2003-12-31  Karl Berry  <karl@gnu.org>
71146
71147         * config/depcomp: update from automake.
71148
71149 2003-12-14  Karl Berry  <karl@gnu.org>
71150
71151         * lib/config.charset: update from gettext-runtime.
71152
71153 2003-12-03  Paul Eggert  <eggert@twinsun.com>
71154
71155         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
71156         Bug reported by Alfred M. Szmidt.
71157
71158 2003-12-03  Bruno Haible  <bruno@clisp.org>
71159
71160         * m4/gettext.m4: Upgrade from gettext-0.13.
71161         * m4/po.m4: Upgrade from gettext-0.13.
71162         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
71163         * m4/intmax.m4: New file, from gettext-0.13.
71164         * m4/printf-posix.m4: New file, from gettext-0.13.
71165
71166 2003-11-29  Karl Berry  <karl@gnu.org>
71167
71168         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
71169
71170 2003-11-25  Paul Eggert  <eggert@twinsun.com>
71171             Bruno Haible  <bruno@clisp.org>
71172
71173         * lib/printf-parse.h: Don't include sys/types.h.
71174         (ARG_NONE): New macro.
71175         (char_directive): Change type of *arg_index fields to size_t.
71176         * lib/printf-parse.c: Don't include sys/types.h.
71177         (SSIZE_MAX): Remove macro.
71178         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
71179         Remove unnecessary overflow check.
71180         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
71181         fields.
71182
71183 2003-11-25  Bruno Haible  <bruno@clisp.org>
71184
71185         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
71186
71187 2003-11-25  Bruno Haible  <bruno@clisp.org>
71188
71189         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
71190         gt_TYPE_SSIZE_T.
71191
71192 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71193
71194         * modules/alloca: Remove dependency on xalloc.
71195
71196 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71197
71198         * lib/alloca.c: Remove dependency on xalloc module.
71199         (xalloc_die): Remove.
71200         (memory_full) [!defined emacs]: New macro.
71201         [!defined emacs]: Don't include xalloc.h.
71202         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
71203         address arithmetic overflows.  Change datatypes a bit to avoid
71204         unnecessary casts.
71205
71206 2003-11-22  Jim Meyering  <jim@meyering.net>
71207
71208         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
71209         s/size/size_t/.
71210
71211 2003-11-21  Karl Berry  <karl@gnu.org>
71212
71213         * config/config.{sub,guess}: update from config.
71214
71215 2003-11-18  Karl Berry  <karl@gnu.org>
71216
71217         * config/config.{sub,guess}: update from config.
71218
71219         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
71220
71221 2003-11-17  Paul Eggert  <eggert@twinsun.com>
71222
71223         * README: Mention that S+T cannot overflow if S is the size of
71224         an existing object and T is sufficiently small.
71225
71226 2003-11-17  Jim Meyering  <jim@meyering.net>
71227
71228         On systems without utime and without a utimes function capable of
71229         dealing with a NULL struct utimbuf* argument, this utime replacement
71230         could -- in unusual circumstances -- leak a file descriptor.
71231         * lib/utime.c: Include <unistd.h> and <errno.h>.
71232         (utime_null): Be sure to close `fd' and to preserve errno.
71233         Reported by Geoff Collyer via Arnold Robbins.
71234
71235 2003-11-17  Bruno Haible  <bruno@clisp.org>
71236
71237         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
71238         (Depends-on): Add xsize.
71239
71240 2003-11-17  Bruno Haible  <bruno@clisp.org>
71241
71242         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
71243
71244 2003-11-17  Bruno Haible  <bruno@clisp.org>
71245
71246         * lib/vasnprintf.c (alloca): Remove fallback definition.
71247         (freea): Remove definition.
71248         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
71249         Reported by Paul Eggert.
71250
71251 2003-11-16  Paul Eggert  <eggert@twinsun.com>
71252             Bruno Haible  <bruno@clisp.org>
71253
71254         Protect against address arithmetic overflow.
71255         * lib/printf-args.h: Include stddef.h.
71256         (arguments): Change type of field 'count' to size_t.
71257         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
71258         'unsigned int' where appropriate.
71259         * lib/printf-parse.h: Include sys/types.h.
71260         (char_directive): Change type of *arg_index fields to ssize_t.
71261         (char_directives): Change type of fields 'count', max_*_length to
71262         size_t.
71263         * lib/printf-parse.c: Include sys/types.h and xsize.h.
71264         (SSIZE_MAX): Define fallback value.
71265         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
71266         instead of 'int' where appropriate. Check a_allocated, d_allocated
71267         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
71268         * lib/vasnprintf.c: Include xsize.h.
71269         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
71270         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
71271         overflow. Avoid wraparound when converting a width or precision from
71272         decimal to binary.
71273
71274 2003-11-16  Bruno Haible  <bruno@clisp.org>
71275
71276         Update from GNU gettext.
71277         * lib/printf-parse.c: Generalize to it can be compiled for wide
71278         strings.
71279         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
71280         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
71281         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
71282         SNPRINTF): New macros.
71283         Don't include <alloca.h> if the file is used inside libintl.
71284         (local_wcslen): New function, for Solaris 2.5.1.
71285         (VASNPRINTF): Use it instead of wcslen.
71286
71287 2003-11-16  Bruno Haible  <bruno@clisp.org>
71288
71289         * lib/xsize.h (xmax): New function.
71290         (xsum, xsum3, xsum4): Declare as "pure" functions.
71291
71292 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71293
71294         * modules/xalloc (Files): Undo latest change, since xalloc.h
71295         no longer needs SIZE_MAX or PTRDIFF_MAX.
71296
71297 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71298
71299         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
71300         gl_PTRDIFF_MAX.
71301
71302 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71303
71304         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
71305         "return", to pacify some unknown compiler.  Problem reported
71306         by Joerg Schilling.
71307
71308 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71309
71310         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
71311         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
71312         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
71313         heuristic is just as accurate as far as we know, and it removes a
71314         dependency on size_max.m4 and ptrdiff_max.m4.
71315
71316 2003-11-11  Bruno Haible  <bruno@clisp.org>
71317
71318         * modules/xsize (Files): Add m4/size_max.m4.
71319         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
71320
71321 2003-11-11  Bruno Haible  <bruno@clisp.org>
71322
71323         * m4/size_max.m4: New file.
71324         * m4/ptrdiff_max.m4: New file.
71325         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
71326         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
71327         (gl_XALLOC): Invoke it.
71328
71329 2003-11-11  Bruno Haible  <bruno@clisp.org>
71330
71331         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
71332         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
71333         defined.
71334
71335 2003-11-10  Paul Eggert  <eggert@twinsun.com>
71336
71337         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
71338         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
71339         rejected some allocations of exactly SIZE_MAX - 2 bytes.
71340         From Bruno Haible.
71341         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
71342         not (size_t) -1, since it's defined here.
71343
71344 2003-11-09  Karl Berry  <karl@gnu.org>
71345
71346         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
71347
71348 2003-11-06  Paul Eggert  <eggert@twinsun.com>
71349
71350         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
71351         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
71352         Reject sizes of exactly SIZE_MAX bytes.
71353         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
71354         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
71355
71356 2003-11-05  Bruno Haible  <bruno@clisp.org>
71357
71358         * lib/xsize.h: Include limits.h, to avoid a possible collision with
71359         SIZE_MAX defined in <limits.h> on Solaris.
71360
71361 2003-11-04  Jim Meyering  <jim@meyering.net>
71362
71363         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
71364         variable names, rather than @VAR@.
71365         * modules/poll: Likewise.
71366
71367 2003-11-04  Bruno Haible  <bruno@clisp.org>
71368
71369         * modules/xsize: New file.
71370         * modules/linebreak: Depend on xsize.
71371         * MODULES.html.sh (func_all_modules): Add xsize.
71372
71373 2003-11-04  Bruno Haible  <bruno@clisp.org>
71374
71375         * m4/xsize.m4: New file.
71376
71377 2003-11-04  Bruno Haible  <bruno@clisp.org>
71378
71379         * lib/xsize.h: New file.
71380         * lib/linebreak.c: Include xsize.h.
71381         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
71382         argument for overflow.
71383         Suggested by Paul Eggert.
71384
71385 2003-11-03  Karl Berry  <karl@gnu.org>
71386
71387         * config/config.{guess,sub}: update from config.
71388
71389 2003-11-03  Jim Meyering  <jim@meyering.net>
71390
71391         * modules/userspec (lib_SOURCES): Add userspec.h.
71392         (Include): Add "userspec.h".
71393         Improve description.
71394
71395 2003-11-03  Jim Meyering  <jim@meyering.net>
71396
71397         * lib/userspec.c: Include "userspec.h".
71398         * lib/userspec.h: New file.
71399
71400 2003-11-03  Bruno Haible  <bruno@clisp.org>
71401
71402         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
71403
71404 2003-11-03  Bruno Haible  <bruno@clisp.org>
71405
71406         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
71407         available, to avoid (extremely rare) race condition.
71408         Suggested by Paul Eggert.
71409
71410 2003-11-02  Karl Berry  <karl@gnu.org>
71411
71412         * config/srclist.txt (vasprintf.c): sync broken, sigh.
71413
71414 2003-10-31  Paul Eggert  <eggert@twinsun.com>
71415
71416         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
71417         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
71418         (read_filesystem_list): Set and use me_type_malloced.
71419         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
71420         whatever the type happens to be), for brevity and consistency.
71421         Check for size calculation overflow on Alphas running OSF/1.
71422
71423 2003-10-31  Jim Meyering  <jim@meyering.net>
71424
71425         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
71426
71427         * lib/linebuffer.c: Include <string.h> for declaration of memset.
71428
71429 2003-10-30  Paul Eggert  <eggert@twinsun.com>
71430             Bruno Haible  <bruno@clisp.org>
71431
71432         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
71433         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
71434
71435 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71436
71437         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
71438         netbsd*-gnu*.  Suggested by Robert Millan.
71439
71440 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71441
71442         * modules/group-member: Depend on stdbool.
71443
71444 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71445
71446         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
71447
71448 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71449
71450         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
71451         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
71452         after the 'gnu' in these cases.  This fixes some bugs in the
71453         previous change, and is based on suggestions by Robert Millan.
71454
71455 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71456
71457         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
71458         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
71459         no longer needed.
71460         * lib/quotearg.c (quotearg_n_options): Use it.
71461         * lib/group-member.c: Include <stdbool.h>.
71462         (free_group_info): Arg is now const *; don't free arg.
71463         (get_group_info): Now returns bool and accepts struct group_info *,
71464         rather than returning a malloc'ed struct group_info *.
71465         All uses changed.  Check for overflow in internal size calculation.
71466
71467         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
71468         rather than xmalloc/xrealloc.
71469         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
71470         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
71471         conformance bug: the old code used a pointer after freeing the
71472         storage that it addressed.
71473         * lib/hash.c (hash_initialize): Simplify the code by using
71474         xalloc_oversized rather than doing it by hand.
71475         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
71476         the buffer preserved.  Use free and xmalloc instead.
71477         * lib/quotearg.c (quotearg_n_options): Likewise.
71478         Use a simpler test for size overflow.  Don't use xalloc_oversized
71479         because unsigned int might be wider than size_t (!); this suggests
71480         that we should switch from unsigned int to size_t for slot numbers.
71481
71482 2003-10-28  Paul Eggert  <eggert@twinsun.com>
71483
71484         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
71485         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
71486         NetBSD kernels.  Requested by Richard Stallman.
71487
71488 2003-10-27  Paul Eggert  <eggert@twinsun.com>
71489
71490         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
71491         to allocate the returned structure.  Do not allocate a subarray,
71492         as x2nrealloc will do that.
71493         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
71494         instead of xnrealloc.
71495         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
71496
71497 2003-10-27  Bruno Haible  <bruno@clisp.org>
71498
71499         * lib/stdbool_.h: Better support for BeOS.
71500
71501 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71502
71503         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
71504         now uses inline.
71505
71506 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71507
71508         * lib/xalloc.h (xalloc_oversized): New static inline function, for
71509         callers that want to do their own size-overflow checking.  Include
71510         <stdbool.h>, since xalloc_oversized returns bool.
71511         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
71512         to use xalloc_oversized.
71513
71514         Add two functions x2realloc, x2nrealloc, for programs that grow
71515         arrays dynamically by doubling their sizes.
71516         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
71517         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
71518         New functions.
71519
71520         Port to C99 semantics for 'inline' of external functions.
71521         Bug reported by Bruno Haible.
71522         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
71523         with the old contents of xnmalloc.
71524         (xnmalloc, xmalloc): Use it.
71525         (xnrealloc_inline): New static inline function,
71526         with the old contents of xnrealloc.
71527         (xnrealloc, xrealloc): Use it.
71528
71529         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
71530         that.
71531
71532 2003-10-26  Karl Berry  <karl@gnu.org>
71533
71534         * config/srclist.txt (COPYING.DOC): no longer available from
71535         /gd/gnuorg; don't know where the ultimate source is.
71536
71537 2003-10-25  Paul Eggert  <eggert@twinsun.com>
71538
71539         Fix several address-calculation bugs in the hash modules,
71540         plus some minor code cleanup.
71541
71542         * lib/hash.h: Include <stdbool.h>, for bool.
71543         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
71544         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
71545         hash_get_n_entries, hash_get_max_bucket_length,
71546         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
71547         hash_rehash): Use size_t rather than unsigned.
71548         * lib/hash.c (struct hash_table, hash_get_n_buckets,
71549         hash_get_n_buckets_used, hash_get_n_entries,
71550         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
71551         hash_get_entries, hash_do_for_each, hash_string, is_prime,
71552         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
71553         Likewise.
71554         (SIZE_MAX): Define if not defined.
71555         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
71556         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
71557         hash_print):
71558         Use const * when possible.
71559         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
71560         (check_tuning): Fix bug: if tuning parameters were very close to
71561         0 or 1, rounding errors could have caused subscript violations.
71562         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
71563         (hash_initialize): Add 'fail:' label
71564         to free table and return NULL, and use it to simplify code.
71565         Use calloc rather than clearing the storage ourself.
71566         (hash_initialize, hash_rehash): Check for arithmetic overflow in
71567         buffer size calculations.
71568         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
71569         Include <stddef.h>, for size_t.
71570         * lib/hash-pjw.c (hash_pjw): Likewise.
71571         Switch to method described by Bruno Haible.
71572         Include <limits.h>, for CHAR_BIT.
71573         (SIZE_BITS): New macro.
71574
71575 2003-10-23  Paul Eggert  <eggert@twinsun.com>
71576
71577         * m4/getline.m4 (AM_FUNC_GETLINE):
71578         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
71579         hosts.  Problem reported by Derek Robert Price in
71580         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
71581         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
71582         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
71583
71584 2003-10-21  Paul Eggert  <eggert@twinsun.com>
71585
71586         * lib/getndelim2.c (getndelim2): When size calculation overflows,
71587         ceiling the allocation at NMAX bytes rather than silently
71588         discarding input bytes before NMAX is reached.  This makes
71589         a difference only if NMAX exceeds SIZE_MAX / 2.
71590
71591         * lib/obstack.c: Merge from glibc.
71592         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
71593         Add libc_hidden_def (_obstack_newchunk).
71594         (_obstack_free) [! defined _LIBC]: Remove.
71595         [defined _LIBC]: Make a strong alias from obstack_free, rather than
71596         a clone of the function body.
71597         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
71598         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
71599
71600         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
71601         glibc.
71602         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
71603         arg to memcpy.
71604
71605         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
71606         (obstack_ptr_grow_fast, obstack_int_grow_fast):
71607         Don't use lvalue casts, as GCC plans to remove support for them
71608         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
71609         was also present in the non-GCC version, indicating that this
71610         code had always been buggy and had never been widely used.
71611         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
71612         Use the fast variant of each macro, rather than copying the
71613         definiens of the fast variant; that way, we'll be more likely to
71614         catch future bugs in the fast variants.
71615
71616 2003-10-20  Bruno Haible  <bruno@clisp.org>
71617
71618         * modules/wait-process: New file.
71619         * MODULES.html.sh (func_all_modules): Add wait-process.
71620
71621 2003-10-20  Bruno Haible  <bruno@clisp.org>
71622
71623         * m4/wait-process.m4: New file.
71624
71625 2003-10-20  Bruno Haible  <bruno@clisp.org>
71626
71627         * lib/wait-process.h: New file, from GNU gettext.
71628         * lib/wait-process.c: New file, from GNU gettext.
71629
71630 2003-10-19  Jim Meyering  <jim@meyering.net>
71631
71632         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
71633         HPUX 10.20.
71634
71635 2003-10-18  Karl Berry  <karl@gnu.org>
71636
71637         * config/config.guess: update from config.
71638
71639 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71640
71641         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
71642         (getgroups): First arg is int, not size_t.
71643         Don't let 'free' mangle errno.
71644
71645 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71646
71647         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
71648
71649 2003-10-16  Karl Berry  <karl@gnu.org>
71650
71651         * config/config.{guess,sub}: update from config.
71652
71653 2003-10-16  Jim Meyering  <jim@meyering.net>
71654
71655         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
71656         memcpy.
71657
71658 2003-10-15  Paul Eggert  <eggert@twinsun.com>
71659
71660         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
71661         (SIZE_MAX): Remove.
71662         (new_exclude, add_exclude_file): Initial size no longer needs to
71663         be a power of 2.
71664         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
71665         our own address arithmetic overflow checking.
71666
71667         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
71668         (fnmatch): Do not alloca more than 2000 wide characters;
71669         instead, use malloc for large buffers.
71670         Check for address arithmetic overflow, and return -1
71671         with errno set to ENOMEM in that case.
71672         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
71673         (NEW_PATTERN): Do not alloca more than 8000 bytes;
71674         instead, return -1.  Check for address arithmetic overflow.
71675
71676 2003-10-14  Paul Eggert  <eggert@twinsun.com>
71677
71678         Handle invalid suffixes and overflow independently, so that
71679         callers can treat them independently as needed.  Fix some bugs in
71680         suffix handling, e.g., "100k@" was not diagnosed as an invalid
71681         suffix for a human-readable blocksize.  The major caller-visible
71682         change is the addition of a new
71683         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
71684         that both overflow and suffix chars were found.
71685
71686         * lib/human.c (humblock): Don't check separately for invalid suffix
71687         char; that is xstrtoumax's job (now that its bug is fixed).
71688         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
71689         INTMAX_MAX]: New macros.
71690         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
71691         TYPE_MAXIMUM): New macros.
71692         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
71693         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
71694         if overflow occurs, as it's what __strtol does and it's more useful
71695         in practice.
71696         (__xstrtol): If __strtol reports some error other than ERANGE,
71697         reflect it to the caller as LONGINT_INVALID.  If it reports
71698         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
71699         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
71700         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
71701         value.
71702         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
71703         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
71704         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
71705         [defined UINTMAX_MAX]: New macros.
71706
71707 2003-10-14  Bruno Haible  <bruno@clisp.org>
71708
71709         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
71710
71711 2003-10-14  Bruno Haible  <bruno@clisp.org>
71712
71713         * m4/sig_atomic_t: New file, from GNU gettext.
71714         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
71715
71716 2003-10-14  Bruno Haible  <bruno@clisp.org>
71717
71718         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
71719         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
71720         Also use volatile where needed.
71721
71722 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71723
71724         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
71725         Change maintainer from Bruno Haible to 'all'.
71726
71727 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71728
71729         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
71730
71731 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71732
71733         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
71734         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
71735         and define in terms of the other primitives.
71736         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
71737         (SIZE_MAX): Define if not already defined.
71738         (array_size_overflow): New function.
71739         (xalloc_die): Abort instead of exiting if 'error' returns.
71740         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
71741         (xmalloc, xrealloc): Use them.
71742         (xcalloc): Check for address arithmetic overflow.
71743         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
71744         a bit faster than strcpy.
71745
71746 2003-10-10  Simon Josefsson  <jas@extundo.com>
71747
71748         * modules/argp (Depends-on): Add restrict and strcase.
71749
71750 2003-10-10  Simon Josefsson  <jas@extundo.com>
71751
71752         * m4/argp.m4: Add AC_C_INLINE.
71753
71754 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71755
71756         Merge getpass from libc, plus a few fixes.
71757
71758         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
71759         Include <stdbool.h>.
71760         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
71761         __fsetlocking to empty.
71762         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
71763         do include <bits/libc-lock.h>.
71764         Do not include <fcntl.h>; not needed.
71765         [_LIBC]: Include <wchar.h>.
71766         (NOTCANCEL_MODE): New macro.
71767         (flockfile, funlockfile) [_LIBC]: New macros.
71768         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
71769         [!_LIBC]: New macros.
71770         (call_fclose): New function.
71771         (getpass): Use it.  Save tty stream separately; this simplifies the
71772         code and makes it more reliable if stdin happens to equal stdout.
71773         Invoke __fsetlocking on tty.
71774         Handle thread cancellation if needed.
71775         Namespace cleanup (use __tcgetattr, __getline).
71776         Use bool for Booleans.
71777         [USE_IN_LIBIO]: Handle wide streams.
71778         [!_LIBC]: Unconditionally do the fseek, since we don't know what
71779         stream might go where.
71780
71781         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
71782         doesn't have to include <stdio.h> before us.
71783         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
71784         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
71785         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
71786         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
71787         if not declared, so that we can use getpass.c code from libc without
71788         rewriting it.
71789         (flockfile, ftrylockfile, funlockfile): New macros.
71790
71791 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71792
71793         * modules/getpass: Depend on stdbool.
71794
71795 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71796
71797         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
71798
71799 2003-10-07  Karl Berry  <karl@gnu.org>
71800
71801         * config/config.{guess,sub}: update from config.
71802
71803 2003-10-06  Jim Meyering  <jim@meyering.net>
71804             Bruno Haible  <bruno@clisp.org>
71805
71806         This lets translators provide better translations for the
71807         "Written by ..." part of --version output.
71808         * lib/version-etc.h: Include stdarg.h.
71809         (version_etc_copyright): Declare as readonly.
71810         (version_etc): Make this function variadic with a NULL-terminated list
71811         of author name strings.
71812         (version_etc_va): New declaration.
71813         * lib/version-etc.c: Include stdarg.h, stdlib.h.
71814         (version_etc_copyright): Declare as readonly.
71815         (version_etc_va): New function. Provide a different translatable string
71816         for each possible number of authors < 10. Abbreviate when there are 10
71817         authors or more.
71818         (version_etc): Make this function variadic. Call version_etc_va.
71819         Suggestion from Gary V. Vaughan.
71820
71821         * lib/long-options.h (parse_long_options): Change prototype: the
71822         authors string is moved to the end and becomes variadic.
71823         * lib/long-options.c: Include stdarg.h.
71824         (parse_long_options): Make this function variadic, too.
71825         Call version_etc_va, not version_etc.
71826
71827 2003-10-06  Bruno Haible  <bruno@clisp.org>
71828
71829         * modules/version-etc-2: Remove file.
71830         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
71831
71832 2003-10-06  Bruno Haible  <bruno@clisp.org>
71833
71834         * modules/fatal-signal: New file.
71835         * MODULES.html.sh (func_all_modules): Add fatal-signal.
71836
71837 2003-10-06  Bruno Haible  <bruno@clisp.org>
71838
71839         * m4/fatal-signal.m4: New file.
71840         * m4/signalblocking.m4: New file, from GNU gettext.
71841
71842 2003-10-06  Bruno Haible  <bruno@clisp.org>
71843
71844         * lib/version-etc-2.h: Remove file.
71845         * lib/version-etc-2.c: Remove file.
71846
71847 2003-10-06  Bruno Haible  <bruno@clisp.org>
71848
71849         * lib/fatal-signal.h: New file, from GNU gettext.
71850         * lib/fatal-signal.c: New file, from GNU gettext.
71851
71852 2003-10-05  Paul Eggert  <eggert@twinsun.com>
71853
71854         * README: Rework advice for preventing empty .o files.
71855         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
71856         not <sys/types.h>.
71857
71858 2003-10-04  Karl Berry  <karl@gnu.org>
71859
71860         * lib/argp*: update from libc.
71861
71862 2003-10-04  Karl Berry  <karl@gnu.org>
71863
71864         * config/config.{guess,sub}: update from config.
71865
71866 2003-10-02  Bruno Haible  <bruno@clisp.org>
71867
71868         * modules/lchown (Include): Add lchown.h.
71869         * modules/time_r (Include): Use "..." syntax.
71870         * modules/xgetdomainname (Include): Add xgetdomainname.h.
71871
71872 2003-10-01  Simon Josefsson  <jas@extundo.com>
71873
71874         * MODULES.html.sh (func_all_modules): Move gethostname from section
71875         'based on' to section 'lacking' POSIX:2001.
71876
71877 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
71878
71879         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
71880         to output mode on the same stream.
71881
71882 2003-09-29  Paul Eggert  <eggert@twinsun.com>
71883
71884         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
71885         Fix arg typo in previous patch.
71886
71887 2003-09-28  Jim Meyering  <jim@meyering.net>
71888
71889         * lib/error.c: Correct cpp indentation.
71890
71891 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71892
71893         * modules/free: New file.
71894
71895 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71896
71897         * m4/free.m4: New file.
71898
71899 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71900
71901         * lib/minmax.h (MIN, MAX)
71902         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
71903         Omit the special code that used __typeof__, since we worry that
71904         it could be more trouble than it's worth.  See:
71905         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
71906         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
71907
71908         * lib/free.c: New file.
71909
71910 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
71911
71912         Trivial fixes to Makefile.am parts of module listings.
71913         * modules/strstr: Append strstr.h to lib_SOURCES.
71914         * modules/strcase: Likewise, for strcase.h.
71915
71916 2003-09-27  Karl Berry  <karl@gnu.org>
71917
71918         * config/mkinstalldirs: update from automake.
71919
71920 2003-09-26  Paul Eggert  <eggert@twinsun.com>
71921
71922         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
71923         (error_tail): Do not loop, reallocating temporary buffer, since
71924         the output cannot contain more wide characters than the input
71925         contains bytes, the size must be big enough already.  This avoids
71926         one potential size overflow calculation.  Check for size overflow
71927         when calculating temporary buffer size.  Free temporary buffer
71928         when done, if it was allocated with malloc; this plugs a memory
71929         leak.  Remove casts from void * to pointers, that are no longer
71930         needed now that we're assuming C89 or better.
71931
71932         Merge error changes from glibc.
71933
71934         * lib/error.c, error.h: Update copyright notice header to match glibc.
71935         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
71936         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
71937         Disable cancellation while printing error.
71938         * lib/error.h: Prepend __ to parameter names.
71939
71940 2003-09-26  Jim Meyering  <jim@meyering.net>
71941
71942         * lib/error.c (error_tail): Move some declarations
71943         into inner scope where the local variables are used.
71944
71945 2003-09-26  Bruno Haible  <bruno@clisp.org>
71946
71947         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
71948         stpncpy().
71949         Don't define stpncpy through config.h; it's now done through stpncpy.h.
71950
71951 2003-09-26  Bruno Haible  <bruno@clisp.org>
71952
71953         * lib/stpncpy.h (gnu_stpncpy): New declaration.
71954         (stpncpy): Define as alias for gnu_stpncpy.
71955         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
71956
71957 2003-09-25  Simon Josefsson  <jas@extundo.com>
71958
71959         * lib/xgetdomainname.h: New file.
71960         * lib/xgetdomainname.c: New file.
71961
71962 2003-09-25  Simon Josefsson  <jas@extundo.com>
71963             Bruno Haible  <bruno@clisp.org>
71964
71965         * modules/getdomainname: New file.
71966         * modules/xgetdomainname: New file.
71967         * MODULES.html.sh (func_all_modules): Add getdomainname,
71968         xgetdomainname.
71969
71970 2003-09-25  Simon Josefsson  <jas@extundo.com>
71971             Bruno Haible  <bruno@clisp.org>
71972
71973         * m4/getdomainname.m4: New file.
71974
71975 2003-09-25  Simon Josefsson  <jas@extundo.com>
71976             Bruno Haible  <bruno@clisp.org>
71977
71978         * lib/getdomainname.h: New file.
71979         * lib/getdomainname.c: New file.
71980
71981 2003-09-25  Karl Berry  <karl@gnu.org>
71982
71983         * lib/argp-fmtstream.c, argp-help.c: update from libc.
71984
71985 2003-09-25  Karl Berry  <karl@gnu.org>
71986
71987         * config/install-sh: update from automake.
71988
71989 2003-09-25  Bruno Haible  <bruno@clisp.org>
71990
71991         * modules/version-etc-2: New file, from modules/version-etc with
71992         modifications.
71993         * MODULES.html.sh (func_all_modules): Add version-etc-2.
71994
71995 2003-09-25  Bruno Haible  <bruno@clisp.org>
71996
71997         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
71998         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
71999
72000 2003-09-24  Simon Josefsson  <jas@extundo.com>
72001
72002         * modules/xgethostname: Add xgethostname.h.
72003
72004 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72005
72006         * lib/linebuffer.c (freebuffer): Don't free the argument, just
72007         the buffer associated with the argument.  Bug reported by
72008         Simon Josefsson.
72009
72010 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72011
72012         * README: Document assumptions that 'int' is at least 32 bits
72013         wide, that integer arithmetic is 2's complement without overflow,
72014         that there are no holes in integer values, that adding sizes of
72015         two nonoverlapping objects can't overflow, and that all-bits-zero
72016         yields scalar zero.  Fix spelling and capitalization typos.
72017
72018 2003-09-19  Karl Berry  <karl@gnu.org>
72019
72020         * lib/argp.h: update from libc.
72021
72022 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72023
72024         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
72025         to avoid spurious warnings like "AC_RUN_IFELSE was called before
72026         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
72027
72028 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72029
72030         * gnulib-tool: Use "test -h", not "test -L", for portability
72031         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
72032         (tags_regexp): Remove, since \| doesn't conform to POSIX.
72033         (sed_extract_prog): Issue s commands one-by-one, rather than
72034         using \| in one s command.
72035
72036 2003-09-16  Paul Eggert  <eggert@twinsun.com>
72037
72038         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
72039         input error, instead of returning NULL the next time we are called
72040         (and therefore losing track of errno).
72041
72042 2003-09-16  Bruno Haible  <bruno@clisp.org>
72043
72044         * gnulib-tool (func_create_testdir): Warn about duplicated
72045         dependencies.
72046
72047 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72048
72049         * modules/argmatch, modules/fatal, modules/obstack,
72050         modules/xalloc, modules/xgethostname: Sort dependencies by
72051         importance, not alphabetically.
72052
72053 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72054
72055         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
72056         fails, so that the caller gets the proper errno.
72057
72058         * lib/readutmp.c (read_utmp): Likewise.
72059         Check for fstat error.  Close stream and free storage
72060         when failing.
72061
72062 2003-09-14  Karl Berry  <karl@gnu.org>
72063
72064         * config/srclist.txt (strdup.c): disable for c89 changes.
72065
72066 2003-09-14  Jim Meyering  <jim@meyering.net>
72067
72068         * lib/getloadavg.c: Correct cpp indentation.
72069         * lib/strdup.c: Likewise.
72070         * lib/vasnprintf.c: Likewise.
72071
72072 2003-09-14  Bruno Haible  <bruno@clisp.org>
72073
72074         * modules/fwriteerror: New file.
72075         * MODULES.html.sh (func_all_modules): Add fwriteerror.
72076
72077 2003-09-14  Bruno Haible  <bruno@clisp.org>
72078
72079         * lib/fwriteerror.h: New file.
72080         * lib/fwriteerror.c: New file.
72081
72082 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72083
72084         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
72085         modules/xgethostname, modules/xalloc: Depend on exit.
72086
72087 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72088
72089         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
72090
72091         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
72092         and AC_MINIX, too, so that their extensions are available.
72093
72094         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
72095         This macro has been superseded by gl_BACKUPFILE.
72096
72097         More patches to assume C89 or better.
72098
72099         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
72100
72101         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
72102         unconditionally.
72103         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
72104         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
72105         Include <string.h>, <stdlib.h> unconditionally.
72106         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
72107         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
72108         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
72109         headers or for string.h.
72110         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
72111         or strtoul.
72112
72113         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
72114         headers.
72115         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
72116         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72117         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
72118         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
72119         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72120         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
72121         memcpy, memset.
72122         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
72123         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
72124         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
72125         strtol.
72126         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
72127         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
72128         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
72129         strtoul.
72130
72131 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72132
72133         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
72134         * lib/obstack.c [!defined _LIBC]: Likewise.
72135         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
72136         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
72137         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
72138
72139         More changes to assume C89 or better.
72140
72141         * lib/error.c (error_tail): Assume vprintf.
72142
72143         * lib/argmatch.c (getenv): Remove decl.
72144         * lib/progreloc.c (get_full_program_name): Define via prototype.
72145         * lib/setenv.c (clearenv): Likewise.
72146         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
72147         needed.
72148         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
72149         (malloc, memcpy): Remove decls.
72150         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
72151         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
72152         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72153         (memcpy): Remove macro.
72154         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
72155         (__P): Remove.  All uses removed.
72156         (PTR): Remove.  All uses changed to void *.
72157         (CHAR_BIT, NULL): Remove.
72158         (spaces, zeros, memset_space, memset_zero)
72159         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
72160         Remove.
72161         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
72162         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
72163         Define with prototype.
72164         Remove now-unnecessary prototype decl.
72165         (extra_args_spec): Assume ANSI C.  All uses changed.
72166         (extra_args_spec_iso): Remove.
72167         (my_strftime, emacs_strftimeu): Define via prototype.
72168         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
72169         unconditionally.
72170         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
72171         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
72172         (strtoul, strtol): Remove decls.
72173         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
72174         LONG_MAX): Remove.
72175         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72176         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
72177         (LOCALE_PARAM_PROTO): New macro.
72178         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
72179         (INTERNAL (strtol), strtol): Define with a prototype.
72180         (PARAMS): Remove.  All uses removed.
72181         * lib/tempname.c: Include <string.h> unconditionally.
72182         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
72183         * lib/xgethostname.c (main): Define with a prototype.
72184         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
72185         Include <stdlib.h> unconditionally.
72186         (calloc, malloc, realloc, free): Remove decls.
72187         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
72188         Include <stdlib.h> unconditionally.  Sort include file names.
72189         (strtod): Remove.
72190         (xstrtod): Define with a prototype.
72191         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
72192         (strtol, strtoul): Remove decls.
72193
72194 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72195
72196         More patches to assume C89 or better.
72197         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
72198         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
72199         string.h, memchr, STDC_HEADERS.
72200
72201 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72202
72203         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
72204         Include <stdlib.h>, <string.h> unconditionally.
72205         Remove now-unnecessary cast to char *.
72206         * lib/strnlen.c: Include <string.h> unconditionally.
72207         * lib/yesno.c (yesno): Define with a prototype.
72208
72209 2003-09-11  Bruno Haible  <bruno@clisp.org>
72210
72211         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
72212
72213 2003-09-10  Jim Meyering  <jim@meyering.net>
72214
72215         * lib/error.c: Correct indentation of cpp directives.
72216
72217 2003-09-10  Bruno Haible  <bruno@clisp.org>
72218
72219         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
72220         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
72221         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
72222         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
72223         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
72224         <stdlib.h> and <string.h> checks.
72225         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
72226         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
72227
72228 2003-09-10  Bruno Haible  <bruno@clisp.org>
72229
72230         * lib/strcspn.c: Include <string.h> unconditionally.
72231         * lib/strpbrk.c: Include <string.h> unconditionally.
72232         * lib/strstr.c: Include <string.h> unconditionally.
72233         * lib/unicodeio.c: Include <string.h> unconditionally.
72234         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
72235         * lib/unsetenv.c: Likewise.
72236         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
72237         * lib/yesno.c: Include <stdlib.h> unconditionally.
72238         (rpmatch): Add prototype.
72239
72240 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72241
72242         More patches to assume C89 or better.
72243         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
72244         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
72245         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
72246         or for string.h.
72247         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
72248         stdlib.h.
72249         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
72250         C headers.
72251         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
72252         string.h.
72253         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
72254         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
72255         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
72256         or for string.h.
72257         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
72258         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
72259         C headers.
72260         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
72261         memcpy.
72262         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
72263         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
72264         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
72265         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
72266         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
72267         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
72268         string.h, free.
72269         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
72270         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
72271         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
72272         C headers, or for string.h.
72273         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
72274         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
72275         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
72276         headers, memory.h, stdlib.h, string.h, strings.h.
72277         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
72278         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
72279         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
72280         strchr.
72281         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
72282         headers, memory.h, string.h.
72283         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
72284         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
72285         free.
72286         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
72287         headers.
72288         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
72289         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
72290         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
72291         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
72292         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
72293
72294 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72295
72296         More K&R removal.
72297
72298         * lib/acosl.c (main): Use a prototype.
72299         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
72300         tanl.c: Likewise.
72301
72302         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
72303
72304         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
72305         (getopt, etopt_long, getopt_long_only, _getopt_internal)
72306         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
72307         with a prototype.
72308         * lib/getopt.c (const): Remove macro.
72309         Include <string.h> unconditionally.
72310         (my_index): Remove; all uses changed to strchr.
72311         (strlen): Remove decl.
72312         (exchange): Remove forward decl; no longer needed.
72313         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
72314         Define with prototype.
72315         * lib/getopt1.c (const): Remove macro.
72316         (getopt_long, getopt_long_only, main): Define with prototype.
72317
72318         * lib/getugroups.c: Include <string.h> unconditionally.
72319
72320         * lib/getusershell.c: Include <stdlib.h> unconditionally.
72321         (getusershell, setusershell, endusershell, readname, main):
72322         Define with prototypes.
72323
72324         * lib/group-member.c: Include group-member.h first.
72325         Include <stdlib.h> unconditionally.
72326
72327         * lib/hard-locale.c: Include hard-locale.h first.
72328         Include <stdlib.h>, <string.h> unconditionally.
72329
72330         * lib/hash.c (free, malloc): Remove decls.
72331         Include <stdlib.h> unconditionally.
72332
72333         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
72334         (getenv): Do not declare.
72335
72336         * lib/idcache.c: Include <string.h> unconditionally.
72337
72338         * lib/long-options.c: Include long-options.h first, to test interface.
72339         Include <stdlib.h> unconditionally.
72340
72341         * lib/makepath.c: Include makepath.h first, to test interface.
72342         Include <stdlib.h> and <string.h> unconditionally.
72343
72344         * lib/linebuffer.c: Include <stdlib.h>.
72345         (free): Remove decl.
72346
72347         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
72348         stddef.h. rpl_malloc returns void *, not char *.
72349         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
72350         prototype.
72351
72352         * lib/md5.h: Include <limits.h> unconditionally.
72353         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
72354         (__P): Remove; all uses removed.
72355         * lib/md5.c: Include "md5.h" first.
72356         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
72357         md5_buffer, md5_process_bytes, md5_process_block):
72358         Define with prototypes.
72359         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
72360         * lib/sha.c: Include "sha.h" first.
72361         Include <stdlib.h>, <string.h> unconditionally.
72362
72363         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
72364         * lib/memcmp.c (__ptr_t): Likewise.
72365         * lib/memrchr.c (__ptr_t): Likewise.
72366         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
72367         Include <string.h> unconditionally.
72368         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
72369         * lib/memchr.c: Include <stdlib.h> unconditionally.
72370         * lib/memchr.c (LONG_MAX): Remove.
72371         * lib/memrchr.c (LONG_MAX): Likewise.
72372         * lib/memchr.c (__memchr): Define via a prototype.
72373         * lib/memrchr.c (__memrchr): Likewise.
72374         * lib/memcmp.c (__P): Remove, and remove all uses.
72375         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
72376         Remove forward decls; no longer needed.
72377         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
72378         Use types required by C89 in prototype.
72379
72380         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
72381         * lib/savedir.c: Likewise.
72382         * lib/mkdir.c (free): Remove decl.
72383         * lib/rmdir.c (rmdir): Define with a prototype.
72384         * lib/savedir.c: Include savedir.h first, to test interface.
72385
72386         * lib/mktime.c (STDC_HEADERS): Remove.
72387         Include <stdlib.h>, <string.h> unconditionally.
72388
72389         * lib/modechange.c: Include <stdlib.h> unconditionally.
72390         (malloc): Remove decl.
72391
72392         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
72393         (free): Remove decl.
72394
72395         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
72396         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
72397         (This type really should be intptr_t, but that's a C99ism.)
72398         (_obstack_memcpy): Remove: all uses changed to memcpy.
72399         Include <string.h> unconditionally.
72400         (struct obstack): Assume __STDC__ for types of members
72401         chunkfun, freefun, extra_arg.
72402         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
72403         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
72404         obstack_begin, obstack_specify_allocation,
72405         obstack_specify_allocation_with_arg, obstack_chunkfun,
72406         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
72407         Remove unprototyped decls and the macros that use them.
72408         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
72409         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
72410         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
72411         (defined __STDC__ && __STDC__)]:
72412         Remove nonprototyped code.
72413         Include <stdlib.h> unconditionally.
72414         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
72415         _obstack_allocated_p, _obstack_free, obstack_free,
72416         _obstack_memory_used, print_and_abort):
72417         Define using prototypes.
72418         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
72419         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
72420         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
72421         obstack_next_free, obstack_object_size, obstack_room) [0]:
72422         Remove unused, unprototyped code.
72423
72424         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
72425
72426         * lib/physmem.c (physmem_total, physmem_available, main): Define
72427         with prototypes.
72428
72429         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
72430         (main): Define with a prototype.
72431
72432         * lib/posixver.c (getenv): Remove decl.
72433
72434         * lib/putenv.c (malloc): Returns void *, not char *.
72435         Include <string.h> unconditionally.
72436         (strchr, memcpy, NULL): Do not define.
72437
72438         * lib/readtokens.c: Include readtokens.h first, to test interface.
72439         Include <stdlib.h>, <string.h> unconditionally.
72440         (init_tokenbuffer): Define with a prototype.
72441
72442         * lib/regex.c (PARAMS): Remove.  All uses removed.
72443         All uses of _RE_ARGS removed, too.
72444         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72445         unconditionally.
72446         (bzero): Assume memset exists.
72447         (memcmp, memcpy, NULL): Remove.
72448         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
72449         char, or assignments to local vars of type signed char.
72450         (init_syntax_once, PREFIX(extract_number_and_incr),
72451         PREFIX(print_partial_compiled_pattern),
72452         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
72453         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
72454         PREFIX(regex_grow_registers), PREFIX(regex_compile),
72455         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
72456         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
72457         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
72458         wcs_compile_range, byte_compile_range, truncate_wchar,
72459         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
72460         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
72461         count_mbs_length, wcs_re_match_2_internal,
72462         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
72463         PREFIX(alt_match_null_string_p),
72464         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
72465         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
72466         regfree, PREFIX(extract_number)): Define with prototype.  Remove
72467         now-unnecessary declaration, if any.
72468         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
72469         regcomp, regexec):
72470         Remove now-unnecessary casts among pointer types.
72471         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
72472
72473         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
72474         (free): Remove decl.
72475
72476         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
72477
72478         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
72479         (free): Remove decl.
72480
72481         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
72482         * lib/xgetcwd.c: Likewise.
72483
72484         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
72485         (free): Remove decl.
72486
72487         * lib/strchrnul.c (strchrnul): Define with a prototype.
72488         Fix bug: c_in was not converted to char before searching.
72489
72490         The following changes are not K&R related:
72491
72492         * lib/group-member.h: Include <sys/types.h>, so that this file is
72493         self-contained.
72494         * lib/makepath.h: Likewise.
72495
72496         * lib/getusershell.c (readname, default_index, line_size, readname):
72497         Use size_t, not int, for sizes.
72498         (readname): If the size overflows, report an error instead of
72499         looping forever.
72500
72501 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72502
72503         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
72504         libc.
72505
72506 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72507
72508         * README: New section: portability guidelines.
72509
72510 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72511
72512         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
72513         C89 spec.
72514
72515 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72516
72517         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
72518
72519 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72520
72521         Assume C89 or better; remove K&R cruft.
72522         A few of these changes were first proposed by Derek Robert Price
72523         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
72524
72525         * lib/addext.c: Include <string.h> unconditionally.
72526         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
72527         Don't declare getenv or malloc.
72528
72529         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
72530         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
72531         (NULL): Remove.
72532         (find_stack_direction, alloca): Use prototypes.
72533
72534         * lib/atexit.c (atexit): Define using a prototype.
72535
72536         * lib/basename.c, dirname.c, stripslash.c:
72537         Include <string.h> unconditionally.
72538
72539         * lib/bcopy.c: Include <stddef.h>.
72540         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
72541
72542         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
72543
72544         * lib/error.h (error, error_at_line, error_print_progname)
72545         [! (defined (__STDC__) && __STDC__)]: Remove decls.
72546         * lib/error.c: Include error.h first, to check interface.
72547         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72548         (VA_START): Remove; all uses changeed to va_start.
72549         (exit, strerror): Remove decls.
72550         (error_print_progname): Prototype uncondionally.
72551         Don't include <errno.h>; no longer needed.
72552         (private_strerror): Remove.
72553         (error_tail): Always define.
72554         (error, error_at_line): Assume C89 or better; always use prototypes.
72555         * lib/fatal.c: Include "fatal.h" first, to test interface.
72556         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72557         (VA_START): Remove; all uses changed to va_start.
72558         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
72559         this case.
72560         (exit): Remove decl.
72561         (fatal): Prototype unconditionally.  Assume va_start works.
72562         Abort at end, to pacify gcc.
72563
72564         * lib/euidaccess.c (main): Define with a prototype.
72565
72566         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
72567
72568         * lib/exitfail.c: Include <stdlib.h> unconditionally.
72569
72570         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
72571         prototypes.
72572         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
72573         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
72574         (getenv): Remove decl.
72575         (fnmatch): Define using a prototype.
72576         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
72577         (FCT): Define using a prototype.
72578
72579         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
72580
72581         * lib/gethostname.c: Include <stddef.h>.
72582         (gethostname): Define with prototype.  Length is size_t, not int.
72583
72584 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72585
72586         Assume C89 or better; remove K&R cruft.
72587         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
72588         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
72589         string.h, getenv, malloc.
72590         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
72591         headers.
72592         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
72593         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
72594         do not check for strerror.
72595         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
72596         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
72597         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
72598         do not check for doprnt or vprintf.
72599         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
72600         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
72601
72602 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72603
72604         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
72605         getversion.c should have been removed then, but was accidentally
72606         preserved.
72607
72608         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
72609         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
72610
72611 2003-09-08  Karl Berry  <karl@gnu.org>
72612
72613         * config/config.sub, config.guess, srclistvars.sh: update from savannah
72614                 config, forget about prep.
72615
72616         * config/depcomp, missing: update from automake.
72617
72618 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72619
72620         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
72621         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72622
72623 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72624
72625         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
72626         copy_tm_result.  Bug reported by Simon Josefsson in
72627         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72628
72629 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72630
72631         * m4/time_r.m4: New file.
72632         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
72633         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
72634         is. Check for timegm declaration.
72635         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
72636         Do not check for gmtime_r.
72637         Replace mktime if __mktime_internal does not exist and if mktime
72638         hasn't been replaced already.
72639
72640 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72641
72642         * lib/time_r.c, lib/time_r.h: New files.
72643
72644         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
72645         __localtime_r.
72646         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
72647         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
72648
72649         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
72650         __gmtime_r.
72651         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
72652         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
72653         Include <time_r.h>.
72654
72655         * lib/timegm.c: Switch to glibc implementation, with the following
72656         changes:
72657         [defined HAVE_CONFIG_H]: Include <config.h>.
72658         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
72659         (__mktime_internal) [!defined _LIBC]: New decl.
72660         (__gmtime_r) [!defined _LIBC]: New macro and function.
72661         (timegm): Use a prototype, since gnulib assumes C89.
72662         Do not bother declaring tmp to be const, as it's not really usefu.
72663         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
72664         (timegm): Declare only if HAVE_DECL_TIMEGM.
72665
72666 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72667
72668         * MODULES.html.sh (func_all_modules): Add time_r.
72669         * modules/time_r: New file.
72670         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
72671         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
72672
72673 2003-09-03  Paul Eggert  <eggert@twinsun.com>
72674
72675         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
72676         Bug reported by Lute Kamstra in
72677         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
72678
72679         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
72680         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
72681         course with correspondingly smaller numbers for tomorrow and
72682         yesterday.  From Tadayoshi Funaba.  Originally installed into
72683         sh-utils on 1999-08-07, but the patch got lost (I guess during the
72684         coreutils merge?).
72685
72686 2003-08-31  Simon Josefsson  <jas@extundo.com>
72687
72688         * modules/timegm: New file.
72689         * MODULES.html.sh (func_all_modules): Add timegm.
72690
72691 2003-08-31  Simon Josefsson  <jas@extundo.com>
72692
72693         * m4/timegm.m4: New file.
72694
72695 2003-08-31  Simon Josefsson  <jas@extundo.com>
72696
72697         * lib/timegm.h: New file.
72698         * lib/timegm.c: New file.  Based on
72699         wget-1.8.2/src/http.c:mktime_from_utc.
72700
72701 2003-08-31  Karl Berry  <karl@gnu.org>
72702
72703         * lib/argp.h: update from libc.
72704
72705 2003-08-28  Bruno Haible  <bruno@clisp.org>
72706
72707         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
72708         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
72709         followed by '#define fnmatch fnmatch_posix' gives an error.
72710
72711 2003-08-28  Bruno Haible  <bruno@clisp.org>
72712
72713         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
72714         warning on QNX, which defines O_BINARY to 000000.
72715
72716 2003-08-27  Jim Meyering  <jim@meyering.net>
72717
72718         * m4/mkstemp.m4: Require that the system mkstemp be able to create
72719         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
72720         would fail after 32.  Reported by Danny Levinson.  Details here:
72721         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
72722
72723 2003-08-24  Bruno Haible  <bruno@clisp.org>
72724
72725         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
72726         MSVC7 <stdio.h> is included later.
72727
72728 2003-08-22  Simon Josefsson  <jas@extundo.com>
72729
72730         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
72731
72732 2003-08-20  Karl Berry  <karl@gnu.org>
72733
72734         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
72735
72736 2003-08-20  Bruno Haible  <bruno@clisp.org>
72737
72738         * modules/progname: New file.
72739         * MODULES.html.sh (func_all_modules): Add progname.
72740
72741 2003-08-20  Bruno Haible  <bruno@clisp.org>
72742
72743         * lib/progname.h: New file, from GNU gettext.
72744         * lib/progname.c: New file, from GNU gettext.
72745         * lib/progreloc.c: New file, from GNU gettext.
72746
72747 2003-08-19  Jim Meyering  <jim@meyering.net>
72748
72749         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
72750         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
72751
72752 2003-08-19  Bruno Haible  <bruno@clisp.org>
72753
72754         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
72755         more.
72756
72757 2003-08-19  Bruno Haible  <bruno@clisp.org>
72758
72759         * lib/xstrdup.c: Assume <string.h> exists.
72760
72761 2003-08-18  Paul Eggert  <eggert@twinsun.com>
72762
72763         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
72764         in makefile rules.
72765
72766 2003-08-18  Jim Meyering  <jim@meyering.net>
72767
72768         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
72769         * m4/lib-ld.m4: Likewise.
72770
72771 2003-08-18  Jim Meyering  <jim@meyering.net>
72772
72773         * lib/setenv.h: Indent nested cpp directive.
72774         * lib/vasnprintf.c: Remove trailing blanks.
72775
72776 2003-08-17  Simon Josefsson  <jas@extundo.com>
72777
72778         * modules/xstrndup: New file.
72779         * MODULES.html.sh (func_all_modules): Add xstrndup.
72780
72781 2003-08-17  Simon Josefsson  <jas@extundo.com>
72782
72783         * modules/argp: Fix autoconf macro name. Add more dependencies.
72784
72785 2003-08-17  Simon Josefsson  <jas@extundo.com>
72786
72787         * m4/xstrndup.m4: New file.
72788
72789 2003-08-17  Simon Josefsson  <jas@extundo.com>
72790
72791         * m4/argp.m4: New file.
72792
72793 2003-08-17  Simon Josefsson  <jas@extundo.com>
72794             Bruno Haible  <bruno@clisp.org>
72795
72796         * lib/xstrndup.h: New file.
72797         * lib/xstrndup.c: New file.
72798
72799 2003-08-17  Bruno Haible  <bruno@clisp.org>
72800
72801         * modules/strndup (Files, Include): Add lib/strndup.h.
72802
72803 2003-08-17  Bruno Haible  <bruno@clisp.org>
72804
72805         * modules/euidaccess (Files): Add lib/euidaccess.h.
72806
72807 2003-08-17  Bruno Haible  <bruno@clisp.org>
72808
72809         * lib/strndup.h: New file.
72810
72811 2003-08-17  Bruno Haible  <bruno@clisp.org>
72812
72813         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
72814         like AC_GNU_SOURCE.
72815         * modules/extensions (configure.ac): Comment out the invocation of
72816         gl_USE_SYSTEM_EXTENSIONS.
72817
72818 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72819
72820         Merges from coreutils, etc.
72821         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
72822         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
72823         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
72824         fixing a typo.
72825         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
72826         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
72827
72828 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72829
72830         Document merge from coreutils.
72831         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
72832         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
72833         * modules/utime: Add m4/utimes-null.m4.
72834
72835 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72836
72837         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
72838         space, undoing this 2003-08-12 change:
72839         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72840
72841 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72842
72843         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
72844         strtoul.c from libc, undoing this 2003-08-12 change:
72845         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72846
72847 2003-08-16  Jim Meyering  <jim@meyering.net>
72848
72849         Merges from coreutils.
72850         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
72851         prefix.  Adjust cache variables similarly.  Create 500 rather than
72852         just 300 files, to exercise bug on Darwin6.5, too.
72853         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
72854         $missing_dir.
72855         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
72856         AM_SYS_POSIX_TERMIOS.
72857         Reported by mkc@mathdogs.com.
72858         Also change use of $am_cv_sys_posix_termios
72859         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
72860         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
72861         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
72862         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
72863         in /proc/mounts until it finds one with matching device number.  This
72864         is unnecessary when the FILE argument *is* a mount point.  No stat call
72865         is necessary in that case.  So, disable the statvfs-testing code on
72866         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
72867         as RedHat bug# 84846.
72868         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72869         to 1MB, so as not to render systems with no stack size limit (e.g.,
72870         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72871         Include <unistd.h>.  On some systems,
72872         it is required for the definition of _SC_PAGESIZE.
72873
72874 2003-08-16  Jim Meyering  <jim@meyering.net>
72875
72876         Merge from coreutils.
72877         * lib/xstrtoimax.c: #else #if -> #elif.
72878         * lib/xstrtoumax.c: Likewise.
72879
72880 2003-08-16  Jim Meyering  <jim@meyering.net>
72881
72882         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
72883         * m4/utimes.m4: Removed.
72884         * m4/utimes-null.m4: Renamed from utimes.m4.
72885
72886         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72887         to 1MB, so as not to render systems with no stack size limit (e.g.,
72888         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72889         Include <unistd.h>.  On some systems,
72890         it is required for the definition of _SC_PAGESIZE.
72891
72892 2003-08-16  Jim Meyering  <jim@meyering.net>
72893         and Paul Eggert  <eggert@cs.ucla.edu>
72894
72895         Merges from coreutils, etc.
72896
72897         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
72898         using the latest version from cvs.  This avoids problems with #line
72899         directives using a vendor (Sun) compiler.
72900         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
72901         Don't set GETGROUPS_LIB here; now it's
72902         done via getgroups.m4's wrapper function.
72903         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
72904         rather than just in sh-util/configure.in, so that the
72905         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
72906         same.
72907         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
72908         AC_FUNC_GETLOADAVG where to find getloadavg.c.
72909         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
72910         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
72911         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
72912         Remove code that is now done by the newly-required macros.
72913         Append $(EXEEXT) to DF_PROG.
72914         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
72915         Do not invoke or require the following here,
72916         since prereq.m4 or some gnulib .m4 now does this for us:
72917         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
72918         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
72919         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
72920         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
72921         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
72922         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
72923         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
72924         AC_FUNC_OBSTACK.
72925         Do not replace the following functions, as this is now the job
72926         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
72927         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
72928         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
72929         atexit getpass, strdup, getpagesize.
72930         Replace 'raise'.
72931         Do not check for the following functions, as this is now the job
72932         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
72933         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
72934         setregid.
72935         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
72936         Check for sys/sysctl.h.
72937         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
72938         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
72939         of checking for ssize_t ourselves.
72940
72941         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
72942         Require every macro that gnulib/modules/* suggests for us.
72943         (jm_PREREQ_ADDEXT): New macro.
72944         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
72945         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
72946
72947         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
72948         (gl_PHYSMEM): Use it.
72949         Also check for `table' function.
72950         Check for new headers and functions.
72951         Add check for sys/sysmp.h.
72952         With suggestions from Kaveh Ghazi.
72953         Ignore headers that are present but cannot be compiled.  This
72954         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
72955         C 5.4.
72956
72957 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72958
72959         Document merge from coreutils.
72960         * modules/userspec: Depend on posixver.
72961         * modules/strftime: Depend on tzset.
72962
72963 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72964
72965         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
72966         rather than tab, after '#' in shell-script copyright notices.
72967         Suggested by Bruno Haible.
72968
72969 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72970
72971         * config/srclist-update: Use three spaces, rather than tab, after '#'
72972         in shell-script copyright notices.  Suggested by Bruno Haible.
72973         Remove unnecessary parenthesization in regular expression.
72974
72975 2003-08-15  Jim Meyering  <jim@meyering.net>
72976
72977         Merge from coreutils.
72978         * lib/xgethostname.c: Include <stdlib.h>.
72979         (xghostname): Don't exit for anything other than memory-related
72980         failure; just return NULL.
72981         * lib/userspec.c: Include "posixver.h".
72982         (parse_user_spec): Accept `.' as a separator only
72983         in pre-POSIX-200112 mode.
72984         * lib/strtoimax.c: Use #elif rather than #else #if.
72985         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
72986         Remove function, now that we can rely on a working tzset function.
72987         [!_LIBC]: Ensure that the required autoconf test has been run.
72988         [!defined _NL_CURRENT && HAVE_STRFTIME]:
72989         Use underlying_strftime for %r.
72990         * lib/sha.c: Merge in some clean-up and optimization changes from
72991         glibc.
72992         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
72993         Ensure that it is a multiple of 64.
72994         Rearrange loop exit tests so as to avoid performing an
72995         additional fread after encountering an error or EOF.
72996         * lib/realloc.c: Update copyright date.
72997
72998 2003-08-15  Jim Meyering  <jim@meyering.net>
72999         and Paul Eggert  <eggert@twinsun.com>
73000
73001         Merge from coreutils.
73002         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
73003         member but strut utmpx does not.  Needed for AIX 4.3.3.
73004         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
73005
73006 2003-08-15  Jim Meyering  <jim@meyering.net>
73007         and Paul Eggert  <eggert@cs.ucla.edu>
73008
73009         Merges from coreutils, etc.
73010         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
73011         Require gl_FUNC_TZSET_CLOBBER.
73012         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
73013         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
73014         members.
73015
73016 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73017
73018         Help the merge from coreutils.
73019         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
73020         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
73021         * m4/tzset.m4: Use it too.
73022
73023 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73024
73025         * modules/tzset: New file.
73026
73027 2003-08-14  Jim Meyering  <jim@meyering.net>
73028
73029         Merges from coreutils.
73030         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
73031         variable names, rather than @FNMATCH_H@.
73032         * modules/alloca: Likewise for $(ALLOCA_H).
73033
73034         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
73035         the three copies of the literal target, `fnmatch.h'.
73036         * modules/alloca (alloca.h): Likewise.
73037
73038 2003-08-14  Jim Meyering  <jim@meyering.net>
73039
73040         Merge from coreutils.
73041         * m4/tzset.m4: New file.
73042         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
73043         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
73044         otherwise, AIX 5.1 systems would end up using the latter.
73045         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
73046         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
73047         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
73048         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
73049
73050 2003-08-14  Jim Meyering  <jim@meyering.net>
73051
73052         Merge from coreutils.
73053         * lib/obstack.h: Whitespace changes.
73054         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
73055         and xcalloc return values.
73056         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
73057         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
73058         hang on OSF/1 5.1 for DIR on both local and remote file systems.
73059         Reported by (and fix confirmed by) Nelson H. F. Beebe.
73060         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73061         error from mntctl.
73062         Use mntctl's return value to drive the entry-processing loop, since
73063         we can't rely on the value of the vmt_length member in the last
73064         entry.  On some systems doing so could result in exhausting
73065         virtual memory.  Based in part on a patch from Mike Jetzer.
73066
73067 2003-08-14  Jim Meyering  <jim@meyering.net>
73068         and Paul Eggert  <eggert@twinsun.com>
73069
73070         Merges from coreutils, plus other fixes.
73071         * lib/physmem.c: Merge in portability changes from gcc/libiberty
73072         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
73073         for credits and details.  Thanks to Kaveh Ghazi for helping
73074         to keep these files in sync.
73075         (ARRAY_SIZE): Define it.
73076         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
73077         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
73078         (memcasecmp): Don't assume size_t fits in unsigned int.
73079         Remove casts and duplicate code.
73080         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
73081         (memcpy): Remove definition.
73082         Merge in some clean-up and optimization changes from glibc.
73083         [BLOCKSIZE]: Move definition to top of file.
73084         Ensure that it is a multiple of 64.
73085         Rearrange loop exit tests so as to avoid performing an
73086         additional fread after encountering an error or EOF.
73087         * lib/md5.h (md5_uintptr): Define.
73088         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
73089         return to the initial working directory.  Preserve errno
73090         for caller.
73091         * lib/idcache.c: Include "xalloc.h".
73092         (xmalloc, xrealloc): Remove decls.
73093         (getuser): Remove casts no longer required in C89.
73094         * lib/human.c: Include stdio.h, for sprintf.
73095         * lib/group-member.c: Include "xalloc.h".
73096         (xmalloc, xrealloc): Remove decls.
73097         (get_group_info): Remove casts no longer required in C89.
73098         * lib/getusershell.c (readname): Remove casts no longer required in
73099         C89.
73100         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
73101         * lib/getline.c: Whitespace fix, from coreutils.
73102
73103 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73104
73105         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
73106         Check for isascii.
73107
73108         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73109         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73110         Undo previous (whitespace-only) change.
73111
73112 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73113
73114         * lib/exclude.c: Include <ctype.h>
73115         (IN_CTYPE_DOMAIN): New macro.
73116         (is_space): New fn.
73117         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
73118         and empty lines.
73119
73120         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73121         Undo previous (whitespace-only) change.
73122
73123 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73124
73125         * config/srclist-update: Change update back to the old behavior,
73126         leaving whitespace alone.  Use one 'sed' command rather than a
73127         pipeline.
73128         (fixlicense): Now a variable, not a function.
73129         (remove_trailing_blanks): Remove.
73130         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
73131         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73132         Undo previous (whitespace-only) change.
73133
73134 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73135
73136         Merge from coreutils.
73137         * modules/euidaccess: Add lib_SOURCES, include for new
73138         file euidaccess.h
73139
73140 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73141
73142         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73143         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73144         Normalize leading white space and remove trailing white space.
73145
73146         Merge from coreutils
73147         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
73148
73149         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
73150         0.12.1.  These files are now being upgraded automatically by
73151         ../config/srclist-update.
73152
73153 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73154
73155         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73156         Normalize leading white space and remove trailing white space.
73157         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
73158         notice, as per ../config/srclist-update.
73159
73160         Merge from coreutils.
73161         * lib/euidaccess.h: New file.
73162         * lib/euidaccess.c: Include it.
73163         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
73164         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
73165         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
73166
73167 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73168
73169         * config/srclist-update: Add copyright notice.
73170         (remove_id_lines, remove_trailing_blanks): New constants.
73171         (fixfile): Use them to normalize spacing a bit in copied files.
73172         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73173         Normalize leading white space and remove trailing white space.
73174
73175         * config/texinfo.tex: Sync with texinfo.
73176
73177         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
73178         strtoul.c from libc, to merge coreutils whitespace changes.
73179
73180         * config/srclist.txt: Get the following m4 files from gettext:
73181         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
73182         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
73183         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
73184         wint_t.m4.
73185
73186 2003-08-12  Karl Berry  <karl@gnu.org>
73187
73188         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
73189         been made.
73190
73191 2003-08-11  Paul Eggert  <eggert@twinsun.com>
73192
73193         * modules/gnu-source, m4/gnu-source.m4:
73194         Remove; we're assuming Autoconf 2.54 or later now.
73195         Suggested by Bruno Haible.
73196         * MODULES.html.sh (func_all_modules): Remove gnu-source.
73197
73198 2003-08-11  Bruno Haible  <bruno@clisp.org>
73199
73200         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
73201
73202 2003-08-11  Bruno Haible  <bruno@clisp.org>
73203
73204         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
73205         (vasnprintf): Use it instead of wcslen.
73206
73207 2003-08-11  Bruno Haible  <bruno@clisp.org>
73208
73209         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
73210         value to ensure that _Bool promotes to int. Use #define for _Bool when
73211         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
73212
73213 2003-08-10  Karl Berry  <karl@gnu.org>
73214
73215         * lib/regex.h: update from libc (whitespace fix).
73216
73217 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73218
73219         Merge some files from coreutils.  These changes were
73220         originally made by Jim Meyering.
73221         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
73222         many older Unixes require this.
73223         * lib/alloca.c (alloca): Remove cast to argument of free;
73224         no longer needed in C89.
73225         * lib/alloca_.h, regex.h: Fix white space to match
73226         what GNU indent does.
73227
73228 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73229
73230         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
73231         apparently Emacs's Unicode mode got confused before my 2003-08-05
73232         checkin.
73233
73234 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73235
73236         * m4/extensions.m4: New file.
73237         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
73238         Require gl_USE_SYSTEM_EXTENSIONS.
73239         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
73240         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
73241
73242 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73243
73244         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
73245         * modules/extensions, modules/gnu-source: New files.
73246         * modules/timespec, modules/unlocked-io: Depend on extensions.
73247
73248 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73249
73250         * modules/restrict: New file.
73251         * MODULES.html.sh (func_all_modules): Add restrict.
73252         * modules/regex: Depend on restrict.
73253
73254 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73255
73256         * m4/restrict.m4: New file.
73257         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
73258
73259 2003-08-07  Bruno Haible  <bruno@clisp.org>
73260
73261         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
73262         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
73263
73264 2003-08-07  Bruno Haible  <bruno@clisp.org>
73265
73266         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
73267         makes the module 'getndelim2' compatible with the module 'getline'.
73268
73269 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73270
73271         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
73272         byte with "\201" to avoid glitches when editing that source file
73273         with multi-gnome-terminal.
73274
73275 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73276
73277         * lib/bumpalloc.h: Remove.
73278
73279 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73280
73281         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
73282         * modules/bumpalloc: Remove.
73283
73284 2003-08-04  Paul Eggert  <eggert@twinsun.com>
73285
73286         * lib/getloadavg.c: Change copyright notice and spacing to conform to
73287         GNU coding style.
73288
73289         Merge from coreutils.
73290         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
73291         1. From glibc.
73292         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
73293         from Karl Berry, implemented by Jim Meyering.
73294         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
73295         from Dmitry V. Levin.
73296         Remove anachronistic cast of xrealloc.
73297         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
73298         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
73299         type. Otherwise, it wouldn't compile with at least /bin/cc on
73300         ymp-cray-unicos9.0.2.X.
73301         Combine two mostly-identical uses of alloca into one.
73302         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
73303
73304 2003-08-04  Dave Love  <d.love@dl.ac.uk>
73305
73306         [From Emacs.]
73307
73308         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
73309         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
73310         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
73311         obsolete NLIST_NAME_UNION.
73312         [__GNU__]: Undef BSD and FSCALE.
73313         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
73314
73315 2003-08-03  Paul Eggert  <eggert@twinsun.com>
73316
73317         * lib/stdbool_.h (_Bool): Make it signed char, instead of
73318         an enum type, so that it's guaranteed to promote to int.  See:
73319         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
73320
73321 2003-08-03  Karl Berry  <karl@gnu.org>
73322
73323         * config/depcomp: update from automake.
73324
73325 2003-07-31  Paul Eggert  <eggert@twinsun.com>
73326
73327         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
73328         (strerror): Don't assume that a printable int fits in 14 bytes.
73329
73330 2003-07-31  Bruno Haible  <bruno@clisp.org>
73331
73332         * modules/getpass-gnu: New file.
73333         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
73334
73335 2003-07-31  Bruno Haible  <bruno@clisp.org>
73336
73337         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
73338
73339 2003-07-24  Karl Berry  <karl@gnu.org>
73340
73341         * config/missing: update from automake.
73342
73343 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
73344             Bruno Haible  <bruno@clisp.org>
73345
73346         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
73347         * lib/getline.c (getline, getdelim): Likewise.
73348         Remove _GNU_SOURCE define; now it's defined in config.h through
73349         m4/getline.m4.
73350
73351 2003-07-23  Karl Berry  <karl@gnu.org>
73352
73353         * config/config.sub: update from prep.
73354
73355 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73356
73357         * modules/xalloc (Depends-on): Add exitfail.
73358         * modules/xmemcoll: Likewise.
73359
73360 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73361
73362         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
73363         over-parenthesization in macros.
73364
73365         Sync with coreutils.
73366
73367         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
73368         required by C99.
73369
73370         Use `exit_failure' for xalloc and xmemcoll instead of their own
73371         private exit-failure variables.
73372         * lib/xalloc.h (xalloc_exit_failure): Remove.
73373         * lib/xmalloc.c: Likewise.  Include exitfail.h.
73374         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
73375         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
73376         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
73377         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
73378
73379 2003-07-20  Jim Meyering  <jim@meyering.net>
73380
73381         * modules/closeout (Depends-on): Add exitfail.
73382         Suggestion from Bruno Haible.
73383
73384 2003-07-19  Karl Berry  <karl@gnu.org>
73385
73386         * config/config.sub: update from prep.
73387
73388 2003-07-18  Paul Eggert  <eggert@twinsun.com>
73389
73390         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
73391         Remove.
73392         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
73393         to test that it can stand by itself.  Include "exitfail.h".
73394         Clients should set exit_failure instead.
73395         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
73396
73397 2003-07-18  Bruno Haible  <bruno@clisp.org>
73398
73399         * modules/getndelim2: New file.
73400         * modules/getline: Share files with module getndelim2.
73401         * modules/getnline: Depend on getndelim2 instead of sharing files with
73402         it. Add getnline.c to lib_SOURCES.
73403         * MODULES.html.sh (func_all_modules): Add getndelim2.
73404
73405 2003-07-18  Bruno Haible  <bruno@clisp.org>
73406
73407         * m4/getndelim2.m4: New file.
73408         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
73409         invoke gl_PREREQ_GETNDELIM2.
73410         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
73411         gl_PREREQ_GETNDELIM2.
73412         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
73413         gl_GETNDELIM2.
73414
73415 2003-07-18  Bruno Haible  <bruno@clisp.org>
73416
73417         * lib/getndelim2.h: New file.
73418         * lib/getndelim2.c: Make into a module of its own. Include config.h,
73419         getndelim2.h.
73420         (getndelim2): Make non-static. Change return type to ssize_t.
73421         * lib/getline.h: Change argument names.
73422         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
73423         * lib/getnline.c: Include getndelim2.h.
73424
73425 2003-07-18  Andreas Schwab  <schwab@suse.de>
73426
73427         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
73428
73429 2003-07-17  Karl Berry  <karl@gnu.org>
73430
73431         * config/config.sub: update from prep.
73432
73433 2003-07-17  Bruno Haible  <bruno@clisp.org>
73434
73435         * modules/getnline: New file.
73436         * modules/getline: Add lib/getndelim2.c to source file list.
73437         * MODULES.html.sh (func_all_modules): Add getnline.
73438
73439 2003-07-17  Bruno Haible  <bruno@clisp.org>
73440
73441         * m4/getnline.m4: New file.
73442
73443 2003-07-17  Bruno Haible  <bruno@clisp.org>
73444
73445         * m4/Makefile.am.in: Remove file.
73446         * m4/Makefile.am: Remove file.
73447         * m4/Makefile.in: Remove file.
73448
73449 2003-07-17  Bruno Haible  <bruno@clisp.org>
73450
73451         * lib/getnline.h: New file.
73452         * lib/getnline.c: New file.
73453         * lib/getndelim2.c: New file, extracted from getline.c.
73454         (getndelim2): Renamed from getdelim2, with added nmax argument.
73455         * lib/getline.c: Include getndelim2.c.
73456         (getdelim2): Moved out to getndelim2.c.
73457         (getline, getdelim): Update.
73458
73459 2003-07-17  Bruno Haible  <bruno@clisp.org>
73460
73461         * lib/Makefile.am: Remove file.
73462         * lib/Makefile.in: Remove file.
73463
73464 2003-07-17  Bruno Haible  <bruno@clisp.org>
73465
73466         * configure.in: Remove file.
73467         * Makefile.in: Remove file.
73468
73469 2003-07-17  Bruno Haible  <bruno@clisp.org>
73470
73471         * MODULES.html.sh: Put the </BODY> right before </HTML>.
73472
73473 2003-07-16  Karl Berry  <karl@gnu.org>
73474
73475         * config/srclist-update: was running fixlicense twice, which caused
73476                 texinfo.tex to be nullified for some reason.  Simplify,
73477                 $gplsrc is no longer needed as far as I can see?
73478
73479 2003-07-16  Jim Meyering  <jim@meyering.net>
73480
73481         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
73482
73483 2003-07-15  Paul Eggert  <eggert@twinsun.com>
73484
73485         * config/srclist.txt: Get the following files from gettext-runtime/intl
73486         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
73487         ref-del.sin.  From Bruno Haible.
73488         * config/srclist-update (fixfile): Change grep pattern again, since the
73489         previous fix didn't work (there was another trailing $).  Use
73490         '[$]' to escape the $s.
73491
73492 2003-07-15  Karl Berry  <karl@gnu.org>
73493
73494         * lib/vasnprintf.c: update from gettext.
73495
73496 2003-07-15  Karl Berry  <karl@gnu.org>
73497
73498         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
73499         gets expanded when surrounded by '$'.
73500
73501 2003-07-15  Jim Meyering  <jim@meyering.net>
73502
73503         * modules/save-cwd: Don't depend on error.  From Derek Price.
73504
73505 2003-07-15  Jim Meyering  <jim@meyering.net>
73506
73507         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
73508
73509 2003-07-14  Simon Josefsson  <jas@extundo.com>
73510
73511         * modules/mempcpy: New file.
73512         * MODULES.html.sh (func_all_modules): Add mempcpy.
73513
73514 2003-07-14  Simon Josefsson  <jas@extundo.com>
73515
73516         * m4/mempcpy.m4: New file.
73517
73518 2003-07-14  Simon Josefsson  <jas@extundo.com>
73519
73520         * lib/mempcpy.h: New file.
73521         * lib/mempcpy.c: New file.
73522
73523 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73524
73525         * modules/getdate, modules/posixtm: Depend on mktime.
73526
73527 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73528
73529         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
73530         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
73531         unicodeio.c, unicodeio.h, unlocked-io.h:
73532         Switch from LGPL to GPL.
73533
73534 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73535
73536         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
73537         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
73538         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
73539         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
73540         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
73541         updated automatically by ../config/srclist-update.  This changes
73542         their license from LPGL to GPL.
73543
73544 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73545
73546         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
73547         assumed to refer to the root of the most recent stable gettext version.
73548         * config/srclistvars.sh: Add defaults for eggert.
73549         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
73550         Match "This program" as well as "The program".  This is needed
73551         for gettext.
73552
73553 2003-07-14  Jim Meyering  <jim@meyering.net>
73554
73555         Don't emit diagnostics.  Let callers do that.
73556         * lib/save-cwd.c: Don't include "error.h".
73557         (save_cwd): Don't call error.  Ensure that errno is valid
73558         when returning nonzero.
73559
73560         * lib/save-cwd.h (restore_cwd): Update prototype.
73561         * lib/save-cwd.c (restore_cwd): Remove two parameters.
73562         Simplify.  Don't call error upon failure.  Let callers do that.
73563         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
73564         when auditing is enabled.  But don't bother updating the #if.
73565
73566 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
73567
73568         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
73569         it breaks C++ compilation.
73570         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
73571
73572 2003-07-10  Simon Josefsson  <jas@extundo.com>
73573
73574         * modules/strchrnul (Makefile.am): Add strchrnul.h.
73575
73576 2003-07-10  Jim Meyering  <jim@meyering.net>
73577
73578         * m4/clock_time.m4: Remove trailing blank.
73579         * m4/intmax_t.m4: Likewise.
73580
73581 2003-07-10  Jim Meyering  <jim@meyering.net>
73582
73583         * lib/vasnprintf.c: Remove trailing blanks.
73584         Make cpp indentation consistent.
73585
73586 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73587
73588         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
73589         posixver.c, strftime.c, strnlen.c, strverscmp.c:
73590         Switch from LGPL to GPL.
73591
73592 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73593
73594         * config/srclist.txt: Sort sublists.  Add
73595         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
73596         that differ from gnulib for one reason or another; we'd like this list
73597         to be smaller but for now let's document what we have.
73598
73599 2003-07-08  Paul Eggert  <eggert@twinsun.com>
73600
73601         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
73602         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
73603         and sweeter "eval x=$x".
73604         * config/srclist.txt: Get lib/argp* from glibc.
73605
73606 2003-07-07  Paul Eggert  <eggert@twinsun.com>
73607
73608         * lib/mktime.c: Fix some boundary cases and remove need for floating
73609         point.
73610
73611         Issue a compile-time diagnostic if time_t is floating point, or if
73612         two's complement arithmetic is not in effect, or if arithmetic
73613         right shift does not propagate the sign.  These assumptions were
73614         all in the original code but they weren't checked.
73615
73616         (TIME_T_MIDPOINT, verify): New macros.
73617         (__isleap): Remove; it has integer overflow problems.
73618         (leapyear): New function, without those problems.
73619         (ydhms_tm_diff): Remove; splitting into two parts.
73620         (ydhms_diff): New function, containing the arithmetic part of
73621         the old ydhms_tm_diff function.  Issue a compile-time
73622         diagnostic if we are not using C99 integer division.
73623         Avoid casts when possible.
73624         (guess_time_tm): New function, containing the checking part of
73625         the old ydhms_tm_diff function.  Return the new value, rather than
73626         the difference between it and the old.  Accept a new argument T
73627         so that *T specifies the old value.  Check for overflow in the result.
73628
73629         (__mktime_internal): Use a time_t offset, not a long int offset.
73630         This undoes the 2003-06-04 change, which is no longer needed now
73631         that we have better overflow checking.
73632         (localtime_offset): Likewise.
73633
73634         (__mktime_internal): Avoid harmful overflow on hosts where time_t
73635         and long are 64-bit but int is only 32-bit.
73636         (ydhms_diff): Use long int to store year1 and yday1.
73637         Issue a compile-time diagnostic if long int is not wide enough.
73638
73639         (__mktime_internal): Use long int to store adjusted year and yday.
73640         Use plain C rather than preprocessor commands, if that doesn't
73641         affect efficiency.
73642         Check for overflow (and try to repair) after each probe
73643         rather than checking only at the very end.  This avoids some bugs
73644         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
73645         does not equal GMT offset at maximum time).
73646         Use integer to check for overflow rather than floating point; this
73647         is more portable to non-IEEE hosts, and is a tad faster.
73648         When we detect that we are oscillating between two values,
73649         don't check whether tm_isdst has the requested value, since
73650         we already know the answer.  When tm_isdst has the wrong value,
73651         use a different heuristic to find the right one, based on the
73652         extreme values actually observed in practice in tz2003a,
73653         rather than the (overly optimistic) "previous 3 calendar quarters".
73654
73655         (not_equal_tm, print_tm, check_result): Use "const T" rather than
73656         "T const" to accommodate glibc style.
73657         (check_result): Use less-confusing report format.  "long" -> "long int.
73658         (main): Likewise.
73659         Don't loop if the iteration overflows time_t.
73660         Allow a negative step in the iteration.
73661
73662 2003-07-06  Karl Berry  <karl@gnu.org>
73663
73664         * config/depcomp: update from automake.
73665         * config/config.sub: update from prep.
73666
73667 2003-07-03  Karl Berry  <karl@gnu.org>
73668
73669         * config/config.guess: update from prep.
73670
73671 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73672
73673         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
73674         xreadlink.c now includes it unconditionally.
73675
73676 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73677
73678         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
73679         having it depend on HAVE_SYS_TYPES_H.
73680
73681 2003-07-01  Bruno Haible  <bruno@clisp.org>
73682
73683         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
73684         <sys/types.h> should be sufficient.
73685         Reported by Paul Eggert.
73686
73687 2003-06-26  Karl Berry  <karl@gnu.org>
73688
73689         * config/depcomp: update from automake.
73690
73691 2003-06-26  Bruno Haible  <bruno@clisp.org>
73692
73693         * modules/human: Depend on module stdbool.
73694
73695 2003-06-25  Bruno Haible  <bruno@clisp.org>
73696
73697         * modules/readlink: New file.
73698         * modules/xreadlink: Depend on it.
73699         * MODULES.html.sh (func_all_modules): Add readlink.
73700
73701 2003-06-25  Bruno Haible  <bruno@clisp.org>
73702
73703         * m4/readlink.m4: New file.
73704
73705 2003-06-25  Bruno Haible  <bruno@clisp.org>
73706
73707         * lib/readlink.c: New file.
73708
73709 2003-06-22  Karl Berry  <karl@gnu.org>
73710
73711         * config/srclist.txt: update mkinstalldirs from automake.
73712         * config/mkinstalldirs: update.
73713
73714 2003-06-22  Bruno Haible  <bruno@clisp.org>
73715
73716         Portability to mingw32.
73717         * m4/ssize_t.m4: New file, from GNU gettext.
73718         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
73719         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
73720
73721 2003-06-22  Bruno Haible  <bruno@clisp.org>
73722
73723         * modules/safe-read: Add m4/ssize_t.m4.
73724         * modules/xreadlink: Add m4/ssize_t.m4.
73725
73726 2003-06-20  Bruno Haible  <bruno@clisp.org>
73727
73728         Assume C89, so PARAMS isn't needed.
73729         * lib/unicodeio.h (PARAMS): Remove.
73730         * lib/unicodeio.c: Don't use PARAMS.
73731
73732 2003-06-18  Karl Berry  <karl@gnu.org>
73733
73734         * config/config.{guess,sub}: update from prep.
73735
73736 2003-06-18  Jim Meyering  <jim@meyering.net>
73737
73738         Merge changes from coreutils.
73739         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
73740         Remove explicit declarations of xmalloc and realloc.
73741         Include xalloc.h.
73742         (read_utmp): Remove anachronistic cast of xmalloc.
73743
73744 2003-06-17  Paul Eggert  <eggert@twinsun.com>
73745
73746         Assume C89, so PARAMS isn't needed.
73747         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
73748         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
73749         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
73750         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
73751         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
73752         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
73753         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
73754         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
73755         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
73756         lib/xstrtod.h, lib/xstrtol.h: Likewise.
73757         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
73758         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
73759         no longer needed. Anyway, config.h should always be included before any
73760         other file.
73761
73762 2003-06-11  Simon Josefsson  <jas@extundo.com>
73763
73764         * modules/sysexits: New file.
73765         * MODULES.html.sh (func_all_modules): Add sysexits.
73766
73767 2003-06-11  Simon Josefsson  <jas@extundo.com>
73768
73769         * lib/sysexit_.h: New file.
73770
73771 2003-06-11  Derek Price  <derek@ximbiot.com>
73772
73773         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
73774         necessary.
73775
73776 2003-06-11  Bruno Haible  <bruno@clisp.org>
73777
73778         * m4/sysexits.m4: New file.
73779
73780 2003-06-10  Simon Josefsson  <jas@extundo.com>
73781
73782         * lib/argp.h: New file, from glibc.
73783         * lib/argp-ba.c: New file, from glibc.
73784         * lib/argp-eexst.c: New file, from glibc.
73785         * lib/argp-fmtstream.c: New file, from glibc.
73786         * lib/argp-fmtstream.h: New file, from glibc.
73787         * lib/argp-fs-xinl.c: New file, from glibc.
73788         * lib/argp-help.c: New file, from glibc.
73789         * lib/argp-namefrob.h: New file, from glibc.
73790         * lib/argp-parse.c: New file, from glibc.
73791         * lib/argp-pv.c: New file, from glibc.
73792         * lib/argp-pvh.c: New file, from glibc.
73793         * lib/argp-xinl.c: New file, from glibc.
73794
73795 2003-06-10  Simon Josefsson  <jas@extundo.com>
73796
73797         * modules/strchrnul: New file.
73798
73799 2003-06-10  Simon Josefsson  <jas@extundo.com>
73800
73801         * modules/argp: New file.
73802
73803 2003-06-10  Simon Josefsson  <jas@extundo.com>
73804
73805         * m4/strchrnul.m4: New file.
73806
73807 2003-06-10  Simon Josefsson  <jas@extundo.com>
73808
73809         * lib/strchrnul.h: New file.
73810         * lib/strchrnul.c: New file.
73811
73812 2003-06-10  Bruno Haible  <bruno@clisp.org>
73813
73814         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
73815
73816 2003-06-07  Karl Berry  <karl@gnu.org>
73817
73818         * config/config.{guess,sub}: update from prep.
73819
73820 2003-06-07  Jim Meyering  <jim@meyering.net>
73821
73822         * modules/strtod: Use $(...) notation, not @...@ for
73823         AC_REPLACE'd variables.
73824         * modules/localcharset: Likewise.
73825
73826 2003-06-07  Jim Meyering  <jim@meyering.net>
73827
73828         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
73829         in place of my name in the copyright comment.
73830         Remove definition and uses of __P.
73831
73832         From coreutils.
73833         * lib/stat.c: Don't declare xmalloc explicitly.
73834         Instead, include "xalloc.h".
73835         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
73836         xrealloc, and xcalloc return values.
73837         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
73838         Improve comment.
73839         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
73840
73841 2003-06-07  Bruno Haible  <bruno@clisp.org>
73842
73843         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
73844         avoid AC_CONFIG_LINKS.
73845         * modules/fnmatch (Makefile.am): Use explicit creation rule for
73846         fnmatch.h, to avoid AC_CONFIG_LINKS.
73847         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
73848
73849 2003-06-07  Bruno Haible  <bruno@clisp.org>
73850
73851         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
73852         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
73853         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73854         directory.
73855         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
73856         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73857         directory.
73858
73859 2003-06-06  Jim Meyering  <jim@meyering.net>
73860
73861         Merge from coreutils.
73862         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
73863         Consolidate declarations and initializations of *_base* locals.
73864
73865         Merge from coreutils.
73866         This avoids a core dump on systems without GNU putenv,
73867         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
73868         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
73869         (unsetenv): New static function, from GNU libc.
73870         (rpl_putenv): Use it.
73871
73872         * lib/modechange.c: Remove trailing blanks.
73873
73874         Merge from coreutils.
73875         * lib/fsusage.c: Remove declaration of statfs.
73876         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
73877
73878         * lib/posixtm.c: Include <stdbool.h> unconditionally.
73879
73880 2003-06-06  Jim Meyering  <jim@meyering.net>
73881
73882         * lib/stdbool_.h: Renamed from stdbool.h.in.
73883
73884 2003-06-06  Jim Meyering  <jim@meyering.net>
73885             Bruno Haible  <bruno@clisp.org>
73886
73887         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
73888         Adjust Makefile.am snippet not to redirect directly to target.
73889         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
73890
73891 2003-06-05  Paul Eggert  <eggert@twinsun.com>
73892
73893         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
73894         mismatch, look in future quarters as well as past.  This fixes a
73895         bug when processing fall-backwards gaps immediately after a long
73896         period of daylight-saving time.
73897
73898         * lib/mktime.c: Assume freestanding C89 or better.
73899         (HAVE_LIMITS_H): Remove.  Assume it's 1.
73900         (__P): Remove; not used.
73901         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
73902         (mktime, not_equal_tm, print_tm, check_result,
73903         main): Use prototypes.  Use const * where appropriate.
73904         (main): Fix typo in testing code that uncovered by above changes.
73905         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
73906
73907 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73908
73909         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
73910         locale.h, localeconv.  This merges changes from coreutils.
73911
73912         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
73913         It can be removed after the next Autoconf is released.
73914         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
73915         needed.
73916
73917 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73918
73919         * lib/mktime.c: Fix Debian bug 177940
73920         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
73921         (localtime_offset): Now long int, not time_t, because we want it
73922         to be guaranteed to be signed.  All uses changed.
73923         (__mktime_internal): If overflow would occur when adding offset,
73924         don't add it.
73925
73926         Merge 'human' changes from coreutils.  Rewrite to support
73927         locale-specific notations like thousands separators.
73928         * lib/human.c: Simplify authorship notice.
73929         Include human.h immediately after config.h.
73930         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
73931         <limits.h>: Do not include, since human.h does.
73932         (SIZE_MAX, UINTMAX_MAX): New macros.
73933         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
73934         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
73935         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
73936         (power_letter): Renamed from suffixes.
73937         (generate_suffix_backwards): Remove.
73938         (adjust_value): Now takes int style (because of human.h changes)
73939         and long double value (for greater precision on some platforms).
73940         (group_number): New function.
73941         (human_readable): Use it.  Use integer options, not enum.
73942         Put the options before the sizes in the arg list.
73943         Support all the new options.
73944         The old human_readable function has been removed;
73945         use inttostr.h instead.
73946         (human_readable, default_block_size, humblock):
73947         Use uintmax_t, not int, for block sizes.
73948         (human_readable_inexact, block_size_types): Remove.
73949         (block_size_opts): New constant.
73950         (human_options): Renamed from human_block_size, with new signature
73951         that allows block sizes up to UINTMAX_MAX.  All callers changed.
73952         * lib/human.h: Add copyright and authorship notice.
73953         Include <limits.h> and <stdbool.h> unconditionally.
73954         (PARAMS): Remove.  All uses removed.
73955         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
73956         (enum human_inexact_style): Remove tag; now a nameless enum.
73957         (human_floor, human_ceiling, human_round_to_even): Now have
73958         values 2, 0, 1 rather than -1, 1, 0.
73959         (human_group_digits, human_suppress_point_zero, human_autoscale,
73960         human_base_1024, human_SI, human_B): New constants.
73961         (human_readable_inexact, human_block_size): Remove.
73962         (human_readable): Size args are now uintmax_t, not int.
73963         (human_options): New decl.
73964
73965         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
73966         unnecessary now that we assume C89 or better.  This change
73967         imported from coreutils.
73968
73969         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73970         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
73971         in the 2003-05-30 sync from glibc.
73972
73973         .h files should stand alone, but we shouldn't include <sys/types.h>
73974         if we can get away with just <stddef.h>.
73975
73976         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
73977         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
73978         rather than <sys/types.h>, as we merely need size_t.
73979         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
73980         to get size_t.
73981         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
73982         Include <stdio.h>, to get FILE.
73983         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
73984         memcasecmp.h has included <stddef.h> and all we need is size_t.
73985         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
73986         our interface, instead of including <sys/types.h>
73987
73988 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73989
73990         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
73991         now, as glibc mktime is buggy on non-glibc systems.
73992
73993 2003-06-03  Karl Berry  <karl@gnu.org>
73994
73995         * config/config.sub: update from prep.
73996
73997 2003-06-02  Paul Eggert  <eggert@twinsun.com>
73998
73999         [from coreutils]
74000         Fix some minor time-related bugs with POSIX time arguments.
74001         Some valid time stamps were being rejected (notably -1, and
74002         time stamps before 1900 on 64-bit hosts).  And some invalid
74003         time stamps were being accepted, e.g. September 31.
74004
74005         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
74006         that we can return (time_t) -1 successfully.
74007         * lib/posixtm.c: Likewise.
74008         [HAVE_STDBOOL_H]: Include <stdbool.h>.
74009         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
74010         (t): Remove static var.
74011         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
74012         of static var.  All uses changed.
74013         (year): Do not reject years before 1900; they can occur with
74014         64-bit time_t.
74015         (posix_time_parse): Do not check for out-of-range components;
74016         that is now the caller's responsibility, since our checks were
74017         only approximations.
74018         (posixtime): Use mktime to check for out-of-range components,
74019         since it knows them exactly.
74020         If mktime returns (time_t) -1, check whether an error actually occurred
74021         by invoking localtime on -1.
74022         (main) [TEST_POSIXTIME]: Check for input data errors, and report
74023         posixtime failures better.
74024         Improve the test data (in comments only).
74025
74026 2003-06-02  Karl Berry  <karl@gnu.org>
74027
74028         * config/mkinstalldirs (version): new variable.
74029         (--version): new option.
74030         (usage): improve message.
74031
74032 2003-05-30  Karl Berry  <karl@gnu.org>
74033
74034         * lib/mktime.c: update from libc.
74035
74036 2003-05-30  Bruno Haible  <bruno@clisp.org>
74037
74038         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
74039         * config/config.rpath: Upgrade to gettext-0.12.1.
74040
74041 2003-05-30  Bruno Haible  <bruno@clisp.org>
74042
74043         * m4/gettext.m4: Upgrade to gettext-0.12.1.
74044         * m4/nls.m4: New file, from gettext-0.12.1.
74045         * m4/po.m4: New file, from gettext-0.12.1.
74046         * m4/progtest.m4: Upgrade to gettext-0.12.1.
74047
74048 2003-05-30  Bruno Haible  <bruno@clisp.org>
74049
74050         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
74051         * lib/localcharset.h: Likewise.
74052         * lib/localcharset.c: Likewise.
74053
74054 2003-05-29  Karl Berry  <karl@gnu.org>
74055
74056         * config/config.rpath: update from gettext.
74057
74058 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74059
74060         Assume the headers required for C89 freestanding compilers.
74061         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
74062         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
74063         * m4/human.m4 (gl_HUMAN): Likewise.
74064         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
74065         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
74066         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74067         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
74068         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74069         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
74070
74071 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74072
74073         Assume the headers required for C89 freestanding compilers.
74074         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
74075         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
74076         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
74077         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
74078         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
74079         define, since <limits.h> is guaranteed to do that.
74080         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
74081         * lib/exclude.c: Include <stdbool.h> unconditionally.
74082         * lib/tempname.c: Include <stddef.h> unconditionally.
74083         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
74084         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
74085         <stddef.h> does that.
74086         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
74087         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
74088         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
74089         needed.
74090         * lib/xstrtol.c: Likewise.
74091         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
74092         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
74093
74094         * lib/addext.c (addext): Use assignment rather than cast, to avoid
74095         warnings on some platforms.
74096
74097         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74098         arbitrarily.
74099
74100 2003-05-26  Jim Meyering  <jim@meyering.net>
74101
74102         Merge in a change from coreutils:
74103         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
74104         that is guaranteed to be `no'.  Use `no_such_member' to indicate
74105         that condition, rather than `-1' which is slightly misleading.
74106         Change the name of the cache variable to have the gl_ prefix.
74107         Prompted by a patch from Richard Dawe for DJGPP.
74108
74109 2003-05-24  Karl Berry  <karl@gnu.org>
74110
74111         * config/config.guess: update from prep.
74112
74113 2003-05-22  Karl Berry  <karl@gnu.org>
74114
74115         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
74116
74117 2003-05-20  Karl Berry  <karl@gnu.org>
74118
74119         * config/config.guess: update from prep.
74120
74121 2003-05-18  Karl Berry  <karl@gnu.org>
74122
74123         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
74124         might actually be set by the user.
74125
74126         * config/depcomp, install-sh, mdate-sh: update from automake.
74127
74128 2003-05-17  Bruno Haible  <bruno@clisp.org>
74129
74130         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
74131         invalid expansion for AC_EGREP_CPP.
74132         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
74133         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
74134         Suggested by Akim Demaille <akim@epita.fr> in
74135         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
74136
74137 2003-05-12  Jim Meyering  <jim@meyering.net>
74138
74139         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
74140         the space-padded-by-default conversion specifiers, %e, %k, %l.
74141
74142 2003-05-12  Bruno Haible  <bruno@clisp.org>
74143
74144         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
74145         the string is longer than 4 KB.
74146
74147 2003-05-11  Karl Berry  <karl@gnu.org>
74148
74149         * config/config.{guess,sub}: update from prep.
74150
74151 2003-05-09  Bruno Haible  <bruno@clisp.org>
74152
74153         * modules/error: Add m4/strerror_r.m4 to file list.
74154
74155 2003-05-03  Bruno Haible  <bruno@clisp.org>
74156
74157         Upgrade to Unicode-4.0.
74158         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
74159         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
74160         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
74161         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
74162         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
74163         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
74164         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
74165         Change width of U+E0100..U+E01EF from 1 to 0.
74166
74167 2003-04-25  Jim Meyering  <jim@meyering.net>
74168
74169         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
74170         of type size_t, not int.
74171
74172 2003-04-25  Bruno Haible  <bruno@clisp.org>
74173
74174         * lib/copy-file.c: Include <stddef.h>, for size_t.
74175
74176 2003-04-21  Paul Eggert  <eggert@twinsun.com>
74177
74178         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
74179         code which expansion is under static control.  Patch imported from
74180         Akim Demaille's patch to Bison; see
74181         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
74182
74183 2003-04-14  Bruno Haible  <bruno@clisp.org>
74184
74185         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
74186
74187 2003-04-11  Jim Meyering  <jim@meyering.net>
74188
74189         Merge changes from Coreutils.
74190
74191         2003-03-22  Jim Meyering  <jim@meyering.net>
74192
74193         * lib/strftime.c (widen): Cast alloca return value to proper type.
74194
74195         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
74196
74197         From GNU libc.
74198         * lib/strftime.c (my_strftime): Handle very large width
74199         specifications for numeric values correctly.  Improve checks for
74200         overflow.
74201
74202         2003-01-19  Jim Meyering  <jim@meyering.net>
74203
74204         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
74205         definitions.
74206         (nl_get_alt_digit) [! defined my_strftime]: Define.
74207         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
74208         _nl_get_alt_digit and _nl_get_walt_digit.
74209
74210         * lib/strftime.c (my_strftime): Merge in locale-related changes from
74211         libc. These changes have no effect outside of _LIBC.
74212
74213 2003-04-10  Bruno Haible  <bruno@clisp.org>
74214
74215         * modules/findprog: New file.
74216         * MODULES.html.sh (func_all_modules): Add it.
74217
74218 2003-04-10  Bruno Haible  <bruno@clisp.org>
74219
74220         * m4/findprog.m4: New file.
74221         * m4/eaccess.m4: New file.
74222
74223 2003-04-10  Bruno Haible  <bruno@clisp.org>
74224
74225         * lib/findprog.h: New file, from GNU gettext.
74226         * lib/findprog.c: New file, from GNU gettext.
74227
74228 2003-04-05  Jim Meyering  <jim@meyering.net>
74229
74230         Merge changes from Coreutils.
74231
74232         * lib/exclude.h (PARAMS): Remove definition and uses.
74233         * lib/exclude.c: Remove uses of `PARAMS'.
74234
74235         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
74236         Add test-cases for DOS filenames. Declare program_name.
74237         (main): Set up program_name.  Patch by Rich Dawe.
74238
74239         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74240         error from mntctl.
74241         Use mntctl's return value to drive the entry-processing loop, since
74242         we can't rely on the value of the vmt_length member in the last
74243         entry.  On some systems doing so could result in exhausting
74244         virtual memory.  Based in part on a patch from Mike Jetzer.
74245
74246 2003-04-04  Bruno Haible  <bruno@clisp.org>
74247
74248         * modules/linebreak: New file.
74249         * MODULES.html.sh (func_all_modules): Add it.
74250
74251 2003-04-04  Bruno Haible  <bruno@clisp.org>
74252
74253         * m4/linebreak.m4: New file.
74254
74255 2003-04-04  Bruno Haible  <bruno@clisp.org>
74256
74257         * lib/linebreak.h: New file, from GNU gettext.
74258         * lib/linebreak.c: New file, from GNU gettext with slight
74259         modifications.
74260         * lib/lbrkprop.h: New file, from GNU gettext.
74261
74262 2003-04-03  Bruno Haible  <bruno@clisp.org>
74263
74264         * modules/utf8-ucs4: New file.
74265         * modules/utf16-ucs4: New file.
74266         * modules/ucs4-utf8: New file.
74267         * modules/ucs4-utf16: New file.
74268         * MODULES.html.sh (func_all_modules): Add them.
74269
74270 2003-04-03  Bruno Haible  <bruno@clisp.org>
74271
74272         * m4/utf-ucs4.m4: New file.
74273         * m4/ucs4-utf.m4: New file.
74274
74275 2003-04-03  Bruno Haible  <bruno@clisp.org>
74276
74277         * lib/utf8-ucs4.h: New file, from GNU gettext.
74278         * lib/utf16-ucs4.h: New file, from GNU gettext.
74279         * lib/ucs4-utf8.h: New file, from GNU gettext.
74280         * lib/ucs4-utf16.h: New file, from GNU gettext.
74281
74282 2003-04-02  Bruno Haible  <bruno@clisp.org>
74283
74284         * modules/binary-io: New file.
74285         * MODULES.html.sh (func_all_modules): Add it.
74286
74287 2003-04-02  Bruno Haible  <bruno@clisp.org>
74288
74289         * lib/binary-io.h: New file, from GNU gettext.
74290
74291 2003-04-01  Bruno Haible  <bruno@clisp.org>
74292
74293         * modules/pathname: New file.
74294         * MODULES.html.sh (func_all_modules): Add it.
74295
74296 2003-04-01  Bruno Haible  <bruno@clisp.org>
74297
74298         * lib/pathname.h: New file, from GNU gettext.
74299         * lib/concatpath.c: New file, from GNU gettext.
74300
74301 2003-03-30  Bruno Haible  <bruno@clisp.org>
74302
74303         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
74304
74305 2003-03-30  Bruno Haible  <bruno@clisp.org>
74306
74307         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
74308         function chown() doesn't exist.
74309
74310 2003-03-28  Bruno Haible  <bruno@clisp.org>
74311
74312         * modules/copy-file: New file.
74313         * MODULES.html.sh (func_all_modules): Add it.
74314
74315 2003-03-28  Bruno Haible  <bruno@clisp.org>
74316
74317         * m4/copy-file.m4: New file.
74318
74319 2003-03-28  Bruno Haible  <bruno@clisp.org>
74320
74321         * lib/copy-file.h: New file, from GNU gettext.
74322         * lib/copy-file.c: New file, from GNU gettext.
74323
74324 2003-03-18  Jim Meyering  <jim@meyering.net>
74325
74326         * lib/quote.c (quote_n): Fix typo in comment.
74327
74328 2003-03-18  Bruno Haible  <bruno@clisp.org>
74329
74330         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
74331         checking.
74332         * m4/onceonly_2_57.m4: Likewise.
74333
74334 2003-03-17  Bruno Haible  <bruno@clisp.org>
74335
74336         * m4/onceonly.m4: Require autoconf 2.54 or newer.
74337         (m4_quote): Remove macro.
74338         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
74339
74340 2003-03-14  Jim Meyering  <jim@meyering.net>
74341
74342         Merge changes from Coreutils.
74343         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
74344         to be const, in order to avoid warnings.
74345         (obstack_room): Likewise.
74346         (obstack_empty_p): Likewise.
74347
74348 2003-03-14  Bruno Haible  <bruno@clisp.org>
74349
74350         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
74351         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
74352
74353 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74354
74355         Merge changes from Bison.
74356         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
74357         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
74358         when compiling Bison 1.875's `bitset bset = obstack_alloc
74359         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
74360         * lib/hash.c: Include <stdbool.h> unconditionally.
74361
74362 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74363
74364         * m4/onceonly.m4 (m4_quote): New macro.
74365         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
74366         Quote AC_FOREACH variable-expansions properly.
74367
74368 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74369
74370         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
74371
74372 2003-03-09  Paul Eggert  <eggert@twinsun.com>
74373
74374         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
74375         Reported by Bruce Becker; see:
74376         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
74377
74378 2003-03-03  Paul Eggert  <eggert@twinsun.com>
74379             Bruno Haible  <bruno@clisp.org>
74380
74381         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
74382         Reported by John Hughes, see
74383         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
74384
74385 2003-02-20  Bruno Haible  <bruno@clisp.org>
74386
74387         * MODULES.html.sh (func_all_modules): Add poll.
74388
74389 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74390
74391         * modules/poll: New file.
74392
74393 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74394
74395         * lib/poll_.h: New file.
74396         * lib/poll.c: New file.
74397
74398 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74399
74400         * m4/poll.m4: New file.
74401
74402 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74403
74404         * modules/mathl: New file.
74405
74406 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74407
74408         * lib/mathl.h: New file.
74409         * lib/acosl.c: New file.
74410         * lib/asinl.c: New file.
74411         * lib/atanl.c: New file.
74412         * lib/ceill.c: New file.
74413         * lib/cosl.c: New file.
74414         * lib/expl.c: New file.
74415         * lib/floorl.c: New file.
74416         * lib/frexpl.c: New file.
74417         * lib/ldexpl.c: New file.
74418         * lib/logl.c: New file.
74419         * lib/sincosl.c: New file.
74420         * lib/sinl.c: New file.
74421         * lib/sqrtl.c: New file.
74422         * lib/tanl.c: New file.
74423         * lib/trigl.c: New file.
74424         * lib/trigl.h: New file.
74425
74426 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74427
74428         * m4/mathl.m4: New file.
74429
74430 2003-02-18  Bruno Haible  <bruno@clisp.org>
74431
74432         * MODULES.html.sh (func_all_modules): Add mathl.
74433
74434 2003-02-17  Bruno Haible  <bruno@clisp.org>
74435
74436         * modules/mkdtemp: New module.
74437         * MODULES.html.sh (func_all_modules): Add it.
74438
74439 2003-02-17  Bruno Haible  <bruno@clisp.org>
74440
74441         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
74442
74443 2003-02-17  Bruno Haible  <bruno@clisp.org>
74444
74445         * lib/mkdtemp.h: New file, from GNU gettext.
74446         * lib/mkdtemp.c: New file, from GNU gettext.
74447
74448 2003-02-02  Jim Meyering  <jim@meyering.net>
74449
74450         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
74451         e.g. glibc-2.2.93.
74452
74453 2003-01-31  Bruno Haible  <bruno@clisp.org>
74454
74455         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
74456         'rpl_rename'.
74457         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
74458         'rpl_strnlen'.
74459         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
74460         'rpl_strtod'.
74461         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
74462         'rpl_utime'.
74463
74464 2003-01-31  Bruno Haible  <bruno@clisp.org>
74465
74466         * lib/rename.c: #undef rename before defining rpl_rename.
74467         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
74468
74469 2003-01-30  Bruno Haible  <bruno@clisp.org>
74470
74471         * modules/vasnprintf, modules/vasprintf: New modules.
74472         * MODULES.html.sh (func_all_modules): Add them.
74473
74474 2003-01-30  Bruno Haible  <bruno@clisp.org>
74475
74476         * m4/signed.m4: New file, from GNU gettext.
74477         * m4/longdouble.m4: New file, from GNU gettext.
74478         * m4/wchar_t.m4: New file, from GNU gettext.
74479         * m4/wint_t.m4: New file, from GNU gettext.
74480         * m4/vasnprintf.m4: New file.
74481         * m4/vasprintf.m4: New file.
74482
74483 2003-01-30  Bruno Haible  <bruno@clisp.org>
74484
74485         * lib/printf-args.h: New file, from GNU gettext.
74486         * lib/printf-args.c: New file, from GNU gettext.
74487         * lib/printf-parse.h: New file, from GNU gettext.
74488         * lib/printf-parse.c: New file, from GNU gettext.
74489         * lib/vasnprintf.h: New file, from GNU gettext.
74490         * lib/vasnprintf.c: New file, from GNU gettext.
74491         * lib/asnprintf.c: New file, from GNU gettext.
74492         * lib/vasprintf.h: New file, from GNU gettext with modifications.
74493         * lib/vasprintf.c: New file, from GNU gettext.
74494         * lib/asprintf.c: New file, from GNU gettext.
74495
74496 2003-01-29  Bruno Haible  <bruno@clisp.org>
74497
74498         * modules/stpncpy: New module.
74499         * MODULES.html.sh (func_all_modules): Add it.
74500
74501 2003-01-29  Bruno Haible  <bruno@clisp.org>
74502
74503         * m4/stpncpy.m4: New file.
74504
74505 2003-01-29  Bruno Haible  <bruno@clisp.org>
74506
74507         * lib/stpncpy.h: New file, from GNU gettext with modifications.
74508         * lib/stpncpy.c: New file, from GNU gettext with modifications.
74509
74510 2003-01-28  Bruno Haible  <bruno@clisp.org>
74511
74512         * modules/c-ctype: New module.
74513         * MODULES.html.sh (func_all_modules): Add it.
74514
74515 2003-01-28  Bruno Haible  <bruno@clisp.org>
74516
74517         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
74518         Paul Eggert.
74519         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
74520         Paul Eggert.
74521
74522 2003-01-27  Bruno Haible  <bruno@clisp.org>
74523
74524         * modules/xsetenv: New module.
74525         * MODULES.html.sh (func_all_modules): Add it.
74526
74527 2003-01-27  Bruno Haible  <bruno@clisp.org>
74528
74529         * lib/xsetenv.h: New file, from GNU gettext.
74530         * lib/xsetenv.c: New file, from GNU gettext.
74531
74532 2003-01-23  Jim Meyering  <jim@meyering.net>
74533
74534         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
74535         from working on systems without dirfd (at least Irix and OSF1/Tru64).
74536
74537 2003-01-23  Bruno Haible  <bruno@clisp.org>
74538
74539         * modules/minmax: New module.
74540         * MODULES.html.sh (func_all_modules): Add it.
74541
74542 2003-01-23  Bruno Haible  <bruno@clisp.org>
74543
74544         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
74545         Eggert.
74546
74547 2003-01-22  Bruno Haible  <bruno@clisp.org>
74548
74549         * modules/exit: New module.
74550         * MODULES.html.sh (func_all_modules): Add it.
74551
74552 2003-01-22  Bruno Haible  <bruno@clisp.org>
74553
74554         * lib/exit.h: New file, from GNU gettext.
74555
74556 2003-01-19  Bruno Haible  <bruno@clisp.org>
74557
74558         * gnulib-tool: Recognize option --extract-maintainer.
74559         (func_get_maintainer): New function.
74560         * modules/*: Add Maintainer entry.
74561
74562 2003-01-16  Jim Meyering  <jim@meyering.net>
74563
74564         * m4/regex.m4: The `regex' struct is both input and output.
74565         Initialize it before each use.  Patch by Tim Waugh.
74566
74567 2003-01-16  Bruno Haible  <bruno@clisp.org>
74568
74569         * MODULES.html.sh: Add a table of contents. Add the module name as
74570         leftmost column. Add hyperlinks.
74571
74572 2003-01-15  Bruno Haible  <bruno@clisp.org>
74573
74574         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
74575
74576 2003-01-15  Bruno Haible  <bruno@clisp.org>
74577
74578         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
74579         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
74580         suffix.
74581
74582 2003-01-15  Bruno Haible  <bruno@clisp.org>
74583
74584         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
74585
74586 2003-01-15  Bruno Haible  <bruno@clisp.org>
74587
74588         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
74589         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
74590
74591 2003-01-14  Jim Meyering  <jim@meyering.net>
74592
74593         * lib/same.c (same_name): Tweak a comment.
74594
74595 2003-01-14  Bruno Haible  <bruno@clisp.org>
74596
74597         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
74598         when a string comparison is sufficient.
74599
74600 2003-01-14  Bruno Haible  <bruno@clisp.org>
74601
74602         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
74603         'unsigned int'.
74604
74605 2003-01-14  Bruno Haible  <bruno@clisp.org>
74606
74607         * lib/hash-pjw.c: Add comment about low quality of this function.
74608
74609 2003-01-13  Bruno Haible  <bruno@clisp.org>
74610
74611         * modules/stpcpy: Distribute lib/stpcpy.h.
74612         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
74613
74614 2003-01-13  Bruno Haible  <bruno@clisp.org>
74615
74616         * modules/*: Add a description.
74617         * modules/strpbrk: Fix Makefile.am snippet.
74618         * modules/strtoimax: Fix dependencies.
74619         * modules/strtoumax: Likewise.
74620
74621 2003-01-13  Bruno Haible  <bruno@clisp.org>
74622
74623         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
74624         * modules/alloca (Makefile.am): All object files depend on alloca.h.
74625         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
74626
74627 2003-01-13  Bruno Haible  <bruno@clisp.org>
74628
74629         * gnulib-tool (func_create_testdir): Store config/* files in the main
74630         directory.
74631         * config.rpath: Move to ...
74632         * config/config.rpath: ... here.
74633         * modules/gettext: Contains config/config.rpath, not config.rpath.
74634         * modules/iconv: Likewise.
74635
74636 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74637
74638         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74639         to avoid collisions with libcurses and libreadline.
74640
74641         * m4/getstr.m4: Remove.
74642         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
74643
74644 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74645
74646         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74647         to avoid collisions with libcurses and libreadline.
74648
74649         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
74650         * lib/getstr.h, getstr.c: Remove.
74651         * lib/getline.c: Include "getline.h", to check interface.
74652         Move body of old getstr.c here: this defines MIN_CHUNK and
74653         declares getdelim2, which is renamed from getstr.
74654         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
74655
74656         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
74657         All uses changed.
74658         * lib/linebuffer.h: Likewise.
74659         (readline): Remove backward-compatibility macro.
74660
74661 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74662
74663         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74664         to avoid collisions with libcurses and libreadline.
74665         * getstr: Remove.
74666         * MODULES.html.sh: Remove getstr.
74667         * modules/getline: Depend on unlocked-io, not getstr.
74668
74669 2003-01-12  Jim Meyering  <jim@meyering.net>
74670
74671         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
74672
74673 2003-01-10  Bruno Haible  <bruno@clisp.org>
74674
74675         * modules/alloca: Change Makefile.am requirements. Simplify Include
74676         requirements. Add lib/alloca_.h to file list.
74677
74678 2003-01-10  Bruno Haible  <bruno@clisp.org>
74679
74680         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
74681
74682 2003-01-10  Bruno Haible  <bruno@clisp.org>
74683
74684         * lib/alloca_.h: New file.
74685         * lib/getdate.y: Unconditionally include alloca.h.
74686         * lib/makepath.c: Likewise.
74687         * lib/setenv.c: Likewise.
74688         * lib/userspec.c: Likewise.
74689
74690 2003-01-09  Karl Berry  <karl@gnu.org>
74691
74692         * MODULES.html.sh: include `dirname $0` in PATH, to find
74693         gnulib-tool.
74694
74695 2003-01-09  Bruno Haible  <bruno@clisp.org>
74696
74697         * modules/stdbool: Change configure.ac, Makefile.am requirements.
74698         Simplify Include requirements. Add lib/stdbool.h.in to file list.
74699
74700 2003-01-09  Bruno Haible  <bruno@clisp.org>
74701
74702         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
74703
74704 2003-01-09  Bruno Haible  <bruno@clisp.org>
74705
74706         * lib/stdbool.h.in: New file.
74707
74708 2003-01-09  Bruno Haible  <bruno@clisp.org>
74709
74710         * gnulib-tool (func_all_modules): Ignore files ending in ~.
74711         * MODULES.html.sh: Likewise.
74712
74713 2003-01-08  Jim Meyering  <jim@meyering.net>
74714
74715         * lib/full-write.c: Undefine and define-away `const' after inclusion
74716         of errno.h, not before.  Suggestion from Bruno Haible.
74717
74718 2003-01-08  Bruno Haible  <bruno@clisp.org>
74719
74720         * modules/full-read: Depend on full-write.
74721
74722 2003-01-08  Bruno Haible  <bruno@clisp.org>
74723
74724         * lib/safe-read.c: Include specification header first, to ensure its
74725         selfcontainedness.
74726         * lib/full-write.c: Likewise.
74727
74728 2003-01-07  Jim Meyering  <jim@meyering.net>
74729
74730         * lib/full-write.c: Rework so that it may serve to define full_read,
74731         too.
74732         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
74733
74734 2003-01-07  Bruno Haible  <bruno@clisp.org>
74735
74736         * lib/strtoimax.c: Include <stdint.h> as an alternative to
74737         <inttypes.h>.
74738         * lib/xstrtol.h: Likewise.
74739         * lib/xstrtoimax.c: Likewise.
74740         * lib/xstrtoumax.c: Likewise.
74741         * lib/human.h: Likewise.
74742
74743         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
74744         on systems that have <inttypes.h> but not <stdint.h>.
74745
74746 2003-01-07  Bruno Haible  <bruno@clisp.org>
74747
74748         * MODULES.html.sh: Add copyright notice.
74749         (missed_files): Omit CVS directory entries.
74750         (func_module): Make it work with sed-3.02.
74751         * MODULES.txt: Remove file.
74752
74753 2003-01-06  Jim Meyering  <jim@meyering.net>
74754
74755         * lib/version-etc.c: Update year in translatable copyright string.
74756
74757 2003-01-03  Karl Berry  <karl@gnu.org>
74758
74759         * config/config.{guess,sub}: update from prep.
74760
74761 2003-01-02  Karl Berry  <karl@gnu.org>
74762
74763         * doc/COPYING.DOC: belatedly updated to 1.2.
74764
74765 2003-01-01  Karl Berry  <karl@gnu.org>
74766
74767         * gnulib-tool (func_verify_module): report module name $module in
74768         error message, not $1.
74769         * gnulib-tool (create-testdir): don't complain if destdir couldn't
74770         be created, only if it doesn't exist.
74771         * gnulib-tool (last_checkin_date): don't expand the $Date here.
74772
74773 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74774
74775         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
74776
74777 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74778
74779         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
74780         memcmp if strcoll doesn't work.
74781
74782 2002-12-31  Bruno Haible  <bruno@clisp.org>
74783
74784         * lib/utime.c (utime_null): No need to call ftruncate if the file was
74785         nonempty.
74786
74787 2002-12-31  Bruno Haible  <bruno@clisp.org>
74788
74789         * lib/memcoll.c (STRCOLL): New macro.
74790         (memcoll): Use it.
74791
74792 2002-12-31  Bruno Haible  <bruno@clisp.org>
74793
74794         * lib/localcharset.h: New file.
74795         * lib/localcharset.c: Include it.
74796         * lib/unicodeio.c: Likewise.
74797
74798 2002-12-31  Bruno Haible  <bruno@clisp.org>
74799
74800         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
74801         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
74802
74803 2002-12-31  Bruno Haible  <bruno@clisp.org>
74804
74805         * lib/getline.h: Include <stddef.h>, for size_t.
74806
74807         * lib/unicodeio.h: Include <stddef.h>, for size_t.
74808         * lib/unicodeio.c: Don't include <stddef.h>.
74809
74810 2002-12-31  Bruno Haible  <bruno@clisp.org>
74811
74812         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
74813         HAVE_TM_ZONE.
74814
74815 2002-12-24  Karl Berry  <karl@gnu.org>
74816
74817         * config/config.guess: update from prep.
74818
74819 2002-12-24  Bruno Haible  <bruno@clisp.org>
74820
74821         General infrasructure.
74822         * m4/README: Rewritten.
74823         * m4/onceonly.m4: New file.
74824         * m4/onceonly_2_57.m4: New file.
74825
74826         Module atexit.
74827         * m4/atexit.m4: New file.
74828
74829         Module strtod.
74830         * m4/strtod.m4: New file.
74831
74832         Module strtol.
74833         * m4/strtol.m4: New file.
74834
74835         Module strtoul.
74836         * m4/strtoul.m4: New file.
74837
74838         Module memchr.
74839         * m4/memchr.m4: New file.
74840
74841         Module memcmp.
74842         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
74843         (jm_FUNC_MEMCMP): Invoke it.
74844
74845         Module memcpy.
74846         * m4/memcpy.m4: New file.
74847
74848         Module memmove.
74849         * m4/memmove.m4: New file.
74850
74851         Module memset.
74852         * m4/memset.m4: New file.
74853
74854         Module strcspn.
74855         * m4/strcspn.m4: New file.
74856
74857         Module strpbrk.
74858         * m4/strpbrk.m4: New file.
74859
74860         Module strstr.
74861         * m4/strstr.m4: New file.
74862
74863         Module strerror.
74864         * m4/strerror.m4: New file.
74865
74866         Module mktime.
74867         * m4/mktime.m4: Renamed from jm-mktime.m4.
74868         (gl_PREREQ_MKTIME): New macro.
74869         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
74870
74871         Module malloc.
74872         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
74873         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
74874         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
74875
74876         Module realloc.
74877         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
74878         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
74879         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
74880
74881         Module strftime.
74882         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
74883         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
74884         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
74885         gl_TM_GMTOFF.
74886         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
74887
74888         Module xalloc.
74889         * m4/xalloc.m4: New file.
74890
74891         Module alloca.
74892         * m4/alloca.m4: New file.
74893
74894         Module putenv.
74895         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
74896         (jm_FUNC_PUTENV): Invoke it.
74897
74898         Module setenv.
74899         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
74900         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
74901         when invoked twice.
74902         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
74903         gt_FUNC_SETENV.
74904
74905         Module memrchr.
74906         * m4/memrchr.m4: New file.
74907
74908         Module stpcpy.
74909         * m4/stpcpy.m4: New file.
74910
74911         Module strcase.
74912         * m4/strcase.m4: New file.
74913
74914         Module strdup.
74915         * m4/strdup.m4: New file.
74916
74917         Module strnlen.
74918         * m4/strnlen.m4: New file.
74919
74920         Module strndup.
74921         * m4/strndup.m4: New file.
74922
74923         Module xstrtod.
74924         * m4/xstrtod.m4: New file.
74925
74926         Module xstrtol.
74927         * m4/xstrtol.m4: New file.
74928
74929         Module getdate.
74930         * m4/getdate.m4: New file.
74931
74932         Module unlocked-io.
74933         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
74934         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
74935         * m4/jm-glibc-io.m4n: Remove file.
74936
74937         Module long-options.
74938         * m4/long-options.m4: New file.
74939
74940         Module md5.
74941         * m4/md5.m4: New file.
74942
74943         Module sha.
74944         * m4/sha.m4: New file.
74945
74946         Module getstr.
74947         * m4/getstr.m4: New file.
74948
74949         Module getline.
74950         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
74951         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
74952         <sys/types.h>, for size_t. Use the function name gnu_getline, not
74953         simply getline. Infoke gl_PREREQ_GETLINE.
74954
74955         Module obstack.
74956         * m4/obstack.m4: New file.
74957
74958         Module hash.
74959         * m4/hash.m4: New file.
74960
74961         Module readtokens.
74962         * m4/readtokens.m4: New file.
74963
74964         Module strverscmp.
74965         * m4/strverscmp.m4: New file.
74966
74967         Module stdbool.
74968         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
74969         OSF/1.
74970
74971         Module strtoll.
74972         * m4/strtoll.m4: New file.
74973
74974         Module strtoull.
74975         * m4/strtoull.m4: New file.
74976
74977         Module strtoimax.
74978         * m4/strtoimax.m4: New file.
74979
74980         Module strtoumax.
74981         * m4/strtoumax.m4: New file.
74982
74983         Module xstrtoimax.
74984         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
74985         jm_AC_PREREQ_XSTRTOIMAX.
74986         Moved the strtol prerequisites to strtol.m4.
74987         Moved the strtoll prerequisites to strtoll.m4.
74988         Moved the strtoimax prerequisites to strtoimax.m4.
74989
74990         Module xstrtoumax.
74991         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
74992         jm_AC_PREREQ_XSTRTOUMAX.
74993         Moved the strtoul prerequisites to strtoul.m4.
74994         Moved the strtoull prerequisites to strtoull.m4.
74995         Moved the strtoumax prerequisites to strtoumax.m4.
74996
74997         Module chown.
74998         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
74999         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
75000
75001         Module dup2.
75002         * m4/dup2.m4: New file.
75003
75004         Module ftruncate.
75005         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
75006         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
75007
75008         Module getgroups.
75009         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
75010         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
75011
75012         Module gettimeofday.
75013         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
75014         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
75015         gl_PREREQ_GETTIMEOFDAY.
75016
75017         Module mkdir.
75018         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
75019         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
75020
75021         Module mkstemp.
75022         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
75023         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
75024         jm_AC_TYPE_UINTMAX_T.
75025         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
75026
75027         Module stat.
75028         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
75029         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
75030
75031         Module lstat.
75032         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
75033         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
75034
75035         Module timespec.
75036         * m4/timespec.m4 (gl_TIMESPEC): New macro.
75037         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
75038         * m4/st_mtim.m4: Indentation.
75039
75040         Module nanosleep.
75041         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
75042         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
75043         gl_PREREQ_NANOSLEEP.
75044
75045         Module regex.
75046         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
75047         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
75048         (gl_REGEX): New macro.
75049
75050         Module rename.
75051         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
75052         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
75053
75054         Module rmdir.
75055         * m4/rmdir.m4: New file.
75056
75057         Module utime.
75058         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
75059         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
75060         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
75061
75062         Module dirname.
75063         * m4/dirname.m4: New file.
75064
75065         Module getopt.
75066         * m4/getopt.m4: New file.
75067
75068         Module unistd-safer.
75069         * m4/unistd-safer.m4: New file.
75070
75071         Module fnmatch.
75072         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
75073         declaration.
75074         (gl_PREREQ_FNMATCH_EXTRA): New macro.
75075         (gl_FUNC_FNMATCH_POSIX): New macro.
75076         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
75077         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
75078         simply fnmatch.
75079
75080         Module exclude.
75081         * m4/exclude.m4: New file.
75082
75083         Module human.
75084         * m4/human.m4: New file.
75085
75086         Module acl.
75087         * m4/acl.m4: Nop.
75088
75089         Module backupfile.
75090         * m4/backupfile.m4: New file.
75091         * m4/d-ino.m4: Indentation.
75092
75093         Module fsusage.
75094         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
75095         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
75096         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
75097
75098         Module dirfd.
75099         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
75100         requirements.
75101
75102         Module euidaccess.
75103         * m4/euidaccess.m4: New file.
75104
75105         Module file-type.
75106         * m4/file-type.m4: New file.
75107
75108         Module fileblocks.
75109         * m4/fileblocks.m4: New file.
75110
75111         Module filemode.
75112         * m4/filemode.m4: New file.
75113
75114         Module isdir.
75115         * m4/isdir.m4: New file.
75116
75117         Module lchown.
75118         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
75119         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
75120
75121         Module makepath.
75122         * m4/makepath.m4: New file.
75123
75124         Module modechange.
75125         * m4/modechange.m4: New file.
75126
75127         Module mountlist.
75128         * m4/mountlist.m4: New file.
75129         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
75130         Indentation.
75131
75132         Module path-concat.
75133         * m4/path-concat.m4: New file.
75134
75135         Module pathmax.
75136         * m4/pathmax.m4: New file.
75137
75138         Module same.
75139         * m4/same.m4: New file.
75140
75141         Module save-cwd.
75142         * m4/save-cwd.m4: New file.
75143
75144         Module savedir.
75145         * m4/savedir.m4: New file.
75146
75147         Module xgetcwd.
75148         * m4/xgetcwd.m4: New file.
75149         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
75150
75151         Module xreadlink.
75152         * m4/xreadlink.m4: New file.
75153
75154         Module safe-read.
75155         * m4/safe-read.m4: New file.
75156
75157         Module safe-write.
75158         * m4/safe-write.m4: New file.
75159
75160         Module closeout.
75161         * m4/closeout.m4: New file.
75162
75163         Module stdio-safer.
75164         * m4/stdio-safer.m4: New file.
75165
75166         Module getpass.
75167         * m4/getpass.m4: New file.
75168
75169         Module getugroups.
75170         * m4/getugroups.m4: New file.
75171
75172         Module group-member.
75173         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
75174         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
75175
75176         Module idcache.
75177         * m4/idcache.m4: New file.
75178
75179         Module userspec.
75180         * m4/userspec.m4: New file.
75181
75182         Module gettime.
75183         * m4/clock_time.m4: New file.
75184         * m4/gettime.m4: New file.
75185
75186         Module settime.
75187         * m4/settime.m4: New file.
75188
75189         Module posixtm.
75190         * m4/posixtm.m4: New file.
75191
75192         Module gethostname.
75193         * m4/gethostname.m4: New file.
75194
75195         Module canon-host.
75196         * m4/canon-host.m4: New file.
75197
75198         Module gettext.
75199         * m4/codeset.m4: New file, from gettext-0.11.5.
75200         * m4/gettext.m4: New file, from gettext-0.11.5.
75201         * m4/glibc21.m4: New file, from gettext-0.11.5.
75202         * m4/iconv.m4: New file, from gettext-0.11.5.
75203         * m4/intdiv0.m4: New file, from gettext-0.11.5.
75204         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
75205         * m4/inttypes.m4: New file, from gettext-0.11.5.
75206         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
75207         * m4/isc-posix.m4: New file, from gettext-0.11.5.
75208         * m4/lcmessage.m4: New file, from gettext-0.11.5.
75209         * m4/lib-ld.m4: New file, from gettext-0.11.5.
75210         * m4/lib-link.m4: New file, from gettext-0.11.5.
75211         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
75212         * m4/progtest.m4: New file, from gettext-0.11.5.
75213         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
75214         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
75215         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
75216
75217         Module localcharset.
75218         * m4/localcharset.m4: New file.
75219
75220         Module hard-locale.
75221         * m4/hard-locale.m4: New file.
75222
75223         Module mbswidth.
75224         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
75225         onceonly macros.
75226         * m4/mbrtowc.m4: Add comment.
75227
75228         Module memcasecmp.
75229         * m4/memcasecmp.m4: New file.
75230
75231         Module memcoll.
75232         * m4/memcoll.m4: New file.
75233
75234         Module unicodeio.
75235         * m4/unicodeio.m4: New file.
75236
75237         Module rpmatch.
75238         * m4/rpmatch.m4: New file.
75239
75240         Module yesno.
75241         * m4/yesno.m4: New file.
75242
75243         Module exitfail.
75244         * m4/exitfail.m4: New file.
75245
75246         Module c-stack.
75247         * m4/c-stack.m4 (gl_C_STACK): New macro.
75248         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
75249
75250         Module error.
75251         * m4/error.m4 (gl_ERROR): New macro.
75252         (jm_PREREQ_ERROR): Use onceonly macros.
75253
75254         Module fatal.
75255         * m4/fatal.m4: New file.
75256
75257         Module getloadavg.
75258         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
75259         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
75260
75261         Module getpagesize.
75262         * m4/getpagesize.m4: New file.
75263
75264         Module getusershell.
75265         * m4/getusershell.m4: New file.
75266
75267         Module physmem.
75268         * m4/physmem.m4: New file.
75269
75270         Module posixver.
75271         * m4/posixver.m4: New file.
75272
75273         Module quotearg.
75274         * m4/quotearg.m4: New file.
75275
75276         Module quote.
75277         * m4/quote.m4: New file.
75278
75279         Module readutmp.
75280         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
75281
75282         Module sig2str.
75283         * m4/sig2str.m4: New file.
75284
75285         Other.
75286         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
75287         ulonglong.m4.
75288         * m4/intmax_t.m4: New file.
75289         * m4/d-type.m4: Indentation.
75290         * m4/jm-macros.m4: Update.
75291         * m4/prereq.m4 (jm_PREREQ): Update.
75292         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
75293         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
75294         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
75295         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
75296         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
75297         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
75298         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
75299         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
75300         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
75301         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
75302         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
75303         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
75304         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
75305         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
75306         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
75307         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
75308         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
75309         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
75310         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
75311
75312 2002-12-24  Bruno Haible  <bruno@clisp.org>
75313
75314         * MODULES.txt: Update according to m4/ changes.
75315
75316         Module gettext.
75317         * config.rpath: New file, from gettext-0.11.5.
75318
75319         * modules/*: New module descriptions.
75320         * gnulib-tool: New file.
75321         * MODULES.html.sh: New file.
75322
75323 2002-12-21  Karl Berry  <karl@gnu.org>
75324
75325         * doc/fdl.texi: update to version 1.2.
75326
75327 2002-12-19  Karl Berry  <karl@gnu.org>
75328
75329         * config/config.guess: update from prep.
75330
75331 2002-12-18  Bruno Haible  <bruno@clisp.org>
75332
75333         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
75334         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
75335
75336 2002-12-17  Bruno Haible  <bruno@clisp.org>
75337
75338         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
75339         stdlib.h, string.h.
75340
75341 2002-12-17  Bruno Haible  <bruno@clisp.org>
75342
75343         * lib/canon-host.c (strdup): Remove unused declaration.
75344
75345         * lib/fsusage.c: Include full_read.h.
75346         (get_fs_usage): Use full_read instead of safe_read.
75347
75348         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
75349
75350 2002-12-12  Karl Berry  <karl@gnu.org>
75351
75352         * config/config.guess: update from prep.
75353
75354 2002-12-11  Bruno Haible  <bruno@clisp.org>
75355
75356         * m4/setenv.m4: New file, from gettext-0.11.5.
75357
75358 2002-12-11  Bruno Haible  <bruno@clisp.org>
75359
75360         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
75361         not unsetenv().
75362         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
75363         modifications:
75364
75365         2002-12-11  Bruno Haible  <bruno@clisp.org>
75366
75367                 * setenv.c (alloca): Fall back to malloc.
75368                 (freea): New macro.
75369                 (setenv): Use freea() to free memory allocated with alloca().
75370
75371         2002-11-13  Bruno Haible  <bruno@clisp.org>
75372
75373                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
75374                 function declarations.
75375                 * unsetenv.c (unsetenv): Likewise.
75376
75377         2002-03-04  Bruno Haible  <bruno@clisp.org>
75378
75379                 Portability to AIX 4.3.3.
75380                 * unsetenv.c: New file, extracted from setenv.c.
75381                 * setenv.c: Move the unsetenv() function to unsetenv.c.
75382
75383         2001-12-20  Bruno Haible  <bruno@clisp.org>
75384
75385                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
75386                 use malloc instead. For SunOS 4.
75387
75388         2001-12-11  Bruno Haible  <bruno@clisp.org>
75389
75390                 * setenv.c: Declare alloca.
75391                 (compar_fn_t): New typedef.
75392                 (KNOWN_VALUE, STORE_VALUE): Use it.
75393
75394         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
75395         setenv.h.
75396
75397 2002-12-10  Paul Eggert  <eggert@twinsun.com>
75398
75399         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
75400         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
75401         Choose values that are less likely to collide with system fnmatch
75402         options.
75403         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
75404         defined (e.g., a pure POSIX system).
75405         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
75406         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
75407
75408 2002-12-06  Paul Eggert  <eggert@twinsun.com>
75409
75410         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
75411         a pain in practice to deal with generated m4 files.  This change
75412         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
75413
75414         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
75415         and jm-glibc-io.m4, as they are no longer a special case.
75416         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
75417         kludge and the auto-generation stuff.  Check only whether the
75418         functions are declared, not whether they exist, since older hosts
75419         that don't declare the functions can't use the optimization anyway.
75420
75421 2002-12-06  Jim Meyering  <jim@meyering.net>
75422
75423         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
75424
75425         Merge in changes from libc's misc/error.c, in preparation
75426         for the merge of gnulib's changes back into libc.
75427
75428         * lib/error.c (_): Define only if not already defined.
75429         Move definition to follow all #include directives.
75430         Include unlocked-io.h only if !_LIBC.
75431         [_LIBC]: Include <libio/libioP.h>.
75432         [USE_IN_LIBIO]: Include <libio/iolibio.h>
75433         (fflush): Tweak definition to use INTUSE.
75434         (putc): Define.
75435
75436 2002-12-05  Paul Eggert  <eggert@twinsun.com>
75437
75438         * lib/alloca.c [defined emacs]: Include "lisp.h".
75439         (xalloc_die) [defined emacs]: New macro.
75440         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
75441         [! defined emacs]: Include <xalloc.h>.
75442         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
75443         (pointer): Typedef to POINTER_TYPE *.
75444         (malloc): Remove decl; we now always use xmalloc.
75445         (alloca): Use old-style definition, since Emacs needs this.
75446         Check for arithmetic overflow when computing combined size.
75447
75448 2002-12-04  Paul Eggert  <eggert@twinsun.com>
75449
75450         Do not generate unlocked-io.h automatically, since it's easier to
75451         maintain it by hand.
75452
75453         * lib/unlocked-io.h: New file, from GNU diffutils,
75454         but with proper copyright notice and attribution.
75455         * lib/gen-uio: Remove.
75456         * lib/Makefile.am: Add copyright notice.
75457         (libfetish_a_SOURCES): Add unlocked-io.h.
75458         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
75459         (DISTCLEANFILES, io_functions): Remove macros.
75460         (EXTRA_DIST): Remove gen_uio.
75461         (unlocked-io.h): Remove rule.
75462
75463 2002-12-04  Jim Meyering  <jim@meyering.net>
75464
75465         Reflect the fact that stat.c and lstat.c are no longer generated.
75466         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
75467         (DISTCLEANFILES): Likewise.
75468         (EXTRA_DIST): Likewise.
75469         (all_local): Don't depend on stat.c or lstat.c.
75470         (stat.c, lstat.c): Remove rules.
75471         (EXTRA_DIST): Remove xstat.in.
75472
75473         * lib/xstat.in: Remove file.  Contents moved into stat.c.
75474         * lib/stat.c: New file.  Contents mostly from xstat.in.
75475         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
75476         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
75477
75478         * lib/safe-read.c: Rework so that it may serve to define safe_write,
75479         too.
75480         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
75481
75482 2002-12-03  Jim Meyering  <jim@meyering.net>
75483
75484         * lib/safe-read.c, safe-write.c: Change variable names and comments,
75485         but not semantics, to minimize the differences between these two files.
75486         (safe_read): Change comment to mention SAFE_READ_ERROR.
75487
75488         * lib/safe-read.c (IS_EINTR): Define.
75489         (safe_read): Use IS_EINTR in place of in-function cpp directives.
75490
75491 2002-12-02  Jim Meyering  <jim@meyering.net>
75492
75493         * lib/safe-read.c (EINTR): Define.
75494         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75495         (INT_MAX): Provide fallback.
75496         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
75497
75498         * lib/safe-read.h (SAFE_READ_ERROR): Define.
75499
75500 2002-12-02  Bruno Haible  <bruno@clisp.org>
75501
75502         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
75503         Define, taken from safe-read.c.
75504         (INT_MAX): Provide fallback.
75505         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
75506         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
75507
75508         * lib/safe-read.c (EINTR): Remove definition.
75509         (safe_read): Don't use EINTR if it is absent.
75510
75511 2002-12-01  Jim Meyering  <jim@meyering.net>
75512
75513         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
75514         zero.
75515         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
75516
75517 2002-11-27  Paul Eggert  <eggert@twinsun.com>
75518
75519         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
75520         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
75521         with `if (! (value < limit)) abort ();', for readability.
75522
75523 2002-11-26  Karl Berry  <karl@gnu.org>
75524
75525         * lib/strdup.c: copy from libc again, with jim's ok.
75526         * lib/.cppi-disable: re-add strdup.c
75527
75528 2002-11-25  Karl Berry  <karl@gnu.org>
75529
75530         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
75531         instead of "strtol.c".
75532
75533 2002-11-25  Karl Berry  <karl@gnu.org>
75534
75535         * config/install-sh: update from automake for variable quoting, $0 in
75536         error msgs, etc.
75537
75538         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
75539         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
75540         entry.
75541
75542 2002-11-25  Jim Meyering  <jim@meyering.net>
75543
75544         * lib/mktime.c: Sync from libc, now that it has the latest fix.
75545
75546 2002-11-24  Karl Berry  <karl@gnu.org>
75547
75548         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
75549         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
75550
75551 2002-11-24  Jim Meyering  <jim@meyering.net>
75552
75553         Update from coreutils:
75554
75555         * lib/mktime.c: Merge in changes from libc.
75556
75557         Avoid a link-time failure on some Linux systems.
75558         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
75559         (otherwise).
75560         (__mon_yday): Declare with the STATIC attribute.
75561         (__mktime_internal): Likewise.
75562         Based on a report from Greg Schafer.
75563
75564 2002-11-23  Jim Meyering  <jim@meyering.net>
75565
75566         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
75567         Use `unsigned', not `int', as type of index.
75568
75569         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
75570
75571         * lib/fsusage.c: Remove unneeded parentheses around operands of
75572         `defined'.
75573
75574 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75575
75576         * lib/quotearg.h: Allow multiple inclusion by surrounding with
75577         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
75578         so that we can be included first.
75579         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
75580         * lib/quotearg.c: Include quotearg.h immediately after config.h.
75581         No need to include stddef.h or sys/types.h any more.
75582         Surround local include files with "", not "<>".
75583         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
75584         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
75585         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
75586         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
75587         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
75588         (ISPRINT): Remove; no longer needed now that we assume C89.
75589
75590         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
75591         Preserve errno.
75592
75593         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
75594         quotearg_char): Use SIZE_MAX rather than
75595         (size_t) -1 when we are talking about "infinity".
75596
75597         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
75598
75599 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75600
75601         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
75602         hint that one should use `if (! x) abort ();' rather than `assert
75603         (x);', and anyway it's one less thing to worry about configuring.
75604         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
75605         hash_rehash, hash_insert): Use abort rather than assert.
75606
75607 2002-11-22  Bruno Haible  <bruno@clisp.org>
75608
75609         * lib/safe-read.h: Assume C89. Add comments.
75610         (safe_read): Change return type to size_t.
75611         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
75612         byte counts > SSIZE_MAX correctly.
75613         * lib/safe-write.h: New file.
75614         * lib/safe-write.c: New file.
75615         * lib/full-read.h: New file.
75616         * lib/full-read.c: New file.
75617         * lib/full-write.h: Assume C89. Add comments.
75618         * lib/full-write.c: Include safe-write.h.
75619         (full_write): Rewritten to use safe_write.
75620         Suggested by Jim Meyering and Paul Eggert.
75621
75622 2002-11-21  Jim Meyering  <jim@meyering.net>
75623
75624         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
75625
75626         Merge in changes from the coreutils.
75627
75628         2002-09-25  Paul Eggert  <eggert@twinsun.com>
75629         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
75630         <stdint.h>.
75631         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
75632         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
75633         int.  Work more efficiently if X is the same width as uintmax_t.
75634         Do not compare X to -1, to avoid bogus compiler warning.
75635         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
75636         Don't assume that f_frsize and f_bsize are the same type.
75637
75638         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
75639         warning on FreeBSD.
75640
75641         * lib/makepath.c (make_path): Restore umask *before* creating the final
75642         component.
75643         (make_path): Minor reformatting.
75644
75645         * lib/xmalloc.c: Adjust to work with new autoconf macros,
75646         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
75647         HAVE_MALLOC/HAVE_REALLOC.
75648
75649         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
75650         dummy ones.  At least on GNU/Linux systems, `auto' means something
75651         else.
75652         From Michael Stone.
75653
75654 2002-11-21  Bruno Haible  <bruno@clisp.org>
75655
75656         Remove case insensitive option matching.
75657         * lib/argmatch.h (argcasematch): Remove declaration.
75658         (ARGCASEMATCH): Remove macro.
75659         (__xargmatch_internal): Remove case_sensitive argument.
75660         (XARGMATCH): Update.
75661         (XARGCASEMATCH): Remove macro.
75662         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
75663         case_sensitive argument.
75664         (argcasematch): Remove function.
75665         (__xargmatch_internal): Remove case_sensitive argument.
75666         (main): Use XARGMATCH instead of XARGCASEMATCH.
75667
75668         * lib/xmalloc.c: Change compile-time error message. Add comment about
75669         required autoconf version.
75670
75671 2002-11-20  Paul Eggert  <eggert@twinsun.com>
75672
75673         Merge argmatch cleanups from Bison.  Assume C89.
75674
75675         * lib/argmatch.c: Include config.h here, not in argmatch.h.
75676         Include stdlib.h, for EXIT_FAILURE.
75677         Always include <string.h>, since we assume C89.
75678         (EXIT_FAILURE): Remove pre-C89 bug workaround.
75679         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
75680         Include <stddef.h> instead, since it's all we need for size_t.
75681         (PARAMS): Remove.  All uses removed.
75682         (ARRAY_CARDINALITY): Do not bother to #undef.
75683         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
75684         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75685         Remove unnecessary parentheses.
75686         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75687         Insert necessary parentheses.
75688         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
75689         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
75690
75691 2002-11-19  Bruno Haible  <bruno@clisp.org>
75692
75693         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
75694         * lib/mbswidth.h: Include <stddef.h>, for size_t.
75695
75696         * lib/mbswidth.h (PARAMS): Remove macro.
75697         (mbswidth, mbsnwidth): Use ANSI C function declarations.
75698         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
75699
75700         * lib/gcd.h (PARAMS): Remove macro.
75701         (gcd): Use ANSI C function declarations.
75702         * lib/gcd.c (gcd): Likewise.
75703
75704 2002-11-15  Bruno Haible  <bruno@clisp.org>
75705
75706         * lib/strcspn.c: Include <stddef.h>.
75707         (strcspn): Use ANSI C function declaration. Change return type to
75708         size_t. Use NULL.
75709         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
75710         (strpbrk): Use NULL.
75711         * lib/strpbrk.h (PARAMS): Remove macro.
75712         (strpbrk): Use ANSI C function declaration.
75713         * lib/strstr.c: Don't include <sys/types.h>.
75714         * lib/strstr.h (PARAMS): Remove macro.
75715         (strstr): Use ANSI C function declarations.
75716
75717 2002-11-14  Karl Berry  <karl@gnu.org>
75718
75719         * config/mkinstalldirs: `do' on separate line, instead of
75720         `for var; do'.
75721
75722 2002-11-06  Bruno Haible  <bruno@clisp.org>
75723
75724         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
75725         * lib/gcd.c (gcd): Likewise.
75726
75727 2002-11-05  Bruno Haible  <bruno@clisp.org>
75728
75729         * lib/gcd.h: New file, from gettext-0.11.5.
75730         * lib/gcd.c: New file, from gettext-0.11.5.
75731
75732 2002-11-05  Bruno Haible  <bruno@clisp.org>
75733
75734         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75735         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75736         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75737         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75738
75739         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
75740         <libintl.h>.
75741         * lib/makepath.c: Include gettext.h instead of <locale.h> and
75742         <libintl.h>.
75743
75744         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
75745         * lib/human.c: Include gettext.h instead of <libintl.h>.
75746         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
75747         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
75748         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
75749         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
75750         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
75751         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
75752         (textdomain): Remove definition.
75753         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
75754
75755         * lib/long-options.c: Remove include of <libintl.h> and definition of
75756         _.
75757         * lib/same.c: Remove include of <libintl.h> and definition of _.
75758
75759 2002-11-04  Owen Taylor  <otaylor@redhat.com>
75760
75761         * lib/config.charset: A few additions for Solaris.
75762
75763 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75764
75765         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
75766         * lib/localcharset.c (locale_charset): Declare as extern "C".
75767
75768 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75769
75770         * lib/config.charset: msdos in uk_UA uses CP1125.
75771
75772 2002-11-04  Bruno Haible  <bruno@clisp.org>
75773
75774         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
75775         * lib/strcase.h: New file, from GNU gettext-0.11.5.
75776         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
75777         * lib/strstr.h: New file, from GNU gettext-0.11.5.
75778         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
75779
75780 2002-11-04  Bruno Haible  <bruno@clisp.org>
75781
75782         * lib/localcharset.c (locale_charset): Don't return an empty string.
75783
75784 2002-11-04  Bruno Haible  <bruno@clisp.org>
75785
75786         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
75787         aliases.
75788
75789 2002-11-04  Bruno Haible  <bruno@clisp.org>
75790
75791         * lib/config.charset: Update for newest glibc. Add canonical names
75792         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
75793
75794 2002-11-04  Bruno Haible  <bruno@clisp.org>
75795
75796         * lib/config.charset: Add support for NetBSD.
75797
75798 2002-11-04  Bruno Haible  <bruno@clisp.org>
75799
75800         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
75801
75802 2002-11-01  Bruno Haible  <bruno@clisp.org>
75803
75804         * configure.in: Add AC_CONFIG_AUX_DIR call.
75805         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
75806         test/Makefile.
75807         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
75808
75809 2002-09-28  Karl Berry  <karl@gnu.org>
75810
75811         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
75812         installed automake until the next release, since changes have been
75813         made.
75814
75815 2002-09-25  Karl Berry  <karl@gnu.org>
75816
75817         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
75818         * lib/getopt*: copy from libc/posix.
75819         * lib/gettext.h: copy from gettext.
75820         * lib/.cppi-disable: add strdup.c, gettext.h.
75821
75822 2002-09-25  Karl Berry  <karl@gnu.org>
75823
75824         * config/srclist.txt: enable gettext.h check.
75825         * config/config.{guess,sub}: update from prep.
75826         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
75827                 from automake 1.6.3.
75828         See srclist*.
75829
75830 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
75831
75832         * regex.c (PATFETCH): Remove the translating fetch.
75833         (PATFETCH_RAW): Rename to PATFETCH.
75834         (set_image_of_range): New fun.
75835         (SET_RANGE_TABLE_WORK_AREA): Use it.
75836         (regex_compile): Don't translate the pattern chars so eagerly.
75837         Only do it when inserting an `exactn' bytecode or when handling
75838         a char-range.
75839         (mutually_exclusive_p): Avoid empty statement.
75840
75841 2002-07-06  Jim Meyering  <meyering@lucent.com>
75842
75843         * m4/README: Don't mention Makefile.am.in.
75844         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
75845
75846 2002-07-01  Jim Meyering  <meyering@lucent.com>
75847
75848         * lib/c-stack.c: Include sys/time.h.
75849         From Volker Borchert.
75850
75851 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75852
75853         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
75854
75855 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75856
75857         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
75858         New macro.  Use it uniformly instead of
75859         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
75860         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
75861         reported by Vin Shelton.
75862
75863 2002-06-22  Paul Eggert  <eggert@twinsun.com>
75864
75865         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
75866         Do not assume SA_SIGINFO behavior.
75867         Bug reported by Jim Meyering on NetBSD 1.5.2.
75868
75869 2002-06-22  Jim Meyering  <meyering@lucent.com>
75870
75871         * m4/c-stack.m4: New file, from diffutils-2.8.2.
75872         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
75873
75874         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
75875         now that configure.ac uses AC_GNU_SOURCE.
75876         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
75877         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
75878
75879         Update to latest tools.  Suggestions from Paul Eggert.
75880         * m4/stdbool.m4: New file, from diffutils-2.8.2.
75881         * m4/gnu-source.m4: Update from diffutils-2.8.2.
75882         * m4/fnmatch.m4: Likewise.
75883         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
75884         to AC_HEADER_STDBOOL
75885
75886 2002-06-22  Jim Meyering  <meyering@lucent.com>
75887
75888         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
75889         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
75890
75891 2002-06-22  Jim Meyering  <meyering@lucent.com>
75892
75893         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
75894
75895         * lib/exitfail.c, exitfail.h: Likewise.
75896         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
75897
75898         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
75899         of fnmatch.h.
75900         (EXTRA_DIST): Add fnmatch_loop.c.
75901         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
75902
75903         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
75904         * lib/fnmatch.c: Update from diffutils-2.8.2.
75905         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
75906         * lib/fnmatch.h: Remove file.
75907
75908 2002-06-21  Jim Meyering  <meyering@lucent.com>
75909
75910         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
75911         * m4/mbrtowc.m4: Likewise.
75912
75913         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
75914         * m4/mbswidth.m4: Reflect name change:
75915         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
75916         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75917
75918         * m4/lib-link.m4: Update from gettext-0.11.2.
75919         * m4/gettext.m4: Likewise.
75920
75921         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
75922         From Alfred M. Szmidt.
75923
75924 2002-06-18  Paul Eggert  <eggert@twinsun.com>
75925
75926         * lib/file-type.h: Report an error if neither S_ISREG nor
75927         S_IFREG is defined, instead of using a test specific to glibc
75928         2.2.  This should be safe, since POSIX requires S_ISREG and
75929         Unix Version 7 had S_IFREG.  We don't need to check for
75930         <sys/types.h> since we don't use any symbols that it defines.
75931
75932 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
75933
75934         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
75935         $@-t, so that each temporary file name is unique and valid in the first
75936         8 characters, for operation under DOS.
75937
75938 2002-06-15  Paul Eggert  <eggert@twinsun.com>
75939
75940         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
75941
75942 2002-06-15  Jim Meyering  <meyering@lucent.com>
75943
75944         Work even with DJGPP 2.03, which lacks support for symlinks.
75945         From Richard Dawe.
75946         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
75947         is defined.
75948         * lib/lchown.c (S_ISLNK): Likewise.
75949
75950 2002-06-15  Jim Meyering  <meyering@lucent.com>
75951
75952         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
75953         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
75954         have been included before this file.
75955
75956 2002-06-14  Jim Meyering  <meyering@lucent.com>
75957
75958         * lib/file-type.h: Use the version from diffutils-2.8.2.
75959         * lib/file-type.c: Likewise.
75960
75961 2002-06-07  Jim Meyering  <meyering@lucent.com>
75962
75963         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
75964         They're needed at least for NetBSD 1.5.2.
75965         ($statxfs_includes): Include those same headers.
75966         ($statxfs_includes): Include sys/vfs.h if available.
75967         ($statxfs_includes): Likewise for sys/statvfs.h.
75968         Check for the following members in both structs statfs and statvfs:
75969         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
75970
75971 2002-06-01  Jim Meyering  <meyering@lucent.com>
75972
75973         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
75974         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
75975
75976 2002-05-28  Jim Meyering  <meyering@lucent.com>
75977
75978         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
75979         Reported by Volker Borchert.
75980
75981 2002-05-27  Jim Meyering  <meyering@lucent.com>
75982
75983         Fix a problem seen only on nonconforming systems whereby ls.c's
75984         use of localtime, and then of gettimeofday would cause trouble:
75985         the localtime call used to initialize rpl_gettimeofday's save
75986         mechanism would clobber ls's current local time information so
75987         that in any long listing the first file would always be listed
75988         with date 1970-01-01.  Analysis by Volker Borchert.
75989
75990         * lib/gettimeofday.c (localtime): Undefine.
75991         (rpl_localtime): New function.
75992
75993 2002-05-27  Jim Meyering  <meyering@lucent.com>
75994
75995         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
75996         localtime.
75997
75998         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
75999         use the replacement function; it wouldn't resolve at link time.
76000         Reported by Volker Borchert.
76001
76002 2002-05-22  Jim Meyering  <meyering@lucent.com>
76003
76004         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
76005         file-type.h.
76006         * lib/file-type.h: New file.
76007         * lib/file-type.c (file_type): New file/function.  Extracted from
76008         diffutils.
76009
76010 2002-04-30  Jim Meyering  <meyering@lucent.com>
76011
76012         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
76013
76014 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76015
76016         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
76017
76018 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76019
76020         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
76021         Do not check for alloca.h (no longer used) or stdbool.h (was never
76022         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
76023
76024 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76025
76026         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
76027
76028 2002-04-29  Jim Meyering  <meyering@lucent.com>
76029
76030         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
76031         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
76032         Use AC_FUNC_STRNLEN here instead.
76033
76034         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
76035         With autoconf-2.53a, it's part of AC_PROG_CC.
76036
76037 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76038
76039         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
76040         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
76041
76042 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76043
76044         * lib/sig2str.h, lib/sig2str.c: New files.
76045         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
76046
76047 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76048
76049         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
76050         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
76051         of 127, since 64 is the largest conceivable number for ancient
76052         nonstandard hosts.
76053         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
76054
76055 2002-04-28  Jim Meyering  <meyering@lucent.com>
76056
76057         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
76058
76059 2002-04-24  Jim Meyering  <meyering@lucent.com>
76060
76061         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
76062         (jm_PREREQ): Use it.
76063
76064         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
76065         mach/mach.h fcntl.h.
76066         Check for this function: setlocale.
76067
76068 2002-04-24  Jim Meyering  <meyering@lucent.com>
76069
76070         * lib/gettext.h: New file, from Gettext.
76071         * lib/Makefile.am (INCLUDES): Remove -I../intl.
76072         (libfetish_a_SOURCES): Add gettext.h.
76073
76074 2002-04-16  Jim Meyering  <meyering@lucent.com>
76075
76076         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
76077         ut_pid, ut_id, ut_exit.
76078
76079 2002-04-16  Jim Meyering  <meyering@lucent.com>
76080
76081         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
76082         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
76083         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
76084
76085 2002-04-12  Jim Meyering  <meyering@lucent.com>
76086
76087         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
76088         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
76089         existence of the getmntinfo function.  Needed for Darwin 5.3.
76090
76091         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
76092         This is necessary at least on Darwin 5.3.
76093
76094         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
76095         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
76096         strnlen.o in the library, and that makes some versions of ranlib
76097         object.
76098
76099 2002-04-12  Jim Meyering  <meyering@lucent.com>
76100
76101         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
76102
76103 2002-04-09  Jim Meyering  <meyering@lucent.com>
76104
76105         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
76106         to be more precise.  Rather than saying we're checking whether the
76107         function `works', say what we're testing.
76108         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
76109         Reported by Bruno Haible.
76110
76111 2002-03-10  Jim Meyering  <meyering@lucent.com>
76112
76113         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
76114         Suggestion from Santiago Vila.
76115
76116 2002-03-08  Jim Meyering  <meyering@lucent.com>
76117
76118         * lib/rename.c: Mention that this wrapper is needed also on
76119         mips-dec-ultrix4.4 systems.
76120
76121 2002-03-02  Jim Meyering  <meyering@lucent.com>
76122
76123         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
76124         not HAVE_CLOCK_SETTIME.
76125
76126 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76127
76128         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
76129         Check for clock_settime.
76130
76131 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76132
76133         * lib/nanosleep.h: Rename to....
76134         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
76135
76136         * lib/gettime.c: New file.
76137         * lib/settime.c: New file.
76138         * lib/stime.c: Remove.
76139
76140         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
76141         timespec.h.  Remove nanosleep.h.
76142
76143 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76144
76145         * m4/acl.m4: New file.
76146         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
76147         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
76148
76149 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76150
76151         * lib/acl.c, lib/acl.h: New files.
76152         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
76153
76154 2002-02-24  Jim Meyering  <meyering@lucent.com>
76155
76156         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
76157         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
76158         cause trouble.  Reported by Nelson Beebe.
76159
76160 2002-02-23  Paul Eggert  <eggert@twinsun.com>
76161
76162         * lib/path-concat.c (xpath_concat): Reorder code to pacify
76163         compilers that don't know that xalloc_die never returns.
76164
76165 2002-02-20  Jim Meyering  <meyering@lucent.com>
76166
76167         * lib/getdate.c: Regenerate using bison-1.33.
76168
76169 2002-02-17  Jim Meyering  <meyering@lucent.com>
76170
76171         * config/config.guess (main): Don't use `head -1'; it's no longer
76172         portable. Use `sed 1q' instead.
76173
76174 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
76175
76176         * m4/codeset.m4: Upgrade to gettext-0.11.
76177         * m4/gettext.m4: Upgrade to gettext-0.11.
76178         * m4/glibc21.m4: Upgrade to gettext-0.11.
76179         * m4/iconv.m4: Upgrade to gettext-0.11.
76180         * m4/isc-posix.m4: Upgrade to gettext-0.11.
76181         * m4/lcmessage.m4: Upgrade to gettext-0.11.
76182         * m4/lib-ld.m4: New file, from gettext-0.11.
76183         * m4/lib-link.m4: New file, from gettext-0.11.
76184         * m4/lib-prefix.m4: New file, from gettext-0.11.
76185         * m4/progtest.m4: Upgrade to gettext-0.11.
76186
76187 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76188
76189         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
76190         (jm_PREREQ): Use it.
76191
76192 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76193
76194         * lib/posixver.c, lib/posixver.h: New files.
76195         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76196
76197 2002-02-02  Paul Eggert  <eggert@twinsun.com>
76198             Bruno Haible  <bruno@clisp.org>
76199
76200         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
76201         (fwrite_success_callback): New declaration.
76202         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
76203         print_unicode_char. Call failure callback instead of error.
76204         (fwrite_success_callback): New function.
76205         (exit_failure_callback): New function.
76206         (fallback_failure_callback): New function.
76207         (print_unicode_char): Call unicode_to_mb.
76208
76209 2002-01-26  Jim Meyering  <meyering@lucent.com>
76210
76211         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
76212         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
76213
76214 2002-01-26  Jim Meyering  <meyering@lucent.com>
76215
76216         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
76217
76218 2002-01-22  Paul Eggert  <eggert@twinsun.com>
76219
76220         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
76221
76222 2002-01-22  Jim Meyering  <meyering@lucent.com>
76223
76224         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
76225         Otherwise, some versions of automake would omit the rule that makes
76226         Makefile from Makefile.in.
76227
76228 2002-01-21  Paul Eggert  <eggert@twinsun.com>
76229
76230         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
76231         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76232         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
76233         (memcoll): Set errno to zero if there is no error.
76234
76235         * lib/quotearg.c (quotearg_buffer_restyled):
76236         Fix bug with quoting buffers containing NUL when backslashing escapes.
76237         This bug was exposed by the other changes in this patch.
76238         (quotearg_n_options): New arg ARGSIZE.
76239         All callers changed.
76240         (quoting_options_from_style): New function.
76241         (quotearg_n_style): Use it.
76242         (quotearg_n_style_mem): New function.
76243
76244         * lib/quotearg.h (quotearg_n_style_mem): New function.
76245
76246 2002-01-19  Jim Meyering  <meyering@lucent.com>
76247
76248         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
76249         Remove useless quotes: DF_PROG="df".
76250         * m4/strnlen.m4: New file.
76251
76252 2002-01-16  Paul Eggert  <eggert@twinsun.com>
76253
76254         * lib/backupfile.c (ISDIGIT): Comment fix.
76255         * lib/getdate.y (ISDIGIT): Likewise.
76256         * lib/posixtm.c (ISDIGIT, year): Likewise.
76257         * lib/strverscmp.c (ISDIGIT): Likewise.
76258         * lib/userspec.c (ISDIGIT): Likewise.
76259
76260 2002-01-16  Jim Meyering  <meyering@lucent.com>
76261
76262         * lib/getdate.y: Add three semicolons, each just before a closing
76263         brace. Bison (as of version 1.31) no longer papers over that mistake.
76264
76265 2002-01-05  Jim Meyering  <meyering@lucent.com>
76266
76267         * lib/version-etc.c (version_etc_copyright): Update copyright year.
76268
76269 2001-12-19  Paul Eggert  <eggert@twinsun.com>
76270
76271         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
76272         not silently exit merely because the output buffer happens to
76273         have nothing pending.
76274
76275 2001-12-18  Paul Eggert  <eggert@twinsun.com>
76276
76277         See the big note in ../ChangeLog.
76278         * lib/human.c (suffixes): Prefer K to k for 1024.
76279         (generate_suffix_backwards): New function.
76280         (human_readable_inexact): Use it.
76281         * lib/xstrtol.c (__xstrtol): If there is no number but there
76282         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
76283         Accept 'K' as well as 'k'.
76284
76285 2001-12-15  Jim Meyering  <meyering@lucent.com>
76286
76287         * lib/regex.h (__restrict_arr): Update from libc.
76288
76289         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
76290         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
76291         (STREQ): Define.
76292
76293 2001-12-14  Jim Meyering  <meyering@lucent.com>
76294
76295         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
76296         Suggestion from Bruno Haible.
76297
76298 2001-12-10  Jim Meyering  <meyering@lucent.com>
76299
76300         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
76301         xrealloc, Instead, include "xalloc.h".
76302         (initbuffer): Don't cast xmalloc return value to char*.
76303         (readline): Reword comment.
76304         Don't cast xrealloc return value to char*
76305         Return NULL, not 0.
76306
76307 2001-12-09  Jim Meyering  <meyering@lucent.com>
76308
76309         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
76310         about `signed and unsigned type in conditional expression'.
76311         * lib/posixtm.c (posix_time_parse): Likewise.
76312
76313         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
76314
76315         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
76316         to avoid a pedantic warning.
76317
76318         * lib/getstr.c: Don't include assert.h.
76319         (getstr): Remove warning-evoking assertions.
76320         Return -1 if offset parameter is out of bounds.
76321         Change the type of a local from int to size_t.
76322
76323         * lib/strftime.c (my_strftime_localtime_r): Include this function
76324         definition in the `#if ! HAVE_TM_GMTOFF' block.
76325
76326         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
76327         Include xalloc.h instead.
76328
76329 2001-12-02  Jim Meyering  <meyering@lucent.com>
76330
76331         * lib/tempname.c: Don't declare getenv, thus reverting the change of
76332         2001-11-18.  It's no longer necessary, now that stdlib.h is always
76333         included.
76334
76335         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
76336         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
76337
76338 2001-11-30  Akim Demaille  <akim@epita.fr>
76339
76340         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
76341         before being defined.
76342
76343 2001-11-27  Paul Eggert  <eggert@twinsun.com>
76344
76345         * lib/quotearg.h (quotearg_n, quotearg_n_style):
76346         First arg is int, not unsigned.
76347         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
76348         (SIZE_MAX, UINT_MAX): New macros.
76349         (quotearg_n_options): Abort if N is negative.
76350         Avoid overflow check on hosts where size_t is 64 bits and int
76351         is 32 bits, as overflow is impossible there.
76352         Fix off-by-one typo that caused unnecessary reallocation.
76353
76354 2001-11-27  Jim Meyering  <meyering@lucent.com>
76355
76356         * lib/tempname.c: Merge with version from libc.
76357         * lib/regex.c: Likewise.
76358
76359         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
76360         systems for which STDC_HEADERS is 0, it was not included, resulting in
76361         a warning about an integer-to-pointer conversion problem with getenv.
76362         Reported by Volker Borchert.
76363
76364 2001-11-26  Jim Meyering  <meyering@lucent.com>
76365
76366         * lib/gtod.h: Remove file.
76367         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
76368         * lib/gettimeofday.c: Don't include gtod.h.
76369         (GTOD_init): Remove function.
76370         (rpl_gettimeofday): Do its job here instead, rather than aborting.
76371         Suggestion from Volker Borchert.
76372
76373 2001-11-23  Jim Meyering  <meyering@lucent.com>
76374
76375         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
76376         it.
76377         * lib/hash.c (struct hash_table): Define it here instead.
76378
76379 2001-11-22  Jim Meyering  <meyering@lucent.com>
76380
76381         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
76382
76383 2001-11-20  Jim Meyering  <meyering@lucent.com>
76384
76385         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
76386         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
76387
76388 2001-11-19  Jim Meyering  <meyering@lucent.com>
76389
76390         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
76391         directory.  Use "conftestXXXXXX" as the template.
76392         Suggestion from Paul Eggert.
76393
76394         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
76395         immediately, so the test doesn't mistakenly hit the max-open-files
76396         limit.
76397
76398 2001-11-18  Paul Eggert  <eggert@twinsun.com>
76399
76400         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
76401         (TEMPORARIES): New macro.
76402         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
76403         removes an artificial limitation (e.g. HP-UX 10.20, where
76404         TMP_MAX is 17576).
76405
76406 2001-11-18  Jim Meyering  <meyering@lucent.com>
76407
76408         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
76409
76410 2001-11-18  Jim Meyering  <meyering@lucent.com>
76411
76412         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
76413         on SunOS 4.
76414
76415         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
76416         files will be created before anything else.
76417
76418 2001-11-17  Paul Eggert  <eggert@twinsun.com>
76419
76420         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
76421         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
76422
76423 2001-11-17  Jim Meyering  <meyering@lucent.com>
76424
76425         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
76426         Prompted by a report from Bob Proulx.
76427
76428         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
76429         Instead, require UTILS_FUNC_MKSTEMP.
76430
76431 2001-11-17  Jim Meyering  <meyering@lucent.com>
76432
76433         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
76434         Now, that's done as part of AC_FUNC_STRTOD.
76435
76436 2001-11-17  Jim Meyering  <meyering@lucent.com>
76437
76438         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
76439         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
76440         rather than group writable.  Patch by Juan F. Codagnone.
76441
76442         * lib/readtokens.c: Remove explicit declarations of xmalloc and
76443         xrealloc, Instead, include "xalloc.h".
76444
76445         * lib/mountlist.c: Include unlocked-io.h after all system headers.
76446         Remove explicit declarations of xmalloc, xrealloc,
76447         and xstrdup.  Instead, include "xalloc.h".
76448
76449         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
76450         unlocked-io.h.
76451         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
76452         Likewise.
76453         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
76454
76455         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
76456         Reported by Padraig Brady.
76457
76458         * lib/mkstemp.c: #undef mkstemp.
76459         Include config.h.
76460         (rpl_mkstemp): Rename from mkstemp.
76461         Protoize.
76462
76463 2001-11-16  Jim Meyering  <meyering@lucent.com>
76464
76465         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
76466         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
76467         determine the amount of total physical memory, use pstat_getstatic.
76468         HPUX-11 doesn't define _SC_PHYS_PAGES.
76469         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
76470         If sysconf couldn't be used to determine the amount of available
76471         physical memory, use both pstat_getstatic and pstat_getdynamic.
76472         Based on a patch from Bob Proulx.
76473
76474 2001-11-10  Jim Meyering  <meyering@lucent.com>
76475
76476         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
76477         (jm_PREREQ): Use it.
76478
76479 2001-11-09  Jim Meyering  <meyering@lucent.com>
76480
76481         * m4/jm-macros.m4: Require autoconf-2.52f.
76482         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
76483         Use these AC_-prefixed names, not the AM_-prefixed ones.
76484
76485         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
76486
76487 2001-11-05  Jim Meyering  <meyering@lucent.com>
76488
76489         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
76490
76491 2001-11-04  Jim Meyering  <meyering@lucent.com>
76492
76493         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
76494         $DEFS.
76495
76496 2001-11-03  Jim Meyering  <meyering@lucent.com>
76497
76498         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
76499         of AC_DEFUN.
76500
76501         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
76502         know the name of the variable in the macro definition.
76503
76504 2001-11-03  Jim Meyering  <meyering@lucent.com>
76505
76506         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
76507         in argmatch_to_argument call.
76508
76509         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
76510         argument.
76511
76512         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
76513         e.g., a fault due to an attempt to free a NULL pointer.
76514
76515 2001-11-01  Jim Meyering  <meyering@lucent.com>
76516
76517         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
76518         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
76519
76520 2001-11-01  Jim Meyering  <meyering@lucent.com>
76521
76522         * lib/dirfd.c, lib/dirfd.h: New files.
76523         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
76524
76525         * lib/hash.c (hash_print) [TESTING]: Clean up.
76526
76527 2001-10-22  Paul Eggert  <eggert@twinsun.com>
76528
76529         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
76530         to avoid a warning if -Wall.
76531
76532 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
76533
76534         * README: New file
76535         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
76536         (per RMS's instructions, this is now the canonical source)
76537         * lgpl/, gpl/: New directories.
76538
76539 2001-10-21  Paul Eggert  <eggert@twinsun.com>
76540
76541         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
76542
76543 2001-10-21  Jim Meyering  <meyering@lucent.com>
76544
76545         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
76546         this code would end up calling gettext even in packages built
76547         with --disable-nls.
76548         * lib/getopt.c (_): Likewise.
76549         * lib/regex.c (_): Likewise.
76550
76551 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76552
76553         * m4/error.m4 (jm_PREREQ_ERROR):
76554         Do not invoke AC_CHECK_FUNCS with strerror_r, as
76555         AC_FUNC_STRERROR_R does that.
76556         Check for strerror declaration.
76557
76558         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
76559         are supposed to have them these days.
76560         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
76561         Merge changes from latest Autoconf CVS.
76562         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
76563         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
76564         POSIX decided to standardize on the int flavor of strerror_r.
76565
76566 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76567
76568         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
76569         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
76570         Use strerror_r that is only a macro, even if it is not a function.
76571         (strerror): Check for HAVE_DECL_STRERROR before declaring.
76572         (private_strerror): Use prototypes, not old-style function definition.
76573         (print_errno_message): New function.
76574         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
76575         char*-flavored one.
76576         (error_tail, error, error_at_line): Use it.
76577
76578 2001-10-11  Jim Meyering  <meyering@lucent.com>
76579
76580         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
76581         and quote_n (1, ... to avoid clobbering a buffer.
76582
76583 2001-10-05  Jim Meyering  <meyering@lucent.com>
76584
76585         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
76586         hash-pjw.h.
76587         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
76588         * lib/hash-pjw.h: New file.
76589
76590 2001-09-30  Jim Meyering  <meyering@lucent.com>
76591
76592         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
76593         `struct fsstat' has the `f_fstypename' member.
76594         Use that to define FS_TYPE, which is now used to make
76595         the getfsstat link test tighter.
76596
76597 2001-09-30  Jim Meyering  <meyering@lucent.com>
76598
76599         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
76600         Include <sys/ucred.h>, for Apple Darwin.
76601         Include sys/mount.h and sys/fs_types.h only if available.
76602         (FS_TYPE): Define.
76603         (read_filesystem_list): Use FS_TYPE.
76604
76605 2001-09-29  Paul Eggert  <eggert@twinsun.com>
76606
76607         * lib/exclude.c (excluded_filename): 0 -> false, since it's
76608         a boolean context.
76609
76610 2001-09-29  Jim Meyering  <meyering@lucent.com>
76611
76612         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76613         [one-argument getmntent function]): Include stdio.h before mntent.h.
76614         SunOS 4.1.x needs it for the declaration of `FILE'.
76615         Patch by Volker Borchert.
76616
76617         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76618         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
76619         sys/fs_types.h, and make the link-test for getfsstat guard #include
76620         directives with appropriate #if HAVE_*_H tests so that we can
76621         detect getfsstat on Apple Darwin1.3.7 systems.
76622         Reported by Nelson Beebe.
76623         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
76624
76625 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76626
76627         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76628         #defines strtoimax.  Also treat the other strto* functions
76629         like strtoimax.
76630
76631         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76632         Check for strtoul and strtoumax,
76633         as those declarations are made even in the signed case.
76634         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
76635         Likewise, for strtol and strtoimax.
76636
76637 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76638
76639         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76640         #defines strtoimax.  Also treat the other strto* functions
76641         like strtoimax.
76642
76643         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
76644         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
76645         (strtoimax, strtoumax): Do not declare if already defined as a macro.
76646
76647 2001-09-26  Jim Meyering  <meyering@lucent.com>
76648
76649         Most macros in unlocked-io.h had the wrong number of arguments.
76650         * lib/gen-uio: New script.
76651         (USE_UNLOCKED_IO): Define to 1 if not already defined.
76652         * lib/unlocked-io.hin: Remove file.
76653         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
76654         rather than trying to embed it here.
76655         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
76656         Reported by Padraig Brady.
76657
76658 2001-09-25  Volker Borchert  <bt@teknon.de>
76659
76660         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
76661         `result'.
76662
76663 2001-09-24  Jim Meyering  <meyering@lucent.com>
76664
76665         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
76666
76667 2001-09-23  Jim Meyering  <meyering@lucent.com>
76668
76669         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
76670         instead of the mere test for existence of mntent.h.  The latter
76671         would get a false-positive on AIX 3.4 systems.
76672         In the outer getmntent if-block, don't die if neither of the getmntent
76673         tests succeeds.  Instead, just fall through and continue with the
76674         remaining tests.
76675
76676 2001-09-23  Jim Meyering  <meyering@lucent.com>
76677
76678         * lib/mountlist.c: Remove useless parentheses in #if directives.
76679         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
76680         the deprecated MOUNTED symbol is no longer defined in mntent.h.
76681
76682 2001-09-22  Jim Meyering  <meyering@lucent.com>
76683
76684         * m4/gettext.m4: New file.  From gettext.
76685         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
76686         * m4/progtest.m4: Likewise
76687         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
76688         * m4/glibc21.m4: Likewise.
76689
76690         * m4/libintl.m4: Remove.  No longer used.
76691
76692 2001-09-22  Jim Meyering  <meyering@lucent.com>
76693
76694         * lib/localcharset.c: Update from latest gettext.
76695         * lib/config.charset: Likewise.
76696
76697 2001-09-20  Jim Meyering  <meyering@lucent.com>
76698
76699         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
76700         strtoimax.
76701         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
76702         strtoumax.
76703
76704 2001-09-20  Jim Meyering  <meyering@lucent.com>
76705
76706         * lib/xstrtol.c (strtoimax): Guard declaration with
76707         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
76708         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
76709         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
76710         (strtoumax): Likewise, for completeness (it wasn't necessary).
76711
76712 2001-09-17  Paul Eggert  <eggert@twinsun.com>
76713
76714         * lib/strtoimax.c (HAVE_LONG_LONG):
76715         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
76716         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
76717         to work around bug in IBM C compiler.
76718
76719 2001-09-17  Jim Meyering  <meyering@lucent.com>
76720
76721         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
76722         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
76723         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
76724         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
76725         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
76726         whenever the right hand side need not be expanded by the shell.
76727
76728 2001-09-16  Paul Eggert  <eggert@twinsun.com>
76729
76730         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
76731         library.  It's not correct, as some older glibcs are buggy.
76732         fnmatch wasn't fixed until glibc 2.2.
76733
76734         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
76735         special shell magic here.
76736
76737 2001-09-16  Jim Meyering  <meyering@lucent.com>
76738
76739         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
76740         * m4/jm-macros.m4: Require it.
76741
76742 2001-09-16  Jim Meyering  <meyering@lucent.com>
76743
76744         * lib/mkdir.c: New file.
76745
76746 2001-09-15  Jim Meyering  <meyering@lucent.com>
76747
76748         * m4/jm-macros.m4: Check for help2man.
76749
76750 2001-09-11  Jim Meyering  <meyering@lucent.com>
76751
76752         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
76753         The body, by Paul Eggert, was moved here from configure.in.
76754         * m4/jm-macros.m4: Require UTILS_HOST_OS.
76755
76756 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76757
76758         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
76759         (jm_PREREQ): Use it.
76760
76761 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76762
76763         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
76764         Use ssize_t, not int, to store result of readlink.
76765         Check for ssize_t overflow as well as size_t overflow,
76766         as POSIX says the result of readlink is implementation-defined
76767         when ssize_t overflows.
76768         Remove unnecessary cast to char*.
76769         Use free+malloc instead of realloc, as the storage doesn't need
76770         to be preserved and it's clearer and can be more efficient that way.
76771         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
76772         * lib/xreadlink.h (xreadlink): Update prototype.
76773
76774 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76775
76776         * lib/xgetcwd.c: Revert some of the previous change; intead,
76777         fix the HAVE_GETCWD_NULL code to behave more like the
76778         !HAVE_GETCWD_NULL code used to.
76779
76780         Include "xalloc.h".
76781         (xgetcwd): Do not return NULL when memory is exhausted; instead,
76782         invoke xalloc_die.
76783
76784 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76785
76786         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
76787         sys/param.h, as pathmax.h includes them.
76788
76789 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76790
76791         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
76792         (jm_PREREQ_XGETCWD): New macro.
76793
76794         * m4/getcwd.m4: New file.
76795
76796 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76797
76798         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
76799         like the HAVE_GETCWD_NULL code.
76800         Include pathmax.h if not HAVE_GETCWD.
76801         Do not include xalloc.h.
76802         (INITIAL_BUFFER_SIZE): New symbol.
76803         Do not use xmalloc / xrealloc, since the caller is responsible for
76804         handling errors.  Preserve errno around `free' during failure.
76805         Do not overrun buffer when using getwd.
76806
76807 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76808
76809         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
76810         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
76811         getcwd (NULL, 0).
76812
76813 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76814
76815         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
76816         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
76817         spotted by Jim Meyering.
76818
76819 2001-09-03  Jim Meyering  <meyering@lucent.com>
76820
76821         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
76822         failure.
76823
76824 2001-09-02  Jim Meyering  <meyering@lucent.com>
76825
76826         * lib/error.c: Update from GNU libc.
76827
76828 2001-09-01  Jim Meyering  <meyering@lucent.com>
76829
76830         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
76831         Used by df.
76832
76833 2001-09-01  Jim Meyering  <meyering@lucent.com>
76834
76835         * lib/xreadlink.c: New file.
76836         * lib/xreadlink.h: New file.
76837         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
76838         xreadlink.h.
76839
76840         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
76841         doesn't conflict with sparc Solaris 7's definition in
76842         /usr/include/sys/int_types.h.
76843
76844         * lib/exclude.c: Use `""', not `<>' to #include non-system header
76845         files.
76846         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
76847         and strncasecmp as r-values.  Unixware didn't have declarations.
76848
76849 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76850
76851         * lib/xstrtol.h: Add copyright notice.
76852         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
76853         LONGINT_INVALID_SUFFIX_CHAR.
76854
76855 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76856
76857         * lib/xstrtol.c (strtoimax): New decl.
76858
76859 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76860
76861         * lib/xgetcwd.c: Don't include pathmax.h.
76862         Include stdlib.h and unistd.h if available.
76863         Include xalloc.h.
76864         (xmalloc, xstrdup, free): Remove decls.
76865         (xgetcwd): Don't assume sizes fit in unsigned.
76866         Check for overflow when computing sizes.
76867         Simplify reallocation code.
76868
76869 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76870
76871         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
76872         a directory's st_size can have an arbitrary value, so the old
76873         usage could waste an arbitrary amount of memory.  All uses
76874         changed.
76875         * lib/savedir.h: Update prototype.
76876
76877 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76878
76879         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
76880
76881         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
76882         old strtoimax.c.
76883
76884         Also, make the following further changes to make this file's
76885         configuration more similar to that of strtol.c:
76886         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
76887         (strtoumax, uintmax_t, strtoull, strtol): Remove.
76888         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
76889         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
76890         changed to signed values.
76891
76892         And make the following changes as well:
76893         Fix copyright notice, as 1999 was missing.
76894         (verify): New macro.
76895         (strtoimax): Check sizes at compile-time, not run-time.
76896         Prefer strtol to strtoll if both work.
76897         (main): Remove; it was not that useful and was a pain to maintain.
76898
76899         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
76900
76901 2001-08-31  Jim Meyering  <meyering@lucent.com>
76902
76903         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
76904         Use an initial, malloc'd, buffer of length 128 rather than
76905         a statically allocated one of length 1024.
76906
76907 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76908
76909         Simplify code, partly by assuming autoconf 2.52 semantics.
76910
76911         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
76912
76913         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
76914         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
76915         All uses removed.
76916         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
76917         Move AC_REQUIRE to next-to-top level, to avoid confusion.
76918         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
76919         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
76920         jm_AC_HEADER_INTTYPES_H.
76921         * m4/jm-macros.m4 (jm_MACROS): Likewise.
76922
76923         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
76924
76925         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76926         Quote first arg of AC_DEFUN.
76927         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
76928         since they are needed to parse the include file even if we need
76929         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
76930         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
76931         but with opposite signedness.
76932
76933 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76934
76935         Merge 'exclude' changes from tar 1.13.22.
76936         This fixes one or two unlikely storage allocation overflow bugs,
76937         but doesn't change user-visible behavior otherwise.
76938
76939 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76940
76941         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
76942         (jm_PREREQ_EXCLUDE): New macro.
76943
76944 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76945
76946         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
76947         tm to be declared.
76948
76949 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76950
76951         * lib/hash.c: Remove '2001' from copyright notice.
76952
76953 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76954
76955         * lib/full-write.h: New file.
76956         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
76957         * lib/full-write.c: Correct credits, as cccp.c no longer
76958         exists and anyway it was so heavily changed from the old cccp
76959         code as to be unrecognizable.  Include full-write.h.
76960         (full_write): Return size_t, with short writes meaning failure.
76961         All callers changed.  This fixes a bug with large buffers
76962         on 64-bit hosts.
76963         * lib/utime.c: Include full-write.h.
76964
76965 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76966
76967         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
76968         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
76969         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
76970         Include if available.
76971         (<xalloc.h>): Include
76972         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
76973         (verify): New macro.  Use it to verify that EXCLUDE macros do not
76974         collide with FNM macros.
76975         (struct patopts): New struct.
76976         (struct exclude): Use it, as exclude patterns now come with options.
76977         (new_exclude): Support above changes.
76978         (new_exclude, add_exclude_file):
76979         Initial size must now be a power of two to simplify overflow checking.
76980         (free_exclude, fnmatch_no_wildcards): New function.
76981         (excluded_filename): No longer requires options arg, as the options
76982         are determined by add_exclude.  Now returns bool, not int.
76983         (excluded_filename, add_exclude):
76984         Add support for the fancy new exclusion options.
76985         (add_exclude, add_exclude_file): Now takes int options arg.
76986         Check for arithmetic overflow when computing sizes.
76987         (add_exclude_file): xrealloc might modify errno, so don't
76988         realloc until after errno might be used.
76989
76990         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
76991         New macros.
76992         (free_exclude): New decl.
76993         (add_exclude, add_exclude_file): Now takes int options arg.
76994         (excluded_filename): No longer requires options arg, as the options
76995         are determined by add_exclude.  Now returns bool, not int.
76996
76997 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76998
76999         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
77000
77001 2001-08-27  Jim Meyering  <meyering@lucent.com>
77002
77003         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
77004
77005         * lib/version-etc.c (N_): Remove definition.
77006         Revert most of last change.
77007         Instead, simply don't mark the `Copyright...' string for translation.
77008         Based on advice from Paul Eggert.
77009
77010         * lib/strtoxmax.c: Tweak comment.
77011
77012 2001-08-26  Jim Meyering  <meyering@lucent.com>
77013
77014         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
77015
77016         * m4/xstrtoimax.m4: New file.
77017         * m4/xstrtoumax.m4: Add comments explaining why we
77018         AC_REPLACE_FUNCS(strtol).
77019
77020 2001-08-26  Jim Meyering  <meyering@lucent.com>
77021
77022         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
77023         of copyright with `%s' so translators don't get an untranslated
77024         message in 2002.
77025         (COPYRIGHT_YEAR): Define.
77026         (version_etc): Use fprintf rather than fputs.
77027         Suggestion from Ulrich Drepper.
77028
77029         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
77030
77031         * lib/strtoll.c: New file, from GNU libc.
77032         * lib/xstrtoimax.c: New file.
77033
77034         * lib/xstrtol.h: Add xstrtoimax.
77035         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
77036         * lib/strtoimax.c: New file.  Likewise, but first define
77037         STRTOUXMAX_SIGNED.
77038
77039         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
77040         ...
77041         * lib/strtoxmax.c: ... then renamed to this.
77042
77043 2001-08-18  Paul Eggert  <eggert@twinsun.com>
77044
77045         * m4/inttypes.m4: Add AC_PREREQ(2.13).
77046         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
77047         (jm_AC_TYPE_INTMAX_T): New macro.
77048         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
77049
77050         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
77051
77052         * m4/longlong.m4: Renamed from ulonglong.m4.
77053         * m4/inttypes.m4: Renamed from inttypes_h.m4.
77054         * m4/uintmax_t.m4: Removed.
77055
77056 2001-08-13  Paul Eggert  <eggert@twinsun.com>
77057
77058         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
77059         Port to Solaris 8, where 'sed' requires a space after the 'r'
77060         command, and where sh dislikes "$/".  Clean up the spacing a bit.
77061         Redirect output to $tmp just once.
77062
77063 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
77064
77065         * lib/addext.c (<errno.h>): Include.
77066         (errno): Declare if not defined.
77067         (addext): Work correctly when pathconf returns -1 and leaves
77068         errno alone because there is no limit.  Also, work even if
77069         pathconf returns a value greater than SIZE_MAX.
77070
77071 2001-08-12  Jim Meyering  <meyering@lucent.com>
77072
77073         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
77074         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
77075         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
77076         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
77077         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
77078         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
77079         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
77080         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
77081         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
77082         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
77083         utime.m4, utimes.m4, xstrtoumax.m4:
77084         Quote the first argument in each use of AC_DEFUN.
77085
77086 2001-08-12  Jim Meyering  <meyering@lucent.com>
77087
77088         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
77089         Simply `return getcwd (NULL, 0);'.
77090         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
77091         Use 1300 as initial value for length, not PATH_MAX.
77092
77093         * lib/pathmax.h: Clean up cpp syntax.
77094
77095 2001-08-12  Jim Meyering  <meyering@lucent.com>
77096
77097         * lib/gettimeofday.c: New file.
77098         * lib/gtod.h: New file.
77099         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
77100
77101 2001-08-05  Jim Meyering  <meyering@lucent.com>
77102
77103         * m4/jm-macros.m4: Require autoconf-2.52.
77104
77105 2001-08-04  Jim Meyering  <meyering@lucent.com>
77106
77107         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
77108         stmt, to get in sync with glibc.
77109
77110 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77111
77112         The following changes are from gettext 0.10.39 as maintained by
77113         Bruno Haible.
77114
77115         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
77116         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
77117         with inverted sense.  All uses changed.
77118
77119         * lib/mbswidth.c: Don't include <limits.h>.
77120         Include <stdlib.h> and <string.h> unconditionally.
77121         (iswcntrl, mbsinit, ISCNTRL): New macros.
77122         (mbsnwidth): Use K&R style function declarations.
77123         Don't bother checking for MB_LEN_MAX == 1, since the compiler
77124         can optimize it when MB_CUR_MAX == 1.
77125         The width of control characters is zero, not 1.
77126
77127 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77128
77129         The following changes are from gettext 0.10.39 as maintained by
77130         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
77131
77132         * m4/codeset.m4: Upgrade to serial AM1.
77133         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
77134         all uses changed.  Quote first arg of AC_DEFUN.
77135         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
77136
77137         * m4/iconv.m4: Upgrade to serial AM2.
77138         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
77139         Add --with-libconv-prefix.
77140         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
77141         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
77142         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
77143         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
77144         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
77145
77146         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
77147         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
77148         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
77149         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
77150         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
77151         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
77152         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
77153         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
77154         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77155
77156         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
77157         string.h any more.
77158
77159         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
77160         not the default value.
77161
77162         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
77163         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
77164         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
77165         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
77166         Also check for iswcntrl, used for wcwidth fallback.
77167         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
77168         to Autoconf 2.13.
77169
77170 2001-08-03  Jim Meyering  <meyering@lucent.com>
77171
77172         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
77173         as it was in the original.  Reported by Paul Eggert.
77174
77175 2001-07-16  Jim Meyering  <meyering@lucent.com>
77176
77177         * m4/gettimeofday.m4: New file.
77178         Prompted by a report from Bernhard Baehr.
77179
77180 2001-07-15  Jim Meyering  <meyering@lucent.com>
77181
77182         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
77183         stuff. Now it's in ../Makefile.cfg.
77184
77185 2001-07-15  Jim Meyering  <meyering@lucent.com>
77186
77187         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
77188         (BUILT_SOURCES): Add unlocked-io.h.
77189         (io_functions): Define.
77190         (unlocked-io.h): New rule.
77191         (DISTCLEANFILES): Add unlocked-io.h.
77192         (all-local): Depend on unlocked-io.h, to ensure it is created.
77193
77194         * lib/unlocked-io.hin: New file
77195
77196         * lib/regex.c: Update from glibc.
77197
77198 2001-07-05  Jim Meyering  <meyering@lucent.com>
77199
77200         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
77201         recommendation.
77202         (libfetish_a_SOURCES): Put all .h files here instead.
77203         Remove a thus-exposed (better checks in automake) duplicate and
77204         two unnecessary .h files.
77205
77206 2001-07-04  Jim Meyering  <meyering@lucent.com>
77207
77208         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
77209         that generates jm-glibc-io.m4 so that it doesn't trigger any make
77210         distcheck failure.
77211
77212 2001-07-02  Jim Meyering  <meyering@lucent.com>
77213
77214         The following changes were prompted by suggestions from Bruno Haible.
77215
77216         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
77217         is now generated.
77218         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
77219         definition of EXTRA_DIST.
77220         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
77221         ensure that the generated file is created/updated whenever the list
77222         of $(unlocked_functions) is changed.
77223         (jm-glibc-io.m4): New rule.
77224         (unlocked-io.h): New rule -- currently unused.
77225
77226 2001-06-24  Jim Meyering  <meyering@lucent.com>
77227
77228         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
77229         unmatched right bracket, rather than kludging it with an extra,
77230         falsely-matching quote in a comment.  Patch by Akim Demaille.
77231
77232 2001-06-11  Jim Meyering  <meyering@lucent.com>
77233
77234         * lib/regex.c: Update from GNU libc.
77235
77236 2001-05-27  Jim Meyering  <meyering@lucent.com>
77237
77238         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
77239         Check for ut_type in struct utmp.
77240
77241 2001-05-27  Jim Meyering  <meyering@lucent.com>
77242
77243         * lib/readutmp.h (UT_TYPE): Define.
77244
77245 2001-05-24  Jim Meyering  <meyering@lucent.com>
77246
77247         * lib/argmatch.c: Include "quote.h".
77248         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
77249         quote function.  Reported by Göran Uddeborg.
77250
77251 2001-05-22  Jim Meyering  <meyering@lucent.com>
77252
77253         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
77254         now that we use the package-supplied version unconditionally.
77255         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
77256
77257 2001-05-21  Jim Meyering  <meyering@lucent.com>
77258
77259         * m4/regex.m4: Change a couple backticks to single quotes to avoid
77260         shell syntax errors.
77261
77262 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77263
77264         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
77265
77266 2001-05-20  Paul Eggert  <eggert@twinsun.com>
77267
77268         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
77269         Don't bother to check library strftime, since
77270         we'll be using our own my_strftime function anyway.
77271         Define my_strftime instead of strftime.
77272
77273 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
77274
77275         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
77276         which is not yet declared.
77277
77278 2001-05-15  Jim Meyering  <meyering@lucent.com>
77279
77280         * m4/regex.m4: Use proper quoting so brackets appear in the test
77281         program.
77282         Reported by, and with help from, Bruno Haible.
77283
77284 2001-05-13  Jim Meyering  <meyering@lucent.com>
77285
77286         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
77287         undefined.
77288
77289 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77290
77291         dirname code cleanup.  base_name now behaves more compatibly
77292         with POSIX basename when given file names that have trailing
77293         slashes, and similarly for dir_name.  Add new primitives
77294         base_len and dir_len.  Put the directory-name-related decls
77295         into dirname.h.
77296
77297         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
77298         * lib/backupfile.c (base_name): Likewise.
77299         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
77300         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
77301         * lib/makepath.c (strip_trailing_slashes): Likewise.
77302         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
77303         ISSLASH): Likewise.
77304         * lib/rename.c (strip_trailing_slashes): Likewise.
77305         * lib/same.c (base_name): Likewise.
77306         * lib/stripslash.c (ISSLASH): Likewise.
77307
77308         * lib/addext.c: Include <dirname.h> after size_t is defined.
77309         * lib/backupfile.c: Likewise.
77310
77311         * lib/addext.c (addext): Use base_len to trim redundant
77312         trailing slashes instead of doing it ourselves.
77313         But do not trim the last slash if it is not redundant.
77314
77315         * lib/backupfile.c (find_backup_file_name,
77316         max_backup_version): Use base_len instead of rolling it ourselves.
77317         Handle the case of "" and (on DOS) "C:" correctly.
77318
77319         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
77320         needed. Include <string.h>, <dirname.h>.
77321         (base_name): Allow file names ending in slashes, other than names
77322         that are all slashes.  In this case, return the basename followed
77323         by the slashes.  This is more general, and can be used in places
77324         where the original base_name purposely had an assertion failure.
77325         (base_len): New function.
77326
77327         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
77328         Do not include <assert.h>; no longer needed.
77329         Include xalloc.h.
77330         (memrchr): Remove decl.
77331         (dir_name_r): Remove.
77332         (dir_len): Renamed from dirlen.  All callers changed.
77333         Rewrite in terms of base_name, for simplicity and consistency.
77334         (dir_name): Never return NULL.  All callers changed.
77335         Do not include <stdlib.h> in test program; no longer needed.
77336         return 0; is fine for test program.
77337
77338         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
77339         New macros.
77340         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
77341
77342         * lib/path-concat.c (path_concat): Use base_len to compute
77343         base length, not strlen; this means we cannot rely on memcpy
77344         to null-terminate.
77345
77346         * lib/same.c (STREQ): Remove.
77347         (same_name): Handle the case where the basename ends in trailing '/'.
77348
77349         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
77350         a slash was stripped.  Do not strip the last slash after a
77351         file system prefix.
77352
77353 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77354
77355         * lib/Makefile.am (libfetish_a_SOURCES):
77356         Add strftime.c, since we now compile it on all hosts.
77357
77358         * lib/strftime.c (my_strftime):
77359         Define to nstrftime if emacs, but only if my_strftime is not defined.
77360         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
77361         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
77362         Add one more extra argument: a nanoseconds value.
77363         All uses changed.
77364         (ns): New macro.
77365         (my_strftime function): Add %N format.
77366         (emacs_strftimeu): Renamed from emacs_strftime,
77367         with extra ut argument.
77368
77369 2001-05-09  Paul Eggert  <eggert@twinsun.com>
77370
77371         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
77372
77373 2001-04-21  Jim Meyering  <meyering@lucent.com>
77374
77375         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
77376         doesn't interfere.
77377
77378 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77379
77380         * m4/ftruncate.m4: Check for chsize.
77381         Link with ftruncate.o unconditionally if ftruncate is missing.
77382         This was required when cross-compiling to i586-mingw32msvc.
77383
77384 2001-04-08  Jim Meyering  <meyering@lucent.com>
77385
77386         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
77387         recomputed; that's necessary when the offset spans a DST transition.
77388         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
77389
77390 2001-04-02  Jim Meyering  <meyering@lucent.com>
77391
77392         * lib/regex.h, regex.c: Update from GNU libc.
77393
77394 2001-03-24  Jim Meyering  <meyering@lucent.com>
77395
77396         * m4/jm-macros.m4: Require autoconf-2.49d.
77397
77398 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
77399
77400         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
77401
77402 2001-03-19  Paul Eggert  <eggert@twinsun.com>
77403
77404         * lib/version-etc.c (version_etc_copyright): Update to 2001.
77405
77406 2001-03-17  Jim Meyering  <meyering@lucent.com>
77407
77408         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
77409         now that the version in autoconf is equivalent.
77410         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
77411
77412         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
77413         Suggestion from Akim Demaille.
77414
77415         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
77416         (jm_PREREQ_TEMPNAME): New function.
77417
77418 2001-03-16  Paul Eggert  <eggert@twinsun.com>
77419
77420         * lib/tempname.c (uint64_t): Define to uintmax_t if
77421         not defined, and if UINT64_MAX is not defined.
77422         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
77423         Reported by John David Anglin.
77424
77425 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
77426
77427         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
77428         resolve alias if codeset is empty.
77429         * lib/config.charset (BeOS): Use wildcard syntax.
77430
77431 2001-03-13  Jim Meyering  <meyering@lucent.com>
77432
77433         * lib/path-concat.c (path_concat)
77434         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
77435         concatenating e.g., `C:' and `foo'.
77436         From Bruno Haible.
77437
77438 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77439
77440         * lib/localcharset.c (locale_charset): Don't use
77441         setlocale(LC_CTYPE,NULL). Don't return NULL.
77442         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
77443
77444 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77445
77446         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
77447         support for DOS/DJGPP.
77448
77449 2001-03-01  Paul Eggert  <eggert@twinsun.com>
77450
77451         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
77452         lacks mkstemp.  Compile our own tempname.c if we compile our own
77453         mkstemp.c, as mkstemp relies on tempname.
77454
77455 2001-03-01  Jim Meyering  <meyering@lucent.com>
77456
77457         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
77458         AH_VERBATIM really does output its argument verbatim.
77459
77460 2001-02-28  Paul Eggert  <eggert@twinsun.com>
77461
77462         * lib/Makefile.am (libfetish_a_SOURCES):
77463         Add dup-safer.c, fopen-safer.c.
77464         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
77465
77466         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
77467         * lib/unistd-safer.h: New files.
77468
77469 2001-02-25  Paul Eggert  <eggert@twinsun.com>
77470
77471         The mkstemp replacement is taken from glibc 2.2.2, with some
77472         portability fixes for use outside glibc, as follows:
77473
77474         * lib/tempname.c (struct_stat64): New macro.
77475         (direxists, __gen_tempname): Use it.
77476         This avoids a portability problem with Solaris 8.
77477
77478         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
77479         (<stddef.h>, <stdint.h>, <string.h>):
77480         Include only if STDC_HEADERS || _LIBC.
77481         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
77482         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
77483         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
77484         (__set_errno): Define this macro if <errno.h> doesn't.
77485         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
77486         Define these macros if <stdio.h> doesn't.
77487         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
77488         Define these macros if <sys/stat.h>
77489         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
77490         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
77491         __xstat64): Define if not _LIBC.
77492         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
77493         (__gen_tempname): Invoke gettimeofday only if
77494         HAVE_GETTIMEOFDAY || _LIBC;
77495         otherwise, fall back on plain "time".
77496         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
77497
77498         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
77499
77500         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
77501
77502 2001-02-18  Paul Eggert  <eggert@twinsun.com>
77503
77504         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
77505
77506 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77507
77508         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
77509         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
77510         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
77511         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77512
77513 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77514
77515         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
77516         Remove workaround macros for hosts that have mbrtowc but not
77517         mbstate_t, as we now insist on proper declarations for both
77518         before using mbrtowc.
77519
77520 2001-02-17  Jim Meyering  <meyering@lucent.com>
77521
77522         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
77523         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
77524         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
77525         UnixWare 7.1.1.
77526
77527         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
77528         rather than AC_CACHE_VAL.
77529
77530 2001-02-17  Jim Meyering  <meyering@lucent.com>
77531
77532         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
77533         around included file name.
77534
77535         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
77536
77537         * lib/strftime.c: Update from GNU libc (the only changes were to
77538         comments).
77539
77540 2001-02-17  Jim Meyering  <meyering@lucent.com>
77541
77542         * lib/regex.c: Update from libc.
77543
77544 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
77545
77546         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
77547         clash.
77548
77549 2001-02-16  Paul Eggert  <eggert@twinsun.com>
77550
77551         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
77552         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
77553         Reported by Mark Hounschell via Paul Eggert.
77554
77555 2001-02-07  Jim Meyering  <meyering@lucent.com>
77556
77557         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
77558
77559 2001-02-05  Jim Meyering  <meyering@lucent.com>
77560
77561         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
77562         it includes the patch required for `large file' support with at least
77563         HP-UX's 10.20 /bin/cc.
77564
77565 2001-02-03  Jim Meyering  <meyering@lucent.com>
77566
77567         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
77568         AS_IF, now that it works once again (mysteriously).
77569         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77570
77571 2001-01-30  Jim Meyering  <meyering@lucent.com>
77572
77573         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
77574         * m4/chown.m4: Rename conftestchown to conftest.chown.
77575         * m4/rename.m4: s/conftestdir/conftest.d1/ and
77576         s/conftestdir2/conftest.d2/.
77577         * m4/utimes.m4: s/conftestdata/conftest.data/
77578         Inspired by Pavel Roskin's change in autoconf.
77579
77580 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
77581
77582         * lib/config.charset: Update for FreeBSD 4.2.
77583
77584 2001-01-27  Jim Meyering  <meyering@lucent.com>
77585
77586         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
77587         a use of AS_IF.
77588         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77589
77590 2001-01-26  Jim Meyering  <meyering@lucent.com>
77591
77592         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
77593         quotearg.c includes it.
77594
77595 2001-01-26  Jim Meyering  <meyering@lucent.com>
77596
77597         * lib/quotearg.c: Include stddef.h.
77598         * lib/quote.c: Include stddef.h.
77599         Reported by Axel Kittenberger.
77600
77601         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
77602         line in double quotes so that it evokes a better diagnostic.
77603         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
77604         Reported by Axel Kittenberger.
77605
77606 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
77607
77608         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
77609         as if it was a `charset'.
77610
77611 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77612
77613         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
77614         has const.
77615
77616 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77617
77618         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
77619         to avoid a warning.  Add back 'const' to inptr.
77620
77621 2001-01-20  Jim Meyering  <meyering@lucent.com>
77622
77623         Be sure that headers are checked before used in code compiled
77624         for the type checks.
77625         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
77626         In place of that, invoke jm_CHECK_ALL_TYPES.
77627         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
77628         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
77629         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
77630         The check for ssize_t was mistakenly run before the test for unistd.h.
77631
77632         The configure-time check for stdbool.h was missing.
77633         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
77634         (jm_PREREQ_HASH): New function.
77635
77636 2001-01-17  Jim Meyering  <meyering@lucent.com>
77637
77638         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
77639         for autoconf-2.49c.
77640         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
77641
77642 2001-01-16  Jim Meyering  <meyering@lucent.com>
77643
77644         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
77645         From Bruno Haible.
77646
77647 2001-01-14  Jim Meyering  <meyering@lucent.com>
77648
77649         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
77650         foo and bar.  Create conftestdir/ in the script, not in the C code.
77651         Remove directories in the script, not in the C code.
77652         Remove conftestdir{,2} before trying to create the directory.
77653         Make the entire configure script fail if the mkdir fails.
77654
77655 2001-01-14  Jim Meyering  <meyering@lucent.com>
77656
77657         * lib/rename.c: New file.  From Volker Borchert.
77658         Include stdlib.h, string.h or strings.h, and xalloc.h.
77659         Use strip_trailing_slashes rather than open-coding it.
77660
77661 2001-01-03  Paul Eggert  <eggert@twinsun.com>
77662
77663         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
77664
77665 2001-01-03  Jim Meyering  <meyering@lucent.com>
77666
77667         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
77668         of local `inptr' to avoid warning with some system declarations of
77669         iconv.
77670
77671 2001-01-02  Volker Borchert  <bt@teknon.de>
77672
77673         * m4/rename.m4: New file.
77674         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
77675
77676 2001-01-01  Jim Meyering  <meyering@lucent.com>
77677
77678         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
77679         even on systems with utmpx.h.  It's necessary for the declaration of
77680         utmp's ut_user member.  Reported by Andreas Jaeger.
77681
77682         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
77683         available. They are required for the declarations of getgrgid and
77684         getpwuid resp.
77685         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
77686         Reported by Andreas Jaeger.
77687
77688 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
77689
77690         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
77691         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
77692         so `make install' also works in VPATH builds.
77693
77694 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
77695
77696         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
77697         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
77698         can be used in subdirectories.
77699
77700 2000-12-29  Paul Eggert  <eggert@twinsun.com>
77701
77702         * lib/modechange.c: Do not assume that mode_t uses the
77703         traditional octal encoding.  E.g. "chmod 1 FOO" should set
77704         the other-execute bit of FOO even if S_IXOTH != 1.
77705
77706         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
77707         WOTH, XOTH, ALLM): New macros.
77708         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
77709          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
77710         Use them.
77711         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
77712         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
77713         (mode_compile):
77714         No need to use uintmax_t; unsigned long is long enough.
77715         Don't bother to get suffix since we don't use it.
77716
77717 2000-12-26  Jim Meyering  <meyering@lucent.com>
77718
77719         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
77720         better with autoheader.
77721
77722 2000-12-24  Jim Meyering  <meyering@lucent.com>
77723
77724         * lib/hash.c (is_prime): Return explicit boolean values.
77725         (hash_get_first): Return NULL to appease Irix5.6's 89.
77726         Reported by Nelson Beebe.
77727
77728 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
77729
77730         * lib/localcharset.c (locale_charset): Add support for Win32.
77731
77732 2000-12-18  Paul Eggert  <eggert@twinsun.com>
77733
77734         * lib/physmem.h, lib/physmem.c: New files.
77735
77736         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
77737         (noinst_HEADERS): Add physmem.h.
77738
77739         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
77740         't' for compatibility with Solaris 8 sort.
77741
77742 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
77743
77744         * lib/config.charset: Add support for BeOS.
77745
77746 2000-12-17  Jim Meyering  <meyering@lucent.com>
77747
77748         * m4/dos.m4 (jm_AC_DOS): New file and macro.
77749         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
77750
77751 2000-12-16  Jim Meyering  <meyering@lucent.com>
77752
77753         This bug had a serious impact on chown: `chown N:M FILE' (for integer
77754         N and M) would have treated it like `chown N:N FILE'.
77755
77756         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
77757
77758 2000-12-16  Jim Meyering  <meyering@lucent.com>
77759
77760         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
77761         SHELLS_FILE to a file name that's useful on djgpp systems.
77762         Include stdlib.h.
77763         (ADDITIONAL_DEFAULT_SHELLS): Define.
77764         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
77765         Based mostly on a patch from Prashant TR.
77766
77767 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
77768
77769         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
77770         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
77771         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
77772
77773 2000-12-08  Andreas Schwab  <schwab@suse.de>
77774
77775         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
77776         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
77777
77778 2000-12-07  Jim Meyering  <meyering@lucent.com>
77779
77780         * lib/stripslash.c (ISSLASH): Define.
77781         (strip_trailing_slashes): Use ISSLASH rather than comparing against
77782         `/'.
77783         From Prashant TR.
77784
77785         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
77786         (dir_name_r): Declare this function as static.
77787         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
77788         manifest itself on a name containing a mix of slashes and
77789         backslashes.
77790         Make this function work with names starting with a DOS-style
77791         drive letter and colon prefix.
77792         (dir_name): Append `.' if necessary.
77793         Based mostly on patches from Prashant TR and Eli Zaretskii.
77794
77795         * lib/dirname.h (dir_name_r): Remove prototype.
77796
77797 2000-12-06  Paul Eggert  <eggert@twinsun.com>
77798
77799         * m4/off_t-format.m4: Remove this file.
77800         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
77801
77802 2000-12-06  Jim Meyering  <meyering@lucent.com>
77803
77804         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
77805         replacement strtoull, we may well need the replacement strtoul, too.
77806         Check for declarations of strtoul and strtoull.
77807         Check for strtol.  Mainly as a cue to cause automake to include
77808         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
77809         Check for limits.h -- strtol.c needs it.
77810
77811 2000-12-05  Jim Meyering  <meyering@lucent.com>
77812
77813         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
77814
77815 2000-12-04  Jim Meyering  <meyering@lucent.com>
77816
77817         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
77818         Also include memory.h, stdlib.h, unistd.h if appropriate.
77819         Reported by Andreas Jaeger (conflicting declaration of malloc).
77820
77821 2000-12-02  Jim Meyering  <meyering@lucent.com>
77822
77823         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
77824         * m4/jm-macros.m4 (jm_MACROS): require it.
77825
77826 2000-12-02  Jim Meyering  <meyering@lucent.com>
77827
77828         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
77829
77830 2000-12-01  Paul Eggert  <eggert@twinsun.com>
77831
77832         * lib/memrchr.c: Include <config.h> before any system include file.
77833
77834 2000-11-30  Jim Meyering  <meyering@lucent.com>
77835
77836         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
77837
77838 2000-11-30  Jim Meyering  <meyering@lucent.com>
77839
77840         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
77841
77842 2000-11-29  Paul Eggert  <eggert@twinsun.com>
77843
77844         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
77845
77846 2000-11-26  Jim Meyering  <meyering@lucent.com>
77847
77848         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
77849
77850 2000-11-22  Paul Eggert  <eggert@twinsun.com>
77851
77852         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
77853         size of (size_t) -1; it's not portable.
77854
77855 2000-11-17  Jim Meyering  <meyering@lucent.com>
77856
77857         * lib/strstr.c: Update from GNU libc.
77858
77859 2000-11-17  Akim Demaille  <akim@epita.fr>
77860
77861         * lib/obstack.h: Formatting changes.
77862         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
77863         prevent type checking.
77864         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
77865         cast the value to (void *): assigning a `foo *' to a `void *'
77866         variable is valid.
77867         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
77868
77869 2000-11-16  Jim Meyering  <meyering@lucent.com>
77870
77871         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
77872
77873 2000-11-11  Jim Meyering  <meyering@lucent.com>
77874
77875         * lib/error.c: Add a couple #includes, merging from GNU libc version.
77876
77877 2000-11-10  Jim Meyering  <meyering@lucent.com>
77878
77879         * lib/obstack.h: Update from GNU libc.
77880         * lib/obstack.c: Likewise.
77881
77882 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
77883
77884         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
77885
77886 2000-11-06  Paul Eggert  <eggert@twinsun.com>
77887
77888         * lib/getusershell.c (setusershell): Use rewind rather than
77889         fseek/fseeko, to avoid configuration hassles with fseeko.
77890         Don't bother opening SHELLS_FILE if shellstream is NULL;
77891         it's not necessary.
77892
77893 2000-11-05  Jim Meyering  <meyering@lucent.com>
77894
77895         * lib/makepath.h (make_dir): Declare.
77896         * lib/makepath.c (make_dir): Remove `static' attribute.
77897         Tweak a comment.
77898
77899 2000-11-04  Jim Meyering  <meyering@lucent.com>
77900
77901         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
77902
77903 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
77904
77905         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
77906         last one in a bucket, advance to the next bucket.
77907
77908 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
77909
77910         * lib/fnmatch.c: Do not comment out all the code if we are using
77911         the GNU C library, because in some cases we are replacing buggy
77912         code in the GNU C library itself.
77913
77914 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
77915
77916         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
77917         (regex_compile): Catch bogus \(\1\).
77918
77919 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77920
77921         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
77922         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
77923         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
77924
77925 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77926
77927         * lib/error.h, getline.h, modechange.h:
77928         Remove "2000" from Copyright line, as the file hasn't been
77929         changed this year other than in the copyright notice.
77930
77931         * lib/xalloc.h: Add "2000" to Copyright line, as this file
77932         was changed this year.
77933
77934 2000-10-29  Jim Meyering  <meyering@lucent.com>
77935
77936         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
77937         renaming.
77938         * m4/ls-mntd-fs.m4: Likewise
77939
77940 2000-10-29  Jim Meyering  <meyering@lucent.com>
77941
77942         * lib/xstat.in: Fix grammar in comment.
77943
77944 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
77945
77946         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
77947         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
77948         doesn't define __restrict_arr.
77949
77950 2000-10-28  Jim Meyering  <meyering@lucent.com>
77951
77952         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
77953         (jm_PREREQ_MEMCHR): New function.
77954
77955 2000-10-28  Jim Meyering  <meyering@lucent.com>
77956
77957         * lib/memchr.c: Update from libc.
77958         Adjust for portability:
77959         [HAVE_STDLIB_H]: Include stdlib.h.
77960         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
77961         Undef __memchr, too.
77962         [!weak_alias]: Define __memchr to memchr.
77963
77964         * lib/regex.c: Update from libc.
77965         * lib/regex.h: Likewise.
77966         * lib/getopt1.c: Likewise.
77967         * lib/memcmp.c: Likewise.
77968
77969         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
77970         Avoid using fseek, when possible -- it's broken by design.
77971         Patch by Ulrich Drepper.
77972
77973 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
77974
77975         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
77976         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
77977         Giving in to popular pressure to shut up the compiler with casts.
77978
77979 2000-10-26  Jim Meyering  <meyering@lucent.com>
77980
77981         * lib/strftime.c: Update from libc.
77982
77983 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
77984
77985         * regex.c: More `unsigned char' -> `re_char' changes.
77986         Also change several `int' into `re_wchar_t'.
77987         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
77988         (PUSH_FAILURE_POINTER): Don't cast any more.
77989         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
77990         We want GCC to complain, since this piece of code makes
77991         re_match non-reentrant, which *should* be fixed.
77992         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
77993         (EXTEND_BUFFER): Use RETALLOC.
77994         (SET_LIST_BIT): Don't cast.
77995         (re_wchar_t): New type.
77996         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
77997         that those two functions will always properly return.
77998         (IMMEDIATE_QUIT_CHECK): Cast to void.
77999         (analyse_first): Use recursion rather than an explicit stack.
78000         (re_compile_fastmap): Can't fail anymore.
78001         (re_search_2): Don't check re_compile_fastmap for failure.
78002         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
78003         Now also sets the new value (passed in a new argument).
78004         (re_match_2_internal): Use it.
78005         Also, use a new var `reg' of type size_t when looping through regs
78006         rather than reuse the inappropriate `mcnt'.
78007
78008 2000-10-25  Jim Meyering  <meyering@lucent.com>
78009
78010         * lib/obstack.c: Update from libc.
78011
78012 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
78013
78014         * regex.c (regex_compile): Change the way of handling a range from
78015         a char less than 256 to a char not less than 256.
78016
78017 2000-10-24  Andrew Innes  <andrewi@gnu.org>
78018
78019         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
78020         NT-Emacs only.
78021         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
78022         so that re_search functions only quit when callers expect them to.
78023
78024 2000-10-23  Jim Meyering  <meyering@lucent.com>
78025
78026         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
78027         wrong.  That set_locale call must not have any side effects.
78028         From Paul Eggert.
78029
78030 2000-10-22  Jim Meyering  <meyering@lucent.com>
78031
78032         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
78033         [CYCLIC]: Remove now-unused definition.
78034
78035         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
78036         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
78037         Suggestion from Ulrich Drepper.
78038
78039 2000-10-21  Jim Meyering  <meyering@lucent.com>
78040
78041         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
78042         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
78043         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
78044
78045 2000-10-21  Jim Meyering  <meyering@lucent.com>
78046
78047         * lib/dirname.c (memrchr): Declare if necessary.
78048         (dir_name): Remove the restriction that there be no
78049         trailing slashes.  Now, this code skips past them, effectively
78050         ignoring them.
78051         [TEST_DIRNAME] (main): New unit tests.
78052
78053         * lib/memrchr.c: New file from GNU libc.
78054         Undef __memrchr, too.
78055         [!weak_alias]: Define __memrchr to memrchr.
78056         Guard weak_alias use with `#ifdef weak_alias'.
78057
78058 2000-10-21  Jim Meyering  <meyering@lucent.com>
78059
78060         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
78061         (dir_name): Use dir_name_r.
78062         * lib/dirname.h (dir_name_r): Declare it.
78063
78064 2000-10-17  Jim Meyering  <meyering@lucent.com>
78065
78066         * lib/quote.h (PARAMS): Define and use.
78067         Reported by Akim Demaille.
78068
78069         * lib/getopt.c: Update from libc.
78070
78071 2000-10-16  Jim Meyering  <meyering@lucent.com>
78072
78073         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
78074         setlocale.
78075         From Jan Fedak.
78076
78077 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
78078
78079         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
78080
78081 2000-09-25  Jim Meyering  <meyering@lucent.com>
78082
78083         * lib/md5.h (rol): Define (from GnuPG).
78084
78085         * lib/sha.c: Give credit (GnuPG) where due.
78086         (M): Use rol rather than open-coding it.
78087         Add a FIXME comment.
78088
78089 2000-09-21  Jim Meyering  <meyering@lucent.com>
78090
78091         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
78092         Reported by Michael Stone.
78093
78094 2000-09-20  Jim Meyering  <meyering@lucent.com>
78095
78096         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
78097         (noinst_HEADERS): Add sha.h.
78098         Based on code from Scott G. Miller and from GnuPG.
78099
78100 2000-09-18  Jim Meyering  <meyering@lucent.com>
78101
78102         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
78103         LIBS. Otherwise, everyone ends up linking with -lelf for some
78104         configurations.
78105         Reported by Mike Stone.
78106
78107 2000-09-15  Jim Meyering  <meyering@lucent.com>
78108
78109         * lib/regex.c: Update from libc.
78110
78111 2000-09-10  Jim Meyering  <meyering@lucent.com>
78112
78113         * lib/getopt.c (_getopt_internal): Update from glibc.
78114
78115 2000-09-09  Jim Meyering  <meyering@lucent.com>
78116
78117         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
78118         think it should be used as a general replacement for isascii.
78119         * lib/fnmatch.c: Likewise.
78120         * lib/mbswidth.c: Likewise
78121         * lib/regex.c: Likewise.
78122
78123         Don't use atoi.
78124         * lib/userspec.c: Include sys/param.h and limits.h.
78125         Include xstrtol.h.
78126         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78127         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
78128         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
78129         UID, GID.  Check range.
78130
78131 2000-09-06  Jim Meyering  <meyering@lucent.com>
78132
78133         * lib/getopt.c (_getopt_internal): Update from glibc.
78134
78135 2000-08-30  Jim Meyering  <meyering@lucent.com>
78136
78137         * lib/strftime.c: Merge in changes from GNU libc.
78138
78139 2000-08-26  Jim Meyering  <meyering@lucent.com>
78140
78141         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
78142         * m4/fpending.m4: New file.
78143
78144 2000-08-26  Jim Meyering  <meyering@lucent.com>
78145
78146         * lib/closeout.c: Include "__fpending.h".
78147         (close_stdout_status): Return right away if there's nothing to flush.
78148
78149         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
78150         * lib/__fpending.c: New file.
78151         * lib/__fpending.h: New file.
78152
78153 2000-08-20  Jim Meyering  <meyering@lucent.com>
78154
78155         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
78156         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
78157         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
78158
78159 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
78160
78161         Improve fileutils installation on systems where running
78162         programs (like install) can't be unlinked.
78163         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
78164         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
78165
78166 2000-08-07  Paul Eggert  <eggert@twinsun.com>
78167
78168         Standardize on "memory exhausted" instead of "Memory exhausted"
78169         or "virtual memory exhausted".
78170         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
78171         "virtual memory exhausted".
78172         * lib/same.c (same_name): Invoke xalloc_die instead of printing
78173         our own message.
78174         * lib/userspec.c (parse_user_spec): Likewise.
78175         * lib/bumpalloc.h: comment fix
78176         * lib/same.c, userspec.c: Include xalloc.h.
78177
78178         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
78179         not char *const and pointing to a constant array.
78180         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
78181         (xrealloc): Comment fix.
78182
78183         * lib/userspec.c (parse_user_spec):
78184         Don't translate a message until just before returning,
78185         to avoid unnecessary translation.
78186
78187 2000-08-07  Jim Meyering  <meyering@lucent.com>
78188
78189         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
78190         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
78191         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
78192         getgroups.c, gethostname.c, getopt.h, group-member.c,
78193         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
78194         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
78195         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
78196         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
78197         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
78198         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
78199         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
78200         yesno.c: Back out Copyright date changes for each file with no change
78201         this year.  This eases coordination with other programs using the same
78202         source code modules.  From Paul Eggert.
78203
78204 2000-08-06  Paul Eggert  <eggert@twinsun.com>
78205
78206         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
78207         not char, for compatibility with glibc 2.1.3 strftime.c.
78208
78209 2000-08-03  Greg McGary  <greg@mcgary.org>
78210
78211         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
78212         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
78213         (EXTEND_BUFFER): Use them.
78214
78215 2000-08-01  Jim Meyering  <meyering@lucent.com>
78216
78217         * lib/dirname.c (ISSLASH): Define.
78218         (BACKSLASH_IS_PATH_SEPARATOR): Define.
78219         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
78220         both `\' and `/' may be use as path separators.
78221         Based on a patch from Prashant TR.
78222
78223 2000-07-31  Paul Eggert  <eggert@twinsun.com>
78224
78225         * lib/quotearg.c (quotearg_n_options): Don't make the initial
78226         slot vector a constant, since it might get modified.
78227
78228 2000-07-31  Jim Meyering  <meyering@lucent.com>
78229
78230         * lib/xmalloc.c: Use `virtual memory exhausted', not
78231         `Memory exhausted'.
78232         * lib/obstack.c (print_and_abort): Likewise.
78233
78234 2000-07-30  Paul Eggert  <eggert@twinsun.com>
78235
78236         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
78237         buffer, so that the caller can always quote one small
78238         component of a "memory exhausted" message in slot 0.
78239         From a suggestion by Jim Meyering.
78240
78241 2000-07-30  Jim Meyering  <meyering@lucent.com>
78242
78243         * lib/makepath.c (make_path): Quote the other instance, too.
78244
78245         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
78246         (STATIC_BUF_SIZE): Define.
78247         (quotearg_n_options): Use only statically allocated storage when
78248         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
78249         than STATIC_BUF_SIZE.
78250
78251 2000-07-29  Jim Meyering  <meyering@lucent.com>
78252
78253         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
78254         * lib/dirname.c (dir_name): Likewise.
78255
78256         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
78257         `/'.
78258
78259         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
78260         (dir_name): Assert that there are no trailing slashes.
78261
78262 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
78263
78264         * lib/mbswidth.h (mbswidth): Add a flags argument.
78265         (mbswidth): New declaration.
78266         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
78267         * lib/mbswidth.c (mbswidth): Add a flags argument.
78268         (mbsnwidth): New function.
78269
78270 2000-07-24  Jim Meyering  <meyering@lucent.com>
78271
78272         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
78273
78274 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78275
78276         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
78277
78278 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78279
78280         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
78281         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
78282         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
78283         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
78284         invoke multibyte primitives.
78285
78286 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78287
78288         * lib/quotearg.c:
78289         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
78290         so that mbstate_t is always defined.
78291
78292         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
78293         be 1 in at least one GCC installation, and this configuration
78294         error is likely to be common.  Ignoring MB_LEN_MAX hurts
78295         performance on hosts that have mbrtowc but have only unibyte
78296         locales, but I assume these hosts are rare.
78297
78298 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78299
78300         * lib/mbswidth.c (_XOPEN_SOURCE):
78301         Don't define; this causes problems on Solaris 7.
78302         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
78303
78304 2000-07-23  Jim Meyering  <meyering@lucent.com>
78305
78306         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
78307         too: getgrgid, getpwuid, getuid.
78308
78309 2000-07-23  Jim Meyering  <meyering@lucent.com>
78310
78311         * lib/basename.c (base_name): Add an assertion.
78312
78313 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
78314
78315         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
78316         shadow its mbsinit function.
78317
78318 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78319
78320         * lib/mbswidth.h: New file.
78321         * lib/mbswidth.c: New file.
78322         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
78323         (noinst_HEADERS): Add mbswidth.h.
78324
78325 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78326
78327         * lib/config.charset: Add support for FreeBSD. Improve support for
78328         HP-UX and IRIX 6.
78329
78330 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
78331
78332         * m4/mbswidth.m4: New file.
78333         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
78334
78335 2000-07-15  Jim Meyering  <meyering@lucent.com>
78336
78337         * lib/makepath.c: Include quote.h.
78338         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
78339         corresponding argument in a `quote (...)' call.
78340         Give better diagnostics.
78341
78342         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
78343         (noinst_HEADERS): Add quote.h.
78344
78345         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
78346         from tar's src/misc.c.
78347         * lib/quote.h: New file.  Prototypes for same.
78348
78349 2000-07-14  Paul Eggert  <eggert@twinsun.com>
78350
78351         From a suggestion by Bruno Haible.
78352         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
78353         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
78354         to decide whether to define the BeOS workaround macro;
78355         this adjusts to the change to AC_MBSTATE_T.
78356
78357 2000-07-14  Jim Meyering  <meyering@lucent.com>
78358
78359         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
78360         jm_AC_TYPE_UINTMAX_T.
78361
78362 2000-07-13  Paul Eggert  <eggert@twinsun.com>
78363
78364         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
78365
78366         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
78367         quotearg_buffer_restyled): Add support for
78368         clocale_quoting_style.  Undo previous change to
78369         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
78370         and "{RIGHT QUOTATION MARK}" msgids.
78371
78372 2000-07-10  Paul Eggert  <eggert@twinsun.com>
78373
78374         From a suggestion by Bruno Haible.
78375         * m4/mbstate_t.m4 (AC_MBSTATE_T):
78376         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
78377         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
78378         and mbstate_t, to a single-part test that simply defines mbstate_t.
78379         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
78380         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
78381
78382 2000-07-10  Jim Meyering  <meyering@lucent.com>
78383
78384         * m4/strerror_r.m4: Mirror the correction made in autoconf.
78385
78386         * m4/gnu-source.m4: Output to confdefs.h directly.
78387         Suggestion from Akim Demaille.
78388
78389 2000-07-09  Paul Eggert  <eggert@twinsun.com>
78390
78391         The old behavior of quoting `like this' doesn't look good with
78392         newer, ISO-style fonts.  See:
78393         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
78394
78395         Instead, quote "like this" by default.  Let the translator
78396         tailor the locale-specific quoting behavior by providing
78397         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
78398
78399         * lib/quotearg.c (N_): New macro.
78400         (gettext_default): New function.
78401         (quotearg_buffer_restyled): Use
78402         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
78403         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
78404
78405 2000-07-09  Jim Meyering  <meyering@lucent.com>
78406
78407         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
78408         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
78409
78410         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
78411         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
78412
78413 2000-07-09  Jim Meyering  <meyering@lucent.com>
78414
78415         * lib/Most files: Update copyright dates to include 2000.
78416
78417 2000-07-08  Jim Meyering  <meyering@lucent.com>
78418
78419         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
78420         if not defined.
78421         (xgethostname): Remove now-unnecessary #ifdef.
78422         Move declaration of `err' into loop where it's used.
78423
78424 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78425         and Bruno Haible  <haible@clisp.cons.org>
78426
78427         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
78428         only if the test for an object-type mbstate_t fails.  This
78429         prevents us from mistakenly reporting that mbstate_t is a
78430         system object type after we "#define mbstate_t int" to work
78431         around its lack.
78432
78433 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78434         and Bruno Haible  <haible@clisp.cons.org>
78435
78436         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
78437
78438 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78439
78440         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
78441         to strerror_r.
78442         Include <ctype.h> for use of isalpha.
78443
78444 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78445
78446         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
78447         by allocating a larger buffer. Test the gethostname return value for
78448         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
78449         returns an error and ENAMETOOLONG isn't defined.
78450
78451 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78452
78453         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
78454         dimension.
78455
78456 2000-07-04  Jim Meyering  <meyering@lucent.com>
78457
78458         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
78459         of the deprecated AC_CHECKING.
78460
78461 2000-07-04  Jim Meyering  <meyering@lucent.com>
78462
78463         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
78464         Reported by Bruno Haible.
78465
78466 2000-07-04  Jim Meyering  <meyering@lucent.com>
78467
78468         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
78469         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
78470         lacks mbrtowc.
78471
78472 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78473
78474         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
78475         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
78476
78477 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78478         and Bruno Haible  <haible@clisp.cons.org>
78479
78480         * lib/quotearg.c (mbrtowc):
78481         Assign to *pwc, and return 1 only if result is nonzero.
78482         (iswprint): Use ISPRINT when substituting our own mbrtowc.
78483
78484 2000-07-03  Jim Meyering  <meyering@lucent.com>
78485
78486         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
78487
78488 2000-07-03  Jim Meyering  <meyering@lucent.com>
78489
78490         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
78491         This is necessary to get a definition of e.g., UTMP_FILE on
78492         HP-UX 10.20.
78493         From Bob Proulx.
78494
78495 2000-07-02  Jim Meyering  <meyering@lucent.com>
78496
78497         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
78498
78499         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
78500         AC_LIBOBJ(function_name).
78501         * m4/chown.m4: Likewise.
78502         * m4/fnmatch.m4: Likewise.
78503         * m4/ftruncate.m4: Likewise.
78504         * m4/getgroups.m4: Likewise.
78505         * m4/getline.m4: Likewise.
78506         * m4/group-member.m4: Likewise.
78507         * m4/jm-macros.m4: Likewise.
78508         * m4/lstat.m4: Likewise.
78509         * m4/malloc.m4: Likewise.
78510         * m4/memcmp.m4: Likewise.
78511         * m4/nanosleep.m4: Likewise.
78512         * m4/putenv.m4: Likewise.
78513         * m4/realloc.m4: Likewise.
78514         * m4/regex.m4: Likewise.
78515         * m4/stat.m4: Likewise.
78516         * m4/strftime.m4: Likewise.
78517
78518 2000-07-02  Jim Meyering  <meyering@lucent.com>
78519
78520         * lib/quotearg.c (mbstate_t): Don't define here.
78521
78522 2000-07-02  Jim Meyering  <meyering@lucent.com>
78523
78524         * lib/nanosleep.c (SIGCONT): Define if not already defined.
78525
78526 2000-07-01  Jim Meyering  <meyering@lucent.com>
78527
78528         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
78529
78530 2000-07-01  Jim Meyering  <meyering@lucent.com>
78531
78532         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
78533         problem.
78534
78535 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78536
78537         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
78538         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
78539
78540 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78541
78542         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
78543         per change in ../m4/ls-mntd-fs.m4.
78544         (read_filesystem_list): Ignore symbolic links.
78545
78546 2000-06-29  Jim Meyering  <meyering@lucent.com>
78547
78548         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
78549         for declaration of strcmp.
78550
78551         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
78552
78553         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
78554         Avoid warning by casting result to `char *' to remove `const'.
78555
78556 2000-06-28  Jim Meyering  <meyering@lucent.com>
78557
78558         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
78559         included by quotearg.c, for which we perform this test.  From
78560         Bruno Haible.
78561
78562 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78563
78564         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
78565         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
78566         <utmpx.h> exists, put readutmp.o into LIBOBJS.
78567
78568 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78569
78570         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
78571
78572 2000-06-26  Paul Eggert  <eggert@twinsun.com>
78573
78574         savedir now sets errno on failure and invokes xmalloc to get memory.
78575         Fix a couple of other minor bugs while we're at it.
78576
78577         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
78578         (NAMLEN): Remove macro.
78579         (malloc, realloc): Remove decls.
78580         (stpcpy): Likewise.
78581         ("xalloc.h"): Include.
78582         (NAME_SIZE_DEFAULT): New macro.
78583         (savedir): Use xmalloc / xrealloc to allocate memory.
78584         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
78585         Skip "" directory entries.
78586         Use strlen to calculate directory entry length, since the old method
78587         is rarely used these days and isn't worth supporting.
78588         Don't use a pointer after freeing it.
78589         Check for integer overflow when calculating allocation size.
78590         Use memcpy to copy entries, instead of stpcpy.
78591         Set errno properly when returning NULL.
78592         Check for readdir error.
78593
78594 2000-06-26  Jim Meyering  <meyering@lucent.com>
78595
78596         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
78597
78598 2000-06-25  Jim Meyering  <meyering@lucent.com>
78599
78600         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
78601         Linux header bug when _XOPEN_SOURCE is defined to 500.
78602
78603 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78604
78605         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
78606         deficiency.
78607
78608 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78609
78610         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
78611         Include xalloc.h.
78612         Don't include <stdlib.h>.  Don't declare malloc, realloc.
78613
78614 2000-06-24  Jim Meyering  <meyering@lucent.com>
78615
78616         * m4/strerror_r.m4: Revive this file -- to try out an experimental
78617         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
78618         for which strerror does return char*, but which lacks a conveniently
78619         accessible declaration of the function.  If the compile-test says
78620         strerror_r doesn't work, then resort to a `run'-test that works on
78621         BeOS and segfaults on DEC Unix.
78622
78623 2000-06-24  Jim Meyering  <meyering@lucent.com>
78624
78625         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
78626
78627 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78628
78629         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
78630         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
78631
78632 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78633
78634         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
78635         (mbrtowc, mbstate_t): Define substitutes if
78636         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
78637         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
78638         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
78639
78640 2000-06-23  Jim Meyering  <meyering@lucent.com>
78641
78642         * m4/afs.m4: Add missing AC_MSG_RESULT.
78643         Reported by Bruno Haible.
78644
78645         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
78646         Suggestion from Bruno Haible.
78647
78648 2000-06-23  Jim Meyering  <meyering@lucent.com>
78649
78650         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
78651
78652 2000-06-21  Jim Meyering  <meyering@lucent.com>
78653
78654         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
78655
78656 2000-06-21  Jim Meyering  <meyering@lucent.com>
78657
78658         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
78659         (noinst_HEADERS): Add getstr.h.
78660
78661         * lib/getline.c (getstr): Move into a separate file.
78662         * lib/getstr.c (getstr): New file, extracted from getline.c, with
78663         the following changes: new parameter, delim2; both delim[12]
78664         parameters have type `int', not `char'.  The latter would lose
78665         with 8-bit delimiters.
78666         * lib/getstr.h: New file.
78667
78668 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78669
78670         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
78671         than 1024, return a memory chunk of least possible size, instead
78672         of size PATH_MAX + 2. In the loop, increment the size proportionally.
78673         Use free/xmalloc instead of xrealloc to avoid copying for very long
78674         paths.
78675
78676 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78677
78678         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
78679         the empty string.
78680
78681 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78682
78683         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
78684         address, not strdup.  Include <stdlib.h> and don't declare free().
78685
78686 2000-06-19  Jim Meyering  <meyering@lucent.com>
78687
78688         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
78689
78690 2000-06-18  Jim Meyering  <meyering@lucent.com>
78691
78692         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
78693
78694         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
78695         `checking whether...' message to be consistent with that of the
78696         lstat test.
78697
78698 2000-06-18  Jim Meyering  <meyering@lucent.com>
78699
78700         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
78701         Besides, these days every porting target provides a mkdir function.
78702
78703         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
78704         needed. (this snippet comes from src/system.h).
78705
78706 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
78707
78708         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
78709
78710 2000-06-15  Paul Eggert  <eggert@twinsun.com>
78711
78712         * lib/human.c (adjust_value): New function.
78713         (human_readable_inexact): Apply rounding style even when
78714         printing approximate values.
78715
78716 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78717
78718         * lib/human.c (human_readable_inexact): Allow an input block
78719         size that is not a multiple of the output block size, and vice versa.
78720         Reported by Piergiorgio Sartor.
78721
78722 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78723
78724         * lib/getdate.y (get_date): Apply relative times after time
78725         zone indicator, not before.  Reported by Todd A. Jacobs.
78726
78727 2000-06-13  Jim Meyering  <meyering@lucent.com>
78728
78729         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
78730
78731         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
78732
78733 2000-06-12  Paul Eggert  <eggert@twinsun.com>
78734
78735         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
78736
78737 2000-06-12  Jim Meyering  <meyering@lucent.com>
78738
78739         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
78740         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
78741         optional argument.
78742         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
78743         the optional argument, `lib'.
78744
78745 2000-06-08  Jim Meyering  <meyering@lucent.com>
78746
78747         * m4/largefile.m4: Remove file (now that it's part of autoconf).
78748
78749 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78750
78751         Rewrite largefile configuration so that we don't need to run
78752         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
78753         AC_CANONICAL_HOST in configure.in -- jmm]
78754
78755         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
78756         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
78757         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
78758         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
78759         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
78760         All uses changed.
78761         Instead of inspecting the output of getconf, try to compile the
78762         test program without and with the macro definition.
78763         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
78764         for getconf.  Instead, check for the needed flags by compiling
78765         test programs.
78766
78767 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78768
78769         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
78770
78771 2000-06-04  Jim Meyering  <meyering@lucent.com>
78772
78773         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
78774         SunOS 4.1.4 for which gid_t is an unsigned type.
78775
78776 2000-06-03  Jim Meyering  <meyering@lucent.com>
78777
78778         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
78779         now that autoconf requires that.
78780
78781         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
78782         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
78783         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
78784
78785 2000-06-03  Jim Meyering  <meyering@lucent.com>
78786
78787         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
78788
78789 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78790
78791         * m4/glibc21.m4: New file.
78792         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
78793
78794 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78795
78796         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
78797         newer, don't install charset.alias.
78798         * lib/config.charset: Change the Linux/glibc rules so they become empty
78799         on glibc-2.1 or newer.
78800
78801 2000-06-02  Jim Meyering  <meyering@lucent.com>
78802
78803         * lib/mountlist.c: Back out last change.  Instead, do this...
78804         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
78805         me_dummy member using the same `ignore'-testing code.
78806         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
78807         fs_type strings.
78808         From Mark D. Roth.
78809
78810 2000-05-29  Jim Meyering  <meyering@lucent.com>
78811
78812         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
78813         mounts with the `ignore' attribute.  Based on a patch from
78814         Mark D. Roth.
78815
78816 2000-05-28  Jim Meyering  <meyering@lucent.com>
78817
78818         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
78819         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78820         * m4/stat.m4: Likewise.
78821         * m4/lstat.m4: Likewise.
78822         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
78823
78824         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
78825         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
78826
78827 2000-05-26  Jim Meyering  <meyering@lucent.com>
78828
78829         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
78830
78831 2000-05-24  Jim Meyering  <meyering@lucent.com>
78832
78833         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
78834         autoconf requires that.
78835         * m4/lib-check.m4: Likewise.
78836         * m4/jm-macros.m4: Likewise.
78837         * m4/strftime.m4: Likewise.
78838
78839         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
78840         AC_CHECK_DECLS, now that autoconf requires that.
78841
78842 2000-05-22  Jim Meyering  <meyering@lucent.com>
78843
78844         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78845         * m4/lstat.m4: Likewise.
78846
78847 2000-05-22  Jim Meyering  <meyering@lucent.com>
78848
78849         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
78850
78851 2000-05-20  Jim Meyering  <meyering@lucent.com>
78852
78853         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
78854         (jm_PREREQ): Use it.
78855
78856 2000-05-18  Jim Meyering  <meyering@lucent.com>
78857
78858         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
78859         back, too, since it may have been modified by allocate_entry.
78860         (hash_delete): Rewrite to use neither the assignment operator
78861         nor the comma operator in an if-expression.
78862
78863 2000-05-15  Paul Eggert  <eggert@twinsun.com>
78864
78865         * lib/closeout.c:
78866         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
78867         Remove; no longer needed.
78868         "quotearg.h": Add include.
78869         (file_name): Do not bother to explicitly initialize to NULL; it's less
78870         efficient on some hosts.
78871         (close_stdout_status): Remove test as to whether stdout was already
78872         closed; it breaks for the case "echo x | sort >&-".
78873         Quote file name colons.
78874         Do not assume that _("write error") lacks format strings.
78875
78876 2000-05-15  Jim Meyering  <meyering@lucent.com>
78877
78878         * lib/version-etc.c (version_etc_copyright): Update the copyright
78879         string used in all --version output.
78880
78881 2000-05-14  Jim Meyering  <meyering@lucent.com>
78882
78883         * lib/closeout.c (close_stdout_set_file_name): New function.
78884         (close_stdout_status): Use new file-scoped global.
78885         Return right away if fstat says the stdout file descriptor is invalid.
78886         * lib/closeout.h (close_stdout_set_file_name): Declare.
78887
78888 2000-05-10  Jim Meyering  <meyering@lucent.com>
78889
78890         * lib/closeout.c [default_exit_status]: New file-scoped variable.
78891         (close_stdout_set_status): New function.
78892         * lib/closeout.h (close_stdout_set_status): Declare.
78893
78894 2000-05-09  Jim Meyering  <meyering@lucent.com>
78895
78896         * m4/gettext.m4: Rename this...
78897         * m4/libintl.m4: ...to this.
78898
78899 2000-05-08  Jim Meyering  <meyering@lucent.com>
78900
78901         * lib/long-options.c: Don't include closeout.h.
78902         (parse_long_options): Don't call close_stdout for --version.
78903
78904 2000-05-06  Paul Eggert  <eggert@twinsun.com>
78905
78906         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
78907         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
78908         2.1.3 bug.  This avoids a clash when files like regex.c define
78909         _GNU_SOURCE.
78910
78911 2000-05-06  Jim Meyering  <meyering@lucent.com>
78912
78913         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
78914         (AC_REPLACE_FUNCS): Add strnlen.
78915
78916         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
78917         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
78918
78919         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
78920         AC_SEARCH_LIBS call for nanosleep.
78921         (LIB_NANOSLEEP): Set and AC_SUBST.
78922
78923 2000-05-06  Jim Meyering  <meyering@lucent.com>
78924
78925         * lib/strnlen.c: Undefine __strnlen and strnlen.
78926         [!weak_alias]: Define __strnlen to strnlen.
78927
78928         * lib/atexit.c: New file, from libiberty.
78929
78930 2000-05-06  Jim Meyering  <meyering@lucent.com>
78931
78932         * lib/closeout.c (close_stdout_status): Also check for errors on the
78933         stderr stream.
78934
78935 2000-05-05  Jim Meyering  <meyering@lucent.com>
78936
78937         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
78938         AC_SEARCH_LIBS call for clock_gettime.
78939         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
78940
78941         * m4/search-libs.m4: Update from autoconf.
78942
78943         su doesn't work on Solaris 2.6.
78944         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
78945         <shadow.h>.  Reported by Dragos Harabor.
78946
78947 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
78948
78949         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
78950         memcpy instead of xmalloc, xrealloc, path_concat.
78951         (locale_charset): Treat empty environment variables as absent.
78952         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
78953
78954 2000-05-04  Jim Meyering  <meyering@lucent.com>
78955
78956         * lib/getopt.c: Update from glibc.
78957         * lib/obstack.c: Likewise.
78958         * lib/obstack.h: Likewise.
78959         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
78960         file
78961
78962         * lib/regex.h: Likewise.
78963         * lib/strndup.c: Likewise.
78964         * lib/strnlen.c: New file, from glibc.
78965
78966 2000-05-03  Jim Meyering  <meyering@lucent.com>
78967
78968         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
78969
78970 2000-05-02  Paul Eggert  <eggert@twinsun.com>
78971
78972         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
78973         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
78974         compile-time test, rather than inspecting host and OS, to
78975         decide whether to define _LARGEFILE_SOURCE.
78976
78977 2000-05-01  Jim Meyering  <meyering@lucent.com>
78978
78979         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
78980
78981         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
78982         Based on a patch from Bruno Haible.
78983
78984 2000-05-01  Jim Meyering  <meyering@lucent.com>
78985
78986         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
78987
78988 2000-04-29  Jim Meyering  <meyering@lucent.com>
78989
78990         * lib/path-concat.c: Declare strdup only if it's not defined.
78991         * lib/canon-host.c: Likewise.
78992
78993 2000-04-28  Jim Meyering  <meyering@lucent.com>
78994
78995         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
78996         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
78997         is included first, then limits.h is included by locale.h by libintl.h.
78998         From John David Anglin.
78999
79000 2000-04-25  Jim Meyering  <meyering@lucent.com>
79001
79002         * lib/makepath.c (S_IRWXUGO): Define.
79003         (make_path): Always perform explicit chmod if MODE specifies any
79004         of the `special' permission bits.  Prompted by a bug report against
79005         install from Mate Wierdl and Joost van Baal.
79006
79007 2000-04-18  Jim Meyering  <meyering@lucent.com>
79008
79009         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
79010         (jm_PREREQ): Use it.
79011
79012 2000-04-18  Jim Meyering  <meyering@lucent.com>
79013
79014         * lib/README: New file.
79015
79016         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
79017         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
79018
79019 2000-04-17  Jim Meyering  <meyering@lucent.com>
79020
79021         Get it right :-)
79022         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
79023         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
79024         Suggestion from Akim Demaille.
79025
79026 2000-04-17  Jim Meyering  <meyering@lucent.com>
79027
79028         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
79029         the definition of it to rpl_strftime also defined-away the system's
79030         declaration.
79031
79032 2000-04-15  Jim Meyering  <meyering@lucent.com>
79033
79034         Use `C' to denote so-called `contiguous' files, the same way
79035         that tar does.
79036         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
79037         (ftypelet): Use S_ISCTG.
79038         From Michael Deutschmann.
79039
79040 2000-04-14  Jim Meyering  <meyering@lucent.com>
79041
79042         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
79043         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
79044         clobbered.
79045
79046 2000-04-14  Jim Meyering  <meyering@lucent.com>
79047
79048         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
79049
79050 2000-04-13  Jim Meyering  <meyering@lucent.com>
79051
79052         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
79053         AH_VERBATIM to insert required #ifndef into config.h.in.
79054         Suggestion from Akim Demaille.
79055
79056 2000-04-12  Jim Meyering  <meyering@lucent.com>
79057
79058         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
79059         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
79060         Christian Krackowizer.
79061
79062         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
79063         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
79064         (AC_SYS_LARGEFILE): Require.
79065         (AM_C_PROTOTYPES): Require.
79066
79067 2000-04-08  Jim Meyering  <meyering@lucent.com>
79068
79069         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
79070         names don't conflict.  Reported by Eli Zaretskii.
79071
79072 2000-04-07  Jim Meyering  <meyering@lucent.com>
79073
79074         * lib/putenv.c: Move inclusion of errno.h so it follows that of
79075         sys/types.h, to work around system header problems on AIX 3.2.5.
79076         From Bruno Haible.
79077
79078 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
79079
79080         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
79081         bug.  Deal with the different error behavior of Irix iconv.
79082
79083 2000-04-05  Paul Eggert  <eggert@twinsun.com>
79084
79085         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
79086         IRIX if the installer said otherwise.
79087
79088 2000-04-05  Jim Meyering  <meyering@lucent.com>
79089
79090         Portability tweaks required for ultrix4.3.
79091         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
79092         (jm_CHECK_DECLS): Add getutent to the list of functions.
79093         (_jm_DECL_HEADERS): Add utmpx.h.
79094         From John David Anglin.
79095
79096         * m4/strftime.m4: Back out the 2000-04-02 change.
79097         Instead of that change, simply undefine putenv in the test program.
79098
79099 2000-04-05  Jim Meyering  <meyering@lucent.com>
79100
79101         Portability tweaks required for ultrix4.3.
79102         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
79103         getutent.
79104         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
79105         * lib/canon-host.c: Declare strdup.
79106         * lib/path-concat.c: Likewise.
79107         From John David Anglin.
79108
79109 2000-04-04  Jim Meyering  <meyering@lucent.com>
79110
79111         Be more DOS 8.3-friendly.
79112         * lib/ref-add.sin: Renamed from ref-add.sed.in.
79113         * lib/ref-del.sin: Renamed from ref-del.sed.in.
79114         * lib/Makefile.am: Reflect renaming.
79115         Reported by Eli Zaretskii.
79116
79117         Use a temporary file name that won't clash with `charset.alias'
79118         in the DOS 8.3 name space.
79119         * lib/Makefile.am (charset_tmp): Define.
79120         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
79121         (uninstall-local): Likewise.
79122         Reported by Eli Zaretskii.
79123
79124 2000-04-03  Jim Meyering  <meyering@lucent.com>
79125
79126         * m4/gettext.m4: Fix typo in comment.
79127
79128         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
79129         textutils/configure.in).  Suggestion from Paul Eggert.
79130         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
79131
79132 2000-04-02  Paul Eggert  <eggert@twinsun.com>
79133
79134         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
79135         variable in the shell rather than using putenv, which isn't
79136         portable.  This avoids the configure-time inter-test dependency
79137         on the potentially-renamed putenv function.
79138
79139 2000-03-30  Paul Eggert  <eggert@twinsun.com>
79140
79141         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
79142         before checking struct stat.st_blksize, so that
79143         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
79144
79145 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79146
79147         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
79148         since strftime.c uses HAVE_STRFTIME to decide whether to use
79149         the underlying strftime.
79150
79151 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79152
79153         * lib/time/strftime.c (my_strftime): Make sure we call the system
79154         strftime, not ourselves, when invoking the underlying strftime.
79155
79156 2000-03-24  Jim Meyering  <meyering@lucent.com>
79157
79158         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
79159         (charset_alias): Define.
79160         (install-exec-local): Factor out common code.
79161         (uninstall-local): Split lines longer than 80.
79162         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
79163         (SUFFIXES): Define.
79164         (.sed.in.sed): New rule.  Don't redirect directly to $@.
79165         (CLEANFILES): Add ref-add.sed and ref-del.sed.
79166
79167 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
79168
79169         * lib/config.charset: Output a line containing "Packages using this
79170         file".
79171         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
79172         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
79173         ref-del.sed): New rules.
79174
79175 2000-03-17  Jim Meyering  <meyering@lucent.com>
79176
79177         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
79178         Otherwise, include <strings.h>
79179
79180 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
79181
79182         * lib/unicodeio.c (utf8_wctomb): New function.
79183         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
79184         format instead of in UCS-4 with platform dependent endianness.
79185
79186 2000-03-10  Jim Meyering  <meyering@lucent.com>
79187
79188         * m4/lib-check.m4: Look for getspnam in -lgen, too.
79189         From Marco Franzen.
79190
79191 2000-03-07  Paul Eggert  <eggert@twinsun.com>
79192
79193         * lib/savedir.c (savedir): Work even if directory size is
79194         negative; this can happen with some screwy NFS configurations.
79195
79196 2000-03-06  Jim Meyering  <meyering@lucent.com>
79197
79198         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
79199         if it's NULL (because we ran out of memory).  From Bruno Haible.
79200
79201 2000-03-05  Jim Meyering  <meyering@lucent.com>
79202
79203         * lib/localcharset.c ("path-concat.h"): Include.
79204         (get_charset_aliases): Use path_concat instead of ANSI string
79205         concatenation.
79206
79207         * lib/unicodeio.h (PARAMS): Define.
79208         Use it to guard prototype.
79209
79210 2000-03-04  Jim Meyering  <meyering@lucent.com>
79211
79212         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
79213         for lib/localcharset.c.
79214
79215 2000-03-04  Jim Meyering  <meyering@lucent.com>
79216
79217         * lib/Makefile.am (install-exec-local): Create $(libdir) before
79218         installing into it.
79219         (uninstall-local): Uncomment this rule so `make distcheck' works
79220         once again.
79221
79222         * lib/unicodeio.c (<errno.h>): Include it.
79223         (errno): Declare if not defined.
79224
79225         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
79226
79227         * lib/config.charset: New version, incorporating remarks from a linux
79228         i18n mailing list.  From Bruno Haible.
79229
79230 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
79231
79232         * m4/codeset.m4: New file.
79233         * m4/iconv.m4: New file.
79234         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
79235
79236 2000-03-03  Jim Meyering  <meyering@lucent.com>
79237
79238         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
79239
79240 2000-03-02  Jim Meyering  <meyering@lucent.com>
79241
79242         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
79243         the messages come out on separate lines.
79244
79245         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
79246         rather than jm_CHECK_DECLARATIONS.
79247         * m4/decl.m4: Remove now-unused file.
79248
79249         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
79250         geteuid.
79251
79252 2000-03-02  Jim Meyering  <meyering@lucent.com>
79253
79254         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
79255
79256 2000-03-01  Jim Meyering  <meyering@lucent.com>
79257
79258         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
79259         * lib/unicodeio.c: Likewise.
79260
79261 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
79262
79263         * lib/config.charset: New file.
79264         * lib/localcharset.c: New file.
79265         * lib/unicodeio.h, lib/unicodeio.c: New files.
79266         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
79267         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
79268         (noinst_HEADERS): Add unicodeio.h.
79269         (all-local, install-exec-local, charset.alias): New targets.
79270
79271 2000-02-28  Paul Eggert  <eggert@twinsun.com>
79272
79273         * lib/quotearg.c (ALERT_CHAR): New macro.
79274         (quotearg_buffer_restyled): Use it.
79275
79276 2000-02-27  Jim Meyering  <meyering@lucent.com>
79277
79278         * m4/check-decl.m4: Add getenv to the list.
79279
79280 2000-02-27  Jim Meyering  <meyering@lucent.com>
79281
79282         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
79283         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
79284
79285         * lib/backupfile.c: Guard inclusion of stdlib.h with
79286         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
79287         Declare malloc if needed.
79288
79289         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
79290         `#ifndef HAVE_DECL..'
79291         now that autoconf always defines the HAVE_DECL_ symbols.
79292         * lib/human.c: Likewise.
79293         * lib/same.c: Likewise.
79294         * lib/strtoumax.c: Likewise.
79295
79296         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
79297         declaration check was not run.
79298         * lib/hash.c: Likewise.
79299         * lib/human.c: Likewise.
79300         * lib/same.c: Likewise.
79301         * lib/strtoumax.c: Likewise.
79302
79303         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
79304         `.', then first look up the entire `.'-containing string as a login
79305         name.
79306
79307 2000-02-23  Jim Meyering  <meyering@lucent.com>
79308
79309         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
79310         in place of my hack.
79311
79312 2000-02-18  Paul Eggert  <eggert@twinsun.com>
79313
79314         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
79315         (textint): New typedef.
79316         (parser_control): Member year changed from int to textint.
79317         All uses changed.
79318         (YYSTYPE): Removed; replaced by %union with int and textint members.
79319         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
79320         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
79321         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
79322         (tSNUMBER, tUNUMBER): Now of type <textintval>.
79323         (date, number, to_year): Use width of number in digits, not its value,
79324         to determine whether it's a 2-digit year, or a 2-digit time.
79325         (yylex): Store number of digits of numeric tokens.
79326         Reported by John Kendall.
79327
79328         (parser_control): Changed from struct parser_control to typedef (for
79329         consistency).  All uses changed.
79330
79331         (tID): Removed; not used.
79332         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
79333
79334 2000-02-14  Paul Eggert  <eggert@twinsun.com>
79335
79336         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
79337         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
79338
79339 2000-02-12  Jim Meyering  <meyering@lucent.com>
79340
79341         * lib/userspec.c (ISDIGIT): Define it.
79342         (isdigit): Remove definition.
79343         (is_number): Use ISDIGIT, not isdigit.
79344         <libintl.h>: Include.
79345         (_ and N_): Define.
79346         (parse_user_spec): Mark translatable strings.
79347
79348 2000-02-10  Jim Meyering  <meyering@lucent.com>
79349
79350         With these changes, nanosleep.[ch] are finally enough like the other
79351         lib/* replacement files to compile on a few more losing systems.
79352
79353         * lib/nanosleep.h: Don't include config.h.
79354         Remove prototype from declaration of nanosleep.
79355         (PARAMS): Remove now-unneeded definition.
79356         * lib/nanosleep.c: #undef nanosleep.
79357         (rpl_nanosleep): Rename from nanosleep.
79358
79359 2000-02-10  Jim Meyering  <meyering@lucent.com>
79360
79361         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
79362         gnu_nanosleep to rpl_nanosleep.
79363
79364 2000-02-09  Jim Meyering  <meyering@lucent.com>
79365
79366         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
79367         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
79368
79369 2000-02-08  Akim Demaille  <akim@epita.fr>
79370
79371         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
79372         `[' and `]' and remove uses of `changequote'.
79373         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
79374         (AC_SYS_LARGEFILE): Likewise.
79375         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
79376         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
79377         of changequote.
79378         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
79379         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
79380         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
79381         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
79382
79383 2000-02-05  Jim Meyering  <meyering@lucent.com>
79384
79385         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
79386         Remove explicit use of AC_HEADER_TIME.  It is required by
79387         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
79388         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
79389         in autoconf whereby the expansion of the latter ended up preceding
79390         the expansion of its prerequisite, AC_HEADER_TIME.
79391         Reported by Volker Borchert.
79392
79393 2000-02-03  Jim Meyering  <meyering@lucent.com>
79394
79395         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
79396
79397 2000-02-03  Jim Meyering  <meyering@lucent.com>
79398
79399         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
79400         rather than with `#if HAVE_UTMPNAME'.
79401
79402 2000-02-02  Jim Meyering  <meyering@lucent.com>
79403
79404         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
79405         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
79406         Reported by Eli Zaretskii.
79407
79408 2000-02-01  Jim Meyering  <meyering@lucent.com>
79409
79410         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
79411
79412 2000-01-31  Jim Meyering  <meyering@lucent.com>
79413
79414         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
79415         functions.  Add the time.h and sys/time.h headers along with the
79416         AC_REQUIRE'ment of AC_HEADER_TIME.
79417
79418 2000-01-31  Jim Meyering  <meyering@lucent.com>
79419
79420         * lib/nanosleep.h (nanosleep): Guard declaration with
79421         `#if ! HAVE_DECL_NANOSLEEP'.
79422         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
79423         the declaration in that vendor's sys/timers.h.
79424         Reported by Christian Krackowizer.
79425
79426         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
79427         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
79428         (ISPRINT): Likewise.
79429         Reported by Tom Tromey.
79430
79431 2000-01-30  Jim Meyering  <meyering@lucent.com>
79432
79433         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
79434
79435         * m4/prereq.m4 (utmp_includes): Define.
79436         Check for ut_user and ut_name members in both struct utmpx
79437         and struct utmp.
79438
79439 2000-01-30  Jim Meyering  <meyering@lucent.com>
79440
79441         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
79442         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
79443         header files where only utmpx.ut_user is declared.
79444
79445         * lib/readutmp.h (UT_USER): Define.
79446
79447 2000-01-29  Jim Meyering  <meyering@lucent.com>
79448
79449         * m4/lib-check.m4: New file containing library-related checks from
79450         fileutils and sh-utils (textutils had none).
79451
79452 2000-01-28  Jim Meyering  <meyering@lucent.com>
79453
79454         * m4/perl.m4: Change format of warning message to look more like that
79455         from the missing script.  Suggestion from François Pinard.
79456
79457 2000-01-25  Jim Meyering  <meyering@lucent.com>
79458
79459         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
79460         well as time.h in the compile check.
79461         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
79462         Fix typo in cross-compiling case: s/yes/no/.
79463
79464 2000-01-23  Jim Meyering  <meyering@lucent.com>
79465
79466         * m4/jm-macros.m4: Move df-related tests here from
79467         fileutils/configure.in
79468
79469         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
79470         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
79471
79472         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
79473         s/space/ac_fsusage_space/.
79474         (jm_FILE_SYSTEM_USAGE): Take two parameters.
79475
79476         * m4/ftruncate.m4: New file (derived from part of
79477         fileutils/configure.in).
79478         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
79479         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
79480
79481         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
79482         AC_SUBST these here, rather than just in sh-util/configure.in, so
79483         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
79484         all the same.
79485         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
79486         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
79487         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
79488         (AC_SUBST(POW_LIBM)): Likewise.
79489         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
79490
79491 2000-01-23  Jim Meyering  <meyering@lucent.com>
79492
79493         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
79494         obstack.c.
79495
79496 2000-01-22  Jim Meyering  <meyering@lucent.com>
79497
79498         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
79499
79500         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
79501
79502         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
79503         configure.in
79504         (AC_CHECK_HEADERS): Likewise for sh-utils.
79505         (AC_CHECK_HEADERS): Likewise for textutils.
79506         Merge the three lists of headers.
79507
79508         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
79509         from fileutils' configure.in.
79510
79511         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
79512         code. Moved tests into their own function (_jm_DECL_HEADERS) in
79513         check-decl.m4.
79514
79515         * m4/check-decl.m4: Use #if rather than #ifdef.
79516         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
79517         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
79518         (_jm_DECL_HEADERS): Define new function.
79519         (jm_CHECK_DECLARATIONS): Require it.
79520
79521 2000-01-22  Jim Meyering  <meyering@lucent.com>
79522
79523         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
79524         [! HAVE_DECL_STRTOULL]: Declare strtoull.
79525         Required for some AIX systems.  Reported by Christian Krackowizer.
79526         [TESTING] (main): New function.
79527
79528         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
79529         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
79530         letters.
79531
79532         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
79533         iswprint.
79534
79535         * lib/strverscmp.c (ISDIGIT): Define.
79536         (strverscmp): Use ISDIGIT, not isdigit.
79537
79538 2000-01-19  Jim Meyering  <meyering@lucent.com>
79539
79540         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
79541         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
79542         defines `struct timespec' in <sys/time.h>
79543
79544         * m4/c-bs-a.m4: Remove uses of changequote altogether.
79545         Thanks to Akim for explaining.
79546
79547 2000-01-17  Paul Eggert  <eggert@twinsun.com>
79548
79549         * lib/nanosleep.c (nanosleep):
79550         Don't use SA_INTERRUPT to decide whether to call sigaction, as
79551         POSIX.1 doesn't require SA_INTERRUPT and some systems
79552         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
79553         it's been part of POSIX.1 since day 1 (in 1988).
79554
79555 2000-01-17  Jim Meyering  <meyering@lucent.com>
79556
79557         * lib/interlock: Remove unused file.  Reported by François Pinard.
79558
79559 2000-01-16  Paul Eggert  <eggert@twinsun.com>
79560
79561         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
79562         alert, backslash, formfeed, and vertical tab unnecessarily in
79563         shell quoting style.
79564
79565 2000-01-16  Jim Meyering  <meyering@lucent.com>
79566
79567         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
79568         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
79569         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
79570         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
79571
79572 2000-01-16  Jim Meyering  <meyering@lucent.com>
79573
79574         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
79575         because the latter didn't work.
79576
79577 2000-01-15  Jim Meyering  <meyering@lucent.com>
79578
79579         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
79580         (AC_REPLACE_FUNCS): Add memcpy and memset.
79581         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
79582         Add strpbrk.
79583         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
79584
79585 2000-01-12  Jim Meyering  <meyering@lucent.com>
79586
79587         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
79588         (jm_PREREQ): Use it.
79589         (jm_PREREQ_READUTMP): New macro.
79590         (jm_PREREQ): Use it.
79591
79592 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79593
79594         Quote multibyte characters correctly.
79595         * m4/c-bs-a.m4: New file.
79596         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
79597         (jm_PREREQ): Use it.
79598
79599 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79600
79601         * m4/uintmax_t.m4: Port to autoconf 2.13.
79602
79603 2000-01-08  Jim Meyering  <meyering@ascend.com>
79604
79605         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
79606         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
79607
79608 2000-01-04  Jim Meyering  <meyering@ascend.com>
79609
79610         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
79611         jm_STRUCT_DIRENT_D_TYPE.
79612         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
79613         jm_STRUCT_DIRENT_D_INO.
79614         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
79615         jm_STRUCT_UTIMBUF.
79616         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
79617         renamings.
79618         * m4/utime.m4: Likewise.
79619
79620         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
79621         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
79622
79623 2000-01-03  Paul Eggert  <eggert@twinsun.com>
79624
79625         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
79626         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
79627
79628 2000-01-02  Jim Meyering  <meyering@ascend.com>
79629
79630         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
79631         remember if this is necessary.
79632
79633 1999-12-26  Jim Meyering  <meyering@ascend.com>
79634
79635         * m4/jm-macros.m4: Use it here.
79636         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
79637
79638 1999-12-23  Jim Meyering  <meyering@ascend.com>
79639
79640         * m4/jm-macros.m4: Check for clock_gettime (moved from
79641         fileutils/configure.in)
79642         Check for gettimeofday.
79643
79644 1999-12-20  Jim Meyering  <meyering@ascend.com>
79645
79646         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
79647         autoconf-2.14a-1999-12-20.
79648
79649 1999-12-19  Jim Meyering  <meyering@ascend.com>
79650
79651         * m4/lstat-slash.m4: New file.
79652         * m4/jm-macros.m4: Use the new macro:
79653         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79654
79655 1999-12-07  Jim Meyering  <meyering@ascend.com>
79656
79657         * m4/perl.m4: Require that File::Compare be available, too.
79658         Too many systems seem to lack it.
79659
79660         * m4/strftime.m4: Add checks for most of the cpp macros tested in
79661         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
79662
79663 1999-11-18  Paul Eggert  <eggert@twinsun.com>
79664
79665         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
79666         problem with the QNX 4.25 shell, which doesn't propagate exit
79667         status of failed commands inside shell assignments.
79668
79669 1999-11-17  Jim Meyering  <meyering@ascend.com>
79670
79671         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
79672
79673 1999-11-07  Jim Meyering  <meyering@ascend.com>
79674
79675         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
79676
79677 1999-11-06  Jim Meyering  <meyering@ascend.com>
79678
79679         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
79680         * m4/jm-macros.m4 (jm_MACROS): Use it here.
79681
79682 1999-11-05  Jim Meyering  <meyering@ascend.com>
79683
79684         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
79685         configure.in of textutils, fileutils, and sh-utils into this one
79686         (shared between those packages) file.
79687         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
79688         AC_STRUCT_ST_BLKSIZE.
79689
79690 1999-11-03  Jim Meyering  <meyering@ascend.com>
79691
79692         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
79693         of AC_CHECK_TYPE checks includes unistd.h.
79694         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
79695         Suggestion from Akim Demaille.
79696
79697 1999-10-30  Jim Meyering  <meyering@ascend.com>
79698
79699         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
79700         m4-quoted string.
79701         * m4/ls-mntd-fs.m4: Likewise.
79702         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
79703         * m4/jm-winsz1.m4: Likewise.
79704
79705         * m4/const.m4: Remove file, since the fix made it into the experimental
79706         version of autoconf.
79707         * m4/mktime.m4: Likewise.
79708
79709         * m4/check-type.m4: Remove file, now that the latest version of
79710         AC_CHECK_TYPE takes a third arg to specify additional #includes.
79711
79712         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
79713         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
79714         AC_CHECK_TYPE.
79715
79716 1999-10-04  Jim Meyering  <meyering@ascend.com>
79717
79718         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
79719
79720 1999-09-22  Paul Eggert  <eggert@twinsun.com>
79721
79722         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
79723         2.95.1 bug with HP-UX 10.20.
79724
79725 1999-09-17  Jim Meyering  <meyering@ascend.com>
79726
79727         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
79728         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
79729         due to missing strdup (against sh-utils-2.0).
79730
79731 1999-08-29  Jim Meyering  <meyering@ascend.com>
79732
79733         * m4/jm-macros.m4: Require jm_BISON.
79734         * m4/bison.m4: New file.
79735
79736 1999-08-17  Paul Eggert  <eggert@twinsun.com>
79737
79738         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
79739         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
79740
79741 1999-08-05  Jim Meyering  <meyering@ascend.com>
79742
79743         * m4/getline.m4: Rename test file from conftestdata to conftest.data
79744         to avoid conflicts with `conftest' on 8+3 filesystems.
79745         Suggestion from Eli Zaretskii.
79746
79747 1999-08-04  Jim Meyering  <meyering@ascend.com>
79748
79749         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
79750         fileutils and sh-utils (textutils's getline test was inadequate).
79751         (AM_FUNC_GETLINE): Run this test.
79752         (AC_CHECK_FUNCS): Check for getdelim.
79753         Reported by Bob Proulx.
79754
79755 1999-08-02  Jim Meyering  <meyering@ascend.com>
79756
79757         * m4/jm-macros.m4: Add a comment.
79758
79759 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79760
79761         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
79762         <inttypes.h> defines strtoumax as a macro (and not as a
79763         function).
79764
79765 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79766
79767         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
79768         that we can shift, multiply and divide unsigned long long
79769         values; Ultrix cc can't do it.
79770
79771 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79772
79773         * m4/mktime.m4: New file, which is a preview of what should appear
79774         in the next public autoconf release.
79775
79776 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79777
79778         * m4/lfs.m4: Remove this file.
79779         * m4/largefile.m4: New file.  It contains the old contents of
79780         lfs.m4, except that all names with prefix AC_LFS have been
79781         changed to use the prefix AC_SYS_LARGEFILE instead, to be
79782         compatible with future autoconf versions.  Also, some minor m4
79783         quoting problems have been fixed.
79784
79785 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79786
79787         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
79788         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
79789         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
79790         and simplify the shell code.
79791
79792 1999-08-01  Jim Meyering  <meyering@ascend.com>
79793
79794         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
79795         m4.
79796
79797 1999-07-20  Jim Meyering  <meyering@ascend.com>
79798
79799         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
79800
79801 1999-07-15  Jim Meyering  <meyering@ascend.com>
79802
79803         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
79804
79805 1999-05-22  Jim Meyering  <meyering@ascend.com>
79806
79807         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
79808
79809 1999-05-20  Jim Meyering  <meyering@ascend.com>
79810
79811         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
79812         Add a colon after each `then' in case $4 is empty.
79813
79814 1999-05-16  Jim Meyering  <meyering@ascend.com>
79815
79816         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
79817
79818 1999-05-10  Jim Meyering  <meyering@ascend.com>
79819
79820         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
79821
79822         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
79823         AC_FUNC_MKTIME.
79824
79825 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
79826
79827         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
79828
79829 1999-05-04  Paul Eggert  <eggert@twinsun.com>
79830
79831         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
79832         not CPPFLAGS, so that linking works correctly in IRIX.
79833
79834 1999-04-30  Paul Eggert  <eggert@twinsun.com>
79835
79836         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
79837
79838 1999-04-20  Paul Eggert  <eggert@twinsun.com>
79839
79840         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
79841         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
79842         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
79843         jm_AC_TYPE_UNSIGNED_LONG_LONG.
79844         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
79845
79846         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
79847
79848 1999-04-20  Jim Meyering  <meyering@ascend.com>
79849
79850         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
79851         AC_REPLACE xstroull if necessary.  From Paul Eggert.
79852         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
79853
79854 1999-04-18  Jim Meyering  <meyering@ascend.com>
79855
79856         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
79857         * m4/jm-macros.m4: Use it.
79858
79859 1999-04-06  Jim Meyering  <meyering@ascend.com>
79860
79861         * m4/strftime.m4: Remove test for %f.
79862
79863 1999-03-29  Jim Meyering  <meyering@ascend.com>
79864
79865         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
79866         superset of the AC_TYPE_* checks in the textutils, fileutils,
79867         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
79868         AC_TYPE_PID_T.
79869
79870 1999-03-28  Jim Meyering  <meyering@ascend.com>
79871
79872         * m4/jm-macros.m4: Define GNU_PACKAGE here.
79873         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
79874         replaced e.g., in the *.sh files of the sh-utils.
79875
79876 1999-03-20  Jim Meyering  <meyering@ascend.com>
79877
79878         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
79879         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
79880         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
79881
79882 1999-03-19  Jim Meyering  <meyering@ascend.com>
79883
79884         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
79885
79886 1999-03-12  Jim Meyering  <meyering@ascend.com>
79887
79888         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
79889
79890 1999-03-07  Jim Meyering  <meyering@ascend.com>
79891
79892         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
79893         declared.
79894
79895 1999-02-17  Jim Meyering  <meyering@ascend.com>
79896
79897         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
79898         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
79899
79900 1999-02-07  Jim Meyering  <meyering@ascend.com>
79901
79902         * m4/group-member.m4: New file -- extracted from sh-utils'
79903         configure.in.
79904
79905         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
79906         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
79907
79908 1999-02-06  Jim Meyering  <meyering@ascend.com>
79909
79910         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
79911         * m4/fnmatch.m4: Likewise.
79912         * m4/getgroups.m4: Likewise.
79913         * m4/lstat.m4: Likewise.
79914         * m4/malloc.m4: Likewise.
79915         * m4/putenv.m4: Likewise.
79916         * m4/realloc.m4: Likewise.
79917         * m4/regex.m4: Likewise.
79918         * m4/stat.m4: Likewise.
79919         * m4/strftime.m4: Likewise.
79920         Suggestion from Alain Magloire.
79921
79922         * m4/chown.m4: Use `.$ac_objext', not `.o'.
79923         * m4/fnmatch.m4: Likewise.
79924         * m4/getgroups.m4: Likewise.
79925         * m4/getline.m4: Likewise.
79926         * m4/lstat.m4: Likewise.
79927         * m4/malloc.m4: Likewise.
79928         * m4/memcmp.m4: Likewise.
79929         * m4/putenv.m4: Likewise.
79930         * m4/realloc.m4: Likewise.
79931         * m4/regex.m4: Likewise.
79932         * m4/stat.m4: Likewise.
79933         * m4/strftime.m4: Likewise.
79934         Suggestion from Alain Magloire.
79935
79936         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
79937         an argument.
79938
79939         * m4/regex.m4: Add a run-time Test for proper operation of
79940         re_compile_pattern.
79941
79942 1999-01-31  Jim Meyering  <meyering@ascend.com>
79943
79944         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
79945
79946 1999-01-30  Jim Meyering  <meyering@ascend.com>
79947
79948         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
79949
79950         * m4/jm-mktime.m4: Make this a wrapper around the official
79951         AM_FUNC_MKTIME rather than my private copy, now that the official one
79952         is up to date.
79953         * m4/mktime.m4: Remove file.
79954
79955         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
79956         * m4/uptime.m4: Likewise.
79957         * m4/uintmax_t.m4: Likewise.
79958
79959 1999-01-28  Jim Meyering  <meyering@ascend.com>
79960
79961         * m4/jm-macros.m4: Use jm_AFS.
79962         * m4/afs.m4: New file (from fileutils' configure.in).
79963
79964         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
79965         * m4/chown.m4: Likewise.
79966         * m4/d-ino.m4: Likewise.
79967         * m4/d-type.m4: Likewise.
79968         * m4/fnmatch.m4: Likewise.
79969         * m4/getgroups.m4: Likewise.
79970         * m4/gettext.m4: Likewise.
79971         * m4/jm-mktime.m4: Likewise.
79972         * m4/jm-winsz2.m4: Likewise.
79973         * m4/lcmessage.m4: Likewise.
79974         * m4/ls-mntd-fs.m4: Likewise.
79975         * m4/malloc.m4: Likewise.
79976         * m4/memcmp.m4: Likewise.
79977         * m4/putenv.m4: Likewise.
79978         * m4/realloc.m4: Likewise.
79979         * m4/st_mtim.m4: Likewise.
79980         * m4/strftime.m4: Likewise.
79981
79982 1999-01-16  Jim Meyering  <meyering@ascend.com>
79983
79984         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
79985         (ARGMATCH_DIE_DECL): Define.
79986
79987 1999-01-12  Jim Meyering  <meyering@ascend.com>
79988
79989         * m4/Makefile.am.in: Rewrite to avoid using fmt.
79990         Reported by Lars Hecking.
79991
79992 1999-01-10  Jim Meyering  <meyering@ascend.com>
79993
79994         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
79995         gross kludge.
79996         * m4/inttypes_h.m4: Likewise.
79997         * m4/lstat.m4: Likewise.
79998         * m4/malloc.m4: Likewise.
79999         * m4/readdir.m4: Likewise.
80000         * m4/realloc.m4: Likewise.
80001         * m4/st_dm_mode.m4: Likewise.
80002         * m4/stat.m4: Likewise.
80003         * m4/utimbuf.m4: Likewise.
80004         * m4/utimes.m4: Likewise.
80005
80006         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
80007         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
80008         comments in config.h.in are meaningful.
80009
80010         * m4/jm-macros.m4: Require autoconf-2.13 here.
80011
80012         * m4/regex.m4: By default, don't use the included regex.c on systems
80013         with glibc 2.  Suggestion from Uli Drepper.
80014
80015 1999-01-02  Jim Meyering  <meyering@ascend.com>
80016
80017         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
80018
80019 1998-12-18  Jim Meyering  <meyering@ascend.com>
80020
80021         * m4/Makefile.am.in (Makefile.am): Simplify rule.
80022         Based on a suggestion from Lars Hecking.
80023
80024 1998-11-16  Paul Eggert  <eggert@twinsun.com>
80025
80026         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
80027
80028 1998-11-16  Jim Meyering  <meyering@ascend.com>
80029
80030         * m4/lfs.m4: Double-quote the `uname...` expression.
80031
80032 1998-11-14  Jim Meyering  <meyering@ascend.com>
80033
80034         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
80035         * m4/stat.m4: Likewise.
80036
80037 1998-11-03  Jim Meyering  <meyering@ascend.com>
80038
80039         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
80040         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
80041
80042 1998-10-18  Jim Meyering  <meyering@ascend.com>
80043
80044         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
80045
80046 1998-10-17  Jim Meyering  <meyering@ascend.com>
80047
80048         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
80049         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
80050         calls for those previously hard-coded headers.  Instead, take a new
80051         parameter.
80052         (jm_CHECK_DECLARATIONS): Reflect interface change.
80053         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
80054         (jm_CHECK_DECL_LOCALTIME_R): New macro.
80055
80056         * m4/mktime.m4: Test for spring-forward gap before long-running test.
80057
80058 1998-10-14  Jim Meyering  <meyering@ascend.com>
80059
80060         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
80061         instead of "TZ=America/Vancouver".  From Paul Eggert.
80062
80063 1998-10-11  Jim Meyering  <meyering@ascend.com>
80064
80065         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
80066         This adds a test for a recently added compatibility fix for mktime.c.
80067         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
80068
80069 1998-09-27  Jim Meyering  <meyering@ascend.com>
80070
80071         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
80072
80073         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
80074         ../configure.in, including a change from Gordon Matzigkeit to allow
80075         cross-compiling for the Hurd.
80076
80077         * m4/glibc.m4: New file/macro to test for the GNU C Library
80078         versions 1 and 2.  From Gordon Matzigkeit.
80079         Indent.
80080
80081 1998-09-21  Jim Meyering  <meyering@ascend.com>
80082
80083         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
80084
80085 1998-08-18  Paul Eggert  <eggert@twinsun.com>
80086
80087         Port nanosecond-resolution times to UnixWare 2.1.2 and
80088         pedantic Solaris 2.6.
80089
80090         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
80091         AC_STRUCT_ST_MTIM.
80092         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
80093         Generate name of ns member, instead of just 1 or undef.
80094         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
80095
80096 1998-08-15  Jim Meyering  <meyering@ascend.com>
80097
80098         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
80099         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
80100         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
80101         instead of jm_TYPE_SSIZE_T.
80102
80103 1998-08-12  Jim Meyering  <meyering@ascend.com>
80104
80105         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
80106
80107 1998-08-02  Jim Meyering  <meyering@ascend.com>
80108
80109         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
80110         in acconfig.h manually.
80111
80112 1998-07-31  Paul Eggert  <eggert@twinsun.com>
80113
80114         * m4/st_mtim.m4: New file.
80115
80116 1998-07-28  Jim Meyering  <meyering@ascend.com>
80117
80118         * m4/utimes.m4: Undef stat.
80119
80120 1998-07-25  Jim Meyering  <meyering@ascend.com>
80121
80122         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
80123         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
80124
80125 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
80126
80127         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
80128         uid and gid actually remain unchanged.
80129
80130 1998-07-07  Jim Meyering  <meyering@ascend.com>
80131
80132         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
80133
80134 1998-07-04  Jim Meyering  <meyering@ascend.com>
80135
80136         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
80137         to prove that this macro can be used in packages without regex.c.
80138
80139 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
80140
80141         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
80142         is to be used.
80143
80144 1998-07-03  Jim Meyering  <meyering@ascend.com>
80145
80146         * m4/gettext.m4: Add -lintl if it's found to be necessary.
80147
80148         * m4/gettext.m4: New file -- from gettext-0.10.35.
80149         * m4/lcmessage.m4: Likewise.
80150         * m4/progtest.m4: Likewise.
80151
80152         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
80153         * m4/jm-macros.m4: Require the new macro.
80154
80155 1998-06-29  Jim Meyering  <meyering@ascend.com>
80156
80157         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
80158         for the definition of NGROUPS (used in a system header included
80159         by sys/mount.h).
80160
80161 1998-06-28  Jim Meyering  <meyering@ascend.com>
80162
80163         * m4/ls-mntd-fs.m4: New file.
80164         * m4/fstypename.m4: New file.
80165
80166         * m4/jm-macros.m4: Require the new macro.
80167         * m4/jm-glibc-io.m4: New file.
80168
80169 1998-05-19  Jim Meyering  <meyering@ascend.com>
80170
80171         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
80172         * m4/lchown.m4: New file.
80173
80174         * m4/Makefile.am.in: New file.
80175         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
80176
80177 1998-05-14  Jim Meyering  <meyering@ascend.com>
80178
80179         * m4/Makefile.am (EXTRA_DIST): Add them.
80180         * m4/jm-macros.m4: New file.
80181         * m4/utimbuf.m4: New file.
80182
80183 1998-05-12  Jim Meyering  <meyering@ascend.com>
80184
80185         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
80186
80187 1998-05-11  Jim Meyering  <meyering@ascend.com>
80188
80189         * m4/isc-posix.m4: New file.
80190
80191 1998-05-10  Jim Meyering  <meyering@ascend.com>
80192
80193         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
80194
80195 1998-05-09  Jim Meyering  <meyering@ascend.com>
80196
80197         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
80198         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
80199         with automake.
80200
80201         * m4/ssize_t.m4: New file.
80202         * m4/mktime.m4: Remove file -- the new automake has this now.
80203
80204 1998-04-26  Jim Meyering  <meyering@ascend.com>
80205
80206         * m4/assert.m4: New file.
80207         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
80208
80209 1998-04-05  Jim Meyering  <meyering@ascend.com>
80210
80211         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
80212         (jm_PREREQ): Use it here.
80213
80214 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
80215
80216         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
80217         in acconfig.h.
80218
80219 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
80220
80221         * m4/prereq.m4: New file.
80222         * m4/error.m4: New file.
80223         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
80224
80225 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
80226
80227         * m4/getline.m4: Don't set am_cv_func_working_getline before the
80228         cache-check for the same variable -- that defeated the purpose of
80229         the test; the test program was never run.  This was a problem only
80230         on systems with losing getline functions -- HP-UX 10.20 is one.
80231         Reported by Bjorn Helgaas.
80232
80233 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
80234
80235         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
80236
80237 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
80238
80239         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
80240
80241         * m4/const.m4: New file.  Use an initializer in this declaration
80242         typedef int charset[2]; const charset x;
80243         Reported by Bob Glickstein.
80244
80245 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
80246
80247         * m4/chown.m4: Fix reversed types on -1 args to chown.
80248         From Kaveh Ghazi.
80249
80250 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
80251
80252         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
80253         Add lseek and memchr.
80254
80255         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
80256         T.E.Dickey <dickey@clark.net> said that some older preprocessors
80257         have a 20-character limit on names.
80258
80259 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
80260
80261         * m4/inttypes_h.m4: New file.
80262         * m4/uintmax_t.m4: New file.
80263         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
80264
80265
80266         -----
80267
80268         Local Variables:
80269         coding: utf-8
80270         End:
80271
80272         Copyright (C) 1997-2011 Free Software Foundation, Inc.
80273
80274         Copying and distribution of this file, with or without
80275         modification, are permitted provided the copyright notice
80276         and this notice are preserved.